/* 夜间街机风：暖色光晕 + 点阵背景。按钮/链接/强调色只用琥珀橙和珊瑚色，不用蓝紫。 */
@view-transition { navigation: auto; }
:root {
  --bg: #12100c; --bg2: #1c1914; --card: #211d17; --card2: #2a251d; --line: #3a3329; --line2: #4d4436;
  --text: #f6f1e7; --muted: #d2c8b6; --dim: #b5aa96;
  --accent: #ffb020; --accent2: #ff7a3d; --on-accent: #1a1206; --glow: rgba(255, 158, 40, .35);
  --ok: #74d68f; --bad: #ff8f80; --radius: 16px; --ease: cubic-bezier(.2, .8, .2, 1);
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --display: "Bricolage Grotesque", var(--font);
  --dot: rgba(255, 220, 170, .07);
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root { --bg: #fbf6ec; --bg2: #f3ebdc; --card: #fffdf8; --card2: #f7efe2; --line: #e6d9c3; --line2: #d6c4a6; --text: #1c1812; --muted: #4a4235; --dim: #5e5545;
    --accent: #b45309; --accent2: #c2410c; --on-accent: #fff; --glow: rgba(217, 119, 6, .22); --ok: #15803d; --bad: #b42318; --dot: rgba(120, 80, 20, .08); color-scheme: light; }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; background: var(--bg); color: var(--text); font: 17px/1.6 var(--font); overflow-x: hidden; }
/* 背景：点阵 + 两团慢慢漂移的暖色光（只动 transform，开销很小） */
body::before { content: ""; position: fixed; inset: 0; z-index: -2; background-image: radial-gradient(var(--dot) 1px, transparent 1.2px); background-size: 22px 22px; mask-image: linear-gradient(to bottom, #000 0%, transparent 85%); }
body::after { content: ""; position: fixed; z-index: -1; inset: -20vmax; pointer-events: none;
  background: radial-gradient(40vmax 30vmax at 18% 12%, var(--glow), transparent 65%), radial-gradient(35vmax 28vmax at 88% 30%, rgba(255, 90, 60, .16), transparent 65%);
  animation: drift 26s ease-in-out infinite alternate; will-change: transform; }
@keyframes drift { to { transform: translate3d(4vmax, 3vmax, 0) scale(1.06); } }
a { color: var(--accent); text-underline-offset: 3px; transition: color .2s; }
a:hover { color: var(--accent2); }
img { max-width: 100%; display: block; }
.ic { width: 1.15em; height: 1.15em; flex: none; vertical-align: -0.18em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 8px; }
main { max-width: 1240px; margin: 0 auto; padding: 0 20px 56px; }
h1, h2 { font-family: var(--display); letter-spacing: -0.015em; }
h1 { font-size: clamp(32px, 5.4vw, 60px); line-height: 1.05; margin: 0 0 14px; font-weight: 800; }
h2 { font-size: 23px; margin: 0 0 14px; display: flex; align-items: center; gap: 10px; }
.grad { background: linear-gradient(100deg, var(--accent) 10%, var(--accent2) 90%); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* 顶栏 */
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 16px; padding: 10px 20px; background: color-mix(in srgb, var(--bg) 78%, transparent); backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3); border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent); }
.brand { font-family: var(--display); font-weight: 800; font-size: 21px; color: var(--text); text-decoration: none; display: flex; align-items: center; gap: 9px; margin-right: auto; }
.logo { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(135deg, var(--accent), var(--accent2)); color: var(--on-accent); box-shadow: 0 4px 18px var(--glow); transition: transform .3s var(--ease); }
.brand:hover .logo { transform: rotate(-8deg) scale(1.06); }
.logo .ic { width: 15px; height: 15px; margin-left: 2px; }
.nav { display: flex; gap: 4px; font-size: 16px; }
.nav a { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); text-decoration: none; padding: 7px 12px; border-radius: 10px; transition: background .2s, color .2s; white-space: nowrap; }
.nav a:hover, .nav a[aria-current] { color: var(--text); background: var(--card2); }
.nav .lang { border: 1px solid var(--line); }

/* 首页头部 */
.hero { padding: 48px 0 10px; }
.hero.narrow { max-width: 760px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); padding: 4px 12px; border-radius: 999px; margin-bottom: 16px; }
.lead { color: var(--muted); font-size: 19px; max-width: 760px; margin: 0 0 22px; }
.stats { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 24px; padding: 0; list-style: none; }
.stats li { display: flex; align-items: baseline; gap: 6px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 8px 14px; color: var(--muted); font-size: 15px; }
.stats b { font-family: var(--display); font-size: 22px; color: var(--text); }
.tools { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.searchbar { position: relative; flex: 1 1 420px; max-width: 640px; }
.searchbar .ic { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--dim); width: 20px; height: 20px; pointer-events: none; }
.searchbar input { width: 100%; font: inherit; font-size: 18px; padding: 14px 84px 14px 48px; border-radius: 14px; border: 2px solid var(--line); background: var(--card); color: var(--text); transition: border-color .2s, box-shadow .2s; }
.searchbar input::-webkit-search-cancel-button { display: none; }
.searchbar input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 18%, transparent); }
.searchbar kbd { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); font: 600 14px var(--font); color: var(--dim); border: 1px solid var(--line2); border-radius: 6px; padding: 0 7px; }
.clear { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); display: none; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 10px; background: var(--card2); color: var(--muted); cursor: pointer; }
.searchbar.has .clear { display: grid; }
.searchbar.has kbd { display: none; }
.sort { font: inherit; font-size: 16px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); color: var(--text); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chip { font: inherit; font-size: 15px; padding: 7px 15px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--muted); cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .15s; }
.chip:hover { color: var(--text); border-color: var(--line2); }
.chip:active { transform: scale(.95); }
.chip.on { background: var(--accent); color: var(--on-accent); border-color: var(--accent); font-weight: 600; }

