:root {
  --brand: #ff5a36;
  --brand-2: #ff3b30;
  --brand-soft: #fff1ec;
  --bg: #f5f5f7;
  --card: #ffffff;
  --text: #1d1d1f;
  --text-2: #424245;
  --muted: #86868b;
  --line: rgba(0, 0, 0, .08);
  --fill: rgba(0, 0, 0, .045);
  --price: #ff3b30;
  --trust: #0a7d4b;
  --ok: #0a7d4b;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(0, 0, 0, .03), 0 6px 24px rgba(0, 0, 0, .04);
  --tabbar-h: 56px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --card: #1c1c1e;
    --text: #f5f5f7;
    --text-2: #d1d1d6;
    --muted: #98989d;
    --line: rgba(255, 255, 255, .1);
    --fill: rgba(255, 255, 255, .08);
    --brand-soft: #3a1f18;
    --price: #ff6961;
    --trust: #30d158;
    --ok: #30d158;
    --shadow: none;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0 auto;
  max-width: 560px;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.5 -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  padding-bottom: calc(env(safe-area-inset-bottom) + 24px);
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior-y: none;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; border: 0; background: none; padding: 0; cursor: pointer; }
button, .tabbar a, .chip { -webkit-user-select: none; user-select: none; touch-action: manipulation; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
[hidden] { display: none !important; }

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; gap: 12px;
  padding: calc(env(safe-area-inset-top) + 10px) 16px 10px;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
}
.brand { display: flex; align-items: center; gap: 6px; font-weight: 700; font-size: 17px; white-space: nowrap; }
.brand-mark {
  display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px;
  background: var(--brand); color: #fff; font-size: 15px;
}
.search {
  flex: 1; display: flex; align-items: center; gap: 6px;
  height: 36px; padding: 0 12px; border-radius: 18px;
  background: var(--card); color: var(--muted); box-shadow: var(--shadow);
}
.search svg { width: 16px; height: 16px; flex: none; }
.search input {
  flex: 1; min-width: 0; border: 0; outline: 0; background: none; color: var(--text);
  font-size: 16px; /* 防止 iOS 聚焦缩放 */
}

/* ---------- hero ---------- */
.hero {
  margin: 4px 16px 0; padding: 18px; border-radius: 18px; color: #fff;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%);
  position: relative; overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; right: -40px; top: -40px; width: 160px; height: 160px;
  border-radius: 50%; background: rgba(255, 255, 255, .12);
}
.hero-tag { display: inline-block; padding: 2px 8px; border-radius: 10px; background: rgba(255, 255, 255, .22); font-size: 12px; }
.hero h1 { margin: 8px 0 4px; font-size: 22px; line-height: 1.3; }
.hero p { margin: 0; opacity: .92; font-size: 13px; }
.countdown { display: flex; gap: 6px; margin-top: 14px; align-items: baseline; font-size: 13px; }
.countdown b {
  display: inline-grid; place-items: center; min-width: 34px; height: 34px; padding: 0 6px;
  border-radius: 8px; background: rgba(0, 0, 0, .18); font-size: 18px; font-variant-numeric: tabular-nums;
}

/* ---------- chips ---------- */
.chips {
  display: flex; gap: 8px; padding: 14px 16px 2px; overflow-x: auto; scrollbar-width: none;
  overscroll-behavior-x: contain;
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; height: 32px; padding: 0 14px; border-radius: 16px;
  background: var(--card); color: var(--text); font-size: 14px; box-shadow: var(--shadow);
}
.chip[aria-pressed="true"] { background: var(--text); color: var(--bg); }

/* ---------- blocks ---------- */
.block { margin: 18px 16px 0; }
.block-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 10px; }
.block h2, .block h1 { margin: 0; font-size: 18px; }
.more { color: var(--muted); font-size: 13px; padding: 6px 0 6px 12px; }
.empty { text-align: center; color: var(--muted); padding: 24px 0; }

