/*
Theme Name: AWSGood
Theme URI: https://awsgood.com
Author: awsgood.com
Author URI: https://awsgood.com
Description: AWS 垂直站主题：服务页 / 教程 / 错误排查 / 选型对比 / 术语表 / 认证题库六件套。深色科技风（深空底 + 青紫渐变 + 数据网格），内置 SEO meta、JSON-LD、目录(TOC)、FAQ、服务 CTA，兼容 Polylang 中英双语与 PHP 8.5。
Version: 2.1.3
License: GNU General Public License v2 or later
Text Domain: awsgood
Requires PHP: 8.1
Requires at least: 6.4
Tested up to: 7.1
Tags: aws, cloud, dark, custom-colors, responsive-layout, translation-ready, blog
*/

/* =========================================================
   1. 设计令牌
   ========================================================= */
:root {
	/* 品牌主色：青 → 靛 → 品红，整站的“算力感”来源 */
	--ag-primary: #22d3ee;
	--ag-primary-dark: #67e8f9;
	--ag-primary-soft: rgba(34, 211, 238, .12);
	--ag-accent: #8b7cf6;
	--ag-accent-2: #f472b6;
	--ag-aws: #ff9900;
	--ag-grad: linear-gradient(120deg, #22d3ee 0%, #8b7cf6 52%, #f472b6 100%);
	--ag-grad-soft: linear-gradient(120deg, rgba(34, 211, 238, .16), rgba(139, 124, 246, .14) 55%, rgba(244, 114, 182, .12));

	/* 层级底色 */
	--ag-bg: #070b13;
	--ag-bg-soft: #0a101b;
	--ag-surface: #0e1626;
	--ag-surface-2: #121c2e;
	--ag-surface-3: #172033;

	/* 文本（变量名沿用旧名，语义已反转为“亮色标题”） */
	--ag-navy: #eaf1ff;
	--ag-navy-soft: #b6c5dc;
	--ag-text: #c9d6ea;
	--ag-text-muted: #8698b6;
	--ag-link: #5ee7f6;

	/* 描边与阴影 */
	--ag-border: rgba(122, 160, 220, .16);
	--ag-border-strong: rgba(122, 160, 220, .3);
	--ag-radius: 14px;
	--ag-radius-lg: 20px;
	--ag-shadow: 0 1px 0 rgba(255, 255, 255, .03) inset, 0 18px 40px -24px rgba(0, 0, 0, .9);
	--ag-shadow-glow: 0 0 0 1px rgba(34, 211, 238, .28), 0 24px 60px -30px rgba(34, 211, 238, .55);

	--ag-wrap: 1180px;
	--ag-mono: "SFMono-Regular", "JetBrains Mono", Consolas, "Liberation Mono", Menlo, monospace;
}

/* =========================================================
   2. 基础
   ========================================================= */
*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: var(--ag-bg);
	color: var(--ag-text);
	font-family: -apple-system, "SF Pro Text", "Segoe UI", "PingFang SC", "Microsoft YaHei", Roboto, Helvetica, Arial, sans-serif;
	font-size: 16.5px;
	line-height: 1.8;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-x: hidden;
}

