/*
Theme Name: XChatApp K3
Theme URI: https://xchatapp.net
Author: XChatApp.net
Author URI: https://xchatapp.net
Description: XChatApp.net 独立第三方中文 XChat / Grok / AI Agent 教程与资讯主题。浅色阅读为主、深色导航、电光蓝点缀，手机优先，克制动画并完整支持 prefers-reduced-motion。
Version: 1.0.1
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: xchatapp-k3
Tags: blog, news, one-column, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* ---------------------------------------------------------------------------
   1. 设计令牌
--------------------------------------------------------------------------- */
:root {
	--color-bg: #ffffff;
	--color-surface: #f6f8fb;
	--color-surface-2: #eef2f7;
	--color-text: #0d1013;
	--color-text-secondary: #454c55;
	--color-text-tertiary: #6b7280;
	--color-border: rgba(13, 16, 19, 0.08);
	--color-border-strong: rgba(13, 16, 19, 0.18);
	--color-accent: #2563eb;
	--color-accent-strong: #1d4ed8;
	--color-accent-soft: #eaf1fe;
	--color-nav-bg: #0d1013;
	--color-nav-text: #e8eaed;
	--color-on-accent: #ffffff;
	--font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Helvetica Neue", Arial, sans-serif;
	--font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", "Courier New", monospace;
	--radius-sm: 6px;
	--radius-md: 10px;
	--radius-lg: 14px;
	--content-width: 720px;
	--page-width: 1120px;
	--nav-height: 64px;
	--space-section: clamp(48px, 8vw, 88px);
}

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

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

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

img {
	max-width: 100%;
	height: auto;
	vertical-align: middle;
}

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

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

h1, h2, h3, h4, h5, h6 {
	margin: 0 0 0.6em;
	line-height: 1.3;
	letter-spacing: -0.015em;
	color: var(--color-text);
	overflow-wrap: break-word;
}

p {
	margin: 0 0 1em;
}

ul, ol {
	padding-left: 1.4em;
}

button,
input,
select,
textarea {
	font: inherit;
	color: inherit;
}

button {
	cursor: pointer;
}

:focus-visible {
	outline: 2px solid var(--color-accent);
	outline-offset: 2px;
	border-radius: var(--radius-sm);
}

::selection {
	background: var(--color-accent);
	color: #ffffff;
}

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

/* 无障碍工具类 */
.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	width: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	word-wrap: normal !important;
}

.screen-reader-text:focus {
	clip: auto;
	clip-path: none;
	background: var(--color-bg);
	color: var(--color-text);
	height: auto;
	width: auto;
	padding: 12px 18px;
	left: 8px;
	top: 8px;
	z-index: 100000;
	text-decoration: none;
	border: 1px solid var(--color-border-strong);
	border-radius: var(--radius-md);
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

/* ---------------------------------------------------------------------------
   3. 顶部导航（深色、吸顶）
--------------------------------------------------------------------------- */
.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: var(--color-nav-bg);
	color: var(--color-nav-text);
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
	transition: box-shadow 0.2s ease;
}

.site-header.is-scrolled {
	box-shadow: 0 6px 24px rgba(0, 0, 0, 0.22);
}

.site-header__inner {
	display: flex;
	align-items: center;
	gap: 16px;
	min-height: var(--nav-height);
}

.site-branding {
	display: flex;
	align-items: baseline;
	gap: 10px;
	margin-right: auto;
	min-width: 0;
}

.site-branding__name {
	font-size: 19px;
	font-weight: 700;
	letter-spacing: -0.02em;
	color: #ffffff;
	white-space: nowrap;
}

.site-branding__name:hover {
	color: #ffffff;
	opacity: 0.85;
}

.site-branding__tagline {
	display: none;
	font-size: 12px;
	color: rgba(255, 255, 255, 0.55);
}

.site-branding img.custom-logo {
	max-height: 36px;
	width: auto;
}

