/* input: 站点全局样式，所有页面共用 | output: 暗色街机风主题样式 | pos: 全站视觉基线（更新规则：改动需同步 index/子页视觉验收） */

:root {
  --bg: #0b0b0f;
  --bg-soft: #131320;
  --card: #171728;
  --line: #2a2a42;
  --text: #eeeef6;
  --muted: #a0a0b8;
  --pink: #ff3d68;
  --amber: #ffc93c;
  --violet: #7b5cff;
  --radius: 14px;
  --maxw: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--amber); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 16px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 11, 15, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 14px; height: 54px; }
.brand {
  font-weight: 800; font-size: 15px; letter-spacing: .02em; color: var(--text);
  white-space: nowrap; text-transform: uppercase;
}
.brand span { color: var(--pink); }
.nav { display: flex; gap: 4px; margin-left: auto; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a {
  color: var(--muted); font-size: 13.5px; font-weight: 600;
  padding: 6px 10px; border-radius: 8px; white-space: nowrap;
}
.nav a:hover { color: var(--text); background: var(--bg-soft); text-decoration: none; }
.nav a.is-active { color: var(--text); background: var(--bg-soft); }

/* ---------- player ---------- */
.player-shell { padding: 14px 0 0; background: linear-gradient(180deg, #1a1030 0%, var(--bg) 100%); }

.player {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .55);
}
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.player__poster {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: .55; filter: saturate(1.1);
}
.player__overlay {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  background: radial-gradient(ellipse at center, rgba(0,0,0,.15) 0%, rgba(0,0,0,.75) 100%);
  border: 0; cursor: pointer; width: 100%; font: inherit; color: inherit;
}
.player__overlay:focus-visible { outline: 3px solid var(--amber); outline-offset: -3px; }
.play-btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--pink); color: #fff;
  font-size: 17px; font-weight: 800; letter-spacing: .03em; text-transform: uppercase;
  padding: 15px 34px; border-radius: 999px;
  box-shadow: 0 10px 32px rgba(255, 61, 104, .45);
  transition: transform .15s ease;
}
.player__overlay:hover .play-btn { transform: scale(1.04); }
.player__note { font-size: 12.5px; color: #d8d8ea; letter-spacing: .02em; }
.player.is-hidden .player__overlay, .player.is-hidden .player__poster { display: none; }

.rotate-hint {
  display: none; margin: 8px 0 0; font-size: 12.5px; color: var(--muted); text-align: center;
}

/* 常驻兜底出口：任何环境下都留一条去原站的路 */
.player__fallback {
  margin: 10px 0 0; font-size: 12.5px; color: #6f6f8a; text-align: center;
}
.player__fallback a { color: #9a9ab8; text-decoration: underline; }

/* 诊断提示：iframe 被环境拦截时覆盖在黑框上，说明原因并给出出口 */
.player__notice {
  position: absolute; inset: 0; z-index: 3;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  background: rgba(11, 11, 15, .92); color: #d5d5e4;
  font-size: 14px; line-height: 1.6; text-align: center; padding: 24px;
}
.player__notice a { color: var(--amber); font-weight: 700; }

/* ---------- headings ---------- */
h1 { font-size: clamp(26px, 5vw, 40px); line-height: 1.15; margin: 18px 0 10px; letter-spacing: -.02em; }
h2 { font-size: clamp(20px, 3vw, 26px); line-height: 1.25; margin: 40px 0 12px; letter-spacing: -.01em; }
h3 { font-size: 17px; margin: 22px 0 6px; color: var(--text); }
p { margin: 0 0 14px; color: #d5d5e4; }
ul, ol { margin: 0 0 16px; padding-left: 22px; color: #d5d5e4; }
li { margin-bottom: 7px; }
strong { color: #fff; }

.lede { font-size: 17px; color: #c9c9dc; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 6px; }
.chip {
  font-size: 12.5px; font-weight: 700; letter-spacing: .02em;
  color: #d6d6ea; background: var(--card); border: 1px solid var(--line);
  padding: 6px 11px; border-radius: 999px;
}
.chip--hot { color: #ffd9e2; border-color: rgba(255,61,104,.45); background: rgba(255,61,104,.12); }

/* ---------- layout blocks ---------- */
.content { max-width: 820px; }

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 20px; margin: 18px 0;
}

.grid { display: grid; gap: 12px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.fighter {
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 13px 15px;
}
.fighter h3 { margin: 0 0 3px; font-size: 15.5px; }
.fighter p { margin: 0; font-size: 13.5px; color: var(--muted); line-height: 1.5; }
.fighter .tag {
  display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .06em;
  text-transform: uppercase; color: var(--violet); margin-bottom: 4px;
}

table { width: 100%; border-collapse: collapse; margin: 12px 0 20px; font-size: 14.5px; }
th, td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-size: 12.5px; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
td code {
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: 5px;
  padding: 1px 6px; font-size: 13px; color: var(--amber); font-family: ui-monospace, Menlo, monospace;
}

.steps { counter-reset: s; list-style: none; padding: 0; }
.steps li { counter-increment: s; position: relative; padding-left: 38px; margin-bottom: 14px; }
.steps li::before {
  content: counter(s); position: absolute; left: 0; top: 1px;
  width: 26px; height: 26px; border-radius: 50%;
  background: rgba(123, 92, 255, .18); border: 1px solid rgba(123, 92, 255, .5);
  color: #c3b6ff; font-size: 13px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}

details.faq {
  border: 1px solid var(--line); border-radius: 10px; padding: 13px 16px;
  margin-bottom: 9px; background: var(--bg-soft);
}
details.faq summary {
  cursor: pointer; font-weight: 700; font-size: 15px; color: #fff; list-style: none;
  display: flex; justify-content: space-between; gap: 10px;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; color: var(--pink); font-weight: 800; }
details.faq[open] summary::after { content: "–"; }
details.faq p { margin: 10px 0 0; font-size: 14.5px; color: #c2c2d6; }

/* ---------- screenshots ---------- */
.shots { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 16px 0 8px; }
.shots figure { margin: 0; }
.shots img { border-radius: 10px; border: 1px solid var(--line); width: 100%; }
.shots figcaption { font-size: 12.5px; color: var(--muted); margin-top: 6px; }

/* ---------- quotes ---------- */
blockquote.quote {
  margin: 0 0 10px; padding: 12px 16px;
  background: var(--card); border-left: 3px solid var(--pink);
  border-radius: 0 10px 10px 0;
}
blockquote.quote p { margin: 0 0 6px; font-size: 14.5px; color: #dcdcec; }
blockquote.quote cite { font-style: normal; font-size: 12.5px; color: var(--muted); }

/* ---------- ad slots ---------- */
.ad-slot {
  margin: 26px 0; min-height: 90px;
  display: flex; align-items: center; justify-content: center;
  border: 1px dashed var(--line); border-radius: 10px;
  color: #4a4a63; font-size: 12px; letter-spacing: .1em; text-transform: uppercase;
}

/* ---------- footer ---------- */
.site-footer {
  margin-top: 56px; border-top: 1px solid var(--line);
  padding: 26px 0 38px; background: var(--bg-soft);
  font-size: 13px; color: var(--muted);
}
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; }
.site-footer a { color: #b9b9d0; }
.disclaimer { margin-top: 14px; font-size: 12px; line-height: 1.6; color: #77778f; max-width: 760px; }

/* ---------- utilities ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--pink); color: #fff; font-weight: 800; font-size: 14px;
  padding: 11px 20px; border-radius: 999px; margin: 4px 6px 4px 0;
}
.btn:hover { text-decoration: none; filter: brightness(1.08); }
.btn--ghost { background: transparent; border: 1px solid var(--line); color: var(--text); }
.breadcrumb { font-size: 12.5px; color: #6f6f8a; margin: 16px 0 0; }
.breadcrumb a { color: #8f8fae; }

@media (max-width: 760px) {
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  h2 { margin-top: 32px; }
  /* 导航 7 项在小屏放不下，右侧渐隐提示「还能滑」 */
  .nav {
    -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 24px), transparent 100%);
    mask-image: linear-gradient(to right, #000 calc(100% - 24px), transparent 100%);
    padding-right: 14px;
  }
}

@media (max-width: 640px) {
  .player { aspect-ratio: 4 / 3; border-radius: 10px; }
  .rotate-hint { display: block; }
  .grid--3, .grid--2 { grid-template-columns: 1fr; }
  .content { max-width: none; }
  body { font-size: 15.5px; }
  .nav a { font-size: 13px; padding: 6px 8px; }
  .brand { font-size: 13px; }
  table { font-size: 13.5px; }
  th, td { padding: 8px; }
}