/* 精选 */
.featured { display: grid; grid-template-columns: 1.6fr 1fr; gap: 16px; margin-top: 30px; }
.featured .side { display: grid; gap: 16px; }
.feat { position: relative; display: block; border-radius: 20px; overflow: hidden; min-height: 210px; color: #fff; text-decoration: none; border: 1px solid var(--line); isolation: isolate; }
.feat.big { min-height: 440px; }
.feat img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .8s var(--ease); }
.feat::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(10, 8, 5, .92) 8%, rgba(10, 8, 5, .25) 55%, transparent); }
.feat:hover img { transform: scale(1.05); }
.feat .fin { position: absolute; left: 0; right: 0; bottom: 0; padding: 20px 22px; display: grid; gap: 6px; }
.feat strong { font-family: var(--display); font-size: 24px; line-height: 1.15; }
.feat.big strong { font-size: 36px; }
.feat p { margin: 0; color: rgba(255, 245, 230, .86); font-size: 16px; max-width: 560px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.feat .go { justify-self: start; margin-top: 6px; }

/* 卡片网格 */
.shelf { margin-top: 38px; }
.count { font: 600 15px var(--font); color: var(--on-accent); background: var(--accent); border-radius: 999px; padding: 1px 10px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(210px, 250px); gap: 14px; overflow-x: auto; padding: 2px 2px 10px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.row > * { scroll-snap-align: start; }
.card { position: relative; display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; color: var(--text); text-decoration: none; transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--ty, 0px)); transition: transform .35s var(--ease), border-color .25s, box-shadow .35s var(--ease); }
.card.tilting { transition: transform .08s linear, border-color .25s, box-shadow .35s var(--ease); }
.card:hover { --ty: -6px; border-color: color-mix(in srgb, var(--accent) 70%, transparent); box-shadow: 0 16px 40px -14px var(--glow); color: var(--text); }
.card:active { --ty: -1px; }
.card[hidden] { display: none; }
.io .reveal:not(.in) { opacity: 0; }
.reveal.in { opacity: 1; animation: rise .7s var(--ease) backwards; animation-delay: calc(var(--d, 0) * 70ms); }
@keyframes rise { from { opacity: 0; transform: translateY(28px) scale(.97); } }
.thumb { position: relative; display: block; aspect-ratio: 16/9; overflow: hidden; background: linear-gradient(110deg, var(--card2) 30%, color-mix(in srgb, var(--card2) 60%, var(--line2)) 50%, var(--card2) 70%) 0 0/250% 100%; animation: shimmer 1.6s linear infinite; }
.thumb.done { animation: none; background: var(--card2); }
@keyframes shimmer { to { background-position: -150% 0; } }
.thumb img { width: 100%; height: 100%; object-fit: cover; transition: opacity .45s, transform .6s var(--ease); }
.js .thumb img { opacity: 0; }
.js .thumb img.ok { opacity: 1; }
.hp:focus { left: 16px; top: 10px; width: auto; height: auto; opacity: 1; z-index: 99; background: var(--accent); color: var(--on-accent); padding: 8px 14px; border-radius: 10px; }
.card:hover .thumb img { transform: scale(1.06); }
.ph { display: grid; place-items: center; height: 100%; padding: 14px; font: 800 21px var(--display); text-align: center; color: var(--accent); background: radial-gradient(circle at 30% 20%, var(--glow), transparent 60%), var(--card2); }
.badge { position: absolute; left: 10px; top: 10px; display: inline-flex; white-space: nowrap; width: max-content; align-items: center; gap: 5px; font-size: 14px; font-weight: 700; padding: 3px 10px; border-radius: 999px; backdrop-filter: blur(6px); }
.badge .ic { width: 13px; height: 13px; }
.badge.in { background: var(--accent); color: var(--on-accent); }
.badge.out { background: rgba(12, 10, 8, .72); color: #fff; }
.hover-play { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; transition: opacity .25s; background: rgba(0, 0, 0, .25); }
.hover-play span { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: var(--accent); color: var(--on-accent); transform: scale(.7); transition: transform .35s var(--ease); box-shadow: 0 8px 26px rgba(0, 0, 0, .4); }
.card:hover .hover-play { opacity: 1; }
.card:hover .hover-play span { transform: scale(1); }
.meta { display: flex; flex-direction: column; padding: 12px 14px 14px; gap: 3px; flex: 1; }
.meta strong { font-size: 17px; line-height: 1.3; }
.meta .by { color: var(--muted); font-size: 15px; }
.meta .sub { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 6px; color: var(--dim); font-size: 14px; }
.meta .sub .ic { width: 14px; height: 14px; }
.meta .sub span { display: inline-flex; align-items: center; gap: 4px; }
.empty { display: none; text-align: center; padding: 40px 16px; color: var(--muted); border: 1px dashed var(--line2); border-radius: var(--radius); }
.empty.show { display: block; }
.cta { position: relative; overflow: hidden; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; background: linear-gradient(120deg, var(--card), var(--card2)); border: 1px solid var(--line); border-radius: 20px; padding: 24px; }
.cta h2 { margin: 0 0 4px; }
.cta p { margin: 0; color: var(--muted); max-width: 640px; }

/* 按钮 */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-size: 16px; font-weight: 600; padding: 10px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); color: var(--text); cursor: pointer; text-decoration: none; transition: border-color .2s, background .2s, transform .15s, color .2s; -webkit-tap-highlight-color: transparent; }
.btn:hover { border-color: var(--accent); color: var(--text); }
.btn:active { transform: scale(.96); }
.btn.on { border-color: var(--accent); color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, var(--card)); }
.btn.primary { background: linear-gradient(135deg, var(--accent), var(--accent2)); color: var(--on-accent); border-color: transparent; box-shadow: 0 6px 22px -6px var(--glow); }
.btn.primary:hover { filter: brightness(1.06); color: var(--on-accent); }
.btn.ghost { background: transparent; }
.btn.small { font-size: 15px; padding: 7px 12px; }
.btn:disabled { opacity: .55; cursor: default; }
.btn .n { font-variant-numeric: tabular-nums; color: var(--muted); font-weight: 600; }
.pop { animation: pop .45s var(--ease); }
@keyframes pop { 30% { transform: scale(1.18); } 60% { transform: scale(.94); } }

