:root { --bg: #fff; --ink: #1b1c20; --muted: #62656e; --line: #e4e6eb; --card: #f6f7f9; --accent: #4d6bfe; }
@media (prefers-color-scheme: dark) { :root { --bg: #111318; --ink: #eceef2; --muted: #9a9eaa; --line: #272a33; --card: #191c23; --accent: #7d93ff; } }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Roboto, sans-serif; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
.in { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }

.top { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top .in { display: flex; align-items: center; gap: 22px; height: 56px; }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--ink); white-space: nowrap; }
.top nav { display: flex; gap: 18px; flex: 1; overflow-x: auto; white-space: nowrap; }
.top nav a, .lang { color: var(--muted); font-size: 15px; }
.top nav a:hover, .lang:hover { color: var(--ink); text-decoration: none; }

.hero { background: #10131c center 88% / cover no-repeat; color: #fff; position: relative; }
.hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8,10,18,.9), rgba(8,10,18,.62) 45%, rgba(8,10,18,.15)); }
.hero .in { position: relative; padding-top: 88px; padding-bottom: 88px; }
.hero h1 { margin: 0 0 12px; font-size: 44px; line-height: 1.15; }
.hero .lead { max-width: 560px; margin: 0 0 26px; font-size: 18px; opacity: .93; }
.row { display: flex; gap: 12px; flex-wrap: wrap; margin: 0; }
.btn { display: inline-flex; align-items: center; height: 44px; padding: 0 22px; border-radius: 10px; background: var(--accent); color: #fff; font-weight: 600; }
.btn:hover { text-decoration: none; filter: brightness(1.08); }
.btn.ghost { background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.3); }

h2 { margin: 44px 0 16px; font-size: 22px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 20px; }
.card { display: flex; flex-direction: column; overflow: hidden; border-radius: 14px; border: 1px solid var(--line); background: var(--card); color: var(--ink); transition: transform .12s, box-shadow .12s; }
.card:hover { text-decoration: none; transform: translateY(-2px); box-shadow: 0 10px 28px rgba(0,0,0,.14); }
.card .cover { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #10131c; }
.cin { display: flex; gap: 12px; padding: 14px 16px 6px; }
.cin img { border-radius: 9px; flex: none; }
.name { font-weight: 650; }
.sum { color: var(--muted); font-size: 14px; line-height: 1.5; }
.card .meta { padding: 6px 16px 14px; color: var(--muted); font-size: 13px; margin-top: auto; }

.game { padding-top: 32px; }
.ghead { display: flex; gap: 20px; align-items: center; margin-bottom: 24px; }
.ghead img { border-radius: 18px; flex: none; box-shadow: 0 2px 12px rgba(0,0,0,.2); }
.ghead h1 { margin: 0; font-size: 32px; line-height: 1.2; }
.ghead p { margin: 2px 0 0; }
.tagline { color: var(--muted); font-style: italic; }
.shots { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 10px; scroll-snap-type: x proximity; }
.shots figure { flex: none; width: min(620px, 82%); margin: 0; scroll-snap-align: start; }
.shots img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 12px; background: #10131c; }
.shots figcaption { margin-top: 6px; color: var(--muted); font-size: 13px; }
.cols { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; }
@media (max-width: 860px) { .cols { grid-template-columns: 1fr; gap: 0; } .hero h1 { font-size: 34px; } .hero .in { padding-top: 56px; padding-bottom: 56px; } }
.info { margin: 0; font-size: 14px; }
.info div { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.info dt { flex: none; width: 100px; color: var(--muted); }
.info dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.mono { font: 11px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--muted); }
.note { padding: 10px 14px; border-radius: 10px; background: var(--card); color: var(--muted); font-size: 14px; }
.note.warn { background: color-mix(in srgb, #e5a100 16%, var(--bg)); color: var(--ink); }

.doc { max-width: 800px; padding-top: 40px; padding-bottom: 40px; }
.md h1 { font-size: 32px; line-height: 1.25; margin: 0 0 20px; }
.md h2 { margin: 44px 0 12px; font-size: 22px; }
.md h3 { margin: 28px 0 8px; font-size: 17px; }
.md p { margin: 12px 0; }
.md ul, .md ol { padding-left: 1.5em; }
.md li { margin: 5px 0; }
.md code { padding: 1px 6px; border-radius: 5px; background: var(--card); font: 0.9em ui-monospace, SFMono-Regular, Menlo, monospace; }
.md pre { overflow-x: auto; padding: 14px 16px; border-radius: 10px; background: var(--card); border: 1px solid var(--line); }
.md pre code { padding: 0; background: none; font-size: 13.5px; line-height: 1.6; }
.md table { display: block; overflow-x: auto; border-collapse: collapse; font-size: 14.5px; margin: 14px 0; }
.md th, .md td { border: 1px solid var(--line); padding: 7px 12px; text-align: left; vertical-align: top; }
.md th { background: var(--card); white-space: nowrap; }
.md blockquote { margin: 14px 0; padding: 2px 16px; border-left: 3px solid var(--line); color: var(--muted); }
.md hr { border: 0; border-top: 1px solid var(--line); margin: 32px 0; }

.foot { margin-top: 72px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.foot .in { padding-top: 22px; padding-bottom: 32px; }

.shots video { display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: 12px; background: #000; }
.btn.small { height: 36px; padding: 0 16px; font-size: 14px; }
.row .more { align-self: center; font-size: 14px; }
.board { margin: 8px 0 16px; }
.msg { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--ink); }
.msg:hover { text-decoration: none; }
.msg img { border-radius: 50%; flex: none; }
.msg .who { color: var(--muted); font-size: 13px; }
.msg .title { font-weight: 600; }
.msg .text { color: var(--muted); font-size: 14px; overflow-wrap: anywhere; }
.ghead .btn.play { margin-left: auto; background: #1f9d55; flex: none; }
@media (max-width: 640px) { .ghead { flex-wrap: wrap; } .ghead .btn.play { margin-left: 0; } }