/* 主导航 */
.site-nav__list {
	display: flex;
	align-items: center;
	gap: 2px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.site-nav__list li {
	position: relative;
}

.site-nav__list a {
	display: block;
	color: var(--color-nav-text);
	font-size: 15px;
	font-weight: 500;
	padding: 10px 13px;
	border-radius: var(--radius-sm);
	transition: background-color 0.15s ease, color 0.15s ease;
}

.site-nav__list a:hover,
.site-nav__list .current-menu-item > a,
.site-nav__list .current_page_item > a {
	background: rgba(255, 255, 255, 0.09);
	color: #ffffff;
}

/* 二级菜单 */
.site-nav__list ul.sub-menu {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 200px;
	background: #14181d;
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: var(--radius-md);
	padding: 6px;
	list-style: none;
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
	z-index: 10;
}

.site-nav__list li:hover > ul.sub-menu,
.site-nav__list li:focus-within > ul.sub-menu {
	display: block;
}

.site-nav__list ul.sub-menu a {
	padding: 9px 12px;
	font-size: 14px;
}

/* 移动端菜单按钮 */
.nav-toggle {
	display: none;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 44px;
	height: 44px;
	min-height: 44px;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, 0.16);
	border-radius: var(--radius-sm);
	background: transparent;
	color: #ffffff;
}

.nav-toggle:hover {
	background: rgba(255, 255, 255, 0.08);
}

.nav-toggle .nav-toggle__bars {
	display: flex;
	flex-direction: column;
	gap: 5px;
	width: 18px;
}

.nav-toggle .nav-toggle__bars span {
	display: block;
	height: 2px;
	width: 100%;
	background: currentColor;
	border-radius: 2px;
	transition: transform 0.2s ease, opacity 0.2s ease;
}

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

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

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

/* 头部搜索 */
.header-search {
	position: relative;
}

.header-search__toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	min-height: 44px;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, 0.16);
	border-radius: var(--radius-sm);
	background: transparent;
	color: #ffffff;
}

.header-search__toggle:hover {
	background: rgba(255, 255, 255, 0.08);
}

.header-search__panel {
	position: absolute;
	top: calc(100% + 10px);
	right: 0;
	width: min(420px, calc(100vw - 32px));
	background: var(--color-bg);
	border: 1px solid var(--color-border-strong);
	border-radius: var(--radius-lg);
	padding: 14px;
	box-shadow: 0 16px 48px rgba(0, 0, 0, 0.18);
	z-index: 90;
}

.header-search__panel[hidden] {
	display: none;
}

/* 语言切换（Polylang） */
.site-header__lang ul {
	display: flex;
	gap: 6px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.site-header__lang a {
	color: rgba(255, 255, 255, 0.7);
	font-size: 13px;
	padding: 6px 8px;
	border-radius: var(--radius-sm);
}

.site-header__lang a:hover {
	color: #ffffff;
	background: rgba(255, 255, 255, 0.08);
}

/* ---------------------------------------------------------------------------
   4. 搜索表单
--------------------------------------------------------------------------- */
.search-form {
	display: flex;
	gap: 10px;
}

.search-form__input {
	flex: 1;
	min-width: 0;
	min-height: 48px;
	padding: 10px 16px;
	border: 1px solid var(--color-border-strong);
	border-radius: var(--radius-md);
	background: var(--color-bg);
	color: var(--color-text);
	font-size: 16px;
}

.search-form__input::placeholder {
	color: var(--color-text-tertiary);
}

.search-form__input:focus {
	outline: 2px solid var(--color-accent);
	outline-offset: 1px;
	border-color: var(--color-accent);
}

.search-form__submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 0 22px;
	border: 1px solid transparent;
	border-radius: var(--radius-md);
	background: var(--color-accent);
	color: var(--color-on-accent);
	font-size: 15px;
	font-weight: 600;
	transition: background-color 0.15s ease;
}

.search-form__submit:hover {
	background: var(--color-accent-strong);
}

/* ---------------------------------------------------------------------------
   5. 首页 Hero（紧凑、搜索优先）
--------------------------------------------------------------------------- */
.xchatapp-hero {
	background: var(--color-surface);
	border-bottom: 1px solid var(--color-border);
	padding: clamp(40px, 7vw, 72px) 0 clamp(32px, 5vw, 48px);
}

.hero-kicker,
.section-kicker {
	margin: 0 0 10px;
	font-family: var(--font-mono);
	font-size: 13px;
	font-weight: 500;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--color-accent);
}

.hero-title {
	margin: 0 0 14px;
	font-size: clamp(28px, 5vw, 42px);
	font-weight: 700;
	letter-spacing: -0.025em;
	line-height: 1.22;
	max-width: 720px;
}

