/* =============================================================================
   VPS 补货监控 —— 2026 玻璃拟态 / 深浅色自动 / 响应式
   ========================================================================== */

:root {
  --bg: #eef1f8;
  --bg-2: #e5e9f4;
  --card: rgba(255, 255, 255, 0.72);
  --card-strong: rgba(255, 255, 255, 0.9);
  --glass: rgba(255, 255, 255, 0.55);
  --glass-hi: rgba(255, 255, 255, 0.75);
  --text: #1b2230;
  --text-2: #5a6475;
  --text-3: #8a93a5;
  --border: rgba(120, 132, 155, 0.22);
  --accent: #4f6bfe;
  --accent-2: #8b5cf6;
  --grad: linear-gradient(135deg, #4f6bfe 0%, #8b5cf6 55%, #06b6d4 100%);
  --ok: #10b981;
  --out: #f43f5e;
  --warn: #f59e0b;
  --shadow: 0 14px 40px -18px rgba(30, 40, 80, 0.35);
  --shadow-sm: 0 6px 20px -12px rgba(30, 40, 80, 0.35);
  --r-lg: 22px;
  --r-md: 15px;
  --r-sm: 10px;
  --maxw: 1280px;
}

[data-theme="dark"] {
  --bg: #0c1020;
  --bg-2: #0f1428;
  --card: rgba(24, 30, 54, 0.72);
  --card-strong: rgba(26, 32, 58, 0.92);
  --glass: rgba(20, 26, 48, 0.55);
  --glass-hi: rgba(32, 40, 70, 0.7);
  --text: #e4e9f6;
  --text-2: #a4adc4;
  --text-3: #737d97;
  --border: rgba(140, 155, 190, 0.2);
  --accent: #7a90ff;
  --accent-2: #b48bff;
  --ok: #34d399;
  --out: #fb7185;
  --warn: #fbbf24;
  --shadow: 0 18px 48px -18px rgba(0, 0, 0, 0.6);
  --shadow-sm: 0 8px 24px -12px rgba(0, 0, 0, 0.55);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-size: clamp(0.95rem, 0.9rem + 0.25vw, 1.05rem);
  line-height: 1.62;
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 10% -10%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 60%),
    radial-gradient(1000px 600px at 100% 0%, color-mix(in srgb, var(--accent-2) 14%, transparent), transparent 55%),
    var(--bg);
  background-attachment: fixed;
  min-height: 100dvh;
  transition: background 0.4s ease, color 0.3s ease;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}

.container { width: min(100% - 32px, var(--maxw)); margin-inline: auto; }
a { color: inherit; }
img { max-width: 100%; }

