/* ============ BT 补货雷达 · 样式 ============ */
:root {
  --bg: #f5f7fb;
  --bg-soft: #eef2f9;
  --panel: #ffffff;
  --ink: #0d1526;
  --ink-2: #26324a;
  --muted: #64748b;
  --muted-2: #8b97ab;
  --line: #e6ebf4;
  --line-2: #eef2f8;
  --brand: #1f5eff;
  --brand-2: #0b3fd6;
  --brand-soft: #eef3ff;
  --ok: #0f9e6e;
  --ok-soft: #e8f8f1;
  --warn: #b45309;
  --warn-soft: #fff5e8;
  --red: #d92d20;
  --red-soft: #fef1f0;
  --r: 16px;
  --r-sm: 10px;
  --shadow: 0 1px 2px rgba(13, 21, 38, .04), 0 8px 24px -18px rgba(13, 21, 38, .28);
  --shadow-lg: 0 2px 6px rgba(13, 21, 38, .05), 0 18px 44px -24px rgba(13, 21, 38, .35);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(1200px 500px at 50% -200px, #e9f0ff 0%, rgba(233, 240, 255, 0) 70%),
    var(--bg);
  font-size: 14px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
main { flex: 1 0 auto; }
h1, h2, h3, h4 { margin: 0; line-height: 1.28; letter-spacing: -.01em; }
p { margin: 0 0 .7em; }
p:last-child { margin-bottom: 0; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--brand); }
img, svg { display: block; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 6px; }

.wrap { width: min(1220px, 100% - 40px); margin: 0 auto; }
.wrap.narrow { width: min(880px, 100% - 40px); }
.skip { position: absolute; left: -999px; top: 0; background: #fff; padding: 10px 16px; z-index: 100; border-radius: 0 0 8px 0; }
.skip:focus { left: 0; }
.i { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.muted { color: var(--muted); }
.ok { color: var(--ok); }
code { font-family: var(--mono); font-size: .92em; background: var(--bg-soft); padding: 2px 6px; border-radius: 6px; word-break: break-all; }

/* ---------- 顶部 ---------- */
.top {
  position: sticky; top: 0; z-index: 50;
  background: rgba(245, 247, 251, .86);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.top-in { height: 66px; display: flex; align-items: center; gap: 26px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand:hover { color: inherit; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  color: #fff; background: linear-gradient(145deg, #3b7bff, #1448e0);
  box-shadow: 0 6px 14px -6px rgba(31, 94, 255, .8);
}
.brand-mark .i { width: 19px; height: 19px; stroke-width: 1.9; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text b { font-size: 16px; letter-spacing: -.01em; }
.brand-text small { font-size: 11.5px; color: var(--muted-2); letter-spacing: .02em; }
.nav { display: flex; gap: 4px; margin-left: 6px; }
.nav a { padding: 7px 12px; border-radius: 9px; color: var(--ink-2); font-weight: 500; }
.nav a:hover { background: #e9eef9; color: var(--ink); }
.nav a.on { color: var(--brand); background: var(--brand-soft); }
.tg-btn {
  margin-left: auto; display: inline-flex; align-items: center; gap: 7px;
  height: 36px; padding: 0 14px; border-radius: 999px;
  background: var(--ink); color: #fff; font-weight: 500; font-size: 13px;
  transition: transform .15s ease, box-shadow .15s ease;
}
.tg-btn:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 8px 18px -10px rgba(13, 21, 38, .8); }
.tg-btn .i { width: 15px; height: 15px; }
.mnav { display: none; }

/* ---------- Hero ---------- */
.hero {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: end;
  padding: 40px 4px 26px;
}
.eyebrow { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--muted); font-weight: 500; letter-spacing: .02em; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px rgba(15, 158, 110, .15); flex: none; animation: pulse 2.4s infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 3px rgba(15, 158, 110, .16); } 50% { box-shadow: 0 0 0 6px rgba(15, 158, 110, .04); } }
.hero h1 { font-size: clamp(28px, 3.6vw, 40px); margin: 10px 0 12px; letter-spacing: -.025em; }
.hero h1 em { font-style: normal; color: var(--brand); white-space: nowrap; }
.hero p { color: var(--muted); max-width: 560px; font-size: 14.5px; }
.hero-stats { display: flex; gap: 10px; }
.hstat {
  min-width: 104px; padding: 12px 16px; background: var(--panel); border: 1px solid var(--line);
  border-radius: 14px; box-shadow: var(--shadow); text-align: left;
}
.hstat b { display: block; font-size: 26px; letter-spacing: -.03em; line-height: 1.15; }
.hstat span { font-size: 12px; color: var(--muted); }
.hstat.hot b { color: var(--ok); }
.hstat.hot { border-color: #cdeee0; background: linear-gradient(180deg, #fff, #f4fdf9); }

/* ---------- 布局 ---------- */
.dash { display: grid; grid-template-columns: 272px minmax(0, 1fr); gap: 18px; padding-bottom: 56px; align-items: start; }
.side { display: flex; flex-direction: column; gap: 14px; position: sticky; top: 82px; }
.side-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: 14px; }
.side-head { display: flex; align-items: center; justify-content: space-between; font-size: 12px; font-weight: 600; color: var(--muted); letter-spacing: .04em; margin-bottom: 10px; }
.side-head em { font-style: normal; background: var(--bg-soft); color: var(--muted); padding: 1px 7px; border-radius: 99px; font-size: 11px; }
.m-item { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 12px; border: 1px solid transparent; transition: background .15s; }
.m-item:hover { background: var(--bg); color: inherit; }
.m-item.on { background: var(--brand-soft); border-color: #d8e3ff; }
.m-info { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.m-info b { font-size: 14px; }
.m-info small { font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-item .live-dot { margin-left: auto; }
.avatar {
  width: 34px; height: 34px; border-radius: 10px; flex: none; display: grid; place-items: center;
  color: #fff; font-weight: 600; font-size: 14px;
  background: linear-gradient(145deg, color-mix(in srgb, var(--c, #1f5eff) 78%, #fff), var(--c, #1f5eff));
}
.avatar.sm { width: 20px; height: 20px; border-radius: 6px; font-size: 11px; }
.avatar.xl { width: 56px; height: 56px; border-radius: 16px; font-size: 22px; }
.soon { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line); }
.soon-title { font-size: 11.5px; color: var(--muted-2); margin-bottom: 7px; letter-spacing: .04em; }
.soon-list { display: flex; flex-wrap: wrap; gap: 5px; }
.soon-list span { font-size: 11.5px; color: var(--muted); background: var(--bg); border: 1px solid var(--line-2); padding: 2px 8px; border-radius: 99px; }
.soon p { font-size: 11.5px; color: var(--muted-2); margin-top: 9px; line-height: 1.5; }
.side-cta { background: linear-gradient(160deg, #ffffff, #f2f6ff); border-color: #dfe8fd; }
.mini-icon { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); margin-bottom: 10px; }
.mini-icon .i { width: 18px; height: 18px; }
.side-cta h3 { font-size: 15px; margin-bottom: 5px; }
.side-cta p { font-size: 12.5px; color: var(--muted); }
.side-cta .btn { margin: 12px 0 8px; }
.side-cta small { display: flex; align-items: center; gap: 5px; font-size: 11px; color: var(--muted-2); }
.side-cta small .i { width: 12px; height: 12px; }
.kv { margin: 0; display: flex; flex-direction: column; gap: 7px; }
.kv > div { display: flex; justify-content: space-between; gap: 12px; font-size: 12.5px; }
.kv dt { color: var(--muted); white-space: nowrap; }
.kv.wide > div.link-row { flex-direction: column; align-items: flex-start; gap: 5px; }
.kv.wide > div.link-row dd { text-align: left; width: 100%; word-break: break-all; font-size: 12px; line-height: 1.6; }
.kv dd { margin: 0; text-align: right; font-weight: 500; }
.kv.wide > div { font-size: 13.5px; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.kv.wide > div:last-child { border-bottom: 0; }

/* ---------- 筛选面板 ---------- */
.main-col { min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: 18px; }
.filters { padding: 16px; }
.search { display: flex; gap: 8px; margin-bottom: 14px; }
.search-box {
  flex: 1; display: flex; align-items: center; gap: 9px; height: 44px; padding: 0 14px;
  background: var(--bg); border: 1px solid var(--line); border-radius: 11px; transition: border-color .15s, background .15s, box-shadow .15s;
}
.search-box:focus-within { background: #fff; border-color: #b9cdff; box-shadow: 0 0 0 3px rgba(31, 94, 255, .1); }
.search-box .i { width: 17px; height: 17px; color: var(--muted-2); }
.search-box input { flex: 1; min-width: 0; border: 0; background: none; outline: none; font-size: 13.5px; }
.search-box input::placeholder { color: var(--muted-2); }
.frow { display: flex; gap: 10px; align-items: flex-start; padding: 4px 0; }
.flabel { flex: none; width: 40px; font-size: 12.5px; color: var(--muted); padding-top: 5px; letter-spacing: .03em; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; flex: 1 1 auto; }
.chip {
  display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 11px;
  border: 1px solid var(--line); border-radius: 999px; background: #fff;
  font-size: 12.5px; color: var(--ink-2); white-space: nowrap; transition: all .14s ease;
}
.chip:hover { border-color: #c6d6f8; background: #f7faff; color: var(--brand); }
.chip em { font-style: normal; font-size: 10.5px; color: var(--muted-2); }
.chip.on { background: var(--brand-soft); border-color: #b9cdff; color: var(--brand); font-weight: 500; }
.chip.on em { color: #6b8dff; }

/* ---------- 结果条 ---------- */
.result-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 2px 4px; font-size: 13px; color: var(--muted); }
.result-bar b { color: var(--ink); font-size: 15px; }
.result-meta { display: flex; align-items: center; gap: 5px; font-size: 12px; color: var(--muted-2); }
.result-meta .i { width: 13px; height: 13px; }

/* ---------- 卡片 ---------- */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.plan {
  position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r);
  padding: 16px 16px 14px; box-shadow: var(--shadow);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
  display: flex; flex-direction: column; gap: 10px;
}
.plan:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); border-color: #d5e0f5; }
.plan-hit { position: absolute; inset: 0; z-index: 1; border-radius: var(--r); }
.plan-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.plan-title { min-width: 0; }
.plan-title a { font-size: 15.5px; font-weight: 650; letter-spacing: -.01em; position: relative; z-index: 2; }
.plan-title a:hover { color: var(--brand); }
.tag { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 500; padding: 1px 7px; border-radius: 99px; vertical-align: 1px; }
.tag .i { width: 11px; height: 11px; }
.tag-warn { background: var(--warn-soft); color: var(--warn); }
.tag-ok { background: var(--ok-soft); color: var(--ok); }
.tag-start { background: var(--brand-soft); color: var(--brand); }
.tag-price { background: #f3f0ff; color: #6941c6; }
.stock { flex: none; font-size: 11.5px; font-weight: 600; padding: 3px 9px; border-radius: 99px; letter-spacing: .02em; }
.stock.in { background: var(--ok-soft); color: var(--ok); }
.stock.out { background: var(--warn-soft); color: var(--warn); }
.stock.lg { font-size: 13px; padding: 6px 14px; }
.plan-sub { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.bell-btn {
  margin-left: auto; width: 28px; height: 28px; border-radius: 8px; border: 1px solid var(--line);
  background: #fff; color: var(--muted); display: grid; place-items: center; position: relative; z-index: 3;
  transition: all .14s;
}
.bell-btn:hover { color: var(--brand); border-color: #c3d3f7; background: var(--brand-soft); }
.bell-btn .i { width: 14px; height: 14px; }
.specs { margin: 0; display: flex; flex-direction: column; }
.specs > div { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 5.5px 0; border-top: 1px solid var(--line-2); font-size: 12.5px; }
.specs > div:first-child { border-top: 0; }
.specs dt { display: flex; align-items: center; gap: 6px; color: var(--muted); flex: none; }
.specs dt .i { width: 13px; height: 13px; color: var(--muted-2); }
.specs dd { margin: 0; text-align: right; color: var(--ink-2); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.plan-foot { margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line-2); display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.price b { font-size: 20px; letter-spacing: -.03em; }
.price span { font-size: 12px; color: var(--muted); margin-left: 1px; }
.updated { display: flex; align-items: center; gap: 4px; font-size: 11.5px; color: var(--muted-2); }
.updated .i { width: 12px; height: 12px; }
.plan.is-out .price b { color: var(--ink-2); }
.plan.is-out { background: linear-gradient(180deg, #fff, #fdfcfb); }
.plan.is-in { border-color: #d9eee6; }
.plan.is-in:hover { border-color: #b6e3d2; }

/* ---------- 空态 / 分页 ---------- */
.empty { grid-column: 1 / -1; text-align: center; padding: 54px 20px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.empty > .i { width: 34px; height: 34px; color: var(--muted-2); }
.empty h3 { font-size: 16px; }
.empty p { color: var(--muted); font-size: 13px; }
.empty .btn { margin-top: 8px; }
.pager { display: flex; justify-content: center; gap: 6px; padding: 8px 0 0; }
.pg { min-width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; padding: 0 10px; border-radius: 9px; border: 1px solid var(--line); background: #fff; font-size: 13px; color: var(--ink-2); }
.pg:hover { border-color: #c6d6f8; color: var(--brand); }
.pg.on { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 600; }
.pg.off { color: var(--muted-2); background: var(--bg); }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 38px; padding: 0 15px; border-radius: 10px; border: 1px solid var(--line);
  background: #fff; color: var(--ink-2); font-size: 13.5px; font-weight: 500;
  transition: all .15s ease; white-space: nowrap;
}
.btn:hover { border-color: #c9d6ef; background: #f8faff; color: var(--brand); }
.btn .i { width: 15px; height: 15px; }
.btn-primary { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 6px 14px -8px rgba(31, 94, 255, .9); }
.btn-primary:hover { background: var(--brand-2); border-color: var(--brand-2); color: #fff; }
.btn-ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn-ghost:hover { background: var(--bg); }
.btn-block { width: 100%; }
.btn-lg { height: 44px; font-size: 14.5px; border-radius: 11px; }
.btn-danger { color: var(--red); border-color: #f6d5d2; background: var(--red-soft); }
.btn-danger:hover { background: #fde8e6; border-color: #f0b6b1; color: var(--red); }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; margin: 16px 0 10px; }
.btn-row form { margin: 0; }

/* ---------- 面包屑 / 页头 ---------- */
.crumbs { display: flex; align-items: center; gap: 6px; padding: 18px 2px 12px; font-size: 12.5px; color: var(--muted); flex-wrap: wrap; }
.crumbs a:hover { color: var(--brand); }
.crumbs .i { width: 12px; height: 12px; color: #c3ccdb; }
.crumbs span { color: var(--ink-2); }
.page-head { padding: 34px 2px 22px; }
.page-head h1 { font-size: clamp(26px, 3.2vw, 34px); margin: 8px 0 10px; letter-spacing: -.025em; }
.page-head p { color: var(--muted); max-width: 640px; font-size: 14px; }

/* ---------- 商家页 ---------- */
.m-hero {
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
  background: var(--panel); border: 1px solid var(--line); border-radius: 20px;
  padding: 22px; box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.m-hero::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: linear-gradient(90deg, var(--c), color-mix(in srgb, var(--c) 30%, #fff)); }
.m-hero-main { display: flex; align-items: center; gap: 14px; min-width: 280px; }
.m-hero-title { display: flex; align-items: center; gap: 10px; }
.m-hero-title h1 { font-size: 24px; }
.m-hero-main p { color: var(--muted); font-size: 12.5px; margin: 3px 0 0; }
.m-hero-stats { display: flex; gap: 24px; margin-left: auto; }
.m-hero-stats > div { display: flex; flex-direction: column; }
.m-hero-stats b { font-size: 22px; letter-spacing: -.02em; }
.m-hero-stats span { font-size: 11.5px; color: var(--muted); }
.m-hero-actions { display: flex; gap: 8px; width: 100%; padding-top: 16px; border-top: 1px dashed var(--line); }
.m-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 4px 10px; font-size: 13px; color: var(--muted); flex-wrap: wrap; }
.m-toolbar b { color: var(--ink); font-size: 15px; }
.m-toolbar-right { display: flex; align-items: center; gap: 5px; font-size: 12px; color: var(--muted-2); }
.m-toolbar-right .i { width: 13px; height: 13px; }
.m-filters { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 16px; margin-bottom: 14px; }

/* ---------- 套餐详情 ---------- */
.pd { display: grid; grid-template-columns: minmax(0, 1fr) 344px; gap: 18px; align-items: start; padding-bottom: 56px; }
.pd-main { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.pd-side { display: flex; flex-direction: column; gap: 14px; position: sticky; top: 82px; }
.pd-head { display: flex; align-items: center; gap: 14px; padding: 14px 4px 10px; }
.pd-head h1 { font-size: clamp(22px, 2.6vw, 30px); letter-spacing: -.02em; }
.pd-meta { color: var(--muted); font-size: 13px; margin-top: 3px; }
.pd-head .stock { margin-left: auto; }
.pd-specs h2, .pd-history h2, .pd-rel h2 { font-size: 15px; }
.spec-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line-2); border: 1px solid var(--line-2); border-radius: 12px; overflow: hidden; margin: 12px 0; }
.spec-cell { background: #fff; padding: 12px 14px; display: flex; flex-direction: column; gap: 3px; }
.spec-k { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--muted); }
.spec-k .i { width: 13px; height: 13px; color: var(--muted-2); }
.spec-v { font-size: 14px; font-weight: 600; color: var(--ink); }
.line-note { display: flex; gap: 8px; align-items: flex-start; background: var(--bg); border-radius: 10px; padding: 11px 13px; font-size: 12.5px; color: var(--ink-2); margin: 10px 0; }
.line-note .i { width: 15px; height: 15px; color: var(--brand); margin-top: 2px; }
.src-note { display: flex; gap: 7px; align-items: flex-start; font-size: 11.5px; color: var(--muted-2); margin: 10px 0 0; line-height: 1.6; }
.src-note .i { width: 13px; height: 13px; margin-top: 2px; }
.src-note a { color: var(--muted); text-decoration: underline; text-decoration-color: #d5dceb; text-underline-offset: 2px; }
.pd-h-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.pd-h-head span { font-size: 12px; color: var(--muted-2); }
.pd-h-head a { font-size: 12.5px; color: var(--brand); display: inline-flex; align-items: center; gap: 4px; }
.pd-h-head a .i { width: 13px; height: 13px; }
.timeline { list-style: none; margin: 0; padding: 0 0 0 4px; }
.timeline li { display: flex; gap: 12px; padding: 0 0 14px; position: relative; }
.timeline li:not(:last-child)::before { content: ""; position: absolute; left: 4px; top: 14px; bottom: 0; width: 1px; background: var(--line); }
.tl-dot { width: 9px; height: 9px; border-radius: 50%; margin-top: 5px; flex: none; background: var(--ok); box-shadow: 0 0 0 3px rgba(15, 158, 110, .14); }
.tl-dot.soldout { background: var(--warn); box-shadow: 0 0 0 3px rgba(180, 83, 9, .12); }
.tl-dot.price { background: #6941c6; box-shadow: 0 0 0 3px rgba(105, 65, 198, .12); }
.timeline b { display: block; font-size: 13.5px; }
.timeline span { font-size: 12px; color: var(--muted); }
.tl-empty { display: flex; gap: 14px; align-items: flex-start; background: var(--bg); border-radius: 12px; padding: 16px; }
.tl-empty .mini-icon { margin: 0; flex: none; }
.tl-empty b { font-size: 13.5px; }
.tl-empty p { font-size: 12.5px; color: var(--muted); margin: 3px 0 0; }

.buy-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-lg); padding: 18px; }
.buy-card.is-out { background: linear-gradient(180deg, #fff, #fffdf9); }
.buy-label { font-size: 12px; color: var(--muted); }
.buy-price { display: flex; align-items: baseline; gap: 2px; margin: 2px 0 10px; }
.buy-price b { font-size: 34px; letter-spacing: -.035em; line-height: 1.15; }
.buy-price span { font-size: 13px; color: var(--muted); }
.buy-status { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); padding: 10px 0 14px; border-top: 1px solid var(--line-2); }
.buy-card .btn { margin-bottom: 8px; }
.buy-tip { display: flex; gap: 6px; align-items: flex-start; font-size: 11px; color: var(--muted-2); margin: 8px 0 0; line-height: 1.55; }
.buy-tip .i { width: 12px; height: 12px; margin-top: 2px; }
.grade { display: flex; gap: 12px; align-items: center; padding: 4px 0 14px; }
.grade > b, .grade-row > b { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-size: 19px; flex: none; }
.gA { background: var(--ok-soft); color: var(--ok); }
.gB { background: var(--brand-soft); color: var(--brand); }
.gC { background: var(--warn-soft); color: var(--warn); }
.grade strong { display: block; font-size: 13.5px; }
.grade span { font-size: 11.5px; color: var(--muted); }
.link { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--brand); margin-top: 12px; }
.link .i { width: 13px; height: 13px; }

/* ---------- 动态 ---------- */
.history-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 18px; }
.history-stats .panel { padding: 14px 16px; }
.history-stats b { display: block; font-size: 20px; letter-spacing: -.02em; }
.history-stats span { font-size: 11.5px; color: var(--muted); }
.feed { list-style: none; margin: 0; padding: 0; }
.feed-item { display: grid; grid-template-columns: 54px 14px minmax(0, 1fr); gap: 12px; align-items: start; margin-bottom: 10px; }
.feed-date { text-align: right; padding-top: 4px; }
.feed-date b { display: block; font-size: 13px; letter-spacing: -.01em; }
.feed-date span { font-size: 11px; color: var(--muted-2); }
.feed-dot { width: 9px; height: 9px; border-radius: 50%; margin: 9px auto 0; background: var(--muted-2); position: relative; }
.feed-dot::before { content: ""; position: absolute; left: 4px; top: 14px; bottom: -18px; width: 1px; background: var(--line); }
.feed-item:last-child .feed-dot::before { display: none; }
.feed-dot.ok { background: var(--ok); box-shadow: 0 0 0 3px rgba(15, 158, 110, .13); }
.feed-dot.warn { background: var(--warn); box-shadow: 0 0 0 3px rgba(180, 83, 9, .12); }
.feed-dot.price { background: #6941c6; box-shadow: 0 0 0 3px rgba(105, 65, 198, .12); }
.feed-dot.start { background: var(--brand); box-shadow: 0 0 0 3px rgba(31, 94, 255, .13); }
.feed-body { padding: 12px 15px; }
.feed-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.feed-name { font-size: 13.5px; font-weight: 600; }
a.feed-name:hover { color: var(--brand); }
.feed-sub { font-size: 12px; color: var(--muted); margin-top: 3px; }
.feed-note { display: flex; gap: 12px; align-items: flex-start; margin-top: 18px; background: #fbfcff; }
.feed-note > .i { width: 18px; height: 18px; color: var(--brand); margin-top: 2px; }
.feed-note b { font-size: 13px; }
.feed-note p { font-size: 12.5px; color: var(--muted); margin: 3px 0 0; }

/* ---------- 订阅 ---------- */
.sub-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; align-items: start; padding-bottom: 56px; }
.sub-form { padding: 22px; }
.field { margin-bottom: 18px; }
.field > label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 7px; }
.field input[type=email] {
  width: 100%; height: 46px; padding: 0 14px; border-radius: 11px; border: 1px solid var(--line);
  background: var(--bg); outline: none; font-size: 14px; transition: all .15s;
}
.field input[type=email]:focus { background: #fff; border-color: #b9cdff; box-shadow: 0 0 0 3px rgba(31, 94, 255, .1); }
.field small { display: block; font-size: 11.5px; color: var(--muted-2); margin-top: 6px; }
.radio-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.radio-card { position: relative; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; cursor: pointer; transition: all .15s; display: flex; flex-direction: column; gap: 2px; }
.radio-card input { position: absolute; opacity: 0; pointer-events: none; }
.radio-card b { font-size: 13.5px; }
.radio-card span { font-size: 11.5px; color: var(--muted); }
.radio-card:hover { border-color: #c6d6f8; }
.radio-card.on, .radio-card:has(input:checked) { border-color: #b9cdff; background: var(--brand-soft); box-shadow: 0 0 0 1px #b9cdff; }
.radio-card.off { opacity: .55; cursor: not-allowed; background: var(--bg); }
.radio-card.off:hover { border-color: var(--line); }
.seg { display: inline-flex; background: var(--bg); border: 1px solid var(--line); padding: 3px; border-radius: 11px; gap: 2px; }
.seg label { position: relative; cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: block; padding: 6px 16px; border-radius: 8px; font-size: 13px; color: var(--muted); }
.seg label:has(input:checked) span { background: #fff; color: var(--ink); font-weight: 600; box-shadow: 0 1px 3px rgba(13, 21, 38, .12); }
.consent { display: flex; gap: 8px; align-items: flex-start; font-size: 12px; color: var(--muted); margin: 4px 0 16px; }
.consent input { margin-top: 3px; accent-color: var(--brand); }
.consent a { color: var(--brand); text-decoration: underline; text-underline-offset: 2px; }
.form-note { display: flex; gap: 6px; align-items: center; font-size: 11.5px; color: var(--muted-2); margin: 10px 0 0; }
.form-note .i { width: 13px; height: 13px; }
.sub-side { display: flex; flex-direction: column; gap: 12px; }
.sub-side h3 { font-size: 14px; margin-bottom: 10px; }
.sub-side p { font-size: 12.5px; color: var(--muted); }
.ticks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.ticks li { display: flex; gap: 8px; align-items: flex-start; font-size: 12.5px; color: var(--ink-2); }
.ticks .i { width: 14px; height: 14px; color: var(--ok); margin-top: 3px; }
.ticks b { font-weight: 600; }
.panel.muted { background: var(--bg); box-shadow: none; }

/* ---------- 结果页 / 管理 ---------- */
.result-card { padding: 40px 34px; text-align: center; display: flex; flex-direction: column; align-items: center; margin: 44px 0 64px; }
.result-icon { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; background: var(--bg); color: var(--muted); margin-bottom: 16px; }
.result-icon .i { width: 26px; height: 26px; }
.result-icon.ok { background: var(--ok-soft); color: var(--ok); }
.result-icon.err { background: var(--red-soft); color: var(--red); }
.result-card h1 { font-size: 25px; margin-bottom: 10px; }
.result-card > p { color: var(--muted); max-width: 520px; }
.result-card .kv.wide { width: min(100%, 460px); margin: 18px 0 4px; text-align: left; }
.dev-box { width: min(100%, 560px); margin: 16px 0; text-align: left; background: #fffbf0; border: 1px dashed #f0d9a8; border-radius: 12px; padding: 14px 16px; }
.dev-box b { font-size: 12px; color: var(--warn); letter-spacing: .03em; }
.dev-box p { font-size: 12px; color: #8a6a2f; margin: 4px 0 8px; }
.dev-link { display: block; font-family: var(--mono); font-size: 11.5px; color: #7a5a1f; word-break: break-all; background: #fff; border: 1px solid #f0e2c4; border-radius: 8px; padding: 8px 10px; }
.dev-link:hover { color: var(--brand); }
.manage { padding: 22px 24px; }
.manage-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.manage-top .muted { display: block; font-size: 11.5px; }
.manage-top b { font-size: 15px; }

/* ---------- 关于 ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.about-grid h2, .anchor h2, .contact h2 { font-size: 17px; margin-bottom: 10px; }
.anchor { margin-bottom: 14px; scroll-margin-top: 90px; }
.anchor p { color: var(--ink-2); font-size: 13.5px; }
.grade-list { display: flex; flex-direction: column; gap: 10px; margin: 12px 0; }
.grade-row { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: 12px; background: #fff; }
.grade-row > b { width: 36px; height: 36px; border-radius: 10px; font-size: 16px; }
.grade-row strong { font-size: 13.5px; }
.grade-row p { font-size: 12.5px; color: var(--muted); margin: 2px 0 0; }
.contact { background: linear-gradient(160deg, #fff, #f3f7ff); border-color: #dfe8fd; }

/* ---------- 页脚 ---------- */
.foot { border-top: 1px solid var(--line); background: rgba(255, 255, 255, .7); padding: 40px 0 22px; }
.foot-in { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(2, minmax(0, .7fr)); gap: 32px; }
.foot-brand p { color: var(--muted); font-size: 12.5px; margin: 12px 0; max-width: 340px; }
.foot-tg { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ink-2); background: #fff; border: 1px solid var(--line); padding: 6px 12px; border-radius: 99px; }
.foot-tg .i { width: 14px; height: 14px; }
.foot-col { display: flex; flex-direction: column; gap: 7px; }
.foot-col h4 { font-size: 12px; color: var(--muted-2); letter-spacing: .06em; text-transform: uppercase; margin-bottom: 3px; }
.foot-col a { font-size: 13px; color: var(--ink-2); width: fit-content; }
.foot-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--line-2); margin-top: 30px; padding-top: 16px; font-size: 11.5px; color: var(--muted-2); }

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 16px); z-index: 90;
  background: var(--ink); color: #fff; font-size: 13px; padding: 10px 18px; border-radius: 99px;
  opacity: 0; pointer-events: none; transition: all .22s ease; box-shadow: 0 12px 30px -10px rgba(13, 21, 38, .6); max-width: calc(100% - 32px);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- 响应式 ---------- */
@media (max-width: 1080px) {
  .dash { grid-template-columns: 236px minmax(0, 1fr); }
  .grid { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .pd { grid-template-columns: minmax(0, 1fr) 310px; }
  .sub-layout { grid-template-columns: minmax(0, 1fr) 290px; }
}
@media (max-width: 900px) {
  .nav { display: none; }
  .mnav {
    display: flex; gap: 6px; overflow-x: auto; padding: 0 20px 9px; margin-top: -2px;
    scrollbar-width: none;
  }
  .mnav::-webkit-scrollbar { display: none; }
  .mnav a { font-size: 12.5px; padding: 5px 11px; border-radius: 99px; background: #fff; border: 1px solid var(--line); color: var(--ink-2); white-space: nowrap; }
  .mnav a.on { background: var(--brand-soft); border-color: #c9d9ff; color: var(--brand); }
  .top-in { height: 58px; }
  .dash { grid-template-columns: 1fr; }
  .side { position: static; display: grid; grid-template-columns: 1fr 1fr; align-items: start; }
  .side-note { display: none; }
  .hero { grid-template-columns: 1fr; gap: 20px; padding: 26px 2px 20px; }
  .hero-stats { gap: 8px; }
  .hstat { flex: 1; min-width: 0; padding: 10px 12px; }
  .hstat b { font-size: 22px; }
  .pd { grid-template-columns: 1fr; }
  .pd-side { position: static; }
  .buy-card { order: -1; }
  .sub-layout { grid-template-columns: 1fr; padding-bottom: 40px; }
  .about-grid { grid-template-columns: 1fr; }
  .foot-in { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
  .m-hero-stats { margin-left: 0; }
}
@media (max-width: 560px) {
  .wrap, .wrap.narrow { width: calc(100% - 24px); }
  .hero h1 { font-size: 27px; }
  .hero p { font-size: 13px; }
  .side { grid-template-columns: 1fr; }
  .side-cta { display: none; }
  .filters { padding: 12px; }
  .frow { flex-direction: column; gap: 5px; align-items: stretch; }
  .flabel { width: auto; padding-top: 0; }
  .chips { gap: 5px; }
  .chip { height: 26px; font-size: 12px; padding: 0 9px; }
  .search { flex-wrap: wrap; gap: 6px; }
  .search-box { flex: 1 0 100%; }
  .search .btn { flex: 1 1 0; }
  .result-bar { flex-direction: column; align-items: flex-start; gap: 4px; }
  .plan { padding: 14px; }
  .history-stats { grid-template-columns: repeat(2, 1fr); }
  .feed-item { grid-template-columns: 44px 12px minmax(0, 1fr); gap: 8px; }
  .spec-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .spec-cell { padding: 10px 11px; }
  .spec-v { font-size: 13px; }
  .pd-head .stock { display: none; }
  .radio-cards { grid-template-columns: 1fr; }
  .foot-in { grid-template-columns: 1fr 1fr; gap: 22px; }
  .foot-brand { grid-column: 1 / -1; }
  .foot-bottom { flex-direction: column; gap: 6px; }
  .result-card { padding: 30px 20px; margin: 24px 0 40px; }
  .pd-head { flex-wrap: wrap; }
  .pd-head .stock { margin-left: 0; order: 3; }
  .m-hero { padding: 18px; }
  .m-hero-stats { gap: 18px; }
  .m-hero-actions .btn { flex: 1; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}


/* 补货动态页 · 监控覆盖 */
.cov { margin: 26px 0 34px; }
.cov-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 0 2px; margin-bottom: 10px; }
.cov-head h2 { font-size: 15px; }
.cov-head span { font-size: 12px; color: var(--muted-2); }
.cov-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.cov-row { display: flex; align-items: center; gap: 8px; padding: 10px 12px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; font-size: 13px; min-width: 0; }
.cov-row b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cov-row span { color: var(--muted-2); font-size: 12px; margin-left: auto; white-space: nowrap; }
.cov-row em { font-style: normal; font-size: 12px; color: var(--muted); white-space: nowrap; margin-left: 10px; }
.cov-row em.ok { color: var(--ok); font-weight: 600; }
.cov-row:hover { border-color: #cfdcff; background: #fbfcff; }
@media (max-width: 700px) { .cov-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 460px) { .cov-grid { grid-template-columns: 1fr; } }

/* 移动端购买条 */
.buybar { display: none; }
@media (max-width: 760px) {
  .buybar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    align-items: center; gap: 10px;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, .95);
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    border-top: 1px solid var(--line);
    box-shadow: 0 -8px 24px rgba(13, 21, 38, .06);
  }
  .buybar-p { display: flex; align-items: baseline; gap: 1px; font-size: 12px; color: var(--muted-2); white-space: nowrap; }
  .buybar-p b { font-size: 21px; letter-spacing: -.03em; color: var(--ink); font-weight: 750; }
  .buybar-p em { font-style: normal; margin-left: 7px; font-size: 11.5px; font-weight: 600; color: var(--ok); }
  .buybar.out .buybar-p em { color: var(--warn); }
  .buybar .btn { flex: 1; height: 42px; justify-content: center; }
  .src-note span { min-width: 0; }
}
.src-note time { white-space: nowrap; }

@media (max-width: 760px) {
  body:has(.buybar) { padding-bottom: 70px; }
}


/* 收藏与视觉优化 */
[hidden]{display:none!important}
body{background:radial-gradient(ellipse at 12% 0%,#e9efff 0%,transparent 42%),radial-gradient(ellipse at 95% 10%,#edf9f8 0%,transparent 35%),#f5f7fb}
.hero{position:relative}
.hero-copy .eyebrow{display:inline-flex;background:rgba(255,255,255,.78);border:1px solid #dfe8f5;border-radius:999px;padding:5px 11px}
.hero h1{letter-spacing:-.035em}
.hero-stats .hstat{border-radius:18px;box-shadow:0 8px 28px -18px #7184ad}
.filters{box-shadow:0 8px 32px -22px #5f77a5}
.chip{transition:background .15s,border-color .15s,transform .15s}
.chip:hover{transform:translateY(-1px)}
.plan{transition:transform .18s,box-shadow .18s,border-color .18s;overflow:hidden}
.plan:hover{transform:translateY(-3px);box-shadow:0 15px 36px -22px #486394;border-color:#bacdf9}
.plan.is-in{border-top:3px solid #9ee0cd}
.plan.is-out{border-top:3px solid #e4e9f3}
.plan-sub{gap:7px}
.favorite-btn,[data-favorite]{position:relative;z-index:3;display:inline-flex;align-items:center;justify-content:center;gap:5px;min-width:32px;min-height:32px;border:1px solid #dfe7f5;border-radius:10px;background:#fff;color:#718099;cursor:pointer;flex-shrink:0}
[data-favorite][aria-pressed="true"]{color:#a46608;border-color:#f2d58d;background:#fff7df}
[data-favorite]:hover{border-color:#efc763;background:#fff9eb}
[data-favorite-count]{display:inline-grid;place-items:center;min-width:19px;height:19px;padding:0 4px;border-radius:6px;background:#dfe8ff;font-size:11px;color:#315ed8}
.favorites-toolbar,[data-favorites-toolbar]{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;padding:20px 22px;border-radius:18px;background:linear-gradient(120deg,#edf2ff,#f5fbff);border:1px solid #cfdcfa;margin-bottom:20px}
[data-favorites-toolbar] p{color:var(--muted);font-size:13px;margin:4px 0 0}
[data-favorites-subscribe]:disabled{opacity:.5;cursor:not-allowed;box-shadow:none}
.favorite-plan-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}
.favorite-pick{display:flex;gap:8px;align-items:center;font-size:12px;color:var(--muted);cursor:pointer}
.favorite-pick input{accent-color:var(--brand);width:17px;height:17px}
.favorite-title{display:block;font-size:17px;font-weight:700;margin-bottom:10px}
.favorite-spec{font-size:13px;color:var(--muted);padding:14px 0 20px;min-height:74px}
.favorite-price{font-size:21px;color:var(--ink)}
.favorite-plan .plan-foot{margin-top:0}
.favorite-plan .stock{display:inline-flex;width:auto;align-self:flex-start}
.radio-card:has(input[value="products"]){grid-column:1/-1}
.radio-card:has(input[value="products"]) span{max-height:130px;overflow:auto;display:block}
.favorites-page .side,.favorites-page .hero-stats{display:none}
.favorites-page .dash{grid-template-columns:minmax(0,1fr)}
.favorites-page .hero{padding-bottom:28px}
.favorites-page .hero-copy{max-width:800px}
.favorite-btn{padding:4px 8px;font-size:12px}
.favorites-page [data-favorites-toolbar] h2{font-size:18px}
.sub-form .seg{border-radius:13px}
.sub-form .seg label span{min-width:70px}
@media(max-width:760px){.favorites-toolbar,[data-favorites-toolbar]{padding:16px}.favorites-toolbar .btn,[data-favorites-subscribe]{width:100%}.nav{gap:0}.favorite-title{font-size:16px}}
@media(prefers-reduced-motion:reduce){.plan,.chip{transition:none}.plan:hover,.chip:hover{transform:none}}

/* 补货动态底部 CTA */
.hist-cta{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-top:26px;padding:20px 22px}
.hist-cta b{font-size:15px}
.hist-cta p{margin:4px 0 0;color:var(--muted);font-size:13.5px}

/* ---------- 工具型布局：白 / 浅灰、紧凑信息、保留操作入口 ---------- */
:root {
  --bg: #f6f7f8;
  --bg-soft: #f0f1f3;
  --ink: #20252d;
  --ink-2: #374151;
  --muted: #667085;
  --muted-2: #737d8b;
  --line: #e1e4e8;
  --line-2: #edf0f2;
  --brand-soft: #f1f3f5;
  --ok-soft: #f4f5f6;
  --warn-soft: #f4f5f6;
  --red-soft: #f4f5f6;
  --r: 10px;
  --r-sm: 7px;
  --shadow: none;
  --shadow-lg: none;
}
body { background: var(--bg); }
.top { background: #fff; backdrop-filter: none; }
.top-in { height: 60px; }
.brand-mark { background: #374151; box-shadow: none; border-radius: 7px; }
.nav a:hover, .nav a.on, .mnav a.on { background: var(--bg-soft); }
.tg-btn { border-radius: 7px; }
.tg-btn:hover { transform: none; box-shadow: none; }
.live-dot { animation: none; box-shadow: none; }

/* 数字已在结果条呈现；只隐藏重复统计和明确的宣传模块。 */
.hero, .favorites-page .hero { display: block; padding: 18px 2px 16px; }
.hero-copy .eyebrow { display: none; }
.hero h1 { font-size: 21px; letter-spacing: 0; margin: 0 0 5px; }
.hero h1 em { color: inherit; }
.hero p { max-width: none; font-size: 13px; line-height: 1.6; }
.hero-stats, .side .side-cta, .side .soon { display: none; }
.dash { grid-template-columns: 230px minmax(0, 1fr); gap: 16px; padding-bottom: 32px; }
.side { top: 76px; gap: 12px; }
.side-card { padding: 12px; }
.m-item { padding: 9px; border-radius: 7px; }
.m-item.on { background: var(--bg-soft); border-color: var(--line); }
.avatar { background: #eef0f2; color: var(--ink-2); border: 1px solid var(--line); border-radius: 7px; }
.main-col { gap: 12px; }
.panel { padding: 16px; }
.filters { padding: 13px 16px; box-shadow: none; }
.search { margin-bottom: 10px; }
.search-box { height: 38px; background: #fff; border-radius: 7px; }
.search-box:focus-within { box-shadow: none; border-color: var(--brand); }
.frow { padding: 3px 0; }
.chips { gap: 5px; }
.chip { border-radius: 7px; transition: background .15s, border-color .15s; }
.chip:hover { background: var(--bg-soft); border-color: #adb5c0; transform: none; }
.chip.on { background: var(--bg-soft); border-color: #9aa5b5; }
.chip.on em { color: var(--muted); }
.grid { gap: 12px; }
.plan { padding: 13px 14px; gap: 8px; transition: border-color .15s; }
.plan.is-in, .plan.is-out { background: #fff; border: 1px solid var(--line); }
.plan:hover, .plan.is-in:hover { transform: none; box-shadow: none; border-color: #adb5c0; }
.plan-title a { font-size: 14px; }
.plan-sub { flex-wrap: wrap; gap: 6px; }
.specs > div { padding: 4px 0; }
.plan-foot { padding-top: 8px; }
.price b { font-size: 18px; }
.stock, .tag { border-radius: 5px; }
.tag-price { background: var(--bg-soft); color: var(--ink-2); }
.btn, .bell-btn { border-radius: 7px; box-shadow: none; }
.btn:hover, .bell-btn:hover { background: var(--bg-soft); border-color: #adb5c0; }
.btn-primary, .pg.on { background: #374151; border-color: #374151; color: #fff; box-shadow: none; }
.btn-primary:hover { background: #20252d; border-color: #20252d; color: #fff; }
.btn-danger:hover { background: var(--bg-soft); }

/* 收藏按钮的层级、选中状态、批量订阅和移动端入口均保留。 */
.favorite-btn, [data-favorite] { border-color: var(--line); border-radius: 7px; }
[data-favorite][aria-pressed="true"] { color: var(--ink); border-color: #8b95a4; background: var(--bg-soft); font-weight: 600; }
[data-favorite]:hover { border-color: #8b95a4; background: var(--bg-soft); }
[data-favorite-count] { background: var(--bg-soft); color: var(--ink-2); }
.favorites-toolbar, [data-favorites-toolbar] { padding: 14px 16px; border-radius: var(--r); background: #fff; border-color: var(--line); margin-bottom: 12px; }
.favorite-title { font-size: 15px; margin-bottom: 4px; }
.favorite-spec { padding: 8px 0; min-height: 0; }
.favorite-price { font-size: 18px; }
.page-head { padding: 22px 2px 16px; }
.page-head h1 { font-size: 25px; }
.m-hero { border-radius: var(--r); padding: 18px; }
.m-hero::before { display: none; }
.buy-card.is-out, .contact, .feed-note, .dev-box { background: #fff; border-color: var(--line); }
.mini-icon, .gB { background: var(--bg-soft); }
.radio-card.on, .radio-card:has(input:checked) { background: var(--bg-soft); border-color: #9aa5b5; box-shadow: none; }
.seg label:has(input:checked) span { box-shadow: none; }
.cov-row:hover { background: var(--bg-soft); border-color: #adb5c0; }
.foot { background: #fff; padding: 24px 0 18px; }
.foot-in { gap: 22px; }
.foot-bottom { margin-top: 20px; padding-top: 12px; }
.toast { box-shadow: none; }
.buybar { box-shadow: none; }

@media (max-width: 1080px) {
  .dash { grid-template-columns: 210px minmax(0, 1fr); }
}
@media (max-width: 900px) {
  .top-in { height: 56px; }
  .dash { grid-template-columns: 1fr; }
  .side { position: static; display: block; }
  .hero, .favorites-page .hero { padding: 16px 2px 12px; }
}
@media (max-width: 560px) {
  .hero h1 { font-size: 19px; }
  .hero p { font-size: 12px; }
  .filters { padding: 12px; }
  .plan { padding: 12px; }
  .chip { min-height: 30px; }
  .bell-btn { width: 32px; height: 32px; }
  .favorites-toolbar, [data-favorites-toolbar] { padding: 12px; }
  .m-hero-main { min-width: 0; }
  .m-hero-actions { flex-wrap: wrap; }
}

/* ---------- 信息层级：主导航 / 筛选套餐 / 辅助页脚 ---------- */
.hero, .favorites-page .hero { display: none; }
.dash { padding-top: 20px; }
.side .side-note, .side .soon, .side .side-cta { display: none; }
.nav a, .mnav a { white-space: nowrap; }

/* 通知是收藏页主操作，卡片收藏保持轻量次操作。 */
.favorites-page [data-favorites-toolbar] { display: flex; margin-bottom: 0; }
[data-favorites-toolbar] h2 { font-size: 18px; }
[data-favorites-subscribe] { margin-left: auto; font-weight: 600; }
[data-favorites-subscribe]:not(:disabled) { background: var(--ink-2); border-color: var(--ink-2); color: #fff; }
[data-favorites-subscribe]:not(:disabled):hover { background: var(--ink); border-color: var(--ink); }
.plan [data-favorite] { background: transparent; border-color: var(--line); color: var(--muted); box-shadow: none; font-weight: 400; }
.plan [data-favorite][aria-pressed="true"] { background: var(--bg-soft); border-color: #9aa5b5; color: var(--ink-2); }
.plan [data-favorite]:hover { background: var(--bg-soft); border-color: #8b95a4; color: var(--ink); }

.foot:has(.compact-footer) { padding: 14px 0; }
.compact-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; font-size: 12px; color: var(--muted); }
.compact-footer > span { min-width: 0; }
.compact-footer nav { display: flex; align-items: center; gap: 16px; margin-left: auto; flex-shrink: 0; }
.compact-footer nav a { padding: 5px 0; white-space: nowrap; }
.compact-footer nav a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 900px) {
  .mnav { display: flex; gap: 6px; }
  .mnav a { flex: 1 0 auto; text-align: center; }
  .dash { padding-top: 14px; }
}
@media (max-width: 560px) {
  .mnav { padding-right: 12px; padding-left: 12px; }
  [data-favorites-toolbar] { gap: 12px; }
  [data-favorites-subscribe] { margin-left: 0; }
  .compact-footer { gap: 10px; font-size: 11.5px; }
  .compact-footer nav { gap: 12px; }
}


/* 详情页：同机房推荐移到两栏之外，手机上价格卡先于推荐出现 */
.pd-rel { margin-top: 18px; }
.pd-rel .grid { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

/* 手机端：筛选条件默认收起，先看到套餐 */
.fbox > summary { display: none; }
@media (max-width: 760px) {
  .fbox { border-top: 1px solid var(--line-2); padding-top: 4px; margin-top: 4px; }
  .fbox > summary {
    display: flex; align-items: center; gap: 6px; cursor: pointer; list-style: none;
    font-size: 13px; color: var(--muted); padding: 8px 2px; user-select: none;
  }
  .fbox > summary::-webkit-details-marker { display: none; }
  .fbox > summary::after { content: "展开"; margin-left: auto; font-size: 12px; color: var(--brand); }
  .fbox[open] > summary::after { content: "收起"; }
  .fbox > summary::before { content: "☰"; font-size: 12px; color: var(--muted-2); }
  .filters .search { margin-bottom: 2px; }
}

@media (max-width: 560px) {
  .search .btn { flex: 0 0 auto; min-width: 76px; padding: 0 14px; }
  .filters .search { flex-wrap: nowrap; }
  .filters .search-box { flex: 1 1 auto; min-width: 0; }
  .fbox > summary::before { content: none; }
}

/* ---------- 活动 / 优惠：空态 ---------- */
.offers-grid { display: grid; grid-template-columns: minmax(0, 1fr) 316px; gap: 14px; align-items: start; }
.offers-empty {
  position: relative; overflow: hidden; min-height: 436px; display: grid; place-items: center;
  text-align: center; padding: 52px 26px;
  background: radial-gradient(120% 90% at 50% -10%, #edf2ff 0%, #fff 58%);
}
.offers-empty::after {
  content: ""; position: absolute; left: 50%; bottom: -140px; width: 420px; height: 240px; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(31, 94, 255, .12), transparent); pointer-events: none;
}
.oe-inner { position: relative; z-index: 1; max-width: 460px; }
.oe-art {
  position: relative; width: 92px; height: 92px; margin: 0 auto 20px; border-radius: 26px;
  display: grid; place-items: center; color: var(--brand);
  background: linear-gradient(160deg, #e9efff, #f8fbff); border: 1px solid #dbe5ff;
  box-shadow: 0 22px 44px -28px rgba(31, 94, 255, .65);
}
.oe-art > .i { width: 40px; height: 40px; }
.oe-spark {
  position: absolute; right: -9px; top: -9px; width: 30px; height: 30px; border-radius: 50%;
  background: #fff; border: 1px solid #dbe5ff; display: grid; place-items: center; color: var(--warn);
  box-shadow: 0 8px 18px -12px rgba(0, 0, 0, .45);
}
.oe-spark .i { width: 15px; height: 15px; }
.oe-brand { font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--muted-2); }
.oe-inner h2 { font-size: 23px; margin: 8px 0; letter-spacing: -.01em; }
.oe-inner > p { font-size: 13.5px; color: var(--muted); line-height: 1.75; margin: 0 auto; max-width: 420px; }
.oe-actions { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin: 22px 0 0; }
.oe-note { display: inline-flex; gap: 6px; align-items: center; margin-top: 18px !important; font-size: 11.5px; color: var(--muted-2); }
.oe-note .i { width: 13px; height: 13px; flex: none; }

.offers-side { display: grid; gap: 12px; }
.offers-side .panel { padding: 16px; }
.offers-side h3 { font-size: 13px; display: flex; align-items: center; gap: 6px; margin-bottom: 4px; }
.count-pill { font-size: 11px; font-weight: 600; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: var(--bg-soft); color: var(--muted); display: inline-grid; place-items: center; }
.src-row { display: flex; gap: 9px; align-items: center; padding: 11px 0; border-top: 1px solid var(--line-2); }
.src-row:first-of-type { border-top: 0; margin-top: 2px; }
.src-row > .i { width: 15px; height: 15px; color: var(--muted-2); flex: none; }
.sr-t { min-width: 0; }
.sr-t b { display: block; font-size: 12.5px; font-weight: 600; }
.sr-t small { font-size: 11px; color: var(--muted-2); }
.src-row .tag { margin-left: auto; flex: none; }
.tag-off { background: var(--bg-soft); color: var(--muted); }
.mer-row { display: flex; align-items: center; gap: 8px; padding: 10px 0; border-top: 1px solid var(--line-2); font-size: 12.5px; color: var(--ink-2); }
.mer-row:first-of-type { border-top: 0; margin-top: 2px; }
.mer-row b { font-weight: 600; }
.mer-row small { color: var(--muted-2); font-size: 11px; }
.mer-row .tag { margin-left: auto; }
.mer-row.off { color: var(--muted-2); }
.mer-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); flex: none; }
.mer-row.off .mer-dot { background: #cbd5e1; }
@media (max-width: 900px) {
  .offers-grid { grid-template-columns: 1fr; }
  .offers-empty { min-height: 380px; padding: 40px 20px; }
}

.oe-note { align-items: flex-start; text-align: left; max-width: 360px; margin-left: auto; margin-right: auto; }
.oe-note .i { margin-top: 2px; }
@media (max-width: 560px) {
  .offers-empty { min-height: 0; padding: 38px 18px; }
  .oe-inner h2 { font-size: 20px; }
}

.toolbar-note { font-size: 12.5px; color: var(--muted); }