/* ---------- product grid ---------- */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.card {
  position: relative; display: flex; flex-direction: column; gap: 8px; text-align: left;
  padding: 14px; border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow);
  transition: transform .12s ease;
}
.card:active { transform: scale(.98); }
.card-top { display: flex; align-items: center; gap: 10px; min-width: 0; }
.logo {
  flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px;
  color: #fff; font-weight: 700; font-size: 16px; letter-spacing: -.5px;
}
.card-name { font-weight: 600; font-size: 14px; line-height: 1.3; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.price-row { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.price { color: var(--price); font-weight: 700; font-size: 22px; font-variant-numeric: tabular-nums; }
.price small { font-size: 13px; margin-right: 1px; }
.price-unit { color: var(--muted); font-size: 12px; }
.original { color: var(--muted); font-size: 12px; text-decoration: line-through; }
.badges { display: flex; gap: 4px; flex-wrap: wrap; min-height: 20px; }
.badge { padding: 1px 6px; border-radius: 4px; font-size: 11px; line-height: 18px; background: var(--brand-soft); color: var(--brand); }
.badge.renew { background: color-mix(in srgb, #f59e0b 16%, transparent); color: #b45309; }
.badge.low { background: color-mix(in srgb, var(--ok) 14%, transparent); color: var(--ok); }
.badge.hot { background: var(--brand); color: #fff; }

/* ---------- deals ---------- */
.deals { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.deal { padding: 14px; border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow); }
.deal-meta { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.src { padding: 0 6px; border-radius: 4px; color: #fff; font-size: 11px; line-height: 18px; }
.src.ithome { background: #d22222; }
.src.smzdm { background: #f04848; }
.src.mydrivers { background: #1d5fb3; }
.src.manual { background: var(--brand); }
.deal-title { margin: 6px 0 0; font-size: 15px; line-height: 1.45; font-weight: 500; }
.deal-note { margin: 4px 0 0; font-size: 13px; color: var(--muted); }
.deal-actions { display: flex; align-items: center; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.deal-actions .price { font-size: 18px; margin-right: auto; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 4px;
  height: 34px; padding: 0 14px; border-radius: 17px; font-size: 14px; font-weight: 600;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-ghost { background: var(--bg); color: var(--text); }
.btn:active { opacity: .8; }

/* ---------- calendar ---------- */
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li {
  position: relative; padding: 12px 14px 12px 34px; margin-bottom: 10px;
  border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow);
}
.timeline li::before {
  content: ""; position: absolute; left: 14px; top: 19px; width: 10px; height: 10px; border-radius: 50%;
  background: var(--line);
}
.timeline li.active::before { background: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.timeline .when { font-size: 12px; color: var(--muted); }
.timeline .name { font-weight: 600; }
.timeline .live { color: var(--brand); font-size: 12px; margin-left: 6px; }
.tips { padding: 14px 16px; border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow); }
.tips h2 { font-size: 16px; }
.tips ul { margin: 8px 0 0; padding-left: 18px; color: var(--muted); font-size: 14px; }
.tips li + li { margin-top: 6px; }

/* ---------- footer / tabbar ---------- */
.disclosure { margin: 24px 16px 0; font-size: 12px; color: var(--muted); line-height: 1.6; text-align: center; }
.tabbar {
  position: fixed; left: 50%; bottom: 0; z-index: 20; transform: translateX(-50%);
  width: 100%; max-width: 560px; display: flex;
  height: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  background: color-mix(in srgb, var(--card) 92%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-top: 1px solid var(--line);
}
.tabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 11px; color: var(--muted); }
.tabbar a[aria-current="page"] { color: var(--brand); }
.tabbar svg { width: 22px; height: 22px; }

/* ---------- bottom sheet ---------- */
.sheet-backdrop { position: fixed; inset: 0; z-index: 30; background: rgba(0, 0, 0, .45); animation: fade .2s ease; }
.sheet {
  position: fixed; left: 50%; bottom: 0; z-index: 31; transform: translateX(-50%);
  width: 100%; max-width: 560px; max-height: 86dvh; overflow-y: auto; overscroll-behavior: contain;
  padding: 8px 18px calc(18px + env(safe-area-inset-bottom));
  border-radius: 20px 20px 0 0; background: var(--card);
  animation: up .28s cubic-bezier(.2, .8, .2, 1);
}
.sheet-grip { width: 36px; height: 4px; border-radius: 2px; background: var(--line); margin: 0 auto 12px; }
.sheet-head { display: flex; align-items: center; gap: 12px; }
.sheet-head .logo { width: 48px; height: 48px; font-size: 20px; border-radius: 12px; }
.sheet h3, .sheet h1 { margin: 0; font-size: 18px; }
.sheet-price { display: flex; align-items: baseline; gap: 8px; margin: 14px 0 4px; }
.sheet-price .price { font-size: 30px; }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 12px 0; }
.stat { padding: 10px; border-radius: 10px; background: var(--bg); text-align: center; }
.stat b { display: block; font-size: 16px; font-variant-numeric: tabular-nums; }
.stat span { font-size: 12px; color: var(--muted); }
.sheet h4 { margin: 16px 0 8px; font-size: 14px; }
.options { display: flex; flex-direction: column; gap: 8px; }
.option {
  display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 12px; border: 1px solid var(--line);
}
.option.best { border-color: var(--brand); background: var(--brand-soft); }
.option-main { flex: 1; min-width: 0; }
.option-title { font-size: 14px; line-height: 1.45; font-weight: 500; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.option-side { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.option-side .price { font-size: 18px; }
.go { font-size: 12px; color: var(--brand); font-weight: 600; }
.plat { display: inline-block; margin-right: 6px; padding: 0 5px; border-radius: 4px; font-size: 11px; line-height: 17px; color: #fff; vertical-align: 1px; }
.plat.jd { background: #e1251b; }
.plat.taobao { background: #ff5000; }
.card-sub { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sheet ul.tip-list { margin: 0; padding-left: 18px; color: var(--muted); font-size: 14px; }
.sheet .fineprint { margin-top: 14px; font-size: 12px; color: var(--muted); }
.spark { width: 100%; height: 64px; display: block; }

.toast {
  position: fixed; left: 50%; bottom: calc(env(safe-area-inset-bottom) + 24px); z-index: 40;
  transform: translateX(-50%); max-width: 86vw; padding: 10px 16px; border-radius: 10px;
  background: rgba(0, 0, 0, .82); color: #fff; font-size: 14px; text-align: center;
}

@keyframes up { from { transform: translate(-50%, 100%); } }
@keyframes fade { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
@media (hover: hover) { .card:hover, .deal:hover { box-shadow: 0 6px 20px rgba(0, 0, 0, .08); } }
@media (max-width: 340px) { .grid { grid-template-columns: 1fr; } }

/* ---------- 联合会员 ---------- */
.bundles { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.bundle { padding: 14px; border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow); }
.bundle-brands { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 6px; }
.brand { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 600; }
.logo.mini { width: 20px; height: 20px; border-radius: 6px; font-size: 11px; letter-spacing: -.5px; }
.logo.other { background: var(--muted); }
.logo.icon { background: none; object-fit: cover; box-shadow: 0 0 0 .5px rgba(0,0,0,.08); }
.plus { color: var(--muted); font-size: 13px; }
.bundle-title { margin: 8px 0 0; font-size: 14px; line-height: 1.45; color: var(--text); }
.bundle .deal-actions { margin-top: 8px; }
.bundle .deal-actions .price { font-size: 20px; margin-right: auto; }
.bundle .muted.small { margin-top: 4px; }

/* ---------- 月均价 ---------- */
.per-month { font-size: 12px; color: var(--text); margin-top: -4px; }
.per-month b { color: var(--price); font-size: 14px; }
.months-tag { padding: 1px 8px; border-radius: 10px; background: var(--brand-soft); color: var(--brand); font-size: 13px; font-weight: 600; }
.option-side .per { font-size: 11px; color: var(--muted); white-space: nowrap; }
.dur { margin-left: 3px; padding: 0 5px; border-radius: 4px; background: var(--bg); color: var(--muted); font-size: 11px; font-weight: 500; line-height: 16px; }

/* ---------- 官方店标签 ---------- */
.badge.official { background: color-mix(in srgb, #1677ff 12%, transparent); color: #1677ff; font-weight: 600; }
.option-meta { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; margin-top: 3px; }
.option-meta .muted.small { line-height: 18px; }

/* ---------- 顶部推荐位（轮播）---------- */
.hero.carousel { padding: 12px 0 10px; }
.hero-promo { padding: 0 16px; font-size: 12px; opacity: .9; position: relative; z-index: 1; }
.slides { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; position: relative; z-index: 1; }
.slides::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 100%; scroll-snap-align: start; padding: 10px 16px 4px; box-sizing: border-box; cursor: pointer; }
.slide-head { display: flex; align-items: center; gap: 8px; }
.slide-head .logo { width: 30px; height: 30px; border-radius: 8px; font-size: 14px; border: 2px solid rgba(255,255,255,.7); }
.slide-name { font-size: 17px; font-weight: 700; }
.slide-off { margin-left: auto; padding: 2px 8px; border-radius: 10px; background: #fff; color: var(--brand-2); font-size: 13px; font-weight: 700; }
.slide-price { margin-top: 6px; font-size: 44px; font-weight: 800; line-height: 1.05; font-variant-numeric: tabular-nums; letter-spacing: -1px; }
.slide-price small { font-size: 22px; margin-right: 2px; }
.slide-months { margin-left: 10px; font-size: 15px; font-weight: 600; letter-spacing: 0; padding: 2px 8px; border-radius: 10px; background: rgba(0,0,0,.18); vertical-align: 8px; }
.slide-sub { margin-top: 4px; font-size: 13px; opacity: .95; }
.slide-note { margin-top: 6px; font-size: 13px; font-weight: 600; }
.slide-parts { margin-top: 6px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px; font-size: 15px; font-weight: 700; }
.slide-parts span { padding: 2px 8px; border-radius: 8px; background: rgba(255,255,255,.2); }
.slide-parts i { font-style: normal; opacity: .8; }
.slide-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px; }
.slide-shop { font-size: 12px; font-weight: 600; padding: 3px 8px; border-radius: 10px; background: rgba(255,255,255,.95); color: #1677ff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.slide-shop.plain { color: var(--text); }
.slide-buy { flex: none; padding: 8px 18px; border-radius: 18px; background: #fff; color: var(--brand-2); font-weight: 700; font-size: 14px; }
.dots { display: flex; justify-content: center; gap: 5px; margin-top: 6px; position: relative; z-index: 1; }
.dots i { width: 6px; height: 6px; border-radius: 3px; background: rgba(255,255,255,.45); transition: width .2s; }
.dots i.on { width: 16px; background: #fff; }

/* 服务端输出的文字版清单（爬虫/AI 读取用，JS 加载后会移除） */
.seo { font-size: 14px; line-height: 1.7; color: var(--muted); }
.seo h1, .seo h2 { font-size: 16px; color: var(--text, inherit); }
.seo h3 { font-size: 14px; margin: 12px 0 4px; }
.seo ul { padding-left: 18px; margin: 4px 0; }
.disclosure a { color: inherit; }

/* ---------- 平板 / 桌面端 ---------- */
@media (min-width: 720px) {
  body { max-width: 1120px; padding-left: 24px; padding-right: 24px; }
  .topbar { padding-left: 0; padding-right: 0; gap: 24px; }
  .topbar .brand { font-size: 19px; }
  .search { flex: 0 1 420px; margin-left: auto; }
  .hero, .block { margin-left: 0; margin-right: 0; }
  .chips { flex-wrap: wrap; overflow: visible; padding-left: 0; padding-right: 0; }
  .chip { height: 34px; padding: 0 16px; }
  .chip:hover { box-shadow: 0 4px 14px rgba(0, 0, 0, .08); }
  .grid { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
  .bundles { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 14px; }
  .bundle { display: flex; flex-direction: column; }
  .bundle .deal-actions { margin-top: auto; padding-top: 10px; }
  .block { margin-top: 26px; }
  .block h2, .block h1 { font-size: 20px; }
  .disclosure { margin: 36px 0 0; }

  /* 首页大图：左边商品信息，右边价格和购买按钮 */
  .hero.carousel { padding: 20px 0 14px; border-radius: 22px; }
  .hero::after { width: 320px; height: 320px; right: -80px; top: -120px; }
  .hero-promo { padding: 0 32px; font-size: 13px; }
  .slide { padding: 14px 32px 6px; display: grid; grid-template-columns: 1fr auto; column-gap: 32px; align-items: end; }
  .slide > * { grid-column: 1; }
  .slide-head { grid-row: 1; }
  .slide-price { grid-column: 2; grid-row: 1 / span 3; align-self: center; text-align: right; font-size: 64px; }
  .slide-price small { font-size: 28px; }
  .slide-months { display: block; margin: 8px 0 0 auto; width: max-content; vertical-align: 0; }
  .slide-name { font-size: 22px; }
  .slide-head .logo { width: 40px; height: 40px; border-radius: 10px; }
  .slide-sub, .slide-note { font-size: 15px; }
  .slide-parts { font-size: 18px; }
  .slide-foot { grid-column: 1 / -1; justify-content: flex-start; gap: 14px; margin-top: 14px; }
  .slide-buy { padding: 10px 26px; font-size: 15px; }
  .slide-buy:hover { filter: brightness(.96); }

  /* 详情：底部弹层改成居中弹窗 */
  .sheet {
    top: 50%; bottom: auto; transform: translate(-50%, -50%);
    max-width: 640px; max-height: 86vh; border-radius: 20px; padding: 22px 26px 24px;
    animation: pop .2s ease;
  }
  .sheet-grip { display: none; }
  .option:hover { box-shadow: 0 4px 14px rgba(0, 0, 0, .08); }
}
@keyframes pop { from { opacity: 0; transform: translate(-50%, -48%) scale(.98); } }
@media (min-width: 1024px) {
  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .bundles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ---------- 电脑端：扫码用手机购买 ---------- */
.scan-btn { display: none; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 18px; background: var(--card); box-shadow: var(--shadow); font-size: 14px; white-space: nowrap; }
.scan-btn svg { width: 16px; height: 16px; }
.qr-modal { position: fixed; left: 50%; top: 50%; z-index: 41; transform: translate(-50%, -50%); width: 340px; max-width: 92vw; padding: 24px 24px 20px; border-radius: 20px; background: var(--card); text-align: center; box-shadow: 0 20px 60px rgba(0,0,0,.25); animation: pop .2s ease; }
.qr-backdrop { position: fixed; inset: 0; z-index: 40; background: rgba(0, 0, 0, .45); animation: fade .2s ease; }
.qr-modal h3 { margin: 0 0 4px; font-size: 17px; line-height: 1.4; }
.qr-modal .qr-price { color: var(--price); font-size: 22px; font-weight: 700; }
.qr-box { width: 220px; height: 220px; margin: 14px auto 10px; padding: 10px; border-radius: 12px; background: #fff; display: grid; place-items: center; }
.qr-box svg, .qr-box img { width: 200px; height: 200px; }
.qr-modal p { margin: 0; font-size: 13px; color: var(--muted); }
.qr-modal .qr-actions { display: flex; gap: 10px; justify-content: center; margin-top: 16px; }
.qr-modal .qr-actions a, .qr-modal .qr-actions button { padding: 8px 18px; border-radius: 18px; font-size: 14px; border: 1px solid var(--line); background: var(--card); color: var(--text); }
.qr-modal .qr-close { position: absolute; right: 12px; top: 10px; width: 30px; height: 30px; border-radius: 15px; color: var(--muted); font-size: 20px; line-height: 30px; }
@media (min-width: 720px) and (hover: hover) { .scan-btn { display: inline-flex; } }


/* ======================================================================
   设计 v2：少字、少标签、靠字号和留白分层（覆盖上面的旧样式）
   ====================================================================== */
body { font-size: 15px; line-height: 1.5; letter-spacing: 0; -webkit-font-smoothing: antialiased; }
.topbar { background: color-mix(in srgb, var(--bg) 80%, transparent); }
.search { box-shadow: none; background: var(--fill); }
.brand-mark { border-radius: 8px; }

/* 分类：浅灰底，选中黑底 */
.chips { gap: 8px; padding-top: 18px; }
.chip { height: 34px; padding: 0 16px; box-shadow: none; background: var(--fill); color: var(--text-2); font-size: 14px; font-weight: 500; transition: background .15s; }
.chip[aria-pressed="true"] { background: var(--text); color: var(--bg); }
.chip:active { transform: scale(.97); }

.block { margin-top: 28px; }
.block-head { margin-bottom: 14px; }
.block h2, .block h1 { font-size: 22px; font-weight: 700; letter-spacing: -.02em; }
.block-head .small { font-size: 13px; }

/* 会员卡片：名字、价格、月均价、一行可信标识 + 至多一个亮点 */
.grid { gap: 12px; }
.card { gap: 6px; padding: 16px; border-radius: var(--radius); box-shadow: var(--shadow); transition: transform .12s ease, box-shadow .2s; }
.card:active { transform: scale(.98); }
.card-top { gap: 10px; margin-bottom: 6px; }
.card .logo { width: 36px; height: 36px; border-radius: 9px; }
.card-name { font-size: 15px; font-weight: 600; letter-spacing: -.01em; color: var(--text); }
.price-row { gap: 4px; align-items: baseline; }
.price { color: var(--price); font-weight: 700; letter-spacing: -.02em; }
.card .price { font-size: 26px; line-height: 1.1; }
.price small { font-size: .55em; font-weight: 600; margin-right: 1px; letter-spacing: 0; }
.price-unit { font-size: 13px; color: var(--muted); }
.per-month { margin: 0; font-size: 13px; color: var(--text-2); }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: 8px; min-height: 22px; }
.trust { display: inline-flex; align-items: center; gap: 3px; font-size: 12px; font-weight: 500; color: var(--trust); white-space: nowrap; }
.trust::before { content: ""; width: 12px; height: 12px; flex: none; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2 4 5v6c0 5 3.4 9.4 8 11 4.6-1.6 8-6 8-11V5l-8-3Zm-1.2 14.2-3.5-3.5 1.4-1.4 2.1 2.1 4.9-4.9 1.4 1.4-6.3 6.3Z'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2 4 5v6c0 5 3.4 9.4 8 11 4.6-1.6 8-6 8-11V5l-8-3Zm-1.2 14.2-3.5-3.5 1.4-1.4 2.1 2.1 4.9-4.9 1.4 1.4-6.3 6.3Z'/%3E%3C/svg%3E") center/contain no-repeat; }
.pill { display: inline-block; padding: 1px 8px; border-radius: 999px; background: color-mix(in srgb, var(--price) 10%, transparent); color: var(--price); font-size: 12px; font-weight: 600; line-height: 20px; white-space: nowrap; }
.badges, .card-sub { display: none; }
.card .card-foot { margin-top: auto; padding-top: 8px; }
/* 同一会员的另一个档位，接在价格下面当作价格的一部分：「SVIP ¥180」 */
.tier { display: flex; align-items: baseline; gap: 5px; margin-top: 2px; font-size: 13px; color: var(--text-2); white-space: nowrap; overflow: hidden; }
.tier span { font-weight: 600; }
.tier b { color: var(--price); font-size: 17px; font-weight: 700; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.tier b small { font-size: .65em; margin-right: 1px; }
.tier em { font-style: normal; color: var(--muted); }

/* 联合会员：品牌行 + 价格 + 购买，去掉重复标题 */
.bundles { gap: 12px; }
.bundle { padding: 16px; border-radius: var(--radius); box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 12px; }
.bundle-brands { gap: 6px 8px; }
.bundle .brand { font-size: 14px; font-weight: 600; gap: 6px; }
.logo.mini { width: 22px; height: 22px; border-radius: 6px; }
.dur { background: var(--fill); }
.plus { color: var(--muted); }
.bundle-title { display: none; }
.bundle .deal-actions { margin-top: auto; padding-top: 0; justify-content: space-between; align-items: flex-end; flex-wrap: nowrap; }
.bundle .deal-actions .price { font-size: 22px; margin: 0; }
.meta { margin-top: 2px; font-size: 12px; color: var(--muted); line-height: 1.5; }
.meta .sep { font-style: normal; margin: 0 5px; opacity: .6; }
.btn-primary { padding: 8px 18px; border-radius: 999px; background: var(--brand); color: #fff; font-size: 14px; font-weight: 600; white-space: nowrap; }
.btn-primary:active { transform: scale(.97); }

/* 首页大图：浅色卡片，品牌色淡淡铺底；左边信息，右边价格 */
.hero, .hero.carousel { background: var(--card); color: var(--text); box-shadow: var(--shadow); border-radius: 22px; padding: 14px 0 12px; }
.hero::after { display: none; }
.hero-promo { color: var(--muted); font-size: 12px; opacity: 1; padding: 0 20px; }
.slide { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 20px 6px; }
.slide-info { min-width: 0; flex: 1; }
.slide-head { gap: 10px; }
.slide-head .logo { width: 40px; height: 40px; border-radius: 10px; border: 0; }
.slide-name { font-size: 18px; font-weight: 700; letter-spacing: -.01em; }
.slide-note { margin-top: 6px; font-size: 13px; font-weight: 500; color: var(--text-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.slide-parts { margin-top: 8px; gap: 6px; font-size: 13px; font-weight: 600; }
.slide-parts span { padding: 3px 9px; border-radius: 8px; background: var(--fill); }
.slide-foot { justify-content: flex-start; gap: 12px; margin-top: 12px; }
.slide-buy { padding: 8px 20px; border-radius: 999px; background: var(--brand); color: #fff; font-size: 14px; font-weight: 600; }
.slide-trust { font-size: 12px; font-weight: 500; color: var(--trust); }
.slide-pricebox { flex: none; text-align: right; }
.slide-price { margin: 0; font-size: 40px; font-weight: 800; line-height: 1; letter-spacing: -.03em; color: var(--price); }
.slide-price small { font-size: 20px; margin-right: 1px; }
.slide-sub { margin-top: 6px; font-size: 12px; color: var(--muted); opacity: 1; }
.slide-save { margin-top: 6px; display: inline-block; padding: 1px 8px; border-radius: 999px; background: color-mix(in srgb, var(--price) 10%, transparent); color: var(--price); font-size: 12px; font-weight: 600; }
.slide-months, .slide-off, .slide-shop { display: none; }
.dots i { background: var(--line); }
.dots i.on { background: var(--text); }

/* 详情：一句对比代替三个格子；购买方式一行一条 */
.sheet { padding: 8px 20px calc(20px + env(safe-area-inset-bottom)); }
.sheet-head { gap: 14px; }
.sheet-head .logo { width: 52px; height: 52px; border-radius: 13px; }
.sheet h3, .sheet h1 { font-size: 20px; font-weight: 700; letter-spacing: -.02em; }
.sheet-head .sub { margin-top: 2px; font-size: 13px; color: var(--muted); }
.sheet-price { margin: 18px 0 2px; align-items: center; gap: 10px; }
.sheet-price .price { font-size: 40px; line-height: 1; letter-spacing: -.03em; }
.compare { margin: 6px 0 0; font-size: 13px; color: var(--muted); }
.stat-row, .months-tag { display: none; }
.sheet h4 { margin: 24px 0 10px; font-size: 15px; font-weight: 600; color: var(--text); }
.h4-sub { margin-left: 6px; font-size: 12px; font-weight: 400; color: var(--muted); }
.options { gap: 8px; }
.option { display: flex; align-items: center; gap: 10px; padding: 14px 12px 14px 16px; border-radius: 14px; background: var(--fill); border: 1px solid transparent; box-shadow: none; }
.option.best { background: var(--card); border-color: color-mix(in srgb, var(--price) 35%, transparent); box-shadow: 0 2px 12px color-mix(in srgb, var(--price) 10%, transparent); }
.option-main { flex: 1; min-width: 0; }
.option-title { font-size: 15px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.option-title .plat { display: none; }
.best-tag { margin-right: 6px; padding: 1px 6px; border-radius: 6px; background: var(--price); color: #fff; font-size: 11px; font-weight: 600; vertical-align: 1px; }
.option-side { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 1px; }
.option-side .price { font-size: 19px; }
.option-side .per { font-size: 11px; color: var(--muted); }
.option-side .go, .option-meta { display: none; }
.chev { flex: none; color: var(--muted); font-size: 22px; line-height: 1; margin-left: 2px; }
.tips { margin-top: 20px; padding: 12px 14px; border-radius: 12px; background: var(--fill); font-size: 13px; color: var(--text-2); }
.tips p { margin: 0; }
.tips p + p { margin-top: 6px; }
.fineprint { margin-top: 18px; font-size: 11px; color: var(--muted); text-align: center; }

@media (hover: hover) {
  .card:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(0,0,0,.04), 0 12px 32px rgba(0,0,0,.08); }
  .option:hover { background: var(--card); border-color: var(--line); }
  .option.best:hover { border-color: color-mix(in srgb, var(--price) 50%, transparent); }
}

/* 平板 / 桌面端 */
@media (min-width: 720px) {
  .hero.carousel { padding: 20px 0 16px; }
  .hero-promo { padding: 0 36px; }
  .slide { display: flex; padding: 16px 36px 8px; }
  .slide > * { grid-column: auto; }
  .slide-name { font-size: 24px; }
  .slide-head .logo { width: 48px; height: 48px; border-radius: 12px; }
  .slide-note { font-size: 15px; margin-top: 10px; }
  .slide-parts { font-size: 15px; }
  .slide-price { font-size: 64px; text-align: right; }
  .slide-price small { font-size: 28px; }
  .slide-sub { font-size: 14px; }
  .slide-buy { padding: 10px 28px; font-size: 15px; }
  .card { padding: 20px; }
  .card .price { font-size: 28px; }
  .sheet { padding: 28px 28px 26px; }
}
@media (max-width: 380px) {
  .slide-price { font-size: 32px; }
  .card { padding: 14px; }
  .card .price { font-size: 22px; }
}

/* 加载中：文字版清单只给爬虫看，浏览器里隐藏；首屏用灰色占位卡片 */
.js #seo { display: none; }
.hero:empty { min-height: 180px; }
.card.skeleton { min-height: 150px; background: var(--card); box-shadow: var(--shadow); position: relative; overflow: hidden; }
.card.skeleton::after { content: ""; position: absolute; inset: 16px; border-radius: 10px;
  background: linear-gradient(90deg, var(--fill) 0%, color-mix(in srgb, var(--fill) 40%, transparent) 50%, var(--fill) 100%) 0 0 / 200% 100%;
  animation: shimmer 1.4s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .card.skeleton::after { animation: none; } }

/* ---------- 历史价格 ---------- */
.pill.good { background: color-mix(in srgb, var(--trust) 12%, transparent); color: var(--trust); }
.hist { margin-top: 18px; padding: 14px 16px 10px; border-radius: 14px; background: var(--fill); }
.hist-top { display: flex; align-items: center; justify-content: space-between; }
.hist-verdict { font-size: 15px; font-weight: 700; color: var(--text); }
.hist-verdict.best, .hist-verdict.good { color: var(--trust); }
.hist-verdict.wait { color: #b45309; }
.hist-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.hist-stats div { display: flex; flex-direction: column; }
.hist-stats b { font-size: 17px; font-weight: 700; letter-spacing: -.01em; color: var(--text); }
.hist-stats b.now { color: var(--price); }
.hist-stats span { font-size: 11px; color: var(--muted); }
.hist-chart { margin-top: 10px; min-height: 8px; }
.hist-svg { width: 100%; height: auto; display: block; overflow: visible; }
.hist-line { fill: none; stroke: var(--text-2); stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.now-line { stroke: var(--price); stroke-width: 1; stroke-dasharray: 3 3; }
.now-label { fill: var(--price); font-size: 10px; font-weight: 600; }
.low-dot { fill: var(--trust); }
.axis { fill: var(--muted); font-size: 10px; }
.hist-src { margin: 6px 0 0; font-size: 11px; color: var(--muted); }
.hist-stats b small { font-size: 11px; font-weight: 500; color: var(--muted); margin-left: 1px; }
.hist-stats span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* 首页大图 v3：一句话说清“买什么、多长时间、多少钱” */
.slide-head .logo + .logo { margin-left: -10px; box-shadow: 0 0 0 2px var(--card); }
.slide-what { margin-top: 8px; font-size: 16px; font-weight: 600; color: var(--text); }
.slide-what span { margin-left: 10px; font-size: 13px; font-weight: 500; color: var(--muted); }
.slide-note, .slide-parts, .slide-sub, .slide-save { display: none; }
@media (min-width: 720px) { .slide-what { font-size: 20px; margin-top: 12px; } .slide-what span { font-size: 15px; } }

/* 首页里的联合会员卡片 */
.bundle-card { color: inherit; text-decoration: none; }
.bundle-card .logos { display: inline-flex; }
.bundle-card .logos .logo { width: 36px; height: 36px; border-radius: 9px; }
.bundle-card .logos .logo + .logo { margin-left: -8px; box-shadow: 0 0 0 2px var(--card); }
.bundle-card .card-name { display: block; font-size: 15px; font-weight: 600; margin-top: 2px; }

/* 卡片统一骨架：名字固定两行高、底部标签贴底，网格里每张卡对齐 */
.grid { align-items: stretch; }
.card { display: flex; flex-direction: column; }
.card-top { display: flex; align-items: center; gap: 10px; min-height: 42px; margin-bottom: 8px; }
.card-name { flex: 1; min-width: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.35; }
.card .price-row { margin-top: 2px; }
.card .per-month { min-height: 20px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-foot { margin-top: auto; padding-top: 10px; min-height: 32px; align-items: center; }
.card-foot .trust, .card-foot .pill { line-height: 20px; }
/* 联合会员卡片：多个图标叠在一起，和单个图标占同样的位置 */
.bundle-card .card-top { gap: 8px; }
.bundle-card .logos { flex: none; display: inline-flex; }
.bundle-card .logos .logo { width: 36px; height: 36px; border-radius: 9px; box-shadow: 0 0 0 2px var(--card); }
.bundle-card .logos .logo + .logo { margin-left: -14px; }
.bundle-card .logos.n3 .logo { width: 30px; height: 30px; border-radius: 8px; }
.bundle-card .logos.n3 .logo + .logo { margin-left: -16px; }
.bundle-card .card-name { display: -webkit-box; margin-top: 0; font-size: 14px; }
#bundles.grid { list-style: none; margin: 0; padding: 0; }

/* 历史价格走势图 v2 */
.hist-chart { margin-top: 14px; min-height: 150px; }
.chart { position: relative; }
.plot { position: relative; height: 120px; }
.plot svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; fill: none; stroke: none; }
.plot .grid { stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.plot .area { fill: color-mix(in srgb, var(--brand) 12%, transparent); stroke: none; }
.plot .line { fill: none; stroke: var(--brand); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.plot .now { stroke: var(--text-2); stroke-width: 1; stroke-dasharray: 4 4; vector-effect: non-scaling-stroke; opacity: .6; }
.now-tag { position: absolute; right: 0; transform: translateY(-120%); padding: 0 6px; border-radius: 6px; background: var(--card); color: var(--text-2); font-size: 11px; font-weight: 600; line-height: 18px; }
.low-dot { position: absolute; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border-radius: 50%; background: var(--trust); box-shadow: 0 0 0 3px var(--fill); }
.low-tag { position: absolute; transform: translate(8px, 6px); color: var(--trust); font-size: 11px; font-weight: 600; white-space: nowrap; }
.low-tag.left { transform: translate(calc(-100% - 8px), 6px); }
.ticks { position: relative; height: 22px; margin-top: 6px; }
.ticks span { position: absolute; transform: translateX(-50%); font-size: 11px; color: var(--muted); white-space: nowrap; }
.hist-svg { display: none; }
.low-tag.up { transform: translate(8px, calc(-100% - 6px)); }
.low-tag.left.up { transform: translate(calc(-100% - 8px), calc(-100% - 6px)); }

/* 现在就是一年最低：圆点标在“现在”，红色加脉冲光圈 */
.now-dot { position: absolute; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--price); box-shadow: 0 0 0 4px color-mix(in srgb, var(--price) 22%, transparent); }
.now-dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--price); opacity: 0; animation: ping 1.8s ease-out infinite; }
@keyframes ping { 0% { transform: scale(.6); opacity: .7; } 100% { transform: scale(2.2); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .now-dot::after { animation: none; } }
.now-best { position: absolute; transform: translate(calc(-100% - 12px), calc(-100% - 8px)); padding: 3px 10px; border-radius: 999px; background: var(--price); color: #fff; font-size: 12px; font-weight: 700; white-space: nowrap; box-shadow: 0 4px 12px color-mix(in srgb, var(--price) 30%, transparent); }
.hist-verdict.best { display: inline-block; padding: 3px 12px; border-radius: 999px; background: var(--price); color: #fff; font-size: 14px; }
.hist-verdict.good { display: inline-block; padding: 3px 12px; border-radius: 999px; background: var(--trust); color: #fff; font-size: 14px; }

.pill.best { background: var(--price); color: #fff; }
.sheet-logos { display: inline-flex; flex: none; }
.sheet-logos .logo { width: 52px; height: 52px; border-radius: 13px; box-shadow: 0 0 0 2px var(--card); }
.sheet-logos .logo + .logo { margin-left: -16px; }
button.bundle-card { text-align: left; font: inherit; color: inherit; cursor: pointer; }
.slide-pricebox .pill { margin-bottom: 6px; font-size: 13px; padding: 2px 10px; }

/* 纵轴价格：写在左侧轴上，图里给它留出位置 */
.plot { margin-left: 40px; }
.ticks { margin-left: 40px; }
.y-tick { position: absolute; left: -40px; width: 34px; transform: translateY(-50%); text-align: right; font-size: 11px; color: var(--muted); white-space: nowrap; }

/* 手机上优先露出购买方式；保留刻度字号，只压缩曲线与卡片留白。 */
@media (max-width: 600px) {
  .hist { margin-top: 12px; padding: 10px 12px 8px; }
  .hist-stats { margin-top: 6px; }
  .hist-chart { margin-top: 10px; min-height: 0; }
  .plot { height: 80px; }
  .ticks { height: 18px; margin-top: 4px; }
  .hist-src { margin-top: 4px; }
  .hist-tabs { margin-bottom: 8px; }
  .sheet .hist:not([hidden]) + h4 { margin-top: 16px; }
}

/* 近期低价：橙色字 + 淡橙底（历史最低仍是红底白字） */
.pill.good { background: color-mix(in srgb, var(--brand) 13%, transparent); color: #e5482a; }
.hist-verdict.good { background: color-mix(in srgb, var(--brand) 13%, transparent); color: #e5482a; }
@media (prefers-color-scheme: dark) { .pill.good, .hist-verdict.good { color: #ff8a65; } }

/* 详情里的联合会员行：图标 + 名字 + 时长 */
.option-title.parts { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 6px; white-space: normal; overflow: visible; }
.option-title.parts .pt { display: inline-flex; align-items: center; gap: 5px; }
.option-title.parts .pt b { font-weight: 600; }
.option-title.parts .logo.mini { width: 22px; height: 22px; border-radius: 6px; }
.option-title.parts .plus { color: var(--muted); font-weight: 400; }
.option-title.parts + .meta { margin-top: 6px; }

/* 给滚动条永久留位置：切换分类、打开详情时页面不再左右跳 */
html { scrollbar-gutter: stable; }

/* ---------- Banner：Today 卡片（整张品牌色渐变 + 白字大价格 + 图标斜着出血） ---------- */
.hero.today, .hero.today.carousel { background: none; box-shadow: none; padding: 0; border-radius: 0; color: #fff; }
.hero.today .slides { border-radius: 22px; }
.hero.today .slide.t {
  position: relative; overflow: hidden; display: block; height: 196px; padding: 16px 20px; border-radius: 22px;
  background: radial-gradient(120% 90% at 0% 0%, rgba(255,255,255,.16), transparent 60%), linear-gradient(135deg, var(--c1), var(--c2));
  color: #fff; -webkit-font-smoothing: antialiased;
}
.t-art { position: absolute; right: -16px; bottom: -26px; width: 124px; height: 124px; transform: rotate(-14deg); pointer-events: none; }
.t-art img { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 28px; object-fit: cover; background: #fff; box-shadow: 0 14px 30px rgba(0,0,0,.25); }
.t-art.n2 img:first-child { inset: auto; left: -34%; top: 16%; width: 70%; height: 70%; border-radius: 20px; }
.t-promo { position: relative; font-size: 12px; font-weight: 600; opacity: .85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.t-name { position: relative; margin-top: 6px; font-size: 23px; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; max-width: 78%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.t-what { position: relative; margin-top: 2px; font-size: 13px; font-weight: 600; opacity: .9; }
.t-price { position: relative; display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.t-num { font-size: 40px; font-weight: 800; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.t-price small { font-size: .45em; margin-right: 2px; letter-spacing: 0; }
.t-pill { padding: 2px 9px; border-radius: 999px; background: rgba(255,255,255,.22); font-size: 12px; font-weight: 700; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.t-foot { position: absolute; left: 20px; bottom: 16px; display: flex; align-items: center; gap: 10px; }
.hero.today .slide-buy { padding: 7px 18px; border-radius: 999px; background: #fff; color: var(--ink); font-size: 14px; font-weight: 700; }
.t-trust { font-size: 12px; font-weight: 600; opacity: .9; }
.t-trust::before { content: "✓ "; }
.hero.today .dots { margin-top: 10px; }
@media (min-width: 720px) {
  .hero.today .slide.t { height: 300px; padding: 34px 52px; border-radius: 28px; }
  .hero.today .slides { border-radius: 28px; }
  .t-art { right: 64px; bottom: -48px; width: 250px; height: 250px; }
  .t-art img { border-radius: 56px; }
  .t-art.n2 img:first-child { left: -46%; top: -22%; width: 76%; height: 76%; border-radius: 42px; }
  .t-promo { font-size: 14px; }
  .t-name { margin-top: 10px; font-size: 40px; max-width: 60%; }
  .t-what { margin-top: 6px; font-size: 18px; }
  .t-price { margin-top: 12px; gap: 12px; }
  .t-num { font-size: 64px; }
  .t-pill { font-size: 14px; padding: 4px 12px; }
  .t-foot { left: 52px; bottom: 30px; gap: 16px; }
  .hero.today .slide-buy { padding: 11px 26px; font-size: 16px; }
  .hero.today .slide-buy:hover { filter: brightness(.95); }
  .t-trust { font-size: 14px; }
}

/* ---------- 会员卡片：淡彩（顶部一抹品牌色 + 大图标在上 + 名字在下） ---------- */
.card.ca { overflow: hidden; gap: 0; padding: 16px; border-radius: 22px; box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 8px 24px rgba(0,0,0,.05); }
.card.ca::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 96px; background: linear-gradient(180deg, color-mix(in srgb, var(--c) 18%, var(--card)), var(--card)); pointer-events: none; }
.card.ca > * { position: relative; }
.ca-ic { display: flex; }
.ca-ic img, .ca-ic .logo { width: 52px; height: 52px; border-radius: 13px; object-fit: cover; background: #fff; box-shadow: 0 0 0 3px var(--card), 0 6px 16px rgba(0,0,0,.12); }
.ca-ic img + img, .ca-ic .logo + .logo, .ca-ic img + .logo, .ca-ic .logo + img { margin-left: -12px; }
.ca-name { margin-top: 12px; font-size: 16px; font-weight: 700; letter-spacing: -.01em; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--text); }
.ca-meta { margin-top: 2px; font-size: 12px; color: var(--muted); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ca-price { margin-top: 10px; }
.card.ca .price { font-size: 28px; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.card.ca .tier { margin-top: 6px; font-size: 12px; gap: 4px; }
.card.ca .tier b { font-size: 14px; }
.card.ca .card-foot { margin-top: auto; padding-top: 12px; }
@media (min-width: 720px) {
  .card.ca { padding: 20px; }
  .ca-ic img, .ca-ic .logo { width: 60px; height: 60px; border-radius: 15px; }
  .ca-name { font-size: 18px; margin-top: 14px; }
  .ca-meta { font-size: 13px; }
  .card.ca .price { font-size: 32px; }
}

/* ---------- 详情页：和卡片同一套品牌色 ---------- */
.sheet.tinted { background: linear-gradient(180deg, color-mix(in srgb, var(--c) 18%, var(--card)) 0, var(--card) 220px) var(--card); background-attachment: local; }
.sheet-ic { display: inline-flex; flex: none; }
.sheet-ic img, .sheet-ic .logo { width: 64px; height: 64px; border-radius: 16px; object-fit: cover; background: #fff; box-shadow: 0 0 0 3px var(--card), 0 8px 20px rgba(0,0,0,.14); }
.sheet-ic img + img, .sheet-ic .logo + img, .sheet-ic img + .logo { margin-left: -18px; }
.sheet.tinted .hist { background: color-mix(in srgb, var(--c) 7%, var(--fill)); }
.sheet.tinted .plot .line { stroke: var(--cl); }
.sheet.tinted .plot .area { fill: color-mix(in srgb, var(--cl) 13%, transparent); }
.sheet.tinted .option.best { border-color: color-mix(in srgb, var(--cl) 45%, transparent); box-shadow: 0 2px 14px color-mix(in srgb, var(--cl) 14%, transparent); }

/* ---------- 预售 / 即将开抢 ---------- */
.pill.pre { background: color-mix(in srgb, #7c3aed 12%, transparent); color: #6d28d9; }
.card.ca.up { color: inherit; text-decoration: none; }
.up-when { margin-top: 8px; font-size: 13px; font-weight: 700; color: #6d28d9; }
.up-when::before { content: "⏰ "; }
.up-left { font-size: 12px; color: var(--muted); font-weight: 500; white-space: nowrap; }

/* 会员卡片是链接（方便搜索引擎爬到会员页），外观保持和按钮一样 */
a.card { color: inherit; text-decoration: none; cursor: pointer; -webkit-user-select: none; user-select: none; touch-action: manipulation; -webkit-tap-highlight-color: transparent; -webkit-touch-callout: none; }

/* 价格图档位切换（QQ音乐 豪华绿钻 / 超级会员…） */
.hist-tabs { display: inline-flex; gap: 2px; margin-bottom: 12px; padding: 2px; border-radius: 10px; background: color-mix(in srgb, var(--text) 7%, transparent); }
.hist-tab { padding: 5px 12px; border-radius: 8px; font-size: 13px; font-weight: 600; color: var(--muted); transition: background .15s, color .15s; }
.hist-tab[aria-selected="true"] { background: var(--card); color: var(--text); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
/* 联合会员详情：图标独立成行，权益和时长逐项对齐。 */
.sheet-head > div { min-width: 0; }
.sheet-head h1 { line-height: 1.4; overflow-wrap: anywhere; }
.bundle-sheet .sheet-head { flex-direction: column; align-items: flex-start; gap: 14px; padding-top: 6px; }
.bundle-sheet .sheet-ic img, .bundle-sheet .sheet-ic .logo { width: 44px; height: 44px; border-radius: 12px; box-shadow: 0 0 0 3px var(--card), 0 4px 12px rgba(0,0,0,.08); }
.bundle-sheet .sheet-ic > * + * { margin-left: -10px; }
.bundle-sheet .sheet-head .sub { margin-top: 6px; }
.bundle-sheet .sheet-price { margin-top: 16px; }
.bundle-sheet .bundle-option { flex-direction: column; align-items: stretch; gap: 14px; padding: 16px; }
.bundle-option .option-title.parts { display: flex; flex-direction: column; align-items: stretch; gap: 10px; }
.bundle-option .option-title.parts .pt { display: flex; gap: 8px; min-width: 0; }
.bundle-option .pt b { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.bundle-option .pt .dur { flex: none; margin-left: auto; }
.bundle-option .option-title.parts .plus { display: none; }
.bundle-option-foot { display: flex; flex-direction: column; align-items: stretch; gap: 14px; border-top: 1px solid var(--line); padding-top: 12px; }
.bundle-option-foot .meta { margin: 0; min-width: 0; white-space: normal; }
.bundle-option:hover { box-shadow: none; }
.bundle-cta { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 16px; border-radius: 12px; background: #df3b25; color: #fff; font-size: 16px; font-weight: 700; line-height: 1.5; text-align: center; text-decoration: none; touch-action: manipulation; transition: transform 150ms ease-out; }
.bundle-cta:active { transform: scale(.98); }
.bundle-cta:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }
@media (hover: hover) and (pointer: fine) { .bundle-cta:hover { background: #c9311d; } }

/* 购买操作独立于正文滚动，短屏和长权益列表也能直接购买。 */
.sheet-content { display: contents; }
.sheet-purchase { display: none; }
@media (max-width: 719px) {
  .search { min-width: 0; }
  .sheet { display: flex; flex-direction: column; height: 86dvh; max-height: 86dvh; overflow: hidden; padding: 0; }
  .sheet[hidden] { display: none; }
  .sheet-content { display: block; flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 8px 20px 20px; scroll-padding-bottom: 16px; }
  .sheet-purchase { display: block; flex: none; padding: 10px 20px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--card); }
  .purchase-selector { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; font-size: 12px; color: var(--muted); white-space: nowrap; }
  .purchase-selector select { flex: 1; min-width: 0; min-height: 36px; padding: 6px 26px 6px 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--fill); color: var(--text); font: inherit; font-size: 16px; text-overflow: ellipsis; }
  .purchase-summary { font-size: 13px; font-weight: 600; line-height: 1.4; overflow-wrap: anywhere; }
  .purchase-conditions { margin-top: 2px; font-size: 11px; line-height: 1.5; color: var(--muted); }
  .purchase-action { margin-top: 8px; }
  .purchase-action .bundle-cta { min-height: 48px; }
  /* 手机统一从底部固定栏购买，正文只展示权益，避免重复操作和条件。 */
  .bundle-sheet .bundle-option-foot { display: none; }
  .bundle-sheet .sheet-head { flex-direction: row; gap: 12px; }
  .bundle-sheet .sheet-ic { flex: none; }
}
