/* ============================================================
   神牛AI导航 · 全站样式（浅色精致风 v2）
   主色：靛蓝 #4f46e5 · 辅色：紫罗兰 #7c3aed
   价格红 #e02b2b · 省钱绿 #16a34a（中国习惯）
   ============================================================ */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --primary: #4f46e5;
  --primary-deep: #4338ca;
  --primary-light: #eef2ff;
  --primary-soft: #f5f7ff;
  --violet: #7c3aed;
  --grad: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  --red: #e02b2b;
  --red-soft: #fef2f2;
  --green: #16a34a;
  --green-soft: #ecfdf3;
  --amber: #d97706;
  --text-1: #111827;
  --text-2: #5b6474;
  --text-3: #98a1b2;
  --bg: #f6f7fb;
  --card: #ffffff;
  --border: #e9ecf4;
  --border-2: #dfe4ef;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(23, 32, 69, 0.04), 0 4px 16px rgba(23, 32, 69, 0.05);
  --shadow-lg: 0 12px 32px rgba(35, 42, 90, 0.14);
  --font: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

html { scroll-behavior: smooth; }

html, body {
  height: 100%;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text-1);
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; }
::selection { background: var(--primary); color: #fff; }

/* 细滚动条 */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #cdd3e1; border-radius: 6px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: #b3bccf; }

/* ============ 布局：左右结构（侧栏固定） ============ */
body { min-height: 100vh; }

/* ============ 左侧栏（固定不随页面滚动） ============ */
.sidebar {
  width: 236px;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  background: var(--card);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  z-index: 50;
}

.sidebar-logo { padding: 18px 14px 14px; }

/* 品牌标识（图标 + 站名） */
.brand-lockup {
  display: flex; align-items: center; gap: 10px;
  padding: 5px 6px;
  border-radius: 12px;
  transition: background .15s;
}
.brand-lockup:hover { background: var(--primary-soft); }

.brand-mark {
  width: 38px; height: 38px; flex: none;
  border-radius: 11px;
  overflow: hidden;
  box-shadow: 0 6px 16px rgba(79, 70, 229, 0.3);
}
.brand-mark img { width: 100%; height: 100%; display: block; }

.brand-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.brand-text b {
  font-size: 15.5px; font-weight: 800; color: var(--text-1);
  letter-spacing: .2px; white-space: nowrap;
}
.brand-text i {
  font-style: normal; font-size: 11px; color: var(--text-3);
  margin-top: 3px; letter-spacing: .3px; white-space: nowrap;
}

/* 移动端顶栏品牌 */
.topbar-brand { display: none; }

.category-nav { padding: 6px 12px; flex: 1; }

.cat-item {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 14px;
  border-radius: 11px;
  color: var(--text-1);
  cursor: pointer;
  margin-bottom: 2px;
  transition: background .15s, color .15s;
}

.cat-item:hover { background: var(--primary-soft); color: var(--primary); }

.cat-item.active {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.32);
}

.cat-item.active .cat-count { color: rgba(255,255,255,.8); }
.cat-item.active .cat-icon svg { stroke: #fff; }
.cat-item:hover .cat-icon svg { stroke: var(--primary); }

.cat-icon { width: 20px; height: 20px; flex-shrink: 0; display: flex; }
.cat-icon svg { width: 20px; height: 20px; stroke: var(--text-2); transition: stroke .15s; }

.cat-name { font-weight: 500; }
.cat-count { margin-left: auto; font-size: 11.5px; color: var(--text-3); background: #f2f4fa; border-radius: 999px; padding: 1px 8px; }
.cat-item.active .cat-count { background: rgba(255,255,255,.18); }

.sidebar-footer { padding: 14px 12px 20px; border-top: 1px solid var(--border); }

.sidebar-extra {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px;
  border-radius: 11px;
  color: var(--text-1);
  font-weight: 500;
}
.sidebar-extra:hover { background: var(--primary-soft); color: var(--primary); }
.sidebar-extra .ci svg { stroke: var(--text-2); }

/* ============ 通用图标 ============ */
.ci { display: inline-flex; width: 18px; height: 18px; }
.ci svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ============ 右侧主区域 ============ */
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; margin-left: 236px; }

/* 顶部菜单 */
.topbar {
  height: 68px;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 0 32px;
  position: sticky;
  top: 0;
  z-index: 40;
}

.hamburger { display: none; background: none; border: none; flex-direction: column; gap: 4px; padding: 6px; }
.hamburger span { width: 20px; height: 2px; background: var(--text-1); border-radius: 2px; display: block; }

.topnav { display: flex; gap: 30px; }

.topnav a {
  color: var(--text-1);
  font-size: 15.5px;
  font-weight: 500;
  padding: 6px 2px;
  position: relative;
  white-space: nowrap;
  transition: color .15s;
}

.topnav a::after {
  content: "";
  position: absolute;
  left: 50%; bottom: -2px;
  width: 0; height: 3px;
  border-radius: 3px;
  background: var(--grad);
  transition: width .2s, left .2s;
}

.topnav a.active { color: var(--primary); }
.topnav a.active::after { width: 100%; left: 0; }
.topnav a:hover { color: var(--primary); }

.searchbox {
  margin-left: auto;
  display: flex; align-items: center; gap: 8px;
  background: #f2f4fa;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 9px 16px;
  width: 240px;
  transition: border-color .15s, box-shadow .15s, background .15s;
}

.searchbox:focus-within { background: #fff; border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-light); }
.searchbox .ci svg { stroke: var(--text-3); }

.searchbox input {
  border: none; outline: none; background: transparent;
  font-size: 13px; width: 100%; color: var(--text-1);
}

/* 内容区 */
.content {
  padding: 26px 32px 46px;
  max-width: 1240px;
  width: 100%;
  margin: 0 auto;
}

.section { margin-bottom: 40px; }

.section-title { font-size: 21px; font-weight: 800; letter-spacing: -.3px; }

.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 18px; }
.section-more { font-size: 13px; color: var(--text-2); font-weight: 500; transition: color .15s; }
.section-more:hover { color: var(--primary); }

.section > .section-title { margin-bottom: 18px; }

/* ============ Hero 区（首页） ============ */
.hero {
  background: var(--grad);
  border-radius: 22px;
  padding: 44px 40px 40px;
  color: #fff;
  position: relative;
  overflow: hidden;
  margin-bottom: 16px;
}

.hero::before, .hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
}

.hero::before { width: 340px; height: 340px; right: -100px; top: -140px; }
.hero::after { width: 220px; height: 220px; left: -70px; bottom: -120px; }

.hero-title {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -.5px;
  margin-bottom: 10px;
  position: relative; z-index: 1;
}

.hero-sub { font-size: 14.5px; color: rgba(255,255,255,.82); margin-bottom: 24px; position: relative; z-index: 1; }

.hero-search {
  display: flex; align-items: center; gap: 8px;
  background: #fff;
  border-radius: 999px;
  padding: 6px 6px 6px 20px;
  max-width: 560px;
  position: relative; z-index: 1;
  box-shadow: 0 10px 30px rgba(23, 20, 80, 0.25);
}

.hero-search .ci svg { stroke: var(--text-3); }

.hero-search input {
  border: none; outline: none; flex: 1;
  font-size: 14px; color: var(--text-1); min-width: 0;
  background: transparent; font-family: var(--font);
}

.hero-search button {
  border: none; background: var(--grad);
  color: #fff; font-size: 13.5px; font-weight: 600;
  border-radius: 999px; padding: 10px 24px;
  transition: opacity .15s, transform .15s;
}
.hero-search button:hover { opacity: .9; transform: translateY(-1px); }

.hero-tags {
  display: flex; align-items: center; gap: 8px;
  margin-top: 16px; flex-wrap: wrap;
  position: relative; z-index: 1;
}

.hero-tags .lbl { font-size: 12px; color: rgba(255,255,255,.65); }
.hero-tags a {
  font-size: 12px; color: #fff;
  background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 999px; padding: 4px 12px;
  transition: background .15s;
}
.hero-tags a:hover { background: rgba(255,255,255,.3); }

/* 数据统计栏 */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 26px;
}

.stat-cell {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px 20px;
  display: flex; align-items: center; gap: 14px;
  transition: transform .15s, box-shadow .15s;
}

.stat-cell:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }

.stat-ico {
  width: 42px; height: 42px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.stat-ico svg { width: 22px; height: 22px; stroke-width: 1.8; }
.stat-ico.i-blue { background: var(--primary-light); } .stat-ico.i-blue svg { stroke: var(--primary); }
.stat-ico.i-green { background: var(--green-soft); } .stat-ico.i-green svg { stroke: var(--green); }
.stat-ico.i-orange { background: #fff7ed; } .stat-ico.i-orange svg { stroke: var(--amber); }
.stat-ico.i-violet { background: #f5f0ff; } .stat-ico.i-violet svg { stroke: var(--violet); }

.stat-txt .v { font-size: 20px; font-weight: 800; letter-spacing: -.3px; }
.stat-txt .k { font-size: 12px; color: var(--text-3); margin-top: 2px; }

/* ============ 价格更新提示条 ============ */
.update-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 18px;
  margin-bottom: 16px;
  font-size: 13px;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--green);
}

.ub-live {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--green-soft); color: var(--green);
  border-radius: 999px; padding: 3px 10px; font-size: 11.5px; font-weight: 700;
}

.ub-live i {
  width: 6px; height: 6px; border-radius: 50%; background: #22c55e;
  display: inline-block;
  animation: pulse 1.6s infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, .5); }
  60% { box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
}

.ub-text { font-weight: 600; color: #14532d; }
.ub-time { margin-left: auto; color: var(--text-3); font-size: 12px; }

/* ============ 省钱横幅 ============ */
.save-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--green-soft);
  border: 1px solid #c9ecd7;
  border-radius: var(--radius);
  padding: 13px 20px;
  margin-bottom: 16px;
}

.save-shield { display: inline-flex; width: 20px; height: 20px; }
.save-shield svg { width: 20px; height: 20px; stroke: var(--green); fill: none; }

