:root {
  --ink: #161a2e;
  --ink-2: #3a4060;
  --muted: #5d6378;
  --line: #d8dbe5;
  --page: #f1f2f6;
  --surface: #ffffff;
  --star: #f0a20a;
  --xj: #2f4bff;
  --xj-tint: #e7ebff;
  --xj-deep: #1a2a9e;
  --mt: #d9520a;
  --mt-tint: #fdeee4;
  --mt-deep: #8a3204;
  --lx: #0d8a68;
  --lx-tint: #e0f3ec;
  --lx-deep: #075640;
  --radius-s: 6px;
  --radius-m: 10px;
  --sans: "PingFang SC", "HarmonyOS Sans SC", "MiSans", "Microsoft YaHei UI", "Microsoft YaHei", "Noto Sans SC", "Source Han Sans SC", system-ui, sans-serif;
  --num: "Bahnschrift", "DIN Alternate", "DIN Condensed", "Roboto Condensed", "Arial Narrow", var(--sans);
  --wrap: 1120px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--page); color: var(--ink); font: 16px/1.75 var(--sans); font-feature-settings: "tnum"; }
img, video { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--xj); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.25; margin: 0; font-weight: 700; letter-spacing: 0; }
p { margin: 0; }
.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }

/* 顶栏 */
.top { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.top .wrap { display: flex; align-items: center; gap: 24px; min-height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 17px; white-space: nowrap; }
.brand-mark { display: grid; grid-template-columns: repeat(3, 6px); gap: 3px; align-items: end; height: 22px; }
.brand-mark i { display: block; border-radius: 2px; }
.brand-mark i:nth-child(1) { height: 14px; background: var(--xj); }
.brand-mark i:nth-child(2) { height: 22px; background: var(--mt); }
.brand-mark i:nth-child(3) { height: 18px; background: var(--lx); }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { text-decoration: none; padding: 6px 12px; border-radius: var(--radius-s); color: var(--ink-2); font-size: 15px; white-space: nowrap; }
.nav a:hover { background: var(--page); color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); font-weight: 700; }
@media (max-width: 560px) { .top .wrap { gap: 8px; } .nav a { padding: 6px 8px; } .brand { font-size: 15px; } }

