/* zhongzhuantuijian.com — 全部视觉只在这一个文件（规格 §7）。
   唯一外部资源：Google Fonts 的 IBM Plex Mono（数字等宽），中文走系统字体栈，不加载网络中文字体。 */
@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@500;600&display=swap");

:root {
  --blue: #1f4fd1;
  --blue-hover: #163a9e;
  --bg: #f4f5f7;
  --text: #0f1729;
  --text-2: #566074;
  --text-3: #384457;
  --border: #e2e5ea;
  --border-2: #eef0f3;
  --summary-bg: #e8eefc;
  --summary-text: #1a2b55;
  --sponsor-text: #7a4a05;
  --sponsor-bg: #fdf1dc;
  --sponsor-border: #efe2c8;
  --risk-low: #15703a;
  --risk-low-bg: #e5f4ea;
  --risk-mid: #9a4a07;
  --risk-mid-bg: #fdf0e1;
  --risk-high: #b42318;
  --risk-high-bg: #fdecea;
  --risk-unknown: #455064;
  --risk-unknown-bg: #eef0f3;
  --rank-top: #1f4fd1;
  --rank-rest: #8a93a3;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --sans: -apple-system, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}

* { box-sizing: border-box; }
html { background: var(--bg); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.5;
}
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-hover); }
.mono { font-family: var(--mono); }
img { max-width: 100%; }

/* ---------- header ---------- */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--border);
}
.site-header nav {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  min-height: 64px;
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}
.brand { font-size: 19px; font-weight: 900; color: var(--text); flex-shrink: 0; }
.brand:hover { color: var(--blue); }
.site-header .links { display: flex; gap: 22px; flex-wrap: wrap; font-size: 15px; font-weight: 500; }
.site-header .links a { color: var(--text-3); }
.site-header .links a.current { color: var(--blue); font-weight: 700; }
.site-header .cta {
  margin-left: auto;
  height: 38px;
  padding: 0 16px;
  border-radius: 10px;
  background: var(--blue);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
}
.site-header .cta:hover { background: var(--blue-hover); color: #fff; }

main { max-width: 1280px; margin: 0 auto; padding: 0 24px 48px; }

/* ---------- breadcrumb ---------- */
.crumb { font-size: 13px; color: var(--text-2); padding: 16px 0 0; }
.crumb a { color: var(--text-2); }
.crumb a:hover { color: var(--blue); }

/* ---------- hero ---------- */
.hero {
  padding: 36px 0 24px;
  display: flex;
  gap: 40px;
  align-items: flex-end;
  flex-wrap: wrap;
}
.hero .lead { flex: 1 1 420px; display: flex; flex-direction: column; gap: 10px; }
.hero .kicker { font-size: 13px; font-weight: 700; color: var(--blue); }
.hero h1 { margin: 0; font-size: 36px; line-height: 1.25; font-weight: 900; letter-spacing: -0.5px; }
.hero .sub { margin: 0; font-size: 16px; line-height: 1.7; color: var(--text-3); max-width: 680px; }
.hero .method-card {
  width: 300px;
  flex-shrink: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.hero .method-card .title { font-size: 14px; font-weight: 700; }
.hero .method-item { display: flex; gap: 8px; align-items: center; font-size: 13.5px; color: var(--text-3); }
.hero .method-item .num { font-family: var(--mono); font-weight: 600; color: var(--blue); }
.hero .method-card a { font-size: 13.5px; font-weight: 700; margin-top: 4px; }

h1 { font-size: 28px; }
h1.page-title { margin: 20px 0 4px; }

/* ---------- model tabs ---------- */
.model-tabs {
  display: flex;
  gap: 6px;
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
}
.model-tabs a {
  height: 48px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-3);
  border-bottom: 3px solid transparent;
  margin-bottom: -1px;
  white-space: nowrap;
}
.model-tabs a .count { font-family: var(--mono); font-size: 12px; font-weight: 500; color: var(--text-2); }
.model-tabs a.active { color: var(--blue); font-weight: 700; border-bottom-color: var(--blue); }

/* ---------- summary bar ---------- */
.summary-bar {
  margin-top: 18px;
  background: var(--summary-bg);
  color: var(--summary-text);
  border-radius: 12px;
  padding: 13px 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  align-items: center;
  font-size: 14.5px;
}
.summary-bar .model-name { font-weight: 900; font-size: 16px; }
.summary-bar b { font-family: var(--mono); }
.summary-bar .more-link { margin-left: auto; font-weight: 700; }

/* ---------- sponsor block ---------- */
.sponsor {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.sponsor .head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.sponsor .badge {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--sponsor-text);
  background: var(--sponsor-bg);
  padding: 3px 9px;
  border-radius: 6px;
}
.sponsor .note { font-size: 13.5px; color: var(--text-2); }
.sponsor .grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.sponsor .card {
  background: #fff;
  border: 1px solid var(--sponsor-border);
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: var(--text);
}
.sponsor .card .avatar {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--border-2);
  color: var(--text-3);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
}
.sponsor .card .name { font-size: 15px; font-weight: 700; }
.sponsor .card .domain { font-size: 12.5px; color: var(--text-2); }
.sponsor .card .desc { font-size: 13px; color: var(--text-3); margin: 4px 0 0; }
.sponsor .card .tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.sponsor .card .tag {
  font-size: 11.5px;
  color: var(--text-2);
  background: var(--border-2);
  padding: 2px 7px;
  border-radius: 5px;
}

