:root {
  --bg: #0b0f17;
  --panel: #131a26;
  --panel2: #18212f;
  --line: #233044;
  --text: #e6edf6;
  --muted: #8a9ab0;
  --accent: #5ee1c4;
  --accent2: #7aa8ff;
  --good: #5ee18f;
  --mixed: #f0c05a;
  --bad: #ff6b6b;
  --radius: 12px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 15px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
img[hidden] { display: none !important; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.good { color: var(--good); } .mixed { color: var(--mixed); } .bad { color: var(--bad); }

/* 顶栏 */
header.top { position: sticky; top: 0; z-index: 10; background: rgba(11,15,23,.85); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
header.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 16px; }
.logo { font-weight: 800; font-size: 20px; letter-spacing: .3px; white-space: nowrap; }
.logo b { color: var(--accent); }
.mark { color: var(--accent); margin-right: 6px; }
nav { display: flex; gap: 20px; overflow-x: auto; }
nav a { color: var(--muted); font-size: 14px; white-space: nowrap; }
nav a:hover { color: var(--text); }
nav a.lang { color: var(--accent); border: 1px solid var(--line); border-radius: 99px; padding: 0 10px; }

section { margin: 40px 0; }
.hero > *, .game-head > *, .two > * { min-width: 0; }
.sec-head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
.sec-head h2 { margin: 0; font-size: 22px; }
.sec-head p { margin: 0; font-size: 13px; }

/* 首屏 */
.hero { display: grid; grid-template-columns: 1.15fr 1fr; gap: 28px; align-items: center; margin-top: 28px;
  background: linear-gradient(135deg, #142235, #0f1724 60%); border: 1px solid var(--line); border-radius: 18px; padding: 22px; }
.hero-img img { border-radius: var(--radius); width: 100%; box-shadow: 0 20px 50px rgba(0,0,0,.45); }
.kicker { color: var(--accent); font-size: 13px; font-weight: 600; letter-spacing: .5px; margin: 0 0 6px; }
.hero h1 { font-size: 34px; line-height: 1.2; margin: 0; }
.en { color: var(--muted); margin: 2px 0 0; font-size: 14px; }
.lede { font-size: 17px; margin: 14px 0 18px; }

.stats { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; color: var(--muted); }
.stats.big { font-size: 14px; color: var(--text); gap: 10px 20px; align-items: center; }

.score { display: inline-grid; place-items: center; min-width: 38px; height: 26px; padding: 0 6px; border-radius: 8px; font-weight: 800; font-size: 14px; color: #0b0f17; }
.score.hot { background: var(--accent); } .score.warm { background: var(--mixed); } .score.cool { background: #8a9ab0; }

/* 卡片 */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .15s, border-color .15s; }
.card:hover { transform: translateY(-3px); border-color: var(--accent2); }
.thumb { position: relative; aspect-ratio: 460 / 215; background: var(--panel2); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb .score { position: absolute; left: 10px; top: 10px; box-shadow: 0 4px 12px rgba(0,0,0,.4); }
.ai-chip { position: absolute; right: 10px; top: 10px; background: rgba(11,15,23,.8); color: var(--accent); border: 1px solid var(--accent); font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 99px; }
.card .body { padding: 12px 14px 14px; }
.card h3 { margin: 0; font-size: 16px; line-height: 1.35; }
.card .en { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card .stats { margin: 8px 0; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-size: 11px; color: var(--muted); background: var(--panel2); border: 1px solid var(--line); padding: 1px 8px; border-radius: 99px; }

/* AI 列表 */
.ai-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 12px; }
.ai-item { display: flex; gap: 12px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; }
.ai-item:hover { border-color: var(--accent); }
.ai-item img { width: 128px; height: 60px; object-fit: cover; border-radius: 8px; flex: none; }
.ai-item h3 { margin: 0 0 2px; font-size: 15px; }
.ai-item p { margin: 0; font-size: 13px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* 两栏榜单 */
.two { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 28px; }
.two section { margin: 0 0 40px; }
.rows { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.row { display: grid; grid-template-columns: 26px 92px 1fr auto auto; gap: 12px; align-items: center; padding: 9px 12px; border-bottom: 1px solid var(--line); font-size: 14px; }
.row:last-child { border-bottom: 0; }
.row:hover { background: var(--panel2); }
.row img { width: 92px; height: 43px; object-fit: cover; border-radius: 6px; }
.row .rank { color: var(--muted); font-weight: 700; text-align: center; }
.row .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.row > span:not(.name):not(.rank) { font-size: 12px; white-space: nowrap; }

/* 游戏页 */
.crumb { color: var(--muted); font-size: 13px; margin-top: 22px; }
.crumb a:hover { color: var(--text); }
.game-head { display: grid; grid-template-columns: 460px 1fr; gap: 28px; margin-top: 12px; }
.game-head .cover { border-radius: var(--radius); width: 100%; }
.game-head h1 { margin: 0; font-size: 30px; line-height: 1.25; }
.desc { margin: 12px 0 14px; }
.btn { display: inline-block; margin-top: 16px; background: var(--accent); color: #0b0f17; font-weight: 700; padding: 9px 16px; border-radius: 10px; }
.btn:hover { filter: brightness(1.1); }
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 1px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin: 0; }
.facts div { background: var(--panel); padding: 12px 14px; box-shadow: 0 0 0 1px var(--line); }
.facts dt { color: var(--muted); font-size: 12px; }
.facts dd { margin: 2px 0 0; font-size: 16px; font-weight: 600; }
.facts dd .muted { font-size: 12px; font-weight: 400; }

.chart { width: 100%; height: auto; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; }
.chart .up { fill: var(--good); } .chart .down { fill: var(--bad); } .chart .axis { stroke: var(--line); }
.chart g:hover rect { opacity: .7; }
.chart-legend { display: flex; gap: 18px; font-size: 12px; margin-top: 8px; flex-wrap: wrap; }
.chart-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; vertical-align: -1px; }
.chart-legend i.up { background: var(--good); } .chart-legend i.down { background: var(--bad); }

.ai { background: linear-gradient(180deg, #121c2b, var(--panel)); border: 1px solid var(--line); border-radius: 18px; padding: 22px 24px; }
.ai h3 { font-size: 16px; margin: 26px 0 10px; color: var(--accent2); }
.one-line { font-size: 20px; font-weight: 700; margin: 0 0 10px; line-height: 1.5; }
.ai-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.ai-grid > div { background: rgba(255,255,255,.02); border: 1px solid var(--line); border-radius: 10px; padding: 4px 14px 10px; }
.ai-grid h3 { margin-top: 12px; }
.ai-grid p { margin: 0; font-size: 14px; }
.points { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.points li { background: rgba(255,255,255,.02); border-left: 3px solid var(--good); border-radius: 6px; padding: 8px 14px; }
.bad-list li { border-left-color: var(--bad); }
.points li > p { margin: 0; font-weight: 600; }
blockquote { margin: 8px 0 2px; padding: 8px 12px; background: var(--bg); border-radius: 8px; font-size: 13px; color: #c3cfdd; }
blockquote p { margin: 0; }
blockquote cite { display: block; margin-top: 4px; font-style: normal; font-size: 11px; color: var(--muted); }
.hyps { padding-left: 0; list-style: none; display: grid; gap: 8px; margin: 0; }
.hyps li { font-size: 14px; }
.conf { display: inline-block; font-size: 11px; padding: 0 7px; border-radius: 99px; margin-right: 8px; border: 1px solid; }
.conf.medium { color: var(--mixed); } .conf.low { color: var(--muted); }
.note { color: var(--muted); font-size: 12px; margin-top: 20px; }

footer { border-top: 1px solid var(--line); margin-top: 60px; padding: 24px 0 40px; color: var(--muted); font-size: 12px; }
footer p { margin: 4px 0; }

@media (max-width: 900px) {
  .hero, .game-head, .two { grid-template-columns: minmax(0,1fr); }
  .ai-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 26px; }
}
@media (max-width: 560px) {
  nav { gap: 14px; }
  nav a:nth-child(n+3):not(.lang) { display: none; }
  .row { grid-template-columns: 22px 72px 1fr auto; }
  .row img { width: 72px; height: 34px; }
  .row > span:last-child { display: none; }
  .ai-list { grid-template-columns: 1fr; }
}
