/* 主站外观「橱窗」（2026-11-08 用户：「综合它们的优点，彻底重做」——参考 NIUB.ME、异次元新主题、xtuite、WildCard、Gumroad、SellApp）
   实时价格带 → 悬浮胶囊顶栏 → 深色大横幅（问句、搜索、品牌货架）→ 每个品牌一块面板（彩色头部 + 商品卡）→ 公告 → 客服；手机底部导航。
   默认浅色，右上角可切深色（localStorage「tc-theme」）。卡片文案一字不改，这里只管样子。弹窗结构在 modal.css，本文件后半统一换颜色和形状。规则见根目录 DESIGN.md */
@font-face {
  font-family: "TcPrice";  /* Barlow Condensed Bold（OFL，见 fonts/OFL.txt），只截了数字和符号 */
  src: url("../fonts/price.woff2") format("woff2");
  font-weight: 700; font-display: swap;
}

/* ---------- 颜色和字体 ---------- */
:root {
  color-scheme: dark;
  --bg: #0b0d14;
  --s1: #141722;      /* 面板、卡片 */
  --s2: #1b1f2d;      /* 悬停、浅一格 */
  --s3: #252a3b;
  --hair: #252a3a;    /* 细线 */
  --hair2: #343b50;   /* 输入框、按钮描边 */
  --ink: #eef0f6;
  --txt: #c9cdd9;
  --muted: #8f96a9;
  --dim: #60677b;
  --acc: #a5a1ff;     /* 强调字（链接、选中） */
  --acc-fill: #6d64ff; /* 强调底色（主按钮悬停、选中） */
  --acc-ink: #fff;
  --acc-soft: rgba(109, 100, 255, .16);
  --btn: #eef0f6;     /* 主按钮：深色模式白底黑字 */
  --btn-ink: #0b0d14;
  --up: #34d399;
  --down: #ff6b6b;
  --down-soft: rgba(255, 107, 107, .14);
  --low: #fbbf24;     /* 仅剩 N 件 */
  --low-soft: rgba(251, 191, 36, .14);
  --hero: #0d1020;    /* 横幅、价格带、页脚：两种模式都是深色 */
  --sh1: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 32px -12px rgba(0, 0, 0, .5);
  --sh2: 0 2px 4px rgba(0, 0, 0, .3), 0 22px 44px -16px rgba(0, 0, 0, .6);
  --glow1: rgba(109, 100, 255, .16);
  --glow2: rgba(251, 146, 60, .08);

  /* 旧变量：modal.css、客服窗（kefu.js）、账号窗（auth.js）、详情图标底色（app.js）还在用，映射到新颜色 */
  --card: var(--s1);
  --border: var(--hair);
  --line: var(--hair);
  --dash: var(--hair2);
  --edge: var(--hair2);
  --coral: var(--down);
  --coral-strong: var(--down);
  --coral-soft: var(--down-soft);
  --sun: var(--acc-fill);
  --butter: var(--acc-soft);
  --mint: var(--s2); --sky: var(--s2); --lilac: var(--s2); --peach: var(--s2); --slate: var(--s2);
  --lift: none;
  --radius: 14px;

  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "HarmonyOS Sans SC", "MiSans", "Microsoft YaHei", "Segoe UI", sans-serif;
  --mono: "SF Mono", "JetBrains Mono", "Cascadia Mono", ui-monospace, Menlo, Consolas, monospace;
  --num: "TcPrice", "DIN Alternate", "Bahnschrift", var(--font);
  --round: var(--font);
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f3f4f8;
  --s1: #ffffff;
  --s2: #f1f3f8;
  --s3: #e6e9f1;
  --hair: #e4e7ef;
  --hair2: #cfd4e0;
  --ink: #12141c;
  --txt: #353a48;
  --muted: #646b7d;
  --dim: #9aa0ae;
  --acc: #4f46e5;
  --acc-fill: #4f46e5;
  --acc-soft: rgba(79, 70, 229, .09);
  --btn: #12141c;
  --btn-ink: #fff;
  --up: #0f9a57;
  --down: #dc3545;
  --down-soft: rgba(220, 53, 69, .08);
  --low: #b45309;
  --low-soft: rgba(245, 158, 11, .14);
  --sh1: 0 1px 2px rgba(18, 20, 28, .04), 0 10px 30px -14px rgba(18, 20, 28, .14);
  --sh2: 0 2px 6px rgba(18, 20, 28, .06), 0 24px 48px -18px rgba(18, 20, 28, .24);
  --glow1: rgba(99, 102, 241, .13);
  --glow2: rgba(251, 146, 60, .10);
}

/* ---------- 基础 ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; scrollbar-color: var(--hair2) transparent; }
body {
  color: var(--ink); font-family: var(--font); font-size: 15px; line-height: 1.6; -webkit-font-smoothing: antialiased;
  background: radial-gradient(1100px 620px at 8% -6%, var(--glow1), transparent 62%), radial-gradient(900px 520px at 96% 2%, var(--glow2), transparent 60%), var(--bg);
  background-repeat: no-repeat;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; }
img { max-width: 100%; }
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 32px; }
::selection { background: var(--acc-fill); color: #fff; }
:focus-visible { outline: 2px solid var(--acc-fill); outline-offset: 2px; }
kbd { font-family: var(--mono); font-size: 11px; line-height: 1; padding: 3px 6px; border: 1px solid var(--hair2); border-bottom-width: 2px; border-radius: 4px; color: var(--muted); background: var(--s2); }
.price, .spot-price, .spec-p, .pack b, .an-big b, .q-px, .tp, .spot-sum b, .shelf-p i, .cat small i { font-family: var(--num); font-weight: 700; font-variant-numeric: tabular-nums lining-nums; letter-spacing: 0; }
.price { color: var(--ink); }
.ndot { position: absolute; top: -2px; right: -8px; width: 7px; height: 7px; border-radius: 50%; background: var(--down); }
.ndot[hidden], .nav-notice[hidden], .hi-notice, .an-open[hidden], .an-live[hidden] { display: none !important; }

/* 按钮：主按钮黑底（深色模式白底）胶囊，悬停换强调色 */
.btn-coral { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 24px; border-radius: 999px; background: var(--btn); color: var(--btn-ink); font-weight: 700; border: 0; box-shadow: none; transition: background .15s, color .15s, transform .1s; }
.btn-coral:hover { background: var(--acc-fill); color: #fff; }
.btn-coral:active { transform: translateY(1px); }
.btn-ink { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--hair2); background: transparent; color: var(--ink); font-weight: 700; font-size: 14px; }
.btn-ink:hover { border-color: var(--acc-fill); color: var(--acc); }
.ghost { border-radius: 999px; border: 1px solid var(--hair2); }