/* ---------- ranking table ---------- */
.ranking {
  margin-top: 18px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}
.ranking .head {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) 250px 110px 90px 110px 110px;
  align-items: center;
  padding: 0 20px;
  height: 42px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-2);
  background: #f8f9fb;
  border-bottom: 1px solid var(--border);
}
.ranking .row {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) 250px 110px 90px 110px 110px;
  align-items: center;
  padding: 0 20px;
  min-height: 60px;
  border-bottom: 1px solid var(--border-2);
  font-size: 14.5px;
}
.ranking .row:last-child { border-bottom: none; }
.ranking .row .meta { display: contents; }
.ranking .rank { font-family: var(--mono); font-size: 18px; font-weight: 600; }
.ranking .station { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 10px 0; }
.ranking .station .avatar {
  width: 32px; height: 32px; border-radius: 8px; background: var(--border-2);
  color: var(--text-3); font-weight: 700; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: 13px;
}
.ranking .station .names { display: flex; flex-direction: column; min-width: 0; }
.ranking .station .name { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ranking .station .domain { font-size: 12.5px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ranking .cost { display: flex; align-items: center; gap: 10px; }
.ranking .cost .val { font-family: var(--mono); font-weight: 600; white-space: nowrap; }
.ranking .cost .bar { width: 84px; height: 6px; border-radius: 3px; background: var(--border-2); overflow: hidden; flex-shrink: 0; }
.ranking .cost .bar span { display: block; height: 6px; background: var(--blue); }
.ranking .channel { font-size: 13.5px; color: var(--text-3); }
.ranking .risk .badge { font-size: 12.5px; font-weight: 700; padding: 3px 9px; border-radius: 6px; }
.ranking .uptime { font-family: var(--mono); font-weight: 600; }
.ranking .actions { display: flex; gap: 12px; font-size: 13.5px; font-weight: 700; }
.ranking .actions .go { color: var(--text-3); }
.ranking .label { display: none; font-size: 11.5px; color: var(--text-2); font-weight: 700; margin-right: 6px; }

/* ---------- excluded note / body copy ---------- */
.note-box { margin-top: 16px; font-size: 14px; color: var(--text-3); line-height: 1.8; }
.section { margin-top: 40px; }
.section h2 { font-size: 20px; font-weight: 900; margin: 0 0 14px; }
.prose { font-size: 15px; line-height: 1.85; color: var(--text-3); }
.prose h3 { font-size: 16px; color: var(--text); margin: 24px 0 8px; }
.prose ul { padding-left: 20px; }
.prose li { margin-bottom: 6px; }

/* ---------- scene cards ---------- */
.scene-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.scene-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--text);
}
.scene-card .title { font-size: 16px; font-weight: 700; }
.scene-card .lab { font-size: 12.5px; color: var(--text-2); }
.scene-card .top { font-size: 15px; font-weight: 700; color: var(--blue); }
.scene-card .score { font-family: var(--mono); font-size: 12.5px; color: var(--text-2); }
.scene-grid.tight { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.scene-grid.tight .scene-card { padding: 14px 16px; gap: 4px; }
.scene-grid.tight .scene-card .title { font-size: 14.5px; }

/* ---------- simple table (models list / scene page) ---------- */
.tablewrap { overflow-x: auto; }
table.plain { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
table.plain th, table.plain td { padding: 12px 16px; text-align: left; font-size: 14.5px; border-bottom: 1px solid var(--border-2); }
table.plain th { font-size: 12.5px; font-weight: 700; color: var(--text-2); background: #f8f9fb; }
table.plain tr:last-child td { border-bottom: none; }
table.plain td.num, table.plain th.num { font-family: var(--mono); }

/* ---------- FAQ ---------- */
.faq details {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 18px;
  margin-bottom: 10px;
}
.faq summary { font-weight: 700; cursor: pointer; font-size: 15px; }
.faq p { margin: 10px 0 0; color: var(--text-3); font-size: 14.5px; line-height: 1.75; }

/* ---------- buttons / misc ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 40px;
  padding: 0 18px;
  border-radius: 10px;
  background: var(--blue);
  color: #fff;
  font-weight: 700;
  font-size: 14.5px;
}
.btn:hover { background: var(--blue-hover); color: #fff; }
.center { text-align: center; margin: 22px 0; }

/* ---------- footer ---------- */
.site-footer {
  background: #fff;
  border-top: 1px solid var(--border);
  padding: 28px 24px;
  margin-top: 48px;
}
.site-footer .inner { max-width: 1280px; margin: 0 auto; display: flex; flex-direction: column; gap: 8px; }
.site-footer p { margin: 0; font-size: 13.5px; color: var(--text-2); line-height: 1.7; }
.site-footer nav { display: flex; gap: 16px; flex-wrap: wrap; font-size: 13.5px; margin-top: 4px; }

/* ---------- mobile: <760px stacked cards, no horizontal scroll ---------- */
@media (max-width: 759px) {
  .site-header nav { padding: 0 16px; gap: 14px; }
  main { padding: 0 16px 40px; }
  .hero { padding: 24px 0 18px; gap: 20px; }
  .hero h1 { font-size: 26px; }
  .hero .method-card { width: 100%; }
  .sponsor .grid { grid-template-columns: 1fr; }
  .scene-grid, .scene-grid.tight { grid-template-columns: 1fr 1fr; }

  .ranking .head { display: none; }
  .ranking .row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-areas: "rank station" "cost cost" "meta meta" "actions actions";
    row-gap: 8px;
    padding: 14px 16px;
    min-height: 0;
  }
  .ranking .rank { grid-area: rank; }
  .ranking .station { grid-area: station; padding: 0; }
  .ranking .cost { grid-area: cost; }
  .ranking .row .meta {
    grid-area: meta;
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    align-items: center;
  }
  .ranking .actions { grid-area: actions; }
  .ranking .label { display: inline; }

  table.plain, table.plain thead, table.plain tbody, table.plain th, table.plain td, table.plain tr { display: block; }
  table.plain thead { display: none; }
  table.plain tr { border-bottom: 1px solid var(--border); padding: 10px 16px; }
  table.plain td { border-bottom: none; padding: 4px 0; }
  table.plain td .label { display: inline-block; min-width: 84px; font-size: 12px; color: var(--text-2); font-weight: 700; }
}
