/*
Theme Name: AdGuard 中文站
Theme URI: https://www.adguard.cn.com
Author: AdGuard 中文站
Description: 为 AdGuard 去广告产品设计的深色主题，含规则库、下载、价格与帮助中心。
Version: 1.0.0
Text Domain: adguard-cn
*/

/* ============ 基础 ============ */
:root {
	--ink: #060a09;
	--ink-2: #08110e;
	--panel: #0c1513;
	--panel-2: #101d18;
	--line: rgba(226, 255, 240, 0.1);
	--line-strong: rgba(226, 255, 240, 0.18);
	--text: #edf7f2;
	--muted: #93a9a0;
	--mint: #5ef2a2;
	--mint-deep: #22c97d;
	--lime: #d8ff6e;
	--warn: #ffd166;
	--radius: 20px;
	--radius-sm: 12px;
	--container: 1200px;
	--shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 96px; }

body {
	margin: 0;
	background: var(--ink);
	color: var(--text);
	font-family: "Inter", "SF Pro Display", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
	font-size: 16px;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-x: hidden;
}

body::before {
	content: "";
	position: fixed;
	inset: 0;
	z-index: -1;
	background:
		radial-gradient(900px 500px at 82% -10%, rgba(94, 242, 162, 0.16), transparent 65%),
		radial-gradient(700px 500px at 5% 20%, rgba(34, 201, 125, 0.07), transparent 70%),
		var(--ink);
	pointer-events: none;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; line-height: 1.16; letter-spacing: -0.025em; font-weight: 800; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }

.container { width: min(var(--container), 92vw); margin: 0 auto; }

::selection { background: var(--mint); color: #04120c; }

/* ============ 按钮 ============ */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	border-radius: 999px;
	padding: 12px 24px;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.2;
	border: 1px solid transparent;
	cursor: pointer;
	transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
	white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
	background: var(--mint);
	color: #03130c;
	box-shadow: 0 10px 30px rgba(94, 242, 162, 0.25);
}
.btn-primary:hover { background: #78ffb7; box-shadow: 0 16px 40px rgba(94, 242, 162, 0.35); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--mint); color: var(--mint); }
.btn-lime { background: var(--lime); color: #101a03; }
.btn-lg { padding: 16px 32px; font-size: 17px; }
.btn-sm { padding: 9px 18px; font-size: 14px; }
.btn-block { width: 100%; }

/* ============ 顶部导航 ============ */
.site-header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 90;
	border-bottom: 1px solid transparent;
	transition: background 0.25s ease, border-color 0.25s ease, backdrop-filter 0.25s ease;
}
.site-header.is-scrolled {
	background: rgba(6, 10, 9, 0.82);
	border-bottom-color: var(--line);
	backdrop-filter: blur(18px);
	-webkit-backdrop-filter: blur(18px);
}
.header-inner {
	height: 76px;
	display: flex;
	align-items: center;
	gap: 28px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.brand-logo { width: 104px; height: 24px; }
.brand-tag {
	font-size: 11px;
	letter-spacing: 0.14em;
	padding: 3px 7px;
	border: 1px solid var(--line-strong);
	border-radius: 6px;
	color: var(--muted);
}
.site-nav { margin-left: auto; }
.nav-list { display: flex; align-items: center; gap: 6px; }
.nav-list a {
	display: block;
	padding: 8px 14px;
	font-size: 15px;
	color: #c9d8d1;
	border-radius: 999px;
	transition: color 0.18s ease, background 0.18s ease;
}
.nav-list a:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.nav-list .current-menu-item > a,
.nav-list .current_page_item > a { color: var(--mint); }
.header-actions { display: flex; align-items: center; gap: 10px; margin-left: 10px; }
.header-buy { padding: 10px 18px; font-size: 14px; }
.nav-toggle {
	display: none;
	width: 42px;
	height: 42px;
	border: 1px solid var(--line-strong);
	background: transparent;
	border-radius: 12px;
	padding: 0;
	position: relative;
}
.nav-toggle span {
	display: block;
	width: 18px;
	height: 2px;
	margin: 4px auto;
	background: var(--text);
	border-radius: 2px;
	transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ============ 首屏 ============ */
.hero {
	position: relative;
	padding: 168px 0 80px;
	overflow: hidden;
}
.hero::after {
	content: "NO ADS";
	position: absolute;
	right: -2vw;
	bottom: -4vw;
	font-size: clamp(120px, 20vw, 280px);
	font-weight: 900;
	letter-spacing: -0.04em;
	color: transparent;
	-webkit-text-stroke: 1px rgba(94, 242, 162, 0.08);
	pointer-events: none;
	z-index: 0;
}
.hero-inner {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: 1.02fr 0.98fr;
	gap: 56px;
	align-items: center;
}
.eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.16em;
	color: var(--mint);
	text-transform: uppercase;
	margin-bottom: 22px;
}
.eyebrow::before {
	content: "";
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--mint);
	box-shadow: 0 0 0 5px rgba(94, 242, 162, 0.12);
	animation: pulse 2.4s infinite;
}
@keyframes pulse {
	0%, 100% { box-shadow: 0 0 0 5px rgba(94, 242, 162, 0.12); }
	50% { box-shadow: 0 0 0 10px rgba(94, 242, 162, 0.02); }
}
.hero h1 {
	font-size: clamp(46px, 5.6vw, 82px);
	font-weight: 900;
	letter-spacing: -0.045em;
	margin-bottom: 24px;
}
.hero h1 em {
	font-style: normal;
	color: var(--mint);
	position: relative;
	white-space: nowrap;
}
.hero h1 em::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0.06em;
	height: 0.09em;
	background: linear-gradient(90deg, var(--mint), var(--lime));
	border-radius: 4px;
	opacity: 0.55;
}
.hero-sub {
	max-width: 520px;
	font-size: 18px;
	color: var(--muted);
	margin-bottom: 34px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.hero-meta {
	display: flex;
	gap: 26px;
	margin-top: 30px;
	font-size: 13px;
	color: #82988f;
	flex-wrap: wrap;
}
.hero-meta span { display: inline-flex; align-items: center; gap: 7px; }
.hero-meta svg { color: var(--mint); flex: 0 0 auto; }
.hero-visual { position: relative; min-height: 380px; }
.shot-card {
	border-radius: 18px;
	overflow: hidden;
	background: #f2f7f4;
	box-shadow: var(--shadow);
	border: 1px solid rgba(255, 255, 255, 0.14);
	animation: float 7s ease-in-out infinite;
}
.shot-card img { width: 100%; }
.shot-main { transform: rotate(-1.6deg); }
.shot-float {
	position: absolute;
	width: 46%;
	right: -8%;
	bottom: -34px;
	border-radius: 14px;
	overflow: hidden;
	background: #fff;
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
	border: 1px solid rgba(255, 255, 255, 0.18);
	transform: rotate(3deg);
	animation: float 8s ease-in-out infinite reverse;
}
.shot-badge {
	position: absolute;
	left: -18px;
	top: 26px;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: rgba(9, 20, 16, 0.9);
	border: 1px solid rgba(94, 242, 162, 0.34);
	color: var(--text);
	padding: 10px 16px;
	border-radius: 999px;
	font-size: 13px;
	font-weight: 600;
	box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
	backdrop-filter: blur(10px);
}
.shot-badge i {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--mint);
}
@keyframes float {
	0%, 100% { transform: translateY(0) rotate(-1.6deg); }
	50% { transform: translateY(-12px) rotate(-1.6deg); }
}
.shot-float { animation-name: float2; }
@keyframes float2 {
	0%, 100% { transform: translateY(0) rotate(3deg); }
	50% { transform: translateY(10px) rotate(3deg); }
}

