:root {
  --bg: #f5f4ef;
  --surface: #ffffff;
  --surface-2: #f0efe9;
  --ink: #171816;
  --muted: #6a6d66;
  --line: #dedfd9;
  --accent: #cf3f45;
  --accent-soft: #f8e4e5;
  --blue: #2877a8;
  --purple: #745aa8;
  --green: #34805a;
  --amber: #9a6a14;
  --shadow: 0 16px 44px rgba(22, 24, 21, .07);
  --radius: 18px;
  font-family: Inter, "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); line-height: 1.55; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { color: inherit; }
.shell { width: min(1240px, calc(100% - 32px)); margin: 0 auto; }
.topbar { position: sticky; top: 0; z-index: 40; background: rgba(245,244,239,.92); backdrop-filter: blur(16px); border-bottom: 1px solid rgba(222,223,217,.85); }
.nav { min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 800; letter-spacing: -.02em; }
.brand-mark { width: 31px; height: 31px; border-radius: 9px; display: grid; place-items: center; background: var(--ink); color: white; font-weight: 900; font-size: 14px; }
.navlinks { display: flex; gap: 6px; padding: 4px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.68); }
.navlinks a { padding: 7px 12px; border-radius: 9px; color: var(--muted); font-size: 14px; font-weight: 700; }
.navlinks a.active, .navlinks a:hover { background: var(--ink); color: white; }
main { padding: 42px 0 56px; }
.kicker { text-transform: uppercase; letter-spacing: .13em; font-size: 12px; font-weight: 800; color: var(--accent); }
h1 { margin: 8px 0 10px; font-size: clamp(34px, 5vw, 62px); line-height: 1.02; letter-spacing: -.045em; }
.hero-sub { margin: 0; color: var(--muted); max-width: 760px; font-size: 16px; }
.hero-row { display: grid; grid-template-columns: 1.35fr .65fr; gap: 20px; align-items: end; margin-bottom: 26px; }
.hero-meta { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.pill { display: inline-flex; align-items: center; gap: 7px; min-height: 32px; padding: 6px 10px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--muted); font-size: 13px; font-weight: 700; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.dot.wait { background: var(--amber); }
.season-strip { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 4px 0 15px; }
.season-strip::-webkit-scrollbar { display: none; }
.season-btn, .chip { border: 1px solid var(--line); background: var(--surface); border-radius: 11px; padding: 9px 13px; cursor: pointer; font-weight: 750; white-space: nowrap; transition: .16s ease; }
.season-btn:hover, .chip:hover { transform: translateY(-1px); border-color: #bfc1b9; }
.season-btn.active, .chip.active { background: var(--ink); color: white; border-color: var(--ink); }
.season-btn small { opacity: .66; margin-left: 5px; font-weight: 600; }
.info-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 16px; margin-bottom: 18px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.boss-card { min-height: 238px; display: grid; grid-template-columns: 1fr 220px; overflow: hidden; }
.boss-copy { padding: 26px; display: flex; flex-direction: column; justify-content: space-between; }
.eyebrow { font-size: 12px; color: var(--muted); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.boss-name { margin: 5px 0 12px; font-size: 32px; letter-spacing: -.035em; }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 20px; }
.stat { padding: 10px 11px; background: var(--surface-2); border-radius: 12px; }
.stat b { display: block; font-size: 17px; }
.stat span { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.boss-image { background: linear-gradient(145deg, #efeee8, #e4e3dc); border-left: 1px solid var(--line); display: grid; place-items: center; color: #979990; text-align: center; padding: 20px; }
.boss-image strong { color: #777a72; display: block; margin-bottom: 4px; }
.source-card { padding: 23px; }
.source-card h2 { margin: 2px 0 13px; font-size: 21px; letter-spacing: -.02em; }
.source-credit { padding: 14px; border-radius: 13px; background: var(--accent-soft); border: 1px solid #f0c7ca; margin: 12px 0; }
.source-credit b { color: #9f2e34; }
.source-card p { margin: 7px 0; color: var(--muted); font-size: 14px; }
.coverage { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 15px; }
.coverage > div { border: 1px solid var(--line); border-radius: 11px; padding: 10px 12px; }
.coverage b { display: block; }
.coverage span { color: var(--muted); font-size: 12px; }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 20px 0 12px; flex-wrap: wrap; }
.chips { display: flex; gap: 7px; flex-wrap: wrap; }
.search { position: relative; min-width: min(330px, 100%); flex: 0 1 360px; }
.search input { width: 100%; border: 1px solid var(--line); background: var(--surface); border-radius: 12px; padding: 10px 13px 10px 38px; outline: none; }
.search input:focus { border-color: #a7aaa1; box-shadow: 0 0 0 3px rgba(23,24,22,.06); }
.search:before { content: "⌕"; position: absolute; left: 13px; top: 7px; font-size: 20px; color: var(--muted); }
.table-card { overflow: hidden; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: separate; border-spacing: 0; min-width: 930px; }
th { text-align: left; padding: 11px 14px; color: var(--muted); font-size: 12px; letter-spacing: .04em; font-weight: 800; background: #f0efe9; border-bottom: 1px solid var(--line); position: sticky; top: 64px; z-index: 4; }
td { padding: 11px 14px; border-bottom: 1px solid #ecece7; font-size: 14px; vertical-align: middle; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr.data-row:hover { background: #fafaf7; }
.rank { width: 74px; font-variant-numeric: tabular-nums; font-weight: 900; }
.rank.top1 { color: var(--accent); }
.player { font-weight: 800; max-width: 230px; }
.subline { display: block; color: var(--muted); font-size: 11px; font-weight: 600; margin-top: 2px; }
.damage { font-variant-numeric: tabular-nums; font-weight: 800; white-space: nowrap; }
.ratio { font-variant-numeric: tabular-nums; color: var(--muted); }
.server { display: inline-flex; min-width: 42px; justify-content: center; padding: 4px 8px; border-radius: 8px; font-size: 12px; font-weight: 850; }
.server.qq { background: #e7f2fa; color: var(--blue); }
.server.wx { background: #e7f4eb; color: var(--green); }
.server.blank { background: #efefeb; color: #999b93; }
.team-btn { border: 1px solid var(--line); background: var(--surface); padding: 6px 9px; border-radius: 9px; cursor: pointer; font-size: 12px; font-weight: 750; }
.team-btn:hover { border-color: #b6b8b0; }
.blank-row { color: #a5a79f; }
.detail-row td { padding: 0; background: #fafaf7; }
.team-panel { padding: 16px 18px 18px; border-top: 1px dashed var(--line); }
.team-grid { display: grid; grid-template-columns: repeat(5, minmax(130px, 1fr)); gap: 9px; }
.team-slot { min-height: 84px; border-radius: 12px; border: 1px dashed #cfd0c9; display: flex; align-items: center; justify-content: center; color: var(--muted); background: white; font-size: 12px; text-align: center; padding: 10px; }
.notice { padding: 12px 14px; border: 1px solid #ead7a9; background: #fff8e8; color: #6c531f; border-radius: 12px; font-size: 13px; margin: 12px 0; }
.quality { color: var(--amber); font-size: 12px; font-weight: 750; margin-left: 5px; }
.footer { border-top: 1px solid var(--line); padding: 26px 0 40px; color: var(--muted); font-size: 12px; }
.footer-grid { display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: start; }
.footer strong { color: var(--ink); }
.ranker-hero { margin-bottom: 24px; }
.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 11px; margin: 18px 0; }
.metric { padding: 17px; }
.metric b { font-size: 25px; display: block; letter-spacing: -.03em; }
.metric span { color: var(--muted); font-size: 12px; }
.formula { padding: 20px; margin-bottom: 18px; }
.formula h2 { margin: 0 0 8px; font-size: 18px; }
.formula p { margin: 7px 0; color: var(--muted); font-size: 13px; }
.formula code { background: var(--surface-2); border-radius: 7px; padding: 2px 6px; color: var(--ink); }
.rating { font-variant-numeric: tabular-nums; font-weight: 950; font-size: 16px; }
.delta.up { color: var(--green); font-weight: 800; }
.delta.down { color: var(--accent); font-weight: 800; }
.delta.same { color: var(--muted); }
.conf { display: inline-flex; padding: 4px 7px; border-radius: 8px; background: var(--surface-2); color: var(--muted); font-size: 11px; font-weight: 800; }
.podium { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 14px 0 20px; }
.podium-card { padding: 17px; position: relative; overflow: hidden; }
.podium-card .num { position: absolute; right: 13px; top: 7px; font-size: 44px; font-weight: 950; color: #ecece7; }
.podium-card b { display: block; font-size: 18px; max-width: 78%; }
.podium-card strong { display: block; font-size: 26px; margin-top: 8px; }
.podium-card span { color: var(--muted); font-size: 12px; }
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
:focus-visible { outline: 3px solid rgba(40,119,168,.28); outline-offset: 2px; }
@media (max-width: 860px) {
  .hero-row, .info-grid { grid-template-columns: 1fr; }
  .hero-meta { justify-content: flex-start; }
  .boss-card { grid-template-columns: 1fr; }
  .boss-image { min-height: 130px; border-left: 0; border-top: 1px solid var(--line); }
  .metric-grid { grid-template-columns: repeat(2,1fr); }
  .podium { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .shell { width: min(100% - 20px, 1240px); }
  .nav { min-height: 58px; }
  .brand span:last-child { display: none; }
  .navlinks a { padding: 7px 9px; font-size: 12px; }
  main { padding-top: 27px; }
  .stat-row { grid-template-columns: 1fr; }
  .coverage, .metric-grid { grid-template-columns: 1fr 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  th { top: 58px; }
}
