/* =========================================================================
   ÉTERNELLE EGT — Design System
   风格参考：futuresalad.com（暖米白/大留白/胶囊按钮/满幅摄影）
             im8health.com（深勃艮第+金/奶油、编辑体衬线标题、转化区块）
   ========================================================================= */

:root {
  /* —— 色板（主色 ≤2：深勃艮第 + 金）—— */
  --ink:        #1d1714;   /* 暖近黑 */
  --ink-soft:   #4c423b;
  --muted:      #8a7a6d;
  --faint:      #b3a698;

  --paper:      #faf7f2;   /* 米白 */
  --paper-2:    #f4eee5;   /* 深一档米白 */
  --cream:      #fbf8f4;
  --white:      #ffffff;

  --burgundy:   #5c0a18;   /* 主色 */
  --burgundy-deep: #43070f;
  --burgundy-ink:  #2e0509;

  --gold:       #c19a49;   /* 辅色 */
  --gold-deep:  #a57f2f;
  --gold-soft:  #e8d3a7;
  --gold-pale:  #f7ecd4;

  --ok:         #3e6b4f;   /* 深绿：对勾/验证 */
  --ok-soft:    #e7efe7;
  --line:       #eae1d4;
  --line-strong:#ddcebd;

  /* —— 字体 —— */
  --font-serif: "Fraunces", "Georgia", "Times New Roman", serif;
  --font-sans:  "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;

  /* —— 间距/圆角/阴影 —— */
  --radius: 18px;
  --radius-sm: 12px;
  --radius-pill: 999px;
  --shadow-sm: 0 2px 10px rgba(61, 42, 25, .06);
  --shadow:    0 18px 50px rgba(61, 42, 25, .12);
  --shadow-lg: 0 30px 80px rgba(61, 42, 25, .18);

  --maxw: 1200px;
  --gutter: clamp(20px, 5vw, 56px);
  --header-h: 72px;
}

/* —— 重置 —— */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; }
input, select, textarea { font-family: inherit; font-size: 1rem; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--burgundy); color: var(--gold-soft); }

/* —— 排版 —— */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--ink);
}
h1 { font-size: clamp(2.5rem, 5.2vw, 4.35rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); }
h3 { font-size: clamp(1.35rem, 2.3vw, 1.8rem); }
.lead { font-size: clamp(1.05rem, 1.5vw, 1.2rem); color: var(--ink-soft); }
.serif { font-family: var(--font-serif); }

/* 眉题（IM8 风格小字大写） */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--burgundy);
}
.eyebrow::before {
  content: "";
  width: 28px; height: 1px;
  background: var(--gold);
}
.eyebrow.center::before { display: none; }
.eyebrow.gold { color: var(--gold-deep); }
.eyebrow.on-dark { color: var(--gold-soft); }

.section { padding: clamp(56px, 9vw, 110px) 0; }
.wrap { width: min(var(--maxw), 100% - 2 * var(--gutter)); margin-inline: auto; }

