:root {
  --color-primary: #ff7a45;
  --color-primary-dark: #f5632d;
  --color-text: #333333;
  --color-text-secondary: #666666;
  --color-text-muted: #999999;
  --color-bg: #f5f7fa;
  --color-card: #ffffff;
  --color-border: #e8eaef;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
  --radius: 12px;
  --radius-pill: 9999px;
  --max-width: 1200px;
  --spacing: 24px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
}

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  /* padding: 0 var(--spacing); */
}

/* 顶部固定广告位 + Logo */
.top-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--color-card);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 15px 0;
  /* height: 72px; */
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo img {
  height: 74px;
  width: auto;
  display: block;
}

.top-ad-slot {
  flex: 1;
  min-width: 0;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  font-size: 18px;
  font-weight: 500;
  color: var(--color-text);
  white-space: nowrap;
  overflow: hidden;
}

/* 通栏图片广告位 */
.banner-ad {
  background-color: var(--color-card);
  padding: 16px 0;
}

.banner-ad-slot {
  width: 100%;
  height: 280px;
  /* border-radius: var(--radius); */
  overflow: hidden;
}

.banner-ad-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 产品卡片区 */
.main-content {
  padding-top: 62px;
  padding-bottom: 60px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.product-card {
  background-color: var(--color-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: fadeInUp 0.6s ease both;
}

.product-card:nth-child(1) { animation-delay: 0.1s; }
.product-card:nth-child(2) { animation-delay: 0.2s; }
.product-card:nth-child(3) { animation-delay: 0.3s; }

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.product-image {
  position: relative;
  width: 100%;
  height: 180px;
  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
  transform: scale(1.05);
}

.product-body {
  padding: 20px;
}

.product-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.product-name {
  font-size: 17px;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.4;
  flex: 1;
  min-width: 0;
}

.insurer-logo {
  height: 28px;
  width: auto;
  flex-shrink: 0;
}

.coverage-list {
  list-style: none;
  margin-bottom: 16px;
}

.coverage-list li {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--color-border);
  font-size: 13px;
  color: var(--color-text-secondary);
}

.coverage-list li:last-child {
  border-bottom: none;
}

.coverage-list li span:first-child {
  flex: 1;
  min-width: 0;
}

.coverage-list li span:last-child {
  color: var(--color-text);
  font-weight: 500;
  text-align: right;
  white-space: nowrap;
}

.product-age {
  font-size: 13px;
  color: var(--color-text-muted);
  margin-bottom: 16px;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--color-border);
}

.price {
  display: flex;
  align-items: baseline;
  color: var(--color-primary);
}

.price .currency {
  font-size: 14px;
  font-weight: 600;
  margin-right: 2px;
}

.price strong {
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
}

.price .unit {
  font-size: 13px;
  color: var(--color-text-muted);
  margin-left: 2px;
}

.btn-buy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 96px;
  padding: 10px 20px;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 12px rgba(255, 122, 69, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-buy:hover {
  transform: scale(1.02);
  box-shadow: 0 6px 16px rgba(255, 122, 69, 0.4);
}

/* 团队服务条 */
.service-bar {
  background-color: #fff8f5;
  border-top: 1px solid #ffe8df;
  border-bottom: 1px solid #ffe8df;
  padding: 20px 0;
  text-align: center;
}

.service-bar p {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-primary-dark);
}

.service-bar a {
  color: var(--color-primary-dark);
  text-decoration: none;
}

.service-bar a:hover {
  text-decoration: underline;
}

/* 页脚 */
.site-footer {
  background-color: var(--color-card);
  padding: 32px 0 24px;
}

.icp-info {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 20px;
}

.icp-row {
  display: flex;
  border-bottom: 1px solid var(--color-border);
}

.icp-row:last-child {
  border-bottom: none;
}

.icp-item {
  flex: 1;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.icp-item + .icp-item {
  border-left: 1px solid var(--color-border);
}

.icp-label {
  color: var(--color-text-secondary);
  white-space: nowrap;
}

.icp-value {
  color: var(--color-text-muted);
  font-weight: 500;
  text-decoration: none;
}

.icp-value:hover {
  text-decoration: underline;
  color: var(--color-primary);
}

.copyright {
  text-align: center;
  font-size: 13px;
  color: var(--color-text-muted);
}

/* 动画 */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 响应式：平板 */
@media (max-width: 768px) {
  :root {
    --spacing: 16px;
  }
.main-content {
    padding: 16px;
  }
  .header-inner {
    height: 64px;
    gap: 12px;
  }

  .logo img {
    height: 36px;
  }

  .top-ad-slot {
    height: 40px;
    font-size: 16px;
  }

  .banner-ad-slot {
    height: 140px;
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .product-image {
    height: 160px;
  }

  .product-body {
    padding: 16px;
  }

  .product-name {
    font-size: 15px;
  }

  .insurer-logo {
    height: 24px;
  }

  .coverage-list li {
    font-size: 12px;
  }

  .price strong {
    font-size: 24px;
  }

  .service-bar p {
    font-size: 15px;
  }

  .icp-row-2col {
    flex-direction: column;
  }

  .icp-item + .icp-item {
    border-left: none;
    border-top: 1px solid var(--color-border);
  }
}

/* 响应式：手机 */
@media (max-width: 480px) {
  .top-header {
    position: relative;
  }

  .header-inner {
    flex-direction: column;
    height: auto;
    padding-top: 12px;
    padding-bottom: 12px;
    gap: 10px;
  }

  .top-ad-slot {
    /* width: 100%; */
    justify-content: flex-end;
    font-size: 15px;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }

  .product-footer {
    flex-direction: row;
  }

  .btn-buy {
    flex: 1;
  }

  .service-bar p {
    font-size: 14px;
    line-height: 1.8;
  }
}