/* ============ 走马灯 ============ */
.ticker {
	margin-top: 34px;
	border-top: 1px solid var(--line);
	border-bottom: 1px solid var(--line);
	overflow: hidden;
	background: rgba(255, 255, 255, 0.015);
}
.ticker-track {
	display: flex;
	gap: 48px;
	width: max-content;
	padding: 18px 0;
	animation: ticker 32s linear infinite;
}
.ticker span {
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.18em;
	color: #6d857c;
	white-space: nowrap;
	display: inline-flex;
	align-items: center;
	gap: 48px;
}
.ticker span::after {
	content: "";
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--mint-deep);
}
@keyframes ticker { to { transform: translateX(-50%); } }

/* ============ 通用区块 ============ */
.section { padding: 104px 0; position: relative; }
.section-tight { padding: 72px 0; }
.section-head { max-width: 720px; margin-bottom: 54px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(32px, 3.6vw, 50px); margin-bottom: 16px; }
.section-head p { color: var(--muted); font-size: 17px; margin: 0; }
.kicker {
	display: inline-block;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.22em;
	color: var(--mint);
	text-transform: uppercase;
	margin-bottom: 16px;
}

/* 数字条 */
.stats {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1px;
	background: var(--line);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	overflow: hidden;
}
.stat { background: var(--ink-2); padding: 30px 28px; }
.stat b {
	display: block;
	font-size: 38px;
	line-height: 1.1;
	font-weight: 800;
	letter-spacing: -0.03em;
	color: var(--text);
}
.stat b em { font-style: normal; color: var(--mint); font-size: 0.55em; margin-left: 3px; }
.stat span { display: block; margin-top: 8px; color: var(--muted); font-size: 14px; }