/* ---------- 实时价格带（页面最顶端，深色细条） ---------- */
.tape { display: flex; align-items: center; height: 34px; background: var(--hero); color: #c9cde0; overflow: hidden; font-size: 13px; }
.tape[hidden] { display: none; }
.tape-tag { flex: none; display: inline-flex; align-items: center; gap: 7px; padding-left: max(32px, calc((100vw - 1280px) / 2 + 32px)); padding-right: 12px; font-weight: 600; color: #fff; white-space: nowrap; }
.tape-tag i { width: 6px; height: 6px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 3px rgba(52, 211, 153, .2); animation: tc-blink 2.4s ease-in-out infinite; }
.tape-tag time { font-weight: 400; color: #8f96b3; font-variant-numeric: tabular-nums; }
.tape-run { flex: 1; min-width: 0; overflow: hidden; -webkit-mask: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent); mask: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent); }
.tape-track { display: inline-flex; white-space: nowrap; will-change: transform; animation: tc-tape var(--tape-dur, 60s) linear infinite; }
.tape:hover .tape-track, .tape-off .tape-track { animation-play-state: paused; }
.tp-i { display: inline-flex; align-items: baseline; gap: 7px; padding: 0 16px; font-size: 13px; color: #8f96b3; cursor: pointer; }
.tp-i:hover { color: #fff; }
.tp-i b { font-weight: 600; color: #dfe2ef; }
.tp-i .tp { font-size: 16px; color: #fff; }
.tp-i em { font-style: normal; font-size: 12px; color: #fbbf24; }
.tp-i.out .tp { color: #60677b; text-decoration: line-through; }
.tp-i.out em { color: #ff8a8a; }
@keyframes tc-tape { to { transform: translateX(-50%); } }
@keyframes tc-blink { 50% { opacity: .35; } }

/* ---------- 顶栏：悬浮胶囊（吸顶，毛玻璃） ---------- */
.top { position: sticky; top: 0; z-index: 30; padding: 10px 32px 0; pointer-events: none; }
.top-in { pointer-events: auto; max-width: 1216px; height: 58px; margin: 0 auto; padding: 0 10px 0 14px; display: flex; align-items: center; gap: 20px;
  border: 1px solid var(--hair); border-radius: 999px; background: var(--s1); background: color-mix(in srgb, var(--s1) 80%, transparent);
  -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4); box-shadow: var(--sh1); }
.logo { flex: none; display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 800; color: var(--ink); }
.logo img { width: 32px; height: 32px; border-radius: 50%; }
.cats { flex: 1; min-width: 0; display: flex; align-items: center; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.cats::-webkit-scrollbar { display: none; }
.cats { -webkit-mask: linear-gradient(90deg, #000 calc(100% - 28px), transparent); mask: linear-gradient(90deg, #000 calc(100% - 28px), transparent); padding-right: 24px; }
.cat { flex: none; display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 13px; border-radius: 999px; font-size: 14px; color: var(--txt); white-space: nowrap; transition: background .15s, color .15s; }
.cat img { width: 20px; height: 20px; padding: 2px; background: #fff; border-radius: 6px; object-fit: contain; }
.cat b { font-weight: 600; }
.cat small { font-size: 12.5px; color: var(--muted); }
.cat small i { margin-right: 1px; font-size: 15px; font-style: normal; }
.cat:hover { background: var(--s2); color: var(--ink); }
.cat.on { background: var(--ink); color: var(--bg); }
.cat.on small { color: inherit; opacity: .75; }
.cat.out small { color: var(--down); }
.top-r { flex: none; display: flex; align-items: center; gap: 8px; }
.nav-notice { position: relative; padding: 0 6px; font-size: 14px; color: var(--txt); }
.nav-notice:hover { color: var(--ink); }
.icon-btn { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; color: var(--muted); }
.icon-btn:hover { background: var(--s2); color: var(--ink); }
.icon-btn .i-moon, :root[data-theme="light"] .icon-btn .i-sun { display: none; }
:root[data-theme="light"] .icon-btn .i-moon { display: block; }
.acct-btn { display: inline-flex; align-items: center; height: 38px; padding: 0 18px; border-radius: 999px; background: var(--btn); color: var(--btn-ink); font-size: 14px; font-weight: 700; white-space: nowrap; transition: background .15s, color .15s; }
.acct-btn:hover { background: var(--acc-fill); color: #fff; }

/* ---------- 首屏：深色大横幅（左问句、搜索、正规说明；右品牌货架） ---------- */
.lead { padding-top: 22px; padding-bottom: 8px; }
.hero { position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: 48px; align-items: center;
  padding: 56px 56px 52px; border-radius: 30px; color: #fff;
  background: radial-gradient(640px 420px at 88% 18%, rgba(129, 120, 255, .42), transparent 62%), radial-gradient(520px 380px at 70% 110%, rgba(251, 146, 60, .28), transparent 60%),
    radial-gradient(560px 400px at 0% 0%, rgba(56, 189, 248, .16), transparent 60%), var(--hero);
  box-shadow: 0 30px 60px -30px rgba(13, 16, 32, .55); }
:root:not([data-theme="light"]) .hero { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 44px 44px; -webkit-mask: radial-gradient(circle at 70% 40%, #000, transparent 70%); mask: radial-gradient(circle at 70% 40%, #000, transparent 70%); }
.hero-pill { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px 5px 10px; border: 1px solid rgba(255, 255, 255, .16); border-radius: 999px; background: rgba(255, 255, 255, .06); font-size: 12.5px; color: #dfe2f3; }
.hero-pill i { width: 7px; height: 7px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 3px rgba(52, 211, 153, .22); animation: tc-blink 2.4s ease-in-out infinite; }
.hero-pill time[hidden] { display: none; }
.hero h1 { margin-top: 18px; font-size: clamp(36px, 4.6vw, 62px); font-weight: 900; line-height: 1.08; letter-spacing: -.035em; }
.hero h1 mark { background: linear-gradient(92deg, #c4b5fd 0%, #f0abfc 45%, #fdba74 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead-sub { max-width: 34em; margin-top: 14px; font-size: 16px; line-height: 1.75; color: rgba(255, 255, 255, .72); }
.find { display: flex; align-items: center; max-width: 560px; height: 58px; margin-top: 28px; padding: 0 6px 0 18px; border-radius: 999px; background: #fff; color: #12141c;
  box-shadow: 0 16px 40px -16px rgba(0, 0, 0, .6); transition: box-shadow .15s; }
.find:focus-within { box-shadow: 0 0 0 4px rgba(165, 161, 255, .45), 0 16px 40px -16px rgba(0, 0, 0, .6); }
.find-i { flex: none; color: #8a90a2; }
.find input { flex: 1; min-width: 0; height: 100%; padding: 0 12px; border: 0; outline: 0; background: none; color: #12141c; font: 16px var(--font); }
.find input::placeholder { color: #9aa0ae; }
.find input::-webkit-search-cancel-button { -webkit-appearance: none; }
.find .go { flex: none; height: 46px; padding: 0 24px; border-radius: 999px; background: #12141c; color: #fff; font-size: 15px; font-weight: 700; transition: background .15s; }
.find .go:hover { background: #4f46e5; }
.trust-row { display: grid; gap: 4px; margin-top: 18px; list-style: none; font-size: 13px; line-height: 1.6; color: rgba(255, 255, 255, .66); }
.trust { position: relative; padding-left: 22px; }
.trust::before { content: "✓"; position: absolute; left: 0; top: 2px; width: 15px; height: 15px; border-radius: 50%; background: rgba(52, 211, 153, .18); color: #6ee7b7; font-size: 10px; font-weight: 900; line-height: 15px; text-align: center; }

/* 品牌货架：毛玻璃小卡（标志、品类、几款、起价），点了跳到那一块；单数时第一张占两格 */
.shelf { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-content: center; }
.shelf:empty { display: none; }
.shelf-i { display: grid; grid-template-columns: 46px minmax(0, 1fr); align-items: center; gap: 2px 12px; min-width: 0; padding: 14px 16px 14px 14px; text-align: left;
  border: 1px solid rgba(255, 255, 255, .14); border-radius: 20px; background: rgba(255, 255, 255, .07); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  color: #fff; transition: background .15s, border-color .15s, transform .15s; }
.shelf-i:hover { background: rgba(255, 255, 255, .13); border-color: rgba(255, 255, 255, .28); transform: translateY(-2px); }
.shelf.n1 .shelf-i:first-child, .shelf.n3 .shelf-i:first-child, .shelf.n5 .shelf-i:first-child { grid-column: 1 / -1; grid-template-columns: 46px minmax(0, 1fr) auto; padding: 18px 20px 18px 16px; }
.shelf-logo { grid-row: span 2; }
.shelf.n1 .shelf-i:first-child .shelf-p, .shelf.n3 .shelf-i:first-child .shelf-p, .shelf.n5 .shelf-i:first-child .shelf-p { grid-column: 3; grid-row: 1 / 3; }
.shelf-logo { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 14px; background: #fff; overflow: hidden; box-shadow: 0 6px 16px -6px rgba(0, 0, 0, .5); }
.shelf-logo img { width: 30px; height: 30px; object-fit: contain; }
.shelf-logo b { color: #12141c; font-size: 20px; font-weight: 900; }
.shelf-t { min-width: 0; }
.shelf-t { display: flex; align-items: baseline; gap: 8px; }
.shelf-t b { overflow: hidden; font-size: 15px; font-weight: 700; line-height: 1.3; white-space: nowrap; text-overflow: ellipsis; }
.shelf-t small { flex: none; font-size: 12px; color: rgba(255, 255, 255, .55); }
.shelf-p { font-size: 12.5px; color: rgba(255, 255, 255, .7); white-space: nowrap; }
.shelf-p i { margin-right: 2px; font-size: 22px; font-style: normal; color: #fff; }
.shelf-i.out .shelf-p { color: #ff9b9b; }

/* 网站公告（后台「网站公告」）：横幅下面一张卡 */
.hero-ann { margin-top: 14px; border: 1px solid var(--hair); border-radius: 20px; background: var(--s1); box-shadow: var(--sh1); overflow: hidden; }
.hero-ann[hidden] { display: none; }
.an-head { display: flex; align-items: center; gap: 10px; padding: 12px 18px 0; }
.an-tag { padding: 1px 10px; border-radius: 999px; background: var(--acc-soft); color: var(--acc); font-size: 12px; font-weight: 700; }
.an-open { position: relative; margin-right: auto; padding: 1px 10px; border: 1px solid var(--hair2); border-radius: 999px; font-size: 12px; }
.an-live { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; font-size: 12px; color: var(--up); }
.an-live i { width: 6px; height: 6px; border-radius: 50%; background: var(--up); }
.an-stats { display: grid; grid-template-columns: 1fr 1fr; }
.an-stats.n1 { grid-template-columns: 1fr; }
.an-stat { min-width: 0; padding: 8px 18px 14px; }
.an-stat + .an-stat { border-left: 1px solid var(--hair); }
.an-cap { font-size: 12.5px; line-height: 1.5; color: var(--muted); }
.an-cap s { color: var(--ink); text-decoration: line-through 2px var(--down); }
.an-big { display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 6px; margin-top: 2px; }
.an-big b { font-size: 34px; line-height: 1; color: var(--acc); }
.an-big b.ended { font: 700 16px var(--font); color: var(--muted); }
.an-big span { font-size: 12px; }
.an-big .cur { font-size: 16px; color: var(--acc); }
.an-up { font-style: normal; font-size: 11px; color: var(--down); }
.an-msg { display: flex; align-items: center; gap: 10px; }
.an-msg p { font-size: 13px; line-height: 1.6; font-weight: 700; }
.an-fire { display: none; }
.an-dots { display: flex; gap: 2px; margin-top: 8px; }
.an-dots i { flex: 1; height: 5px; border-radius: 3px; background: var(--acc-fill); }
.an-dots i.past { background: var(--hair2); }
.an-dots i.today { background: var(--down); }
.an-dots i.end { background: var(--ink); }
.an-plain { padding: 0 18px 12px; font-size: 13px; }
.hero-ann a { color: var(--acc); text-decoration: underline; }

/* ---------- 品牌面板：彩色头部 + 商品卡 ---------- */
#products { padding-top: 28px; }
.empty { display: none; padding: 56px 0; text-align: center; color: var(--muted); }
.lanes { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 24px; }
.lanes > .lane { grid-column: span 2; min-width: 0; display: flex; }
.lanes.two > .lane { grid-column: span 3; }
.lanes > .lane.wide { grid-column: 1 / -1; }
#spot .lane[hidden], #spot .spec-group[hidden], #spot .spec[hidden] { display: none; }

/* 品牌色：--tint 是品牌主色，--tint-ink 是浅底上的品牌深色字 */
.spot { --tint: #6366f1; --tint-ink: #4338ca; }
.t-gpt { --tint: #10a37f; --tint-ink: #0b7a5f; }
.t-gem { --tint: #4285f4; --tint-ink: #1a5fd0; }
.t-cl { --tint: #d97757; --tint-ink: #b4502f; }
.t-gk { --tint: #6b7280; --tint-ink: #111827; }
.t-doll { --tint: #f2b630; --tint-ink: #9a6400; }
.t-auto { --tint: #6366f1; --tint-ink: #4338ca; }
:root:not([data-theme="light"]) .spot { --tint-ink: color-mix(in srgb, var(--tint) 70%, #fff); }

.spot { flex: 1; min-width: 0; display: flex; flex-direction: column; border: 1px solid var(--hair); border-radius: 26px; background: var(--s1); box-shadow: var(--sh1); overflow: hidden; }
.spot-hd { flex: 1; position: relative; padding: 26px 28px 22px; border-bottom: 1px solid var(--hair);
  background: radial-gradient(520px 260px at 100% 0%, color-mix(in srgb, var(--tint) 20%, transparent), transparent 70%),
    linear-gradient(180deg, color-mix(in srgb, var(--tint) 7%, var(--s1)), var(--s1)); }
.spot.big .spot-hd { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; align-items: center; padding: 36px 40px 32px; }
.spot-text { min-width: 0; }
.spot-brand { display: flex; align-items: center; gap: 10px; min-height: 40px; }
.spot-logo { flex: none; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: #fff; box-shadow: 0 4px 12px -4px rgba(18, 20, 28, .18), 0 0 0 1px rgba(18, 20, 28, .05); overflow: hidden; }
.spot-logo img { width: 26px; height: 26px; object-fit: contain; }
.t-doll .spot-logo img { width: 40px; height: 40px; object-fit: cover; object-position: 50% 20%; }
.spot-kicker { padding: 3px 11px; border-radius: 999px; background: color-mix(in srgb, var(--tint) 14%, transparent); color: var(--tint-ink); font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.spot-sum { margin-left: auto; display: inline-flex; align-items: baseline; gap: 4px; white-space: nowrap; color: var(--muted); font-size: 12.5px; }
.spot-sum b { font-size: 26px; line-height: 1; color: var(--ink); }
.spot-sum.out small { color: var(--down); font-weight: 700; }
.spot-slogan { margin-top: 16px; font-size: 25px; font-weight: 900; line-height: 1.22; letter-spacing: -.02em; color: var(--ink); }
.spot.big .spot-slogan { margin-top: 18px; font-size: clamp(30px, 3vw, 42px); line-height: 1.12; letter-spacing: -.03em; }
.spot-slogan .ul { color: var(--tint-ink); }
.spot-sub { max-width: 42em; margin-top: 10px; font-size: 14px; line-height: 1.65; color: var(--muted); }
.spot-name { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-top: 12px; font-size: 14px; color: var(--txt); }
.spot-name b { font-weight: 600; }
.free { font-style: normal; font-size: 12px; padding: 0 8px; border-radius: 999px; background: color-mix(in srgb, var(--up) 14%, transparent); color: var(--up); }
.spot-pts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; list-style: none; }
.spot-pts li { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px 5px 6px; border: 1px solid var(--hair); border-radius: 999px; background: var(--s1); font-size: 13px; font-weight: 600; line-height: 1.4; color: var(--txt); }
.spot-pts li::before { content: "✓"; flex: none; width: 18px; height: 18px; border-radius: 50%; background: var(--tint); color: #fff; font-size: 10.5px; font-weight: 900; line-height: 18px; text-align: center; }
.spot-pts li.warn { border-color: color-mix(in srgb, var(--down) 40%, transparent); color: var(--down); }
.spot-pts li.warn::before { content: "!"; background: var(--down); }
.spot-desc, .risk-note { margin-top: 12px; font-size: 13px; line-height: 1.6; color: var(--muted); }
.spot-alert { margin-top: 12px; padding: 9px 14px; border-radius: 12px; background: var(--down-soft); font-size: 13px; font-weight: 700; color: var(--down); }
.spot-alert .ic, .risk-note .ic { display: none; }
.spot-alert small { display: block; font-weight: 500; color: var(--muted); }
.spot-cd { margin-top: 14px; padding: 10px 14px; border: 1px solid var(--hair); border-radius: 14px; background: var(--s1); }
.cd-cap { font-size: 12.5px; color: var(--muted); }
.cd-num b { font: 700 30px/1 var(--num); color: var(--tint-ink); }
.cd-num .u { margin: 0 6px 0 2px; }
.cd-warn { margin-top: 4px; font-size: 12.5px; font-weight: 700; color: var(--down); }

/* 大面板右边：大号品牌标志（玻璃方块 + 品牌色光晕）和起价 */
.spot-art { display: grid; justify-items: center; gap: 14px; }
.spot-mark { position: relative; width: 132px; height: 132px; display: grid; place-items: center; border-radius: 34px; background: #fff; transform: rotate(-6deg);
  box-shadow: 0 24px 48px -18px color-mix(in srgb, var(--tint) 70%, transparent), 0 0 0 1px rgba(18, 20, 28, .05); }
.spot-mark::before { content: ""; position: absolute; inset: -30px; z-index: -1; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--tint) 35%, transparent), transparent 70%); }
.spot-mark img { width: 64%; height: 64%; object-fit: contain; transform: rotate(6deg); }
.t-doll .spot-mark { background: linear-gradient(160deg, #fff4cf, #ffd978); }
.t-doll .spot-mark img { width: 92%; height: 92%; }
.spot-art .spot-sum { margin: 0; }
.spot-art .spot-sum b { font-size: 30px; }

/* ---------- 商品卡：封面（标志、库存、规格名）+ 说明 + 价格和购买 ---------- */
.spot-shop { padding: 24px 28px 4px; }
.spot.big .spot-shop { padding: 28px 40px 8px; }
.spot-specs { --c: 4; display: grid; grid-template-columns: repeat(var(--c), minmax(0, 1fr)); column-gap: 16px; row-gap: 0; }
.spot-specs.c1 { --c: 1; } .spot-specs.c2 { --c: 2; } .spot-specs.c3 { --c: 3; } .spot-specs.c4 { --c: 4; } .spot-specs.c5 { --c: 5; }
.spec-group { --n: 1; grid-column: span var(--n); display: grid; grid-template-rows: auto 1fr; min-width: 0; }
.spec-group.n2 { --n: 2; } .spec-group.n3 { --n: 3; } .spec-group.n4 { --n: 4; } .spec-group.n5 { --n: 5; }
@supports (grid-template-rows: subgrid) {  /* 同一排几组的小标题一样高，商品卡顶部对齐 */
  .spec-group { grid-row: span 2; grid-template-rows: subgrid; }
}
.spec-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; padding: 0 2px 12px; }
.spec-head.none { padding: 0; }
.spec-head b { font-size: 15px; font-weight: 800; color: var(--ink); }
.spec-head small { font-size: 13px; line-height: 1.55; color: var(--muted); }
.spec-head.warn small { color: var(--down); }
.spec-grid { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 16px; padding-bottom: 24px; }
.spec { position: relative; min-width: 0; display: flex; flex-direction: column; text-align: left; border: 1px solid var(--hair); border-radius: 18px; background: var(--s1); overflow: hidden;
  transition: transform .16s, box-shadow .16s, border-color .16s; }
.spec:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--tint) 45%, var(--hair)); box-shadow: var(--sh2); }
.spec-cv { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 118px; padding: 54px 16px 14px;
  background: radial-gradient(220px 120px at 100% 0%, color-mix(in srgb, var(--tint) 26%, transparent), transparent 70%), color-mix(in srgb, var(--tint) 9%, var(--s1)); }
.spec-ic { position: absolute; top: 14px; left: 14px; width: 30px; height: 30px; display: grid; place-items: center; padding: 5px; border-radius: 9px; background: #fff; overflow: hidden; box-shadow: 0 3px 8px -3px rgba(18, 20, 28, .25); }
.spec-ic:empty { display: none; }
.spec-ic img { width: 100%; height: 100%; object-fit: contain; display: block; }
.spec-ic.txt, .spot-logo.txt { background: var(--tint); }
.spec-ic b, .spot-logo b { color: #fff; font-size: 14px; font-weight: 900; line-height: 1; }
.spot-logo b { font-size: 19px; }
.t-doll .spec-ic { padding: 0; }
.t-doll .spec-ic img { object-fit: cover; object-position: 50% 20%; }
.spec-st { position: absolute; top: 15px; right: 14px; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; line-height: 1.5; background: var(--s1); color: var(--txt); }
.spec-st:empty { display: none; }
.spec-st.low { background: var(--low-soft); color: var(--low); }
.spec-st.out { background: var(--down-soft); color: var(--down); }
.spec-t { display: block; min-width: 0; }
.spec-t b { display: block; font-size: 20px; font-weight: 800; line-height: 1.25; letter-spacing: -.01em; color: var(--ink); overflow-wrap: anywhere; }
.spec-t small { display: block; margin-top: 2px; font-size: 13px; font-weight: 600; color: var(--tint-ink); }
.spec-n { display: block; padding: 12px 16px 0; font-size: 12.5px; line-height: 1.55; color: var(--muted); }
.spec-f { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 14px 14px 16px; }
.spec-p { font-size: 30px; line-height: 1; color: var(--ink); white-space: nowrap; transition: color .15s; }
.spec-go { flex: none; padding: 8px 16px; border-radius: 999px; background: var(--btn); color: var(--btn-ink); font-size: 13.5px; font-weight: 700; white-space: nowrap; transition: background .15s, color .15s; }
.spec:hover .spec-go { background: var(--acc-fill); color: #fff; }
.spec.soldout .spec-cv { filter: grayscale(.85); opacity: .75; }
.spec.soldout .spec-t b { color: var(--muted); }
.spec.soldout .spec-p, .spec.soldout:hover .spec-p { color: var(--dim); text-decoration: line-through; text-decoration-thickness: 2px; }
.spec.soldout .spec-go, .spec.soldout:hover .spec-go { background: transparent; color: var(--down); padding-right: 4px; }
.spec.soldout:hover { transform: none; box-shadow: none; }

/* 面板下方的其它入口：邀请下单、去 16688 下单 */
.spot-inv, .spot-alt { margin: -8px 0 20px; font-size: 13px; color: var(--muted); }
.spot-alt button { color: var(--acc); text-decoration: underline; text-underline-offset: 3px; }
.spot-alt .sep { margin: 0 6px; color: var(--dim); }
.shop-h { margin: 0 0 12px; font-size: 14px; font-weight: 800; }
.spot-steps { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0 0 14px 18px; font-size: 13px; color: var(--muted); }
.inv-btn, .inv-one, .inv-alt { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border: 1px solid var(--hair2); border-radius: 999px; font-size: 13px; }
.inv-one { flex-direction: column; align-items: flex-start; margin-bottom: 18px; padding: 12px 18px; border-radius: 16px; }
.inv-one .t { font-weight: 800; }
.inv-one.off, .inv-alt.off { opacity: .55; pointer-events: none; }
.inv-alt { flex-wrap: wrap; border: 0; padding: 0; }
.inv-cap, .inv-note, .inv-plain, .inv-unit { font-size: 12.5px; color: var(--muted); }
.inv-plain, .inv-unit { margin: -8px 0 20px; }
.inv-unit button { color: var(--acc); }
.packs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.pack { padding: 8px 14px; border: 1px solid var(--hair2); border-radius: 14px; text-align: left; }
.pack b { display: block; font-size: 20px; }
.pack.off { opacity: .55; }
.nwarn { color: var(--down); }

/* 「想要别的会员」：问句卡片 */
.grid { display: block; margin-top: 24px; }
.grid:empty { display: none; }
.ask { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 16px; padding: 20px 22px; border: 1px dashed var(--hair2); border-radius: 22px; background: var(--s1); transition: border-color .15s, background .15s; }
.ask:hover { border-color: var(--acc-fill); background: var(--acc-soft); }
.ask-ic { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 16px; background: var(--acc-soft); color: var(--acc); }
.ask-t b { display: block; font-size: 16px; font-weight: 800; }
.ask-t small { display: block; font-size: 13px; color: var(--muted); }
.ask-go { padding: 9px 18px; border-radius: 999px; background: var(--btn); color: var(--btn-ink); font-size: 13.5px; font-weight: 700; white-space: nowrap; }
.ask:hover .ask-go { background: var(--acc-fill); color: #fff; }

/* 已下架的品牌：最后一句话 */
.spot-off { display: flex; align-items: center; gap: 12px; margin-top: 14px; padding: 14px 20px; border-radius: 18px; background: var(--s2); font-size: 14px; color: var(--muted); }
.spot-off img { width: 22px; height: 22px; filter: grayscale(1); opacity: .6; }

/* ---------- 屏幕下面：公告、客服、页脚 ---------- */
.below { display: grid; gap: 24px; padding-top: 40px; padding-bottom: 56px; }
.news { display: grid; grid-template-columns: minmax(200px, 260px) minmax(0, 1fr); gap: 40px; padding: 30px 34px; border: 1px solid var(--hair); border-radius: 26px; background: var(--s1); box-shadow: var(--sh1); }
.news[hidden] { display: none; }
.news h2, .help h2 { font-size: clamp(24px, 2.4vw, 32px); font-weight: 900; line-height: 1.2; letter-spacing: -.02em; }
.n-it { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--hair); font-size: 14px; line-height: 1.7; cursor: pointer; }
.n-it:first-child { padding-top: 0; }
.n-it:last-child { border-bottom: 0; padding-bottom: 0; }
.n-it > span { white-space: nowrap; color: var(--muted); font-variant-numeric: tabular-nums; }
.n-it p { color: var(--txt); }
.n-it:hover p { color: var(--ink); }

/* 客服 */
#help { padding: 0; }
.help { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); border: 1px solid var(--hair); border-radius: 26px; background: var(--s1); box-shadow: var(--sh1); overflow: hidden; }
.help > div:first-child { display: flex; flex-direction: column; justify-content: space-between; gap: 24px; padding: 30px 34px;
  background: radial-gradient(420px 220px at 0% 0%, var(--acc-soft), transparent 70%); border-right: 1px solid var(--hair); }
.contacts { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.contact { display: grid; justify-items: start; align-content: start; gap: 8px; padding: 28px 28px; }
.contact + .contact { border-left: 1px solid var(--hair); }
.contact small { font-size: 12.5px; font-weight: 700; color: var(--muted); }
.contact .num { font: 700 28px/1.1 var(--num); letter-spacing: .02em; }
.qr-thumb { width: 132px; height: 132px; padding: 8px; background: #fff; border-radius: 16px; border: 1px solid var(--hair); }
.qr-thumb img { width: 100%; height: 100%; display: block; }
.kefu-ico svg { width: 48px; height: 48px; }
.copy { padding: 4px 14px; border: 1px solid var(--hair2); border-radius: 999px; font-size: 12.5px; font-weight: 700; }
.copy:hover { border-color: var(--acc-fill); color: var(--acc); }
.copy.ok { border-color: var(--up); color: var(--up); }
.contacts-more { display: grid; gap: 8px; margin-top: 16px; }
.contacts-more:empty { display: none; }
.contacts-more .contact { padding: 0; grid-auto-flow: column; align-items: center; justify-content: start; gap: 10px; }
.follow:empty { display: none; }
.fw-h { font-size: 13px; font-weight: 800; }
.fw-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.fw { display: flex; align-items: center; gap: 10px; padding: 8px 16px 8px 8px; border: 1px solid var(--hair); border-radius: 16px; background: var(--s1); text-align: left; transition: border-color .15s; }
.fw:hover { border-color: var(--acc-fill); }
.fw img { width: 40px; height: 40px; padding: 2px; background: #fff; border-radius: 10px; }
.fw-ico svg { width: 38px; height: 38px; display: block; }
.fw-t small { display: block; font-size: 11.5px; color: var(--muted); }
.fw-t strong { font-size: 14px; font-weight: 800; }

/* 页脚 */
.footer { background: var(--hero); color: #8a90a8; }
.footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 20px; padding-top: 22px; padding-bottom: calc(22px + env(safe-area-inset-bottom)); font: 12.5px/1.6 var(--font); }

/* 手机底部导航（≤640px） */
.tabbar { display: none; }

/* ---------- 弹窗：结构在 modal.css，这里换成「橱窗」的颜色和形状（圆角、胶囊按钮） ---------- */
.mask { background: rgba(8, 10, 18, .6); }
.modal { background: var(--s1); color: var(--ink); border: 1px solid var(--hair); border-radius: 24px; box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .55); }
.modal .close { border-radius: 50%; }
.modal .close:hover { background: var(--s2); }
.m-badge { border-radius: 999px; background: var(--acc-soft); color: var(--acc); }
:root[data-theme="dark"] .m-badge { color: var(--acc); }
.m-product { border: 1px solid var(--hair); border-radius: 16px; background: var(--s2) !important; }
.m-product .pico, .d-ico { background: #fff; color: #14161a; border: 0; border-radius: 18px; box-shadow: 0 6px 18px -8px rgba(18, 20, 28, .3); }
.m-tiers button { border-radius: 999px; border: 1px solid var(--hair2); }
.m-tiers button.on { background: var(--btn); border-color: var(--btn); color: var(--btn-ink); }
.m-legal { border-radius: 14px; background: var(--s2); }
.m-legal .tax, :root[data-theme="dark"] .m-legal .tax { color: var(--up); }
.m-flow span { border-radius: 999px; background: var(--s2); }
.m-actions .ghost, .d-foot .ghost { border-radius: 999px; border: 1px solid var(--hair2); }
.d-tags span { border-radius: 999px; background: var(--s2); }
.d-tags span.g, :root[data-theme="dark"] .d-tags span.g { background: color-mix(in srgb, var(--up) 14%, transparent); color: var(--up); }
.d-tags span.warn { background: var(--low-soft); color: var(--low); }
.d-price .price, .o-total .price, .m-product .price { color: var(--ink); }
.d-desc-title, .d-foot, .d-go-note, .d-pay { border-color: var(--hair) !important; border-top-width: 1px !important; }
.d-desc-title { border-bottom-width: 1px; }
.d-desc-title::before { background: var(--acc-fill); border-radius: 2px; }
.d-desc blockquote { border-left-color: var(--acc-fill); background: var(--acc-soft); border-radius: 0 12px 12px 0; }
.d-desc .d-notice, :root[data-theme="dark"] .d-desc .d-notice { border: 1px solid var(--down); border-left-width: 4px; border-radius: 14px; box-shadow: none; background: var(--down-soft); color: var(--down); }
.d-desc img { border-radius: 12px; }
/* 货源原文说明自带文字颜色（黑字、红字、白字都有）：深色模式下放在一张浅色说明纸上，保证看得清 */
:root[data-theme="dark"] .d-raw { margin: 4px -12px 0; padding: 14px 16px; border-radius: 14px; background: #f3f4f8; color: #1b1d22; }
:root[data-theme="dark"] .d-raw a { color: #4f46e5; }
:root[data-theme="dark"] .d-raw blockquote { background: rgba(79, 70, 229, .1); }
.dl-banner { border-radius: 14px; background: var(--acc-soft); }
.precheck { border-radius: 16px; border-width: 1px; }
.precheck.cards li { border-radius: 14px; border-width: 1px; background: var(--s2); }
.precheck.cards li::before { background: var(--ink); color: var(--bg); }
.precheck.cards .pc-confirm, .pc-confirm { border-radius: 14px; box-shadow: none; }
.precheck a.pc-btn { border-radius: 999px; box-shadow: none; border: 0; }
.zp-btn { border-radius: 999px; border: 0; box-shadow: none; background: var(--btn); color: var(--btn-ink) !important; }
.zp-warn { border-radius: 12px; }

/* 全站通知弹窗：深色头部（和首屏横幅同色）+ 时间线正文 */
.pop-head { background: radial-gradient(360px 200px at 100% 0%, rgba(129, 120, 255, .45), transparent 70%), var(--hero); color: #fff; border-bottom: 0; box-shadow: none; }
.pop-head::before, .pop-head::after { display: none; }
.pop-head .close { color: rgba(255, 255, 255, .7); }
.pop-head .close:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.pop-ico { width: 50px; height: 50px; border-radius: 16px; border: 0; background: #fff; color: #4f46e5; box-shadow: none; transform: none; animation: none; }
.pop-ico svg { width: 24px; height: 24px; }
.pop-tag { border: 0; border-radius: 999px; background: #fff; color: #12141c; }
.pop-date { border-radius: 999px; background: rgba(255, 255, 255, .14); color: #dfe2f3; font-weight: 600; }
.pop-head h3 { font: 900 22px/1.3 var(--font); color: #fff; text-shadow: none; }
.pop-item::before { width: 8px; height: 8px; left: 5px; top: 11px; background: var(--acc-fill); box-shadow: 0 0 0 3px var(--acc-soft); }
.pop-item:not(:last-child)::after { border-left: 1px dashed var(--hair2); }
.pop-hot { border-radius: 16px; box-shadow: none; border: 1px solid color-mix(in srgb, var(--acc-fill) 35%, transparent); background: var(--acc-soft); }
.pop-hot .fire { display: none; }
.pop-body a { color: var(--acc); }
.pop-acts button { border-radius: 999px; box-shadow: none; border: 1px solid var(--hair2); }
.pop-acts button:hover { transform: none; }
.pop-ok, .inv-pay { background: var(--btn); border-color: var(--btn) !important; color: var(--btn-ink); border-radius: 999px; box-shadow: none; }
.pop-ok:hover, .inv-pay:hover { background: var(--acc-fill); border-color: var(--acc-fill) !important; color: #fff; transform: none; }
.pop-go { background: transparent; color: var(--ink); }
.pop-gzh { border-radius: 16px; border: 1px solid var(--hair); background: var(--s2); }
.pop-gzh img { border-radius: 10px; }
.inv-lead { color: rgba(255, 255, 255, .8); }
.inv-f input, .inv-qty > button { border-radius: 12px; border: 1px solid var(--hair2); }
.inv-quick button { border-radius: 999px; border: 1px solid var(--hair2); }
.inv-quick button.on { background: var(--btn); border-color: var(--btn); color: var(--btn-ink); }
.inv-sum { border-radius: 14px; background: var(--acc-soft); }
.inv-sum strong { color: var(--ink); }

/* 客服二维码弹窗 */
.qr-modal { max-width: 380px; text-align: center; }
.qr-modal .m-tiers { justify-content: center; margin-top: 14px; }
.qr-modal h3 { margin-top: 14px; }
#qrImg { display: block; width: 230px; max-width: 100%; margin: 12px auto 14px; padding: 10px; background: #fff; border-radius: 18px; border: 1px solid var(--hair); }
.qr-row { display: flex; align-items: center; justify-content: center; gap: 12px; font-size: 14px; }
.qr-row b { font-family: var(--num); font-size: 18px; }

/* 客服聊天窗（kefu.js 自己插的样式，这里盖掉形状和颜色） */
body .kf-fab { border: 0; border-radius: 999px; background: var(--btn); color: var(--btn-ink); box-shadow: var(--sh2); padding: 12px 18px 12px 14px; }
body .kf-fab svg path { fill: var(--btn-ink); stroke: var(--btn-ink); }
body .kf-fab svg circle { fill: var(--btn); }
body .kf-fab .kf-dot { border: 0; background: var(--down); color: #fff; }
body .kf-panel { border: 1px solid var(--hair); border-radius: 22px; box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .55); background: var(--s1); }
body .kf-head { background: var(--hero); color: #fff; border-bottom: 0; }
body .kf-x { background: rgba(255, 255, 255, .1); color: #fff; border-radius: 50%; }
body .kf-log { background: var(--bg); }
body .kf-m .kf-b { border: 1px solid var(--hair); border-radius: 14px; }
body .kf-m.mine .kf-b { background: var(--acc-soft); border-color: color-mix(in srgb, var(--acc-fill) 30%, transparent); }
body .kf-m .kf-b a { color: var(--acc); }
body .kf-sys { border-radius: 999px; border: 1px solid var(--hair); }
body .kf-foot { border-top: 1px solid var(--hair); }
body .kf-btn { border: 1px solid var(--hair2); border-radius: 999px; box-shadow: none; }
body .kf-btn.pri { background: var(--btn); border-color: var(--btn); color: var(--btn-ink); box-shadow: none; }
body .kf-opt select, body .kf-opt input, body .kf-in textarea { border: 1px solid var(--hair2); border-radius: 12px; }
body .kf-opt select:focus, body .kf-opt input:focus, body .kf-in textarea:focus { border-color: var(--acc-fill); }

/* 登录 / 注册窗（/shop/auth.js） */
body .tca-mask { background: rgba(8, 10, 18, .6); }
body .tca { border: 1px solid var(--hair); border-radius: 24px; box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .55); background: var(--s1); }
body .tca .tca-tabs { border-radius: 999px; background: var(--s2); }
body .tca .tca-tabs button { border-radius: 999px; }
body .tca .tca-tabs button.on { background: var(--s1); box-shadow: 0 1px 4px rgba(0, 0, 0, .12); }
body .tca input[type=email], body .tca input[type=password], body .tca input[type=text] { border: 1px solid var(--hair2); border-radius: 12px; background: var(--bg); }
body .tca input:focus { border-color: var(--acc-fill); }
body .tca .tca-cap { border: 1px solid var(--hair2); border-radius: 12px; }
body .tca .tca-btn { border: 1px solid var(--hair2); border-radius: 999px; }
body .tca .tca-main { background: var(--btn); border-color: var(--btn); color: var(--btn-ink); box-shadow: none; }
body .tca .tca-tip { border-radius: 12px; }
body .tca .tca-tip a, body .tca .tca-links a { color: var(--acc); }

/* ---------- 动效：价格变了闪一下；系统「减弱动态效果」时价格带停住、不闪、卡片不浮起 ---------- */
.tc-tick { animation: tc-tick 1.6s ease-out; border-radius: 6px; }
@keyframes tc-tick { 0%, 30% { background: var(--acc-fill); color: #fff; box-shadow: 0 0 0 4px var(--acc-fill); } 100% { background: transparent; box-shadow: 0 0 0 4px transparent; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .tape-track { animation: none; }
  .tape-run { overflow-x: auto; }
  .tc-tick { animation: none; color: var(--acc); }
  .an-live i, .tape-tag i, .hero-pill i, .an-dots i.today { animation: none; }
  .precheck a.pc-btn { animation: none; }
  .spec, .shelf-i { transition: none; }
  .spec:hover, .shelf-i:hover { transform: none; }
}

/* ---------- 窄屏 ---------- */
@media (max-width: 1180px) {
  .cat img { display: none; }  /* 品类多时一行放得下 */
  .hero { padding: 48px 44px 44px; gap: 36px; }
}
@media (max-width: 1100px) {
  .spot.big .spot-hd { padding: 30px 32px 28px; }
  .spot.big .spot-shop { padding: 26px 32px 6px; }
}
@media (max-width: 999px) {
  html { scroll-padding-top: 128px; }
  .wrap { padding-left: 20px; padding-right: 20px; }
  .top { padding: 8px 12px 0; }
  .top-in { flex-wrap: wrap; height: auto; padding: 0 8px 0 12px; gap: 0 10px; border-radius: 22px; }
  .logo { height: 54px; }
  .top-r { margin-left: auto; }
  .cats { order: 3; flex: 0 0 calc(100% + 20px); height: 48px; margin: 0 -8px 0 -12px; padding: 0 8px; border-top: 1px solid var(--hair); }
  .tape-tag { padding-left: 20px; }
  .lead { padding-top: 14px; }
  .hero { grid-template-columns: 1fr; padding: 40px 32px 32px; border-radius: 26px; }
  .shelf { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .shelf.n1 .shelf-i:first-child, .shelf.n3 .shelf-i:first-child, .shelf.n5 .shelf-i:first-child { grid-column: auto; grid-template-columns: 40px minmax(0, 1fr); padding: 14px 16px 14px 14px; }
  .shelf.n1 .shelf-i:first-child .shelf-p, .shelf.n3 .shelf-i:first-child .shelf-p, .shelf.n5 .shelf-i:first-child .shelf-p { grid-column: auto; grid-row: auto; }
  .shelf-i { grid-template-columns: 40px minmax(0, 1fr); }
  .shelf-logo { width: 40px; height: 40px; border-radius: 12px; }
  .lanes { display: flex; flex-direction: column; gap: 18px; }
  .spot.big .spot-hd, .spot.few .spot-hd { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px; align-items: center; }
  .spot-mark { width: 92px; height: 92px; border-radius: 26px; }
  .spot-specs, .spot-specs.c3, .spot-specs.c4, .spot-specs.c5 { --c: 2; }
  .spec-group { grid-column: 1 / -1; }
  .spec-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  @supports (grid-template-rows: subgrid) { .spec-group { grid-row: auto; grid-template-rows: auto 1fr; } }
  .news { grid-template-columns: 1fr; gap: 14px; padding: 26px 24px; }
  .help { display: flex; flex-direction: column; }
  .help > div:first-child { display: contents; }
  .help h2 { order: 1; padding: 24px 24px 18px; border-bottom: 1px solid var(--hair); background: radial-gradient(420px 220px at 0% 0%, var(--acc-soft), transparent 70%); }
  .contacts { order: 2; }
  .follow { order: 3; padding: 20px 24px; border-top: 1px solid var(--hair); }
}
/* 手机：商品卡变成一行（左边小方块封面，右边名称、说明、价格和购买），第一屏就能看到价格；底部四格导航 */
@media (max-width: 640px) {
  html { scroll-padding-top: 122px; }
  body { padding-bottom: calc(62px + env(safe-area-inset-bottom)); }
  .wrap { padding-left: 12px; padding-right: 12px; }
  .top { padding: 6px 8px 0; }
  .top-in { border-radius: 20px; padding: 0 6px 0 10px; }
  .logo { height: 50px; font-size: 16px; }
  .logo img { width: 30px; height: 30px; }
  .cats { height: 44px; }
  .cat { height: 34px; padding: 0 11px; font-size: 13.5px; }
  .top-r { gap: 2px; }
  .acct-btn { height: 34px; padding: 0 14px; }
  .icon-btn { width: 34px; height: 34px; }
  .tape-tag { padding-left: 12px; }
  .lead { padding-top: 10px; }
  .hero { padding: 22px 16px 18px; border-radius: 22px; gap: 0; }
  .hero-pill { display: none; }  /* 顶上价格带已经写了实时价格 */
  .hero h1 { margin-top: 0; font-size: 30px; }
  .lead-sub { margin-top: 10px; font-size: 14px; line-height: 1.7; }
  .find { height: 50px; margin-top: 16px; padding-left: 14px; }
  .find .go { height: 40px; padding: 0 18px; font-size: 14px; }
  .trust-row { gap: 2px; margin-top: 12px; font-size: 12px; line-height: 1.55; }
  .shelf { display: none; }  /* 顶栏第二行就是品类，横幅里不重复，价格早点露出来 */
  #products { padding-top: 16px; }
  .lanes { gap: 14px; }
  .spot { border-radius: 22px; }
  .spot-hd, .spot.big .spot-hd, .spot.few .spot-hd { display: block; padding: 16px 14px 14px; }
  .spot-brand { min-height: 34px; }
  .spot-logo { width: 34px; height: 34px; border-radius: 10px; }
  .spot-logo img { width: 22px; height: 22px; }
  .t-doll .spot-logo img { width: 34px; height: 34px; }
  .spot-art { display: none; }
  .spot.big .spot-brand .spot-sum { display: none; }
  .spot-slogan, .spot.big .spot-slogan, .spot.few .spot-slogan { margin-top: 10px; font-size: 22px; line-height: 1.25; }
  .spot-slogan br { display: none; }  /* 手机上口号一行 */
  .spot-sub { margin-top: 6px; font-size: 13px; }
  .spot-name { margin-top: 8px; font-size: 13px; }
  .spot-pts { gap: 6px; margin-top: 10px; }
  .spot-pts li { padding: 3px 10px 3px 4px; font-size: 12.5px; }
  .spot-pts li::before { width: 16px; height: 16px; line-height: 16px; font-size: 9.5px; }
  .spot-shop, .spot.big .spot-shop { padding: 14px 12px 0; }
  .spot-specs, .spot-specs.c3, .spot-specs.c4, .spot-specs.c5 { display: block; }
  .spec-head { padding: 2px 4px 8px; }
  .spec-grid { display: grid; grid-template-columns: 1fr; gap: 8px; padding-bottom: 16px; }
  .spec { display: grid; grid-template-columns: 46px minmax(0, 1fr) auto; grid-template-areas: "ic t p" "ic n go" "ic st go"; align-items: center; column-gap: 12px; row-gap: 2px;
    padding: 10px 12px 10px 10px; border-radius: 16px; }
  .spec:hover { transform: none; }
  .spec-cv, .spec-f { display: contents; }
  .spec-ic { grid-area: ic; position: static; align-self: start; width: 46px; height: 46px; padding: 11px; border-radius: 13px; box-shadow: none;
    background: color-mix(in srgb, var(--tint) 14%, var(--s1)); }
  .spec-ic:empty { display: block; }
  .spec-ic.txt { background: var(--tint); }
  :root:not([data-theme="light"]) .spec-ic:not(.txt) { background: #fff; }  /* 深色模式：黑色标志放在白底上才看得清 */
  .spec-ic b { font-size: 20px; }
  .t-doll .spec-ic { padding: 0; }
  .spec-t { grid-area: t; align-self: end; }
  .spec-t b { display: inline; font-size: 15.5px; }
  .spec-t small { display: inline; margin: 0 0 0 6px; font-size: 13px; }
  .spec-n { grid-area: n; padding: 0; font-size: 12px; }
  .spec-st { grid-area: st; position: static; justify-self: start; margin-top: 2px; padding: 0 8px; font-size: 11.5px; }
  .spec-p { grid-area: p; justify-self: end; align-self: end; font-size: 25px; }
  .spec-go { grid-area: go; justify-self: end; align-self: start; margin-top: 4px; padding: 5px 13px; font-size: 12.5px; }
  .spec.soldout .spec-ic { filter: grayscale(1); opacity: .6; }
  .spot-inv, .spot-alt, .inv-plain, .inv-unit { margin: -6px 4px 16px; }
  .ask { grid-template-columns: auto minmax(0, 1fr); padding: 16px; border-radius: 18px; }
  .ask-ic { width: 42px; height: 42px; border-radius: 14px; }
  .ask-go { grid-column: 1 / -1; justify-self: stretch; text-align: center; }
  .below { padding-top: 28px; padding-bottom: 32px; gap: 14px; }
  .news, .help { border-radius: 22px; }
  .news { padding: 22px 18px; }
  .n-it { grid-template-columns: 1fr; gap: 2px; }
  .help h2, .follow { padding-left: 18px; padding-right: 18px; }
  .contact { padding: 22px 18px; }
  .contact + .contact { border-left: 0; border-top: 1px solid var(--hair); }
  .footer .wrap { padding-bottom: 22px; }
  .tabbar { display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); border-top: 1px solid var(--hair);
    background: var(--s1); background: color-mix(in srgb, var(--s1) 86%, transparent); -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4); }
  .tabbar a { display: grid; justify-items: center; gap: 2px; padding: 4px 0; font-size: 11px; color: var(--muted); }
  .tabbar a:active { color: var(--acc); }
  .tabbar svg { display: block; }
}

/* 占整行但只有 1～2 个商品的面板（few）：左边介绍、右边商品卡 */
@media (min-width: 1000px) {
  .spot.few { flex-direction: row; }
  .spot.few .spot-hd { flex: 1.35; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px; align-items: center; padding: 34px 40px; border-bottom: 0; border-right: 1px solid var(--hair); }
  .spot.few .spot-mark { width: 116px; height: 116px; border-radius: 30px; }
  .spot.few .spot-slogan { font-size: clamp(28px, 2.6vw, 38px); line-height: 1.15; letter-spacing: -.03em; }
  .spot.few .spot-shop { flex: 1; align-self: center; padding: 32px 36px 8px; }
  .spot.few .spot-specs.c1 .spec { max-width: 360px; }
}