.hero-subtitle {
	margin: 0 0 26px;
	font-size: clamp(16px, 2vw, 18px);
	line-height: 1.7;
	color: var(--color-text-secondary);
	max-width: 640px;
}

.hero-search {
	max-width: 560px;
	margin-bottom: 20px;
}

.hero-search .search-form__input {
	min-height: 52px;
}

.hero-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 18px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.hero-links a {
	font-size: 14px;
	font-weight: 500;
	color: var(--color-text-secondary);
	border-bottom: 1px solid var(--color-border-strong);
	padding-bottom: 2px;
	transition: color 0.15s ease, border-color 0.15s ease;
}

.hero-links a:hover {
	color: var(--color-accent);
	border-color: var(--color-accent);
}

/* ---------------------------------------------------------------------------
   6. 首页栏目（xchatapp-topics）
--------------------------------------------------------------------------- */
.xchatapp-topics,
.xchatapp-latest,
.xchatapp-values {
	padding: var(--space-section) 0;
}

.xchatapp-topics {
	border-bottom: 1px solid var(--color-border);
}

.section-head {
	margin-bottom: 24px;
}

.section-title {
	margin: 0;
	font-size: clamp(22px, 3vw, 28px);
	font-weight: 700;
	letter-spacing: -0.02em;
}

.topics-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 16px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.topics-grid a {
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-height: 44px;
	padding: 20px 22px;
	border: 1px solid var(--color-border);
	border-radius: var(--radius-lg);
	background: var(--color-bg);
	transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.topics-grid a:hover {
	border-color: var(--color-accent);
	transform: translateY(-2px);
	box-shadow: 0 10px 28px rgba(13, 16, 19, 0.06);
}

.topics-grid .topics-grid__name {
	font-size: 17px;
	font-weight: 600;
	color: var(--color-text);
}

.topics-grid .topics-grid__desc {
	font-size: 14px;
	line-height: 1.6;
	color: var(--color-text-tertiary);
}

.topics-grid .topics-grid__arrow {
	margin-left: auto;
	margin-top: 8px;
	font-family: var(--font-mono);
	font-size: 14px;
	color: var(--color-accent);
}

/* 信任条目 */
.xchatapp-values {
	background: var(--color-surface);
	border-bottom: 1px solid var(--color-border);
}

.values-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 16px;
}

.value-item {
	padding: 4px 0;
}

.value-item__title {
	margin: 0 0 4px;
	font-size: 15px;
	font-weight: 600;
}

.value-item__desc {
	margin: 0;
	font-size: 14px;
	line-height: 1.65;
	color: var(--color-text-secondary);
}

/* ---------------------------------------------------------------------------
   7. 文章卡片与列表
--------------------------------------------------------------------------- */
.cards-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 20px;
}

.card {
	display: flex;
	flex-direction: column;
	border: 1px solid var(--color-border);
	border-radius: var(--radius-lg);
	background: var(--color-bg);
	overflow: hidden;
	transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
	content-visibility: auto;
	contain-intrinsic-size: auto 340px;
}

.card:hover {
	border-color: var(--color-accent);
	transform: translateY(-3px);
	box-shadow: 0 14px 34px rgba(13, 16, 19, 0.08);
}

.card__thumb {
	display: block;
	aspect-ratio: 16 / 9;
	background: var(--color-surface-2);
	overflow: hidden;
}

.card__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.35s ease;
}

.card:hover .card__thumb img {
	transform: scale(1.03);
}

.card__body {
	display: flex;
	flex-direction: column;
	flex: 1;
	padding: 18px 20px 20px;
}

.card__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 10px;
}

.card__cat {
	font-size: 12px;
	font-weight: 600;
	color: var(--color-accent);
	background: var(--color-accent-soft);
	padding: 3px 9px;
	border-radius: 999px;
}

.card__cat:hover {
	background: var(--color-accent);
	color: #ffffff;
}

.card__date {
	font-size: 12.5px;
	color: var(--color-text-tertiary);
	font-variant-numeric: tabular-nums;
}

.card__title {
	margin: 0 0 8px;
	font-size: 18px;
	line-height: 1.4;
	font-weight: 650;
	letter-spacing: -0.01em;
}

.card__title a {
	color: var(--color-text);
}

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