/* ---------------- Header ---------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  background: var(--glass);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px;
  background: var(--grad); color: #fff; font-size: 1.25rem; box-shadow: var(--shadow-sm);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-title { font-weight: 800; font-size: 1.02rem; letter-spacing: 0.01em; }
.brand-sub { font-size: 0.8rem; color: var(--text-2); }
.header-nav { display: flex; gap: 6px; flex-wrap: wrap; }
.header-nav a {
  text-decoration: none; padding: 8px 14px; border-radius: 999px; font-size: 0.88rem;
  color: var(--text-2); border: 1px solid transparent; transition: 0.2s;
}
.header-nav a:hover { color: var(--text); border-color: var(--border); background: var(--glass-hi); }
.nav-home { color: var(--accent) !important; font-weight: 700; border-color: color-mix(in srgb, var(--accent) 35%, transparent) !important; }
.nav-home:hover { color: var(--text) !important; }
.nav-social { color: var(--accent) !important; }

/* ---------------- Hero ---------------- */
.hero {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px;
  padding: clamp(28px, 5vw, 56px) 0 clamp(18px, 3vw, 32px);
}
.hero h1 {
  margin: 0 0 10px; font-size: clamp(1.55rem, 1.2rem + 2.2vw, 2.6rem);
  font-weight: 800; letter-spacing: -0.02em;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub { margin: 0 0 18px; color: var(--text-2); max-width: 60ch; font-size: clamp(0.98rem, 0.94rem + 0.3vw, 1.16rem); }
.hero-stats { display: flex; gap: 10px; flex-wrap: wrap; }
.stat {
  background: var(--card); border: 1px solid var(--border); border-radius: 999px;
  padding: 8px 16px; font-size: 0.88rem; color: var(--text-2); box-shadow: var(--shadow-sm);
}
.stat b { color: var(--text); font-size: 1.05rem; margin-right: 2px; }

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px; border-radius: 999px; font-weight: 600; font-size: 0.92rem;
  text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: 0.2s;
  white-space: nowrap; font-family: inherit;
}
.btn-primary { background: var(--grad); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { filter: brightness(1.06); transform: translateY(-1px); }
.btn-ghost {
  background: var(--glass); border-color: var(--border); color: var(--text);
}
.btn-ghost:hover { background: var(--glass-hi); }
.btn-block { width: 100%; }
.btn-buy {
  background: color-mix(in srgb, var(--ok) 16%, transparent); color: var(--ok);
  border-color: color-mix(in srgb, var(--ok) 40%, transparent); font-size: 0.82rem; padding: 7px 13px;
}
.btn-buy:hover { background: color-mix(in srgb, var(--ok) 26%, transparent); }
.link-btn {
  background: none; border: none; color: var(--accent); cursor: pointer; font-size: 0.82rem;
  padding: 2px 6px; font-family: inherit;
}
.link-btn:hover { text-decoration: underline; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none !important; }

/* ---------------- Card ---------------- */
.card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: clamp(18px, 3vw, 30px); margin: 16px 0; box-shadow: var(--shadow);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.card-head h2 { margin: 0 0 6px; font-size: 1.25rem; font-weight: 750; }
.card-head p { margin: 0 0 16px; color: var(--text-2); font-size: 0.92rem; }

/* ---------------- Subscribe ---------------- */
.subscribe-form, .subscribe-form-inline { display: flex; flex-direction: column; gap: 16px; }
.subscribe-form-inline { flex-direction: row; align-items: flex-end; flex-wrap: wrap; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field > span { font-size: 0.84rem; color: var(--text-2); }
.field-email { flex: 1 1 220px; min-width: 220px; }
.field-email input, .subscribe-form-inline input[type="email"] {
  padding: 12px 16px; border-radius: var(--r-md); border: 1px solid var(--border);
  background: var(--card-strong); color: var(--text); font-size: 1rem; font-family: inherit;
  transition: border 0.2s, box-shadow 0.2s;
}
.field-email input:focus, .subscribe-form-inline input[type="email"]:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent);
}
.scope-row { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; font-size: 0.92rem; }
.scope-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px 18px;
  max-height: 260px; overflow: auto; padding: 10px 6px; border: 1px solid var(--border);
  border-radius: var(--r-md); background: var(--glass); font-size: 0.85rem;
}
.scope-item {
  display: flex; align-items: center; gap: 8px; cursor: pointer; color: var(--text-2);
  padding: 4px 2px; font-size: 0.85rem;
}
.scope-item input { accent-color: var(--accent); cursor: pointer; }
.form-note { font-size: 0.78rem; color: var(--text-3); margin: 2px 0 0; }
.hp {
  position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none;
}

/* ---------------- Alerts ---------------- */
.alert { border-radius: var(--r-md); padding: 12px 16px; margin-bottom: 16px; font-size: 0.9rem; border: 1px solid transparent; }
.alert.ok { background: color-mix(in srgb, var(--ok) 14%, transparent); color: var(--ok); border-color: color-mix(in srgb, var(--ok) 35%, transparent); }
.alert.warn { background: color-mix(in srgb, var(--warn) 14%, transparent); color: var(--warn); border-color: color-mix(in srgb, var(--warn) 35%, transparent); }