/* 全站数据网格：固定在最底层，随滚动保持“面板感” */
body::before {
	content: "";
	position: fixed;
	inset: 0;
	z-index: -2;
	pointer-events: none;
	background-image:
		linear-gradient(rgba(122, 160, 220, .055) 1px, transparent 1px),
		linear-gradient(90deg, rgba(122, 160, 220, .055) 1px, transparent 1px);
	background-size: 52px 52px;
	-webkit-mask-image: radial-gradient(ellipse 90% 55% at 50% 0%, #000 35%, transparent 100%);
	mask-image: radial-gradient(ellipse 90% 55% at 50% 0%, #000 35%, transparent 100%);
}

/* 顶部两团冷光，替代大面积 blur，性能更稳 */
body::after {
	content: "";
	position: fixed;
	top: -30vh;
	left: 50%;
	width: 140vw;
	height: 90vh;
	transform: translateX(-50%);
	z-index: -1;
	pointer-events: none;
	background:
		radial-gradient(46% 56% at 30% 30%, rgba(34, 211, 238, .12), transparent 62%),
		radial-gradient(42% 52% at 74% 22%, rgba(139, 124, 246, .13), transparent 64%);
}

a {
	color: var(--ag-link);
	text-decoration: none;
	transition: color .18s ease;
}

a:hover {
	color: #a5f3fc;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

button,
input,
select,
textarea {
	font: inherit;
}

:focus-visible {
	outline: 2px solid var(--ag-primary);
	outline-offset: 3px;
	border-radius: 4px;
}

::selection {
	background: rgba(34, 211, 238, .28);
	color: #f4fbff;
}

/* 细滚动条 */
* {
	scrollbar-width: thin;
	scrollbar-color: rgba(122, 160, 220, .35) transparent;
}

::-webkit-scrollbar {
	width: 10px;
	height: 10px;
}

::-webkit-scrollbar-thumb {
	background: rgba(122, 160, 220, .3);
	border-radius: 10px;
	border: 3px solid transparent;
	background-clip: content-box;
}

::-webkit-scrollbar-thumb:hover {
	background: rgba(34, 211, 238, .45);
	background-clip: content-box;
}

.wrap-inner {
	width: 100%;
	max-width: var(--ag-wrap);
	margin: 0 auto;
	padding: 0 20px;
}

/* =========================================================
   3. 顶部条 + 导航
   ========================================================= */
.ag-topbar {
	background: #04070d;
	border-bottom: 1px solid rgba(122, 160, 220, .1);
	color: #9fb0c9;
	font-size: 12.5px;
	letter-spacing: .01em;
}

.ag-topbar .wrap-inner {
	display: flex;
	gap: 18px;
	align-items: center;
	justify-content: space-between;
	min-height: 38px;
}

.ag-topbar a {
	color: #9fb0c9;
}

.ag-topbar a:hover {
	color: var(--ag-primary);
}

/* 顶栏左侧状态灯 */
.ag-topbar-status {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.ag-dot {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: #34d399;
	box-shadow: 0 0 0 3px rgba(52, 211, 153, .14);
	animation: ag-pulse 2.4s ease-in-out infinite;
}

@keyframes ag-pulse {
	0%, 100% { box-shadow: 0 0 0 3px rgba(52, 211, 153, .14); }
	50% { box-shadow: 0 0 0 6px rgba(52, 211, 153, .04); }
}

.ag-site-header {
	position: sticky;
	top: 0;
	z-index: 60;
	background: rgba(7, 11, 19, .72);
	backdrop-filter: saturate(140%) blur(16px);
	-webkit-backdrop-filter: saturate(140%) blur(16px);
	border-bottom: 1px solid var(--ag-border);
	transition: background .25s ease, border-color .25s ease;
}

.ag-site-header.is-stuck {
	background: rgba(6, 9, 16, .92);
	border-bottom-color: rgba(34, 211, 238, .22);
	box-shadow: 0 14px 40px -26px rgba(0, 0, 0, .95);
}

.ag-site-header .wrap-inner {
	display: flex;
	align-items: center;
	gap: 26px;
	min-height: 68px;
}

.ag-logo {
	display: flex;
	align-items: center;
	gap: 10px;
	font-weight: 700;
	font-size: 20px;
	letter-spacing: -.01em;
	color: var(--ag-navy);
}

.ag-logo:hover {
	color: var(--ag-navy);
}

.ag-logo img {
	height: 30px;
	width: auto;
}

.ag-logo span {
	background: var(--ag-grad);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.ag-nav {
	margin-left: auto;
}

.ag-nav ul {
	list-style: none;
	display: flex;
	gap: 26px;
	margin: 0;
	padding: 0;
}

.ag-nav a {
	position: relative;
	display: inline-block;
	padding: 8px 0;
	color: #b9c8de;
	font-weight: 500;
	font-size: 15px;
}

.ag-nav a::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 2px;
	height: 1.5px;
	border-radius: 2px;
	background: var(--ag-grad);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform .22s ease;
}

.ag-nav a:hover,
.ag-nav .current-menu-item > a {
	color: var(--ag-navy);
}

.ag-nav a:hover::after,
.ag-nav .current-menu-item > a::after {
	transform: scaleX(1);
}

.ag-nav-toggle {
	display: none;
	margin-left: auto;
	background: rgba(34, 211, 238, .1);
	color: var(--ag-primary);
	border: 1px solid rgba(34, 211, 238, .3);
	border-radius: 8px;
	padding: 8px 12px;
	cursor: pointer;
}

.ag-header-cta {
	background: var(--ag-grad);
	color: #04121a !important;
	padding: 9px 18px;
	border-radius: 10px;
	font-size: 14px;
	font-weight: 700;
	box-shadow: 0 10px 26px -14px rgba(34, 211, 238, .9);
	transition: transform .18s ease, box-shadow .18s ease;
}

.ag-header-cta:hover {
	text-decoration: none;
	transform: translateY(-1px);
	box-shadow: 0 16px 32px -14px rgba(139, 124, 246, .9);
}

/* =========================================================
   4. 首页 Hero
   ========================================================= */
.ag-hero {
	position: relative;
	overflow: hidden;
	padding: 84px 0 92px;
	border-bottom: 1px solid var(--ag-border);
	background:
		radial-gradient(760px 380px at 78% 8%, rgba(34, 211, 238, .16), transparent 62%),
		radial-gradient(620px 340px at 16% 0%, rgba(139, 124, 246, .16), transparent 64%),
		linear-gradient(180deg, #080d17 0%, #070b13 100%);
}

/* Hero 自己的密网格 + 顶部渐隐 */
.ag-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	background-image:
		linear-gradient(rgba(34, 211, 238, .07) 1px, transparent 1px),
		linear-gradient(90deg, rgba(34, 211, 238, .07) 1px, transparent 1px);
	background-size: 34px 34px;
	-webkit-mask-image: radial-gradient(ellipse 70% 80% at 70% 30%, #000 10%, transparent 78%);
	mask-image: radial-gradient(ellipse 70% 80% at 70% 30%, #000 10%, transparent 78%);
}

/* 底边流光 */
.ag-hero::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 1px;
	background: linear-gradient(90deg, transparent, rgba(34, 211, 238, .5), rgba(139, 124, 246, .45), transparent);
}

.ag-hero .wrap-inner {
	position: relative;
	z-index: 1;
}

.ag-status {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	margin: 0 0 22px;
	padding: 6px 14px 6px 12px;
	border: 1px solid rgba(34, 211, 238, .22);
	border-radius: 999px;
	background: rgba(34, 211, 238, .06);
	color: #9fd8e8;
	font-size: 13px;
	letter-spacing: .02em;
}

.ag-hero h1 {
	margin: 0 0 18px;
	font-size: clamp(32px, 4.6vw, 56px);
	line-height: 1.16;
	letter-spacing: -.02em;
	color: var(--ag-navy);
	font-weight: 800;
	max-width: 16em;
}

.ag-hero h1 em,
.ag-hero h1 strong {
	font-style: normal;
	white-space: nowrap;
	background: var(--ag-grad);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.ag-hero p {
	margin: 0 0 30px;
	max-width: 680px;
	font-size: 17.5px;
	color: #a9bacf;
}

.ag-hero-actions {
	display: flex;
	gap: 14px;
	flex-wrap: wrap;
	align-items: center;
}

/* ---------- 终端风搜索框 ---------- */
.ag-search-hero {
	margin-top: 34px;
	max-width: 620px;
}

.ag-term {
	border: 1px solid rgba(34, 211, 238, .22);
	border-radius: 14px;
	overflow: hidden;
	background: rgba(8, 13, 22, .88);
	box-shadow: 0 30px 70px -40px rgba(34, 211, 238, .65), inset 0 1px 0 rgba(255, 255, 255, .04);
	transition: border-color .2s ease, box-shadow .2s ease;
}

.ag-term:focus-within {
	border-color: rgba(34, 211, 238, .55);
	box-shadow: 0 30px 80px -38px rgba(34, 211, 238, .85), inset 0 1px 0 rgba(255, 255, 255, .06);
}

.ag-term-bar {
	display: flex;
	align-items: center;
	gap: 7px;
	padding: 9px 14px;
	border-bottom: 1px solid rgba(122, 160, 220, .12);
	background: rgba(255, 255, 255, .025);
}

.ag-term-bar i {
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: rgba(122, 160, 220, .32);
}

.ag-term-bar i:first-child { background: rgba(244, 114, 182, .55); }
.ag-term-bar i:nth-child(2) { background: rgba(255, 193, 94, .55); }
.ag-term-bar i:nth-child(3) { background: rgba(52, 211, 153, .55); }

.ag-term-bar em {
	margin-left: 8px;
	font-family: var(--ag-mono);
	font-style: normal;
	font-size: 11.5px;
	letter-spacing: .08em;
	color: #6f839e;
}

.ag-term-form {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 4px 8px 4px 16px;
}

.ag-term-prompt {
	font-family: var(--ag-mono);
	color: var(--ag-primary);
	font-size: 16px;
	user-select: none;
}

.ag-term-form input {
	flex: 1;
	min-width: 0;
	background: none;
	border: 0;
	outline: none;
	color: #e6eefb;
	font-family: var(--ag-mono);
	font-size: 14.5px;
	padding: 13px 0;
}

.ag-term-form input::placeholder {
	color: #5f7591;
}

.ag-term-form button {
	border: 0;
	border-radius: 9px;
	background: var(--ag-grad);
	color: #04121a;
	font-weight: 700;
	font-size: 14px;
	padding: 9px 18px;
	cursor: pointer;
	transition: filter .18s ease;
}

.ag-term-form button:hover {
	filter: brightness(1.08);
}

/* =========================================================
   5. 按钮
   ========================================================= */
.ag-btn {
	display: inline-block;
	background: var(--ag-grad);
	color: #04121a;
	padding: 12px 26px;
	border-radius: 11px;
	font-weight: 700;
	font-size: 15px;
	box-shadow: 0 14px 34px -18px rgba(34, 211, 238, .95);
	transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.ag-btn:hover {
	color: #04121a;
	text-decoration: none;
	transform: translateY(-2px);
	filter: brightness(1.06);
	box-shadow: 0 20px 42px -18px rgba(139, 124, 246, .95);
}

.ag-btn-ghost {
	background: rgba(122, 160, 220, .06);
	border: 1px solid var(--ag-border-strong);
	color: var(--ag-navy);
	box-shadow: none;
}

.ag-btn-ghost:hover {
	background: rgba(34, 211, 238, .1);
	border-color: rgba(34, 211, 238, .45);
	color: var(--ag-navy);
	box-shadow: 0 16px 34px -24px rgba(34, 211, 238, .8);
}

/* =========================================================
   6. 区块与卡片
   ========================================================= */
.ag-section {
	padding: 64px 0;
	position: relative;
}

.ag-section-alt {
	background: linear-gradient(180deg, rgba(122, 160, 220, .03), rgba(122, 160, 220, .015));
	border-top: 1px solid rgba(122, 160, 220, .08);
	border-bottom: 1px solid rgba(122, 160, 220, .08);
}

/* 页面内的独立面板（如服务流程） */
.ag-panel {
	padding: 34px 36px;
	border: 1px solid var(--ag-border);
	border-radius: var(--ag-radius-lg);
	background: linear-gradient(180deg, rgba(18, 28, 46, .75), rgba(10, 16, 26, .82));
	box-shadow: var(--ag-shadow);
}

.ag-panel-title {
	margin: 0 0 16px;
	font-size: 20px;
	letter-spacing: -.01em;
	color: var(--ag-navy);
}

@media (max-width: 640px) {
	.ag-panel {
		padding: 24px 20px;
	}
}

.ag-section-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 14px;
	flex-wrap: wrap;
	margin-bottom: 28px;
}

.ag-section-head h2 {
	margin: 0;
	font-size: 27px;
	letter-spacing: -.01em;
	color: var(--ag-navy);
	display: flex;
	align-items: center;
	gap: 12px;
	position: relative;
	padding-bottom: 0;
}

/* 章节序号：01 / 02 / … */
.ag-idx {
	font-family: var(--ag-mono);
	font-size: 12px;
	font-weight: 500;
	letter-spacing: .16em;
	color: var(--ag-primary);
	padding: 4px 8px;
	border: 1px solid rgba(34, 211, 238, .28);
	border-radius: 6px;
	background: rgba(34, 211, 238, .07);
	line-height: 1;
}

.ag-section-head a {
	font-size: 14px;
	color: #8fa4c2;
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.ag-section-head a:hover {
	color: var(--ag-primary);
}

.ag-grid {
	display: grid;
	gap: 20px;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.ag-card {
	position: relative;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid var(--ag-border);
	border-radius: var(--ag-radius-lg);
	background: linear-gradient(180deg, rgba(20, 30, 48, .92), rgba(11, 17, 28, .94));
	box-shadow: var(--ag-shadow);
	transition: transform .22s cubic-bezier(.22, 1, .36, 1), border-color .22s ease, box-shadow .22s ease;
}

/* 顶部 1px 渐变线：hover 时点亮 */
.ag-card::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 1.5px;
	background: var(--ag-grad);
	opacity: 0;
	transition: opacity .22s ease;
	z-index: 2;
}

.ag-card:hover {
	transform: translateY(-4px);
	border-color: rgba(34, 211, 238, .34);
	box-shadow: var(--ag-shadow-glow);
}

.ag-card:hover::before {
	opacity: 1;
}

.ag-card-thumb {
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background:
		radial-gradient(circle at 30% 20%, rgba(34, 211, 238, .14), transparent 60%),
		var(--ag-surface-2);
	border-bottom: 1px solid rgba(122, 160, 220, .1);
}

.ag-card-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: .92;
	transition: transform .4s ease, opacity .3s ease;
}

.ag-card:hover .ag-card-thumb img {
	transform: scale(1.035);
	opacity: 1;
}

.ag-card-body {
	padding: 18px 20px 22px;
	display: flex;
	flex-direction: column;
	gap: 9px;
	flex: 1;
}

.ag-card-meta {
	font-size: 12px;
	color: var(--ag-text-muted);
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	align-items: center;
	font-family: var(--ag-mono);
	letter-spacing: .03em;
}

.ag-badge {
	background: rgba(34, 211, 238, .1);
	color: #7ee8f7;
	border: 1px solid rgba(34, 211, 238, .24);
	border-radius: 5px;
	padding: 2px 8px;
	font-size: 11.5px;
	font-weight: 600;
	letter-spacing: .04em;
}

.ag-badge-error {
	background: rgba(255, 107, 107, .1);
	color: #ff9d9d;
	border-color: rgba(255, 107, 107, .28);
}

.ag-badge-compare {
	background: rgba(139, 124, 246, .12);
	color: #b3a8ff;
	border-color: rgba(139, 124, 246, .3);
}

.ag-card-title {
	margin: 0;
	font-size: 17.5px;
	line-height: 1.55;
	letter-spacing: -.005em;
}

.ag-card-title a {
	color: var(--ag-navy);
}

.ag-card-title a:hover {
	color: var(--ag-primary-dark);
}

.ag-card-excerpt {
	margin: 0;
	color: var(--ag-text-muted);
	font-size: 14px;
	line-height: 1.7;
}

/* =========================================================
   7. 正文区
   ========================================================= */
.ag-main {
	background: var(--ag-bg);
	padding: 44px 0 72px;
	min-height: 60vh;
}

.ag-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 306px;
	gap: 44px;
	align-items: start;
}

.ag-layout-full {
	grid-template-columns: minmax(0, 1fr);
}

.ag-article h1 {
	margin: 0 0 14px;
	font-size: clamp(26px, 3vw, 38px);
	line-height: 1.28;
	letter-spacing: -.02em;
	color: var(--ag-navy);
	font-weight: 800;
}

.ag-article-meta {
	display: flex;
	gap: 14px;
	flex-wrap: wrap;
	margin-bottom: 24px;
	padding-bottom: 18px;
	border-bottom: 1px solid var(--ag-border);
	color: var(--ag-text-muted);
	font-size: 13.5px;
	font-family: var(--ag-mono);
	letter-spacing: .02em;
}

.ag-article-tags {
	display: inline-flex;
	gap: 8px;
	flex-wrap: wrap;
}

.ag-article-tags a {
	color: var(--ag-text-muted);
	font-size: 12.5px;
	font-family: var(--ag-mono);
}

.ag-article-tags a:hover {
	color: var(--ag-primary);
}

.ag-article-thumb {
	margin-bottom: 26px;
	border-radius: var(--ag-radius);
	overflow: hidden;
	border: 1px solid var(--ag-border);
}

.ag-content {
	font-size: 16.5px;
	color: #c3d1e6;
}

.ag-content h2 {
	position: relative;
	margin: 42px 0 16px;
	padding-left: 16px;
	font-size: 24px;
	line-height: 1.42;
	letter-spacing: -.01em;
	color: var(--ag-navy);
	border-left: 0;
}

.ag-content h2::before {
	content: "";
	position: absolute;
	left: 0;
	top: .28em;
	bottom: .28em;
	width: 3px;
	border-radius: 2px;
	background: var(--ag-grad);
}

.ag-content h3 {
	margin: 30px 0 12px;
	font-size: 19px;
	color: var(--ag-navy);
}

.ag-content p {
	margin: 0 0 17px;
}

.ag-content a {
	color: var(--ag-link);
	text-decoration: underline;
	text-decoration-color: rgba(94, 231, 246, .35);
	text-underline-offset: 3px;
}

.ag-content a:hover {
	text-decoration-color: currentColor;
}

.ag-content ul,
.ag-content ol {
	margin: 0 0 18px;
	padding-left: 24px;
}

.ag-content li {
	margin-bottom: 8px;
}

.ag-content li::marker {
	color: rgba(34, 211, 238, .75);
}

.ag-content strong {
	color: #edf4ff;
}

.ag-content blockquote {
	margin: 22px 0;
	padding: 16px 20px;
	border: 1px solid rgba(34, 211, 238, .18);
	border-left: 3px solid var(--ag-primary);
	border-radius: 0 12px 12px 0;
	background: rgba(34, 211, 238, .05);
	color: #b9cbe2;
}

.ag-content blockquote p:last-child {
	margin-bottom: 0;
}

.ag-content hr {
	margin: 34px 0;
	border: 0;
	height: 1px;
	background: linear-gradient(90deg, transparent, var(--ag-border-strong), transparent);
}

/* 代码块：模拟终端窗口 */
.ag-content pre {
	position: relative;
	margin: 22px 0;
	padding: 42px 18px 18px;
	background: #05080f;
	border: 1px solid rgba(122, 160, 220, .18);
	border-radius: 12px;
	overflow-x: auto;
	font-size: 13.5px;
	line-height: 1.7;
	color: #b9cbe2;
	tab-size: 4;
}

.ag-content pre::before {
	content: "";
	position: absolute;
	top: 14px;
	left: 16px;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: rgba(244, 114, 182, .6);
	box-shadow: 14px 0 0 rgba(255, 193, 94, .55), 28px 0 0 rgba(52, 211, 153, .5);
}

.ag-content code {
	font-family: var(--ag-mono);
}

.ag-content :not(pre) > code {
	padding: 1.5px 6px;
	border: 1px solid rgba(122, 160, 220, .2);
	border-radius: 5px;
	background: rgba(122, 160, 220, .08);
	color: #8ee9f8;
	font-size: 14px;
}

.ag-table-wrap {
	overflow-x: auto;
	margin: 24px 0;
	border: 1px solid var(--ag-border);
	border-radius: 12px;
}

.ag-content table {
	width: 100%;
	border-collapse: collapse;
	font-size: 15px;
}

.ag-content th,
.ag-content td {
	padding: 11px 14px;
	text-align: left;
	border-bottom: 1px solid rgba(122, 160, 220, .12);
}

.ag-content th {
	background: rgba(34, 211, 238, .07);
	color: var(--ag-navy);
	font-weight: 600;
	font-size: 13.5px;
	letter-spacing: .02em;
}

.ag-content tbody tr:nth-child(even) {
	background: rgba(122, 160, 220, .03);
}

.ag-content tbody tr:last-child td {
	border-bottom: 0;
}

/* TOC */
.ag-toc {
	position: relative;
	margin: 0 0 30px;
	padding: 18px 20px 18px 22px;
	border: 1px solid var(--ag-border);
	border-radius: var(--ag-radius);
	background: linear-gradient(180deg, rgba(18, 28, 46, .8), rgba(11, 17, 28, .8));
	overflow: hidden;
}

.ag-toc::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: 2px;
	background: var(--ag-grad);
}

.ag-toc-title {
	margin: 0 0 10px;
	font-family: var(--ag-mono);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--ag-primary);
}

.ag-toc ol {
	margin: 0;
	padding-left: 20px;
}

.ag-toc li {
	margin: 6px 0;
}

.ag-toc a {
	font-size: 14.5px;
	color: #a9bdd8;
}

.ag-toc a:hover {
	color: var(--ag-primary);
}

/* FAQ */
.ag-faq {
	margin: 40px 0 0;
	padding-top: 28px;
	border-top: 1px solid var(--ag-border);
}

.ag-faq h2 {
	border: 0;
	padding: 0;
	font-size: 22px;
}

.ag-faq h2::before {
	display: none;
}

.ag-faq-item {
	padding: 16px 0;
	border-bottom: 1px dashed rgba(122, 160, 220, .16);
}

.ag-faq-q {
	margin: 0 0 7px;
	font-weight: 600;
	color: var(--ag-navy);
	font-size: 16px;
}

.ag-faq-a {
	margin: 0;
	color: var(--ag-text-muted);
}

/* CTA */
.ag-cta {
	position: relative;
	display: flex;
	gap: 28px;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	margin: 44px 0 0;
	padding: 34px 36px;
	border: 1px solid rgba(34, 211, 238, .26);
	border-radius: var(--ag-radius-lg);
	background:
		radial-gradient(600px 220px at 12% 0%, rgba(34, 211, 238, .16), transparent 60%),
		radial-gradient(520px 220px at 88% 100%, rgba(139, 124, 246, .16), transparent 62%),
		linear-gradient(180deg, rgba(18, 28, 46, .9), rgba(10, 16, 26, .94));
	box-shadow: 0 30px 70px -46px rgba(34, 211, 238, .7);
	overflow: hidden;
}

.ag-cta::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 1.5px;
	background: var(--ag-grad);
}

.ag-cta h3 {
	margin: 0 0 8px;
	font-size: 22px;
	color: var(--ag-navy);
}

.ag-cta p {
	margin: 0;
	max-width: 640px;
	color: #a4b6cd;
}

.ag-cta .ag-btn {
	background: var(--ag-grad);
	color: #04121a;
	white-space: nowrap;
}

.ag-cta .ag-btn:hover {
	background: var(--ag-grad);
	color: #04121a;
}

/* =========================================================
   8. 侧栏
   ========================================================= */
.ag-widget {
	position: relative;
	padding: 18px 20px;
	border: 1px solid var(--ag-border);
	border-radius: var(--ag-radius);
	background: linear-gradient(180deg, rgba(18, 28, 46, .68), rgba(11, 17, 28, .72));
}

.ag-sidebar .ag-widget {
	margin-bottom: 20px;
}

/* 正文里的作者信息块 */
.ag-author-box {
	margin: 36px 0;
	padding: 20px 22px;
	border-left: 2px solid rgba(34, 211, 238, .45);
}

.ag-author-box h3 {
	margin: 0 0 9px;
	font-family: var(--ag-mono);
	font-size: 11.5px;
	font-weight: 600;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--ag-primary);
}

.ag-author-box p {
	margin: 0;
	color: var(--ag-text-muted);
	font-size: 14.5px;
	line-height: 1.75;
}

.ag-sidebar h3 {
	margin: 0 0 12px;
	padding-bottom: 10px;
	border-bottom: 1px solid rgba(122, 160, 220, .12);
	font-size: 15px;
	font-weight: 600;
	letter-spacing: .02em;
	color: var(--ag-navy);
}

.ag-sidebar ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.ag-sidebar li {
	padding: 8px 0;
	border-bottom: 1px dashed rgba(122, 160, 220, .12);
	font-size: 14.5px;
}

.ag-sidebar li:last-child {
	border-bottom: 0;
}

.ag-sidebar a {
	color: #a9bdd8;
}

.ag-sidebar a:hover {
	color: var(--ag-primary);
}

.ag-tag-cloud {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.ag-tag {
	display: inline-block;
	padding: 5px 12px;
	border: 1px solid rgba(122, 160, 220, .2);
	border-radius: 999px;
	background: rgba(122, 160, 220, .06);
	color: #a9bdd8;
	font-size: 12.5px;
	transition: border-color .18s ease, color .18s ease, background .18s ease;
}

.ag-tag:hover {
	border-color: rgba(34, 211, 238, .5);
	background: rgba(34, 211, 238, .1);
	color: var(--ag-primary);
	text-decoration: none;
}

/* =========================================================
   9. 列表与分页
   ========================================================= */
.ag-list-item {
	display: grid;
	grid-template-columns: 168px minmax(0, 1fr);
	gap: 20px;
	padding: 20px 14px;
	margin: 0 -14px;
	border-bottom: 1px solid rgba(122, 160, 220, .12);
	border-radius: 12px;
	transition: background .2s ease;
}

.ag-list-item:hover {
	background: rgba(34, 211, 238, .04);
}

.ag-list-item:last-child {
	border-bottom: 0;
}

.ag-list-thumb {
	overflow: hidden;
	aspect-ratio: 4 / 3;
	border-radius: 10px;
	border: 1px solid rgba(122, 160, 220, .14);
	background: var(--ag-surface-2);
}

.ag-list-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ag-list-title {
	margin: 0 0 7px;
	font-size: 18px;
	line-height: 1.5;
}

.ag-list-title a {
	color: var(--ag-navy);
}

.ag-list-title a:hover {
	color: var(--ag-primary-dark);
}

.ag-pagination {
	display: flex;
	gap: 8px;
	justify-content: center;
	flex-wrap: wrap;
	margin-top: 36px;
}

.ag-pagination .page-numbers {
	padding: 7px 14px;
	border: 1px solid var(--ag-border);
	border-radius: 9px;
	background: rgba(122, 160, 220, .05);
	color: #a9bdd8;
	font-family: var(--ag-mono);
	font-size: 13.5px;
}

.ag-pagination .page-numbers:hover {
	border-color: rgba(34, 211, 238, .45);
	color: var(--ag-primary);
	text-decoration: none;
}

.ag-pagination .current {
	background: var(--ag-grad);
	border-color: transparent;
	color: #04121a;
	font-weight: 700;
}

/* =========================================================
   10. 页脚
   ========================================================= */
.ag-footer {
	position: relative;
	margin-top: 0;
	padding: 56px 0 26px;
	border-top: 1px solid var(--ag-border);
	background:
		radial-gradient(720px 300px at 20% 0%, rgba(34, 211, 238, .07), transparent 60%),
		linear-gradient(180deg, #060a11 0%, #04070c 100%);
	color: #93a6c0;
}

.ag-footer::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 1px;
	background: linear-gradient(90deg, transparent, rgba(34, 211, 238, .45), rgba(244, 114, 182, .35), transparent);
}

.ag-footer-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 30px;
}

.ag-footer h4 {
	margin: 0 0 14px;
	font-family: var(--ag-mono);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: #cfdcf0;
}

.ag-footer-grid > div:first-child h4 {
	font-family: inherit;
	font-size: 22px;
	letter-spacing: -.01em;
	text-transform: none;
	background: var(--ag-grad);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.ag-footer p {
	margin: 0;
	color: #8698b4;
	font-size: 14px;
}

.ag-footer ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.ag-footer li {
	padding: 5px 0;
	font-size: 14px;
}

.ag-footer a {
	color: #93a6c0;
}

.ag-footer a:hover {
	color: var(--ag-primary);
	text-decoration: none;
}

.ag-footer-bottom {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
	margin-top: 34px;
	padding-top: 20px;
	border-top: 1px solid rgba(122, 160, 220, .12);
	color: #6f829e;
	font-size: 12.5px;
}

/* =========================================================
   11. 面包屑 / 空状态
   ========================================================= */
.ag-breadcrumb {
	padding: 16px 0 0;
	color: var(--ag-text-muted);
	font-size: 12.5px;
	font-family: var(--ag-mono);
	letter-spacing: .02em;
}

.ag-breadcrumb a {
	color: var(--ag-text-muted);
}

.ag-breadcrumb a:hover {
	color: var(--ag-primary);
}

.ag-empty {
	padding: 90px 20px;
	text-align: center;
}

.ag-empty h1 {
	background: var(--ag-grad);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	font-size: clamp(40px, 7vw, 72px);
	letter-spacing: -.03em;
}

.ag-empty p {
	color: var(--ag-text-muted);
}

/* =========================================================
   12. 滚动揭示（由 main.js 添加类，无 JS 时内容照常可见）
   ========================================================= */
.ag-reveal {
	opacity: 0;
	transform: translateY(16px);
	transition: opacity .6s cubic-bezier(.22, 1, .36, 1), transform .6s cubic-bezier(.22, 1, .36, 1);
	will-change: opacity, transform;
}

.ag-reveal.is-in {
	opacity: 1;
	transform: none;
}

/* =========================================================
   13. 响应式
   ========================================================= */
@media (max-width: 1024px) {
	.ag-layout {
		grid-template-columns: minmax(0, 1fr) 272px;
		gap: 32px;
	}
}

@media (max-width: 900px) {
	.ag-layout {
		grid-template-columns: minmax(0, 1fr);
	}

	.ag-nav {
		position: relative;
	}

	.ag-nav ul {
		display: none;
		position: absolute;
		top: calc(100% + 12px);
		right: 0;
		left: auto;
		min-width: 210px;
		flex-direction: column;
		gap: 2px;
		padding: 10px;
		border: 1px solid var(--ag-border-strong);
		border-radius: 14px;
		background: rgba(9, 14, 24, .98);
		box-shadow: 0 30px 70px -30px rgba(0, 0, 0, .95);
		backdrop-filter: blur(14px);
	}

	.ag-nav.open ul {
		display: flex;
	}

	.ag-nav a {
		display: block;
		padding: 10px 12px;
		border-radius: 8px;
	}

	.ag-nav a::after {
		display: none;
	}

	.ag-nav a:hover {
		background: rgba(34, 211, 238, .08);
	}

	.ag-nav-toggle {
		display: block;
	}

	.ag-header-cta {
		display: none;
	}

	.ag-hero {
		padding: 58px 0 62px;
	}

	.ag-hero p {
		font-size: 16.5px;
	}

	.ag-section {
		padding: 52px 0;
	}

	.ag-article h1 {
		font-size: 27px;
	}

	.ag-list-item {
		grid-template-columns: minmax(0, 1fr);
	}

	.ag-cta {
		padding: 26px 24px;
	}
}

@media (max-width: 640px) {
	.wrap-inner {
		padding: 0 16px;
	}

	/* 移动端顶栏只保留语言切换，避免占两行 */
	.ag-topbar-status {
		display: none;
	}

	.ag-topbar .wrap-inner {
		justify-content: flex-end;
		min-height: 32px;
	}

	.ag-site-header .wrap-inner {
		min-height: 60px;
		gap: 14px;
	}

	.ag-hero h1 {
		font-size: 30px;
	}

	.ag-term-form input {
		font-size: 13.5px;
	}

	.ag-term-form button {
		padding: 8px 14px;
	}

	.ag-grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.ag-section-head h2 {
		font-size: 22px;
	}

	.ag-footer-grid {
		grid-template-columns: 1fr;
		gap: 24px;
	}

	.ag-footer-bottom {
		flex-direction: column;
	}
}

/* =========================================================
   14. 动效降级
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation-duration: .01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: .01ms !important;
	}

	.ag-reveal {
		opacity: 1;
		transform: none;
	}

	.ag-sys-scan {
		display: none;
	}
}

/* =========================================================
   15. 首页版式 v2.1：分栏首屏 / 认证带 / 服务矩阵 / 编号列表
   ========================================================= */

/* ---------- 首屏左右分栏 ---------- */
.ag-hero-split {
	display: grid;
	grid-template-columns: minmax(0, 1.14fr) minmax(0, .86fr);
	gap: 56px;
	align-items: center;
}

.ag-hero-copy h1 {
	max-width: none;
	font-size: clamp(30px, 4.2vw, 52px);
	line-height: 1.14;
	letter-spacing: -.025em;
}

.ag-hero-copy .ag-hero-actions {
	margin-bottom: 0;
}

/* ---------- 系统状态面板 ---------- */
.ag-sys {
	position: relative;
	overflow: hidden;
	border: 1px solid rgba(34, 211, 238, .24);
	border-radius: 16px;
	background: linear-gradient(180deg, rgba(10, 16, 28, .94), rgba(5, 9, 16, .96));
	box-shadow: 0 40px 90px -52px rgba(34, 211, 238, .75), inset 0 1px 0 rgba(255, 255, 255, .04);
	font-family: var(--ag-mono);
}

.ag-sys-scan {
	position: absolute;
	left: 0;
	right: 0;
	top: 0;
	height: 110px;
	pointer-events: none;
	background: linear-gradient(180deg, transparent, rgba(34, 211, 238, .07), transparent);
	animation: ag-scan 7s linear infinite;
}

@keyframes ag-scan {
	0% { transform: translateY(-120px); }
	100% { transform: translateY(560px); }
}

.ag-sys-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 13px 18px;
	border-bottom: 1px solid rgba(122, 160, 220, .12);
	background: rgba(255, 255, 255, .02);
	font-size: 10.5px;
	letter-spacing: .2em;
	color: #7f93b0;
}

.ag-sys-live {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	color: #6ee7b7;
	letter-spacing: .14em;
}

.ag-sys-body {
	padding: 4px 18px 12px;
}

.ag-sys-row {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 14px;
	padding: 12px 0;
	border-bottom: 1px dashed rgba(122, 160, 220, .12);
	font-size: 12.5px;
	letter-spacing: .03em;
}

.ag-sys-row:last-child {
	border-bottom: 0;
}

.ag-sys-key {
	color: #7387a4;
}

.ag-sys-val {
	color: #ccdcf0;
}

.ag-sys-val b {
	font-size: 16px;
	font-weight: 600;
	color: var(--ag-primary);
	letter-spacing: 0;
}

/* ---------- 认证横带 ---------- */
.ag-strip {
	padding: 26px 0 30px;
	border-bottom: 1px solid var(--ag-border);
	background: linear-gradient(180deg, rgba(122, 160, 220, .035), transparent);
}

.ag-strip-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 14px;
}

