/* ==========================================================================
   Qingying — 参考搜狗输入法官网视觉重构
   1. 变量 / 2. 基础 / 3. 按钮 / 4. 头部 / 5. Hero / 6. 功能卡
   7. 数据条 / 8. 文章区 / 9. 正文页 / 10. 侧栏 / 11. 页脚 / 12. 响应式
   ========================================================================== */

/* ---------- 1. 变量 ---------- */
:root {
	--ink: #0d1b32;
	--ink-2: #16243d;
	--body: #4d5b73;
	--muted: #8794a9;
	--brand: #ff6a1a;
	--brand-2: #ff8f42;
	--brand-soft: #fff1e8;
	--blue: #2f7cff;
	--blue-soft: #eaf2ff;
	--mint: #37d6a8;
	--bg: #ffffff;
	--bg-soft: #f6f9ff;
	--bg-warm: #fffaf6;
	--line: #e8eef8;
	--line-strong: #d8e2f2;

	--radius-sm: 10px;
	--radius: 16px;
	--radius-lg: 24px;
	--radius-xl: 32px;

	--shadow-sm: 0 2px 8px rgba(16, 40, 80, .06);
	--shadow: 0 10px 30px rgba(16, 40, 80, .08);
	--shadow-lg: 0 24px 60px rgba(16, 40, 80, .12);

	--font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", sans-serif;
	--container: 1200px;
	--header-h: 72px;
	--ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- 2. 基础 ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

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

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

img { max-width: 100%; height: auto; display: block; }

a { color: var(--ink); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--brand); }

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

p { margin: 0 0 1em; }

.container {
	width: 100%;
	max-width: var(--container);
	margin: 0 auto;
	padding: 0 24px;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	white-space: nowrap;
}

.skip-link {
	position: absolute; left: -9999px; top: 0;
	background: var(--ink); color: #fff;
	padding: 12px 20px; border-radius: 0 0 12px 0; z-index: 1000;
}
.skip-link:focus { left: 0; color: #fff; }

:focus-visible {
	outline: 2px solid var(--blue);
	outline-offset: 3px;
	border-radius: 6px;
}

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

.btn-primary {
	background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%);
	color: #fff;
	box-shadow: 0 10px 24px rgba(255, 106, 26, .28);
}
.btn-primary:hover {
	color: #fff;
	transform: translateY(-2px);
	box-shadow: 0 16px 32px rgba(255, 106, 26, .34);
}

.btn-ghost {
	background: #fff;
	color: var(--ink);
	border-color: var(--line-strong);
	box-shadow: var(--shadow-sm);
}
.btn-ghost:hover {
	color: var(--ink);
	border-color: var(--blue);
	transform: translateY(-2px);
	box-shadow: var(--shadow);
}

.btn-lg { padding: 17px 34px; font-size: 16px; }
.btn-sm { padding: 11px 22px; font-size: 14px; }

/* ---------- 4. 头部 ---------- */
.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 rgba(232, 238, 248, .9);
	transition: box-shadow .25s var(--ease), background .25s var(--ease);
}
.site-header.is-stuck { box-shadow: 0 6px 24px rgba(16, 40, 80, .07); background: rgba(255,255,255,.94); }

.header-inner {
	display: flex;
	align-items: center;
	gap: 28px;
	height: var(--header-h);
}