/* ---------------- Filter bar ---------------- */
.filter-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 18px; margin: 18px 0 16px; border-radius: var(--r-md);
  background: var(--glass); border: 1px solid var(--border); backdrop-filter: blur(10px);
}
.filter-form { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; }
.filter-select { display: flex; flex-direction: column; gap: 4px; }
.filter-select span { font-size: 0.76rem; color: var(--text-3); padding-left: 4px; }
.filter-select select {
  padding: 9px 13px; border-radius: var(--r-sm); border: 1px solid var(--border);
  background: var(--card-strong); color: var(--text); font-size: 0.9rem; min-width: 150px; font-family: inherit;
}
.filter-count { font-size: 0.84rem; color: var(--text-3); white-space: nowrap; }
.filter-count b { color: var(--text); }
.filter-tools { display: flex; align-items: center; gap: 16px; }
.onsale-toggle {
  display: inline-flex; align-items: center; gap: 6px; font-size: 0.84rem; color: var(--text-2); cursor: pointer;
  padding: 6px 12px; border-radius: 999px; border: 1px solid var(--border); background: var(--glass);
}
.onsale-toggle input { accent-color: var(--ok); cursor: pointer; }
.scope-summary { font-size: 0.78rem; color: var(--text-3); }

/* ---------------- Table ---------------- */
.table-wrap { overflow-x: auto; border-radius: var(--r-lg); border: 1px solid var(--border); background: var(--card); box-shadow: var(--shadow); }
.stock-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; min-width: 980px; }
.stock-table th, .stock-table td { text-align: left; padding: 12px 14px; vertical-align: middle; }
.stock-table thead th {
  position: sticky; top: 0; background: var(--bg-2); font-size: 0.78rem; color: var(--text-3);
  text-transform: uppercase; letter-spacing: 0.04em; border-bottom: 1px solid var(--border); white-space: nowrap;
}
.stock-row { border-bottom: 1px solid var(--border); transition: background 0.15s; }
.stock-row:hover { background: var(--glass-hi); }
.stock-row:last-child { border-bottom: none; }
.c-name { min-width: 180px; }
.name-link { color: var(--accent); font-weight: 500; text-decoration: none; font-size: 0.88rem; }
.name-link:hover { text-decoration: underline; }
.c-specs { font-size: 0.82rem; color: var(--text-2); max-width: 280px; line-height: 1.45; }
.c-traffic { display: block; margin-top: 2px; font-variant-numeric: tabular-nums; color: var(--text-3); font-size: 0.78rem; white-space: nowrap; }
.c-price { white-space: nowrap; font-weight: 600; }
.c-region, .c-line { white-space: nowrap; font-size: 0.88rem; }
.c-select { width: 34px; padding-left: 8px !important; }
.th-select { width: 34px; }
.row-check { accent-color: var(--accent); width: 16px; height: 16px; cursor: pointer; }
.select-all-check { accent-color: var(--accent); width: 16px; height: 16px; cursor: pointer; }
.stock-row { cursor: pointer; }
.muted { color: var(--text-3); font-size: 0.82rem; }
.empty { text-align: center; color: var(--text-3); padding: 34px !important; }

/* ---------------- Badges ---------------- */
.badge {
  display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px;
  font-size: 0.78rem; font-weight: 600; white-space: nowrap;
}
.badge-provider {
  background: color-mix(in srgb, var(--accent-2) 15%, transparent);
  color: var(--accent); border: 1px solid color-mix(in srgb, var(--accent-2) 30%, transparent);
}
.badge-ok { background: color-mix(in srgb, var(--ok) 16%, transparent); color: var(--ok); border: 1px solid color-mix(in srgb, var(--ok) 40%, transparent); }
.badge-out { background: color-mix(in srgb, var(--out) 14%, transparent); color: var(--out); border: 1px solid color-mix(in srgb, var(--out) 40%, transparent); }

/* ---------------- 规格紧凑 / 线路标签 ---------------- */
.specs-short {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.8rem; color: var(--text); background: var(--glass);
  padding: 2px 8px; border-radius: 7px; white-space: nowrap;
  display: inline-block; line-height: 1.5;
}
.c-line { white-space: normal !important; }
.chips { display: inline-flex; gap: 5px; flex-wrap: wrap; }
.chip {
  display: inline-flex; align-items: center; padding: 2px 9px; border-radius: 999px;
  font-size: 0.72rem; font-weight: 600; color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent); white-space: nowrap;
}

