/* ========== ModelGaia 样式 ========== */
:root {
  --bg: #0b0d17;
  --bg-2: #111424;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-2: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.1);
  --border-strong: rgba(255, 255, 255, 0.18);
  --text: #e8eaf2;
  --text-2: #a8adc4;
  --text-3: #6f7590;
  --primary: #7c6cff;
  --primary-2: #a78bfa;
  --cyan: #22d3ee;
  --green: #34d399;
  --amber: #fbbf24;
  --red: #f87171;
  --radius: 14px;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* 背景光晕 */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 18% 8%, rgba(124, 108, 255, 0.13), transparent 45%);
  z-index: -1;
  pointer-events: none;
}
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 88% 92%, rgba(34, 211, 238, 0.08), transparent 45%);
  z-index: -1;
  pointer-events: none;
}

a { color: inherit; text-decoration: none; }
button, input, select { font-family: inherit; }

/* ========== 导航 ========== */
.navbar {
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(20px);
  background: rgba(11, 13, 23, 0.82);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1280px; margin: 0 auto; padding: 0 24px;
  height: 64px; display: flex; align-items: center; gap: 32px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; letter-spacing: -0.5px; cursor: pointer; }
.brand-icon {
  width: 30px; height: 30px; border-radius: 9px;
  background: linear-gradient(135deg, var(--primary), var(--cyan));
  display: grid; place-items: center; font-size: 16px;
  box-shadow: 0 0 20px rgba(124, 108, 255, 0.4);
  flex-shrink: 0;
}
.brand-text { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.1; }
.brand-name { display: block; line-height: 1.15; }
.brand small { font-size: 11px; color: var(--text-3); font-weight: 400; letter-spacing: 0; display: block; margin-top: 2px; margin-left: 0.5px; line-height: 1.2; white-space: nowrap; font-family: 'SimHei', 'Microsoft YaHei', 'PingFang SC', 'Hiragino Sans GB', sans-serif; }
.nav-links { display: flex; gap: 4px; flex: 1; }
.nav-links a {
  padding: 8px 14px; border-radius: 8px; font-size: 14px; color: var(--text-2);
  transition: all 0.2s; cursor: pointer;
}
.nav-links a:hover { color: var(--text); background: var(--surface); }
.nav-links a.active { color: var(--text); background: var(--surface-2); }
.nav-right { display: flex; align-items: center; gap: 12px; }
.lang-btn { font-size: 12px; color: var(--text-2); border: 1px solid var(--border); padding: 5px 10px; border-radius: 7px; cursor: pointer; }
.github-btn { font-size: 13px; color: var(--text-2); padding: 6px 10px; cursor: pointer; }
.github-btn:hover { color: var(--text); }