.ag-strip-label {
	font-family: var(--ag-mono);
	font-size: 11px;
	letter-spacing: .22em;
	color: #6f839e;
}

.ag-strip-head a {
	font-family: var(--ag-mono);
	font-size: 12px;
	color: #8fa4c2;
}

.ag-strip-head a:hover {
	color: var(--ag-primary);
}

.ag-rail {
	display: flex;
	gap: 10px;
	overflow-x: auto;
	padding-bottom: 6px;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
}

.ag-rail::-webkit-scrollbar {
	display: none;
}

.ag-rail-item {
	flex: 0 0 auto;
	display: flex;
	flex-direction: column;
	gap: 3px;
	min-width: 148px;
	padding: 11px 15px;
	border: 1px solid var(--ag-border);
	border-radius: 10px;
	background: rgba(122, 160, 220, .05);
	transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

.ag-rail-item:hover {
	border-color: rgba(34, 211, 238, .45);
	background: rgba(34, 211, 238, .08);
	transform: translateY(-2px);
	text-decoration: none;
}

.ag-rail-code {
	font-family: var(--ag-mono);
	font-size: 14px;
	font-weight: 700;
	letter-spacing: .05em;
	color: var(--ag-navy);
}

.ag-rail-name {
	font-size: 11.5px;
	color: var(--ag-text-muted);
	white-space: nowrap;
}

/* ---------- 章节标题（大序号 + 英文副标） ---------- */
.ag-chapter {
	display: flex;
	align-items: flex-end;
	gap: 18px;
	margin-bottom: 28px;
	padding-bottom: 16px;
	border-bottom: 1px solid var(--ag-border);
}

.ag-chapter-idx {
	font-family: var(--ag-mono);
	font-size: 40px;
	font-weight: 500;
	line-height: .9;
	letter-spacing: -.03em;
	color: rgba(34, 211, 238, .3);
}

.ag-chapter h2 {
	margin: 0;
	font-size: 25px;
	letter-spacing: -.01em;
	color: var(--ag-navy);
}

.ag-chapter p {
	margin: 5px 0 0;
	font-family: var(--ag-mono);
	font-size: 10.5px;
	letter-spacing: .22em;
	text-transform: uppercase;
	color: #667b96;
}

.ag-chapter-more {
	margin-left: auto;
	font-family: var(--ag-mono);
	font-size: 12.5px;
	color: #8fa4c2;
	white-space: nowrap;
}

.ag-chapter-more:hover {
	color: var(--ag-primary);
}

/* ---------- 服务矩阵 ---------- */
.ag-matrix {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
	gap: 26px 34px;
}

.ag-matrix-title {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 12px;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .04em;
	color: #a9bdd8;
}

.ag-matrix-title i {
	font-family: var(--ag-mono);
	font-style: normal;
	font-size: 10.5px;
	padding: 1px 6px;
	border-radius: 4px;
	background: rgba(34, 211, 238, .1);
	color: var(--ag-primary);
}

.ag-matrix-list {
	display: flex;
	flex-wrap: wrap;
	gap: 7px;
}

.ag-chip {
	display: inline-block;
	padding: 5px 11px;
	border: 1px solid rgba(122, 160, 220, .16);
	border-radius: 7px;
	background: rgba(122, 160, 220, .04);
	color: #a9bdd8;
	font-size: 12.5px;
	line-height: 1.5;
	transition: border-color .16s ease, color .16s ease, background .16s ease;
}

.ag-chip:hover {
	border-color: rgba(34, 211, 238, .48);
	background: rgba(34, 211, 238, .09);
	color: var(--ag-primary);
	text-decoration: none;
}

/* ---------- 头条 + 编号列表 ---------- */
.ag-split {
	display: grid;
	grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
	gap: 34px;
	align-items: start;
}

.ag-lead {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid var(--ag-border);
	border-radius: 18px;
	background: linear-gradient(180deg, rgba(20, 30, 48, .9), rgba(9, 15, 25, .94));
	box-shadow: var(--ag-shadow);
	transition: border-color .22s ease, box-shadow .22s ease, transform .22s ease;
}

.ag-lead:hover {
	border-color: rgba(34, 211, 238, .35);
	box-shadow: var(--ag-shadow-glow);
	transform: translateY(-3px);
}

.ag-lead-thumb {
	position: relative;
	display: block;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background:
		radial-gradient(circle at 28% 20%, rgba(34, 211, 238, .18), transparent 58%),
		repeating-linear-gradient(90deg, rgba(122, 160, 220, .07) 0 1px, transparent 1px 26px),
		repeating-linear-gradient(0deg, rgba(122, 160, 220, .07) 0 1px, transparent 1px 26px),
		var(--ag-surface-2);
}

.ag-lead-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: .92;
	transition: transform .4s ease;
}