/* ---------------- Product detail ---------------- */
.crumbs { color: var(--text-3); font-size: 0.85rem; padding: 16px 0 4px; }
.crumbs a { color: var(--text-2); text-decoration: none; }
.crumbs a:hover { color: var(--accent); }
.product-head .product-title { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.product-title h1 { margin: 0; font-size: clamp(1.2rem, 1.05rem + 0.8vw, 1.7rem); }
.product-meta { display: flex; gap: 8px 18px; flex-wrap: wrap; margin-top: 14px; color: var(--text-2); font-size: 0.92rem; }
.spec-list { margin: 0; display: grid; gap: 14px; }
.spec-list div { display: grid; grid-template-columns: 92px 1fr; gap: 14px; }
.spec-list dt { color: var(--text-3); font-size: 0.86rem; }
.spec-list dd { margin: 0; color: var(--text); }
.spec-list dd ul { margin: 0; padding-left: 18px; }
.spec-list .code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: var(--glass); padding: 4px 10px; border-radius: var(--r-sm); }
.product-actions { display: flex; gap: 12px; margin-top: 20px; flex-wrap: wrap; }
.fmt-note p { color: var(--text-2); margin-top: 0; }
.tag-list { display: flex; gap: 8px; flex-wrap: wrap; padding: 0; margin: 0; list-style: none; }
.tag-list li { background: var(--glass); border: 1px solid var(--border); padding: 4px 12px; border-radius: 999px; font-size: 0.8rem; color: var(--text-2); }

/* ---------------- Footer ---------------- */
.site-footer { margin-top: 40px; padding: 26px 0 40px; background: var(--glass); border-top: 1px solid var(--border); backdrop-filter: blur(14px); }
.footer-inner { display: flex; flex-direction: column; gap: 12px; }
.footer-inner p { margin: 0; color: var(--text-2); font-size: 0.84rem; }
.footer-links { display: flex; gap: 16px; flex-wrap: wrap; font-size: 0.86rem; }
.footer-links a { color: var(--accent); text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.footer-note { color: var(--text-3) !important; }

/* ---------------- Responsive ---------------- */
@media (max-width: 820px) {
  .header-inner { flex-direction: column; align-items: flex-start; gap: 10px; }
  .hero { flex-direction: column; align-items: flex-start; }
  .subscribe-form-inline { flex-direction: column; align-items: stretch; }
  .product-field { min-width: 100%; }
  .filter-bar { flex-direction: column; align-items: stretch; }
  .filter-form { width: 100%; }
  .filter-count { text-align: right; }
  .spec-list div { grid-template-columns: 1fr; gap: 4px; }
  .scope-grid { grid-template-columns: 1fr; max-height: 220px; }
}
@media (max-width: 480px) {
  .container { width: min(100% - 20px, var(--maxw)); }
  .stat { font-size: 0.78rem; }
  .brand-title { font-size: 0.9rem; }
  .btn { width: 100%; }
  .btn-inline { width: auto; }
}

/* 大屏 / Mac 4K Retina：放大可用区但仍保持语义 (rem), 避免发虚 */
@media (min-width: 1600px) {
  :root { --maxw: 1560px; }
  body, .stock-table { font-size: 1.02rem; }
}
@media (min-width: 2400px) {
  :root { --maxw: 1860px; }
  body, .stock-table { font-size: 1.1rem; }
}

/* 动效（尊重系统减少动态偏好） */
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.card, .stock-row { animation: fadeUp 0.5s ease both; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* =============================================================================
   日/夜开关
   ========================================================================== */
.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center; gap: 4px;
  width: 42px; height: 36px; border-radius: 999px; border: 1px solid var(--border);
  background: var(--glass); color: var(--text-2); cursor: pointer; transition: 0.2s; font-size: 1rem;
}
.theme-toggle:hover { background: var(--glass-hi); color: var(--text); }
.tt-ico { display: none; }
[data-theme="light"] .tt-ico.sun { display: inline; }
[data-theme="dark"] .tt-ico.moon { display: inline; }

/* =============================================================================
   补货频道条
   ========================================================================== */
.channel-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  margin: 16px 0 6px;
}
.channel-primary { display: flex; align-items: center; gap: 16px; }
.channel-flag { font-size: 2rem; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2)); }
.channel-label { margin: 0 0 2px; font-size: 0.86rem; color: var(--text-2); }
.channel-restock {
  display: inline-block; font-size: clamp(1.05rem, 1rem + 0.4vw, 1.5rem); font-weight: 800;
  text-decoration: none; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.channel-url { margin: 2px 0 0; font-size: 0.78rem; color: var(--text-3); word-break: break-all; }
.channel-links { display: flex; gap: 10px; flex-wrap: wrap; }
.channel-item {
  text-decoration: none; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--border);
  background: var(--glass); color: var(--text-2); font-size: 0.85rem; transition: 0.2s;
}
.channel-item:hover { color: var(--text); background: var(--glass-hi); border-color: var(--accent); }