.save-text { font-size: 16px; font-weight: 700; color: #15803d; }
.save-num { font-size: 27px; font-weight: 800; color: var(--red); line-height: 1; }

/* ============ 推广位 ============ */
.promo-area { margin-bottom: 18px; }

.promo-strip {
  display: flex; align-items: center; gap: 12px;
  border-radius: var(--radius);
  padding: 14px 18px;
  margin-bottom: 10px;
  font-size: 13.5px;
  border: 1px solid rgba(0,0,0,.05);
  transition: transform .15s, box-shadow .15s;
}
.promo-strip:hover { transform: translateY(-2px); box-shadow: var(--shadow); }

.promo-title { font-weight: 700; }
.promo-sub { opacity: .85; font-size: 12.5px; }
.promo-go { margin-left: auto; font-weight: 600; font-size: 12.5px; white-space: nowrap; }

/* ============ 热门工作流 ============ */
.workflow { display: flex; align-items: stretch; gap: 10px; }

.wf-card {
  flex: 1; min-width: 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px 16px 16px;
  display: flex; flex-direction: column;
  transition: transform .18s, box-shadow .18s, border-color .18s;
  position: relative;
  overflow: hidden;
}

.wf-card::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--grad);
  opacity: 0; transition: opacity .18s;
}

.wf-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--border-2); }
.wf-card:hover::before { opacity: 1; }

.wf-step-icon { margin-bottom: 10px; }
.wf-step-icon .ci { width: 24px; height: 24px; color: var(--primary); }
.wf-step-icon .ci svg { width: 24px; height: 24px; stroke-width: 1.8; }

.wf-name { font-size: 16px; font-weight: 700; margin-bottom: 12px; }

.wf-model {
  display: flex; align-items: center; gap: 8px;
  background: var(--primary-soft);
  border: 1px solid #e4e9fb;
  border-radius: 10px;
  padding: 8px 10px;
  margin-bottom: 10px;
}

.wf-logo { width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0; }
.wf-model-name { font-size: 13px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.wf-sub { font-size: 12px; color: var(--text-2); margin-bottom: 4px; }

.wf-price-row { margin: 2px 0 6px; }
.wf-price { color: var(--red); font-size: 26px; font-weight: 800; letter-spacing: -.5px; }
.wf-unit { font-size: 12px; color: var(--text-3); margin-left: 4px; }
.wf-price-negotiable { color: var(--red); font-size: 15px; font-weight: 600; line-height: 34px; }

.wf-stations { font-size: 12px; color: var(--text-3); margin-bottom: 14px; }

.wf-btn {
  margin-top: auto;
  border: 1.5px solid var(--primary);
  color: var(--primary);
  background: #fff;
  border-radius: 10px;
  padding: 9px 0;
  font-size: 13px;
  font-weight: 600;
  transition: background .15s, color .15s, transform .15s;
}

.wf-btn:hover { background: var(--primary); color: #fff; transform: translateY(-1px); }

.wf-arrow { align-self: center; flex-shrink: 0; width: 22px; height: 22px; color: #c2cade; }
.wf-arrow svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ============ 分类模型排行 ============ */
.rank-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.rank-card {
  display: block;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px 18px 10px;
  transition: transform .18s, box-shadow .18s;
}

.rank-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.rank-card.highlight { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-light); }

.rank-title { font-size: 17px; font-weight: 800; margin-bottom: 14px; }

.rank-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 0;
  border-top: 1px solid #f1f3f9;
}

.rank-no {
  width: 20px; height: 20px;
  font-size: 12px; font-weight: 800;
  color: var(--text-3);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  border-radius: 6px;
  background: #f2f4fa;
}

.rank-no.gold { color: #b45309; background: #fef3c7; }
.rank-no.silver { color: #64748b; background: #eef2f7; }
.rank-no.bronze { color: #9a5b21; background: #fde8d7; }

.rank-logo {
  width: 34px; height: 34px; border-radius: 10px;
  color: #fff; font-size: 14px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.rank-info { min-width: 0; flex: 1; }
.rank-name { font-size: 14px; font-weight: 600; }
.rank-sub { font-size: 12px; color: var(--text-3); margin-top: 2px; }
.rank-price { color: var(--red); font-weight: 800; font-size: 15px; flex-shrink: 0; }

.rank-more {
  display: block;
  text-align: center;
  color: var(--text-2);
  font-size: 12.5px;
  padding: 10px 0 6px;
  border-top: 1px solid #f1f3f9;
  font-weight: 500;
  transition: color .15s;
}

.rank-more:hover { color: var(--primary); }

/* ============ 页脚 ============ */
.footer {
  margin-top: auto;
  padding: 24px 32px;
  text-align: center;
  color: var(--text-3);
  font-size: 12.5px;
  border-top: 1px solid var(--border);
  background: #fff;
}

/* ============ 轻提示 ============ */
.toast {
  position: fixed;
  left: 50%; bottom: 40px;
  transform: translateX(-50%) translateY(20px);
  background: rgba(17, 24, 39, .92);
  color: #fff;
  font-size: 13px;
  padding: 11px 20px;
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s, transform .25s;
  z-index: 100;
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
}

.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ============ 骨架屏 ============ */
@keyframes shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

.skel {
  background: linear-gradient(90deg, #eef1f8 25%, #e3e8f3 37%, #eef1f8 63%);
  background-size: 400% 100%;
  animation: shimmer 1.3s infinite;
  border-radius: 8px;
}

.skel-row {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  display: flex; align-items: center; gap: 16px;
  margin-bottom: 10px;
}

.skel-logo { width: 42px; height: 42px; border-radius: 12px; flex-shrink: 0; }
.skel-lines { flex: 1; }
.skel-line { height: 13px; margin-bottom: 8px; }
.skel-line.short { width: 40%; margin-bottom: 0; }

/* ============ 内页通用 ============ */
.page-head { margin-bottom: 22px; }
.page-title { font-size: 26px; font-weight: 800; letter-spacing: -.4px; }
.page-sub { color: var(--text-2); font-size: 13.5px; margin-top: 8px; }
.page-sub b { color: var(--primary); }

/* ============ 筛选条 ============ */
.filter-bar {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 14px 16px;
  margin-bottom: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

.filter-group { display: flex; flex-wrap: wrap; gap: 8px; }
.sort-group { display: flex; gap: 6px; }

.filter-chip,
.sort-btn {
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text-2);
  border-radius: 999px;
  padding: 6px 13px;
  font-size: 12.5px;
  transition: all .15s;
}

.filter-chip:hover,
.sort-btn:hover { border-color: var(--primary); color: var(--primary); }

.filter-chip.active { background: var(--grad); border-color: transparent; color: #fff; font-weight: 600; }
.sort-btn.active { background: var(--primary-light); border-color: var(--primary); color: var(--primary); font-weight: 600; }

/* ============ 模型列表 ============ */
.model-list { display: flex; flex-direction: column; gap: 10px; }

.model-row {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: transform .15s, box-shadow .15s;
}

.model-row:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }

.model-logo {
  width: 44px; height: 44px; border-radius: 13px;
  color: #fff; font-size: 17px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.model-logo.sm { width: 30px; height: 30px; border-radius: 9px; font-size: 13px; }

.model-main { flex: 1; min-width: 0; }
.model-name-line { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; flex-wrap: wrap; }
.model-name { font-size: 15px; font-weight: 700; }
.model-vendor { font-size: 12px; color: var(--text-3); }

.model-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tag {
  font-size: 11.5px;
  color: var(--text-2);
  background: #f3f5fa;
  border-radius: 6px;
  padding: 2px 8px;
}
.tag-ctx { color: var(--primary); background: var(--primary-light); }

.model-price { text-align: right; flex-shrink: 0; }
.price-num { color: var(--red); font-size: 20px; font-weight: 800; letter-spacing: -.3px; }
.price-unit { font-size: 11.5px; color: var(--text-3); margin-left: 4px; }

.model-btn {
  flex-shrink: 0;
  border: 1.5px solid var(--primary);
  background: #fff;
  color: var(--primary);
  border-radius: 10px;
  padding: 8px 14px;
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
  transition: all .15s;
}
.model-btn:hover { background: var(--primary); color: #fff; }

.empty { text-align: center; color: var(--text-3); padding: 44px 0; }

/* ============ 分类 Tab ============ */
.tab-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.tab {
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text-2);
  border-radius: 999px;
  padding: 7px 16px;
  font-size: 13px;
  transition: all .15s;
}
.tab:hover { border-color: var(--primary); color: var(--primary); }
.tab.active { background: var(--grad); border-color: transparent; color: #fff; font-weight: 600; }

/* ============ 排行榜表格 ============ */
.table-wrap {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}

.rank-table { width: 100%; border-collapse: collapse; }
.rank-table th {
  text-align: left;
  font-size: 12.5px; font-weight: 600;
  color: var(--text-2);
  background: #f8fafd;
  padding: 13px 14px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.rank-table td {
  padding: 13px 14px;
  border-bottom: 1px solid #f1f3f9;
  font-size: 13.5px;
  vertical-align: middle;
}
.rank-table tr:last-child td { border-bottom: none; }
.rank-table tbody tr { transition: background .12s; }
.rank-table tbody tr:hover { background: #f8fafd; }

.col-no { width: 64px; }
.col-price { text-align: right; white-space: nowrap; }
.col-op { text-align: right; width: 130px; }

.cell-model { display: flex; align-items: center; gap: 10px; }
.cell-muted { color: var(--text-2); }

/* ============ 需求场景 ============ */
.scenario-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 34px;
}

.scenario-card {
  text-align: left;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-family: inherit;
  box-shadow: var(--shadow);
  transition: transform .18s, box-shadow .18s, border-color .18s;
}

.scenario-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.scenario-card.active { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-light); }

.scenario-icon { width: 36px; height: 36px; flex-shrink: 0; }
.scenario-icon svg { width: 36px; height: 36px; }

.scenario-body { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 0; }
.scenario-name { font-size: 16px; font-weight: 800; }
.scenario-desc { font-size: 12.5px; color: var(--text-2); }
.scenario-models { font-size: 11.5px; color: var(--text-3); }

.scenario-go { font-size: 12px; font-weight: 600; align-self: center; white-space: nowrap; }

.solution-detail { margin-bottom: 30px; }

.saving-tip {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  background: var(--green-soft);
  border: 1px solid #c9ecd7;
  border-radius: var(--radius);
  padding: 12px 16px;
  color: #15803d;
  font-size: 13.5px;
  font-weight: 600;
}
.saving-shield { width: 18px; height: 18px; display: inline-flex; }
.saving-shield svg { width: 18px; height: 18px; stroke: var(--green); }

/* ============ 成本计算器 ============ */
.calc {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px 26px;
  display: flex;
  gap: 32px;
  align-items: center;
  flex-wrap: wrap;
}

.calc-left { flex: 1; min-width: 260px; }
.calc-label { font-size: 13px; color: var(--text-2); display: block; margin-bottom: 12px; }
.calc-left input[type="range"] { width: 100%; accent-color: var(--primary); }
.calc-value { font-size: 13px; color: var(--text-2); margin-top: 10px; }
.calc-value b { color: var(--text-1); font-size: 18px; }

.calc-right { text-align: right; }
.calc-cost-label { font-size: 12.5px; color: var(--text-2); display: block; }
.calc-cost-num { font-size: 34px; font-weight: 800; color: var(--red); letter-spacing: -.5px; }
.calc-note { font-size: 11.5px; color: var(--text-3); margin-top: 6px; max-width: 320px; }

/* ============ 文档 ============ */
.doc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }

.doc-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px 24px;
  transition: transform .18s, box-shadow .18s;
}
.doc-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }

.doc-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.doc-icon { width: 28px; height: 28px; display: inline-flex; }
.doc-icon svg { width: 28px; height: 28px; }
.doc-title { font-size: 16px; font-weight: 700; }
.doc-summary { font-size: 13px; color: var(--text-2); line-height: 1.7; margin-bottom: 12px; }
.doc-list { list-style: none; }
.doc-list li {
  font-size: 13px;
  padding: 7px 0;
  border-top: 1px dashed #eef1f6;
  display: flex;
  align-items: center;
  gap: 8px;
}
.doc-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }

/* ============ 中转站卡片 ============ */
.station-list-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.station-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform .18s, box-shadow .18s;
}

.station-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }

.station-head { display: flex; gap: 12px; align-items: center; }
.station-info { min-width: 0; }
.station-name { font-size: 15px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.station-meta { font-size: 12px; color: var(--text-3); margin-top: 4px; }

.station-coupon {
  font-size: 12.5px; color: var(--text-2);
  background: #f8fafd; border-radius: 9px; padding: 8px 10px;
}
.station-coupon b { color: var(--primary); }

.badge-official, .badge-mixed {
  display: inline-block;
  white-space: nowrap;
  font-size: 11px; padding: 1px 7px; border-radius: 5px; font-weight: 500;
}
.badge-official { background: var(--primary-light); color: var(--primary); }
.badge-mixed { background: #f3f4f6; color: #6b7280; }

.badge-official-inline {
  font-size: 12px; padding: 2px 8px; border-radius: 5px;
  background: var(--primary-light); color: var(--primary);
  font-weight: 500; vertical-align: middle;
}

.model-btn.block, .wf-btn.block { display: block; text-align: center; margin-top: auto; }
a.model-btn { text-decoration: none; display: inline-block; }
a.wf-btn { text-decoration: none; display: block; text-align: center; }

/* 中转站详情 */
.station-detail-head {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 20px; margin-bottom: 14px;
}
.station-detail-info { flex: 1; }
.station-detail-intro { font-size: 13.5px; color: var(--text-2); line-height: 1.8; }
.station-coupon-line { margin-top: 8px; font-size: 13px; }
.station-coupon-line b { color: var(--primary); }

.risk-note {
  background: #fff7ed; border: 1px solid #fed7aa; color: #c2410c;
  border-radius: var(--radius); padding: 12px 16px; font-size: 13px; margin-bottom: 16px;
}

.rank-tip { font-size: 12.5px; color: var(--text-3); margin-top: 12px; }

/* ============ 社区 ============ */
.forum-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-bottom: 16px; flex-wrap: wrap;
}

.forum-cats { display: flex; gap: 8px; flex-wrap: wrap; }

.btn-primary-sm {
  border: none; background: var(--grad); color: #fff;
  border-radius: 10px; padding: 9px 18px; font-size: 13px; font-weight: 600;
  font-family: inherit; cursor: pointer;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.28);
  transition: opacity .15s, transform .15s;
}
.btn-primary-sm:hover { opacity: .92; transform: translateY(-1px); }

.btn-ghost-sm {
  border: 1px solid var(--border); background: #fff; color: var(--text-2);
  border-radius: 10px; padding: 8px 14px; font-size: 13px;
  font-family: inherit; cursor: pointer;
  transition: all .15s;
}
.btn-ghost-sm:hover { border-color: var(--primary); color: var(--primary); }
.btn-ghost-sm:disabled { opacity: .5; cursor: not-allowed; }

.forum-form {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 18px 20px; margin-bottom: 18px;
}

.forum-form-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 12px; margin-bottom: 12px;
}

.forum-form label {
  display: flex; flex-direction: column; gap: 6px;
  font-size: 12.5px; color: var(--text-2);
}

.forum-form label.full { margin-bottom: 12px; }

.forum-form input[type="text"], .forum-form select, .forum-form textarea {
  border: 1px solid var(--border); border-radius: 10px;
  padding: 9px 12px; font-size: 13.5px; font-family: inherit;
  background: #fff; color: var(--text-1); width: 100%;
}
.forum-form input:focus, .forum-form select:focus, .forum-form textarea:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-light);
}