.ag-lead:hover .ag-lead-thumb img {
	transform: scale(1.03);
}

.ag-lead-flag {
	position: absolute;
	top: 12px;
	left: 12px;
	padding: 4px 9px;
	border-radius: 5px;
	background: rgba(5, 9, 16, .78);
	border: 1px solid rgba(34, 211, 238, .35);
	font-family: var(--ag-mono);
	font-size: 10px;
	letter-spacing: .18em;
	color: var(--ag-primary);
}

.ag-lead-body {
	display: flex;
	flex-direction: column;
	gap: 11px;
	padding: 22px 24px 24px;
}

.ag-lead-body h3 {
	margin: 0;
	font-size: 23px;
	line-height: 1.42;
	letter-spacing: -.015em;
}

.ag-lead-body h3 a {
	color: var(--ag-navy);
}

.ag-lead-body h3 a:hover {
	color: var(--ag-primary-dark);
}

.ag-lead-body p {
	margin: 0;
	font-size: 14.5px;
	line-height: 1.7;
	color: var(--ag-text-muted);
}

.ag-lead-more {
	font-family: var(--ag-mono);
	font-size: 12.5px;
	color: var(--ag-primary);
	letter-spacing: .04em;
}

.ag-rows {
	list-style: none;
	margin: 0;
	padding: 0;
}