.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-mark {
	position: relative;
	width: 34px; height: 34px;
	border-radius: 11px;
	background: linear-gradient(140deg, #ff7a2f, #ff5f06);
	box-shadow: 0 6px 14px rgba(255, 106, 26, .28);
	display: inline-flex; align-items: center; justify-content: center;
	flex: none;
}
.brand-dot {
	width: 12px; height: 12px;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 0 0 3px rgba(255,255,255,.28);
}
.brand-name {
	font-size: 19px;
	font-weight: 800;
	color: var(--ink);
	letter-spacing: -.02em;
}
.brand-name img { max-height: 40px; width: auto; }

.primary-nav { margin-left: auto; }
.nav-list {
	display: flex;
	align-items: center;
	gap: 6px;
	margin: 0; padding: 0;
	list-style: none;
}
.nav-list li { position: relative; }
.nav-list a {
	display: block;
	padding: 9px 14px;
	border-radius: 10px;
	font-size: 15px;
	font-weight: 600;
	color: var(--ink-2);
}
.nav-list a:hover { color: var(--brand); background: var(--brand-soft); }
.nav-list .current-menu-item > a,
.nav-list .current_page_item > a { color: var(--brand); }

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

.nav-toggle {
	display: none;
	width: 42px; height: 42px;
	border: 1px solid var(--line-strong);
	background: #fff;
	border-radius: 12px;
	cursor: pointer;
	padding: 0;
	align-items: center; justify-content: center;
}
.nav-toggle-bars { display: inline-flex; flex-direction: column; gap: 4px; }
.nav-toggle-bars i { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; }

.mobile-menu {
	border-top: 1px solid var(--line);
	background: #fff;
	padding: 8px 24px 16px;
}
.mobile-nav-list { list-style: none; margin: 0; padding: 0; }
.mobile-nav-list a {
	display: block;
	padding: 12px 0;
	font-size: 15px;
	font-weight: 600;
	color: var(--ink-2);
	border-bottom: 1px solid var(--line);
}

/* ---------- 5. Hero ---------- */
.hero {
	position: relative;
	overflow: hidden;
	padding: 92px 0 96px;
	background:
		radial-gradient(1200px 600px at 78% -10%, #e7f0ff 0%, rgba(231,240,255,0) 60%),
		radial-gradient(900px 500px at 8% 18%, #fff0e6 0%, rgba(255,240,230,0) 62%),
		linear-gradient(180deg, #fbfdff 0%, #ffffff 78%);
}

.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.blob {
	position: absolute;
	border-radius: 50%;
	filter: blur(60px);
	opacity: .55;
}
.blob-1 { width: 420px; height: 420px; right: -80px; top: -120px; background: #cfe0ff; }
.blob-2 { width: 360px; height: 360px; left: -110px; top: 180px; background: #ffe2cc; }
.blob-3 { width: 300px; height: 300px; right: 22%; bottom: -160px; background: #d9fff0; opacity: .4; }

.hero-inner {
	position: relative;
	display: grid;
	grid-template-columns: 1.05fr .95fr;
	gap: 56px;
	align-items: center;
}

.pill {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 7px 16px;
	border-radius: 999px;
	background: rgba(255, 255, 255, .8);
	border: 1px solid var(--line-strong);
	color: var(--ink-2);
	font-size: 13px;
	font-weight: 600;
	box-shadow: var(--shadow-sm);
}
.pill::before {
	content: "";
	width: 6px; height: 6px;
	border-radius: 50%;
	background: var(--brand);
	box-shadow: 0 0 0 4px rgba(255, 106, 26, .14);
}

.hero-title {
	margin: 22px 0 18px;
	font-size: clamp(40px, 4.6vw, 62px);
	line-height: 1.14;
	letter-spacing: -.03em;
}
.hero-title em {
	font-style: normal;
	background: linear-gradient(120deg, var(--brand) 10%, #ffa95c 90%);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
}

.hero-sub {
	max-width: 520px;
	font-size: 17px;
	line-height: 1.85;
	color: var(--body);
	margin-bottom: 30px;
}

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

.hero-platforms {
	display: flex; flex-wrap: wrap;
	gap: 8px 10px;
	margin: 26px 0 0;
	padding: 0;
	list-style: none;
}
.hero-platforms li {
	padding: 6px 13px;
	border-radius: 999px;
	background: rgba(255, 255, 255, .72);
	border: 1px solid var(--line);
	font-size: 12.5px;
	color: var(--body);
	backdrop-filter: blur(4px);
}

.hero-visual { position: relative; min-height: 400px; }

.visual-card {
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-lg);
	padding: 22px;
}
.visual-main {
	position: relative;
	padding: 0 0 26px;
	overflow: hidden;
}
.visual-bar {
	display: flex; gap: 7px; align-items: center;
	padding: 15px 20px;
	border-bottom: 1px solid var(--line);
	background: linear-gradient(180deg, #fbfdff, #fff);
}
.visual-bar .dot { width: 9px; height: 9px; border-radius: 50%; background: #dfe7f4; flex: none; }
.visual-bar .dot:first-child { background: #ffb3a1; }
.visual-bar .dot:nth-child(2) { background: #ffd9a1; }
.visual-bar .dot:nth-child(3) { background: #b8e6c8; }
.visual-bar-title {
	margin-left: 8px;
	font-size: 12px;
	color: var(--muted);
	letter-spacing: .02em;
}

.visual-search {
	display: flex; align-items: center; gap: 10px;
	margin: 20px 22px 0;
	padding: 12px 16px;
	border-radius: 12px;
	background: #f6f9ff;
	border: 1px solid #e6eefb;
}
.visual-search-icon {
	width: 16px; height: 16px;
	border-radius: 50%;
	border: 2px solid #9fb4d4;
	position: relative; flex: none;
}
.visual-search-icon::after {
	content: ""; position: absolute; right: -6px; bottom: -4px;
	width: 8px; height: 2px; background: #9fb4d4; transform: rotate(45deg);
}
.visual-search-text { font-size: 13.5px; color: var(--ink-2); font-weight: 600; }
.visual-eq {
	margin-left: auto;
	width: 22px; height: 22px; line-height: 22px; text-align: center;
	border-radius: 6px;
	background: #fff; border: 1px solid var(--line-strong);
	font-size: 12px; color: var(--muted);
}

.visual-answer {
	margin: 14px 22px 0;
	padding: 14px 16px 16px;
	border-radius: 12px;
	background: linear-gradient(180deg, #fff 0%, #fbfdff 100%);
	border: 1px solid #e9f0fb;
	box-shadow: 0 6px 18px rgba(23, 63, 130, .06);
}
.visual-answer-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.answer-badge {
	padding: 3px 9px; border-radius: 6px;
	background: linear-gradient(135deg, #2f7cff, #6aa3ff);
	color: #fff; font-size: 11px; font-weight: 700;
}
.answer-src { font-size: 11px; color: var(--muted); }
.visual-answer-text { margin: 0; font-size: 12.5px; line-height: 1.8; color: #46557a; }

.visual-chips { display: flex; gap: 10px; flex-wrap: wrap; margin: 20px 22px 26px; }
.chip {
	padding: 8px 14px;
	border-radius: 999px;
	background: var(--blue-soft);
	color: #2b6ee0;
	font-size: 13px;
	font-weight: 700;
}
.chip:nth-child(2) { background: var(--brand-soft); color: #d95a12; }
.chip:nth-child(3) { background: #e6fbf3; color: #12896b; }

.visual-float {
	position: absolute;
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px 18px;
	border-radius: 18px;
	box-shadow: var(--shadow);
	animation: float 6s ease-in-out infinite;
}
.visual-float-a { right: -6px; top: -26px; }
.visual-float-b { left: -14px; bottom: -22px; animation-delay: -3s; }

.float-icon {
	width: 34px; height: 34px;
	display: inline-flex; align-items: center; justify-content: center;
	border-radius: 10px;
	background: var(--brand-soft);
	font-size: 17px;
}
.float-avatar {
	width: 34px; height: 34px; border-radius: 50%;
	background: conic-gradient(from 210deg, #ffd8c2, #cfe0ff, #d9fff0, #ffd8c2);
}
.float-text { font-size: 14px; font-weight: 700; color: var(--ink-2); }

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

/* ---------- 6. 功能卡 ---------- */
.features { padding: 96px 0 84px; background: #fff; }

.section-head { max-width: 680px; margin: 0 auto 54px; text-align: center; }
.section-head-row {
	display: flex; align-items: flex-end; justify-content: space-between;
	max-width: none; text-align: left; gap: 24px; margin-bottom: 40px;
}
.section-title { font-size: clamp(28px, 3vw, 40px); letter-spacing: -.02em; }
.section-sub { margin: 14px 0 0; font-size: 16px; color: var(--body); line-height: 1.8; }

.feature-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 26px;
}

.feature-card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	overflow: hidden;
	transition: transform .28s var(--ease), box-shadow .28s var(--ease), border-color .28s var(--ease);
}
.feature-card:hover {
	transform: translateY(-6px);
	box-shadow: var(--shadow-lg);
	border-color: #dbe6f7;
}

.feature-media {
	position: relative;
	aspect-ratio: 16 / 9;
	display: flex; align-items: center; justify-content: center;
	overflow: hidden;
	background: linear-gradient(150deg, #eef4ff 0%, #fbfdff 100%);
}
.media-2 { background: linear-gradient(150deg, #fff3ea 0%, #fffcf9 100%); }
.media-3 { background: linear-gradient(150deg, #ecfdf7 0%, #fbfffd 100%); }

.feature-media.has-img img { width: 100%; height: 100%; object-fit: cover; }
.feature-media::after {
	content: "";
	position: absolute; inset: 0;
	background: radial-gradient(120% 90% at 50% 8%, rgba(255,255,255,.5), rgba(255,255,255,0) 62%);
	pointer-events: none;
}
.feature-media::before {
	content: "";
	position: absolute;
	width: 210px; height: 210px;
	border-radius: 50%;
	background: #fff;
	opacity: .38;
	filter: blur(2px);
}

.feature-glyph {
	position: relative;
	z-index: 1;
	width: 112px; height: 112px;
	border-radius: 32px;
	background: linear-gradient(140deg, #2f7cff, #8fb8ff);
	box-shadow: 0 20px 38px rgba(47, 124, 255, .24);
}
.feature-glyph {
	position: relative;
	z-index: 1;
	width: 112px; height: 112px;
	border-radius: 32px;
	background: linear-gradient(140deg, #2f7cff, #8fb8ff);
	box-shadow: 0 20px 38px rgba(47, 124, 255, .24);
	display: flex; align-items: center; justify-content: center;
}
.feature-glyph svg { width: 52px; height: 52px; display: block; }

.glyph-2 { background: linear-gradient(140deg, #ff8f42, #ffbe83); box-shadow: 0 20px 38px rgba(255, 143, 66, .26); }
.glyph-3 { background: linear-gradient(140deg, #2ecfa2, #8fe9d2); box-shadow: 0 20px 38px rgba(46, 207, 162, .26); }

.feature-body { padding: 26px 26px 30px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.feature-title { font-size: 20px; }
.feature-text { font-size: 15px; color: var(--body); line-height: 1.8; margin: 0; flex: 1; }
.feature-link { font-size: 14px; font-weight: 700; color: var(--brand); display: inline-flex; align-items: center; gap: 6px; }
.feature-link span { transition: transform .2s var(--ease); }
.feature-link:hover span { transform: translateX(4px); }

/* ---------- 7. 数据条 ---------- */
.stats {
	padding: 64px 0;
	background: linear-gradient(180deg, #f8fbff 0%, #eef5ff 100%);
	border-top: 1px solid #e6eefb;
	border-bottom: 1px solid #e6eefb;
}
.stats-inner {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 24px;
	text-align: center;
}
.stat-num {
	display: block;
	font-size: clamp(30px, 3.4vw, 44px);
	font-weight: 800;
	color: var(--ink);
	letter-spacing: -.03em;
	line-height: 1.1;
	margin-bottom: 8px;
}
.stat-label { display: block; font-size: 14px; color: var(--muted); }

@media (min-width: 861px) {
	.stat + .stat { border-left: 1px solid rgba(47, 124, 255, .12); }
}

/* ---------- 8. 文章区 ---------- */
.news { padding: 92px 0; background: #fff; }

.post-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 26px;
}
.post-grid-list { grid-template-columns: repeat(2, 1fr); }

.post-card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	overflow: hidden;
	transition: transform .28s var(--ease), box-shadow .28s var(--ease), border-color .28s var(--ease);
}
.post-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: #dde7f6; }

.post-card-media { display: block; aspect-ratio: 16 / 9; background: var(--bg-soft); overflow: hidden; }
.post-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.post-card:hover .post-card-media img { transform: scale(1.04); }
.post-card-placeholder {
	display: block; width: 100%; height: 100%;
	background:
		radial-gradient(600px 200px at 20% 0%, #eaf2ff, transparent 70%),
		radial-gradient(400px 200px at 90% 100%, #fff0e6, transparent 70%),
		#f7faff;
}

.post-card-body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 10px; }
.post-card-cat {
	align-self: flex-start;
	padding: 4px 12px;
	border-radius: 999px;
	background: var(--brand-soft);
	color: #d95a12;
	font-size: 12px;
	font-weight: 700;
}
.post-card-title { font-size: 19px; line-height: 1.45; }
.post-card-title a { color: var(--ink); }
.post-card-title a:hover { color: var(--brand); }
.post-card-excerpt { font-size: 14.5px; color: var(--body); margin: 0; line-height: 1.75; }
.post-card-meta { margin: 0; font-size: 13px; color: var(--muted); }

/* 分页 */
.pagination,
.navigation.pagination { margin-top: 44px; }
.nav-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.nav-links a,
.nav-links span.current,
.nav-links span.dots {
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 42px; height: 42px;
	padding: 0 14px;
	border-radius: 12px;
	border: 1px solid var(--line);
	background: #fff;
	font-size: 14px; font-weight: 600; color: var(--ink-2);
}
.nav-links span.current { background: var(--ink); color: #fff; border-color: var(--ink); }
.nav-links a:hover { border-color: var(--blue); color: var(--blue); }

/* CTA */
.cta { padding: 76px 0 96px; }
.cta-inner {
	display: flex; align-items: center; justify-content: space-between; gap: 32px;
	padding: 54px 60px;
	border-radius: var(--radius-xl);
	background:
		radial-gradient(700px 300px at 85% 10%, rgba(255,255,255,.18), transparent 60%),
		linear-gradient(120deg, #16243d 0%, #22355a 60%, #2a4570 100%);
	box-shadow: var(--shadow-lg);
}
.cta-title { color: #fff; font-size: clamp(26px, 2.6vw, 36px); }
.cta-sub { color: rgba(255,255,255,.72); margin: 12px 0 0; font-size: 15.5px; }

/* ---------- 9. 正文页 ---------- */
.site-main { padding: 0; }

.layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 320px;
	gap: 48px;
	padding: 56px 24px 96px;
	align-items: start;
}
.layout.no-sidebar { grid-template-columns: minmax(0, 1fr); }

.content-col { min-width: 0; }

.breadcrumb {
	max-width: var(--container);
	margin: 0 auto;
	padding: 24px 24px 0;
	font-size: 13px;
	color: var(--muted);
	display: flex; gap: 8px; flex-wrap: wrap; align-items: center;
}
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--brand); }
.breadcrumb .current { color: var(--ink-2); }

.page-head { margin-bottom: 36px; }
.page-title { font-size: clamp(26px, 3vw, 38px); }
.page-sub { margin: 12px 0 0; color: var(--body); font-size: 15px; }

.entry {
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	padding: 44px 48px 40px;
	box-shadow: var(--shadow-sm);
}
.entry-head { margin-bottom: 28px; }
.entry-title { font-size: clamp(28px, 3.2vw, 42px); line-height: 1.25; margin-top: 14px; }
.entry-meta { margin: 16px 0 0; font-size: 13.5px; color: var(--muted); display: flex; gap: 8px; flex-wrap: wrap; }

.entry-thumb { margin: 0 0 34px; border-radius: var(--radius); overflow: hidden; }

.entry-content { font-size: 16.5px; line-height: 1.95; color: #3a465c; }
.entry-content > * + * { margin-top: 1.15em; }
.entry-content h2 { font-size: 26px; margin-top: 2em; padding-left: 14px; border-left: 4px solid var(--brand); }
.entry-content h3 { font-size: 21px; margin-top: 1.6em; }
.entry-content h4 { font-size: 18px; margin-top: 1.4em; }
.entry-content a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.entry-content img { border-radius: var(--radius); margin: 1.4em auto; }
.entry-content blockquote {
	margin: 1.6em 0;
	padding: 18px 22px;
	border-left: 4px solid var(--blue);
	background: var(--bg-soft);
	border-radius: 0 var(--radius) var(--radius) 0;
	color: #33415c;
}
.entry-content ul, .entry-content ol { padding-left: 1.4em; }
.entry-content li + li { margin-top: .4em; }
.entry-content code {
	background: #f2f6fc;
	padding: .15em .45em;
	border-radius: 6px;
	font-size: .92em;
}
.entry-content pre {
	background: #0f172b;
	color: #e6edf7;
	padding: 20px;
	border-radius: var(--radius);
	overflow-x: auto;
	font-size: 14px;
}
.entry-content table { width: 100%; border-collapse: collapse; }
.entry-content th, .entry-content td { border: 1px solid var(--line); padding: 10px 14px; }
.entry-content th { background: var(--bg-soft); }

.entry-foot { margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line); }
.entry-tags a {
	display: inline-block;
	margin: 0 8px 8px 0;
	padding: 5px 12px;
	border-radius: 999px;
	background: var(--bg-soft);
	color: var(--ink-2);
	font-size: 12.5px;
	font-weight: 600;
}
.entry-tags a:hover { background: var(--brand-soft); color: #d95a12; }

.post-navigation { margin-top: 28px; }
.post-navigation .nav-links { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.post-navigation a {
	display: flex; flex-direction: column; gap: 6px;
	padding: 18px 22px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: #fff;
	min-width: 0;
}
.post-navigation a:hover { border-color: var(--blue); }
.post-navigation .nav-label { font-size: 12px; color: var(--muted); font-weight: 700; }
.post-navigation .nav-title { font-size: 14.5px; color: var(--ink); line-height: 1.5; }
.post-navigation .nav-next { text-align: right; }

/* 评论 */
.comments-area {
	margin-top: 36px;
	padding: 38px 40px;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
}
.comments-title, .comment-reply-title { font-size: 20px; margin-bottom: 20px; }
.comment-list { list-style: none; margin: 0 0 24px; padding: 0; }
.comment-list li { padding: 18px 0; border-top: 1px solid var(--line); }
.comment-list .children { list-style: none; padding-left: 30px; }
.comment-author img { border-radius: 50%; float: left; margin-right: 12px; }
.comment-metadata { font-size: 12.5px; color: var(--muted); }
.comment-content { margin-top: 12px; font-size: 15px; }
.comment-form p { margin-bottom: 14px; }
.comment-form label { display: block; font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }
.comment-form input[type=text], .comment-form input[type=email], .comment-form input[type=url], .comment-form textarea {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid var(--line-strong);
	border-radius: 12px;
	font-family: inherit;
	font-size: 15px;
	background: #fff;
	transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.comment-form input:focus, .comment-form textarea:focus {
	outline: none; border-color: var(--blue);
	box-shadow: 0 0 0 3px rgba(47, 124, 255, .14);
}
.comment-form .submit {
	border: 0;
	padding: 13px 30px;
	border-radius: 999px;
	background: linear-gradient(135deg, var(--brand), var(--brand-2));
	color: #fff;
	font-weight: 700;
	cursor: pointer;
}

/* 搜索表单 */
.search-form {
	display: flex;
	gap: 10px;
	align-items: stretch;
}
.search-field {
	flex: 1;
	min-width: 0;
	padding: 12px 16px;
	border: 1px solid var(--line-strong);
	border-radius: 12px;
	font-size: 15px;
	font-family: inherit;
	background: #fff;
}
.search-field:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(47,124,255,.14); }
.search-submit {
	border: 0;
	padding: 0 22px;
	border-radius: 12px;
	background: var(--ink);
	color: #fff;
	font-weight: 700;
	font-size: 14px;
	cursor: pointer;
	white-space: nowrap;
}
.search-submit:hover { background: var(--brand); }

/* 空状态 */
.empty-state { padding: 60px 0; text-align: center; }
.empty-state h2 { font-size: 24px; }
.empty-state p { color: var(--muted); }
.empty-state .search-form { max-width: 420px; margin: 24px auto 0; }

/* 404 */
.error-404 { padding: 100px 0; text-align: center; }
.error-code {
	font-size: 120px; font-weight: 800; line-height: 1;
	margin: 0 0 8px;
	background: linear-gradient(120deg, var(--brand), #ffb27a);
	-webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.error-title { font-size: 28px; margin-bottom: 12px; }
.error-sub { color: var(--muted); margin-bottom: 26px; }
.error-404 .search-form { max-width: 420px; margin: 0 auto 26px; }

/* ---------- 10. 侧栏 ---------- */
.sidebar { position: sticky; top: calc(var(--header-h) + 24px); display: flex; flex-direction: column; gap: 22px; }
.widget {
	padding: 26px;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	box-shadow: var(--shadow-sm);
}
.widget-title {
	font-size: 15px; margin-bottom: 16px;
	padding-left: 10px; border-left: 3px solid var(--brand);
}
.widget-list { list-style: none; margin: 0; padding: 0; }
.widget-list li { padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 14px; line-height: 1.6; }
.widget-list li:last-child { border-bottom: 0; }
.widget-list a { color: var(--ink-2); }
.widget-list a:hover { color: var(--brand); }

/* ---------- 11. 页脚 ---------- */
.site-footer {
	background: #0d1b32;
	color: rgba(255, 255, 255, .68);
	padding: 64px 0 0;
}
.footer-inner {
	display: flex; gap: 48px; justify-content: space-between;
	flex-wrap: wrap;
	padding-bottom: 48px;
}
.footer-brand { display: flex; gap: 14px; align-items: flex-start; max-width: 420px; }
.footer-title { color: #fff; font-size: 18px; font-weight: 800; margin: 0 0 6px; }
.footer-desc { margin: 0; font-size: 13.5px; line-height: 1.7; color: rgba(255,255,255,.55); }

.footer-cols { display: grid; grid-template-columns: repeat(3, minmax(180px, 1fr)); gap: 40px; }
.footer-col h4 { color: #fff; font-size: 14px; margin-bottom: 10px; }
.footer-col p { margin: 0; font-size: 13.5px; line-height: 1.7; }
.footer-col a { color: rgba(255,255,255,.7); }
.footer-col a:hover { color: var(--brand-2); }

.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); }
.footer-bottom-inner {
	display: flex; align-items: center; justify-content: space-between;
	gap: 18px; padding: 22px 24px; flex-wrap: wrap;
}
.footer-bottom-inner p { margin: 0; font-size: 13px; }
.footer-nav { display: flex; gap: 18px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.footer-nav a { font-size: 13px; color: rgba(255,255,255,.6); }
.footer-nav a:hover { color: #fff; }

/* ---------- 12. 响应式 ---------- */
@media (max-width: 980px) {
	.hero-inner { grid-template-columns: 1fr; gap: 44px; }
	.hero-visual { min-height: 320px; max-width: 520px; }
}

@media (max-width: 1080px) {
	.post-grid { grid-template-columns: repeat(2, 1fr); }
	.layout { grid-template-columns: minmax(0, 1fr); }
	.sidebar { position: static; }
}

@media (max-width: 900px) {
	.feature-grid { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
	:root { --header-h: 64px; }
	.primary-nav { display: none; }
	.nav-toggle { display: inline-flex; }
	.header-actions .btn { display: none; }

	.stats-inner { grid-template-columns: repeat(2, 1fr); gap: 28px; }
	.cta-inner { flex-direction: column; text-align: center; padding: 40px 28px; }
	.footer-inner { flex-direction: column; gap: 32px; }
	.footer-cols { grid-template-columns: 1fr 1fr; gap: 26px; }

	.entry { padding: 28px 22px; }
	.comments-area { padding: 26px 22px; }
}

@media (max-width: 620px) {
	.hero { padding: 64px 0 68px; }
	.hero-title { font-size: 34px; }
	.feature-grid, .post-grid, .post-grid-list { grid-template-columns: 1fr; }
	.section-head-row { flex-direction: column; align-items: flex-start; }
	.entry-title { font-size: 26px; }
	.entry-content { font-size: 16px; }
	.footer-cols { grid-template-columns: 1fr; }
	.visual-float-a { right: 0; }
	.visual-float-b { left: 0; }
	.post-navigation .nav-links { grid-template-columns: 1fr; }
}

/* 进场动画 */
.reveal {
	opacity: 0;
	transform: translateY(18px);
	transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
	* { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
	html { scroll-behavior: auto; }
}
