:root {
  --nav-theme: 222 45% 13%;
  --nav-theme-light: 222 45% 26%;
  --bg: #0b0e15;
  --bg-card: #151a2b;
  --text: #eef1f8;
  --muted: #a4abc0;
  --accent: #d9b356;
  --border: #2a3050;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; background: var(--bg); color: var(--text); line-height: 1.7; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

nav { background: #1a1a1a; border-bottom: 1px solid var(--border); padding: 12px 24px; display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
nav .logo { font-weight: 800; font-size: 18px; color: var(--text); }
nav .logo span { color: var(--accent); }
nav a.nav { color: var(--muted); font-size: 14px; }
nav a.nav:hover { color: var(--text); }
nav .spacer { flex: 1; }
nav .steam-btn { background: var(--accent); color: #fff; padding: 8px 16px; border-radius: 6px; font-weight: 600; font-size: 14px; }
nav .steam-btn:hover { background: hsl(var(--nav-theme-light)); text-decoration: none; }

.hero { padding: 60px 24px 40px; text-align: center; background: radial-gradient(ellipse at top, #1d2440 0%, #0b0e15 70%); }
.hero .eyebrow { color: var(--accent); font-size: 13px; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 12px; }
.hero h1 { font-size: 42px; margin-bottom: 16px; line-height: 1.2; }
.hero p.desc { max-width: 680px; margin: 0 auto 24px; color: var(--muted); font-size: 17px; }
.hero .btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn { padding: 12px 24px; border-radius: 8px; font-weight: 600; display: inline-block; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-outline { border: 1px solid var(--border); color: var(--text); }
.btn:hover { text-decoration: none; opacity: 0.9; }

.stats { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; padding: 0 24px 40px; }
.stat-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px; padding: 16px 24px; min-width: 150px; text-align: center; }
.stat-card .label { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.5px; }
.stat-card .value { font-size: 20px; font-weight: 700; margin-top: 4px; }

.container { max-width: 1100px; margin: 0 auto; padding: 24px; }
section { margin-bottom: 40px; }
h2 { font-size: 26px; margin-bottom: 16px; border-bottom: 2px solid var(--border); padding-bottom: 10px; }
h3 { font-size: 18px; margin: 20px 0 10px; color: var(--accent); }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px; padding: 18px; }
.card h4 { font-size: 16px; margin-bottom: 6px; }
.card h4 a { color: var(--text); }
.card p { color: var(--muted); font-size: 14px; }

table { width: 100%; border-collapse: collapse; margin: 12px 0; }
th, td { border: 1px solid var(--border); padding: 10px 12px; text-align: left; font-size: 14px; }
th { background: var(--bg-card); }

.breadcrumb { padding: 16px 24px 0; font-size: 13px; color: var(--muted); max-width: 1100px; margin: 0 auto; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { margin: 0 8px; color: #666; }

.article { max-width: 800px; margin: 24px auto 60px; padding: 0 24px; }
.article h1 { font-size: 32px; margin-bottom: 12px; line-height: 1.25; }
.article .lead { color: var(--muted); font-size: 17px; margin-bottom: 28px; }
.article p { margin-bottom: 14px; }
.article ul, .article ol { margin: 0 0 16px 22px; }
.article li { margin-bottom: 8px; }
.article .answer-box { background: var(--bg-card); border: 1px solid var(--border); border-left: 4px solid var(--accent); border-radius: 8px; padding: 14px 18px; margin: 0 0 24px; }
.article h2 { margin-top: 36px; }
.article .note { background: var(--bg-card); border: 1px solid var(--border); border-left: 4px solid #d9a514; border-radius: 8px; padding: 12px 16px; margin: 14px 0; font-size: 14px; color: var(--muted); }

footer { border-top: 1px solid var(--border); padding: 32px 24px; text-align: center; color: var(--muted); font-size: 14px; }
footer a { color: var(--muted); margin: 0 8px; }

.media { margin: 16px 0; border-radius: 10px; overflow: hidden; border: 1px solid var(--border); }
.media img { width: 100%; display: block; }

/* Language switcher */
.lang { position: relative; display: inline-block; }
.lang-btn { display: flex; align-items: center; gap: 4px; color: var(--muted); background: none; border: none; cursor: pointer; padding: 6px 10px; border-radius: 6px; font-size: 13px; font-family: inherit; }
.lang-btn:hover { color: var(--text); background: rgba(255,255,255,0.06); }
.lang-current { font-weight: 600; }
.lang-caret { transition: transform 0.15s; }
.lang:hover .lang-caret { transform: rotate(180deg); }
.lang-menu { position: absolute; top: calc(100% + 6px); right: 0; background: var(--bg-card); border: 1px solid var(--border); border-radius: 8px; padding: 4px; min-width: 120px; list-style: none; z-index: 9999; box-shadow: 0 8px 24px rgba(0,0,0,0.5); opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity 0.15s, transform 0.15s, visibility 0.15s; }
.lang:hover .lang-menu, .lang:focus-within .lang-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.lang-menu li a { display: block; padding: 8px 12px; border-radius: 6px; color: var(--text); font-size: 13px; white-space: nowrap; }
.lang-menu li a:hover { background: rgba(255,255,255,0.08); }
.lang-menu li a.active { color: var(--accent); font-weight: 700; }

/* ===== 新模板组件（2026-08-13 更新）===== */

/* Hero 视频预览 */
.hero-video { margin: 20px auto 24px; max-width: 640px; border-radius: 12px; overflow: hidden; border: 1px solid var(--border); }
.hero-video iframe { width: 100%; aspect-ratio: 16/9; display: block; }

/* 截图画廊 + lightbox */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; }
.gallery-item { display: block; }
.gallery-item img { width: 100%; border-radius: 8px; border: 1px solid var(--border); display: block; cursor: zoom-in; }
.lightbox { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.9); z-index: 10000; align-items: center; justify-content: center; }
.lightbox:target { display: flex; }
.lightbox img { max-width: 92vw; max-height: 88vh; border-radius: 8px; box-shadow: 0 8px 40px rgba(0,0,0,0.6); }
.lightbox-close { position: fixed; top: 16px; right: 24px; font-size: 32px; color: #fff; z-index: 10001; text-decoration: none; }
.lightbox-next { position: fixed; right: 24px; top: 50%; transform: translateY(-50%); font-size: 36px; color: #fff; z-index: 10001; text-decoration: none; opacity: 0.7; }
.lightbox-next:hover { opacity: 1; }

/* 站内搜索框 */
.search-box { max-width: 520px; margin: 0 auto 32px; }
.search-box form { display: flex; gap: 8px; }
.search-box input[type=text] { flex: 1; padding: 10px 14px; border-radius: 8px; border: 1px solid var(--border); background: var(--bg-card); color: var(--text); font-size: 14px; }
.search-box button { padding: 10px 16px; border-radius: 8px; border: none; background: var(--accent); color: #fff; cursor: pointer; font-size: 14px; }

/* 最新更新日志 */
#updates { margin-bottom: 40px; }
.update-item { display: flex; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.update-date { color: var(--accent); font-weight: 600; min-width: 100px; white-space: nowrap; font-size: 14px; }
.update-item p { color: var(--muted); font-size: 14px; }

/* Hub 分组 */
.hub-group-title { font-size: 20px; margin: 28px 0 12px; color: var(--accent); }
.hub-group-title:first-of-type { margin-top: 0; }
.card.with-img { overflow: hidden; padding: 0; }
.card.with-img img { width: 100%; height: 120px; object-fit: cover; border-bottom: 1px solid var(--border); display: block; }
.card.with-img h4 { padding: 12px 16px 0; }
.card.with-img p { padding: 0 16px 14px; }
.platform-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }

/* 整卡可点击 */
a.card-link { display: block; background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; text-decoration: none; color: inherit; transition: transform 0.15s, border-color 0.15s; }
a.card-link:hover { transform: translateY(-2px); border-color: var(--accent); text-decoration: none; }
a.card-link .thumb { width: 100%; }
a.card-link .thumb img { width: 100%; height: 130px; object-fit: cover; display: block; }
a.card-link .meta { padding: 12px 16px 14px; }
a.card-link .meta h4 { font-size: 15px; margin-bottom: 6px; color: var(--text); }
a.card-link .meta p { color: var(--muted); font-size: 13.5px; }
a.card-link:hover .meta h4 { color: var(--accent); }
a.card-link.platform-card .meta { padding: 0; display: flex; align-items: center; gap: 14px; }
a.card-link.platform-card .meta .icon { font-size: 30px; line-height: 1; flex-shrink: 0; }
a.card-link.platform-card .meta h4 { font-size: 15px; margin-bottom: 2px; }
a.card-link.platform-card .meta p { font-size: 13px; }