.card__excerpt {
	margin: 0 0 14px;
	font-size: 14.5px;
	line-height: 1.65;
	color: var(--color-text-secondary);
}

.card__more {
	margin-top: auto;
	font-size: 14px;
	font-weight: 600;
}

.section-more {
	margin: 28px 0 0;
}

/* 按钮 */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 0 22px;
	border-radius: var(--radius-md);
	font-size: 15px;
	font-weight: 600;
	border: 1px solid transparent;
	transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn--ghost {
	background: var(--color-bg);
	border-color: var(--color-border-strong);
	color: var(--color-text);
}

.btn--ghost:hover {
	border-color: var(--color-accent);
	color: var(--color-accent);
}

/* 空状态 */
.empty-note {
	padding: 40px 0;
	color: var(--color-text-tertiary);
	text-align: center;
}

.search-empty-form {
	max-width: 560px;
	margin: 0 auto 48px;
}

/* ---------------------------------------------------------------------------
   8. 页面标题区与面包屑
--------------------------------------------------------------------------- */
.page-header {
	padding: clamp(32px, 5vw, 52px) 0 8px;
	border-bottom: 1px solid var(--color-border);
	margin-bottom: 28px;
}

.page-title {
	margin: 0 0 8px;
	font-size: clamp(24px, 4vw, 34px);
	font-weight: 700;
	letter-spacing: -0.02em;
}

.page-header__desc {
	margin: 0 0 16px;
	color: var(--color-text-secondary);
	max-width: 640px;
}

.breadcrumbs {
	margin: 18px 0 0;
}

.breadcrumbs__list {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	list-style: none;
	margin: 0;
	padding: 0;
	font-size: 13.5px;
	color: var(--color-text-tertiary);
}

.breadcrumbs__list li + li::before {
	content: "›";
	margin-right: 6px;
	color: var(--color-border-strong);
}

.breadcrumbs__list a {
	color: var(--color-text-tertiary);
}

.breadcrumbs__list a:hover {
	color: var(--color-accent);
}

.breadcrumbs__list [aria-current="page"] {
	color: var(--color-text);
}

/* ---------------------------------------------------------------------------
   9. 文章页与内容排版
--------------------------------------------------------------------------- */
.site-main {
	padding-bottom: var(--space-section);
}

.single-post {
	max-width: var(--content-width);
	margin: 0 auto;
	padding: clamp(28px, 5vw, 44px) 20px 0;
}

.single-post__kicker {
	margin: 0 0 10px;
	font-size: 14px;
	font-weight: 600;
}

.single-post__kicker a {
	color: var(--color-accent);
	background: var(--color-accent-soft);
	padding: 3px 10px;
	border-radius: 999px;
	font-size: 13px;
}

.single-post__title {
	margin: 0 0 14px;
	font-size: clamp(26px, 4.5vw, 38px);
	font-weight: 700;
	letter-spacing: -0.025em;
	line-height: 1.28;
}

.single-post__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin: 0 0 22px;
	font-size: 14px;
	color: var(--color-text-tertiary);
}

.single-post__meta time {
	font-variant-numeric: tabular-nums;
}

.single-post__thumb {
	margin: 0 0 26px;
	border-radius: var(--radius-lg);
	overflow: hidden;
	border: 1px solid var(--color-border);
}

.single-post__thumb img {
	width: 100%;
	display: block;
}

.entry-content {
	font-size: 17px;
	line-height: 1.85;
	color: var(--color-text);
}

.entry-content > * {
	max-width: 100%;
}

.entry-content h2 {
	margin-top: 1.8em;
	font-size: 24px;
}

.entry-content h3 {
	margin-top: 1.6em;
	font-size: 20px;
}

.entry-content a {
	text-decoration: underline;
	text-decoration-color: rgba(37, 99, 235, 0.35);
	text-underline-offset: 3px;
}

.entry-content ul,
.entry-content ol {
	margin: 0 0 1.2em;
}

.entry-content li {
	margin-bottom: 0.4em;
}

.entry-content blockquote {
	margin: 1.4em 0;
	padding: 14px 20px;
	border-left: 3px solid var(--color-accent);
	background: var(--color-surface);
	border-radius: 0 var(--radius-md) var(--radius-md) 0;
	color: var(--color-text-secondary);
}

