/* ÉTERNELLE EGT — components.css
   页面级组件：Hero / 产品卡 / 购买盒 / 抽屉 / 购物袋 / 结账 / 各页面区块 */

/* ===================== 购物袋抽屉 ===================== */
.drawer {
  position: fixed; inset: 0; z-index: 90;
  visibility: hidden;
}
.drawer .overlay {
  position: absolute; inset: 0;
  background: rgba(30, 16, 10, .45);
  opacity: 0; transition: opacity .3s ease;
}
.drawer .panel {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: min(430px, 100%);
  background: var(--paper);
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform .32s cubic-bezier(.2,.7,.2,1);
  box-shadow: -20px 0 60px rgba(0,0,0,.25);
}
.drawer.open { visibility: visible; }
.drawer.open .overlay { opacity: 1; }
.drawer.open .panel { transform: none; }
.drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px; border-bottom: 1px solid var(--line);
}
.drawer-head h3 { font-size: 1.3rem; }
.drawer-body { flex: 1; overflow-y: auto; padding: 18px 24px; }
.mini-line {
  display: flex; gap: 14px; padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.mini-line img { border-radius: 12px; object-fit: cover; background: var(--paper-2); }
.mini-info { flex: 1; }
.mini-name { font-weight: 700; font-size: .95rem; line-height: 1.3; }
.mini-meta { color: var(--muted); font-size: .8rem; margin-top: 3px; }
.mini-qty { margin-top: 10px; }
.mini-qty button { width: 30px; height: 30px; font-size: 1rem; }
.mini-qty .val { width: 30px; font-size: .9rem; }
.mini-right { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; }
.mini-total { font-weight: 800; font-variant-numeric: tabular-nums; }
.mini-rm { color: var(--faint); font-size: .85rem; padding: 4px; }
.mini-rm:hover { color: var(--burgundy); }
.drawer-foot { padding: 20px 24px; border-top: 1px solid var(--line); }
.drawer-foot .row { display: flex; justify-content: space-between; margin-bottom: 14px; font-weight: 700; }
.drawer-foot .row .tot { font-family: var(--font-serif); font-size: 1.25rem; }

/* ===================== Hero（首页） ===================== */
.hero { position: relative; background: var(--paper); overflow: hidden; }
.hero-grid {
  display: grid; grid-template-columns: 1.06fr .94fr;
  min-height: min(720px, calc(100dvh - var(--header-h)));
}
.hero-media { position: relative; min-height: 420px; }
.hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-media .tag {
  position: absolute; left: 24px; bottom: 24px;
  background: rgba(255,255,255,.92); backdrop-filter: blur(6px);
  padding: 10px 18px; border-radius: var(--radius-pill);
  font-size: .82rem; font-weight: 700; color: var(--ink-soft);
}
.hero-copy {
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(40px, 6vw, 84px);
}
.hero-copy h1 { margin: 22px 0 20px; }
.hero-copy h1 em { font-style: italic; color: var(--burgundy); }
.hero-copy .lead { max-width: 44ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-cta .btn { min-width: 200px; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 12px 22px; margin-top: 38px; }
.hero-proof span { display: flex; align-items: center; gap: 8px; font-size: .85rem; font-weight: 600; color: var(--ink-soft); }
.hero-proof .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; min-height: 0; }
  .hero-media { min-height: 320px; order: 2; }
  .hero-copy { order: 1; }
}

/* —— 信任条 —— */
.trustbar {
  border-block: 1px solid var(--line);
  background: var(--cream);
}
.trustbar .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding-block: 22px; }
.trust-item { display: flex; align-items: center; gap: 13px; }
.trust-item .ico {
  flex: none; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--gold-pale); color: var(--gold-deep);
}
.trust-item .ico svg { width: 22px; height: 22px; }
.trust-item b { display: block; font-size: .92rem; }
.trust-item span { display: block; font-size: .78rem; color: var(--muted); }
@media (max-width: 860px) { .trustbar .wrap { grid-template-columns: 1fr 1fr; } }

/* ===================== 产品卡（首页 / 商店） ===================== */
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
@media (max-width: 940px) { .product-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .product-grid { grid-template-columns: 1fr; } }
.product-card .media { aspect-ratio: 4/5; background: var(--paper-2); overflow: hidden; }
.product-card .media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.product-card:hover .media img { transform: scale(1.05); }
.product-card .body { padding: 22px 22px 26px; }
.product-card .cat { font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--burgundy); }
.product-card h3 { margin: 8px 0 8px; font-size: 1.35rem; }
.product-card .desc { color: var(--muted); font-size: .9rem; min-height: 44px; }
.product-card .foot { margin-top: 18px; display: flex; align-items: center; justify-content: space-between; }
.product-card .price .now { font-size: 1.35rem; }
.product-card .price .was { font-size: .95rem; }