/* 按钮 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 20px; border-radius: var(--radius-m);
  border: 2px solid transparent; font: inherit; font-weight: 700; font-size: 16px;
  text-decoration: none; cursor: pointer; white-space: nowrap;
}
.btn-dark { background: var(--ink); color: #fff; } .btn-dark:hover { background: var(--ink-2); }
.btn-line { background: transparent; border-color: var(--ink); color: var(--ink); } .btn-line:hover { background: var(--surface); }
.btn-light { background: #fff; color: var(--ink); } .btn-light:hover { background: #e6e8f0; }
.btn-xj { background: var(--xj); color: #fff; } .btn-xj:hover { background: var(--xj-deep); }
.btn-mt { background: var(--mt); color: #fff; } .btn-mt:hover { background: var(--mt-deep); }
.btn-lx { background: var(--lx); color: #fff; } .btn-lx:hover { background: var(--lx-deep); }
.btn[disabled] { opacity: .55; cursor: wait; }

/* 竖屏画面 */
.screen { position: relative; aspect-ratio: 9 / 16; border-radius: 14px; overflow: hidden; background: #0d1020; border: 4px solid var(--ink); }
.screen img, .screen video { position: relative; width: 100%; height: 100%; object-fit: cover; }
.screen-fallback { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 20px; text-align: center; padding: 16px; }
.screen.xj { background: linear-gradient(#0b1240, #1d2fb3); }
.screen.mt { background: linear-gradient(#3a1a06, #d9520a); }
.screen.lx { background: linear-gradient(#073a2b, #0d8a68); }

/* 首页 */
.intro { padding: 48px 0 28px; }
.intro h1 { font-size: clamp(32px, 5vw, 54px); font-weight: 800; line-height: 1.12; }
.intro p { margin-top: 12px; font-size: 17px; color: var(--ink-2); max-width: 42em; }

.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: start; }
.game-card { background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--ink); border-radius: 16px; padding: 14px; }
.game-card.xj { border-top-color: var(--xj); }
.game-card.mt { border-top-color: var(--mt); }
.game-card.lx { border-top-color: var(--lx); }
.game-card-body { padding: 14px 4px 4px; }
.game-card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.game-card-head h2 { font-size: 24px; font-weight: 800; }
.game-card.xj h2 { color: var(--xj-deep); } .game-card.mt h2 { color: var(--mt-deep); } .game-card.lx h2 { color: var(--lx-deep); }
.game-tag { margin-top: 4px; color: var(--ink-2); font-size: 15px; }
.price { display: flex; align-items: baseline; gap: 4px; white-space: nowrap; }
.price-num { font-family: var(--num); font-size: 30px; font-weight: 700; line-height: 1; }
.price-num::before { content: "¥"; font-size: .6em; margin-right: 1px; }
.price-unit { color: var(--muted); font-size: 14px; }

.rating { margin: 16px 0 0; padding: 12px 0 0; border-top: 1px solid var(--line); display: grid; gap: 4px; }
.rating div { display: grid; grid-template-columns: 5em 1fr; align-items: center; }
.rating dt { color: var(--muted); font-size: 14px; }
.rating dd { margin: 0; display: flex; align-items: center; gap: 8px; }
.stars { position: relative; display: inline-block; color: #dcdfe8; font-size: 18px; line-height: 1; letter-spacing: 1px; white-space: nowrap; }
.stars-on { position: absolute; inset: 0 auto 0 0; overflow: hidden; color: var(--star); }
.star-num { font-family: var(--num); font-weight: 700; font-size: 15px; color: var(--ink-2); }
.fine { margin-top: 6px; font-size: 12px; color: var(--muted); }
.card-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 16px; }
.game-card .card-actions .btn { flex: 1 1 0; padding: 0 12px; }

@media (max-width: 980px) {
  .cards { grid-template-columns: 1fr; max-width: 640px; }
  .game-card { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 16px; align-items: start; }
  .game-card-body { padding: 0; }
}
@media (max-width: 480px) {
  .game-card { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 12px; padding: 10px; }
  .game-card-head { flex-direction: column; gap: 2px; }
  .game-card-head h2 { font-size: 21px; }
  .price-num { font-size: 26px; }
  .rating div { grid-template-columns: 1fr; }
  .stars { font-size: 15px; }
  .game-card .card-actions { flex-direction: column; align-items: stretch; }
  .screen { border-width: 3px; border-radius: 10px; }
}

.how { margin: 18px 0 64px; color: var(--muted); font-size: 15px; }
.how a { color: var(--ink-2); font-weight: 700; }

/* 开播文档 */
.page-head { padding: 48px 0 8px; }
.page-head h1 { font-size: clamp(30px, 4.4vw, 44px); font-weight: 800; }
.page-head p { margin-top: 10px; color: var(--ink-2); max-width: 36em; }
.doc-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 24px; max-width: 760px; }
.doc-link { display: block; text-decoration: none; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--ink); border-radius: 0 var(--radius-m) var(--radius-m) 0; padding: 12px 14px; }
.doc-link.xj { border-left-color: var(--xj); } .doc-link.mt { border-left-color: var(--mt); } .doc-link.lx { border-left-color: var(--lx); }
.doc-link b { display: block; font-size: 17px; }
.doc-link span { font-size: 13px; color: var(--muted); }
@media (max-width: 640px) { .doc-links { grid-template-columns: 1fr; } }

.doc-head { padding: 40px 0; }
.doc-head.xj { background: var(--xj-tint); } .doc-head.mt { background: var(--mt-tint); } .doc-head.lx { background: var(--lx-tint); }
.doc-head-grid { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 40px; align-items: center; }
.doc-kicker { font-size: 14px; color: var(--muted); margin-bottom: 6px; }
.doc-head h1 { font-size: clamp(34px, 4.6vw, 50px); font-weight: 800; }
.doc-summary { margin-top: 14px; color: var(--ink-2); max-width: 36em; }
.doc-shots { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 860px) { .doc-head-grid { grid-template-columns: 1fr; } .doc-shots { max-width: 420px; } }

.section { padding: 56px 0; }
.doc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; }
.doc-grid h2, .doc-points-title { font-size: 22px; margin-bottom: 12px; }
.doc-grid .note { margin-top: 10px; font-size: 14px; color: var(--muted); }
.doc-points-title { margin-top: 44px; }
.doc-points { margin: 0; padding-left: 1.3em; display: grid; gap: 6px; color: var(--ink-2); max-width: 46em; }
@media (max-width: 860px) { .doc-grid { grid-template-columns: 1fr; } }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-m); background: var(--surface); }
.table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table th, .table td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { font-size: 14px; color: var(--muted); font-weight: 600; background: #fafbfd; }
.table tr:last-child td { border-bottom: 0; }
.table td:first-child { font-weight: 700; white-space: nowrap; }

.prose { max-width: 720px; }
.prose h2 { font-size: 24px; margin: 40px 0 12px; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--ink-2); }
.prose ol, .prose ul { padding-left: 1.3em; display: grid; gap: 8px; }
.prose a { font-weight: 700; }