.entry-content img,
.entry-content figure {
	margin: 1.4em 0;
}

.entry-content figure figcaption {
	font-size: 13px;
	color: var(--color-text-tertiary);
	text-align: center;
	margin-top: 8px;
}

.entry-content pre {
	margin: 1.4em 0;
	padding: 18px 20px;
	background: #0d1013;
	color: #e5e7eb;
	border-radius: var(--radius-md);
	overflow-x: auto;
	font-family: var(--font-mono);
	font-size: 14px;
	line-height: 1.6;
}

.entry-content code {
	font-family: var(--font-mono);
	font-size: 0.9em;
	background: var(--color-surface-2);
	padding: 2px 6px;
	border-radius: 4px;
}

.entry-content pre code {
	background: none;
	padding: 0;
}

.entry-content table {
	width: 100%;
	border-collapse: collapse;
	margin: 1.4em 0;
	font-size: 15px;
}

.entry-content th,
.entry-content td {
	border: 1px solid var(--color-border);
	padding: 10px 12px;
	text-align: left;
}

.entry-content th {
	background: var(--color-surface);
	font-weight: 600;
}

.entry-content .wp-caption {
	max-width: 100%;
}

/* 标签 */
.single-post__footer {
	margin-top: 34px;
	padding-top: 18px;
	border-top: 1px solid var(--color-border);
}

.tag-list {
	margin: 0;
	font-size: 14px;
	color: var(--color-text-tertiary);
}

.tag-list a {
	color: var(--color-accent);
	background: var(--color-accent-soft);
	padding: 3px 10px;
	border-radius: 999px;
	margin: 0 6px 6px 0;
	display: inline-block;
}

.tag-list a:hover {
	background: var(--color-accent);
	color: #ffffff;
}

/* 上下篇 */
.post-nav {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	max-width: var(--content-width);
	margin: 34px auto 0;
	padding: 0 20px;
	flex-wrap: wrap;
}

.post-nav a {
	font-size: 14px;
	font-weight: 600;
	max-width: 45%;
}

/* 相关阅读 */
.related-posts {
	margin-top: 56px;
	padding-top: 44px;
	border-top: 1px solid var(--color-border);
}

/* 分页 */
.pagination,
.pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	justify-content: center;
	margin-top: 40px;
}

.pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	min-height: 44px;
	padding: 0 14px;
	border: 1px solid var(--color-border);
	border-radius: var(--radius-md);
	color: var(--color-text);
	font-size: 15px;
	transition: border-color 0.15s ease, background-color 0.15s ease;
}

.pagination .page-numbers:hover {
	border-color: var(--color-accent);
	color: var(--color-accent);
}

.pagination .page-numbers.current {
	background: var(--color-accent);
	border-color: var(--color-accent);
	color: #ffffff;
}

/* 404 */
.error-404 {
	max-width: 640px;
	margin: 0 auto;
	text-align: center;
	padding-top: clamp(48px, 8vw, 80px);
}

.error-404 .error-404__code {
	font-family: var(--font-mono);
	font-size: clamp(64px, 12vw, 96px);
	font-weight: 700;
	line-height: 1;
	color: var(--color-accent);
	margin: 0 0 12px;
}

.error-404 .search-form {
	max-width: 480px;
	margin: 24px auto;
}

.error-404__links {
	list-style: none;
	margin: 20px 0 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: center;
}

/* 评论 */
.comments-area {
	max-width: var(--content-width);
	margin: 44px auto 0;
	padding: 0 20px;
}

.comments-title {
	font-size: 20px;
}

.comment-list {
	list-style: none;
	padding: 0;
}

.comment-list .comment-body {
	border: 1px solid var(--color-border);
	border-radius: var(--radius-md);
	padding: 16px 18px;
	margin-bottom: 14px;
	background: var(--color-surface);
}

.comment-list .comment-meta {
	font-size: 13px;
	color: var(--color-text-tertiary);
	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(--color-border-strong);
	border-radius: var(--radius-md);
	background: var(--color-bg);
	margin-bottom: 12px;
}

.comment-form .submit {
	min-height: 44px;
	padding: 0 24px;
	border: 0;
	border-radius: var(--radius-md);
	background: var(--color-accent);
	color: #ffffff;
	font-weight: 600;
}