/* —— 按钮 —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 15px 30px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .01em;
  line-height: 1;
  transition: transform .18s ease, background .18s ease, color .18s ease, box-shadow .18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--burgundy); color: #fff; box-shadow: 0 10px 26px rgba(92, 10, 24, .28); }
.btn-primary:hover { background: var(--burgundy-deep); }
.btn-gold { background: var(--gold); color: #2a1c05; }
.btn-gold:hover { background: var(--gold-deep); }
.btn-outline { background: transparent; color: var(--burgundy); box-shadow: inset 0 0 0 1.5px var(--burgundy); }
.btn-outline:hover { background: var(--burgundy); color: #fff; }
.btn-light { background: #fff; color: var(--burgundy); box-shadow: 0 10px 26px rgba(0,0,0,.14); }
.btn-lg { padding: 18px 40px; font-size: 1rem; }
.btn-block { width: 100%; }
.btn .arrow { transition: transform .18s ease; }
.btn:hover .arrow { transform: translateX(3px); }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; }

/* —— 顶栏（IM8 风格优惠条）—— */
.announce {
  background: linear-gradient(90deg, var(--burgundy-deep), var(--burgundy) 55%, var(--burgundy-deep));
  color: var(--gold-soft);
  text-align: center;
  font-size: .82rem;
  letter-spacing: .02em;
  padding: 9px var(--gutter);
  position: relative;
  z-index: 60;
}
.announce strong { color: #fff; font-weight: 700; }
.announce .divider { opacity: .4; margin: 0 10px; }

/* —— 页头 —— */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 247, 242, .9);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.logo {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--ink);
  line-height: 1;
}
.logo .accent { color: var(--burgundy); }
.logo .dot { color: var(--gold); }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a {
  font-size: .92rem; font-weight: 600; color: var(--ink-soft);
  position: relative; padding: 6px 0;
  transition: color .16s;
}
.nav a:hover { color: var(--burgundy); }
.nav a.active { color: var(--burgundy); }
.nav a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 2px; background: var(--gold);
}
.header-actions { display: flex; align-items: center; gap: 14px; }
.icon-btn {
  position: relative; width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 50%; color: var(--ink);
  transition: background .16s, color .16s;
}
.icon-btn:hover { background: var(--paper-2); color: var(--burgundy); }
.icon-btn svg { width: 22px; height: 22px; }
.cart-count {
  position: absolute; top: 2px; right: 0;
  min-width: 18px; height: 18px; padding: 0 5px;
  display: grid; place-items: center;
  background: var(--burgundy); color: #fff;
  border-radius: 999px; font-size: .68rem; font-weight: 700;
}
.nav-toggle { display: none; }

/* —— 移动端导航 —— */
@media (max-width: 900px) {
  .nav { display: none; }
  .nav-toggle { display: grid; }
  .nav.open {
    display: flex; flex-direction: column; align-items: stretch;
    position: absolute; top: var(--header-h); left: 0; right: 0;
    background: var(--paper); padding: 12px var(--gutter) 24px;
    border-bottom: 1px solid var(--line); gap: 4px;
  }
  .nav.open a { padding: 14px 0; font-size: 1.1rem; border-bottom: 1px solid var(--line); }
}