.faq { max-width: 720px; margin-top: 4px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 14px 0; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--num); font-size: 22px; line-height: 1; color: var(--muted); }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 0 16px; color: var(--ink-2); }

/* 查询卡密 */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 28px; }
.form-grid { display: grid; gap: 20px; max-width: 560px; }
.field label { display: block; font-weight: 700; margin-bottom: 6px; }
.field small { display: block; color: var(--muted); font-size: 14px; margin-top: 6px; line-height: 1.6; }
.input { width: 100%; min-height: 50px; padding: 10px 14px; font: inherit; font-size: 18px; border: 2px solid var(--line); border-radius: var(--radius-m); background: #fff; color: var(--ink); }
.input:focus { outline: none; border-color: var(--ink); }
.input.code { font-family: var(--num); letter-spacing: .06em; text-transform: uppercase; font-size: 22px; }
.msg { padding: 14px 16px; border-radius: var(--radius-m); font-size: 15px; }
.msg.bad { background: #fdeaea; color: #8f1d1d; }
.msg.good { background: #e0f3ec; color: #064d39; }
.msg:empty { display: none; }
.result-list { display: grid; gap: 10px; }
.result-list:empty { display: none; }
.result-head { font-size: 15px; color: var(--ink-2); }
.result-head b { color: var(--ink); font-size: 18px; }
.result { display: grid; grid-template-columns: 10px 1fr auto; gap: 14px; align-items: center; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius-m); background: #fff; }
.result .dot { width: 10px; height: 10px; border-radius: 50%; }
.result .dot.xj { background: var(--xj); } .result .dot.mt { background: var(--mt); } .result .dot.lx { background: var(--lx); }
.result b { font-size: 17px; }
.result small { display: block; color: var(--muted); font-size: 14px; }
.status { font-size: 14px; font-weight: 700; padding: 2px 10px; border-radius: 999px; white-space: nowrap; }
.status.active { background: #e0f3ec; color: #064d39; }
.status.expired { background: #fff2dc; color: #6b3f00; }
.status.none { background: #eef0f4; color: #4a5068; }
.status.void { background: #fdeaea; color: #8f1d1d; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 340px); gap: 40px; align-items: start; padding-bottom: 72px; }
.side h2 { font-size: 18px; margin-bottom: 8px; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .panel { padding: 20px; } }

/* 页脚 */
.foot { border-top: 1px solid var(--line); padding: 28px 0 44px; color: var(--muted); font-size: 14px; }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 8px 32px; justify-content: space-between; }
.wrap.prose { max-width: none; }
.wrap.prose > * { max-width: 720px; }