.ag-rows > .ag-row:first-child {
	border-top: 1px solid var(--ag-border);
}

.ag-row {
	display: grid;
	grid-template-columns: 42px minmax(0, 1fr) auto;
	gap: 14px;
	align-items: center;
	padding: 14px 6px;
	margin: 0 -6px;
	border-bottom: 1px solid rgba(122, 160, 220, .12);
	transition: background .16s ease;
}

.ag-row:hover {
	background: rgba(34, 211, 238, .04);
}

.ag-row-idx {
	font-family: var(--ag-mono);
	font-size: 11.5px;
	letter-spacing: .08em;
	color: #5f7691;
}

.ag-row-title {
	margin: 0;
	font-size: 15.5px;
	font-weight: 500;
	line-height: 1.55;
}

.ag-row-title a {
	color: #d3e1f5;
}

.ag-row-title a:hover {
	color: var(--ag-primary-dark);
}

.ag-row-date {
	font-family: var(--ag-mono);
	font-size: 11px;
	letter-spacing: .04em;
	color: #6d819b;
	white-space: nowrap;
}

.ag-rows-2 {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 0 34px;
}

@media (max-width: 980px) {
	.ag-hero-split {
		grid-template-columns: minmax(0, 1fr);
		gap: 36px;
	}

	.ag-split {
		grid-template-columns: minmax(0, 1fr);
		gap: 26px;
	}
}