/* 游戏页 */
.crumbs { display: flex; gap: 8px; align-items: center; padding-top: 22px; font-size: 15px; color: var(--dim); }
.crumbs a { color: var(--muted); text-decoration: none; }
.game .gtop { padding: 10px 0 16px; display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px; }
.game h1 { font-size: clamp(30px, 4.4vw, 48px); margin: 0 0 6px; }
.byline { color: var(--muted); margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.avatar { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--accent2)); color: var(--on-accent); font-weight: 800; font-size: 14px; }
.player { position: relative; aspect-ratio: 16/9; width: 100%; background: #000; border-radius: 20px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 30px 80px -30px var(--glow), 0 0 0 1px rgba(255, 255, 255, .03) inset; }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; opacity: 0; transition: opacity .5s; }
.player iframe.ready { opacity: 1; }
.player:fullscreen { border-radius: 0; border: 0; }
.spin { position: absolute; inset: 0; display: grid; place-items: center; gap: 12px; align-content: center; color: #f3e6cf; font-size: 15px; pointer-events: none; }
.spin i { width: 44px; height: 44px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .15); border-top-color: var(--accent); animation: rot .8s linear infinite; }
@keyframes rot { to { transform: rotate(1turn); } }
.cover { position: absolute; inset: 0; display: grid; place-items: center; width: 100%; padding: 0; border: 0; cursor: pointer; background: #0d0b08; text-decoration: none; overflow: hidden; }
.cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease), filter .4s; }
.cover:hover img { transform: scale(1.03); filter: brightness(.85); }
.cover::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at center, rgba(0, 0, 0, .15), rgba(0, 0, 0, .55)); }
.playbtn { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 10px; font-size: 21px; font-weight: 800; padding: 16px 30px; border-radius: 999px; background: linear-gradient(135deg, var(--accent), var(--accent2)); color: #1a1206; box-shadow: 0 10px 40px rgba(0, 0, 0, .45), 0 0 0 0 var(--glow); animation: pulse 2.4s ease-out infinite; transition: transform .25s var(--ease); }
.cover:hover .playbtn { transform: scale(1.05); }
@keyframes pulse { 0% { box-shadow: 0 10px 40px rgba(0, 0, 0, .45), 0 0 0 0 rgba(255, 170, 40, .55); } 70%, 100% { box-shadow: 0 10px 40px rgba(0, 0, 0, .45), 0 0 0 22px rgba(255, 170, 40, 0); } }
.out-note { position: relative; z-index: 1; margin-top: 10px; color: #f3e6cf; font-size: 15px; }
.cover .stack { position: relative; z-index: 1; display: grid; justify-items: center; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 6px; }
.cols { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 20px; margin-top: 16px; align-items: start; }
.box { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-bottom: 18px; }
.box h2 { font-size: 20px; }
.desc { font-size: 18px; margin: 0 0 12px; }
.check { display: flex; gap: 8px; align-items: center; color: var(--ok); margin: 0; font-size: 16px; }
.prompt { white-space: pre-wrap; word-break: break-word; font: 15px/1.65 ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--bg2); border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 10px; padding: 14px 16px; margin: 0 0 10px; color: var(--text); }
.src { margin: 0; font-size: 15px; display: flex; align-items: center; gap: 6px; }
.copy { float: right; margin: -4px 0 6px 8px; }
.facts dl { display: grid; grid-template-columns: auto 1fr; gap: 10px 16px; margin: 0 0 14px; }
.facts dt { color: var(--dim); display: flex; align-items: center; gap: 6px; }
.facts dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.tag { display: inline-block; font-size: 14px; padding: 2px 10px; border: 1px solid var(--line2); border-radius: 999px; text-decoration: none; margin: 0 4px 4px 0; color: var(--muted); }
.tag:hover { color: var(--accent); border-color: var(--accent); }
.links { font-size: 15px; margin: 8px 0 0; display: grid; gap: 6px; }
.links a { display: inline-flex; align-items: center; gap: 6px; }
.own { font-size: 15px; margin: 14px 0 0; padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted); }
.pill { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; padding: 1px 10px; border-radius: 999px; border: 1px solid currentColor; }
.pill.ok { color: var(--ok); }

