:root {
  --bg: #0f1218; --panel: #171b23; --panel-2: #1e2430; --border: #2a3140;
  --text: #e6e9ef; --muted: #8b93a5; --accent: #e8a33d; --up: #3fb27f; --down: #e5534b;
  --band: rgba(232, 163, 61, 0.18); --ok: #1f3d2c; --warn: #43341a; --demo: #4a1f24;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text);
  font: 14px/1.55 -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif; }
a { color: inherit; }
.site-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px 24px; border-bottom: 1px solid var(--border); background: var(--panel); }
.brand { font-size: 18px; font-weight: 700; text-decoration: none; color: var(--accent); }
.data-date, .muted { color: var(--muted); }
.header-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; color: var(--muted); }
.header-controls select { background: var(--panel-2); color: var(--text); border: 1px solid var(--border);
  border-radius: 6px; padding: 4px 8px; font: inherit; margin-left: 4px; }
.en-name { display: block; color: var(--muted); font-size: 12px; font-weight: 400; }
.name-cell { text-decoration: none; }
.name-text { display: block; }
.legend i.l-history { background: #c9d1e0; }
.legend i.l-median { background: #e8a33d; }
.legend i.l-band { background: rgba(232,163,61,.35); height: 10px; }
.lang-links a { color: var(--muted); }
.root-page main { max-width: 560px; margin: 80px auto; }
.root-page li { margin: 10px 0; font-size: 16px; }
main { max-width: 1180px; margin: 0 auto; padding: 20px 24px 40px; }
#banners { max-width: 1180px; margin: 16px auto 0; padding: 0 24px; display: grid; gap: 8px; }
.banner { padding: 10px 14px; border-radius: 8px; border: 1px solid var(--border); }
.banner.demo { background: var(--demo); border-color: #7a2e36; font-weight: 600; }
.banner.hero { padding: 0; overflow: hidden; background: var(--panel); }
.banner.hero img { display: block; width: 100%; height: auto; max-height: 220px; object-fit: cover; }
.banner.ok { background: var(--ok); }
.banner.warn { background: var(--warn); }
.controls { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.controls input, .controls select { background: var(--panel-2); color: var(--text); border: 1px solid var(--border);
  border-radius: 6px; padding: 8px 10px; font: inherit; }
.controls input { flex: 1 1 260px; }
table { width: 100%; border-collapse: collapse; background: var(--panel); border: 1px solid var(--border);
  border-radius: 8px; overflow: hidden; }
th, td { padding: 10px 12px; text-align: right; border-bottom: 1px solid var(--border); white-space: nowrap; }
th { color: var(--muted); font-weight: 500; background: var(--panel-2); }
th:first-child, td:first-child, th:nth-child(2), td:nth-child(2) { text-align: left; }
tbody tr { cursor: pointer; }
tbody tr:hover { background: var(--panel-2); }
td.name { white-space: normal; }
.name-cell { display: flex; align-items: center; gap: 10px; }
.thumb { flex: none; object-fit: contain; background: radial-gradient(circle at 50% 45%, #3a4252, #222833 70%); border: 1px solid var(--border); border-bottom-width: 3px;
  border-radius: 6px; }
.thumb.small { width: 64px; height: 48px; }
.thumb.large { width: 160px; height: 120px; }
.badges { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 3px; }
.badge { font-size: 11px; line-height: 1; padding: 3px 6px; border-radius: 4px; background: var(--panel-2);
  border: 1px solid var(--border); color: var(--text); }
.badge.wear { color: #c9d1e0; }
.badge.stattrak { color: #cf6a32; border-color: #cf6a32; }
.badge.souvenir { color: #ffd700; border-color: #b39700; }
.badge.star { color: #e4ae39; border-color: #e4ae39; }
.thumb.noimg { display: inline-flex; align-items: center; justify-content: center; color: var(--muted); font-size: 11px; }
.range { display: block; color: var(--muted); font-size: 12px; }
.up { color: var(--up); } .down { color: var(--down); } .flat { color: var(--muted); }
.count { color: var(--muted); margin: 10px 2px 0; }
.back { display: inline-block; margin-bottom: 12px; color: var(--muted); text-decoration: none; }
.item-head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.item-head h1 { font-size: 22px; margin: 0; }
.item-head .badges { margin: 6px 0 4px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-bottom: 16px; }
.card { background: var(--panel); border: 1px solid var(--border); border-radius: 8px; padding: 14px; }
.card .label { color: var(--muted); font-size: 12px; }
.card .value { font-size: 22px; font-weight: 700; margin-top: 2px; }
.chart-box { background: var(--panel); border: 1px solid var(--border); border-radius: 8px; padding: 12px; margin-bottom: 16px; }
.chart-box svg { width: 100%; height: auto; display: block; }
.range-toggle { display: flex; gap: 6px; justify-content: flex-end; margin-bottom: 6px; }
.range-toggle button { background: var(--panel-2); color: var(--muted); border: 1px solid var(--border); border-radius: 6px;
  padding: 4px 10px; font: inherit; cursor: pointer; }
.range-toggle button[aria-pressed="true"] { color: var(--text); border-color: var(--accent); }
.legend { display: flex; gap: 16px; color: var(--muted); font-size: 12px; margin: 6px 4px 0; }
.legend i { display: inline-block; width: 14px; height: 3px; vertical-align: middle; margin-right: 4px; }
.evidence h2 { font-size: 16px; margin: 20px 0 8px; }
.evidence td, .evidence th { text-align: right; }
.evidence td:first-child, .evidence th:first-child { text-align: left; }
.evidence tbody tr { cursor: default; }
.note { color: var(--muted); font-size: 12px; margin-top: 6px; }
.site-footer { max-width: 1180px; margin: 0 auto; padding: 16px 24px 32px; color: var(--muted); font-size: 12px;
  border-top: 1px solid var(--border); }
@media (max-width: 760px) {
  .hide-sm { display: none; }
  th, td { padding: 8px; }
  main, #banners, .site-footer { padding-left: 12px; padding-right: 12px; }
}