@media (max-width: 760px) {
	.ag-rows-2 {
		grid-template-columns: minmax(0, 1fr);
	}

	.ag-chapter {
		align-items: center;
		gap: 12px;
	}

	.ag-chapter-idx {
		font-size: 30px;
	}

	.ag-chapter h2 {
		font-size: 20px;
	}

	.ag-chapter-more {
		display: none;
	}

	.ag-matrix {
		grid-template-columns: minmax(0, 1fr);
		gap: 22px;
	}

	.ag-lead-body {
		padding: 18px 18px 20px;
	}

	.ag-lead-body h3 {
		font-size: 19px;
	}

	.ag-row {
		grid-template-columns: 34px minmax(0, 1fr);
	}

	.ag-row-date {
		display: none;
	}
}

/* ---------- 阅读进度条 ---------- */
.ag-progress {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	height: 2px;
	z-index: 90;
	pointer-events: none;
	background: rgba(34, 211, 238, .08);
}

.ag-progress i {
	display: block;
	width: 0;
	height: 100%;
	background: var(--ag-grad);
	box-shadow: 0 0 12px rgba(34, 211, 238, .8);
	transition: width .12s linear;
}

/* 文章标题左侧渐变竖线 */
.ag-article > h1 {
	position: relative;
	padding-left: 20px;
}