/* —— 页脚 —— */
.site-footer {
  background: var(--burgundy-ink);
  color: #d9cbb8;
  padding: clamp(56px, 8vw, 90px) 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 50px;
}
.footer-brand .logo { color: #f6ead9; font-size: 1.7rem; }
.footer-brand p { margin-top: 16px; font-size: .92rem; max-width: 34ch; }
.footer-col h4 {
  font-family: var(--font-sans); font-weight: 700; font-size: .78rem;
  letter-spacing: .18em; text-transform: uppercase; color: var(--gold-soft);
  margin-bottom: 18px;
}
.footer-col li { margin-bottom: 11px; }
.footer-col a { font-size: .92rem; color: #d9cbb8; transition: color .16s; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 22px 0;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  flex-wrap: wrap;
  font-size: .8rem; color: #9d8f7b;
}
.footer-bottom .legal { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-bottom a { color: #9d8f7b; }
.footer-bottom a:hover { color: #fff; }
.fda-note {
  background: var(--burgundy-deep);
  padding: 18px var(--gutter);
  text-align: center; font-size: .76rem; color: #b3a08d;
  line-height: 1.6;
}
@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* —— 通用区块头 —— */
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head h2 { margin-top: 18px; }
.section-head p { margin-top: 16px; color: var(--muted); }

/* —— 徽章 / 信任点 —— */
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 15px; border-radius: var(--radius-pill);
  font-size: .8rem; font-weight: 700; letter-spacing: .02em;
}
.pill-gold { background: var(--gold-pale); color: var(--gold-deep); }
.pill-green { background: var(--ok-soft); color: var(--ok); }
.check-list { display: grid; gap: 11px; }
.check-list li { display: flex; align-items: flex-start; gap: 11px; font-size: .95rem; color: var(--ink-soft); }
.check-list .tick {
  flex: none; width: 21px; height: 21px; margin-top: 2px;
  display: grid; place-items: center;
  background: var(--ok-soft); color: var(--ok); border-radius: 50%;
}
.check-list .tick svg { width: 12px; height: 12px; }

/* —— 徽标带（媒体/信任）—— */
.logos-strip { text-align: center; }
.logos-strip .eyebrow { justify-content: center; }
.logos-row {
  margin-top: 26px; display: flex; flex-wrap: wrap; justify-content: center;
  gap: 14px 40px; align-items: center;
}
.logo-item {
  font-family: var(--font-serif); font-size: 1.25rem; font-weight: 500;
  color: var(--faint); letter-spacing: .01em;
}
.logo-item small { font-family: var(--font-sans); font-size: .78rem; font-weight: 700; letter-spacing: .14em; color: var(--faint); text-transform: uppercase; }

/* —— 卡片 —— */
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .22s ease, box-shadow .22s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }

/* —— 折叠 FAQ —— */
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 24px 4px; text-align: left;
  font-family: var(--font-serif); font-size: 1.15rem; font-weight: 500; color: var(--ink);
}
.faq-q .plus { font-family: var(--font-sans); font-size: 1.6rem; font-weight: 300; color: var(--gold); line-height: 1; transition: transform .25s; }
.faq-item.open .plus { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-a-inner { padding: 0 4px 24px; color: var(--ink-soft); font-size: .98rem; }
.faq-a-inner p + p { margin-top: 12px; }

/* —— 表单 —— */
.field { display: block; margin-bottom: 18px; }
.field label { display: block; font-size: .82rem; font-weight: 700; letter-spacing: .04em; color: var(--ink-soft); margin-bottom: 8px; }
.input {
  width: 100%; padding: 13px 16px;
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  background: #fff; color: var(--ink);
  transition: border-color .16s, box-shadow .16s;
}
.input:focus { border-color: var(--gold); box-shadow: 0 0 0 4px var(--gold-pale); outline: none; }
.input::placeholder { color: var(--faint); }

/* —— 数量选择 —— */
.qty {
  display: inline-flex; align-items: center;
  border: 1px solid var(--line-strong); border-radius: var(--radius-pill);
  overflow: hidden;
}
.qty button { width: 42px; height: 44px; font-size: 1.2rem; color: var(--ink-soft); transition: background .15s; }
.qty button:hover { background: var(--paper-2); }
.qty .val { width: 42px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.qty input.val {
  width: 48px; height: 44px; text-align: center; font-weight: 700;
  border: 0; border-inline: 1px solid var(--line-strong);
  background: transparent; font-variant-numeric: tabular-nums;
}
.qty input.val::-webkit-outer-spin-button,
.qty input.val::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty input.val[type="number"] { -moz-appearance: textfield; appearance: textfield; }

/* —— 工具类 —— */
.muted { color: var(--muted); }
.center { text-align: center; }
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.hidden { display: none !important; }

/* —— 价格 —— */
.price { font-family: var(--font-serif); font-weight: 600; }
.price .now { font-size: 1.5em; color: var(--ink); }
.price .was { font-size: 1.05em; color: var(--faint); text-decoration: line-through; margin-right: 10px; }
.badge-save {
  display: inline-block; padding: 3px 10px; border-radius: var(--radius-pill);
  background: var(--gold-pale); color: var(--gold-deep);
  font-size: .74rem; font-weight: 800; letter-spacing: .03em;
}

/* —— 动画 —— */
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.reveal { opacity: 0; }
.reveal.in { animation: fadeUp .7s cubic-bezier(.2,.7,.2,1) forwards; }

/* —— Toast —— */
.toast {
  position: fixed; left: 50%; bottom: 30px; transform: translateX(-50%) translateY(120%);
  background: var(--burgundy-ink); color: #f6ead9;
  padding: 14px 26px; border-radius: var(--radius-pill);
  font-size: .92rem; font-weight: 600; z-index: 100;
  box-shadow: var(--shadow-lg);
  transition: transform .3s cubic-bezier(.2,.7,.2,1);
}
.toast.show { transform: translateX(-50%) translateY(0); }