.forum-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.forum-form-actions { display: flex; gap: 10px; }

.forum-list { display: flex; flex-direction: column; gap: 10px; }

.forum-item {
  display: flex; align-items: center; gap: 16px;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 16px 20px;
  transition: transform .15s, box-shadow .15s;
}
.forum-item:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }

.forum-item-main { flex: 1; min-width: 0; }
.forum-item-title { font-size: 15px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.forum-item-meta { font-size: 12px; color: var(--text-3); margin-top: 6px; display: flex; gap: 6px; }

.forum-item-stat {
  display: flex; gap: 14px; font-size: 12px; color: var(--text-3);
  flex-shrink: 0; text-align: right;
}

.badge-pin {
  font-size: 11px; background: #fff7ed; color: #c2410c;
  border-radius: 5px; padding: 1px 6px; font-weight: 500;
}

.forum-pager { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 20px; }
.pager-info { font-size: 13px; color: var(--text-2); }

/* 帖子详情 */
.post-head { margin-bottom: 16px; }
.post-title { font-size: 24px; font-weight: 800; line-height: 1.4; letter-spacing: -.3px; }
.post-meta { display: flex; gap: 6px; font-size: 12.5px; color: var(--text-3); margin-top: 10px; flex-wrap: wrap; }

.post-body {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 26px; font-size: 14.5px; line-height: 1.9;
}

.post-closed { margin-top: 12px; color: #c2410c; font-size: 13px; }

.reply-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }

.reply-item {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 14px 18px;
}

.reply-head { display: flex; gap: 10px; align-items: baseline; font-size: 13px; margin-bottom: 8px; }
.reply-body { font-size: 14px; line-height: 1.8; }

.reply-form { margin-top: 16px; }

.back-link { margin-top: 20px; font-size: 13px; }
.back-link a { color: var(--text-2); }
.back-link a:hover { color: var(--primary); }

.dot { color: var(--text-3); }

/* ============ 响应式 ============ */
@media (max-width: 1100px) {
  .rank-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .workflow { flex-wrap: wrap; }
  .wf-card { flex: 1 1 42%; }
  .wf-arrow { display: none; }
  .stats-bar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .scenario-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .station-list-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .doc-grid { grid-template-columns: 1fr; }
  .forum-form-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 820px) {
  .sidebar {
    position: fixed;
    left: -244px;
    transition: left .25s;
    box-shadow: 0 0 30px rgba(0,0,0,.15);
  }
  .sidebar.open { left: 0; }
  .sidebar-mask {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, .4);
    z-index: 45;
  }
  .sidebar-mask.show { display: block; }
  .hamburger { display: flex; }
  .topnav { display: none; }
  .searchbox { width: 100%; }
  .topbar { gap: 14px; padding: 0 16px; }
  .content { padding: 20px 16px 30px; }
  .main { margin-left: 0; }
  .rank-grid { grid-template-columns: 1fr; }
  .wf-card { flex: 1 1 100%; }
  .stats-bar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .scenario-grid { grid-template-columns: 1fr; }
  .station-list-grid { grid-template-columns: 1fr; }
  .hero { padding: 30px 22px; }
  .hero-title { font-size: 23px; }
  .forum-form-grid { grid-template-columns: 1fr; }
  .forum-item { flex-direction: column; align-items: flex-start; }
  .forum-item-stat { gap: 10px; }
  .ub-time { margin-left: 0; width: 100%; }
  .model-row { flex-wrap: wrap; }
  .model-price { text-align: left; }
  .table-wrap { overflow-x: auto; }
  .rank-table { min-width: 720px; }
  .calc { gap: 18px; }
  .calc-right { text-align: left; }
}

/* ============================================================
   v3 新增：模型详情 / 比价计算器 / 搜索联想 / 对比清单
   ============================================================ */

/* ---------- 面包屑 ---------- */
.crumbs {
  display: flex; align-items: center; gap: 8px;
  font-size: 12.5px; color: var(--text-3);
  margin-bottom: 16px;
}
.crumbs a { color: var(--text-2); }
.crumbs a:hover { color: var(--primary); }
.crumbs span { color: var(--text-3); }