.ag-article > h1::before {
	content: "";
	position: absolute;
	left: 0;
	top: .14em;
	bottom: .14em;
	width: 3px;
	border-radius: 2px;
	background: var(--ag-grad);
}

@media (max-width: 640px) {
	.ag-article > h1 {
		padding-left: 14px;
	}
}

/* =========================================================
   16. 文章页附加区：导出 PDF / 上一篇下一篇 / 推荐阅读
   ========================================================= */
.ag-article-actions {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
	margin: -8px 0 26px;
}

.ag-action-pdf {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 15px;
	border: 1px solid rgba(34, 211, 238, .3);
	border-radius: 9px;
	background: rgba(34, 211, 238, .08);
	color: #8ff3ff;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .02em;
	transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

.ag-action-pdf:hover {
	border-color: rgba(34, 211, 238, .62);
	background: rgba(34, 211, 238, .16);
	color: #b7f8ff;
	text-decoration: none;
	transform: translateY(-1px);
}

.ag-action-hint {
	font-size: 12px;
	color: var(--ag-text-muted);
	font-family: var(--ag-mono);
	letter-spacing: .02em;
}

/* 文末 PDF 下载区 */
.ag-pdfcta {
	position: relative;
	display: flex;
	gap: 20px;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	margin: 36px 0 0;
	padding: 20px 22px;
	border: 1px solid rgba(122, 160, 220, .26);
	border-radius: var(--ag-radius);
	background:
		linear-gradient(120deg, rgba(34, 211, 238, .07), rgba(139, 124, 246, .07)),
		linear-gradient(180deg, rgba(26, 38, 58, .86), rgba(15, 22, 36, .9));
	box-shadow: 0 18px 44px -34px rgba(34, 211, 238, .6);
}

.ag-pdfcta-main {
	display: flex;
	gap: 14px;
	align-items: center;
}

.ag-pdfcta-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 42px;
	height: 42px;
	border: 1px solid rgba(34, 211, 238, .34);
	border-radius: 11px;
	background: rgba(34, 211, 238, .12);
	color: #7ee8f7;
}

.ag-pdfcta h3 {
	margin: 0 0 4px;
	font-size: 16px;
	color: var(--ag-navy);
}

.ag-pdfcta p {
	margin: 0;
	font-size: 12.5px;
	line-height: 1.7;
	color: var(--ag-text-muted);
}

.ag-pdfcta .ag-btn {
	padding: 11px 22px;
	font-size: 14px;
	white-space: nowrap;
}

/* 上一篇 / 下一篇 */
.ag-postnav {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 14px;
	margin: 40px 0 0;
}

.ag-postnav-item {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 16px 18px;
	border: 1px solid var(--ag-border);
	border-radius: var(--ag-radius);
	background: linear-gradient(180deg, rgba(18, 28, 46, .7), rgba(11, 17, 28, .74));
	transition: border-color .2s ease, background .2s ease, transform .2s ease;
}

.ag-postnav-item:hover {
	border-color: rgba(34, 211, 238, .42);
	background: rgba(34, 211, 238, .06);
	text-decoration: none;
	transform: translateY(-2px);
}