/* ===================== 产品详情页 ===================== */
.pdp { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 70px); align-items: start; }
.pdp-media { position: sticky; top: calc(var(--header-h) + 24px); }
.pdp-media .main { border-radius: var(--radius); overflow: hidden; background: var(--paper-2); aspect-ratio: 1; }
.pdp-media .main img { width: 100%; height: 100%; object-fit: cover; }
.pdp-media .thumbs { display: flex; gap: 12px; margin-top: 14px; }
.pdp-media .thumbs button { width: 82px; height: 82px; border-radius: 12px; overflow: hidden; border: 2px solid transparent; padding: 0; }
.pdp-media .thumbs button.active { border-color: var(--gold); }
.pdp-media .thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pdp-info .eyebrow { color: var(--burgundy); }
.pdp-info h1 { margin: 14px 0 8px; }
.pdp-rating { display: flex; align-items: center; gap: 10px; margin: 8px 0 20px; font-size: .9rem; color: var(--muted); }
.stars { color: var(--gold); letter-spacing: 2px; }
.pdp-info .desc { color: var(--ink-soft); font-size: 1.02rem; }
.pdp-specs { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0; }
.pdp-specs .pill { background: var(--paper-2); color: var(--ink-soft); font-weight: 600; }

/* 购买盒 */
.buy-box {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px; margin-top: 26px;
  box-shadow: var(--shadow-sm);
}
.buy-box .price-row { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.buy-box .price .now { font-size: 2rem; }
.buy-box .price .was { font-size: 1.15rem; }
.sub-option {
  display: flex; align-items: center; gap: 14px;
  margin-top: 20px; padding: 16px;
  border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  cursor: pointer; transition: border-color .16s, background .16s;
}
.sub-option:has(input:checked) { border-color: var(--gold); background: var(--gold-pale); }
.sub-option input { width: 20px; height: 20px; accent-color: var(--burgundy); }
.sub-option .t { flex: 1; }
.sub-option .t b { display: block; font-size: .95rem; }
.sub-option .t span { font-size: .8rem; color: var(--muted); }
.sub-option .badge-save { align-self: center; }
.buy-row { display: flex; gap: 14px; margin-top: 20px; }
.buy-row .qty { flex: none; }
.buy-row .btn { flex: 1; }
.buy-note { margin-top: 16px; font-size: .82rem; color: var(--muted); text-align: center; }
.buy-assurances { display: flex; flex-wrap: wrap; gap: 14px 22px; justify-content: center; margin-top: 16px; font-size: .8rem; color: var(--ink-soft); }
.buy-assurances span { display: flex; align-items: center; gap: 7px; }
.buy-assurances .tick { color: var(--ok); font-weight: 800; }

/* 页签 */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-top: 40px; flex-wrap: wrap; }
.tab {
  padding: 13px 18px; font-weight: 700; font-size: .9rem; color: var(--muted);
  border-bottom: 2px solid transparent; margin-bottom: -1px;
  transition: color .16s, border-color .16s;
}
.tab.active { color: var(--burgundy); border-color: var(--burgundy); }
.tab-panel { display: none; padding: 28px 0; color: var(--ink-soft); }
.tab-panel.active { display: block; }
.spec-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.spec-table th, .spec-table td { text-align: left; padding: 13px 12px; border-bottom: 1px solid var(--line); }
.spec-table th { width: 42%; color: var(--ink-soft); font-weight: 600; }
.spec-table tr:first-child th, .spec-table tr:first-child td { border-top: 1px solid var(--line); }
@media (max-width: 860px) { .pdp { grid-template-columns: 1fr; } .pdp-media { position: static; } }

/* ===================== 分屏内容块 ===================== */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 80px); align-items: center; }
.split.rev .split-media { order: 2; }
.split-media img { border-radius: var(--radius); width: 100%; aspect-ratio: 4/5; object-fit: cover; box-shadow: var(--shadow); }
.split-copy h2 { margin-top: 16px; }
.split-copy p { margin-top: 16px; color: var(--ink-soft); }
.split-copy .check-list { margin-top: 24px; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split.rev .split-media { order: 0; } }

/* ===================== 数据卡（深勃艮第） ===================== */
.stats-band { background: var(--burgundy); color: #f3e6d6; }
.stats-band .section-head h2 { color: #fff; }
.stats-band .section-head p { color: #d8bfa8; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat { text-align: center; padding: 10px; }
.stat .num {
  font-family: var(--font-serif); font-size: clamp(2.4rem, 4.5vw, 3.6rem);
  color: var(--gold); font-weight: 500; line-height: 1;
}
.stat .num small { font-size: .5em; }
.stat .lbl { margin-top: 10px; font-size: .85rem; letter-spacing: .04em; color: #d8bfa8; }
@media (max-width: 860px) { .stats-grid { grid-template-columns: 1fr 1fr; } }

/* ===================== 专家 / 团队 ===================== */
.expert-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.expert-card { text-align: center; padding: 34px 26px; }
.expert-card .avatar {
  width: 96px; height: 96px; margin: 0 auto 18px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--burgundy); color: var(--gold-soft);
  font-family: var(--font-serif); font-size: 1.9rem;
}
.expert-card .avatar.avatar-photo { background: var(--paper-2); padding: 0; }
.expert-card .avatar.avatar-photo img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }
.expert-card h3 { font-size: 1.2rem; }
.expert-card .role { color: var(--burgundy); font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin-top: 4px; }
.expert-card p { margin-top: 12px; font-size: .9rem; color: var(--muted); }
@media (max-width: 860px) { .expert-grid { grid-template-columns: 1fr; } }

/* ===================== 评价 ===================== */
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.review-card { padding: 28px; }
.review-card .stars { font-size: 1rem; }
.review-card .quote { margin: 14px 0; color: var(--ink-soft); font-size: .95rem; }
.review-card .who { display: flex; align-items: center; gap: 10px; font-size: .85rem; }
.review-card .who .avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--gold-pale); color: var(--gold-deep); display: grid; place-items: center; font-weight: 700; }
.review-card .who .v { color: var(--ok); font-weight: 700; font-size: .74rem; }
@media (max-width: 860px) { .reviews-grid { grid-template-columns: 1fr; } }