/* 视频作品 */
.vids { grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
.vcard { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .35s var(--ease), border-color .25s, box-shadow .35s var(--ease); }
.vcard:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--accent) 70%, transparent); box-shadow: 0 16px 40px -14px var(--glow); }
.vcard .thumb { aspect-ratio: 16/10; }
.vcard:hover .thumb img { transform: scale(1.05); }
.vplay { position: absolute; inset: 0; margin: auto; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: rgba(12, 10, 8, .6); color: #fff; border: 2px solid rgba(255, 255, 255, .8); backdrop-filter: blur(4px); transition: background .25s, transform .35s var(--ease); }
.vcard:hover .vplay { background: var(--accent); color: var(--on-accent); border-color: transparent; transform: scale(1.08); }
.vbody { padding: 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.vbody h2 { font-size: 20px; margin: 0; }
.vbody p { margin: 0; }
.vbody .byline { font-size: 15px; }
.vbody .btn { align-self: flex-start; margin-top: auto; }
details summary { cursor: pointer; color: var(--accent); font-weight: 600; }
details[open] summary { margin-bottom: 8px; }

/* 表单 */
.form { display: grid; gap: 16px; max-width: 760px; background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 24px; }
.form label { display: grid; gap: 6px; font-weight: 600; }
.form input, .form textarea, .form select { font: inherit; font-weight: 400; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg2); color: var(--text); width: 100%; transition: border-color .2s, box-shadow .2s; }
.form input:focus, .form textarea:focus, .form select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent); }
.form .radio { display: flex; align-items: center; gap: 8px; font-weight: 500; cursor: pointer; }
.form .radio input { width: 18px; height: 18px; accent-color: var(--accent); }
.form fieldset { border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; display: flex; flex-wrap: wrap; gap: 8px 24px; }
.form legend { font-weight: 600; padding: 0 6px; }
.form [hidden] { display: none; }
.codebox { background: var(--bg2); border: 1px dashed var(--accent); border-radius: 12px; padding: 16px; display: grid; gap: 10px; justify-items: start; }
.codebox p { margin: 0; }
.hint { color: var(--muted); font-size: 15px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.msg { margin: 0; font-weight: 600; min-height: 1.6em; }
.msg.ok, .ok { color: var(--ok); }
.msg.bad, .bad { color: var(--bad); }

/* 提示条和弹窗 */
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 50; display: flex; align-items: center; gap: 8px; transform: translate(-50%, 140%); background: var(--text); color: var(--bg); font-weight: 600; padding: 12px 18px; border-radius: 14px; box-shadow: 0 14px 40px rgba(0, 0, 0, .35); transition: transform .4s var(--ease); max-width: calc(100vw - 32px); }
.toast.show { transform: translate(-50%, 0); }
dialog { border: 1px solid var(--line); border-radius: 20px; background: var(--card); color: var(--text); padding: 24px; width: min(460px, calc(100vw - 32px)); box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
dialog[open] { animation: rise .35s var(--ease); }
dialog::backdrop { background: rgba(8, 6, 4, .6); backdrop-filter: blur(3px); }
dialog h2 { margin: 0 0 12px; }
dialog .chips { margin: 0 0 12px; }
dialog textarea { width: 100%; font: inherit; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg2); color: var(--text); }
dialog .row-btns { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; }

