/**
 * HormLab Portal · 产品中心页样式
 */

/* ============ 页头（复用 main.css .page-hero 深色底，仅补标题/副标题样式） ============ */
.page-hero-h1 { font-size: clamp(32px, 5vw, 48px); font-weight: 800; line-height: 1.2; margin: 18px 0 16px; letter-spacing: -1px; color: #fff; }
.page-hero-lead { color: var(--text-white-soft); font-size: 17px; line-height: 1.7; margin: 0 auto; max-width: 640px; }
.page-hero-h1 .accent {
  background: var(--gradient-gold);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* 快捷锚点 */
.pkg-quicknav { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }
.pkg-quicknav-item {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px; border-radius: 999px;
  background: var(--bg-card); border: 1px solid var(--border-light);
  color: var(--text-dark); font-size: 14px; font-weight: 500;
  text-decoration: none; transition: all .25s ease;
}
.pkg-quicknav-item:hover {
  border-color: var(--line-color, var(--gold));
  color: var(--line-color, var(--gold));
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,.08);
}

/* ============ 产品线区块 ============ */
.pkg-line-section { padding: 48px 0; }
.pkg-line-section + .pkg-line-section { border-top: 1px dashed var(--border-light); }
.pkg-line-header { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 28px; }
.pkg-line-icon {
  width: 52px; height: 52px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; flex-shrink: 0;
}
.pkg-line-title { font-size: 24px; font-weight: 700; margin: 2px 0 6px; }
.pkg-line-desc { color: var(--text-mid); font-size: 15px; }
.pkg-planned-badge {
  font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px;
  background: rgba(212,162,78,.12); color: var(--gold); vertical-align: middle; margin-left: 6px;
}

/* 套餐卡片 */
.pkg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.pkg-card {
  position: relative;
  background: var(--bg-card); border: 1px solid var(--border-light); border-radius: var(--r-lg);
  padding: 24px; display: flex; flex-direction: column; gap: 14px;
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}
.pkg-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,.1);
  border-color: var(--line-color, var(--gold));
}
.pkg-card.pkg-hot { border-color: var(--line-color); box-shadow: 0 8px 28px rgba(139,92,246,.12); }
.pkg-hot-badge {
  position: absolute; top: -11px; right: 16px;
  background: linear-gradient(135deg, var(--gold), #E8B86D);
  color: #fff; font-size: 12px; font-weight: 600;
  padding: 4px 12px; border-radius: 999px;
  box-shadow: 0 4px 12px rgba(212,162,78,.35);
}
.pkg-card-head { display: flex; align-items: center; gap: 12px; }
.pkg-icon {
  width: 46px; height: 46px; border-radius: 12px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 24px;
}
.pkg-name { font-size: 18px; font-weight: 700; }
.pkg-sub { font-size: 13px; color: var(--text-mid); margin-top: 2px; }
.pkg-price { display: flex; align-items: baseline; gap: 8px; }
.pkg-price-num { font-size: 30px; font-weight: 800; color: var(--line-color, var(--gold)); font-variant-numeric: tabular-nums; }
.pkg-price-meta { font-size: 12px; color: var(--text-light); }
.pkg-indicators { font-size: 13px; color: var(--text-mid); }
.pkg-ind-num { font-size: 18px; font-weight: 700; color: var(--text-dark); }
.pkg-hormones { display: flex; flex-wrap: wrap; gap: 6px; }
.pkg-hormone {
  font-size: 12px; padding: 4px 10px; border-radius: 999px;
  background: rgba(0,0,0,.045); font-weight: 500;
}
.pkg-desc { font-size: 13.5px; color: var(--text-mid); line-height: 1.65; margin: 0; flex: 1; }
.pkg-card-actions { display: flex; gap: 10px; }
.btn-sm { padding: 9px 18px; font-size: 13.5px; }

/* ============ 怎么选 ============ */
.guide-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.guide-card {
  background: var(--bg-card); border: 1px solid var(--border-light); border-radius: var(--r-lg);
  padding: 24px; transition: transform .25s ease, box-shadow .25s ease;
}
.guide-card:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(0,0,0,.08); }
.guide-icon { font-size: 30px; margin-bottom: 12px; }
.guide-title { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.guide-desc { font-size: 13.5px; color: var(--text-mid); line-height: 1.7; margin-bottom: 14px; }
.guide-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.guide-tags span {
  font-size: 12px; padding: 3px 10px; border-radius: 999px;
  background: rgba(212,162,78,.1); color: var(--gold);
}

/* ============ 对比表 ============ */
.compare-wrap {
  overflow-x: auto; border-radius: var(--r-lg);
  border: 1px solid var(--border-light); background: var(--bg-card);
  -webkit-overflow-scrolling: touch;
}
.compare-table { width: 100%; border-collapse: collapse; min-width: 760px; font-size: 14px; }
.compare-table th, .compare-table td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--border-light); }
.compare-table thead th {
  background: transparent; font-size: 13px; font-weight: 600;
  color: var(--text-mid); white-space: nowrap; position: sticky; top: 0;
}
.compare-table tbody tr { transition: background .15s ease; }
.compare-table tbody tr:hover { background: rgba(212,162,78,.04); }
.compare-table tbody tr:last-child td { border-bottom: none; }
.cmp-name { font-weight: 600; white-space: nowrap; }
.cmp-star { color: var(--gold); margin-right: 4px; }
.cmp-line { font-weight: 500; white-space: nowrap; }
.cmp-hormones { color: var(--text-mid); font-size: 13px; }
.cmp-num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.cmp-price { font-weight: 700; color: var(--gold); }
.cmp-fit { color: var(--text-mid); font-size: 13px; }

/* ============ 全部包含 ============ */
.include-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.include-card {
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--r-lg); padding: 26px;
  transition: transform .25s ease, border-color .25s ease;
}
.include-card:hover { transform: translateY(-3px); border-color: rgba(212,162,78,.4); }
.include-icon { font-size: 30px; margin-bottom: 12px; }
.include-title { font-size: 16px; font-weight: 700; margin-bottom: 8px; color: #fff; }
.include-desc { font-size: 13.5px; color: rgba(255,255,255,.65); line-height: 1.7; }

.section-dark .section-eyebrow { color: var(--gold); }
.section-dark .section-h2 { color: #fff; }

/* ============ FAQ ============ */
.container-narrow { max-width: 780px; }
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--bg-card); border: 1px solid var(--border-light); border-radius: var(--r-md);
  overflow: hidden; transition: border-color .2s ease;
}
.faq-item:hover { border-color: rgba(212,162,78,.4); }
.faq-item summary {
  padding: 16px 20px; font-size: 15px; font-weight: 600; cursor: pointer;
  list-style: none; position: relative; padding-right: 44px; user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+'; position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
  font-size: 20px; font-weight: 300; color: var(--gold); transition: transform .25s ease;
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item p { padding: 0 20px 18px; font-size: 14px; color: var(--text-mid); line-height: 1.75; margin: 0; }

/* ============ 响应式 ============ */
@media (max-width: 768px) {
  .pkg-line-header { flex-direction: column; gap: 10px; }
  .pkg-grid { grid-template-columns: 1fr; }
  .pkg-quicknav { gap: 8px; }
  .pkg-quicknav-item { padding: 8px 14px; font-size: 13px; }
}

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
  .pkg-card, .guide-card, .include-card, .pkg-quicknav-item { transition: none; }
}