/* ---------- 省钱标签 ---------- */
.save-pill {
  display: inline-flex; align-items: center;
  font-size: 11px; font-weight: 700;
  color: #15803d;
  background: var(--green-soft);
  border: 1px solid #c9ecd7;
  border-radius: 999px;
  padding: 2px 8px;
  white-space: nowrap;
}
.price-official {
  display: block;
  font-size: 11.5px;
  color: var(--text-3);
  margin-top: 2px;
  text-decoration: line-through;
}
.tag-stations { color: #15803d; background: var(--green-soft); }
.tag-cat { color: var(--primary); background: var(--primary-light); }

/* ---------- 模型详情头卡 ---------- */
.model-hero {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px 26px;
  display: flex; gap: 20px; align-items: flex-start;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
}
.model-hero::before {
  content: "";
  position: absolute; inset: 0 0 auto 0; height: 4px;
  background: var(--grad);
}
.model-logo.lg { width: 64px; height: 64px; border-radius: 18px; font-size: 24px; }
.mh-main { flex: 1; min-width: 0; }
.mh-title { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.mh-title h1 { font-size: 24px; font-weight: 800; letter-spacing: -.4px; }
.mh-desc { color: var(--text-2); font-size: 13.5px; line-height: 1.75; margin: 10px 0 12px; max-width: 720px; }
.mh-price { text-align: right; flex-shrink: 0; min-width: 240px; }
.mh-price-row { display: flex; align-items: baseline; justify-content: flex-end; gap: 6px; flex-wrap: wrap; }
.mh-price-label { font-size: 12px; color: var(--text-3); display: block; width: 100%; margin-bottom: 2px; }
.price-num.big { font-size: 32px; }
.mh-official { font-size: 12.5px; color: var(--text-2); margin-top: 6px; }
.mh-official s { color: var(--text-3); }
.mh-official b { color: var(--green); }
.mh-ops { display: flex; gap: 8px; justify-content: flex-end; margin-top: 14px; flex-wrap: wrap; }

.btn-primary-lg {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--grad);
  color: #fff;
  border: none;
  border-radius: 11px;
  padding: 11px 18px;
  font-size: 13px; font-weight: 600;
  box-shadow: 0 6px 16px rgba(79, 70, 229, .25);
  transition: transform .15s, box-shadow .15s;
  white-space: nowrap;
}
.btn-primary-lg:hover { transform: translateY(-1px); box-shadow: 0 10px 22px rgba(79, 70, 229, .32); }

/* 对比按钮 */
.cmp-btn {
  border: 1.5px solid var(--border-2);
  background: #fff;
  color: var(--text-2);
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
  transition: all .15s;
}
.cmp-btn:hover { border-color: var(--primary); color: var(--primary); }
.cmp-btn.on { background: var(--primary-light); border-color: var(--primary); color: var(--primary); }
.cmp-btn.lg { padding: 11px 16px; font-size: 13px; }

.row-ops { display: flex; align-items: center; gap: 8px; flex-shrink: 0; flex-wrap: wrap; justify-content: flex-end; }

/* v7：模型行「查看中转供应商」主按钮（实心渐变，与次要按钮区分层级） */
.model-btn.primary {
  background: var(--grad);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 2px 8px rgba(79, 70, 229, .22);
}
.model-btn.primary:hover {
  background: var(--grad);
  color: #fff;
  opacity: .93;
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(79, 70, 229, .3);
}

/* 窄屏：三个按钮挤一行会把模型名压扁，按钮区独占一行 */
@media (max-width: 1280px) {
  .model-row { flex-wrap: wrap; }
  .row-ops { width: 100%; justify-content: flex-start; }
}

/* ---------- 详情两栏 ---------- */
.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 18px;
  align-items: start;
}
.detail-main, .detail-side { display: flex; flex-direction: column; gap: 18px; min-width: 0; }