.prose { max-width: 780px; padding-top: 36px; }
.prose h2 { margin-top: 30px; }
.foot { border-top: 1px solid var(--line); padding: 26px 20px 34px; text-align: center; color: var(--muted); font-size: 15px; }
.foot p { margin: 4px 0; }
.foot a { color: var(--muted); }

/* 后台 */
.admin { max-width: 980px; }
.admin .sub header { margin-bottom: 8px; }
.admin .sub dl { display: grid; grid-template-columns: 110px 1fr; gap: 4px 12px; margin: 0 0 10px; }
.admin .sub dt { color: var(--muted); }
.admin .sub dd { margin: 0; word-break: break-word; }
.admin .pre { white-space: pre-wrap; }
.admin .review { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: end; }
.admin .review label { display: grid; gap: 4px; font-size: 15px; }
.admin .review input, .admin .review textarea { font: inherit; padding: 6px 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg2); color: var(--text); }
.admin .sub.approved { border-left: 4px solid var(--ok); }
.admin .sub.rejected { border-left: 4px solid var(--bad); }

/* 卡片缩略图到游戏页封面的过渡 */
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .28s; }

/* 平板 */
@media (max-width: 960px) {
  .featured { grid-template-columns: 1fr; }
  .featured .side { grid-template-columns: 1fr 1fr; }
  .feat.big { min-height: 340px; }
  .cols { grid-template-columns: 1fr; }
}
/* 手机 */
@media (max-width: 640px) {
  body { font-size: 16px; }
  main { padding: 0 14px 44px; }
  .top { padding: 8px 14px; gap: 8px; flex-wrap: wrap; }
  .brand { font-size: 19px; }
  .nav { width: 100%; order: 2; overflow-x: auto; scrollbar-width: none; margin: 0 -4px; }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { padding: 6px 10px; font-size: 15px; }
  .lead { font-size: 17px; }
  .hero { padding-top: 22px; }
  .eyebrow { font-size: 14px; margin-bottom: 12px; }
  .stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 16px; }
  .stats li { flex-direction: column; align-items: flex-start; gap: 0; padding: 8px 10px; font-size: 14px; line-height: 1.3; }
  .stats b { font-size: 21px; }
  .tools { display: grid; grid-template-columns: minmax(0, 1fr) 132px; gap: 8px; }
  .cta .tools { grid-template-columns: 1fr; }
  .searchbar { flex-basis: auto; }
  .searchbar input { font-size: 16px; padding: 12px 40px 12px 42px; }
  .searchbar .ic { left: 13px; }
  .searchbar kbd { display: none; }
  .sort { width: 100%; font-size: 14px; padding: 12px 8px; }
  .chips.scroll { flex-wrap: nowrap; overflow-x: auto; margin-right: -14px; padding-right: 14px; scrollbar-width: none; }
  .chips.scroll::-webkit-scrollbar { display: none; }
  .chip { flex: none; }
  .featured .side { grid-template-columns: 1fr; }
  .feat.big { min-height: 280px; }
  .feat.big strong { font-size: 28px; }
  .feat { min-height: 180px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .vids { grid-template-columns: 1fr; }
  .meta { padding: 10px 11px 12px; }
  .meta strong { font-size: 15px; }
  .meta .by { font-size: 14px; }
  .meta .sub { display: none; }
  .badge { font-size: 13px; padding: 2px 8px; top: 8px; left: 8px; }
  .hover-play { display: none; }
  .player { border-radius: 14px; aspect-ratio: 4/3; }
  .playbtn { font-size: 18px; padding: 13px 22px; }
  .actions { display: grid; grid-template-columns: repeat(4, 1fr); }
  .actions .btn { padding: 10px 4px; font-size: 14px; flex-direction: column; gap: 4px; }
  .actions #fs { order: 5; grid-column: span 2; flex-direction: row; font-size: 15px; }
  .actions .wide { order: 6; grid-column: span 2; flex-direction: row; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .game[data-embed="0"] .actions .wide { grid-column: 1 / -1; }
  .form { padding: 16px; }
  .cta { padding: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  @view-transition { navigation: none; }
}

/* ===== 第三轮：看得见的背景图、图标和动效 ===== */
.hero-art { position: relative; isolation: isolate; padding-bottom: 26px; }
.hero-bg { position: absolute; z-index: -1; left: 50%; width: 100vw; transform: translateX(-50%); top: -70px; bottom: -140px; overflow: hidden; pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent); mask-image: linear-gradient(to bottom, #000 55%, transparent); }
.hero-bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 40%; opacity: .78; animation: kenburns 32s ease-in-out infinite alternate; transform-origin: 70% 45%; }
.hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--bg) 0%, color-mix(in srgb, var(--bg) 82%, transparent) 38%, color-mix(in srgb, var(--bg) 20%, transparent) 75%, transparent), linear-gradient(to top, var(--bg), transparent 45%); }
@keyframes kenburns { from { transform: scale(1.04) translate3d(0, 0, 0); } to { transform: scale(1.16) translate3d(-2.5%, 1.5%, 0); } }
.particles { position: absolute; inset: 0; z-index: 1; }
.px { position: absolute; bottom: -10px; width: var(--s); height: var(--s); border-radius: 2px; background: var(--accent); box-shadow: 0 0 12px 2px var(--glow); opacity: 0; animation: floatup var(--d) linear infinite; animation-delay: var(--delay); }
.px:nth-child(3n) { background: var(--accent2); border-radius: 50%; }
@keyframes floatup { 0% { transform: translate3d(0, 0, 0) rotate(0); opacity: 0; } 12% { opacity: .9; } 80% { opacity: .6; } 100% { transform: translate3d(var(--x), -78vh, 0) rotate(200deg); opacity: 0; } }
.hero-art h1, .hero-art .lead, .hero-art .eyebrow, .hero-art .stats, .hero-art .tools, .hero-art .chips { animation: rise .8s var(--ease) backwards; }
.hero-art h1 { animation-delay: .08s; } .hero-art .lead { animation-delay: .16s; } .hero-art .stats { animation-delay: .24s; } .hero-art .tools { animation-delay: .32s; } .hero-art .chips { animation-delay: .4s; }
.hero-art .lead { color: var(--text); text-shadow: 0 2px 18px var(--bg); }
.grad { background-image: linear-gradient(100deg, var(--accent) 0%, var(--accent2) 30%, #ffd27a 50%, var(--accent2) 70%, var(--accent) 100%); background-size: 220% auto; animation: shine-text 5s linear infinite; }
@keyframes shine-text { to { background-position: -220% center; } }
.eyebrow .ic { animation: twinkle 2.2s ease-in-out infinite; }
@keyframes twinkle { 50% { transform: scale(1.35) rotate(20deg); opacity: .7; } }
.logo { animation: bob 3.2s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-2px) rotate(-4deg); } }
.stats li { align-items: center; gap: 8px; backdrop-filter: blur(6px); background: color-mix(in srgb, var(--card) 80%, transparent); }
.stats li > .ic { width: 20px; height: 20px; color: var(--accent); }
.chip { display: inline-flex; align-items: center; gap: 6px; }
.chip .ic { width: 16px; height: 16px; }
.chip:hover .ic { transform: rotate(-12deg) scale(1.15); transition: transform .25s var(--ease); }
.tag { display: inline-flex; align-items: center; gap: 5px; }
.tag .ic { width: 14px; height: 14px; }
.nav a .ic { width: 18px; height: 18px; color: var(--accent); }
h2 > .ic { width: 24px; height: 24px; color: var(--accent); }
/* 卡片：鼠标位置的光泽 + 一道扫光 */
.shine { position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0; transition: opacity .3s; background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255, 220, 160, .28), transparent 50%); }
.card:hover .shine { opacity: 1; }
.thumb::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(105deg, transparent 35%, rgba(255, 240, 210, .28) 50%, transparent 65%); transform: translateX(-120%); }
.card:hover .thumb::after { transform: translateX(120%); transition: transform .9s var(--ease); }
/* 精选大卡：一圈流动的光边 */
.feat { transition: transform .45s var(--ease), box-shadow .45s var(--ease); }
.feat:hover { transform: translateY(-4px); box-shadow: 0 24px 60px -20px var(--glow); }
.feat::before { content: ""; position: absolute; inset: -2px; z-index: -3; border-radius: inherit; background: conic-gradient(from var(--ang, 0deg), transparent 0 70%, var(--accent) 80%, var(--accent2) 88%, transparent 96%); animation: spin-border 4s linear infinite; opacity: .9; }
@property --ang { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
@keyframes spin-border { to { --ang: 360deg; } }
.feat img { inset: 2px; width: calc(100% - 4px); height: calc(100% - 4px); border-radius: 18px; }
/* 游戏页：封面模糊成环境光 */
.stage { position: relative; isolation: isolate; }
.ambient { position: absolute; inset: 6% 4%; z-index: -1; filter: blur(70px) saturate(1.6); opacity: .65; transform: scale(1.1); animation: breathe 6s ease-in-out infinite alternate; pointer-events: none; }
.ambient img { width: 100%; height: 100%; object-fit: cover; }
@keyframes breathe { to { opacity: .4; transform: scale(1.18); } }
.game .gtop, .crumbs { animation: rise .7s var(--ease) backwards; }
.btn .ic { transition: transform .25s var(--ease); }
.btn:hover .ic { transform: scale(1.18); }
#like.on .ic { color: var(--accent2); }
#fav.on .ic { color: var(--accent); }
/* 视频页卡片标题图标 */
.vbody .btn .ic { width: 16px; height: 16px; }
@media (max-width: 640px) {
  .hero-bg { top: -110px; bottom: -60px; }
  .hero-bg img { object-position: 78% 40%; opacity: .6; }
  .hero-bg::after { background: linear-gradient(to bottom, color-mix(in srgb, var(--bg) 35%, transparent), color-mix(in srgb, var(--bg) 75%, transparent) 55%, var(--bg)); }
  .stats li > .ic { display: none; }
  .ambient { filter: blur(40px) saturate(1.5); }
}
@media (prefers-reduced-motion: reduce) { .io .reveal:not(.in) { opacity: 1; } .px { display: none; } }

/* ===== 第四轮：真实头像、类型和语言标签 ===== */
.avatar { position: relative; flex: none; overflow: hidden; display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--accent2)); color: var(--on-accent); font-weight: 800; font-size: 14px; }
.avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.avatar.sm { width: 22px; height: 22px; font-size: 12px; }
.avatar.lg { width: 48px; height: 48px; font-size: 20px; box-shadow: 0 0 0 2px var(--accent), 0 6px 20px var(--glow); }
.meta .by { display: flex; align-items: center; gap: 7px; }
.kinds { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.kind { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; line-height: 1.4; padding: 1px 8px; border-radius: 999px; border: 1px solid var(--line2); color: var(--muted); background: color-mix(in srgb, var(--card2) 70%, transparent); }
.kind .ic { width: 13px; height: 13px; color: var(--accent); }
.kind.lang { border-style: dashed; }
.kinds.big { margin: 12px 0 0; gap: 8px; }
.kinds.big .kind { font-size: 15px; padding: 3px 12px; }
.kinds.big .kind .ic { width: 15px; height: 15px; }
.kind.mode.in { background: var(--accent); color: var(--on-accent); border-color: var(--accent); font-weight: 700; }
.kind.mode.in .ic { color: var(--on-accent); }
.game .byline { gap: 12px; font-size: 18px; }
.game .byline .handle { color: var(--dim); font-size: 16px; }
.facts .who { display: flex; align-items: center; gap: 8px; }
.vbody .byline { align-items: center; }
@media (max-width: 640px) {
  .tools { grid-template-columns: minmax(0, 1fr) 1fr 1fr; }
  .tools .searchbar { grid-column: 1 / -1; }
  .meta .kinds .kind:nth-child(2) { display: none; }
  .kind { font-size: 13px; }
}

/* ===== 第五轮：X 原帖卡片和站内评论 ===== */
.xpost .xstats { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 0 0 12px; color: var(--muted); }
.xpost .xstats span { display: inline-flex; align-items: center; gap: 6px; }
.xpost .xstats .ic { color: var(--accent); }
.xembed { margin: 0 0 14px; min-height: 120px; }
.xembed .hint { margin: 0 0 8px; }
.xembed iframe { display: block; width: 100%; max-width: 550px; border: 0; border-radius: 14px; background: transparent; color-scheme: normal; }
.comments h2 .count { margin-left: 4px; }
.clist { list-style: none; margin: 14px 0; padding: 0; display: grid; gap: 14px; }
.clist li { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.clist li:last-child { border-bottom: 0; padding-bottom: 0; }
.cmeta { margin: 0 0 4px; color: var(--dim); font-size: 15px; }
.cmeta strong { color: var(--text); }
.ctext { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.cfirst { color: var(--muted); margin: 12px 0; }
.cform { display: grid; gap: 10px; margin-top: 14px; }
.cform input:not(.hp), .cform textarea { font: inherit; padding: 11px 13px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg2); color: var(--text); width: 100%; transition: border-color .2s, box-shadow .2s; }
.cform input:focus, .cform textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent); }
.cform .btn { justify-self: start; }

