/* ============ Tokens ============ */
:root {
  --bg: #f6f5f2;
  --bg-2: #ffffff;
  --card: rgba(255, 255, 255, 0.8);
  --card-solid: #ffffff;
  --line: rgba(20, 20, 30, 0.08);
  --line-2: rgba(20, 20, 30, 0.14);
  --text: #14141a;
  --text-2: #55566a;
  --text-3: #6b6c7e;
  --accent: #ff4d4f;
  --accent-a: #ff7a45;
  --accent-b: #ff2d6f;
  --accent-soft: rgba(255, 77, 79, 0.1);
  --good: #10b981;
  /* 小字号文字用的深色版本，均满足 4.5:1 */
  --accent-ink: #c8282e;
  --good-ink: #0b7f58;
  --orange-ink: #b23a0b;
  /* 带白字的渐变按钮，两端对白字均 ≥ 4.5:1 */
  --btn-a: #d2401f;
  --btn-b: #d91f5c;
  --shadow: 0 1px 2px rgba(16, 16, 24, .04), 0 8px 24px -10px rgba(16, 16, 24, .12);
  --shadow-lg: 0 30px 80px -20px rgba(16, 16, 24, .35);
  --aurora-1: rgba(255, 122, 69, .26);
  --aurora-2: rgba(255, 45, 111, .16);
  --aurora-3: rgba(99, 102, 241, .14);
  --radius: 18px;
  --top: 72px;
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "HarmonyOS Sans SC", "MiSans", "Microsoft YaHei", "Segoe UI", sans-serif;
  --num: "DIN Alternate", "Bahnschrift", "SF Pro Display", -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b0c10; --bg-2: #111218; --card: rgba(22, 23, 31, .74); --card-solid: #16171f;
    --line: rgba(255, 255, 255, .07); --line-2: rgba(255, 255, 255, .14);
    --text: #f3f3f6; --text-2: #a5a6b8; --text-3: #8f90a3;
    --accent-ink: #ff6b6d; --good-ink: #34d399; --orange-ink: #ff9466;
    --accent-soft: rgba(255, 77, 79, .14);
    --shadow: 0 1px 0 rgba(255, 255, 255, .04) inset, 0 10px 30px -12px rgba(0, 0, 0, .6);
    --shadow-lg: 0 40px 100px -20px rgba(0, 0, 0, .8);
    --aurora-1: rgba(255, 122, 69, .18); --aurora-2: rgba(255, 45, 111, .14); --aurora-3: rgba(99, 102, 241, .16);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0b0c10; --bg-2: #111218; --card: rgba(22, 23, 31, .74); --card-solid: #16171f;
  --line: rgba(255, 255, 255, .07); --line-2: rgba(255, 255, 255, .14);
  --text: #f3f3f6; --text-2: #a5a6b8; --text-3: #8f90a3;
    --accent-ink: #ff6b6d; --good-ink: #34d399; --orange-ink: #ff9466;
  --accent-soft: rgba(255, 77, 79, .14);
  --shadow: 0 1px 0 rgba(255, 255, 255, .04) inset, 0 10px 30px -12px rgba(0, 0, 0, .6);
  --shadow-lg: 0 40px 100px -20px rgba(0, 0, 0, .8);
  --aurora-1: rgba(255, 122, 69, .18); --aurora-2: rgba(255, 45, 111, .14); --aurora-3: rgba(99, 102, 241, .16);
  color-scheme: dark;
}

/* ============ Base ============ */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scrollbar-gutter: stable; scroll-padding-top: calc(var(--top) + 64px); }
body {
  margin: 0; background: var(--bg); color: var(--text); font-family: var(--font);
  font-size: 15px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; padding: 0; }
svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
kbd {
  font-family: var(--num); font-size: 11px; padding: 2px 6px; border-radius: 6px; line-height: 1.4;
  border: 1px solid var(--line-2); color: var(--text-3); background: var(--bg-2);
}
.wrap { width: min(1240px, 100% - 40px); margin-inline: auto; }
[hidden] { display: none !important; }
.num { font-family: var(--num); font-variant-numeric: tabular-nums; }
.m-only { display: none !important; }

.aurora { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.aurora i { position: absolute; border-radius: 50%; filter: blur(90px); transition: background-color 1.2s ease; }
/* 头图在视野内时，背景光晕跟随当前精选的品牌色（--hc / --hc2 由 app.js 设置） */
html.tint .aurora i:nth-child(1) { background-color: color-mix(in srgb, var(--hc) 30%, transparent); }
html.tint .aurora i:nth-child(2) { background-color: color-mix(in srgb, var(--hc2) 22%, transparent); }
:root[data-theme="dark"].tint .aurora i:nth-child(1) { background-color: color-mix(in srgb, var(--hc) 22%, transparent); }
:root[data-theme="dark"].tint .aurora i:nth-child(2) { background-color: color-mix(in srgb, var(--hc2) 16%, transparent); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]).tint .aurora i:nth-child(1) { background-color: color-mix(in srgb, var(--hc) 22%, transparent); }
  :root:not([data-theme="light"]).tint .aurora i:nth-child(2) { background-color: color-mix(in srgb, var(--hc2) 16%, transparent); }
}
.aurora i:nth-child(1) { width: 620px; height: 620px; background: var(--aurora-1); top: -300px; left: -160px; animation: drift 22s ease-in-out infinite alternate; }
.aurora i:nth-child(2) { width: 520px; height: 520px; background: var(--aurora-2); top: -240px; right: -140px; animation: drift 26s ease-in-out infinite alternate-reverse; }
.aurora i:nth-child(3) { width: 560px; height: 560px; background: var(--aurora-3); top: 280px; left: 40%; animation: drift 30s ease-in-out infinite alternate; }
@keyframes drift { to { transform: translate(60px, 40px) scale(1.1); } }