/* ===================== 订阅 / 通讯 ===================== */
.newsletter {
  background: var(--burgundy);
  color: #f3e6d6;
  text-align: center;
}
.newsletter h2 { color: #fff; }
.newsletter p { color: #d8bfa8; margin-top: 12px; }
.newsletter form {
  display: flex; gap: 10px; max-width: 480px; margin: 30px auto 0;
}
.newsletter form .input { flex: 1; border: 0; }
.newsletter form .btn { flex: none; }
@media (max-width: 560px) { .newsletter form { flex-direction: column; } .newsletter form .btn { width: 100%; } }

/* ===================== 购物袋页 ===================== */
.cart-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: 36px; align-items: start; }
.cart-lines .mini-line { padding: 20px 0; }
.cart-lines .mini-line img { width: 88px; height: 88px; }
.summary-box {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px; position: sticky; top: calc(var(--header-h) + 24px);
}
.summary-box .row { display: flex; justify-content: space-between; padding: 9px 0; font-size: .95rem; color: var(--ink-soft); }
.summary-box .row.grand { border-top: 1px solid var(--line); margin-top: 12px; padding-top: 18px; font-weight: 800; color: var(--ink); font-size: 1.15rem; }
.summary-box .row.grand .tot { font-family: var(--font-serif); font-size: 1.4rem; }
.summary-box .note { font-size: .8rem; color: var(--muted); margin-top: 14px; }
@media (max-width: 860px) { .cart-layout { grid-template-columns: 1fr; } .summary-box { position: static; } }

/* ===================== 结账页 ===================== */
.checkout-layout { display: grid; grid-template-columns: 1.5fr 1fr; gap: 40px; align-items: start; }
.checkout-form .field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.checkout-form .field-grid .full { grid-column: 1 / -1; }
.checkout-sec { margin-bottom: 30px; }
.checkout-sec h3 { font-size: 1.2rem; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.pay-methods { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.pay-methods span {
  padding: 10px 16px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  font-weight: 700; font-size: .85rem; color: var(--ink-soft);
}
.pay-methods span.active { border-color: var(--burgundy); color: var(--burgundy); background: var(--paper); }
@media (max-width: 900px) { .checkout-layout { grid-template-columns: 1fr; } .checkout-form .field-grid { grid-template-columns: 1fr; } }

/* ===================== 成功页 ===================== */
.success-wrap { text-align: center; max-width: 560px; margin: 40px auto; }
.success-check {
  width: 84px; height: 84px; margin: 0 auto 24px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--ok-soft); color: var(--ok);
}
.success-check svg { width: 44px; height: 44px; }

/* ===================== 文章/科学页 ===================== */
.article-prose { max-width: 720px; margin-inline: auto; }
.article-prose p { margin-top: 18px; color: var(--ink-soft); }
.article-prose h2 { margin-top: 44px; }
.article-prose h3 { margin-top: 30px; }
.article-prose .key-box {
  margin: 28px 0; padding: 26px 28px;
  background: var(--gold-pale); border-radius: var(--radius);
  border-left: 4px solid var(--gold);
}
.article-prose .key-box h4 { font-family: var(--font-sans); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-deep); margin-bottom: 10px; }
.article-prose .ref { font-size: .8rem; color: var(--faint); }
.article-hero { background: var(--paper-2); padding: clamp(48px, 8vw, 90px) 0; text-align: center; }
.article-hero .meta { color: var(--muted); font-size: .85rem; margin-top: 16px; }

/* ===================== 政策页 ===================== */
.policy-list { counter-reset: pol; max-width: 760px; margin-inline: auto; }
.policy-list li { counter-increment: pol; padding: 18px 0 18px 44px; position: relative; border-bottom: 1px solid var(--line); color: var(--ink-soft); }
.policy-list li::before {
  content: counter(pol); position: absolute; left: 0; top: 20px;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--burgundy); color: var(--gold-soft);
  display: grid; place-items: center; font-size: .82rem; font-weight: 700;
}
