/* WYAKC 商品选择交互 · 2026-11-19 本地预览
   视觉对齐现行官网：深底、描金、胶囊按钮、衬线标题。 */

body.choose-page {
  color-scheme: dark;
  --bg: #080908;
  --bg-deep: #030403;
  --surface: rgba(22, 23, 20, 0.74);
  --surface-solid: #151614;
  --text: #f1f0ea;
  --muted: #a6a59e;
  --muted-strong: #cac9c1;
  --line: rgba(241, 240, 234, 0.12);
  --gold: #c9b279;
  --gold-soft: #e3d3a9;
  --radius-lg: 32px;
  --radius-md: 22px;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.34);
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 87% 6%, rgba(201, 178, 121, 0.1), transparent 28rem),
    radial-gradient(circle at 8% 24%, rgba(155, 199, 163, 0.07), transparent 30rem),
    linear-gradient(160deg, #0a0b09 0%, var(--bg) 44%, #0b0c0a 100%);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

body.choose-page a { color: inherit; text-decoration: none; }
body.choose-page img { max-width: 100%; display: block; }
body.choose-page button, body.choose-page a, body.choose-page input { font: inherit; }

body.choose-page .page {
  width: min(1480px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 80px;
}

body.choose-page .nav {
  position: sticky;
  top: max(14px, env(safe-area-inset-top));
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 72px;
  margin: 14px 0 0;
  padding: 12px 14px 12px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(12, 13, 11, 0.78);
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px) saturate(125%);
}

body.choose-page .brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

body.choose-page .brand-logo {
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  border: 1px solid rgba(241, 240, 234, 0.68);
  border-radius: 50%;
  object-fit: cover;
  background: #111;
}

body.choose-page .brand strong {
  display: block;
  color: var(--text);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.055em;
  line-height: 1.05;
}

body.choose-page .brand small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1;
}

body.choose-page .nav-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

body.choose-page .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 17px;
  border: 1px solid rgba(241, 240, 234, 0.16);
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  text-decoration: none;
  font-size: 14px;
  font-weight: 650;
}

body.choose-page .button:focus-visible,
.product-chooser .button:focus-visible,
.chooser-card:focus-visible {
  outline: 2px solid var(--gold-soft, #e3d3a9);
  outline-offset: 4px;
}

body.choose-page .button.ghost {
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--gold-soft);
  min-height: 38px;
  padding: 0 8px;
}

body.choose-page .button.primary,
.product-chooser .button.primary {
  position: relative;
  overflow: hidden;
  border-color: rgba(227, 211, 169, 0.62);
  background: linear-gradient(110deg, #e8d7ae, #c9b279 55%, #b79d62);
  color: #1a1812;
}

body.choose-page .button.primary.large,
.product-chooser .button.large {
  min-height: 52px;
  padding: 0 24px;
  font-size: 15px;
}

body.choose-page .button.secondary,
.product-chooser .button.secondary {
  border-color: rgba(241, 240, 234, 0.28);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text, #f1f0ea);
}

body.choose-page .footer {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 48px 4% 0;
  color: #777971;
  font-size: 13px;
}

body.choose-page .footer img {
  width: 28px;
  height: 28px;
  border: 1px solid rgba(201, 178, 121, 0.36);
  border-radius: 50%;
  object-fit: cover;
}

/* -------- 选择组件（首页与独立页共用） -------- */

.product-chooser {
  --gold: #c9b279;
  --gold-soft: #e3d3a9;
  --text: #f1f0ea;
  --muted: #a6a59e;
  --muted-strong: #cac9c1;
  --line: rgba(241, 240, 234, 0.12);
  padding: clamp(28px, 5vw, 56px) 4.5% 36px;
}

.chooser-intro .eyebrow,
.chooser-intro .section-kicker {
  display: inline-flex;
  align-items: center;
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.chooser-intro h1,
.chooser-intro h2 {
  max-width: 18em;
  margin: 12px 0 0;
  color: #ead8ae;
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.chooser-intro p {
  max-width: 40em;
  margin: 14px 0 0;
  color: var(--muted-strong);
  font-size: 16px;
  line-height: 1.8;
}

.chooser-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 22px;
  align-items: stretch;
  margin-top: 28px;
}

.chooser-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.chooser-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(241, 240, 234, 0.14);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015)), #121311;
  color: inherit;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.chooser-card:hover {
  border-color: rgba(201, 178, 121, 0.45);
  transform: translateY(-2px);
}