/* ===== 第七轮：AI8Games 站标（8 横过来是 ∞） ===== */
.wm { display: inline-flex; align-items: center; font-family: var(--display); font-weight: 800; font-size: 23px; letter-spacing: -0.01em; color: var(--text); }
.inf { width: 1.75em; height: .9em; margin: 0 .06em 0 .1em; overflow: visible; animation: eight-to-inf 1.3s var(--ease) .15s both; transform-origin: 50% 50%; }
.inf-base { fill: none; stroke: url(#infg); stroke-width: 3.6; stroke-linecap: round; }
.inf-flow { fill: none; stroke: #fff6e0; stroke-width: 2; stroke-linecap: round; stroke-dasharray: 12 88; opacity: .9; animation: inf-flow 2.6s linear infinite; filter: drop-shadow(0 0 3px rgba(255, 200, 120, .9)); }
@keyframes eight-to-inf { 0% { transform: rotate(90deg) scale(.7); opacity: 0; } 35% { transform: rotate(90deg) scale(.9); opacity: 1; } 75% { transform: rotate(-10deg) scale(1.06); } 100% { transform: rotate(0) scale(1); } }
@keyframes inf-flow { to { stroke-dashoffset: -100; } }
.brand:hover .inf { animation: inf-flip .9s var(--ease); }
@keyframes inf-flip { 50% { transform: rotate(90deg) scale(.9); } }
@media (max-width: 640px) { .wm { font-size: 21px; } }

/* ===== 第八轮：人机验证框、常见问题、怎么玩 ===== */
.ts { min-height: 66px; }
.faq details { margin-bottom: 10px; padding: 14px 18px; }
.faq summary { font-weight: 700; font-size: 17px; color: var(--text); list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 22px; line-height: 1; transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 10px 0 0; color: var(--muted); }
.howto p { margin: 0 0 8px; }