.panel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px 22px 22px;
}
.panel-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px; gap: 12px;
}
.panel-head h2 { font-size: 16px; font-weight: 800; letter-spacing: -.2px; }
.panel-note { font-size: 12px; color: var(--text-3); }
.panel .table-wrap { border: none; box-shadow: none; margin: 0 -6px; }
.panel .rank-table th { background: #f8fafd; }

.best-row { background: #f7fdf9; }
.best-row:hover { background: #f2fbf5 !important; }
.best-badge {
  font-size: 10.5px; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, #16a34a, #22c55e);
  border-radius: 6px; padding: 1px 6px; margin-left: 2px;
}

/* ---------- 价格趋势 ---------- */
.trend-box { min-height: 150px; }
.trend-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 6px; gap: 12px; flex-wrap: wrap; }
.trend-now { font-size: 13px; color: var(--text-2); }
.trend-now b { color: var(--red); font-size: 17px; }
.trend-diff { font-size: 12.5px; font-weight: 600; }
.trend-diff.down { color: var(--green); }
.trend-diff.up { color: var(--amber); }
.trend-svg { width: 100%; height: 190px; display: block; }

/* ---------- 月成本估算 ---------- */
.est-body { display: flex; flex-direction: column; gap: 14px; }
.est-form { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.est-form label {
  display: flex; flex-direction: column; gap: 5px;
  font-size: 12px; color: var(--text-2);
}
.est-form label:nth-child(odd):last-child { grid-column: span 2; }
.est-form input {
  border: 1px solid var(--border-2);
  border-radius: 9px;
  padding: 8px 10px;
  font-size: 13px;
  font-family: inherit;
  color: var(--text-1);
  outline: none;
}
.est-form input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-light); }
.est-hint { grid-column: span 2; font-size: 11.5px; color: var(--text-3); }

.est-result {
  background: linear-gradient(135deg, #f5f7ff, #faf5ff);
  border: 1px solid #e3e7fb;
  border-radius: 12px;
  padding: 14px 16px;
  display: flex; flex-direction: column; gap: 3px;
}
.est-label { font-size: 11.5px; color: var(--text-2); }
.est-num { font-size: 26px; font-weight: 800; color: var(--red); letter-spacing: -.5px; }
.est-site { font-size: 12.5px; color: var(--primary); font-weight: 600; }
.est-save { font-size: 11.5px; color: var(--text-2); margin-top: 4px; }
.est-save b { color: var(--green); }

.est-list { display: flex; flex-direction: column; gap: 6px; }
.est-row {
  display: flex; align-items: center; gap: 8px;
  font-size: 12.5px; color: var(--text-2);
  padding: 6px 2px;
  border-bottom: 1px dashed #eef1f7;
}
.est-row:last-child { border-bottom: none; }
.est-rank {
  width: 18px; height: 18px; border-radius: 6px;
  background: #f1f3f9; color: var(--text-3);
  font-size: 11px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
}
.est-rank.top { background: var(--green-soft); color: #15803d; }
.est-row-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.est-row-cost { font-weight: 700; color: var(--text-1); }
.est-more { font-size: 12.5px; color: var(--primary); font-weight: 600; }

/* ---------- 相关模型 ---------- */
.related-list { display: flex; flex-direction: column; gap: 4px; }
.related-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 8px;
  border-radius: 10px;
  transition: background .15s;
}
.related-item:hover { background: var(--primary-soft); }
.related-info { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.related-name { font-size: 13px; font-weight: 700; }
.related-sub { font-size: 11.5px; color: var(--text-3); }
.related-price { font-size: 13px; font-weight: 700; color: var(--red); }

/* ---------- 搜索联想 ---------- */
.searchbox { position: relative; }
.suggest-drop {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 380px;
  max-height: 420px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  padding: 8px;
  z-index: 80;
}
.suggest-group { font-size: 11px; color: var(--text-3); padding: 6px 10px 4px; font-weight: 600; }
.suggest-item {
  display: flex; align-items: center; gap: 9px;
  padding: 8px 10px;
  border-radius: 9px;
  transition: background .12s;
}
.suggest-item:hover { background: var(--primary-soft); }
.suggest-logo {
  width: 26px; height: 26px; border-radius: 8px;
  color: #fff; font-size: 11.5px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.suggest-name { font-size: 13px; font-weight: 600; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.suggest-meta { font-size: 11.5px; color: var(--text-3); }
.suggest-price { font-size: 12.5px; font-weight: 700; color: var(--red); }
.suggest-all {
  display: block; text-align: center;
  font-size: 12px; color: var(--primary); font-weight: 600;
  padding: 9px; border-top: 1px solid var(--border); margin-top: 6px;
}
.suggest-empty { font-size: 12.5px; color: var(--text-3); padding: 14px; text-align: center; }

/* ---------- 对比浮条 ---------- */
.cmp-bar {
  position: fixed;
  left: 50%; bottom: 22px;
  transform: translateX(-50%);
  background: #101731;
  color: #fff;
  border-radius: 999px;
  padding: 9px 10px 9px 18px;
  display: flex; align-items: center; gap: 12px;
  box-shadow: 0 14px 34px rgba(16, 23, 49, .35);
  z-index: 90;
  max-width: calc(100% - 32px);
}
.cmp-bar-label { font-size: 12px; color: #a9b2cc; white-space: nowrap; }
.cmp-bar-items { display: flex; gap: 6px; flex-wrap: wrap; }
.cmp-chip {
  display: inline-flex; align-items: center; gap: 5px;
  background: rgba(255,255,255,.1);
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
}
.cmp-del { font-style: normal; cursor: pointer; color: #9aa4c0; padding-left: 2px; }
.cmp-del:hover { color: #fff; }
.cmp-go {
  background: var(--grad);
  color: #fff; font-size: 12.5px; font-weight: 600;
  border-radius: 999px; padding: 7px 14px;
  white-space: nowrap;
}
.cmp-clear {
  background: none; border: none; color: #8d97b5;
  font-size: 12px; padding: 0 8px 0 0;
}
.cmp-clear:hover { color: #fff; }

.rank-item.clickable { cursor: pointer; border-radius: 8px; }
.rank-item.clickable:hover { background: var(--primary-soft); }

/* ---------- 比价计算器 ---------- */
.calc-panel { display: flex; flex-direction: column; gap: 16px; margin-bottom: 20px; }
.calc-block {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px 22px;
}
.calc-block-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.calc-block-head h2 { font-size: 15px; font-weight: 800; }
.cb-no {
  width: 22px; height: 22px; border-radius: 7px;
  background: var(--grad); color: #fff;
  font-size: 12px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
}
.cb-note { font-size: 11.5px; color: var(--text-3); margin-left: auto; }

.picker { position: relative; }
.picker input {
  width: 100%;
  border: 1px solid var(--border-2);
  border-radius: 11px;
  padding: 11px 14px;
  font-size: 13.5px;
  font-family: inherit;
  outline: none;
}
.picker input:focus { border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-light); }
.pick-drop {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0;
  background: #fff; border: 1px solid var(--border);
  border-radius: 12px; box-shadow: var(--shadow-lg);
  padding: 6px; z-index: 60; max-height: 320px; overflow-y: auto;
}
.drop-item {
  width: 100%; text-align: left;
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; border: none; background: none;
  border-radius: 9px; font-family: inherit;
}
.drop-item:hover { background: var(--primary-soft); }
.drop-name { font-size: 13px; font-weight: 600; }
.drop-meta { margin-left: auto; font-size: 11.5px; color: var(--text-3); }
.drop-empty { font-size: 12.5px; color: var(--text-3); padding: 12px; text-align: center; }

.pick-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; align-items: center; }
.pick-chip {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--primary-light);
  border: 1px solid #dfe3fb;
  border-radius: 999px;
  padding: 5px 10px 5px 5px;
  font-size: 12.5px; font-weight: 600; color: var(--primary-deep);
}
.pc-logo {
  width: 20px; height: 20px; border-radius: 6px;
  color: #fff; font-size: 10.5px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
}
.pc-del { font-style: normal; cursor: pointer; color: #8b93b8; padding-left: 2px; }
.pc-del:hover { color: var(--red); }
.pick-clear {
  background: none; border: none; font-size: 12px; color: var(--text-3);
  text-decoration: underline;
}
.pick-hint { font-size: 12.5px; color: var(--text-3); }

.preset-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.preset {
  border: 1px solid var(--border);
  background: #fff; color: var(--text-2);
  border-radius: 999px; padding: 6px 14px; font-size: 12.5px;
}
.preset:hover { border-color: var(--primary); color: var(--primary); }
.preset.active { background: var(--primary-light); border-color: var(--primary); color: var(--primary); font-weight: 600; }
.preset-tip { font-size: 11.5px; color: var(--text-3); }

.field-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 12px; color: var(--text-2); }
.field input {
  border: 1px solid var(--border-2);
  border-radius: 10px;
  padding: 9px 12px;
  font-size: 13.5px;
  font-family: inherit;
  color: var(--text-1);
  outline: none;
}
.field input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-light); }
.field-hint { font-size: 11.5px; color: var(--text-3); margin-top: 10px; }

.calc-summary {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 14px;
  margin-bottom: 18px;
}
.sum-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px 20px;
  display: flex; flex-direction: column; gap: 4px;
}
.sum-card.main { background: linear-gradient(135deg, #f7f8ff, #fdf8ff); border-color: #e4e7fb; }
.sum-card.save { background: var(--green-soft); border-color: #cdeedb; }
.sum-label { font-size: 12px; color: var(--text-2); }
.sum-num { font-size: 30px; font-weight: 800; color: var(--red); letter-spacing: -.6px; }
.sum-num.muted { color: var(--text-2); font-size: 26px; }
.sum-num.green { color: var(--green); font-size: 30px; }
.sum-sub { font-size: 11.5px; color: var(--text-3); }

.calc-results { display: flex; flex-direction: column; gap: 14px; }
.res-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px 20px;
}
.res-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.res-title { display: flex; flex-direction: column; gap: 3px; flex: 1; min-width: 160px; }
.res-title a { font-size: 15.5px; font-weight: 800; }
.res-title a:hover { color: var(--primary); }
.res-meta { font-size: 11.5px; color: var(--text-3); }
.res-best { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.res-best-label {
  font-size: 10.5px; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, #16a34a, #22c55e);
  border-radius: 6px; padding: 2px 7px;
}
.res-best-site { font-size: 13px; font-weight: 700; }
.res-best-cost { font-size: 17px; font-weight: 800; color: var(--red); }
.res-bars { display: flex; flex-direction: column; gap: 7px; }
.res-bar-row { display: flex; align-items: center; gap: 10px; font-size: 12.5px; }
.rb-name { width: 96px; color: var(--text-2); flex-shrink: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rb-track { flex: 1; height: 8px; background: #f1f3f9; border-radius: 999px; overflow: hidden; min-width: 60px; }
.rb-track i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #a5b4fc, #c4b5fd); }
.res-bar-row.top .rb-track i { background: linear-gradient(90deg, #34d399, #22c55e); }
.res-bar-row.top .rb-name { color: var(--text-1); font-weight: 700; }
.rb-cost { width: 84px; text-align: right; font-weight: 700; color: var(--text-1); flex-shrink: 0; }
.rb-more { font-size: 11.5px; color: var(--text-3); margin-top: 4px; }
.calc-actions { display: flex; gap: 10px; margin-top: 22px; flex-wrap: wrap; }

@media (max-width: 1100px) {
  .detail-grid { grid-template-columns: 1fr; }
  .detail-side { flex-direction: row; flex-wrap: wrap; }
  .detail-side > .panel { flex: 1 1 300px; }
  .field-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .calc-summary { grid-template-columns: 1fr 1fr; }
  .sum-card.main { grid-column: span 2; }
}

@media (max-width: 820px) {
  .model-hero { flex-wrap: wrap; padding: 20px; }
  .mh-price { text-align: left; min-width: 0; width: 100%; }
  .mh-price-row { justify-content: flex-start; }
  .mh-ops { justify-content: flex-start; }
  .mh-title h1 { font-size: 20px; }
  .price-num.big { font-size: 26px; }
  .detail-side { flex-direction: column; }
  .calc-summary { grid-template-columns: 1fr; }
  .sum-card.main { grid-column: auto; }
  .field-grid { grid-template-columns: 1fr 1fr; }
  .suggest-drop { width: 100%; right: auto; left: 0; }
  .cmp-bar { flex-wrap: wrap; border-radius: 16px; padding: 10px 12px; bottom: 12px; }
  .cmp-bar-label { width: 100%; }
  .rb-name { width: 74px; }
  .rb-cost { width: 70px; }
  .est-form { grid-template-columns: 1fr 1fr; }
  .row-ops { width: 100%; }
}

/* 首页 Hero：计算器入口 */
.hero-tags .hero-calc {
  margin-left: auto;
  color: var(--primary);
  font-weight: 700;
  background: #fff;
  border: 1px solid #dfe3fb;
  border-radius: 999px;
  padding: 4px 12px;
  box-shadow: 0 2px 8px rgba(79,70,229,.1);
}
.hero-tags .hero-calc:hover { background: var(--primary); color: #fff; border-color: transparent; }
@media (max-width: 820px) {
  .hero-tags .hero-calc { margin-left: 0; }
}

/* ============================================================
   v4：视频模型测试中心（导航外链 + 仅供测试提示）
   ============================================================ */

/* ---------- 顶部导航外链项 ---------- */
.topnav a.nav-ext { display: inline-flex; align-items: center; gap: 3px; }
.topnav a.nav-ext:hover { color: var(--violet); }
.topnav a.nav-ext:hover::after { width: 100%; left: 0; }
.nav-out {
  display: inline-flex; width: 13px; height: 13px;
  opacity: .5; margin-top: -1px;
  transition: opacity .15s;
}
.nav-out svg {
  width: 13px; height: 13px; stroke: currentColor; fill: none;
  stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round;
}
.topnav a.nav-ext:hover .nav-out { opacity: 1; }

/* ---------- 侧栏测试中心入口 ---------- */
.sidebar-extra.se-ext {
  gap: 10px;
  background: #fffbeb;
  border: 1px solid #fde9c4;
  color: #b45309;
  font-weight: 600;
  margin-bottom: 4px;
}
.sidebar-extra.se-ext:hover {
  background: #fff8ea;
  border-color: #fbd68a;
  color: #b45309;
}
.sidebar-extra.se-ext .ci svg { stroke: #d97706; }
.se-label {
  flex: 1; min-width: 0;
  display: inline-flex; align-items: center; gap: 5px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: 13px;
}
.se-tag {
  font-style: normal; font-size: 10px; font-weight: 700;
  line-height: 1.7; color: #fff;
  background: linear-gradient(135deg, #f59e0b, #f97316);
  border-radius: 5px; padding: 0 5px;
  flex-shrink: 0;
}
.se-out { width: 14px; height: 14px; opacity: .6; flex-shrink: 0; }
.se-out svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2; }
.sidebar-extra.se-ext:hover .se-out { opacity: 1; }

/* ---------- 首页测试中心提示条 ---------- */
.test-notice {
  display: flex; align-items: center; gap: 12px;
  background: #fffbeb;
  border: 1px solid #fde9c4;
  border-radius: 14px;
  padding: 13px 18px;
  margin: 0 0 22px;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.test-notice:hover {
  border-color: #fbd68a;
  box-shadow: 0 8px 20px rgba(217, 119, 6, .13);
  transform: translateY(-1px);
}
.tn-badge {
  flex-shrink: 0;
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11.5px; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, #f59e0b, #f97316);
  border-radius: 999px; padding: 4px 10px;
  white-space: nowrap;
}
.tn-badge .ci { width: 13px; height: 13px; }
.tn-badge .ci svg {
  width: 13px; height: 13px; stroke: #fff; fill: none;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.tn-text { flex: 1; min-width: 0; font-size: 13px; color: #78350f; line-height: 1.65; }
.tn-text b { color: #b45309; }
.tn-go { flex-shrink: 0; font-size: 12.5px; font-weight: 700; color: #b45309; white-space: nowrap; }
.test-notice:hover .tn-go { text-decoration: underline; }

/* ---------- 顶栏拥挤时的收缩 ---------- */
@media (max-width: 1240px) {
  .topnav { gap: 18px; }
  .topnav a { font-size: 14.5px; }
  .searchbox { width: 200px; }
}
@media (max-width: 1080px) {
  .topnav { gap: 12px; }
  .topnav a { font-size: 13.5px; }
  .searchbox { width: 160px; }
  .nav-out { display: none; }
}
@media (max-width: 820px) {
  .test-notice { flex-wrap: wrap; gap: 8px; padding: 12px 14px; }
  .tn-text { flex: 1 1 100%; order: 3; font-size: 12.5px; }
  .tn-go { margin-left: auto; }
}

/* ============================================================
   v5：官方品牌图标（真实 logo 图片）
   ============================================================ */
.logo-img {
  background: #fff !important;
  border: 1px solid rgba(15, 23, 42, .07);
  overflow: hidden;
  padding: 0;
}
.logo-img img {
  width: 86%;
  height: 86%;
  object-fit: contain;
  display: block;
  border-radius: inherit;
}
/* 满版图标（深底/渐变底）铺满容器，避免出现白边 */
.logo-img img[src$="jimeng.png"],
.logo-img img[src$="kling.png"],
.logo-img img[src$="minimax.png"],
.logo-img img[src$="xai.png"],
.logo-img img[src$="moonshot.png"],
.logo-img img[src$="tripo.png"],
.logo-img img[src$="meshy.png"],
.logo-img img[src$="hyper3d.png"] {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.wf-logo.logo-img { border-radius: 7px; }
.wf-logo.logo-img img { width: 100%; height: 100%; object-fit: cover; }

/* 详情页大图标 */
.model-logo.lg.logo-img img { width: 80%; height: 80%; }

/* v5：图标容器防溢出 + 报价表不挤压 */
.model-logo, .rank-logo, .suggest-logo, .pc-logo, .wf-logo {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: clip;
}
.cell-model .model-name { white-space: nowrap; }
.panel .rank-table { min-width: 700px; }

/* ============================================================
   v6：品牌标识（神牛AI导航）
   ============================================================ */
@media (max-width: 820px) {
  .topbar { gap: 10px; }
  .topbar-brand {
    display: flex; align-items: center; gap: 7px;
    flex: none; margin-right: 2px;
  }
  .topbar .searchbox {
    width: auto; flex: 1 1 auto; min-width: 0; margin-left: 0;
  }
  .topbar-brand img {
    width: 26px; height: 26px; border-radius: 8px; display: block;
    box-shadow: 0 3px 8px rgba(79, 70, 229, .22);
  }
  .topbar-brand span {
    font-size: 14.5px; font-weight: 800; color: var(--text-1); white-space: nowrap;
  }
}
@media (max-width: 360px) {
  .topbar-brand span { display: none; }
}

/* v6：窄屏表单不撑破容器（月成本估算） */
.est-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.est-form label { min-width: 0; }
.est-form input { width: 100%; min-width: 0; }
@media (max-width: 480px) {
  .est-form { grid-template-columns: 1fr; }
  .est-form label:nth-child(odd):last-child { grid-column: auto; }
  .est-hint { grid-column: auto; }
}

/* v6：比价计算器表单在窄屏不撑破 */
.field-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.field { min-width: 0; }
.field input, .field select { width: 100%; min-width: 0; }
@media (max-width: 1100px) {
  .field-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
  .field-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   v7：侧栏站长微信 / 交流群活码（紧贴导航下方，自适应大图）
   ============================================================ */
.sidebar-logo { flex: none; }
/* 侧栏整体可滚：矮屏时保证二维码仍有足够高度，不被压缩成小图 */
.sidebar { overflow-y: auto; scrollbar-width: thin; }
.sidebar::-webkit-scrollbar { width: 5px; }
.sidebar::-webkit-scrollbar-thumb { background: #d8dee9; border-radius: 5px; }

/* 分类导航不再撑满侧栏，二维码紧跟导航下方 */
.category-nav {
  flex: 0 0 auto;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}
.category-nav::-webkit-scrollbar { width: 4px; }
.category-nav::-webkit-scrollbar-thumb { background: #d8dee9; border-radius: 4px; }

.sidebar-qr {
  flex: 1 1 auto;
  min-height: 330px;
  display: flex;
  flex-direction: column;
  padding: 10px 12px 6px;
  border-top: 1px solid var(--border);
}
.sq-title {
  flex: none;
  font-size: 10.5px; font-weight: 700; color: var(--text-3);
  letter-spacing: .6px; margin: 0 0 8px 4px;
}

/* 二维码卡片：图片占满卡片可用空间 */
.sq-grid {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  gap: 9px;
  /* 始终单列竖排（站长微信在上、交流群在下），二维码随可用空间放大 */
  grid-template-columns: minmax(0, 1fr);
  grid-auto-rows: minmax(0, 1fr);
}
/* 只有一张（未配置站长微信）时：单卡占满整块，二维码居中放大 */
.sq-grid-single { grid-template-columns: minmax(0, 1fr); }

.sq-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
  min-height: 148px;
  padding: 8px 7px;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 14px;
  text-align: center;
  cursor: pointer;
  font-family: inherit;
  margin: 0;
  transition: border-color .15s, box-shadow .15s;
}
.sq-row:hover { border-color: #c7d2fe; box-shadow: 0 6px 18px rgba(79, 70, 229, .12); }
.sq-img {
  flex: 1 1 0;
  min-height: 0;
  width: 100%;
  display: flex; align-items: center; justify-content: center;
}
.sq-img img {
  max-width: 100%; max-height: 100%;
  width: 100%; height: 100%;
  object-fit: contain;
  display: block;
  padding: 5px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: 0 1px 3px rgba(15, 23, 42, .06);
}
.sq-txt {
  flex: none;
  width: 100%;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  min-width: 0;
}
.sq-txt b {
  font-size: 12.5px; font-weight: 700; color: var(--text-1);
  display: flex; align-items: center; justify-content: center; gap: 4px;
}
.sq-txt em {
  font-style: normal; font-size: 9.5px; font-weight: 700;
  color: #15803d; background: var(--green-soft);
  border-radius: 4px; padding: 0 4px; line-height: 15px;
}
.sq-txt i {
  font-style: normal; font-size: 10.5px; color: var(--text-3);
  line-height: 1.3; width: 100%; text-align: center;
  overflow: hidden;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2;
}

/* 二维码大图预览 */
.qr-viewer {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(15, 23, 42, .55);
  backdrop-filter: blur(3px);
  display: none; align-items: center; justify-content: center;
  padding: 24px;
}
.qr-viewer.show { display: flex; }
.qv-card {
  position: relative; background: #fff; border-radius: 18px;
  padding: 24px 24px 18px; text-align: center;
  box-shadow: 0 24px 60px rgba(15, 23, 42, .3);
  max-width: 92vw;
}
.qv-card img {
  width: 262px; height: 262px; max-width: 70vw; max-height: 62vh;
  object-fit: contain; display: block; border-radius: 10px; margin: 0 auto;
}
.qv-close {
  position: absolute; right: 6px; top: 4px;
  border: none; background: transparent; color: var(--text-3);
  font-size: 22px; line-height: 1; padding: 6px 10px; cursor: pointer;
}
.qv-close:hover { color: var(--text-1); }
.qv-title { font-size: 14.5px; font-weight: 700; margin-top: 12px; color: var(--text-1); }
.qv-hint { font-size: 11.5px; color: var(--text-3); margin-top: 5px; }

/* 矮屏：压缩间距，说明文字让位给二维码（始终单列竖排） */
@media (max-height: 820px) {
  .sidebar-logo { padding: 12px 14px 10px; }
  .sidebar-footer { padding: 8px 12px 12px; }
  .sidebar-extra { padding: 7px 13px; }
  .sidebar-qr { padding: 8px 10px 6px; }
  .sq-title { margin-bottom: 6px; }
  .sq-grid { gap: 6px; }
  .sq-row { padding: 6px; gap: 4px; }
  .sq-txt i { display: none; }
}

/* v7：页面标题右侧提示（厂商模型大全：科学上网提醒） */
/* 与 .page-title（26px/800）完全一致的字号字重 */
.title-tip {
  display: inline-flex; align-items: center; gap: 8px;
  vertical-align: 3px;
  margin-left: 14px;
  font-size: 26px; font-weight: 800; letter-spacing: -.4px;
  color: #b45309;
  background: #fffbeb;
  border: 1px solid #fde9c4;
  border-radius: 14px;
  padding: 4px 14px 5px;
  white-space: nowrap;
}
.title-tip svg {
  width: 24px; height: 24px; flex: none;
  stroke: #d97706; fill: none;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
@media (max-width: 900px) {
  .title-tip { font-size: 21px; padding: 3px 12px 4px; vertical-align: 4px; }
  .title-tip svg { width: 20px; height: 20px; }
}
@media (max-width: 700px) {
  .title-tip { display: flex; margin: 10px 0 0; width: fit-content; vertical-align: baseline; }
}

/* ============================================================
   v7：Hero 右侧 5 分钟价格同步倒计时
   ============================================================ */
.hero-clock {
  position: absolute;
  right: 44px; top: 50%; transform: translateY(-50%);
  z-index: 1;
  display: flex; flex-direction: column; align-items: flex-end; gap: 7px;
  text-align: right;
  pointer-events: none;
}
.hc-label {
  font-size: 11.5px; font-weight: 600; letter-spacing: 1.6px;
  color: rgba(255, 255, 255, .72);
}
.hc-time {
  display: block;
  font-size: 78px; font-weight: 800; line-height: .92;
  letter-spacing: -3px;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  text-shadow: 0 10px 34px rgba(15, 12, 60, .3);
}
.hc-bar {
  display: block;
  width: 216px; height: 5px; border-radius: 999px;
  background: rgba(255, 255, 255, .24);
  overflow: hidden;
}
.hc-bar i {
  display: block; height: 100%; width: 100%;
  background: #fff; border-radius: 999px;
  transition: width .95s linear;
}
.hc-tip {
  font-size: 13px; font-weight: 600;
  color: rgba(255, 255, 255, .95);
  white-space: nowrap;
}
.hc-tip b { color: #fde68a; font-weight: 800; }

@keyframes hcPulse {
  0%   { transform: scale(1);    filter: brightness(1); }
  30%  { transform: scale(1.07); filter: brightness(1.4); }
  100% { transform: scale(1);    filter: brightness(1); }
}
.hero-clock.tick .hc-time { animation: hcPulse .85s ease-out; }

/* 宽屏：给右侧倒计时预留通道，避免压住「算一算」按钮 */
@media (min-width: 1321px) {
  .hero { padding-right: 338px; }
}

/* 中等宽度：倒计时移到搜索框下方，避免与搜索框重叠 */
@media (max-width: 1320px) {
  .hero-clock {
    position: static; transform: none;
    align-items: flex-start; text-align: left;
    margin-top: 20px; padding-top: 18px;
    width: 100%;
    border-top: 1px solid rgba(255, 255, 255, .18);
  }
  .hc-time { font-size: 54px; letter-spacing: -2px; }
  .hc-bar { width: 180px; }
}
@media (max-width: 560px) {
  .hero-clock { margin-top: 16px; padding-top: 14px; gap: 6px; }
  .hc-time { font-size: 46px; }
  .hc-tip { font-size: 12px; white-space: normal; }
  .hc-bar { width: 150px; }
}

/* ============================================================
   v7：论坛账号（登录 / 注册）
   ============================================================ */
.forum-ops { display: flex; align-items: center; gap: 10px; flex: none; }
.user-slot { display: inline-flex; align-items: center; gap: 7px; }
.u-name {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 700; color: var(--text-1);
  background: var(--primary-soft);
  border-radius: 999px; padding: 5px 12px;
}
.u-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #16a34a; display: inline-block;
}
.notice-review {
  background: #fffbeb; border: 1px solid #fde9c4;
  color: #92400e; font-size: 13px;
  border-radius: 12px; padding: 10px 16px; margin-bottom: 14px;
}
.notice-review b { color: #b45309; }
.reply-user {
  display: flex; align-items: center; gap: 10px;
  margin: 14px 0 10px;
}

/* 登录 / 注册弹窗 */
.auth-mask {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(15, 23, 42, .5);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.auth-card {
  position: relative; width: 100%; max-width: 380px;
  background: #fff; border-radius: 18px;
  padding: 26px 26px 20px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, .3);
}
.auth-close {
  position: absolute; right: 8px; top: 6px;
  border: none; background: none; color: var(--text-3);
  font-size: 24px; line-height: 1; padding: 6px 10px; cursor: pointer;
}
.auth-close:hover { color: var(--text-1); }
.auth-tabs {
  display: flex; gap: 4px; background: var(--bg-2, #f2f4f9);
  border-radius: 12px; padding: 4px; margin-bottom: 18px;
}
.auth-tab {
  flex: 1; border: none; background: none; cursor: pointer;
  font-family: inherit; font-size: 14px; font-weight: 700;
  color: var(--text-2); padding: 8px 0; border-radius: 9px;
}
.auth-tab.active { background: #fff; color: var(--primary); box-shadow: 0 1px 4px rgba(15,23,42,.08); }
.auth-tip {
  font-size: 12.5px; color: #92400e; background: #fffbeb;
  border: 1px solid #fde9c4; border-radius: 10px;
  padding: 8px 12px; margin-bottom: 14px;
}
.auth-field {
  display: block; font-size: 12.5px; font-weight: 600;
  color: var(--text-2); margin-bottom: 12px;
}
.auth-field input {
  display: block; width: 100%; margin-top: 6px;
  border: 1px solid var(--border); border-radius: 10px;
  padding: 10px 12px; font-size: 14px; font-family: inherit;
  color: var(--text-1); background: #fff;
}
.auth-field input:focus { outline: none; border-color: #a5b4fc; box-shadow: 0 0 0 3px rgba(79,70,229,.12); }
.auth-cap { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.auth-cap input { flex: 1; min-width: 0; }
.auth-cap img {
  width: 118px; height: 44px; flex: none;
  border: 1px solid var(--border); border-radius: 10px;
  cursor: pointer; background: #fff;
}
.auth-err {
  font-size: 12.5px; color: #b42318; background: #fef3f2;
  border-radius: 8px; padding: 7px 10px; margin-bottom: 12px;
}
.auth-submit {
  width: 100%; border: none; cursor: pointer;
  background: var(--grad); color: #fff;
  font-size: 14.5px; font-weight: 700; font-family: inherit;
  border-radius: 12px; padding: 12px 0;
}
.auth-submit:hover { opacity: .92; }
.auth-submit:disabled { opacity: .6; cursor: not-allowed; }
.auth-foot {
  font-size: 11.5px; color: var(--text-3);
  text-align: center; margin-top: 14px; line-height: 1.6;
}
@media (max-width: 520px) {
  .forum-toolbar { flex-wrap: wrap; }
  .forum-ops { width: 100%; justify-content: space-between; }
}

/* v7：论坛头部排版（标题 + 账号区同行） */
.page-head-row {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
}
.page-head-row .ph-main { min-width: 0; }
.forum-cats-label { font-size: 13.5px; font-weight: 700; color: var(--text-2); }
@media (max-width: 520px) {
  .page-head-row { align-items: center; }
  .page-head-row .user-slot { margin-left: auto; }
}

/* v7：「各中转站报价」锚点（厂商模型大全 → 查看中转供应商 直达） */
.panel[id] { scroll-margin-top: 86px; }
@keyframes panelFlash {
  0%   { box-shadow: 0 0 0 0 rgba(79, 70, 229, .45); }
  100% { box-shadow: 0 0 0 14px rgba(79, 70, 229, 0); }
}
.panel.flash {
  border-color: var(--primary);
  animation: panelFlash 1.1s ease-out 2;
}

/* v7：中转站访问方式小字（后台 stations.need_proxy 控制，名称后显示） */
.proxy-tag {
  display: inline-flex; align-items: center; gap: 3px;
  margin-left: 6px; vertical-align: 1px;
  font-size: 11px; font-weight: 600; line-height: 1.5;
  color: #b45309; background: #fffbeb;
  border: 1px solid #fde9c4; border-radius: 6px;
  padding: 1px 6px; white-space: nowrap;
}
.proxy-tag svg {
  width: 11px; height: 11px; flex: none;
  fill: none; stroke: #d97706; stroke-width: 2.2;
  stroke-linecap: round; stroke-linejoin: round;
}
/* 窄空间（搜索联想 / 计算器条形图）只显示盾牌图标，悬停看文案 */
.proxy-tag.mini { margin-left: 4px; padding: 1px 3px; }
.proxy-tag.mini svg { width: 12px; height: 12px; }

/* 注册奖励小标（后台 stations.reg_bonus 控制，可点击跳转注册地址；样式沿用 invite-tag） */
.invite-tag {
  display: inline-flex; align-items: center; gap: 4px;
  margin-left: 6px; vertical-align: 1px;
  font-size: 11.5px; font-weight: 600; line-height: 1.5;
  color: #047857; background: #ecfdf5;
  border: 1px solid #a7f3d0; border-radius: 6px;
  padding: 1px 7px; white-space: nowrap; text-decoration: none;
}
.invite-tag:hover { background: #d1fae5; border-color: #6ee7b7; }
.invite-tag svg {
  width: 11px; height: 11px; flex: none;
  fill: none; stroke: #059669; stroke-width: 2.2;
  stroke-linecap: round; stroke-linejoin: round;
}
/* 窄空间只显示图标 */
.invite-tag.mini { margin-left: 4px; padding: 1px 3px; }
.invite-tag.mini svg { width: 12px; height: 12px; }

/* 报价表「计费说明」列：按秒/按次徽章 + 说明小字 */
.charge-badge {
  display: inline-block; white-space: nowrap;
  font-size: 11px; font-weight: 600; padding: 1px 8px; border-radius: 20px;
  background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0;
}
.billing-note { margin-top: 4px; font-size: 12px; line-height: 1.5; color: var(--text-2); max-width: 300px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cell-billing { min-width: 180px; }
.rank-table .cell-billing { font-size: 12px; }

/* 报价表：需梯子小字换到中转站名字下方第二行 */
.rank-table .cell-model { flex-wrap: wrap; row-gap: 2px; }
.rank-table .cell-model .proxy-tag { order: 99; width: 100%; margin-left: 0; margin-top: 2px; justify-content: flex-start; padding-left: 8px; }
.rank-table .cell-model .best-badge { margin-left: 4px; }

/* 详情页 hero：15 秒 / 30 秒整条估价 */
.mh-dur {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px;
  margin-top: 8px; font-size: 13px; color: var(--text-2);
}
.mh-dur span { white-space: nowrap; }
.mh-dur b { color: #dc2626; font-size: 15px; }
.mh-dur i { font-style: normal; font-size: 12px; color: #94a3b8; }

/* 首页推荐中转站：滚动自动加载指示器 */
.load-sentinel {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin-top: 18px; padding: 12px 0;
  font-size: 13px; color: var(--text-2);
}
.load-sentinel .spin {
  width: 15px; height: 15px; border-radius: 50%;
  border: 2px solid var(--border); border-top-color: var(--primary);
  animation: zmt-spin 0.8s linear infinite;
}
@keyframes zmt-spin { to { transform: rotate(360deg); } }

/* 站点卡片里的注册奖励行
   卡片宽度有限，这里取消 nowrap 让长文案能折行，否则会把卡片撑出横向滚动 */
.st-tile-invite { margin-top: 8px; font-size: 12px; color: var(--text-2); }
.station-invite { margin: 6px 0 8px; font-size: 12px; }
.st-tile-invite .invite-tag,
.station-invite .invite-tag,
.station-invite-line .invite-tag {
  margin-left: 0; max-width: 100%;
  white-space: normal; align-items: flex-start;
  line-height: 1.55;
}
.st-tile-invite .invite-tag svg,
.station-invite .invite-tag svg,
.station-invite-line .invite-tag svg { margin-top: 3px; }
.station-invite-line { margin: 6px 0 0; font-size: 13px; }

/* v7：模型详情页「同分类模型」切换条 */
.md-switch {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 14px 16px 12px; margin-bottom: 16px;
}
.mdsw-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; flex-wrap: wrap; margin-bottom: 11px;
}
.mdsw-title { font-size: 13.5px; color: var(--text-2); }
.mdsw-title b { font-weight: 800; color: var(--text-1); }
.mdsw-title em { font-style: normal; font-size: 12px; color: var(--text-3); margin-left: 8px; }
.mdsw-all { font-size: 12.5px; font-weight: 600; color: var(--primary); white-space: nowrap; }
.mdsw-all:hover { text-decoration: underline; }

.mdsw-list {
  display: flex; gap: 9px; overflow-x: auto; padding: 2px 2px 6px;
  scrollbar-width: thin; overscroll-behavior-x: contain;
}
.mdsw-list::-webkit-scrollbar { height: 5px; }
.mdsw-list::-webkit-scrollbar-thumb { background: #d8dee9; border-radius: 5px; }

.mdsw-item {
  flex: 0 0 auto; display: flex; align-items: center; gap: 9px;
  min-width: 178px; max-width: 240px;
  padding: 9px 12px; border-radius: 12px;
  border: 1.5px solid var(--border); background: #fff;
  text-align: left; cursor: pointer; transition: all .15s;
}
.mdsw-item:hover { border-color: var(--primary); transform: translateY(-1px); }
.mdsw-item.active {
  border-color: transparent; background: var(--grad); color: #fff;
  box-shadow: 0 6px 16px rgba(79, 70, 229, .28);
}
.mdsw-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.mdsw-name {
  font-size: 13px; font-weight: 700; color: var(--text-1);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mdsw-meta { font-size: 11px; color: var(--text-3); white-space: nowrap; }
.mdsw-item.active .mdsw-name { color: #fff; }
.mdsw-item.active .mdsw-meta { color: rgba(255, 255, 255, .88); }
.mdsw-save {
  flex: none; font-size: 10.5px; font-weight: 700;
  color: #047857; background: #ecfdf5; border-radius: 5px; padding: 1px 5px;
}
.mdsw-item.active .mdsw-save { color: #fff; background: rgba(255, 255, 255, .22); }

/* 切换条用的小号图标 */
.model-logo.xs { width: 26px; height: 26px; border-radius: 8px; font-size: 11px; }

#modelBox.is-loading { opacity: .55; transition: opacity .12s; }

@media (max-width: 820px) {
  .md-switch { padding: 12px 12px 8px; }
  .mdsw-title em { display: none; }
  .mdsw-item { min-width: 152px; padding: 8px 10px; }
  .mdsw-name { font-size: 12.5px; }
  .mdsw-meta { font-size: 10.5px; }
}

/* 报价表下方「同类模型还能切换」提示 */
.md-switch { scroll-margin-top: 86px; }
.vendor-switch-tip {
  margin: 12px 0 0; padding: 9px 12px;
  font-size: 12.5px; color: var(--text-2);
  background: #f7f8fe; border: 1px dashed #dfe3fb; border-radius: 10px;
}
.vendor-switch-tip b { color: var(--primary); }
.vendor-switch-tip a { color: var(--primary); font-weight: 700; margin-left: 4px; white-space: nowrap; }
.vendor-switch-tip a:hover { text-decoration: underline; }

/* v7：模型大全 / 中转站大全 视图切换 */
.view-switch {
  display: flex; gap: 6px; flex: none;
  background: #f1f3fa; border: 1px solid var(--border);
  border-radius: 12px; padding: 4px;
}
.view-btn {
  border: 0; background: transparent; color: var(--text-2);
  font-size: 13.5px; font-weight: 600; line-height: 1;
  padding: 9px 15px; border-radius: 9px; cursor: pointer;
  white-space: nowrap; transition: all .15s;
}
.view-btn:hover { color: var(--primary); }
.view-btn.active {
  background: var(--grad); color: #fff;
  box-shadow: 0 4px 12px rgba(79, 70, 229, .26);
}

/* ---------- 中转站卡片（中转向视图） ---------- */
.station-tiles {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px;
}
.st-tile {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 16px 18px;
  display: flex; flex-direction: column; gap: 13px;
  transition: transform .15s, box-shadow .15s;
}
.st-tile:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }

.st-tile-head { display: flex; align-items: center; gap: 12px; min-width: 0; }
.st-tile-info { min-width: 0; flex: 1; }
.st-tile-name {
  display: flex; align-items: center; flex-wrap: wrap; gap: 6px;
  font-size: 16px; font-weight: 700; line-height: 1.3;
}
.st-tile-meta { font-size: 12px; color: var(--text-3); margin-top: 3px; }
.st-tile-meta b { color: var(--primary); }

.st-models { display: flex; flex-direction: column; gap: 7px; }
.st-models-label { font-size: 11.5px; color: var(--text-3); font-weight: 600; }
.st-model-list { display: flex; flex-wrap: wrap; gap: 6px; }
.st-model {
  display: inline-flex; align-items: center; gap: 5px;
  background: #f7f8fe; border: 1px solid #e9ecf7; border-radius: 8px;
  padding: 4px 9px 4px 5px; text-decoration: none;
  font-size: 12px; color: var(--text-1); transition: all .14s;
}
.st-model:hover { border-color: var(--primary); background: var(--primary-light); }
.st-model-name { font-weight: 600; }
.st-model-price { color: var(--red); font-weight: 700; font-size: 11.5px; }
.st-model-more {
  display: inline-flex; align-items: center;
  background: #fff; border: 1px dashed var(--border-2); border-radius: 8px;
  padding: 4px 10px; font-size: 12px; font-weight: 700; color: var(--primary);
  text-decoration: none;
}
.st-model-more:hover { border-color: var(--primary); background: var(--primary-light); }

.st-tile-ops { display: flex; gap: 8px; margin-top: auto; }
.st-tile-ops .model-btn { flex: 1; text-align: center; }
.st-tile-coupon {
  font-size: 12px; color: var(--text-2);
  background: #fffbeb; border: 1px solid #fde9c4; border-radius: 8px; padding: 7px 10px;
}
.st-tile-coupon b { color: #b45309; }

@media (max-width: 1000px) {
  .station-tiles { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .view-switch { width: 100%; }
  .view-btn { flex: 1; padding: 10px 8px; font-size: 13px; }
  .st-tile { padding: 14px; }
}

/* hidden 属性必须真正隐藏（否则 display:flex/grid 会盖掉 [hidden] 的 display:none） */
[hidden] { display: none !important; }

/* v7：切换条右侧「展开全部」按钮（胶囊 + 箭头翻转） */
.mdsw-expand {
  display: inline-flex; align-items: center; gap: 5px; flex: none;
  border: 1px solid #dfe3fb; background: #f4f6ff; color: var(--primary);
  font-size: 12.5px; font-weight: 700; line-height: 1;
  padding: 8px 14px; border-radius: 999px; cursor: pointer;
  white-space: nowrap; transition: all .16s;
}
.mdsw-expand:hover {
  background: var(--primary-light); border-color: var(--primary);
  box-shadow: 0 3px 10px rgba(79, 70, 229, .16);
}
.mdsw-expand .cv {
  width: 14px; height: 14px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 2.4;
  stroke-linecap: round; stroke-linejoin: round;
  transition: transform .22s;
}
.md-switch.expanded .mdsw-expand { background: var(--primary-light); border-color: var(--primary); }
.md-switch.expanded .mdsw-expand .cv { transform: rotate(180deg); }

/* 展开后的同类模型网格（每行 5 个）
   展开时隐藏上面的横向卡片条，避免同一批模型重复展示两遍 */
.mdsw-grid {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px;
  margin-top: 12px; padding-top: 13px; border-top: 1px dashed var(--border);
}
.md-switch.expanded .mdsw-list { display: none; }
.mdsw-tile {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 10px; border-radius: 11px;
  border: 1.5px solid var(--border); background: #fff;
  text-align: left; cursor: pointer; transition: all .15s;
  min-width: 0;
}
.mdsw-tile:hover { border-color: var(--primary); transform: translateY(-1px); box-shadow: var(--shadow); }
.mdsw-tile.active {
  border-color: transparent; background: var(--grad); color: #fff;
  box-shadow: 0 6px 16px rgba(79, 70, 229, .28);
}
.mdsw-tile-main {
  display: flex; flex-direction: column; gap: 2px;
  min-width: 0; flex: 1; overflow: hidden;
}
.mdsw-tile-name {
  font-size: 12px; font-weight: 700; color: var(--text-1); line-height: 1.35;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mdsw-tile-sub {
  display: flex; align-items: baseline; gap: 3px;
  white-space: nowrap; overflow: hidden; line-height: 1.35;
}
.mdsw-tile-sub b { font-size: 12px; font-weight: 800; color: var(--red); flex: none; }
.mdsw-tile-sub i {
  font-style: normal; font-size: 10px; color: var(--text-3);
  overflow: hidden; text-overflow: ellipsis; min-width: 0;
}
.mdsw-tile.active .mdsw-tile-name { color: #fff; }
.mdsw-tile.active .mdsw-tile-sub b { color: #fff; }
.mdsw-tile.active .mdsw-tile-sub i { color: rgba(255, 255, 255, .8); }
.mdsw-tile-save {
  font-style: normal; flex: none; font-size: 10px; font-weight: 700;
  color: #047857; background: #ecfdf5; border-radius: 4px; padding: 0 4px;
}
.mdsw-tile.active .mdsw-tile-save { color: #fff; background: rgba(255, 255, 255, .22); }

.mdsw-grid-all {
  display: flex; align-items: center; justify-content: center;
  grid-column: 1 / -1; margin-top: 2px;
  font-size: 12.5px; font-weight: 600; color: var(--primary);
  padding: 9px; border-radius: 10px; background: #f7f8fe;
}
.mdsw-grid-all:hover { background: var(--primary-light); }

/* 展开网格：5 列 → 4 → 3 → 2 → 1，随宽度降级 */
@media (max-width: 1400px) { .mdsw-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 1120px) { .mdsw-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 900px)  { .mdsw-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) {
  .mdsw-expand { padding: 7px 12px; font-size: 12px; }
  .mdsw-grid { grid-template-columns: 1fr; gap: 8px; }
  .mdsw-tile { padding: 9px 11px; }
}

/* ---------- 站点关闭弹窗（后台「网站展示开关」关闭时显示） ---------- */
body.off-mode { overflow: hidden; }

.site-off-mask {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: center; padding: 20px;
  background: radial-gradient(120% 120% at 50% 0%, rgba(238, 242, 255, .78), rgba(226, 232, 255, .86));
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  animation: soFade .35s ease both;
}

.site-off-card {
  width: min(92vw, 420px); padding: 34px 30px 26px; text-align: center;
  background: #fff; border: 1px solid rgba(99, 102, 241, .16); border-radius: 24px;
  box-shadow: 0 26px 70px rgba(76, 63, 180, .20), 0 2px 8px rgba(76, 63, 180, .08);
  animation: soUp .5s cubic-bezier(.2, .9, .26, 1.15) both;
}

.site-off-card .so-logo {
  position: relative; width: 76px; height: 76px; margin: 0 auto 16px;
  display: flex; align-items: center; justify-content: center;
}
.site-off-card .so-logo img { width: 62px; height: 62px; position: relative; z-index: 1; }
.site-off-card .so-ring {
  position: absolute; inset: 0; border-radius: 22px;
  background: linear-gradient(135deg, rgba(79, 70, 229, .14), rgba(124, 58, 237, .10));
  animation: soRing 2.6s ease-out infinite;
}

.site-off-card .so-title {
  margin: 0 0 8px; font-size: 25px; font-weight: 800; letter-spacing: -.4px;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}

.site-off-card .so-sub {
  margin: 0 auto; max-width: none; padding: 0 2px; font-size: 13.5px; line-height: 1.75;
  color: var(--text-2); text-wrap: pretty;
}

.site-off-card .so-meta {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 14px;
  padding: 7px 13px; border-radius: 999px; font-size: 12.5px; color: #4338ca;
  background: #eef2ff; border: 1px solid #dfe3fb;
}
.site-off-card .so-meta b { font-weight: 700; }
.site-off-card .so-clock {
  width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}

.site-off-card .so-dots { display: flex; gap: 7px; justify-content: center; margin: 20px 0 22px; }
.site-off-card .so-dots i {
  width: 8px; height: 8px; border-radius: 50%; background: var(--grad);
  animation: soDot 1.3s ease-in-out infinite;
}
.site-off-card .so-dots i:nth-child(2) { animation-delay: .18s; }
.site-off-card .so-dots i:nth-child(3) { animation-delay: .36s; }

.site-off-card .so-btn {
  width: 100%; padding: 12px 0; border: 0; border-radius: 14px; cursor: pointer;
  font-size: 15px; font-weight: 700; color: #fff;
  background: var(--grad); box-shadow: 0 10px 24px rgba(79, 70, 229, .28);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
.site-off-card .so-btn:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(79, 70, 229, .34); }
.site-off-card .so-btn:active { transform: translateY(0); filter: brightness(.96); }

.site-off-card .so-tip { margin: 12px 0 0; font-size: 12px; color: var(--text-3, #9099b3); }

@keyframes soFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes soUp {
  from { opacity: 0; transform: translateY(18px) scale(.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes soRing {
  0% { transform: scale(.92); opacity: .9; }
  70% { transform: scale(1.12); opacity: 0; }
  100% { transform: scale(1.12); opacity: 0; }
}
@keyframes soDot {
  0%, 80%, 100% { transform: translateY(0); opacity: .35; }
  40% { transform: translateY(-5px); opacity: 1; }
}

@media (max-width: 480px) {
  .site-off-card { padding: 28px 22px 22px; }
  .site-off-card .so-title { font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .site-off-mask, .site-off-card, .site-off-card .so-ring, .site-off-card .so-dots i { animation: none; }
}

/* ---------- 社区分页页码 ---------- */
.forum-pager .pager-nums { display: flex; align-items: center; gap: 6px; }
.forum-pager .btn-ghost-sm.is-cur {
  background: var(--primary); border-color: var(--primary); color: #fff; font-weight: 700;
}
.forum-pager .btn-ghost-sm.is-cur:hover { color: #fff; }
@media (max-width: 480px) {
  .forum-pager { flex-wrap: wrap; gap: 8px; }
  .forum-pager .pager-nums { gap: 4px; }
}