.ag-postnav-label {
	font-family: var(--ag-mono);
	font-size: 11px;
	letter-spacing: .12em;
	color: #7f93b0;
}

.ag-postnav-title {
	font-size: 15px;
	line-height: 1.55;
	color: #d3e1f5;
}

.ag-postnav-item:hover .ag-postnav-title {
	color: var(--ag-primary-dark);
}

.ag-postnav-item.is-next {
	text-align: right;
}

/* 推荐阅读 */
.ag-related {
	margin: 44px 0 0;
	padding-top: 26px;
	border-top: 1px solid var(--ag-border);
}

.ag-related-head {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 16px;
	font-size: 18px;
	letter-spacing: -.01em;
	color: var(--ag-navy);
}

.ag-related-head::before {
	content: "";
	width: 3px;
	height: 16px;
	border-radius: 2px;
	background: var(--ag-grad);
}

.ag-related-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 14px;
}

.ag-related-item {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 16px 18px;
	border: 1px solid var(--ag-border);
	border-radius: var(--ag-radius);
	background: linear-gradient(180deg, rgba(18, 28, 46, .72), rgba(11, 17, 28, .76));
	transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.ag-related-item:hover {
	border-color: rgba(34, 211, 238, .45);
	box-shadow: 0 18px 40px -30px rgba(34, 211, 238, .8);
	transform: translateY(-2px);
	text-decoration: none;
}

.ag-related-cat {
	font-family: var(--ag-mono);
	font-size: 10.5px;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: #7ee8f7;
}

.ag-related-item h3 {
	margin: 0;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.55;
	color: #d3e1f5;
}

.ag-related-item:hover h3 {
	color: var(--ag-primary-dark);
}

.ag-related-meta {
	font-family: var(--ag-mono);
	font-size: 11px;
	letter-spacing: .04em;
	color: #6d819b;
}

@media (max-width: 760px) {
	.ag-postnav {
		grid-template-columns: minmax(0, 1fr);
	}

	.ag-postnav-item.is-next {
		text-align: left;
	}
}

/* =========================================================
   17. 文章正文浅色阅读区（页头/页脚/首页维持深色）
   ========================================================= */
.ag-reading {
	position: relative;
	margin: 4px 0 0;
	padding: 34px 38px 40px;
	border: 1px solid rgba(148, 112, 74, .16);
	border-radius: 18px;
	background:
		radial-gradient(120% 60% at 50% -10%, rgba(226, 178, 120, .07), transparent 62%),
		#fdfbf7;
	color: #24303f;
	box-shadow: 0 30px 70px -52px rgba(0, 0, 0, .95);
}

.ag-reading .ag-content {
	color: #24303f;
	font-size: 16.5px;
	line-height: 1.9;
}

.ag-reading .ag-content h2,
.ag-reading .ag-content h3,
.ag-reading .ag-content h4,
.ag-reading .ag-content h5,
.ag-reading .ag-content h6 {
	color: #0f172a;
}

.ag-reading .ag-content strong,
.ag-reading .ag-content b {
	color: #0f172a;
}

.ag-reading .ag-content a {
	color: #0b6bb3;
	text-decoration-color: rgba(11, 107, 179, .32);
}

.ag-reading .ag-content a:hover {
	color: #084d80;
	text-decoration-color: currentColor;
}

.ag-reading .ag-content li::marker {
	color: rgba(14, 116, 168, .7);
}

.ag-reading .ag-content hr {
	background: linear-gradient(90deg, transparent, #e6ddd2, transparent);
}

.ag-reading .ag-content blockquote {
	border-color: #ece2d6;
	border-left-color: #0ea5c6;
	background: #f8f3ec;
	color: #3b4a5e;
}

.ag-reading .ag-content blockquote cite,
.ag-reading .ag-content blockquote footer {
	color: #64748b;
}

/* 代码块：浅色正文里保留终端风，但降低对比硬度 */
.ag-reading .ag-content pre {
	border-color: rgba(120, 90, 60, .28);
	background: #14202f;
	color: #dbe7f5;
	box-shadow: 0 16px 40px -34px rgba(20, 32, 47, .9);
}

.ag-reading .ag-content :not(pre) > code {
	border-color: #e7dcd0;
	background: #f3ede5;
	color: #0f766e;
}

.ag-reading .ag-table-wrap {
	border-color: #e9e0d4;
}

.ag-reading .ag-content th,
.ag-reading .ag-content td {
	border-bottom-color: #efe7dc;
}

.ag-reading .ag-content th {
	background: #f5efe7;
	color: #0f172a;
}

.ag-reading .ag-content tbody tr:nth-child(even) {
	background: #fbf8f3;
}

.ag-reading .ag-content img {
	border-radius: 10px;
}

.ag-reading .ag-content figure {
	margin: 22px 0;
}

.ag-reading .ag-content figcaption {
	margin-top: 8px;
	font-size: 12.5px;
	color: #7a6a58;
	text-align: center;
}

/* 目录 */
.ag-reading .ag-toc {
	border-color: #e9e0d4;
	background: #f8f3ec;
}

.ag-reading .ag-toc-title,
.ag-reading .ag-toc .ag-toc-title {
	color: #0e7490;
}

.ag-reading .ag-toc a {
	color: #33445a;
}

.ag-reading .ag-toc a:hover {
	color: #0b6bb3;
}

/* FAQ */
.ag-reading .ag-faq {
	border-top-color: #e9e0d4;
}

.ag-reading .ag-faq h2 {
	color: #0f172a;
}

.ag-reading .ag-faq-item {
	border-bottom-color: #efe7dc;
}

.ag-reading .ag-faq-q {
	color: #0f172a;
}

.ag-reading .ag-faq-a {
	color: #4a5b70;
}

@media (max-width: 760px) {
	.ag-reading {
		padding: 24px 20px 30px;
		border-radius: 14px;
	}

	.ag-reading .ag-content {
		font-size: 16px;
	}
}

/* 语言切换器（真实可用版，替代原来写死的 ZH / EN 文本） */
.ag-lang {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-family: var(--ag-mono);
	font-size: 12.5px;
	letter-spacing: .06em;
}

.ag-lang a {
	color: var(--ag-text-muted);
	text-decoration: none;
	transition: color .15s ease;
}

.ag-lang a:hover {
	color: var(--ag-accent);
}

.ag-lang a.is-current {
	color: var(--ag-accent);
	font-weight: 700;
	pointer-events: none;
}

.ag-lang-sep {
	color: var(--ag-border-strong, rgba(148, 163, 184, .5));
}

/* 文章头部：作者署名 / 最后更新 */
.ag-article-meta .ag-meta-author {
	color: var(--ag-text);
	font-weight: 600;
	text-decoration: none;
}

.ag-article-meta .ag-meta-author::before {
	content: "✎ ";
	color: var(--ag-accent);
}

.ag-article-meta .ag-meta-updated {
	color: var(--ag-accent);
}

/* 正文内的官方参考链接 */
.ag-content a {
	text-decoration: underline;
	text-underline-offset: 3px;
	text-decoration-thickness: 1px;
	text-decoration-color: var(--ag-border-strong, rgba(148, 163, 184, .5));
}

.ag-content a:hover {
	text-decoration-color: var(--ag-accent);
}