/* 语言切换按钮 */
.lang-switch {
  display: inline-flex; align-items: center; gap: 3px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 9px; padding: 3px; font-size: 12px; font-weight: 700;
}
.lang-link { padding: 4px 9px; border-radius: 6px; color: var(--text-3); cursor: pointer; transition: all .2s; user-select: none; }
.lang-link:hover { color: var(--text); background: var(--surface-2); }
.lang-link.active { color: #fff; background: var(--primary); box-shadow: 0 2px 10px rgba(124,108,255,.35); }
.lang-sep { color: var(--text-3); font-weight: 400; }

/* 手机菜单按钮 */
.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 4px;
  width: 38px; height: 34px; padding: 0 8px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 8px;
  cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; background: var(--text-2); border-radius: 2px; transition: all .25s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ========== 通用 ========== */
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.page { padding: 40px 0 80px; min-height: calc(100vh - 64px); animation: fadeIn 0.4s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.section-title { font-size: 22px; font-weight: 700; margin-bottom: 6px; display: flex; align-items: center; gap: 10px; }
.section-sub { color: var(--text-3); font-size: 13px; margin-bottom: 22px; }
.eyebrow { color: var(--primary-2); font-size: 12px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; }

.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px;
  transition: all 0.25s;
}
.card:hover { border-color: var(--border-strong); background: var(--surface-2); transform: translateY(-2px); }

.badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; padding: 3px 9px; border-radius: 20px;
  background: var(--surface-2); border: 1px solid var(--border); color: var(--text-2);
}
.badge.open { color: var(--green); border-color: rgba(52, 211, 153, 0.3); background: rgba(52, 211, 153, 0.08); }
.badge.closed { color: var(--amber); border-color: rgba(251, 191, 36, 0.3); background: rgba(251, 191, 36, 0.08); }
.badge.hot { color: var(--red); border-color: rgba(248, 113, 113, 0.3); background: rgba(248, 113, 113, 0.08); }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px; border-radius: 9px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text); font-size: 14px; font-weight: 600;
  cursor: pointer; transition: all 0.2s;
}
.btn:hover { border-color: var(--border-strong); background: var(--surface-2); }
.btn-primary { background: linear-gradient(135deg, var(--primary), #6d5ce7); border-color: transparent; color: #fff; }
.btn-primary:hover { box-shadow: 0 6px 24px rgba(124, 108, 255, 0.4); transform: translateY(-1px); }

/* ========== 首页 Hero ========== */
.hero { padding: 70px 0 50px; text-align: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; color: var(--primary-2); padding: 6px 14px; border-radius: 20px;
  background: rgba(124, 108, 255, 0.1); border: 1px solid rgba(124, 108, 255, 0.25);
  margin-bottom: 24px;
}
.hero h1 {
  font-size: clamp(38px, 6vw, 68px); font-weight: 800; line-height: 1.15;
  letter-spacing: -2px; margin-bottom: 20px;
}
.hero h1 .grad {
  background: linear-gradient(135deg, var(--primary-2), var(--cyan));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero p { font-size: 17px; color: var(--text-2); max-width: 640px; margin: 0 auto 32px; }

.search-box {
  max-width: 620px; margin: 0 auto; display: flex; align-items: center;
  background: var(--surface-2); border: 1px solid var(--border-strong);
  border-radius: 14px; padding: 6px 6px 6px 18px; box-shadow: var(--shadow);
  transition: all 0.2s;
}
.search-box:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(124, 108, 255, 0.15); }
.search-box input {
  flex: 1; background: none; border: none; outline: none; color: var(--text);
  font-size: 15px; padding: 10px 0;
}
.search-box input::placeholder { color: var(--text-3); }
.search-box .btn { padding: 10px 22px; }

.hero-stats { display: flex; justify-content: center; gap: 48px; margin-top: 40px; flex-wrap: wrap; }
.hero-stat { text-align: center; padding: 6px 10px; border-radius: 10px; transition: background .2s, transform .2s; }
.hero-stat:hover { background: var(--surface); transform: translateY(-2px); }
.hero-stat .num { font-size: 28px; font-weight: 800; background: linear-gradient(135deg, var(--text), var(--text-2)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-stat .label { font-size: 12px; color: var(--text-3); margin-top: 2px; }
.hero-stat:hover .label { color: var(--primary-2); }

/* 数据地图 */
.map-wrap {
  display: grid; grid-template-columns: 1.35fr 1fr; gap: 20px; margin-top: 20px;
  align-items: start;
}
.world-map {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px; min-height: 0; position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.world-map svg { display: block; width: 100%; height: auto; max-height: 300px; min-height: 0; }
.map-graticule { fill: none; stroke: rgba(255,255,255,.055); stroke-width: .5; stroke-dasharray: 2 3; }
.map-land { fill: rgba(255,255,255,.045); stroke: rgba(255,255,255,.1); stroke-width: .5; }
.map-highlight { fill: rgba(124,108,255,.3); stroke: #7c6cff; stroke-width: .9; }
.map-marker { cursor: pointer; }
.map-halo { opacity: .16; transition: opacity .2s ease, r .2s ease; }
.map-pin { stroke: rgba(255,255,255,.85); stroke-width: .9; }
.map-label, .map-count {
  fill: #f1f1fa; stroke: rgba(8,8,20,.9); stroke-width: 2.6px; paint-order: stroke;
  pointer-events: none; font-family: inherit;
}
.map-label { font-size: 13px; font-weight: 700; }
.map-count { font-size: 10px; fill: #b9b9cf; }
.map-marker:hover .map-halo { opacity: .4; r: 17; }
.map-marker:hover .map-label { fill: var(--primary-2); }
.map-marker:hover .map-pin { filter: drop-shadow(0 0 6px currentColor); }
.country-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.country-item {
  display: flex; align-items: center; gap: 6px; padding: 8px 9px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 9px;
  cursor: pointer; transition: all 0.2s; min-width: 0;
}
.country-item:hover { border-color: var(--primary); background: var(--surface-2); }
.country-item .flag { font-size: 17px; flex-shrink: 0; }
.country-item .name { flex: 1; min-width: 0; font-size: 12px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.country-item .count { font-size: 11px; color: var(--text-3); flex-shrink: 0; }
.country-item .count b { color: var(--primary-2); font-size: 14px; }

/* 模型卡片网格 */
.model-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.model-card { cursor: pointer; display: flex; flex-direction: column; gap: 12px; }
.mc-head { display: flex; align-items: flex-start; gap: 12px; }
.mc-logo {
  width: 42px; height: 42px; border-radius: 11px; flex-shrink: 0;
  display: grid; place-items: center; font-weight: 800; font-size: 15px; color: #fff;
}
.mc-title { flex: 1; min-width: 0; }
.mc-title h3 { font-size: 15px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mc-title .vendor { font-size: 12px; color: var(--text-3); display: flex; align-items: center; gap: 5px; margin-top: 2px; }
.mc-score { text-align: right; }
.mc-score .val { font-size: 20px; font-weight: 800; color: var(--primary-2); line-height: 1; }
.mc-score .lbl { font-size: 10px; color: var(--text-3); }
.mc-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.mc-desc { font-size: 12px; color: var(--text-2); line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mc-foot { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--border); padding-top: 12px; margin-top: auto; }
.mc-price { font-size: 13px; font-weight: 700; }
.mc-price small { color: var(--text-3); font-weight: 400; font-size: 11px; }
.mc-ctx { font-size: 11px; color: var(--text-3); }

/* 新闻列表 */
.news-list { display: flex; flex-direction: column; gap: 10px; }
.news-item {
  display: flex; gap: 16px; padding: 16px 18px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  cursor: pointer; transition: all 0.2s; align-items: flex-start;
}
.news-item:hover { border-color: var(--border-strong); background: var(--surface-2); }
.news-date { font-size: 12px; color: var(--text-3); white-space: nowrap; padding-top: 2px; min-width: 78px; }
.news-body { flex: 1; }
.news-body h4 { font-size: 14px; font-weight: 600; line-height: 1.5; margin-bottom: 6px; }
.news-body .meta { display: flex; gap: 10px; align-items: center; font-size: 11px; color: var(--text-3); }
.cat-tag { font-size: 10px; padding: 2px 8px; border-radius: 5px; background: rgba(124, 108, 255, 0.15); color: var(--primary-2); font-weight: 600; }

/* 新闻卡片可点击 */
.news-clickable:focus-visible { outline: 2px solid var(--primary-2); outline-offset: 2px; }
.news-clickable:hover h4 { color: var(--primary-2); }
.badge-link { cursor: pointer; transition: opacity 0.2s; }
.badge-link:hover { opacity: 0.75; text-decoration: underline; }

/* ========== 文章详情 ========== */
.article-head { margin-bottom: 32px; }
.article-head h1 { font-size: 28px; line-height: 1.4; font-weight: 800; letter-spacing: -0.5px; margin: 16px 0 12px; }
.article-meta { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 16px; font-size: 12px; color: var(--text-3); }
.article-summary { font-size: 15px; color: var(--text-2); line-height: 1.8; padding: 14px 18px; background: var(--surface); border-left: 3px solid var(--primary); border-radius: 0 8px 8px 0; }
.article-body { font-size: 15px; line-height: 1.95; color: var(--text-2); }
.article-body p { margin: 0 0 16px; }
.article-body p:last-child { margin-bottom: 0; }
.article-foot { margin-top: 24px; }
@media (max-width: 768px) { .article-head h1 { font-size: 22px; } }

/* ========== 筛选栏 ========== */
.filter-bar {
  display: flex; gap: 10px; flex-wrap: wrap; align-items: center;
  padding: 16px; background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; margin-bottom: 24px;
}
.filter-bar select, .filter-bar input {
  background: var(--bg-2); border: 1px solid var(--border); color: var(--text);
  padding: 8px 12px; border-radius: 8px; font-size: 13px; outline: none;
}
.filter-bar select:focus, .filter-bar input:focus { border-color: var(--primary); }
.filter-bar .result-count { margin-left: auto; font-size: 13px; color: var(--text-3); }
.filter-bar .result-count b { color: var(--text); }

/* ========== 模型详情 ========== */
.detail-header { display: flex; gap: 20px; align-items: flex-start; margin-bottom: 32px; flex-wrap: wrap; }
.detail-logo { width: 64px; height: 64px; border-radius: 16px; display: grid; place-items: center; font-size: 24px; font-weight: 800; color: #fff; flex-shrink: 0; }
.detail-title h1 { font-size: 32px; font-weight: 800; letter-spacing: -1px; }
.detail-title .sub { color: var(--text-2); font-size: 14px; margin-top: 6px; display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.detail-actions { margin-left: auto; display: flex; gap: 10px; }
.detail-desc { font-size: 14px; color: var(--text-2); line-height: 1.8; margin-bottom: 32px; max-width: 800px; }

.spec-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 32px; }
.spec-box { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 18px; }
.spec-box .k { font-size: 11px; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.8px; margin-bottom: 8px; }
.spec-box .v { font-size: 20px; font-weight: 700; }
.spec-box .v.small { font-size: 15px; }

.detail-section { margin-bottom: 32px; }
.detail-section h2 { font-size: 18px; font-weight: 700; margin-bottom: 16px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }

.bench-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.bench-box { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 16px; text-align: center; }
.bench-box .name { font-size: 11px; color: var(--text-3); margin-bottom: 8px; }
.bench-box .score { font-size: 24px; font-weight: 800; color: var(--cyan); }
.bench-bar { height: 4px; background: var(--surface-2); border-radius: 4px; margin-top: 8px; overflow: hidden; }
.bench-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--primary), var(--cyan)); border-radius: 4px; }

.price-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.price-table th, .price-table td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--border); }
.price-table th { color: var(--text-3); font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.5px; }
.price-table .big { font-size: 20px; font-weight: 700; color: var(--primary-2); }

.timeline { position: relative; padding-left: 28px; }
.timeline::before { content: ''; position: absolute; left: 7px; top: 4px; bottom: 4px; width: 2px; background: var(--border-strong); }
.timeline-item { position: relative; padding-bottom: 22px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before { content: ''; position: absolute; left: -25px; top: 6px; width: 10px; height: 10px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 4px rgba(124, 108, 255, 0.15); }
.timeline-item .ver { font-weight: 700; font-size: 14px; }
.timeline-item .date { font-size: 12px; color: var(--text-3); margin-left: 10px; }
.timeline-item .note { font-size: 13px; color: var(--text-2); margin-top: 4px; }

/* ========== 对比 ========== */
.compare-wrap { overflow-x: auto; }
.compare-table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 700px; }
.compare-table th, .compare-table td { padding: 14px 16px; border: 1px solid var(--border); text-align: center; }
.compare-table th:first-child, .compare-table td:first-child { text-align: left; background: var(--surface); font-weight: 600; color: var(--text-2); width: 160px; }
.compare-table thead th { background: var(--surface-2); font-size: 14px; }
.compare-table tr:hover td { background: rgba(255, 255, 255, 0.02); }
.compare-table .best { color: var(--green); font-weight: 700; }
.compare-select { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 24px; }
.compare-select select { background: var(--bg-2); border: 1px solid var(--border); color: var(--text); padding: 9px 12px; border-radius: 8px; font-size: 13px; min-width: 200px; }

/* ========== 榜单 ========== */
.lb-tabs { display: flex; gap: 8px; margin-bottom: 24px; flex-wrap: wrap; }
.lb-tab { padding: 9px 18px; border-radius: 9px; border: 1px solid var(--border); background: var(--surface); color: var(--text-2); font-size: 13px; font-weight: 600; cursor: pointer; transition: all 0.2s; }
.lb-tab:hover { background: var(--surface-2); color: var(--text); }
.lb-tab.active { background: linear-gradient(135deg, var(--primary), #6d5ce7); border-color: transparent; color: #fff; }
.lb-row {
  display: grid; grid-template-columns: 50px 1fr 120px 120px 100px; gap: 16px; align-items: center;
  padding: 14px 20px; background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; margin-bottom: 8px; cursor: pointer; transition: all 0.2s;
}
.lb-row:hover { border-color: var(--border-strong); background: var(--surface-2); }
.lb-rank { font-size: 20px; font-weight: 800; color: var(--text-3); text-align: center; }
.lb-row:nth-child(1) .lb-rank { color: #fbbf24; }
.lb-row:nth-child(2) .lb-rank { color: #cbd5e1; }
.lb-row:nth-child(3) .lb-rank { color: #d97706; }
.lb-name { font-weight: 700; font-size: 14px; }
.lb-name small { display: block; color: var(--text-3); font-weight: 400; font-size: 11px; }
.lb-val { font-size: 14px; font-weight: 600; }
.lb-val .lbl { font-size: 10px; color: var(--text-3); display: block; }
.lb-bar { height: 6px; background: var(--surface-2); border-radius: 6px; overflow: hidden; }
.lb-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--primary), var(--cyan)); }

/* ========== 页脚 ========== */
.footer { border-top: 1px solid var(--border); padding: 36px 0; margin-top: 60px; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; }
.footer .brand { font-size: 17px; }
.footer .brand small { margin-top: 1px; }
.footer p { color: var(--text-3); font-size: 12px; }
.footer-links { display: flex; gap: 24px; font-size: 13px; color: var(--text-2); }
.footer-links a:hover { color: var(--text); }

/* ========== 响应式 ========== */
@media (max-width: 980px) {
  .nav-inner { gap: 16px; }
  .model-grid { grid-template-columns: repeat(2, 1fr); }
  .map-wrap { grid-template-columns: 1fr; }
  .country-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .spec-grid { grid-template-columns: repeat(2, 1fr); }
  .bench-grid { grid-template-columns: repeat(3, 1fr); }
  .nav-toggle { display: flex; }
  .nav-links {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; gap: 2px; padding: 12px 20px 16px;
    background: #0b0d17; border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow); backdrop-filter: blur(20px);
  }
  .nav-links.open { display: flex; animation: fadeIn .2s ease; }
  .nav-links a { padding: 11px 14px; font-size: 15px; }
}
@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .nav-inner { padding: 0 16px; height: 58px; }
  .nav-links { top: 58px; }
  .brand { font-size: 17px; }
  .brand small { font-size: 11px; margin-top: 1px; margin-left: 0.25px; }
  .model-grid { grid-template-columns: 1fr; }
  .bench-grid { grid-template-columns: repeat(2, 1fr); }
  .lb-row { grid-template-columns: 36px 1fr 80px; }
  .lb-row .lb-hide { display: none; }
  .hero-stats { gap: 24px; }
  .detail-actions { margin-left: 0; }
  .country-list { grid-template-columns: 1fr; }
  .filter-bar { flex-direction: column; align-items: stretch; }
  .filter-bar input, .filter-bar select { width: 100%; min-width: 0 !important; }
  .detail-header { flex-direction: column; align-items: flex-start; }
  .compare-select select { flex: 1 1 45%; min-width: 0; }
  .world-map { min-height: 220px; }
  .map-wrap { gap: 14px; }
  .page { padding: 28px 0 60px; }
}

/* ========== 数据来源标注 ========== */
.source-note {
  margin: 18px 0 4px; padding: 12px 14px; font-size: 12px; line-height: 1.7;
  color: var(--text-3); background: var(--surface);
  border: 1px solid var(--border); border-left: 3px solid var(--cyan);
  border-radius: 8px;
}
.source-note a { color: var(--cyan); text-decoration: none; font-weight: 600; }
.source-note a:hover { text-decoration: underline; }
.source-label { color: var(--text-2); font-weight: 600; }
.source-sep { margin: 0 7px; color: var(--border-strong); }

/* ========== 联盟返佣推广位 ========== */
.affiliate-note {
  margin: -6px 0 14px; font-size: 12px; color: var(--text-3);
}
.affiliate-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px;
}
.affiliate-card {
  display: flex; align-items: center; gap: 12px; padding: 14px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); color: inherit; text-decoration: none;
  transition: border-color .2s, background .2s, transform .2s, box-shadow .2s;
}
.affiliate-card:hover {
  border-color: var(--primary); background: var(--surface-2);
  transform: translateY(-2px); box-shadow: var(--shadow);
}
.affiliate-logo {
  flex: 0 0 auto; width: 40px; height: 40px; border-radius: 10px;
  display: grid; place-items: center; font-size: 13px; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--cyan));
}
.affiliate-meta {
  display: flex; flex-direction: column; min-width: 0; flex: 1;
}
.affiliate-meta b {
  font-size: 14px; color: var(--text); font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.affiliate-meta small {
  font-size: 12px; color: var(--text-3); margin-top: 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.affiliate-go {
  flex: 0 0 auto; font-size: 12px; font-weight: 600; color: var(--primary-2);
}
@media (max-width: 640px) {
  .affiliate-grid { grid-template-columns: 1fr; gap: 10px; }
  .affiliate-card { padding: 12px; }
  .affiliate-logo { width: 36px; height: 36px; }
}

/* ========== 商业化工具页：成本计算器 / 周报 / 岗位 ========== */
.calc-grid { display: grid; grid-template-columns: 1.25fr .85fr; gap: 18px; margin-bottom: 26px; }
.calc-form h3, .calc-lead h3, .subscribe-card h3, .sponsor-cta h3 { font-size: 16px; margin-bottom: 14px; }
.calc-form label { display: flex; flex-direction: column; gap: 6px; font-size: 12px; color: var(--text-2); margin-bottom: 12px; }
.calc-form input, .calc-form select, .calc-lead input,
.subscribe-card input, .subscribe-card select {
  width: 100%; padding: 10px 12px; background: var(--bg-2); color: var(--text);
  border: 1px solid var(--border); border-radius: 8px; font-size: 13px; outline: none;
}
.calc-form input:focus, .calc-form select:focus, .calc-lead input:focus,
.subscribe-card input:focus, .subscribe-card select:focus { border-color: var(--primary); }
.calc-note { font-size: 11px; color: var(--text-3); line-height: 1.6; margin: 4px 0 12px; }
.calc-summary { font-size: 13px; color: var(--green); font-weight: 600; margin-bottom: 14px; }
.calc-lead p, .subscribe-card p, .sponsor-cta p { font-size: 13px; color: var(--text-2); line-height: 1.7; margin-bottom: 14px; }
.calc-lead .btn, .subscribe-card .btn { width: 100%; margin-top: 10px; }
.lead-status { min-height: 20px; font-size: 12px; color: var(--cyan); margin-top: 10px; }
.calc-table th, .calc-table td { padding: 12px 14px; text-align: left; white-space: nowrap; }
.calc-table th { font-size: 12px; color: var(--text-3); font-weight: 600; }
.calc-table td { font-size: 13px; border-top: 1px solid var(--border); }
.calc-rank { color: var(--text-3); }
.calc-model { font-weight: 600; color: var(--text); }
.calc-model:hover { color: var(--primary-2); }
.calc-model small { display: block; color: var(--text-3); font-weight: 400; font-size: 11px; }
.calc-cost { color: var(--green); font-weight: 700; }
.calc-aff { color: var(--primary-2); font-size: 12px; font-weight: 600; }
.calc-aff:hover { text-decoration: underline; }

.subscribe-row { display: grid; grid-template-columns: 1fr 180px 160px; gap: 10px; align-items: end; }
.issue-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.issue-card { padding: 20px; }
.issue-head time { font-size: 11px; color: var(--cyan); font-weight: 600; }
.issue-head h3 { font-size: 15px; margin: 6px 0 10px; line-height: 1.5; }
.issue-card p { font-size: 13px; color: var(--text-2); line-height: 1.7; }
.issue-links { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.issue-links a { font-size: 11px; color: var(--primary-2); border: 1px solid var(--border); padding: 4px 8px; border-radius: 6px; }
.issue-links a:hover { border-color: var(--primary); }
.newsletter-sponsor { border-top: 1px solid var(--border); padding-top: 12px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; font-size: 12px; }
.newsletter-sponsor a { color: var(--cyan); font-weight: 600; }
.newsletter-sponsor small { color: var(--text-3); width: 100%; }
.sponsor-label { font-size: 10px; color: var(--amber); border: 1px solid rgba(251,191,36,.35); padding: 2px 7px; border-radius: 5px; }
.sponsor-cta { margin-top: 24px; padding: 20px; }
.sponsor-cta a { color: var(--cyan); font-weight: 600; }

.job-post { margin-left: auto; font-size: 13px; color: var(--text-2); }
.job-post a { color: var(--primary-2); font-weight: 600; }
.job-card { display: grid; grid-template-columns: 1.5fr 1.1fr 1fr 90px 100px; gap: 14px; align-items: center; padding: 18px; margin-bottom: 10px; }
.job-main h3 { font-size: 15px; }
.job-company { font-size: 12px; color: var(--text-3); margin-top: 4px; }
.job-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.job-demo { color: var(--amber); border-color: rgba(251,191,36,.3); }
.job-salary { font-size: 13px; font-weight: 600; color: var(--green); }
.job-time { font-size: 11px; color: var(--text-3); }
.job-go a { color: var(--primary-2); font-size: 12px; font-weight: 600; }
.job-go a:hover { text-decoration: underline; }
.empty-state { text-align: center; padding: 48px; color: var(--text-3); font-size: 13px; }

/* 关于页 */
.about-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 18px; margin-top: 24px; }
.about-card { padding: 24px; }
.about-card h2 { font-size: 17px; font-weight: 700; margin-bottom: 10px; }
.about-card h2:not(:first-child) { margin-top: 24px; }
.about-card p { font-size: 14px; color: var(--text-2); line-height: 1.9; }
.about-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 14px 0 24px; }
.about-stats > div { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; }
.about-stats b { display: block; font-size: 20px; color: var(--primary-2); line-height: 1.2; }
.about-stats span { font-size: 11px; color: var(--text-3); }
.about-email { display: inline-block; margin: 10px 0; padding: 10px 14px; border-radius: 8px;
  background: rgba(124, 108, 255, 0.12); border: 1px solid rgba(124, 108, 255, 0.35);
  color: var(--cyan); font-weight: 700; word-break: break-all; }
.about-email:hover { border-color: var(--primary); }
.about-note { font-size: 12px !important; color: var(--text-3) !important; }
.about-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }

@media (max-width: 980px) {
  .calc-grid { grid-template-columns: 1fr; }
  .subscribe-row { grid-template-columns: 1fr 1fr; }
  .issue-list { grid-template-columns: 1fr; }
  .job-card { grid-template-columns: 1fr 1fr; }
  .about-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .lang-switch { gap: 0; }
  .lang-link { padding: 3px 5px; font-size: 11px; }
  .lang-sep { font-size: 10px; }
  .subscribe-row { grid-template-columns: 1fr; }
  .job-card { grid-template-columns: 1fr; gap: 8px; }
  .job-post { margin-left: 0; }
  .calc-table th, .calc-table td { padding: 10px 8px; font-size: 12px; }
}
