/*!
Theme Name: 雷电模拟器
Theme URI: https://ldmnq.com/
Author: WorkBuddy
Author URI: https://workbuddy.ai/
Description: 雷电模拟器游戏生态平台官网 —— 面向全球手游玩家，集游戏下载、模拟体验与玩家社区于一体的平台。游戏社区运营风，主色 #8B5CF6。
Version: 2.0.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: _s
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, responsive, game
*/

/* =====================================================================
   雷电模拟器 · 设计系统 (Design Tokens)
   ===================================================================== */
:root {
	/* 品牌色（主色可后台配置；以下派生色全部由 --ld-accent 计算，改一处即全站换色） */
	--ld-accent: #8B5CF6;          /* 主色（后台可改） */
	--ld-accent-strong: color-mix(in srgb, var(--ld-accent) 68%, #000);
	--ld-accent-soft: color-mix(in srgb, var(--ld-accent) 80%, #fff);
	--ld-accent-50: color-mix(in srgb, var(--ld-accent) 8%, #fff);
	--ld-accent-100: color-mix(in srgb, var(--ld-accent) 14%, #fff);

	/* 辅助色 / 墨色 */
	--ld-ink: #111827;             /* 辅助色（深墨，用于暗场与标题） */
	--ld-ink-700: #1F2937;
	--ld-ink-900: #0B0F1A;

	/* 背景 */
	--ld-bg: #F8FAFC;              /* 背景色 */
	--ld-surface: #FFFFFF;         /* 卡片表面 */
	--ld-surface-2: #F1F5F9;

	/* 文本 */
	--ld-text: #111827;
	--ld-muted: #6B7280;
	--ld-faint: #9CA3AF;

	/* 边框 */
	--ld-border: #E5E7EB;
	--ld-border-strong: #D1D5DB;

	/* 圆角 —— 统一 14px */
	--ld-radius: 14px;
	--ld-radius-sm: 10px;
	--ld-radius-lg: 20px;
	--ld-radius-pill: 999px;

	/* 阴影 —— 柔和 */
	--ld-shadow-xs: 0 2px 8px rgba(17, 24, 39, .05);
	--ld-shadow-sm: 0 6px 18px rgba(17, 24, 39, .07);
	--ld-shadow: 0 12px 32px rgba(99, 102, 241, .12);
	--ld-shadow-lg: 0 24px 60px rgba(99, 102, 241, .20);
	--ld-shadow-dark: 0 20px 50px rgba(0, 0, 0, .35);

	/* 字体 */
	--ld-font: "Inter", "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", system-ui, -apple-system, sans-serif;
	--ld-font-num: "Inter", system-ui, sans-serif;

	/* 布局 */
	--ld-container: 1200px;
	--ld-container-narrow: 960px;

	/* 渐变（由主色派生） */
	--ld-gradient: linear-gradient(135deg, color-mix(in srgb, var(--ld-accent) 82%, #fff) 0%, var(--ld-accent) 55%, color-mix(in srgb, var(--ld-accent) 68%, #000) 100%);
	--ld-gradient-soft: linear-gradient(135deg, color-mix(in srgb, var(--ld-accent) 70%, #fff), var(--ld-accent));
}

/* =====================================================================
   Reset / Normalize（精简）
   ===================================================================== */
*,
*::before,
*::after {
	box-sizing: border-box;
}

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

body {
	margin: 0;
	font-family: var(--ld-font);
	font-size: 16px;
	line-height: 1.65;
	color: var(--ld-text);
	background-color: var(--ld-bg);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}

img,
picture,
svg,
video {
	max-width: 100%;
	height: auto;
	vertical-align: middle;
}

a {
	color: var(--ld-accent);
	text-decoration: none;
	transition: color .2s ease;
}

a:hover {
	color: var(--ld-accent-strong);
}

button {
	font-family: inherit;
	cursor: pointer;
}

h1, h2, h3, h4, h5, h6 {
	margin: 0 0 .5em;
	font-weight: 800;
	line-height: 1.18;
	letter-spacing: -.01em;
	color: var(--ld-ink);
}

p {
	margin: 0 0 1em;
}

ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

:focus-visible {
	outline: 3px solid var(--ld-accent-soft);
	outline-offset: 2px;
}

/* =====================================================================
   布局工具
   ===================================================================== */
.ld-container {
	width: 100%;
	max-width: var(--ld-container);
	margin-inline: auto;
	padding-inline: 20px;
}

.ld-container--narrow {
	max-width: var(--ld-container-narrow);
}

.ld-screen-reader {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* =====================================================================
   按钮
   ===================================================================== */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 12px 22px;
	font-size: 15px;
	font-weight: 700;
	line-height: 1;
	border: 1px solid transparent;
	border-radius: var(--ld-radius);
	cursor: pointer;
	transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
	white-space: nowrap;
}

.btn:active {
	transform: translateY(1px);
}

.btn--primary {
	color: #fff;
	background: var(--ld-gradient);
	box-shadow: var(--ld-shadow);
}

.btn--primary:hover {
	color: #fff;
	box-shadow: var(--ld-shadow-lg);
	transform: translateY(-2px);
}

.btn--ghost {
	color: var(--ld-ink);
	background: #fff;
	border-color: var(--ld-border);
	box-shadow: var(--ld-shadow-xs);
}

.btn--ghost:hover {
	color: var(--ld-accent);
	border-color: var(--ld-accent-soft);
	box-shadow: var(--ld-shadow-sm);
}

.btn--light {
	color: var(--ld-ink);
	background: #fff;
}

.btn--light:hover {
	color: var(--ld-accent-strong);
}

.btn--outline-light {
	color: #fff;
	background: transparent;
	border-color: rgba(255, 255, 255, .35);
}

.btn--outline-light:hover {
	color: #fff;
	background: rgba(255, 255, 255, .1);
	border-color: rgba(255, 255, 255, .6);
}

.btn--lg {
	padding: 15px 30px;
	font-size: 16px;
}

.btn--block {
	width: 100%;
}

.btn__icon {
	font-size: 1.1em;
	line-height: 1;
}

/* =====================================================================
   顶部导航 Header
   ===================================================================== */
.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: rgba(255, 255, 255, .82);
	backdrop-filter: saturate(180%) blur(14px);
	-webkit-backdrop-filter: saturate(180%) blur(14px);
	border-bottom: 1px solid transparent;
	transition: border-color .25s ease, box-shadow .25s ease, background .25s ease;
}

.site-header.is-scrolled {
	border-bottom-color: var(--ld-border);
	box-shadow: var(--ld-shadow-xs);
}

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	height: 68px;
}

.site-brand {
	display: flex;
	align-items: center;
	gap: 10px;
	font-weight: 800;
	color: var(--ld-ink);
}

.site-brand:hover {
	color: var(--ld-ink);
}

.site-brand__logo {
	height: 38px;
	width: auto;
	border-radius: var(--ld-radius-sm);
}

.site-brand__fallback {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border-radius: var(--ld-radius-sm);
	background: var(--ld-gradient);
	color: #fff;
	font-weight: 900;
	font-size: 18px;
	box-shadow: var(--ld-shadow-sm);
}

.site-brand__name {
	font-size: 18px;
	letter-spacing: -.02em;
}

.site-brand__name span {
	color: var(--ld-accent);
}

.primary-nav ul {
	display: flex;
	align-items: center;
	gap: 4px;
}

.primary-nav a {
	display: inline-block;
	padding: 9px 14px;
	font-size: 15px;
	font-weight: 600;
	color: var(--ld-ink-700);
	border-radius: var(--ld-radius-sm);
	transition: color .2s ease, background .2s ease;
}

.primary-nav a:hover {
	color: var(--ld-accent);
	background: var(--ld-accent-50);
}

.header-actions {
	display: flex;
	align-items: center;
	gap: 10px;
}

.menu-toggle {
	display: none;
	flex-direction: column;
	gap: 5px;
	width: 42px;
	height: 42px;
	padding: 0;
	background: #fff;
	border: 1px solid var(--ld-border);
	border-radius: var(--ld-radius-sm);
}

.menu-toggle span {
	display: block;
	width: 20px;
	height: 2px;
	margin-inline: auto;
	background: var(--ld-ink);
	border-radius: 2px;
	transition: transform .25s ease, opacity .25s ease;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
	transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
	opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
	transform: translateY(-7px) rotate(-45deg);
}

/* 移动端导航抽屉 */
.site-header__nav {
	display: block;
}

@media (max-width: 920px) {
	.menu-toggle {
		display: flex;
	}

	.site-header__nav {
		position: absolute;
		top: 68px;
		left: 0;
		right: 0;
		background: #fff;
		border-bottom: 1px solid var(--ld-border);
		box-shadow: var(--ld-shadow);
		max-height: 0;
		overflow: hidden;
		transition: max-height .3s ease;
	}

	.site-header__nav.is-open {
		max-height: 80vh;
		overflow-y: auto;
	}

	.primary-nav ul {
		flex-direction: column;
		align-items: stretch;
		gap: 2px;
		padding: 12px 16px 18px;
	}

	.primary-nav a {
		padding: 13px 14px;
		font-size: 16px;
		border-bottom: 1px solid var(--ld-surface-2);
	}

	.header-actions .btn--ghost {
		display: none;
	}
}

/* =====================================================================
   通用区块 Section
   ===================================================================== */
.section {
	padding: 72px 0;
}

.section--alt {
	background: var(--ld-surface);
}

.section--soft {
	background: var(--ld-accent-50);
}

.section__head {
	max-width: 720px;
	margin: 0 auto 44px;
	text-align: center;
}

.section__eyebrow {
	display: inline-block;
	margin-bottom: 14px;
	padding: 6px 14px;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .04em;
	color: var(--ld-accent);
	background: var(--ld-accent-100);
	border-radius: var(--ld-radius-pill);
}

.section__title {
	font-size: clamp(26px, 4vw, 38px);
}

.section__sub {
	margin: 14px 0 0;
	color: var(--ld-muted);
	font-size: 16px;
}

.section__link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: 16px;
	font-weight: 700;
	color: var(--ld-accent);
}

.section__head--row {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	max-width: none;
	text-align: left;
	gap: 20px;
}

.section__head--row .section__sub {
	margin-top: 8px;
}

/* =====================================================================
   Hero（沉浸式暗场）
   ===================================================================== */
.hero {
	position: relative;
	overflow: hidden;
	color: #fff;
	background: radial-gradient(120% 120% at 80% -10%, #2a1a5e 0%, #111827 55%, #0B0F1A 100%);
	isolation: isolate;
}

.hero__glow {
	position: absolute;
	border-radius: 50%;
	filter: blur(70px);
	opacity: .55;
	z-index: -1;
	pointer-events: none;
}

.hero__glow--1 {
	width: 460px;
	height: 460px;
	top: -120px;
	right: -60px;
	background: radial-gradient(circle, var(--ld-accent) 0%, transparent 70%);
}

.hero__glow--2 {
	width: 380px;
	height: 380px;
	bottom: -140px;
	left: -80px;
	background: radial-gradient(circle, #6D28D9 0%, transparent 70%);
	opacity: .4;
}

.hero__glow--3 {
	width: 300px;
	height: 300px;
	top: 40%;
	left: 45%;
	background: radial-gradient(circle, var(--ld-accent-soft) 0%, transparent 70%);
	opacity: .25;
}

.hero__inner {
	position: relative;
	display: grid;
	grid-template-columns: 1.1fr .9fr;
	gap: 48px;
	align-items: center;
	padding: 88px 0 96px;
}

.hero__badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 7px 14px;
	font-size: 13px;
	font-weight: 600;
	color: #E9E2FF;
	background: rgba(139, 92, 246, .18);
	border: 1px solid rgba(167, 139, 250, .35);
	border-radius: var(--ld-radius-pill);
	margin-bottom: 22px;
}

.hero__badge .dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--ld-accent-soft);
	box-shadow: 0 0 0 4px color-mix(in srgb, var(--ld-accent) 30%, transparent);
}

.hero__title {
	font-size: clamp(32px, 5.4vw, 56px);
	line-height: 1.08;
	color: #fff;
	letter-spacing: -.02em;
}

.hero__title .grad {
	background: linear-gradient(90deg, var(--ld-accent-soft), var(--ld-accent));
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.hero__subtitle {
	margin: 22px 0 30px;
	max-width: 520px;
	font-size: 18px;
	line-height: 1.7;
	color: #C7CBD6;
}

.hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
}

.hero__stats {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	margin-top: 40px;
}

.stat-chip {
	padding: 14px 18px;
	background: rgba(255, 255, 255, .06);
	border: 1px solid rgba(255, 255, 255, .12);
	border-radius: var(--ld-radius);
	backdrop-filter: blur(6px);
}

.stat-chip__num {
	font-family: var(--ld-font-num);
	font-size: 24px;
	font-weight: 800;
	color: #fff;
	line-height: 1;
}

.stat-chip__label {
	margin-top: 6px;
	font-size: 13px;
	color: #AEB4C2;
}

/* Hero 右侧：悬浮游戏卡 */
.hero__visual {
	position: relative;
	min-height: 360px;
}

.hero-card {
	position: absolute;
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 14px;
	background: rgba(255, 255, 255, .96);
	border-radius: var(--ld-radius);
	box-shadow: var(--ld-shadow-lg);
	color: var(--ld-ink);
	animation: floaty 6s ease-in-out infinite;
}

.hero-card__cover {
	width: 46px;
	height: 46px;
	border-radius: 10px;
	display: grid;
	place-items: center;
	color: #fff;
	font-weight: 800;
	font-size: 18px;
	flex: none;
}

.hero-card__name {
	font-weight: 700;
	font-size: 14px;
	line-height: 1.2;
}

.hero-card__meta {
	font-size: 12px;
	color: var(--ld-muted);
}

.hero-card--1 {
	top: 6%;
	left: 4%;
	animation-delay: 0s;
}

.hero-card--2 {
	top: 38%;
	right: 2%;
	animation-delay: 1.5s;
}

.hero-card--3 {
	bottom: 6%;
	left: 14%;
	animation-delay: 3s;
}

@keyframes floaty {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-14px); }
}

/* =====================================================================
   游戏分类筛选
   ===================================================================== */
.game-filters {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	margin-bottom: 36px;
}

.filter-tab {
	padding: 9px 18px;
	font-size: 14px;
	font-weight: 600;
	color: var(--ld-muted);
	background: #fff;
	border: 1px solid var(--ld-border);
	border-radius: var(--ld-radius-pill);
	cursor: pointer;
	transition: all .2s ease;
}

.filter-tab:hover {
	color: var(--ld-accent);
	border-color: var(--ld-accent-soft);
}

.filter-tab.is-active {
	color: #fff;
	background: var(--ld-gradient);
	border-color: transparent;
	box-shadow: var(--ld-shadow-sm);
}

/* =====================================================================
   热门手游卡片网格
   ===================================================================== */
.game-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 22px;
}

.game-card {
	position: relative;
	display: flex;
	flex-direction: column;
	background: var(--ld-surface);
	border: 1px solid var(--ld-border);
	border-radius: var(--ld-radius);
	overflow: hidden;
	box-shadow: var(--ld-shadow-xs);
	transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.game-card:hover {
	transform: translateY(-6px);
	box-shadow: var(--ld-shadow-lg);
	border-color: var(--ld-accent-soft);
}

.game-card__media {
	position: relative;
	aspect-ratio: 4 / 3;
	display: grid;
	place-items: center;
	overflow: hidden;
}

.game-card__cover {
	width: 100%;
	height: 100%;
	display: grid;
	place-items: center;
	font-size: 40px;
	font-weight: 900;
	color: #fff;
	text-shadow: 0 2px 10px rgba(0, 0, 0, .25);
	transition: transform .3s ease;
}

img.game-card__cover,
img.hero-card__cover,
img.rank-item__media {
	object-fit: cover;
	display: block;
}

.game-card:hover .game-card__cover {
	transform: scale(1.06);
}

.game-card__tag {
	position: absolute;
	top: 12px;
	left: 12px;
	padding: 4px 10px;
	font-size: 12px;
	font-weight: 700;
	color: #fff;
	background: rgba(17, 24, 39, .55);
	border-radius: var(--ld-radius-pill);
	backdrop-filter: blur(4px);
}

.game-card__rating {
	position: absolute;
	top: 12px;
	right: 12px;
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 4px 9px;
	font-size: 12px;
	font-weight: 700;
	color: #fff;
	background: rgba(17, 24, 39, .55);
	border-radius: var(--ld-radius-pill);
	backdrop-filter: blur(4px);
}

.game-card__body {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 16px;
	flex: 1;
}

.game-card__title {
	font-size: 17px;
	font-weight: 800;
	color: var(--ld-ink);
}

.game-card__desc {
	font-size: 13px;
	color: var(--ld-muted);
	line-height: 1.5;
	margin: 0;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.game-card__foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: auto;
	padding-top: 6px;
}

.game-card__plays {
	font-size: 12px;
	color: var(--ld-faint);
}

/* =====================================================================
   游戏排行榜
   ===================================================================== */
.rank-list {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.rank-item {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 14px 18px;
	background: var(--ld-surface);
	border: 1px solid var(--ld-border);
	border-radius: var(--ld-radius);
	box-shadow: var(--ld-shadow-xs);
	transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.rank-item:hover {
	transform: translateX(4px);
	box-shadow: var(--ld-shadow-sm);
	border-color: var(--ld-accent-soft);
}

.rank-item__no {
	flex: none;
	width: 40px;
	height: 40px;
	display: grid;
	place-items: center;
	font-family: var(--ld-font-num);
	font-size: 18px;
	font-weight: 800;
	color: var(--ld-muted);
	background: var(--ld-surface-2);
	border-radius: var(--ld-radius-sm);
}

.rank-item:nth-child(1) .rank-item__no {
	color: #fff;
	background: linear-gradient(135deg, #F59E0B, #D97706);
}

.rank-item:nth-child(2) .rank-item__no {
	color: #fff;
	background: linear-gradient(135deg, #94A3B8, #64748B);
}

.rank-item:nth-child(3) .rank-item__no {
	color: #fff;
	background: linear-gradient(135deg, #D97757, #B45309);
}

.rank-item__media {
	flex: none;
	width: 52px;
	height: 52px;
	border-radius: var(--ld-radius-sm);
	display: grid;
	place-items: center;
	color: #fff;
	font-size: 22px;
	font-weight: 800;
}

.rank-item__info {
	flex: 1;
	min-width: 0;
}

.rank-item__name {
	font-size: 16px;
	font-weight: 800;
	color: var(--ld-ink);
}

.rank-item__genre {
	font-size: 13px;
	color: var(--ld-muted);
}

.rank-item__heat {
	margin-top: 8px;
	height: 6px;
	background: var(--ld-surface-2);
	border-radius: var(--ld-radius-pill);
	overflow: hidden;
}

.rank-item__heat span {
	display: block;
	height: 100%;
	border-radius: var(--ld-radius-pill);
	background: var(--ld-gradient);
}

.rank-item__btn {
	flex: none;
}

/* =====================================================================
   玩家攻略
   ===================================================================== */
.guide-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 22px;
}

.guide-card {
	display: flex;
	flex-direction: column;
	padding: 22px;
	background: var(--ld-surface);
	border: 1px solid var(--ld-border);
	border-radius: var(--ld-radius);
	box-shadow: var(--ld-shadow-xs);
	transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.guide-card:hover {
	transform: translateY(-5px);
	box-shadow: var(--ld-shadow);
	border-color: var(--ld-accent-soft);
}

.guide-card__tag {
	align-self: flex-start;
	margin-bottom: 14px;
	padding: 5px 12px;
	font-size: 12px;
	font-weight: 700;
	color: var(--ld-accent);
	background: var(--ld-accent-100);
	border-radius: var(--ld-radius-pill);
}

.guide-card__title {
	font-size: 18px;
	font-weight: 800;
	color: var(--ld-ink);
	line-height: 1.35;
}

.guide-card__excerpt {
	margin: 10px 0 16px;
	font-size: 14px;
	color: var(--ld-muted);
	line-height: 1.6;
	flex: 1;
}

.guide-card__link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 14px;
	font-weight: 700;
	color: var(--ld-accent);
}

.guide-card__link::after {
	content: "→";
	transition: transform .2s ease;
}

.guide-card:hover .guide-card__link::after {
	transform: translateX(4px);
}

/* =====================================================================
   多开教程
   ===================================================================== */
.tutorial {
	display: grid;
	grid-template-columns: 1.4fr 1fr;
	gap: 36px;
	align-items: start;
}

.steps {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.step {
	position: relative;
	display: flex;
	gap: 18px;
	padding: 20px 22px;
	background: var(--ld-surface);
	border: 1px solid var(--ld-border);
	border-radius: var(--ld-radius);
	box-shadow: var(--ld-shadow-xs);
}

.step__no {
	flex: none;
	width: 38px;
	height: 38px;
	display: grid;
	place-items: center;
	font-family: var(--ld-font-num);
	font-size: 16px;
	font-weight: 800;
	color: #fff;
	background: var(--ld-gradient);
	border-radius: 50%;
	box-shadow: var(--ld-shadow-sm);
}

.step__title {
	font-size: 16px;
	font-weight: 800;
	color: var(--ld-ink);
	margin-bottom: 4px;
}

.step__desc {
	font-size: 14px;
	color: var(--ld-muted);
	line-height: 1.6;
	margin: 0;
}

.tutorial-aside {
	position: sticky;
	top: 90px;
	padding: 28px;
	color: #fff;
	background: radial-gradient(120% 120% at 100% 0%, #2a1a5e, #111827);
	border-radius: var(--ld-radius-lg);
	box-shadow: var(--ld-shadow-dark);
	overflow: hidden;
}

.tutorial-aside__icon {
	font-size: 34px;
}

.tutorial-aside__title {
	margin: 14px 0 10px;
	font-size: 22px;
	color: #fff;
}

.tutorial-aside__text {
	font-size: 14px;
	color: #C7CBD6;
	line-height: 1.7;
}

.tutorial-aside .btn {
	margin-top: 20px;
}

/* =====================================================================
   社区交流
   ===================================================================== */
.community-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
}

.community-card {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 12px;
	padding: 24px;
	background: var(--ld-surface);
	border: 1px solid var(--ld-border);
	border-radius: var(--ld-radius);
	box-shadow: var(--ld-shadow-xs);
	transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.community-card:hover {
	transform: translateY(-5px);
	box-shadow: var(--ld-shadow);
	border-color: var(--ld-accent-soft);
}

.community-card__icon {
	width: 52px;
	height: 52px;
	display: grid;
	place-items: center;
	font-size: 26px;
	border-radius: var(--ld-radius-sm);
	background: var(--ld-accent-100);
	color: var(--ld-accent);
}

.community-card__name {
	font-size: 17px;
	font-weight: 800;
	color: var(--ld-ink);
}

.community-card__count {
	font-size: 13px;
	color: var(--ld-muted);
}

.community-card__count b {
	color: var(--ld-accent);
	font-family: var(--ld-font-num);
}

/* 社区动态流 */
.community-feed {
	margin-top: 36px;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
}

.feed-card {
	padding: 20px 22px;
	background: var(--ld-surface);
	border: 1px solid var(--ld-border);
	border-radius: var(--ld-radius);
	box-shadow: var(--ld-shadow-xs);
}

.feed-card__head {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 12px;
}

.feed-card__avatar {
	width: 38px;
	height: 38px;
	border-radius: 50%;
	display: grid;
	place-items: center;
	color: #fff;
	font-weight: 800;
	font-size: 15px;
}

.feed-card__user {
	font-size: 14px;
	font-weight: 700;
	color: var(--ld-ink);
}

.feed-card__time {
	font-size: 12px;
	color: var(--ld-faint);
}

.feed-card__text {
	font-size: 14px;
	color: var(--ld-ink-700);
	line-height: 1.6;
	margin: 0;
}

.feed-card__tags {
	margin-top: 12px;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.feed-card__tags span {
	font-size: 12px;
	color: var(--ld-accent);
	background: var(--ld-accent-50);
	padding: 3px 10px;
	border-radius: var(--ld-radius-pill);
}

/* =====================================================================
   客户端下载 CTA（暗场）
   ===================================================================== */
.download {
	position: relative;
	overflow: hidden;
	color: #fff;
	background: radial-gradient(120% 130% at 15% 0%, #2a1a5e, #111827 60%, #0B0F1A);
	isolation: isolate;
}

.download__glow {
	position: absolute;
	inset: auto -10% -40% auto;
	width: 520px;
	height: 520px;
	border-radius: 50%;
	background: radial-gradient(circle, var(--ld-accent) 0%, transparent 70%);
	filter: blur(80px);
	opacity: .4;
	z-index: -1;
}

.download__inner {
	display: grid;
	grid-template-columns: 1.3fr .7fr;
	gap: 48px;
	align-items: center;
	padding: 80px 0;
}

.download__title {
	font-size: clamp(28px, 4vw, 40px);
	color: #fff;
}

.download__sub {
	margin: 16px 0 28px;
	max-width: 480px;
	font-size: 17px;
	color: #C7CBD6;
}

.download__btns {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
}

.download__meta {
	margin-top: 26px;
	display: flex;
	flex-wrap: wrap;
	gap: 22px;
}

.download__meta div {
	font-size: 13px;
	color: #AEB4C2;
}

.download__meta b {
	display: block;
	font-family: var(--ld-font-num);
	font-size: 18px;
	font-weight: 800;
	color: #fff;
}

.download__qr {
	justify-self: end;
	width: 200px;
	height: 200px;
	padding: 14px;
	background: #fff;
	border-radius: var(--ld-radius-lg);
	box-shadow: var(--ld-shadow-dark);
	display: grid;
	place-items: center;
}

.download__qr svg {
	width: 100%;
	height: 100%;
}

.download__qr-cap {
	margin-top: 10px;
	text-align: center;
	font-size: 12px;
	color: #AEB4C2;
}

/* ---------- 推广入口 ---------- */
.promo {
	display: grid;
	grid-template-columns: 220px 1fr auto;
	gap: 28px;
	align-items: center;
	padding: 28px 32px;
	color: #fff;
	background: var(--ld-gradient);
	border-radius: var(--ld-radius-lg);
	box-shadow: var(--ld-shadow-lg);
	overflow: hidden;
}

.promo__media {
	width: 100%;
	height: 140px;
	border-radius: var(--ld-radius);
	overflow: hidden;
	background: rgba(255, 255, 255, .15);
	display: grid;
	place-items: center;
	font-size: 40px;
}

.promo__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.promo__title {
	font-size: 22px;
	color: #fff;
	margin-bottom: 8px;
}

.promo__text {
	font-size: 15px;
	color: rgba(255, 255, 255, .92);
	line-height: 1.6;
	max-width: 560px;
	margin: 0;
}

@media (max-width: 760px) {
	.promo {
		grid-template-columns: 1fr;
		text-align: center;
		gap: 18px;
	}
	.promo__media {
		height: 160px;
	}
}

/* =====================================================================
   页脚 Footer
   ===================================================================== */
.site-footer {
	color: #C7CBD6;
	background: #0B0F1A;
}

.footer__grid {
	display: grid;
	grid-template-columns: 1.4fr repeat(3, 1fr);
	gap: 36px;
	padding: 64px 0 40px;
}

.footer__brand {
	max-width: 280px;
}

.footer__brand .site-brand {
	color: #fff;
	margin-bottom: 16px;
}

.footer__brand p {
	font-size: 14px;
	line-height: 1.7;
}

.footer__title {
	font-size: 15px;
	font-weight: 800;
	color: #fff;
	margin-bottom: 16px;
	letter-spacing: .02em;
}

.footer__links li {
	margin-bottom: 10px;
}

.footer__links a {
	font-size: 14px;
	color: #AEB4C2;
}

.footer__links a:hover {
	color: var(--ld-accent-soft);
}

.footer__social {
	display: flex;
	gap: 10px;
	margin-top: 16px;
}

.footer__social a {
	width: 38px;
	height: 38px;
	display: grid;
	place-items: center;
	font-size: 18px;
	color: #fff;
	background: rgba(255, 255, 255, .08);
	border: 1px solid rgba(255, 255, 255, .12);
	border-radius: var(--ld-radius-sm);
	transition: background .2s ease, transform .2s ease;
}

.footer__social a:hover {
	background: var(--ld-accent);
	transform: translateY(-3px);
	color: #fff;
}

.footer__bottom {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 22px 0;
	border-top: 1px solid rgba(255, 255, 255, .1);
	font-size: 13px;
	color: #8A90A0;
}

.footer__bottom a {
	color: #AEB4C2;
}

/* =====================================================================
   通用页面 / 文章（保留 _s 基础排版）
   ===================================================================== */
.site-main {
	padding: 56px 0;
}

.site-main .ld-container {
	max-width: var(--ld-container-narrow);
}

.entry-content {
	font-size: 17px;
	line-height: 1.8;
	color: var(--ld-ink-700);
}

.entry-content h2,
.entry-content h3 {
	margin-top: 1.4em;
}

.entry-content a {
	color: var(--ld-accent);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.entry-title {
	font-size: clamp(26px, 4vw, 36px);
}

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

.post-card {
	padding: 24px;
	background: var(--ld-surface);
	border: 1px solid var(--ld-border);
	border-radius: var(--ld-radius);
	box-shadow: var(--ld-shadow-xs);
}

.post-card__title {
	font-size: 19px;
	margin-bottom: 8px;
}

.post-card__title a {
	color: var(--ld-ink);
}

.post-card__title a:hover {
	color: var(--ld-accent);
}

.post-card__meta {
	font-size: 13px;
	color: var(--ld-faint);
	margin-bottom: 10px;
}

/* =====================================================================
   滚动揭示动画
   ===================================================================== */
.reveal {
	opacity: 0;
	transform: translateY(24px);
	transition: opacity .6s ease, transform .6s ease;
}

.reveal.is-visible {
	opacity: 1;
	transform: none;
}

@media (prefers-reduced-motion: reduce) {
	.reveal {
		opacity: 1;
		transform: none;
		transition: none;
	}
	.hero-card {
		animation: none;
	}
	html { scroll-behavior: auto; }
}

/* =====================================================================
   响应式
   ===================================================================== */
@media (max-width: 1080px) {
	.game-grid { grid-template-columns: repeat(3, 1fr); }
	.community-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 920px) {
	.hero__inner {
		grid-template-columns: 1fr;
		gap: 32px;
		padding: 64px 0 72px;
	}
	.hero__visual { min-height: 260px; }
	.tutorial { grid-template-columns: 1fr; }
	.tutorial-aside { position: static; }
	.download__inner { grid-template-columns: 1fr; gap: 32px; }
	.download__qr { justify-self: start; }
	.footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
	.section { padding: 56px 0; }
	.game-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
	.guide-grid { grid-template-columns: 1fr; }
	.community-grid { grid-template-columns: 1fr 1fr; }
	.community-feed { grid-template-columns: 1fr; }
	.posts-grid { grid-template-columns: 1fr; }
	.rank-item { flex-wrap: wrap; }
	.rank-item__btn { width: 100%; }
	.rank-item__btn .btn { width: 100%; }
}

@media (max-width: 520px) {
	.ld-container { padding-inline: 16px; }
	.game-grid { grid-template-columns: 1fr; }
	.community-grid { grid-template-columns: 1fr; }
	.footer__grid { grid-template-columns: 1fr; gap: 28px; }
	.hero__actions .btn { flex: 1; }
	.stat-chip { flex: 1; min-width: 0; }
}