.chooser-card.is-active {
  border-color: rgba(227, 211, 169, 0.82);
  background: linear-gradient(180deg, rgba(201, 178, 121, 0.16), rgba(201, 178, 121, 0.03) 42%, #121311);
  box-shadow: 0 0 0 1px rgba(201, 178, 121, 0.4), 0 22px 50px rgba(0, 0, 0, 0.28);
}

.chooser-card-media {
  position: relative;
  background: #0b0c0a;
}

.chooser-card-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  max-height: 230px;
  object-fit: cover;
  object-position: center 42%;
}

.chooser-card-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 18px 18px;
  flex: 1;
}

.chooser-kicker {
  color: var(--gold);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.chooser-card-body strong {
  color: var(--text);
  font-size: 18px;
  font-weight: 750;
  line-height: 1.3;
}

.chooser-card-body p {
  margin: 0;
  color: var(--muted-strong);
  font-size: 14px;
  line-height: 1.7;
}

.chooser-card-body em {
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
  line-height: 1.65;
}

.chooser-price {
  margin-top: auto;
  padding-top: 10px;
  color: var(--gold-soft);
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
  font-size: 22px;
}

.chooser-panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 100%;
  padding: 22px 22px 20px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(22, 23, 20, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.chooser-confirm {
  margin: 0;
  color: var(--text);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
}

.chooser-notes {
  color: var(--muted-strong);
  font-size: 14px;
  line-height: 1.8;
}

.chooser-notes p { margin: 0 0 10px; }
.chooser-notes p:last-child { margin-bottom: 0; }

.chooser-panel .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: auto;
  border-radius: 999px;
  text-align: center;
}

.chooser-panel .button.is-disabled,
.chooser-panel .button[aria-disabled="true"] {
  background: #30312b;
  border-color: #30312b;
  color: #909186;
  pointer-events: none;
  cursor: not-allowed;
}

.chooser-panel .button.secondary { width: 100%; }

/* 首页首屏与香片/P4 区块补充 */

.choose-hero {
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(241, 240, 234, 0.08);
}

.p4-intro {
  margin-top: clamp(36px, 6vw, 72px);
}

.p4-intro .p4-entry-prices span b { font-weight: 600; }

.safety-line {
  margin: 0 0 16px;
  padding: 12px 14px;
  border: 1px solid rgba(201, 178, 121, 0.28);
  border-radius: 14px;
  background: rgba(201, 178, 121, 0.08);
  color: var(--muted-strong, #cac9c1);
  font-size: 14px;
  line-height: 1.7;
}

.product-distinguish {
  margin: 0 0 16px;
  color: var(--muted, #a6a59e);
  font-size: 14px;
  line-height: 1.75;
}

.xiangpian-block {
  margin-top: clamp(48px, 7vw, 96px);
  padding-top: 8px;
  border-top: 1px solid rgba(241, 240, 234, 0.08);
  scroll-margin-top: 96px;
}

.xiangpian-head {
  padding: 36px 4.5% 0;
}

.xiangpian-head h2 {
  margin: 10px 0 0;
  color: #ead8ae;
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 500;
}

.nav-actions {
  flex-wrap: wrap;
}

.nav-keep { display: inline-flex !important; }

@media (max-width: 980px) {
  .chooser-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  body.choose-page .page { width: min(100% - 24px, 620px); }
  body.choose-page .nav {
    flex-direction: column;
    align-items: flex-start;
    border-radius: 24px;
  }
  body.choose-page .nav-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }
  .chooser-grid { grid-template-columns: 1fr; }
  .chooser-card:first-child { order: 0; }
  .product-chooser { padding: 18px 0 12px; }
  .chooser-intro h1, .chooser-intro h2 { font-size: clamp(26px, 8vw, 36px); }
  .chooser-intro p { font-size: 14px; }
  .chooser-card-media img { max-height: 180px; aspect-ratio: 16 / 10; }
  .chooser-card-body { padding: 12px 14px 14px; }
  .chooser-card-body strong { font-size: 16px; }
}


@media (max-width: 620px) {
  /* 首页原样式会隐藏 ghost 导航；商品分流入口始终保留 */
  .nav-actions .button.nav-keep { display: inline-flex !important; }
}