/* ============ Topbar ============ */
html.scrolled { --top: 62px; }
.topbar {
  position: sticky; top: 0; z-index: 30;
  backdrop-filter: saturate(180%) blur(18px); -webkit-backdrop-filter: saturate(180%) blur(18px);
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  border-bottom: 1px solid transparent; transition: border-color .2s;
}
.topbar.scrolled { border-bottom-color: var(--line); }
.topbar-inner { display: flex; align-items: center; gap: 20px; height: var(--top); transition: height .25s ease; }
.logo { display: flex; align-items: center; gap: 12px; flex: none; }
.logo-mark {
  width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; flex: none; color: #fff; font-weight: 800; font-size: 18px;
  background: linear-gradient(140deg, var(--accent-a), var(--accent-b) 55%, #a855f7);
  box-shadow: 0 10px 24px -10px var(--accent-b), inset 0 1px 0 rgba(255, 255, 255, .35);
  transition: transform .25s;
}
@media (hover: hover) { .logo:hover .logo-mark { transform: rotate(-6deg) scale(1.04); } }
.logo-mark svg { width: 26px; height: 26px; stroke-width: 2.8; }
.logo-mark svg.mk { width: 100%; height: 100%; }
.logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.logo-text b { font-size: 18px; font-weight: 800; letter-spacing: .5px; }
.logo-text small { font-size: 12px; color: var(--text-3); letter-spacing: .3px; }

.pillnav {
  display: flex; align-items: center; gap: 2px; padding: 4px; margin-left: 12px; border-radius: 999px;
  background: var(--card); border: 1px solid var(--line); box-shadow: 0 1px 2px rgba(16, 16, 24, .03);
}
.pillnav a {
  height: 36px; padding: 0 16px; border-radius: 999px; display: inline-flex; align-items: center; gap: 6px;
  font-size: 14.5px; color: var(--text-2); white-space: nowrap; transition: color .15s, background .15s;
}
@media (hover: hover) { .pillnav a:hover { color: var(--text); background: var(--line); } }
.pillnav a.on { color: var(--accent-ink); background: var(--card-solid); box-shadow: 0 1px 2px rgba(16, 16, 24, .06), 0 4px 12px -6px rgba(16, 16, 24, .18); }
.pillnav a svg { width: 16px; height: 16px; }
.pillnav .coupon i {
  font-style: normal; font-size: 11.5px; font-weight: 700; color: #fff; margin: 0 4px; padding: 1px 4px; border-radius: 5px;
  background: linear-gradient(135deg, var(--btn-a), var(--btn-b));
}
.top-search {
  flex: 0 1 340px; margin-left: auto; height: 44px; padding: 0 8px 0 16px; display: flex; align-items: center; gap: 10px;
  border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--text-3); font-size: 14px;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
@media (hover: hover) { .top-search:hover { background: var(--card-solid); border-color: color-mix(in srgb, var(--accent) 35%, var(--line-2)); box-shadow: 0 0 0 4px var(--accent-soft); } }
.top-search span { flex: 1; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top-search kbd { min-width: 24px; text-align: center; }
.top-actions { display: flex; gap: 8px; align-items: center; flex: none; }
.icon-btn {
  height: 38px; min-width: 38px; padding: 0 10px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid var(--line); background: var(--card); color: var(--text-2); transition: color .15s, background-color .15s, border-color .15s, box-shadow .15s, transform .15s ease-out;
}
@media (hover: hover) { .icon-btn:hover { color: var(--text); border-color: var(--line-2); } }
.m-coupon { font-weight: 800; font-size: 13px; color: #fff; border: 0; background: linear-gradient(135deg, var(--btn-a), var(--btn-b)); }
.i-moon { display: none; }
:root[data-theme="dark"] .i-sun { display: none; }
:root[data-theme="dark"] .i-moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .i-sun { display: none; }
  :root:not([data-theme="light"]) .i-moon { display: block; }
}

/* ============ 本期精选：杂志式头图 ============ */
@property --c { syntax: '<color>'; inherits: true; initial-value: #ff7a45; }
.stage-wrap { padding-top: 28px; }
.stage {
  --c: #ff7a45;
  /* 品牌色往黑（深色模式往白）压一点，保证大号价格的对比度 */
  --c-ink: color-mix(in oklab, var(--c) 74%, #000);
  position: relative; transition: --c .8s ease;
}
:root[data-theme="dark"] .stage { --c-ink: color-mix(in oklab, var(--c) 68%, #fff); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .stage { --c-ink: color-mix(in oklab, var(--c) 68%, #fff); } }
.stage-main { touch-action: pan-y; }
.slide {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 380px); align-items: end; gap: 56px;
  min-height: 300px; padding: 8px 0 34px; cursor: pointer; color: inherit;
}
.s-text { min-width: 0; }
.s-eyebrow { display: flex; align-items: baseline; gap: 14px; margin: 0 0 18px; font-size: 12.5px; letter-spacing: .12em; color: var(--text-3); white-space: nowrap; overflow: hidden; }
.s-eyebrow > .bi, .s-eyebrow > .bi-pair { align-self: center; margin-right: 2px; }
.s-eyebrow .bi { width: 30px; height: 30px; border-radius: 9px; font-size: 12px; box-shadow: 0 0 0 1px var(--line); }
.s-eyebrow .bi-pair .bi + .bi { margin-left: -9px; box-shadow: 0 0 0 2px var(--bg); }
.s-rank { font-family: var(--num); font-weight: 700; color: var(--text); letter-spacing: .14em; }
.s-name {
  margin: 0; font-size: clamp(44px, 6.4vw, 88px); line-height: 1.04; font-weight: 850; letter-spacing: -.035em;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; text-wrap: balance; word-break: keep-all;
}
.s-tag { margin: 18px 0 0; max-width: 34em; font-size: 17px; line-height: 1.6; color: var(--text-2); text-wrap: pretty;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.s-cta { display: flex; align-items: center; gap: 18px; margin-top: 30px; min-width: 0; }
.btn.dark { height: 50px; padding: 0 26px; border-radius: 999px; font-size: 15.5px; color: var(--bg); background: var(--text); flex: none; }
.btn.dark svg { width: 18px; height: 18px; transition: transform .2s; }
@media (hover: hover) { .slide:hover .btn.dark svg { transform: translateX(4px); } }
.s-sub { font-size: 13.5px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }

.s-side { min-width: 0; text-align: right; padding-bottom: 6px; }
.s-big { font-family: var(--num); font-weight: 800; font-size: clamp(64px, 7.4vw, 104px); line-height: .9; letter-spacing: -.045em; color: var(--c-ink); white-space: nowrap; }
.s-big small { font-size: .36em; font-weight: 700; letter-spacing: 0; margin-right: .12em; vertical-align: .9em; }
.s-big .unit { font-size: 17px; font-weight: 500; letter-spacing: 0; color: var(--text-3); margin-left: 6px; font-family: var(--font); }
.s-meta { margin: 14px 0 0; font-size: 14px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.s-meta b { color: var(--text); font-weight: 700; }
.s-meta s { color: var(--text-3); }
.s-meta i { font-style: normal; margin: 0 8px; color: var(--text-3); }
.s-trend { position: relative; height: 44px; margin-top: 26px; }
.s-trend svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.s-trend path { fill: none; vector-effect: non-scaling-stroke; }
.t-base { stroke: var(--line-2); stroke-width: 1; }
.t-line { stroke: var(--c); stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; }
.t-dot { position: absolute; width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 20%, transparent); }
.t-max, .t-end { position: absolute; font-family: var(--num); font-size: 11px; letter-spacing: .06em; color: var(--text-3); line-height: 1; }
.t-max { left: 0; top: -14px; }
.t-end { right: 0; bottom: -16px; }

/* 切换动画：只做淡入位移，克制 */
.slide.enter .s-text > *, .slide.enter .s-side > * { animation: sIn .6s cubic-bezier(.2, .8, .2, 1) both; }
.slide.enter .s-text > :nth-child(2) { animation-delay: .04s; }
.slide.enter .s-text > :nth-child(3) { animation-delay: .08s; }
.slide.enter .s-text > :nth-child(4) { animation-delay: .12s; }
.slide.enter .s-side > :nth-child(1) { animation-delay: .06s; }
.slide.enter .s-side > :nth-child(2) { animation-delay: .12s; }
.slide.enter .s-side > :nth-child(3) { animation-delay: .18s; }
.slide.enter.back .s-text > *, .slide.enter.back .s-side > * { animation-name: sInBack; }
@keyframes sIn { from { opacity: 0; transform: translate(16px, 6px); } }
@keyframes sInBack { from { opacity: 0; transform: translate(-16px, 6px); } }

/* 编号索引条 */
.stage-bar { display: flex; align-items: stretch; border-top: 1px solid var(--line-2); }
.thumbs { flex: 1; min-width: 0; display: flex; overflow-x: auto; scrollbar-width: none; scroll-behavior: smooth; }
.thumbs::-webkit-scrollbar { display: none; }
.th {
  position: relative; flex: 1 0 0; min-width: 140px; display: flex; align-items: center; gap: 10px; padding: 16px 18px 14px 0;
  text-align: left; color: var(--text-3); border-radius: 0;
}
.th-n { font-family: var(--num); font-size: 12px; font-weight: 600; letter-spacing: .08em; }
.th > .bi, .th > .bi-pair { align-self: center; }
.th .bi { box-shadow: 0 0 0 1px var(--line); }
.th .bi-pair .bi.xs + .bi.xs { box-shadow: 0 0 0 2px var(--bg); }
.th:not(.on) .bi { filter: saturate(.6); opacity: .8; transition: filter .2s, opacity .2s; }
@media (hover: hover) { .th:hover .bi { filter: none; opacity: 1; } }
.th-t { min-width: 0; line-height: 1.4; align-self: center; }
.th-t b { display: block; font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color .2s; }
.th-t span { font-family: var(--num); font-size: 12px; }
@media (hover: hover) { .th:hover .th-t b { color: var(--text); } }
.th.on .th-n, .th.on .th-t b { color: var(--text); }
.th .prog { position: absolute; left: 0; right: 18px; top: -1px; height: 2px; overflow: hidden; opacity: 0; }
.th.on .prog { opacity: 1; }
.th.on .prog i { display: block; height: 100%; background: var(--c); transform-origin: left; animation: prog var(--dur, 6s) linear forwards; }
@keyframes prog { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.stage.hold .th.on .prog i, .stage.stopped .th.on .prog i { animation-play-state: paused; }
.th-pause {
  flex: none; align-self: center; width: 32px; height: 32px; margin-left: 8px; border-radius: 999px; display: grid; place-items: center;
  color: var(--text-3); border: 1px solid var(--line-2);
}
@media (hover: hover) { .th-pause:hover { color: var(--text); border-color: var(--text-3); } }
.th-pause svg { width: 13px; height: 13px; stroke-width: 2.6; }
.th-pause .i-play { display: none; fill: currentColor; }
.stage.stopped .th-pause .i-play { display: block; }
.stage.stopped .th-pause .i-pause { display: none; }

/* ============ 降价播报 ============ */
/* 降价播报：轻量的一行，限定在内容宽度内，两端渐隐 */
.ticker { display: flex; align-items: center; gap: 12px; height: 48px; margin-top: 20px; }
.tk-label {
  flex: none; display: inline-flex; align-items: center; gap: 7px; height: 28px; padding: 0 11px 0 9px; border-radius: 999px;
  font-size: 12.5px; font-weight: 600; color: var(--text-2); background: var(--card); border: 1px solid var(--line);
}
.live { position: relative; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.live::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1.5px solid var(--accent); opacity: 0; animation: live 2s ease-out infinite; }
@keyframes live { 0% { transform: scale(.4); opacity: .7; } 100% { transform: scale(1.4); opacity: 0; } }
.ticker-track { flex: 1; min-width: 0; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.ticker-move { display: flex; width: max-content; animation: marquee 60s linear infinite; }
@media (hover: hover) { .ticker:hover .ticker-move { animation-play-state: paused; } }
@keyframes marquee { to { transform: translateX(-50%); } }
.tk { display: inline-flex; align-items: center; gap: 6px; padding: 0 24px; font-size: 13.5px; white-space: nowrap; color: var(--text-2); cursor: pointer; transition: color .15s; }
@media (hover: hover) { .tk:hover { color: var(--text); } .tk:hover .nm { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-2); } }
.tk > svg { flex: none; width: 13px; height: 13px; stroke: var(--accent-a); stroke-width: 2.4; }
.tk .now { color: var(--orange-ink); font-family: var(--num); font-weight: 700; font-size: 14.5px; letter-spacing: .01em; }
.tk .u { color: var(--text-3); font-size: 12px; margin-left: -4px; }
.tk s { color: var(--text-3); font-family: var(--num); font-size: 12px; }
.tk .drop {
  font-style: normal; font-size: 12px; font-weight: 600; line-height: 18px; padding: 1px 7px; border-radius: 999px;
  color: var(--orange-ink); background: color-mix(in srgb, var(--accent-a) 12%, transparent); font-family: var(--num);
}
.tk.fresh .drop { background: color-mix(in srgb, var(--accent-a) 20%, transparent); }

/* Brand icon */
.bi {
  --c: #888;
  width: 48px; height: 48px; border-radius: 14px; flex: none; display: grid; place-items: center; position: relative;
  color: #fff; font-weight: 800; font-size: 18px; letter-spacing: -.5px; line-height: 1;
  background: linear-gradient(140deg, color-mix(in srgb, var(--c) 78%, #fff), var(--c));
  box-shadow: 0 8px 20px -10px var(--c), inset 0 1px 0 rgba(255, 255, 255, .3);
}
.bi.sm { width: 36px; height: 36px; border-radius: 10px; font-size: 14px; }
.bi.xs { width: 22px; height: 22px; border-radius: 6px; font-size: 10px; }
.bi.lg { width: 64px; height: 64px; border-radius: 18px; font-size: 24px; }
.bi-pair { display: flex; flex: none; }
.bi-pair .bi + .bi { margin-left: -14px; box-shadow: 0 0 0 3px var(--card-solid), 0 8px 20px -10px var(--c); }
.bi-pair .bi.xs + .bi.xs { margin-left: -8px; box-shadow: 0 0 0 2px var(--card-solid); }
.card > .bi, .card > .bi-pair { grid-area: icon; }
/* 填了品牌图标图片时：加载成功才替换文字图标，失败则保留文字 */
.bi i { font-style: normal; }
.bi img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; opacity: 0; transition: opacity .2s; }
.bi.logo-ok { background: #fff; }
.bi.logo-ok img { opacity: 1; }
.bi.logo-ok i { visibility: hidden; }

/* ============ Toolbar ============ */
.toolbar {
  position: sticky; top: var(--top); z-index: 20; display: flex; align-items: center; gap: 12px; padding: 14px 0 12px;
}
/* 平时透明，与页面背景的光晕融为一体；吸顶后才出现与顶栏一致的毛玻璃底 */
.toolbar::before {
  content: ""; position: absolute; inset: 0 calc(50% - 50vw); z-index: -1; opacity: 0; pointer-events: none;
  backdrop-filter: saturate(180%) blur(18px); -webkit-backdrop-filter: saturate(180%) blur(18px);
  background: color-mix(in srgb, var(--bg) 72%, transparent); border-bottom: 1px solid var(--line);
  transition: opacity .2s ease-out;
}
.toolbar.stuck::before { opacity: 1; }
.chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; flex: 1; min-width: 0; scroll-snap-type: x proximity; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; height: 34px; padding: 0 14px; border-radius: 999px; font-size: 14px; border: 1px solid var(--line);
  background: var(--card); color: var(--text-2); transition: color .15s, background-color .15s, border-color .15s, box-shadow .15s, transform .15s ease-out; white-space: nowrap; scroll-snap-align: start;
}
@media (hover: hover) { .chip:hover { border-color: var(--line-2); color: var(--text); } }
.chip.on { border-color: transparent; color: var(--bg); background: var(--text); }
.chip.bundle.on { color: #fff; background: linear-gradient(135deg, var(--btn-a), var(--btn-b)); }
.chip .n { font-family: var(--num); font-size: 12px; opacity: .6; margin-left: 4px; }
.chip-sep { flex: none; width: 1px; height: 18px; background: var(--line-2); align-self: center; margin: 0 4px; }
.sort { position: relative; flex: none; display: flex; align-items: center; }
.sort svg { position: absolute; left: 10px; width: 16px; height: 16px; color: var(--text-3); pointer-events: none; }
.sort select {
  appearance: none; -webkit-appearance: none; height: 34px; padding: 0 30px 0 32px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238b8c9c' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 8px center / 14px;
  color: var(--text); font: inherit; font-size: 14px; cursor: pointer;
}

/* 即将开抢卡片 */
.card.soon-card { border-style: dashed; border-color: color-mix(in srgb, var(--accent) 45%, var(--line-2)); }
.off.soon-badge { color: #fff; background: linear-gradient(135deg, var(--btn-a), var(--btn-b)); font-family: var(--font); font-weight: 600; }
.soon-card .cd { font-family: var(--num); font-weight: 700; color: var(--accent-ink); letter-spacing: .3px; }
.soon-at { font-size: 12px; color: var(--text-3); font-family: var(--num); }

.search-state { font-size: 14px; color: var(--text-2); margin-bottom: 12px; }
.search-state button { color: var(--accent-ink); margin-left: 8px; }

/* ============ Cards ============ */
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.card {
  position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 0 12px; align-content: start;
  grid-template-areas: "icon title off" "price price price" "meta meta meta" "tags tags tags" "foot foot foot";
  padding: 18px; border-radius: var(--radius); cursor: pointer;
  background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow);
  transition: transform .25s cubic-bezier(.2, .8, .2, 1), border-color .2s, box-shadow .25s;
  animation: rise .45s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(min(var(--i, 0), 12) * 25ms);
}
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }
@media (hover: hover) { .card:hover { transform: translateY(-3px); border-color: var(--line-2); box-shadow: var(--shadow-lg); } }
.card > .bi { grid-area: icon; width: 44px; height: 44px; border-radius: 13px; font-size: 17px; }
.c-title { grid-area: title; min-width: 0; align-self: center; }
.c-title h3 { margin: 0; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.c-title p { margin: 1px 0 0; font-size: 12px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.off {
  grid-area: off; align-self: start; flex: none; padding: 2px 7px; border-radius: 7px; font-family: var(--num);
  font-size: 12.5px; font-weight: 700; color: var(--accent-ink); background: var(--accent-soft); white-space: nowrap; line-height: 1.5;
}
.c-price { grid-area: price; display: flex; align-items: baseline; gap: 6px; margin: 16px 0 4px; }
.price { font-family: var(--num); font-size: 30px; font-weight: 800; color: var(--accent); line-height: 1; letter-spacing: -1px; }
.price small { font-size: 15px; margin-right: 1px; }
.c-price .term { font-size: 13px; color: var(--text-3); }
.c-price s { font-family: var(--num); font-size: 12.5px; color: var(--text-3); }
.c-meta { grid-area: meta; display: flex; gap: 6px; flex-wrap: wrap; align-items: center; font-size: 12.5px; color: var(--text-2); }
.c-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--text-3); }
.c-meta .ch-m { display: none; }
.save { color: var(--good-ink); font-weight: 600; }
.tags { grid-area: tags; display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px; }
.tag { font-size: 11.5px; padding: 1px 7px; border-radius: 6px; background: var(--line); color: var(--text-2); }
.tag.hot { background: var(--accent-soft); color: var(--accent-ink); }
.c-foot { grid-area: foot; display: flex; align-items: center; justify-content: space-between; margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line); gap: 10px; }
.c-foot .spark { width: 88px; height: 24px; }
.ch { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--text-2); }
.ch i { width: 8px; height: 8px; border-radius: 2px; background: var(--cc); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 38px; padding: 0 16px; border-radius: 11px;
  font-size: 14px; font-weight: 600; transition: transform .15s, box-shadow .2s, filter .2s; white-space: nowrap;
}
.btn.primary { color: #fff; background: linear-gradient(135deg, var(--btn-a), var(--btn-b)); box-shadow: 0 8px 20px -8px var(--accent-b); }
@media (hover: hover) { .btn.primary:hover { filter: brightness(1.06); transform: translateY(-1px); } }
.btn.primary:disabled { opacity: .6; cursor: default; transform: none; }
.btn.ghost { border: 1px solid var(--line-2); background: var(--card); }
.btn.lg { height: 50px; font-size: 16px; border-radius: 14px; padding: 0 22px; }
.btn svg { width: 16px; height: 16px; }

.spark { display: block; width: 100%; overflow: visible; }
.spark path.l { fill: none; stroke: var(--good); stroke-width: 2; vector-effect: non-scaling-stroke; }
.spark path.a { fill: url(#sg); stroke: none; }
.spark circle { fill: var(--good); stroke: var(--card-solid); stroke-width: 2; vector-effect: non-scaling-stroke; }

.empty { text-align: center; padding: 60px 0; color: var(--text-3); }
.empty-ico { font-size: 40px; }

/* ============ 承诺 + 页脚 ============ */
.promise { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-top: 56px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--line); }
.promise div { padding: 18px 20px; background: var(--card-solid); display: flex; flex-direction: column; gap: 2px; }
.promise b { font-size: 14px; }
.promise span { font-size: 12.5px; color: var(--text-3); }
.footer { margin-top: 32px; padding: 24px 0 40px; font-size: 12.5px; color: var(--text-3); text-align: center; }
.footer p { margin: 3px 0; }

.to-top {
  position: fixed; right: 20px; bottom: 24px; z-index: 25; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: var(--card-solid); border: 1px solid var(--line-2); box-shadow: var(--shadow-lg); color: var(--text); animation: fade .2s both;
}

/* ============ 详情 ============ */
.sheet, .cmdk { position: fixed; inset: 0; z-index: 50; display: flex; justify-content: center; align-items: center; }
.sheet-backdrop { position: absolute; inset: 0; background: rgba(8, 8, 12, .5); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: fade .2s both; }
@keyframes fade { from { opacity: 0; } }
.sheet-panel {
  position: relative; width: min(540px, 100% - 32px); max-height: calc(100vh - 48px); overflow-y: auto; overscroll-behavior: contain;
  border-radius: 24px; background: var(--card-solid); border: 1px solid var(--line); box-shadow: var(--shadow-lg);
  padding: 26px; animation: pop .3s cubic-bezier(.2, .9, .25, 1.1) both;
}
@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(.97); } }
.grabber { display: none; }
.sheet-close { position: absolute; top: 16px; right: 16px; }
.d-head { display: flex; gap: 14px; align-items: center; padding-right: 44px; }
.d-head h2 { margin: 0; font-size: 21px; line-height: 1.3; }
.d-head p { margin: 2px 0 0; color: var(--text-3); font-size: 13.5px; }
.d-hero {
  margin-top: 20px; padding: 20px; border-radius: 18px; position: relative; overflow: hidden;
  background: radial-gradient(120% 120% at 100% 0%, color-mix(in srgb, var(--c) 22%, transparent), transparent 60%), var(--bg);
  border: 1px solid var(--line);
}
.d-price { display: flex; align-items: flex-end; gap: 12px; }
.d-price .price { font-size: 44px; }
.d-price .sub { display: flex; flex-direction: column; font-size: 13px; color: var(--text-3); line-height: 1.45; padding-bottom: 3px; min-width: 0; }
.d-price .off { margin-left: auto; align-self: flex-start; }
.d-hero .spark { height: 64px; margin-top: 16px; }
.d-trend { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-3); margin-top: 6px; }
.d-sec { margin-top: 20px; }
.d-sec h4 { margin: 0 0 10px; font-size: 13px; color: var(--text-3); font-weight: 600; letter-spacing: .5px; }
.opts { display: grid; gap: 8px; }
.opt {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; padding: 12px 14px; border-radius: 14px; text-align: left;
  border: 1.5px solid var(--line-2); background: var(--bg-2); transition: color .15s, background-color .15s, border-color .15s, box-shadow .15s, transform .15s ease-out; width: 100%;
}
@media (hover: hover) { .opt:hover { border-color: color-mix(in srgb, var(--accent) 50%, var(--line-2)); } }
.opt.on { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.opt b { font-size: 14.5px; }
.opt .p { font-family: var(--num); font-size: 19px; font-weight: 800; color: var(--accent); text-align: right; line-height: 1.25; }
.opt .s { font-size: 12.5px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.opt .m { font-size: 12.5px; color: var(--text-2); text-align: right; font-family: var(--num); }
.note { margin-top: 12px; padding: 10px 14px; border-radius: 12px; font-size: 13px; background: var(--accent-soft); color: var(--accent-ink); }
.steps { margin: 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 8px; }
.steps li { counter-increment: s; display: flex; gap: 10px; font-size: 13.5px; color: var(--text-2); }
.steps li::before {
  content: counter(s); flex: none; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; margin-top: 1px;
  font-size: 11px; font-weight: 700; background: var(--line); color: var(--text);
}
/* 常见问题 */
.d-faq details { border-top: 1px solid var(--line); }
.d-faq details:last-child { border-bottom: 1px solid var(--line); }
.d-faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 2px; cursor: pointer;
  list-style: none; font-size: 14px; font-weight: 600; color: var(--text);
}
.d-faq summary::-webkit-details-marker { display: none; }
.d-faq summary::after {
  content: ""; flex: none; width: 7px; height: 7px; margin-right: 4px; border: solid var(--text-3); border-width: 0 1.6px 1.6px 0;
  transform: translateY(-2px) rotate(45deg); transition: transform .2s;
}
.d-faq details[open] summary::after { transform: translateY(1px) rotate(-135deg); }
.d-faq p { margin: -4px 2px 14px; font-size: 13.5px; line-height: 1.7; color: var(--text-2); text-wrap: pretty; }
.d-cta { position: sticky; bottom: -26px; margin: 22px -26px -26px; padding: 16px 26px 22px; display: flex; gap: 10px; background: linear-gradient(transparent, var(--card-solid) 30%); }
.d-cta .btn.primary { flex: 1; }
.d-fine { font-size: 12px; color: var(--text-3); text-align: center; margin: 4px 0 0; }

/* ============ 搜索面板 ============ */
.cmdk { align-items: flex-start; padding-top: 12vh; }
.cmdk-panel {
  position: relative; width: min(600px, 100% - 32px); border-radius: 20px; background: var(--card-solid);
  border: 1px solid var(--line); box-shadow: var(--shadow-lg); overflow: hidden; animation: pop .25s both;
}
.cmdk-input { display: flex; align-items: center; gap: 12px; padding: 0 18px; height: 58px; border-bottom: 1px solid var(--line); }
.cmdk-input svg { color: var(--text-3); }
.cmdk-input:focus-within { box-shadow: inset 0 -2px 0 var(--accent-ink); }
.cmdk-input input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; color: var(--text); font: inherit; font-size: 17px; }
.cmdk-input input::-webkit-search-cancel-button { display: none; }
.cmdk-cancel { color: var(--accent-ink); font-size: 15px; }
.cmdk-hot { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px 16px 0; }
.cmdk-hot:empty { display: none; }
.cmdk-hot button { padding: 4px 10px; border-radius: 999px; font-size: 13px; background: var(--line); color: var(--text-2); }
@media (hover: hover) { .cmdk-hot button:hover { color: var(--text); } }
.cmdk-list { list-style: none; margin: 0; padding: 8px; max-height: 56vh; overflow-y: auto; }
.cmdk-list li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; cursor: pointer; }
.cmdk-list li.on { background: var(--line); }
.cmdk-list li .t { flex: 1; min-width: 0; }
.cmdk-list li .t b { display: block; font-size: 14.5px; font-weight: 600; }
.cmdk-list li .t span { font-size: 12.5px; color: var(--text-3); }
.cmdk-list li .p { font-family: var(--num); font-weight: 700; color: var(--accent-ink); }
.cmdk-list li.all { justify-content: center; color: var(--accent-ink); font-size: 14px; }
.cmdk-list .none { justify-content: center; color: var(--text-3); cursor: default; padding: 28px; }
mark { background: none; color: var(--accent-ink); }

.toast {
  position: fixed; left: 50%; bottom: 32px; z-index: 60; transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  padding: 10px 18px; border-radius: 12px; background: var(--text); color: var(--bg); font-size: 14px; transition: opacity .25s, transform .25s; max-width: calc(100% - 32px);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ============ 响应式 ============ */
@media (max-width: 1140px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .promise { grid-template-columns: repeat(2, 1fr); }

}

/* 手机 */
@media (max-width: 640px) {
  body { font-size: 14px; }
  .wrap { width: calc(100% - 32px); }
  .m-only { display: inline-flex !important; }
  .d-only { display: none !important; }
  .topbar-inner { gap: 10px; }
  .top-search { display: none; }
  .top-actions { margin-left: auto; }



  .toolbar { padding: 10px 0; gap: 8px; margin-inline: -16px; padding-inline: 16px; }
  .chips { margin-left: -16px; padding-left: 16px; scroll-padding-left: 16px; }
  .chip { height: 32px; padding: 0 12px; font-size: 13.5px; }
  .sort select { width: 34px; padding: 0; color: transparent; background-image: none; }
  .sort select option { color: var(--text); }
  .sort svg { left: 9px; color: var(--text-2); }
  .sort.active svg { color: var(--accent); }

  /* 列表：一行一个，信息密度更高 */
  .grid { grid-template-columns: 1fr; gap: 0; border-radius: var(--radius); background: var(--card-solid); border: 1px solid var(--line); overflow: hidden; }
  .card {
    grid-template-columns: auto minmax(0, 1fr) auto; gap: 0 12px; align-items: center; padding: 14px;
    grid-template-areas: "icon title price" "icon meta off";
    border-radius: 0; border: 0; background: none; box-shadow: none; animation: none;
  }
  .card + .card { border-top: 1px solid var(--line); }
  .card:active { background: var(--line); }
  .card > .bi, .card > .bi-pair { align-self: center; }
  .card > .bi { width: 44px; height: 44px; }
  .c-title h3 { font-size: 15px; }
  .c-price { margin: 0; justify-self: end; gap: 2px; }
  .c-price .price { font-size: 22px; letter-spacing: -.5px; }
  .c-price .price small { font-size: 12px; }
  .c-price .term { font-size: 12px; }
  .c-price s, .tags, .c-foot, .c-meta .save-dot, .c-meta .save, .c-meta .opts-n, .c-meta .opts-dot { display: none; }
  .c-meta { margin-top: 3px; font-size: 12px; color: var(--text-3); flex-wrap: nowrap; white-space: nowrap; overflow: hidden; }
  .c-meta .ch-m { display: inline; }
  .card .off { align-self: center; justify-self: end; margin-top: 3px; font-size: 11.5px; padding: 0 6px; }
  .c-title p { display: none; }
  .card { padding: 13px 14px; }

  .promise { margin-top: 32px; }
  .promise div { padding: 14px; }
  .footer { padding-bottom: calc(32px + env(safe-area-inset-bottom)); }
  .to-top { right: 16px; bottom: calc(20px + env(safe-area-inset-bottom)); }

  /* 详情：底部弹出 */
  .sheet { align-items: flex-end; }
  .sheet-panel {
    width: 100%; max-height: 92vh; border-radius: 22px 22px 0 0; padding: 22px 16px 0; animation: up .32s cubic-bezier(.2, .9, .25, 1) both;
    border-bottom: 0;
  }
  @keyframes up { from { transform: translateY(100%); } }
  .grabber { display: block; position: absolute; top: 8px; left: 50%; width: 36px; height: 4px; margin-left: -18px; border-radius: 4px; background: var(--line-2); }
  .sheet-close { top: 14px; right: 12px; }
  .d-head .bi.lg { width: 52px; height: 52px; font-size: 20px; border-radius: 15px; }
  .d-head h2 { font-size: 18px; }
  .d-hero { margin-top: 16px; padding: 16px; }
  .d-price .price { font-size: 38px; }
  .d-cta { bottom: 0; margin: 20px -16px 0; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: var(--card-solid); border-top: 1px solid var(--line); }
  .d-cta .btn.lg { height: 48px; }
  .d-fine { padding-bottom: 4px; }

  /* 搜索：全屏 */
  .cmdk { padding-top: 0; align-items: stretch; }
  .cmdk .sheet-backdrop { display: none; }
  .cmdk-panel { width: 100%; height: 100%; border-radius: 0; border: 0; display: flex; flex-direction: column; animation: fade .15s both; }
  .cmdk-input { height: 56px; padding: 0 16px; padding-top: env(safe-area-inset-top); }
  .cmdk-input input { font-size: 16px; }
  .cmdk-list { max-height: none; flex: 1; }
}

/* ============ 头部 + 轮播响应式 ============ */
@media (max-width: 1180px) {
  .logo-text small { display: none; }
  .pillnav a { padding: 0 12px; }
  .slide { grid-template-columns: minmax(0, 1fr) minmax(0, 320px); gap: 40px; }
}
@media (max-width: 960px) {
  .pillnav { display: none; }
  .top-search { flex-basis: 420px; }
  .slide { grid-template-columns: minmax(0, 1fr); gap: 28px; min-height: 0; align-items: start; }
  .s-side { text-align: left; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: end; column-gap: 36px; padding-bottom: 0; }
  .s-meta { grid-column: 1; }
  .s-trend { grid-column: 2; grid-row: 1 / span 2; margin: 0 0 18px; }
}
@media (max-width: 640px) {
  :root, html.scrolled { --top: 56px; }
  .logo-mark { width: 36px; height: 36px; border-radius: 11px; }
  .logo-mark svg { width: 22px; height: 22px; }
  .logo-mark svg.mk { width: 100%; height: 100%; }
  .logo-text b { font-size: 16px; }
  .icon-btn { height: 36px; min-width: 36px; padding: 0 8px; }

  .stage-wrap { padding-top: 14px; }
  .slide { gap: 22px; padding-bottom: 22px; }
  .s-eyebrow { margin-bottom: 12px; font-size: 11.5px; gap: 10px; letter-spacing: .08em; }
  .s-name { font-size: clamp(34px, 10.5vw, 46px); letter-spacing: -.03em; }
  .s-tag { font-size: 14.5px; margin-top: 10px; }
  .s-cta { margin-top: 20px; gap: 14px; }
  .btn.dark { height: 44px; padding: 0 20px; font-size: 14.5px; }
  .s-side { display: block; }
  .s-big { font-size: clamp(50px, 15vw, 64px); }
  .s-big .unit { font-size: 14px; margin-left: 4px; }
  .s-meta { margin-top: 10px; font-size: 13px; }
  .s-meta i { margin: 0 6px; }
  .s-trend { height: 36px; margin: 24px 0 14px; }

  .th { flex: 0 0 auto; min-width: 0; padding: 13px 22px 12px 0; gap: 8px; }
  .th-t span { display: none; }
  .th .prog { right: 22px; }
  .th-pause { width: 30px; height: 30px; }

  .ticker { height: 40px; margin-top: 12px; gap: 8px; }
  .tk-label { height: 26px; padding: 0 9px 0 8px; font-size: 12px; }
  .tk { padding: 0 16px; font-size: 13px; }
  .tk { font-size: 13px; }
}

/* ============ 收藏 / 提醒 / 海报 / 微信引导 ============ */
.fav-mark { width: 13px; height: 13px; margin-left: 5px; vertical-align: -1px; fill: var(--accent); stroke: none; }
.chip.fav svg { width: 13px; height: 13px; margin-right: 4px; fill: none; stroke: currentColor; stroke-width: 2.2; }
.chip.fav.on { color: var(--accent-ink); border-color: color-mix(in srgb, var(--accent) 45%, var(--line-2)); background: var(--accent-soft); }
.chip.fav.on svg { fill: currentColor; }
.btn.sq { flex: none; width: 50px; padding: 0; }
.btn.sq svg { width: 19px; height: 19px; margin: 0; }
#dFav[aria-pressed="true"] { color: var(--accent-ink); border-color: color-mix(in srgb, var(--accent) 45%, var(--line-2)); }
#dFav[aria-pressed="true"] svg { fill: currentColor; }
.d-head h1 { margin: 0; font-size: 21px; line-height: 1.3; }
.h4 { margin: 0 0 10px; font-size: 13px; color: var(--text-3); font-weight: 600; }
.seo-opts { margin: 0; padding-left: 18px; font-size: 14px; color: var(--text-2); }
.d-alert .alert-form { display: flex; gap: 8px; }
.d-alert input {
  flex: 1; min-width: 0; height: 42px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line-2);
  background: var(--bg-2); color: var(--text); font: inherit; font-size: 16px;
}
.d-alert input:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 0; }
.d-alert .btn { height: 42px; flex: none; }
.alert-done { margin: 0; font-size: 14px; color: var(--good-ink); font-weight: 600; }
.alert-err { margin: 6px 0 0; font-size: 13px; color: var(--accent-ink); }
.alert-err:empty { display: none; }
.alert-note { margin: 8px 0 0; font-size: 12.5px; color: var(--text-3); }
.alert-note a, .footer a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }

/* 隐私政策 */
.policy { max-width: 720px; padding-block: 28px 8px; font-size: 16px; line-height: 1.7; color: var(--text-2); }
.policy h1 { margin: 0; font-size: 28px; line-height: 1.2; letter-spacing: -0.01em; color: var(--text); }
.policy h2 { margin: 32px 0 8px; font-size: 18px; line-height: 1.3; color: var(--text); }
.policy b { color: var(--text); }
.policy p, .policy li { text-wrap: pretty; }
.policy ul { margin: 0; padding-left: 1.3em; }
.policy li + li { margin-top: 8px; }
.policy a { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.policy-meta { margin: 6px 0 20px; font-size: 13.5px; color: var(--text-3); }
.link-btn { margin-top: 8px; padding: 4px 0; font-size: 13.5px; color: var(--accent-ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.mp { margin: 8px 0 0; font-size: 13px; color: var(--text-3); }
.mp .link-btn { margin: 0 0 0 6px; }
.ad-tag { display: inline-block; margin-right: 6px; padding: 0 5px; border-radius: 4px; border: 1px solid var(--line-2); font-size: 11.5px; line-height: 17px; color: var(--text-2); }
.beian a { color: inherit; margin: 0 6px; }

.ovl { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 16px; }
.ovl-backdrop { position: absolute; inset: 0; background: rgba(8, 8, 12, .62); animation: fade .2s both; }
.ovl-panel {
  position: relative; width: min(380px, 100%); max-height: calc(100dvh - 32px); overflow: auto; padding: 22px; border-radius: 22px; text-align: center;
  background: var(--card-solid); border: 1px solid var(--line); box-shadow: var(--shadow-lg); animation: pop .25s both; display: grid; gap: 12px;
}
.ovl-panel p { margin: 0; font-size: 14px; color: var(--text-2); text-wrap: pretty; }
.ovl-panel .btn { width: 100%; height: 46px; }
.poster .ovl-panel { width: min(400px, 100%); }
.poster-img { width: 100%; height: auto; border-radius: 14px; box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .35); -webkit-touch-callout: default; user-select: auto; }
.mp-qr { width: 200px; height: 200px; margin: 0 auto; border-radius: 12px; object-fit: contain; background: #fff; }
.wx-guide { place-items: start center; padding-top: 72px; }
.wx-guide .ovl-panel { text-align: left; }
.wx-arrow { position: fixed; top: 6px; right: 18px; width: 72px; height: 72px; fill: none; stroke: #fff; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.wx-t { font-size: 17px !important; font-weight: 700; color: var(--text) !important; }
@media (max-width: 640px) {
  .btn.sq { width: 46px; }
  .d-cta { gap: 8px; }
  .d-cta .btn.primary { padding: 0 12px; font-size: 15px; }
}

/* ============ 可访问性与交互细节 ============ */
:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 2px; }
.card:focus-visible, .slide:focus-visible { outline-offset: -2px; }
.slide { color: inherit; text-decoration: none; border-radius: 28px 28px 0 0; }
.card, .tk { text-decoration: none; }
.skip {
  position: fixed; left: 16px; top: 12px; z-index: 100; padding: 10px 16px; border-radius: 12px; font-weight: 600;
  background: var(--text); color: var(--bg); transform: translateY(-160%); transition: transform .15s ease-out;
}
.skip:focus { transform: none; }
#deals:focus { outline: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
/* 按下反馈 */
.btn, .chip, .icon-btn, .th-pause, .tk-pause, .top-search, .opt { transition-property: color, background-color, border-color, box-shadow, transform; transition-duration: .15s; transition-timing-function: ease-out; }
.btn:active, .chip:active, .icon-btn:active, .th-pause:active, .tk-pause:active, .opt:active { transform: scale(.96); }
.btn:disabled:active { transform: none; }
/* 不断变化的数字用等宽，避免抖动 */
.price, .s-big, .cd, .tk, .th-t span, .opt .p, .opt .m, .c-meta, .off, .s-meta, .p-price { font-variant-numeric: tabular-nums; }
.s-tag, .footer p, .promise span { text-wrap: pretty; }
/* 阴影描边在强制配色模式下也有边 */
.pillnav a { border: 1px solid transparent; }
/* 降价播报暂停按钮（WCAG 2.2.2） */
.tk-pause {
  flex: none; width: 28px; height: 28px; border-radius: 999px; display: grid; place-items: center; color: var(--text-3);
  border: 1px solid transparent; background: none;
}
@media (hover: hover) { .tk-pause:hover { color: var(--text); background: var(--line); } }
.tk-pause svg { width: 14px; height: 14px; stroke-width: 2.6; }
.tk-pause .i-play { display: none; fill: currentColor; }
.ticker.paused .tk-pause .i-play { display: block; }
.ticker.paused .tk-pause .i-pause { display: none; }
.ticker.paused .ticker-move, .ticker:focus-within .ticker-move { animation-play-state: paused; }
.tk-set { display: flex; }
html.no-trans *, html.no-trans *::before, html.no-trans *::after { transition: none !important; }

@media (prefers-reduced-motion: reduce) {
  /* 不滚动时允许手动横向浏览，避免内容被截断 */
  .ticker-track { overflow-x: auto; mask-image: none; -webkit-mask-image: none; }
  .tk-pause { display: none; }
  .live::after { animation: none; }
  .tk-set[aria-hidden] { display: none; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ============ 领券中心 /coupons ============ */
.link-in { color: var(--accent-ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.cp-actions { margin-left: auto; }
.cp-hero { padding: 44px 0 4px; }
.cp-eyebrow { margin: 0 0 14px; font: 700 12px/1 var(--num); letter-spacing: .2em; color: var(--accent-ink); }
.cp-hero h1 { margin: 0; font-size: clamp(36px, 5.6vw, 64px); line-height: 1.06; letter-spacing: -.02em; font-weight: 800; }
.cp-hero h1 em { font-style: normal; background: linear-gradient(120deg, var(--accent-a), var(--accent-b) 60%, #a855f7); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cp-sub { margin: 16px 0 0; max-width: 34em; font-size: 15.5px; color: var(--text-2); text-wrap: pretty; }
.cp-stats { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 22px; font-size: 13.5px; color: var(--text-3); }
.cp-stats span { display: inline-flex; align-items: baseline; gap: 6px; }
.cp-stats b { font: 700 26px/1 var(--num); color: var(--text); }
.cp-stats .cp-soonest { align-self: center; padding: 5px 12px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink); font-weight: 600; }
.cp-bar { margin: 28px 0 4px; display: flex; }
.cp-bar .chips:empty { display: none; }
.cp-sec { margin-top: 26px; }
.cp-h { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; margin-bottom: 14px; }
.cp-h h2 { margin: 0; font-size: 21px; letter-spacing: .01em; }
.cp-h span { font-size: 13px; color: var(--text-3); }
.cp-grid { display: grid; gap: 16px; }
.cp-grid.camps { grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
.cp-grid.tks { grid-template-columns: repeat(auto-fill, minmax(min(440px, 100%), 1fr)); }
.cp { position: relative; animation: rise .4s both; }
.cp[hidden] { display: none; }
.cp h3 { margin: 0; font-weight: 800; letter-spacing: .01em; text-wrap: balance; }
.cp p { margin: 0; text-wrap: pretty; }
.cp-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cp-plat { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; }
.cp-plat i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.cp-time { font: 600 12.5px/1.2 var(--num); font-variant-numeric: tabular-nums; }
.cp-time.hot::before { content: ''; display: inline-block; width: 6px; height: 6px; margin-right: 6px; border-radius: 50%; background: currentColor; vertical-align: 1px; }
/* 整张卡片可点 */
.cp-go::after { content: ''; position: absolute; inset: 0; border-radius: inherit; }
.cp-go { display: inline-flex; align-items: center; justify-content: center; gap: 6px; flex: none; font-weight: 800; white-space: nowrap; transition: transform .15s ease-out, box-shadow .15s; }
.cp-go svg { width: 16px; height: 16px; stroke-width: 2.4; transition: transform .2s; }
@media (hover: hover) { .cp:hover .cp-go svg { transform: translateX(3px); } }
.cp:active .cp-go { transform: scale(.96); }

/* 大促会场：平台色渐变大卡 */
.cp-camp {
  display: flex; flex-direction: column; gap: 10px; min-height: 200px; padding: 20px 20px 18px; border-radius: 22px; overflow: hidden; color: #fff; isolation: isolate;
  /* 白色小字在每个平台色上都要 ≥ 4.5:1，所以整条渐变都比平台色略深 */
  background: linear-gradient(150deg, color-mix(in oklab, var(--cc) 92%, #000), color-mix(in oklab, var(--cc) 80%, #000) 55%, color-mix(in oklab, var(--cc) 60%, #000));
  box-shadow: 0 18px 40px -22px color-mix(in srgb, var(--cc) 80%, transparent);
}
.cp-camp::before { content: ''; position: absolute; z-index: -1; right: -70px; top: -90px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 255, 255, .16), transparent); }
.cp-camp::after { content: ''; position: absolute; z-index: -1; inset: 0; background: repeating-linear-gradient(-45deg, rgba(255, 255, 255, .05) 0 2px, transparent 2px 14px); -webkit-mask: linear-gradient(200deg, #000, transparent 55%); mask: linear-gradient(200deg, #000, transparent 55%); }
.cp-camp .cp-plat { padding: 4px 10px 4px 8px; border-radius: 999px; background: rgba(0, 0, 0, .18); }
.cp-pin { padding: 3px 8px; border-radius: 6px; font-size: 11.5px; font-weight: 800; color: color-mix(in oklab, var(--cc) 78%, #000); background: #fff; }
.cp-camp h3 { margin-top: 6px; font-size: 24px; line-height: 1.25; }
.cp-camp p { font-size: 13.5px; }
.cp-camp .cp-foot { margin-top: auto; padding-top: 10px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cp-camp .cp-go { height: 40px; padding: 0 16px 0 18px; border-radius: 999px; font-size: 14.5px; color: color-mix(in oklab, var(--cc) 78%, #000); background: #fff; box-shadow: 0 8px 18px -10px rgba(0, 0, 0, .45); }
.cp-camp .cp-go:focus-visible { outline-color: #fff; outline-offset: 3px; }
.cp-camp.feat { grid-column: span 2; min-height: 236px; padding: 26px 28px 22px; }
.cp-camp.feat h3 { font-size: clamp(28px, 3.4vw, 38px); }
.cp-camp.feat p { font-size: 15px; max-width: 30em; }
.cp-camp.feat .cp-time { font-size: 15px; }

/* 优惠券：票根样式，左边面额，中间虚线和打孔 */
.cp-tk {
  --stub: 116px;
  display: grid; grid-template-columns: var(--stub) 1fr auto; align-items: center; min-height: 116px; border-radius: 18px;
  background: var(--card-solid); border: 1px solid var(--line);
  -webkit-mask: radial-gradient(circle 9px at var(--stub) 0, #0000 97%, #000) top / 100% 51% no-repeat, radial-gradient(circle 9px at var(--stub) 100%, #0000 97%, #000) bottom / 100% 51% no-repeat;
  mask: radial-gradient(circle 9px at var(--stub) 0, #0000 97%, #000) top / 100% 51% no-repeat, radial-gradient(circle 9px at var(--stub) 100%, #0000 97%, #000) bottom / 100% 51% no-repeat;
}
.tk-val {
  align-self: stretch; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 12px 8px; text-align: center; color: #fff;
  border-radius: 17px 0 0 17px; background: linear-gradient(160deg, color-mix(in oklab, var(--cc) 92%, #000), color-mix(in oklab, var(--cc) 75%, #000));
}
.tk-val b { font: 700 34px/1 var(--num); letter-spacing: -.02em; }
.tk-val b small { font-size: 16px; margin-right: 1px; }
.tk-val b.txt { font: 800 28px/1 var(--font); }
.tk-val span { font-size: 12px; line-height: 1.3; }
.tk-body { min-width: 0; padding: 14px 12px 14px 18px; align-self: stretch; display: flex; flex-direction: column; justify-content: center; gap: 4px; border-left: 1.5px dashed var(--line-2); }
.cp-tk .cp-top { gap: 4px 12px; }
.cp-tk .cp-plat { color: color-mix(in oklab, var(--cc) 82%, var(--text)); }
.cp-tk .cp-time { color: var(--text-3); }
.cp-tk .cp-time.hot { color: var(--accent-ink); }
.cp-tk h3 { font-size: 16.5px; line-height: 1.35; }
.cp-tk p { font-size: 13px; color: var(--text-3); }
.cp-tk .cp-go { margin-right: 16px; height: 36px; padding: 0 16px; border-radius: 999px; font-size: 14px; color: #fff; background: linear-gradient(135deg, var(--btn-a), var(--btn-b)); box-shadow: 0 8px 18px -10px var(--accent-b); }
@media (hover: hover) { .cp-tk:hover { border-color: color-mix(in srgb, var(--cc) 40%, var(--line-2)); } }

/* 未开始 / 已结束 */
.cp.soon.cp-camp { filter: saturate(.75); }
.cp.soon .cp-go { box-shadow: none; }
.cp-tk.soon .cp-go { color: var(--accent-ink); background: var(--accent-soft); }
.cp.ended { filter: grayscale(1); opacity: .55; }

.cp-empty { padding: 72px 0 40px; }
.cp-empty .btn { margin-top: 6px; }

.cp-tips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 56px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--line); }
.cp-tips div { padding: 20px 22px; background: var(--card-solid); }
.cp-tips b { font: 700 13px/1 var(--num); color: var(--accent-ink); letter-spacing: .1em; }
.cp-tips h3 { margin: 10px 0 4px; font-size: 15px; }
.cp-tips p { margin: 0; font-size: 13px; color: var(--text-3); text-wrap: pretty; }

@media (max-width: 960px) {
  .cp-camp.feat { grid-column: auto; }
  .cp-tips { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .cp-hero { padding-top: 26px; }
  .cp-sub { font-size: 14.5px; }
  .cp-stats b { font-size: 22px; }
  .cp-bar { margin-top: 20px; }
  .cp-grid { gap: 12px; }
  .cp-grid.camps, .cp-grid.tks { grid-template-columns: 1fr; }
  .cp-camp { min-height: 0; padding: 18px; border-radius: 20px; }
  .cp-camp h3, .cp-camp.feat h3 { font-size: 22px; }
  .cp-camp.feat { padding: 20px 18px; }
  .cp-tk { --stub: 96px; min-height: 104px; }
  .tk-val b { font-size: 28px; }
  .tk-body { padding: 12px 8px 12px 14px; }
  .cp-tk h3 { font-size: 15px; }
  .cp-tk .cp-go { margin-right: 12px; height: 34px; padding: 0 12px; font-size: 13.5px; }
}
@media (max-width: 420px) {
  .cp-tk { grid-template-columns: var(--stub) minmax(0, 1fr); grid-template-rows: 1fr auto; }
  .tk-val { grid-row: span 2; }
  .tk-body { padding-bottom: 8px; }
  .cp-tk .cp-go { grid-column: 2; justify-self: start; margin: 0 0 12px 14px; }
}