/* ============ 功能 ============ */
.feature-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 18px;
}
.feature-card {
	position: relative;
	padding: 30px 28px 26px;
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012));
	border: 1px solid var(--line);
	border-radius: var(--radius);
	transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
	overflow: hidden;
}
.feature-card::after {
	content: "";
	position: absolute;
	inset: auto -30% -60% auto;
	width: 220px;
	height: 220px;
	background: radial-gradient(circle, rgba(94, 242, 162, 0.18), transparent 70%);
	opacity: 0;
	transition: opacity 0.3s ease;
}
.feature-card:hover { transform: translateY(-5px); border-color: rgba(94, 242, 162, 0.36); }
.feature-card:hover::after { opacity: 1; }
.feature-icon {
	width: 46px;
	height: 46px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 13px;
	background: rgba(94, 242, 162, 0.1);
	border: 1px solid rgba(94, 242, 162, 0.24);
	color: var(--mint);
	margin-bottom: 20px;
}
.feature-card h3 { font-size: 19px; margin-bottom: 10px; }
.feature-card p { color: var(--muted); font-size: 14.5px; margin: 0; }

/* ============ 平台切换 ============ */
.platform-box {
	display: grid;
	grid-template-columns: 0.9fr 1.1fr;
	gap: 48px;
	align-items: center;
	background: linear-gradient(135deg, rgba(94, 242, 162, 0.07), rgba(255, 255, 255, 0.012) 55%);
	border: 1px solid var(--line);
	border-radius: 28px;
	padding: 46px;
}
.platform-tabs { display: flex; gap: 8px; margin-bottom: 26px; flex-wrap: wrap; }
.platform-tab {
	padding: 9px 18px;
	border-radius: 999px;
	border: 1px solid var(--line-strong);
	background: transparent;
	color: var(--muted);
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.2s ease;
}
.platform-tab.is-active { background: var(--mint); border-color: var(--mint); color: #04130c; }
.platform-panel { display: none; }
.platform-panel.is-active { display: block; animation: fadeUp 0.4s ease both; }
.platform-panel h3 { font-size: 28px; margin-bottom: 12px; }
.platform-panel p { color: var(--muted); margin-bottom: 20px; }
.check-list { display: grid; gap: 10px; margin-bottom: 26px; }
.check-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 14.5px; color: #c9d8d1; }
.check-list svg { color: var(--mint); margin-top: 4px; flex: 0 0 auto; }
.platform-visual { display: flex; justify-content: center; }
.platform-shot {
	display: none;
	background: #fff;
	border-radius: 16px;
	box-shadow: var(--shadow);
	overflow: hidden;
	width: 100%;
	max-width: 560px;
	border: 1px solid rgba(255, 255, 255, 0.18);
}
.platform-shot.is-active { display: block; animation: fadeUp 0.4s ease both; }
.platform-shot.phone { max-width: 300px; background: transparent; box-shadow: none; border: 0; }
.platform-shot.phone img { filter: drop-shadow(0 24px 50px rgba(0, 0, 0, 0.55)); border-radius: 24px; }

@keyframes fadeUp {
	from { opacity: 0; transform: translateY(14px); }
	to { opacity: 1; transform: translateY(0); }
}

/* ============ 对比表 ============ */
.compare-wrap {
	border: 1px solid var(--line);
	border-radius: var(--radius);
	overflow: hidden;
	background: var(--panel);
}
.compare-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.compare-table th, .compare-table td { padding: 18px 22px; text-align: left; border-bottom: 1px solid var(--line); }
.compare-table thead th {
	background: rgba(255, 255, 255, 0.03);
	font-size: 13px;
	letter-spacing: 0.08em;
	color: var(--muted);
	font-weight: 700;
}
.compare-table thead th:nth-child(2) { color: var(--mint); }
.compare-table tbody tr:last-child td { border-bottom: 0; }
.compare-table td:first-child { font-weight: 600; }
.compare-table td.center, .compare-table th.center { text-align: center; }
.yes { color: var(--mint); font-weight: 700; }
.part { color: var(--warn); font-weight: 600; }
.no { color: #5f736b; }

/* ============ 价格 ============ */
.price-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 16px;
	align-items: stretch;
}
.price-card {
	position: relative;
	display: flex;
	flex-direction: column;
	background: var(--panel);
	border: 1px solid var(--line);
	border-radius: 22px;
	padding: 30px 26px;
	transition: transform 0.25s ease, border-color 0.25s ease;
}
.price-card:hover { transform: translateY(-4px); border-color: rgba(94, 242, 162, 0.4); }
.price-card.is-featured {
	background: linear-gradient(180deg, rgba(94, 242, 162, 0.16), rgba(94, 242, 162, 0.04) 55%, rgba(255, 255, 255, 0.02));
	border-color: rgba(94, 242, 162, 0.5);
	box-shadow: 0 20px 60px rgba(34, 201, 125, 0.16);
}
.price-flag {
	position: absolute;
	top: -12px;
	left: 24px;
	background: var(--lime);
	color: #12200a;
	font-size: 12px;
	font-weight: 800;
	padding: 4px 12px;
	border-radius: 999px;
}
.price-name { font-size: 15px; color: var(--muted); font-weight: 600; letter-spacing: 0.04em; }
.price-amount { margin: 14px 0 4px; font-size: 50px; font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.price-amount small { font-size: 20px; font-weight: 700; margin-right: 2px; }
.price-amount span { font-size: 15px; font-weight: 500; color: var(--muted); letter-spacing: 0; margin-left: 4px; }
.price-desc { font-size: 13.5px; color: var(--muted); min-height: 42px; }
.price-list { display: grid; gap: 9px; margin: 18px 0 24px; font-size: 14px; color: #c9d8d1; }
.price-list li { display: flex; gap: 9px; align-items: flex-start; }
.price-list svg { color: var(--mint); margin-top: 4px; flex: 0 0 auto; }
.price-card .btn { margin-top: auto; }
.price-note {
	margin-top: 26px;
	text-align: center;
	font-size: 13.5px;
	color: #7f958c;
}

/* ============ 规则库 ============ */
.rules-teaser {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 48px;
	align-items: center;
}
.rule-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.rule-chip {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 16px;
	border: 1px solid var(--line-strong);
	border-radius: 10px;
	font-size: 13.5px;
	color: #c9d8d1;
	background: rgba(255, 255, 255, 0.02);
}
.rule-chip i { width: 6px; height: 6px; border-radius: 50%; background: var(--mint); }
.rule-mock {
	background: #07100d;
	border: 1px solid var(--line);
	border-radius: 18px;
	padding: 22px;
	font-family: "SFMono-Regular", ui-monospace, Menlo, Consolas, monospace;
	font-size: 13px;
	line-height: 1.9;
	color: #a9c4b8;
	box-shadow: var(--shadow);
}
.rule-mock .c { color: #587267; }
.rule-mock .k { color: var(--mint); }
.rule-mock .v { color: #d8ff6e; }
.rule-mock-head { display: flex; gap: 6px; margin-bottom: 16px; }
.rule-mock-head i { width: 10px; height: 10px; border-radius: 50%; background: #23332c; }

/* ============ 帮助 ============ */
.help-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.help-card {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 26px 24px;
	background: var(--panel);
	border: 1px solid var(--line);
	border-radius: 16px;
	transition: border-color 0.2s ease, transform 0.2s ease;
}
.help-card:hover { border-color: rgba(94, 242, 162, 0.4); transform: translateY(-3px); }
.help-card span { font-size: 12px; letter-spacing: 0.14em; color: var(--mint); font-weight: 700; }
.help-card h3 { font-size: 18px; }
.help-card p { margin: 0; font-size: 13.5px; color: var(--muted); }

/* ============ CTA ============ */
.cta-band {
	position: relative;
	overflow: hidden;
	margin: 0 auto;
	width: min(var(--container), 92vw);
	background: linear-gradient(120deg, #10352a, #0a1a14 60%);
	border: 1px solid rgba(94, 242, 162, 0.28);
	border-radius: 28px;
	padding: 54px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 30px;
}
.cta-band::before {
	content: "";
	position: absolute;
	width: 420px;
	height: 420px;
	right: -80px;
	top: -180px;
	background: radial-gradient(circle, rgba(94, 242, 162, 0.28), transparent 65%);
}
.cta-band h2 { font-size: clamp(26px, 3vw, 40px); margin-bottom: 10px; }
.cta-band p { color: #a9c4b8; margin: 0; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; position: relative; z-index: 1; }

/* ============ 页脚 ============ */
.site-footer {
	margin-top: 96px;
	border-top: 1px solid var(--line);
	background: #050908;
	padding: 64px 0 26px;
}
.footer-grid {
	display: grid;
	grid-template-columns: 1.6fr 1fr 1fr 1fr;
	gap: 36px;
	padding-bottom: 40px;
	border-bottom: 1px solid var(--line);
}
.footer-desc { margin: 18px 0 16px; font-size: 14px; color: var(--muted); max-width: 360px; }
.footer-buy { color: var(--mint); font-size: 14px; font-weight: 600; }
.footer-col h3 { font-size: 14px; letter-spacing: 0.06em; margin-bottom: 16px; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { font-size: 14px; color: var(--muted); transition: color 0.18s ease; }
.footer-col a:hover { color: var(--mint); }
.footer-note { padding: 22px 0; border-bottom: 1px solid var(--line); }
.footer-note p { margin: 0; font-size: 12.5px; line-height: 1.8; color: #70857c; }
.footer-note strong { color: #93a9a0; }
.footer-bottom {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding-top: 22px;
	font-size: 12.5px;
	color: #64786f;
	flex-wrap: wrap;
}
.footer-links { display: flex; gap: 18px; }
.footer-links a:hover { color: var(--mint); }

/* ============ 内页 Hero ============ */
.page-hero {
	padding: 150px 0 60px;
	border-bottom: 1px solid var(--line);
	position: relative;
	overflow: hidden;
}
.page-hero::before {
	content: "";
	position: absolute;
	width: 700px;
	height: 400px;
	right: -10%;
	top: -40%;
	background: radial-gradient(circle, rgba(94, 242, 162, 0.14), transparent 65%);
	pointer-events: none;
}
.page-hero h1 { font-size: clamp(38px, 4.4vw, 62px); margin-bottom: 16px; }
.page-hero p { color: var(--muted); font-size: 17px; max-width: 680px; margin: 0; }

/* ============ 下载页 ============ */
.dl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.dl-card {
	display: flex;
	flex-direction: column;
	background: var(--panel);
	border: 1px solid var(--line);
	border-radius: 22px;
	padding: 28px;
	transition: border-color 0.2s ease, transform 0.2s ease;
}
.dl-card:hover { border-color: rgba(94, 242, 162, 0.4); transform: translateY(-4px); }
.dl-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.dl-icon {
	width: 42px;
	height: 42px;
	border-radius: 12px;
	background: rgba(94, 242, 162, 0.1);
	color: var(--mint);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 1px solid rgba(94, 242, 162, 0.22);
}
.dl-head h3 { font-size: 20px; margin: 0; }
.dl-head small { display: block; color: var(--muted); font-size: 12.5px; font-weight: 500; margin-top: 2px; }
.dl-shot {
	background: #fff;
	border-radius: 12px;
	overflow: hidden;
	margin-bottom: 18px;
	border: 1px solid rgba(255, 255, 255, 0.16);
}
.dl-shot.phone { background: #0d1512; display: flex; justify-content: center; padding: 12px 0 0; }
.dl-shot.phone img { width: 62%; }
.dl-card p { color: var(--muted); font-size: 14px; }
.dl-card .ag-dc { margin-top: auto; }
.dl-req { margin-top: 14px; font-size: 12.5px; color: #71877d; }
.dl-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 20px; }
.dl-step {
	background: var(--panel);
	border: 1px solid var(--line);
	border-radius: 16px;
	padding: 24px;
}
.dl-step b {
	display: inline-flex;
	width: 30px;
	height: 30px;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: var(--mint);
	color: #04130c;
	font-size: 14px;
	margin-bottom: 14px;
}
.dl-step h3 { font-size: 16px; margin-bottom: 8px; }
.dl-step p { margin: 0; font-size: 13.5px; color: var(--muted); }

/* ============ 规则库页 ============ */
.rules-toolbar {
	display: flex;
	gap: 12px;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	margin-bottom: 30px;
}
.rules-filters { display: flex; gap: 8px; flex-wrap: wrap; }
.rules-filter {
	padding: 8px 16px;
	border-radius: 999px;
	border: 1px solid var(--line-strong);
	background: transparent;
	color: var(--muted);
	font-size: 13.5px;
	cursor: pointer;
	transition: all 0.2s ease;
}
.rules-filter.is-active { background: var(--mint); color: #04130c; border-color: var(--mint); }
.rules-search {
	position: relative;
	min-width: 260px;
	flex: 0 1 320px;
}
.rules-search input {
	width: 100%;
	background: var(--panel);
	border: 1px solid var(--line-strong);
	border-radius: 999px;
	color: var(--text);
	padding: 11px 18px 11px 42px;
	font-size: 14px;
	outline: none;
	transition: border-color 0.2s ease;
}
.rules-search input:focus { border-color: var(--mint); }
.rules-search svg { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: #6d857c; }
.rules-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.rule-card {
	display: flex;
	flex-direction: column;
	background: var(--panel);
	border: 1px solid var(--line);
	border-radius: 18px;
	padding: 24px;
	transition: border-color 0.2s ease, transform 0.2s ease;
}
.rule-card:hover { border-color: rgba(94, 242, 162, 0.4); transform: translateY(-3px); }
.rule-card[hidden] { display: none; }
.rule-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.rule-card h3 { font-size: 17px; }
.rule-badge {
	font-size: 11px;
	padding: 3px 9px;
	border-radius: 999px;
	background: rgba(216, 255, 110, 0.12);
	color: var(--lime);
	border: 1px solid rgba(216, 255, 110, 0.3);
	white-space: nowrap;
}
.rule-card p { font-size: 13.5px; color: var(--muted); flex: 1; }
.rule-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.rule-tags span {
	font-size: 11.5px;
	color: #8ba398;
	background: rgba(255, 255, 255, 0.04);
	border-radius: 5px;
	padding: 2px 7px;
}
.rule-actions { display: flex; gap: 8px; }
.rule-actions .btn { flex: 1; }
.rules-empty { display: none; text-align: center; color: var(--muted); padding: 60px 0; }
.rules-empty.is-visible { display: block; }
.rules-guide { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 22px; }

/* 代码块 */
.code-block {
	position: relative;
	background: #07100d;
	border: 1px solid var(--line);
	border-radius: 14px;
	padding: 18px 20px;
	overflow: auto;
}
.code-block code {
	font-family: "SFMono-Regular", ui-monospace, Menlo, Consolas, monospace;
	font-size: 13px;
	color: #b7d3c6;
	white-space: pre;
}

/* ============ FAQ ============ */
.faq-list { display: grid; gap: 12px; max-width: 900px; margin: 0 auto; }
.faq-item {
	background: var(--panel);
	border: 1px solid var(--line);
	border-radius: 14px;
	overflow: hidden;
	transition: border-color 0.2s ease;
}
.faq-item[open] { border-color: rgba(94, 242, 162, 0.36); }
.faq-item summary {
	list-style: none;
	cursor: pointer;
	padding: 20px 24px;
	font-weight: 700;
	font-size: 16.5px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
	content: "+";
	font-size: 22px;
	font-weight: 400;
	color: var(--mint);
	transition: transform 0.2s ease;
	flex: 0 0 auto;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-body { padding: 0 24px 22px; color: var(--muted); font-size: 14.5px; }
.faq-body p:last-child { margin-bottom: 0; }
.faq-body a { color: var(--mint); text-decoration: underline; text-underline-offset: 3px; }
.faq-group-title {
	max-width: 900px;
	margin: 48px auto 18px;
	font-size: 22px;
	display: flex;
	align-items: center;
	gap: 12px;
}
.faq-group-title::before {
	content: "";
	width: 4px;
	height: 22px;
	border-radius: 3px;
	background: var(--mint);
}

/* ============ 文档中心 ============ */
.docs-cats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.docs-cat {
	background: var(--panel);
	border: 1px solid var(--line);
	border-radius: 20px;
	padding: 30px;
	display: flex;
	flex-direction: column;
}
.docs-cat-head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.cat-icon {
	width: 42px;
	height: 42px;
	border-radius: 12px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: rgba(94, 242, 162, 0.1);
	border: 1px solid rgba(94, 242, 162, 0.22);
	color: var(--mint);
}
.docs-cat h2 { font-size: 21px; }
.docs-cat > p { color: var(--muted); font-size: 14px; margin-bottom: 18px; }
.docs-cat-list { display: grid; gap: 2px; }
.docs-cat-list a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 10px 12px;
	border-radius: 8px;
	font-size: 14px;
	color: #c9d8d1;
	transition: background 0.18s ease, color 0.18s ease;
}
.docs-cat-list a:hover { background: rgba(255, 255, 255, 0.04); color: var(--mint); }
.docs-cat-list a.sub { color: #94a99f; font-size: 13.5px; }
.docs-cat-foot { margin-top: auto; padding-top: 18px; }
.docs-cat-foot a { color: var(--mint); font-size: 13.5px; font-weight: 600; }
.doc-search { display: flex; gap: 10px; margin-top: 26px; max-width: 620px; }
.doc-search input {
	flex: 1;
	background: var(--panel);
	border: 1px solid var(--line-strong);
	border-radius: 999px;
	color: var(--text);
	padding: 13px 20px;
	font-size: 15px;
	outline: none;
}
.doc-search input:focus { border-color: var(--mint); }
.quick-links { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.quick-links a {
	font-size: 13px;
	padding: 6px 14px;
	border: 1px solid var(--line-strong);
	border-radius: 999px;
	color: var(--muted);
}
.quick-links a:hover { border-color: var(--mint); color: var(--mint); }

.doc-layout { display: grid; grid-template-columns: 280px 1fr; gap: 44px; padding: 60px 0 0; align-items: start; }
.doc-sidebar {
	position: sticky;
	top: 100px;
	max-height: calc(100vh - 130px);
	overflow: auto;
	background: var(--panel);
	border: 1px solid var(--line);
	border-radius: 16px;
	padding: 18px;
	font-size: 14px;
}
.doc-sidebar ul { display: grid; gap: 2px; }
.doc-sidebar a { display: block; padding: 7px 10px; border-radius: 7px; color: #a9c0b5; }
.doc-sidebar a:hover { background: rgba(255, 255, 255, 0.04); color: var(--mint); }
.doc-sidebar .current_page_item > a,
.doc-sidebar .current-menu-item > a { color: var(--mint); background: rgba(94, 242, 162, 0.08); }
/* WeDocs 侧栏 */
.doc-sidebar .wedocs-sidebar { padding: 0; }
.doc-sidebar .widget-title {
	font-size: 13px;
	letter-spacing: 0.1em;
	color: #7f958c;
	margin: 0 0 12px;
	padding: 0 10px;
	font-weight: 700;
}
.doc-sidebar .wedocs-single-search-input { display: none; }
.doc-sidebar .doc-nav-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.doc-sidebar .doc-nav-list li { list-style: none; }
.doc-sidebar .doc-nav-list li a {
	display: block;
	padding: 7px 10px;
	border-radius: 7px;
	color: #a9c0b5;
	font-size: 14px;
}
.doc-sidebar .doc-nav-list li a:hover { background: rgba(255, 255, 255, 0.04); color: var(--mint); }
.doc-sidebar .doc-nav-list li.current_page_item > a {
	color: var(--mint);
	background: rgba(94, 242, 162, 0.08);
}
.doc-sidebar .doc-nav-list ul.children { padding-left: 8px; margin-top: 2px; }
.doc-article { padding-bottom: 40px; min-width: 0; }
.doc-breadcrumb { display: flex; gap: 8px; flex-wrap: wrap; font-size: 13px; color: #71877d; margin-bottom: 20px; }
.doc-breadcrumb a:hover { color: var(--mint); }
.doc-breadcrumb .cur { color: #a9c0b5; }
.doc-article > h1 { font-size: clamp(30px, 3vw, 42px); margin-bottom: 10px; }
.doc-meta { font-size: 13px; color: #6d857c; margin-bottom: 30px; }
.doc-content { color: #c9d8d1; font-size: 15.5px; }
.doc-content h2 { font-size: 24px; margin: 36px 0 14px; }
.doc-content h3 { font-size: 19px; margin: 28px 0 12px; }
.doc-content p { margin-bottom: 16px; }
.doc-content ul, .doc-content ol { margin: 0 0 18px; padding-left: 22px; list-style: disc; }
.doc-content ol { list-style: decimal; }
.doc-content li { margin-bottom: 8px; }
.doc-content a { color: var(--mint); text-decoration: underline; text-underline-offset: 3px; }
.doc-content img { border-radius: 12px; margin: 18px 0; }
.doc-content blockquote {
	margin: 20px 0;
	padding: 14px 20px;
	border-left: 3px solid var(--mint);
	background: rgba(94, 242, 162, 0.06);
	border-radius: 0 10px 10px 0;
	color: #b7d3c6;
}
.doc-content table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 14px; }
.doc-content th, .doc-content td { border: 1px solid var(--line); padding: 10px 14px; text-align: left; }
.doc-content th { background: rgba(255, 255, 255, 0.03); }
.doc-children { margin-top: 40px; }
.doc-children h2 { font-size: 20px; margin-bottom: 16px; }
.doc-child-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.doc-child-grid a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	background: var(--panel);
	border: 1px solid var(--line);
	border-radius: 10px;
	padding: 14px 16px;
	font-size: 14px;
}
.doc-child-grid a:hover { border-color: var(--mint); color: var(--mint); }
.doc-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 44px; }
.doc-pager a {
	background: var(--panel);
	border: 1px solid var(--line);
	border-radius: 12px;
	padding: 16px 18px;
}
.doc-pager a:hover { border-color: var(--mint); }
.doc-pager small { display: block; font-size: 12px; color: #6d857c; margin-bottom: 4px; }
.doc-pager strong { font-size: 14px; font-weight: 600; }
.doc-pager .is-next { text-align: right; }
.doc-cta {
	margin-top: 44px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	background: linear-gradient(120deg, rgba(94, 242, 162, 0.12), rgba(255, 255, 255, 0.02));
	border: 1px solid rgba(94, 242, 162, 0.26);
	border-radius: 16px;
	padding: 26px;
}
.doc-cta h3 { font-size: 19px; margin-bottom: 6px; }
.doc-cta p { margin: 0; color: var(--muted); font-size: 14px; }

/* ============ 关于页 ============ */
.prose { max-width: 820px; color: #c9d8d1; font-size: 15.5px; }
.prose h2 { font-size: 26px; margin: 40px 0 14px; }
.prose h3 { font-size: 19px; margin: 28px 0 10px; }
.prose p { margin-bottom: 16px; }
.prose ul { list-style: disc; padding-left: 22px; margin-bottom: 18px; }
.prose li { margin-bottom: 8px; }
.prose a { color: var(--mint); }
.about-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 48px; align-items: start; }
.about-panel {
	background: var(--panel);
	border: 1px solid var(--line);
	border-radius: 20px;
	padding: 30px;
}
.about-panel h3 { font-size: 19px; margin-bottom: 14px; }
.about-panel p { color: var(--muted); font-size: 14px; }
.about-stat { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.about-stat:last-child { border-bottom: 0; }
.about-stat b { font-size: 24px; color: var(--mint); min-width: 56px; }
.about-stat span { font-size: 14px; color: var(--muted); padding-top: 4px; }

/* ============ 通用页面 / 404 ============ */
.page-wrap { padding: 150px 0 40px; }
.page-title { font-size: clamp(34px, 4vw, 52px); margin-bottom: 20px; }
.entry-content { color: #c9d8d1; font-size: 15.5px; max-width: 860px; }
.entry-content h2 { font-size: 26px; margin: 36px 0 14px; }
.entry-content h3 { font-size: 19px; margin: 26px 0 10px; }
.entry-content ul { list-style: disc; padding-left: 22px; margin-bottom: 18px; }
.entry-content a { color: var(--mint); }
.error-404 { text-align: center; padding: 200px 0 120px; }
.error-404 h1 { font-size: clamp(80px, 16vw, 180px); color: var(--mint); line-height: 1; }
.error-404 p { color: var(--muted); margin: 20px 0 30px; }

/* ============ 入场动画 ============ */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; }
	.reveal { opacity: 1; transform: none; }
}

/* ============ 响应式 ============ */
@media (max-width: 1080px) {
	.hero-inner { gap: 36px; }
	.feature-grid { grid-template-columns: repeat(2, 1fr); }
	.help-grid { grid-template-columns: repeat(2, 1fr); }
	.price-grid { grid-template-columns: repeat(2, 1fr); }
	.dl-grid, .rules-grid { grid-template-columns: repeat(2, 1fr); }
	.footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
	.footer-brand { grid-column: 1 / -1; }
	.docs-cats { grid-template-columns: 1fr; }
	.doc-layout { grid-template-columns: 240px 1fr; gap: 28px; }
	.about-grid { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
	.header-inner { height: 68px; gap: 14px; }
	.site-nav {
		position: fixed;
		top: 68px;
		left: 0;
		right: 0;
		background: rgba(6, 10, 9, 0.98);
		border-bottom: 1px solid var(--line);
		padding: 18px 4vw 24px;
		display: none;
	}
	.nav-open .site-nav { display: block; }
	.nav-list { flex-direction: column; align-items: stretch; gap: 2px; }
	.nav-list a { padding: 12px 14px; font-size: 16px; }
	.nav-toggle { display: block; }
	.header-buy { display: none; }
	.hero { padding: 130px 0 60px; }
	.hero-inner { grid-template-columns: 1fr; }
	.hero-visual { order: -1; min-height: 0; padding-bottom: 40px; }
	.shot-float { width: 42%; right: 0; bottom: -22px; }
	.shot-badge { left: 6px; top: -14px; }
	.stats { grid-template-columns: repeat(2, 1fr); }
	.section { padding: 72px 0; }
	.section-head { margin-bottom: 36px; }
	.platform-box { grid-template-columns: 1fr; padding: 28px; gap: 28px; }
	.platform-visual { order: -1; }
	.price-grid { grid-template-columns: 1fr; }
	.dl-steps { grid-template-columns: repeat(2, 1fr); }
	.rules-teaser { grid-template-columns: 1fr; gap: 28px; }
	.rules-guide { grid-template-columns: repeat(2, 1fr); }
	.cta-band { flex-direction: column; align-items: flex-start; padding: 34px; }
	.footer-grid { grid-template-columns: 1fr 1fr; }
	.doc-layout { grid-template-columns: 1fr; }
	.doc-sidebar { position: static; max-height: none; }
	.dl-grid, .rules-grid { grid-template-columns: 1fr; }
	.faq-item summary { padding: 16px 18px; font-size: 15.5px; }
	.faq-body { padding: 0 18px 18px; }
	.doc-cta { flex-direction: column; align-items: flex-start; }
	.page-hero { padding: 120px 0 44px; }
	.doc-child-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
	.hero h1 { font-size: clamp(38px, 12vw, 56px); }
	.hero-sub { font-size: 16px; }
	.hero-actions .btn { flex: 1; }
	.stats { grid-template-columns: 1fr; }
	.feature-grid { grid-template-columns: 1fr; }
	.help-grid { grid-template-columns: 1fr; }
	.dl-steps { grid-template-columns: 1fr; }
	.footer-grid { grid-template-columns: 1fr; }
	.footer-bottom { flex-direction: column; align-items: flex-start; }
	.rules-toolbar { align-items: stretch; }
	.rules-search { flex: 1 1 100%; }
	.doc-pager { grid-template-columns: 1fr; }
	.doc-pager .is-next { text-align: left; }
}