/* =============================================================================
   滚动公告
   ========================================================================== */
.marquee {
  overflow: hidden; margin: 8px 0 16px; border-radius: var(--r-md);
  background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 14%, transparent), color-mix(in srgb, var(--accent-2) 10%, transparent));
  border: 1px solid var(--border); white-space: nowrap;
}
.marquee-track { display: inline-block; white-space: nowrap; padding: 9px 0 9px 100%; animation: marquee 20s linear infinite; }
.marquee-item { font-size: 0.9rem; color: var(--text-2); }
.marquee-hl {
  font-weight: 800; text-decoration: none; padding: 1px 6px; border-radius: 6px;
  background: linear-gradient(90deg, #ff5f6d, #ffc371);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-100%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; padding-left: 12px; } }

/* =============================================================================
   批量操作栏
   ========================================================================== */
.bulk-bar {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 12px 16px; margin-bottom: 14px; border-radius: var(--r-md);
  background: var(--card-strong); border: 1px solid var(--border); box-shadow: var(--shadow-sm);
  position: sticky; top: 62px; z-index: 30;
}
.bulk-bar b { color: var(--text); }
.bulk-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.bulk-email-label { font-size: 0.84rem; color: var(--text-2); }
.bulk-actions input[type="email"] {
  padding: 8px 12px; border-radius: var(--r-sm); border: 1px solid var(--border);
  background: var(--bg); color: var(--text); min-width: 200px; font-family: inherit;
}
.bulk-note { margin: 0; font-size: 0.78rem; color: var(--text-3); width: 100%; }
.btn-sm { padding: 8px 14px; font-size: 0.82rem; }

/* =============================================================================
   补货订阅按钮 / 状态
   ========================================================================== */
.btn-restock {
  background: linear-gradient(135deg, var(--ok), #0ea5e9); color: #fff;
  padding: 7px 13px; font-size: 0.82rem; border-radius: 999px; border: none; cursor: pointer;
  font-weight: 700; box-shadow: var(--shadow-sm); transition: 0.2s; font-family: inherit; white-space: nowrap;
}
.btn-restock:hover { filter: brightness(1.07); transform: translateY(-1px); }
.stat.ok b { color: var(--ok); }

/* =============================================================================
   弹窗
   ========================================================================== */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(10, 14, 30, 0.55); backdrop-filter: blur(4px); }
.modal-card {
  position: relative; width: min(100%, 460px); background: var(--card-strong);
  border: 1px solid var(--border); border-radius: var(--r-lg); padding: 26px; box-shadow: var(--shadow);
  animation: pop 0.25s ease; max-height: 90dvh; overflow: auto;
}
.modal-close {
  position: absolute; top: 12px; right: 14px; border: none; background: none; font-size: 1.6rem;
  color: var(--text-3); cursor: pointer; line-height: 1;
}
.modal-close:hover { color: var(--text); }
.modal-title { margin: 0 0 6px; font-size: 1.3rem; }
.modal-sub { margin: 0 0 16px; color: var(--text-2); font-size: 0.9rem; }
.modal-sub .badge { margin-left: 6px; }
.modal-body { display: flex; flex-direction: column; gap: 16px; }
.modal-tg { display: flex; flex-direction: column; gap: 8px; }
.modal-note { margin: 0; font-size: 0.8rem; color: var(--text-3); }
.modal-form { display: flex; flex-direction: column; gap: 12px; }
@keyframes pop { from { opacity: 0; transform: scale(0.96); } to { opacity: 1; transform: none; } }

/* =============================================================================
   分页
   ========================================================================== */
.pagination { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: center; margin: 18px 0; }
.page-btn {
  padding: 7px 14px; border-radius: 999px; border: 1px solid var(--border); text-decoration: none;
  background: var(--glass); color: var(--text-2); font-size: 0.86rem; transition: 0.2s;
}
.page-btn:hover { background: var(--glass-hi); color: var(--text); }
.page-btn.active { background: var(--grad); color: #fff; border-color: transparent; font-weight: 700; }
.page-info { font-size: 0.86rem; color: var(--text-3); }

/* =============================================================================
   Toast
   ========================================================================== */
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%) translateY(20px);
  padding: 12px 22px; border-radius: 999px; font-size: 0.9rem; font-weight: 600; z-index: 200;
  opacity: 0; transition: opacity 0.25s, transform 0.25s; box-shadow: var(--shadow);
  max-width: calc(100% - 40px); text-align: center;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast-ok { background: var(--ok); color: #fff; }
.toast-warn { background: var(--warn); color: #fff; }

/* =============================================================================
   新增元素的响应式
   ========================================================================== */
@media (max-width: 820px) {
  .channel-bar { flex-direction: column; align-items: flex-start; }
  .channel-links { width: 100%; }
  .bulk-bar { top: auto; position: static; }
}
@media (max-width: 480px) {
  .bulk-actions input[type="email"] { min-width: 100%; }
  .theme-toggle { width: 38px; height: 34px; }
}

/* =============================================================================
   Hero 关键词开头段落
   ========================================================================== */
.hero-lead { margin: 0 0 18px; max-width: 70ch; color: var(--text-2); font-size: 0.95rem; }
.hero-lead b { color: var(--accent); font-weight: 700; }

/* =============================================================================
   社交分享按钮
   ========================================================================== */
.share-row { display: flex; align-items: center; gap: 12px; margin-top: 20px; }
.share-label { font-size: 0.84rem; color: var(--text-3); white-space: nowrap; }
.share-grid { display: flex; gap: 8px; flex-wrap: wrap; }
.share-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 11px; border: 1px solid var(--border);
  background: var(--glass); color: var(--text-2); text-decoration: none; cursor: pointer;
  transition: 0.2s; font-family: inherit; padding: 0;
}
.share-btn:hover { background: var(--glass-hi); color: var(--text); transform: translateY(-1px); border-color: var(--accent); }
.share-btn svg { display: block; }
.share-x:hover { color: #1d9bf0; border-color: #1d9bf0; }
.share-telegram:hover { color: #229ed9; border-color: #229ed9; }
.share-facebook:hover { color: #1877f2; border-color: #1877f2; }
.share-linkedin:hover { color: #0a66c2; border-color: #0a66c2; }
.share-weibo:hover { color: #e6162d; border-color: #e6162d; }
.share-qq:hover { color: #12b7f5; border-color: #12b7f5; }
.share-wechat:hover { color: #07c160; border-color: #07c160; }
.share-douyin:hover { color: #fe2c55; border-color: #fe2c55; }
.share-instagram:hover { color: #e1306c; border-color: #e1306c; }

/* =============================================================================
   表格顶栏（每页条数）
   ========================================================================== */
.table-toolbar {
  display: flex; align-items: center; justify-content: flex-end; gap: 12px;
  margin: 0 0 12px;
}
.entries-select { display: inline-flex; align-items: center; gap: 8px; font-size: 0.88rem; color: var(--text-2); }
.entries-select select {
  padding: 7px 12px; border-radius: var(--r-sm); border: 1px solid var(--border);
  background: var(--card-strong); color: var(--text); font-size: 0.9rem; font-family: inherit; cursor: pointer;
}
.toolbar-total { font-size: 0.84rem; white-space: nowrap; }

/* =============================================================================
   关于页
   ========================================================================== */
.about-card { max-width: 820px; margin: 20px auto; }
.about-body p { margin: 0 0 10px; color: var(--text); font-size: 1.02rem; }
.about-meta { display: flex; flex-direction: column; gap: 8px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border); }
.about-meta-item { margin: 0; font-size: 0.88rem; color: var(--text-2); }
.about-meta-item b { color: var(--text); }
.about-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }

/* =============================================================================
   优惠码 / 详情页补强
   ========================================================================== */
/* 测评报告链接：常亮高亮，hover/点击/聚焦保持高亮 */
.review-link {
  display: inline-flex; align-items: center; gap: 4px;
  color: var(--accent); font-weight: 700; text-decoration: none;
  padding: 3px 10px; border-radius: var(--r-sm);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  transition: 0.15s;
}
.review-link:hover,
.review-link:active,
.review-link:focus-visible {
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 18%, transparent);
  border-color: color-mix(in srgb, var(--accent) 50%, transparent);
  text-decoration: underline;
}
.spec-list .promo {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--accent); padding: 4px 12px; border-radius: var(--r-sm);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  font-size: 0.92rem; word-break: break-all;
}

/* =============================================================================
   订阅弹窗三点式（频道 / Telegram Bot / 邮件）—— 行卡片
   ========================================================================== */
.modal-options { display: flex; flex-direction: column; gap: 12px; }
.modal-option {
  display: flex; gap: 14px; align-items: flex-start; padding: 16px;
  border: 1px solid var(--border); border-radius: var(--r-md); background: var(--glass);
  transition: 0.2s;
}
.modal-option:hover {
  border-color: color-mix(in srgb, var(--accent) 40%, transparent);
  background: var(--glass-hi); transform: translateY(-1px);
}
.opt-icon {
  width: 46px; height: 46px; border-radius: 12px; flex: 0 0 auto;
  display: grid; place-items: center; font-size: 1.4rem;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 24%, transparent);
}
.opt-main { display: flex; flex-direction: column; gap: 6px; flex: 1 1 auto; min-width: 0; }
.opt-title { font-size: 1.02rem; font-weight: 700; }
.opt-desc { margin: 0; font-size: 0.84rem; color: var(--text-2); line-height: 1.5; }
.opt-cta { align-self: flex-start; margin-top: 6px; }
.modal-option .modal-form { width: 100%; display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; margin-top: 2px; }
.modal-option .field-email { flex: 1 1 200px; min-width: 180px; }
.modal-form input[type="email"] {
  padding: 10px 14px; border-radius: var(--r-md); border: 1px solid var(--border);
  background: var(--card-strong); color: var(--text); font-size: 0.92rem; font-family: inherit; width: 100%;
}
.modal-form input[type="email"]:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent); }

/* =============================================================================
   页脚：居中版权
   ========================================================================== */
.footer-inner { align-items: center; text-align: center; }
.footer-links { justify-content: center; }
.footer-copy { color: var(--text-2) !important; }
.footer-copy a { color: var(--accent); text-decoration: none; }
.footer-copy a:hover { text-decoration: underline; }
.site-footer { text-align: center; }

/* =============================================================================
   订阅卡片选项卡（订阅 / 取消订阅）
   ========================================================================== */
.tabs {
  display: flex; gap: 6px; margin: 0 0 16px; padding: 4px;
  background: var(--glass); border: 1px solid var(--border); border-radius: 999px; width: max-content;
}
.tab-btn {
  appearance: none; border: 1px solid transparent; background: transparent; color: var(--text-2);
  padding: 8px 20px; font-size: 0.9rem; font-weight: 600; font-family: inherit;
  border-radius: 999px; cursor: pointer; transition: 0.2s;
}
.tab-btn:hover { color: var(--text); }
.tab-btn.active {
  background: var(--grad); color: #fff; box-shadow: var(--shadow-sm); border-color: transparent;
}
.tab-pane[hidden] { display: none; }
.tab-note { margin: 0 0 12px; font-size: 0.84rem; color: var(--text-2); }

/* 退订结果页（/unsubscribed） */
.auth-result {
  max-width: 620px; margin: 8px auto 24px; padding: 44px 40px 40px; text-align: center;
}
.auth-result .result-icon { font-size: 3rem; line-height: 1; margin-bottom: 14px; }
.auth-result h1 { margin: 0 0 12px; font-size: 1.6rem; font-weight: 780; color: var(--text); }
.auth-result .result-lead {
  margin: 0 0 16px; font-size: 1.02rem; color: var(--text); font-weight: 600; line-height: 1.6;
}
.auth-result .result-body {
  margin: 0 auto 22px; max-width: 56ch; color: var(--text-2); font-size: 0.94rem; line-height: 1.85;
}
.result-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