.comment-form .submit:hover {
	background: var(--color-accent-strong);
}

/* ---------------------------------------------------------------------------
   10. 页脚（深色、免责声明）
--------------------------------------------------------------------------- */
.site-footer {
	background: var(--color-nav-bg);
	color: #9aa1ab;
	font-size: 14.5px;
	line-height: 1.75;
}

.site-footer__grid {
	display: grid;
	grid-template-columns: 2fr 1fr;
	gap: 32px;
	padding-top: clamp(40px, 6vw, 56px);
	padding-bottom: 32px;
}

.site-footer__brand {
	margin: 0 0 10px;
	font-size: 18px;
	font-weight: 700;
	color: #ffffff;
}

.site-footer__about p {
	margin: 0 0 12px;
	max-width: 560px;
}

.site-footer__links {
	list-style: none;
	margin: 0;
	padding: 0;
	columns: 2;
	column-gap: 20px;
}

.site-footer__links li {
	margin-bottom: 8px;
	break-inside: avoid;
}

.site-footer__links a {
	color: #c3c9d1;
}

.site-footer__links a:hover {
	color: #ffffff;
}

.site-footer__disclaimer {
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
	padding: 20px 0;
	background: rgba(255, 255, 255, 0.02);
}

.site-footer__disclaimer .container {
	display: grid;
	gap: 6px;
}

.site-footer__disclaimer p {
	margin: 0;
	font-size: 13px;
	line-height: 1.7;
	color: #a8aeb8;
}

.site-footer__bottom {
	padding: 18px 0;
	font-size: 13px;
	color: #7c838e;
}

.site-footer__bottom a {
	color: #c3c9d1;
}

.site-footer__bottom a:hover {
	color: #ffffff;
}

/* ---------------------------------------------------------------------------
   11. 动画（渐进增强：默认可见，JS 开启后才有入场）
--------------------------------------------------------------------------- */
html.js-anim .reveal {
	opacity: 0;
	transform: translateY(12px);
}

html.js-anim .reveal.is-visible {
	opacity: 1;
	transform: none;
	transition: opacity 0.5s ease, transform 0.5s ease;
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}

	html.js-anim .reveal {
		opacity: 1;
		transform: none;
	}
}

/* ---------------------------------------------------------------------------
   12. 响应式（手机优先）
--------------------------------------------------------------------------- */
@media (max-width: 900px) {
	.nav-toggle {
		display: inline-flex;
	}

	.site-nav {
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		background: var(--color-nav-bg);
		border-top: 1px solid rgba(255, 255, 255, 0.08);
		max-height: 0;
		overflow: hidden;
		transition: max-height 0.28s ease;
		visibility: hidden;
	}

	.site-nav.is-open {
		max-height: calc(100vh - var(--nav-height));
		overflow-y: auto;
		visibility: visible;
	}

	.site-nav__list {
		flex-direction: column;
		align-items: stretch;
		padding: 10px 14px 18px;
	}

	.site-nav__list a {
		padding: 13px 12px;
		font-size: 16px;
		border-radius: var(--radius-sm);
	}

	.site-nav__list ul.sub-menu,
	.site-nav__list li:hover > ul.sub-menu,
	.site-nav__list li:focus-within > ul.sub-menu {
		display: block;
		position: static;
		min-width: 0;
		box-shadow: none;
		border: 0;
		padding: 0 0 0 12px;
		background: transparent;
	}

	.site-footer__grid {
		grid-template-columns: 1fr;
		gap: 24px;
	}
}

@media (max-width: 600px) {
	.container {
		padding: 0 16px;
	}

	.site-branding__name {
		font-size: 17px;
	}

	.search-form {
		flex-direction: column;
	}

	.search-form__submit {
		width: 100%;
	}

	.cards-grid {
		grid-template-columns: 1fr;
	}

	.post-nav a {
		max-width: 100%;
	}

	.site-footer__links {
		columns: 1;
	}
}

/* ---------------------------------------------------------------------------
   13. 打印
--------------------------------------------------------------------------- */
@media print {
	.site-header,
	.site-footer,
	.breadcrumbs,
	.related-posts,
	.post-nav,
	.comments-area {
		display: none !important;
	}

	body {
		background: #ffffff;
		color: #000000;
		font-size: 12pt;
	}

	a {
		color: #000000;
	}
}
