:root {
	/* 较亮的深色蓝灰配色，提升对比度与可读性 */
	--bg: #1b2738; /* 背景 */
	--fg: #eef2f8; /* 正文文字 */
	--muted: #bdc9d8; /* 次级文字 */
	--card: #253346; /* 卡片底 */
	--card-2: #21303f; /* 次级卡片 */
	--brand: #6fb6ff; /* 品牌主色（更亮） */
	--brand-2: #8b5cf6; /* 渐变辅色 */
	--line: #33465f; /* 分割线 */
	--ok: #22c55e; /* 强调色 */
	--warn: #f59e0b;

	/* 背景渐变的前景色（深色基调） */
	--bg-accent: #2a3a52;

	/* 链接颜色（深色主题下更亮的蓝色，替代紫色） */
	--link: #86c5ff;
	--link-hover: #baddff;

	--radius: 16px;
	--shadow: 0 10px 24px rgba(0, 0, 0, 0.24);
}

/* 浅色主题变量覆盖 */
:root[data-theme="light"] {
	--bg: #f7f9fc;
	--fg: #1f2937;
	--muted: #6b7280;
	--card: #ffffff;
	--card-2: #f3f4f6;
	--brand: #2563eb;
	--brand-2: #7c3aed;
	--line: #e5e7eb;
	--ok: #16a34a;
	--warn: #d97706;
	--bg-accent: #e8eef7;

	/* 浅色主题下链接颜色采用更深蓝 */
	--link: #1d4ed8;
	--link-hover: #1e40af;
}

* {
	box-sizing: border-box;
}
html {
	scroll-behavior: smooth;
}
body {
	margin: 0;
	font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Noto Sans", sans-serif;
	background: radial-gradient(60% 50% at 10% 10%, var(--bg-accent) 0%, var(--bg) 65%) fixed;
	color: var(--fg);
}

/* 全站链接统一颜色与可读性（避免浏览器默认紫色） */
a {
	color: var(--link);
}
a:hover {
	color: var(--link-hover);
}
a:visited {
	color: var(--link);
}

/* 容器与通用 */
.container {
	width: min(1200px, 92%);
	margin-inline: auto;
}
.section-pad {
	padding: 20px 0; /* 紧凑布局：全局更小的上下留白 */
}
.section-pad.alt {
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
}
.section-title {
	font-size: 32px;
	font-weight: 800;
	letter-spacing: 0.2px;
	margin: 0 0 4px 0;
}
.section-sub {
	color: var(--muted);
	margin: 0 0 12px 0;
}
/* Hero 与下一个区块尽量无间隙 */
.hero.section-pad {
	padding-bottom: 4px;
}
/* 邻接的区块进一步压缩顶部留白 */
section + section.section-pad {
	padding-top: 12px;
}

@media (max-width: 720px) {
	.section-pad {
		padding: 16px 0;
	}
	.section-title {
		font-size: 28px;
	}
}

/* 顶部导航 */
.navbar {
	position: sticky;
	top: 0;
	z-index: 50;
	backdrop-filter: saturate(140%) blur(10px);
	background: rgba(27, 39, 56, 0.72);
	border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

/* 浅色主题下的导航样式微调 */
:root[data-theme="light"] .navbar {
	background: rgba(255, 255, 255, 0.75);
	border-bottom-color: rgba(0, 0, 0, 0.08);
}
.nav-container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 64px;
}
.brand-badge {
	display: inline-block;
	font-weight: 800;
	letter-spacing: 0.5px;
	background: linear-gradient(135deg, var(--brand), var(--brand-2));
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	font-size: 18px;
	/* 单行省略，避免品牌文案换行撑开导航 */
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.brand-logo {
	height: 40px;
	width: auto;
	display: block;
	border-radius: 8px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}
.brand {
	display: flex;
	align-items: center;
	gap: 12px;
	max-width: 40vw;
	text-decoration: none;
}
@media (max-width: 720px) {
	.brand-logo {
		height: 34px;
	}
}
.nav {
	position: relative;
	display: flex;
	align-items: center;
	gap: 12px;
	flex-shrink: 0;
}
.nav-menu {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	gap: 14px;
	flex-wrap: nowrap;
	white-space: nowrap;
}
.nav-menu a {
	color: var(--fg);
	text-decoration: none;
	padding: 10px 14px;
	border-radius: 10px;
	transition: 0.2s ease;
	font-weight: 500;
	white-space: nowrap;
}
.nav-menu a:hover {
	background: rgba(127, 127, 127, 0.08);
}
:root[data-theme="light"] .nav-menu a:hover {
	background: rgba(2, 6, 23, 0.06);
}

/* 白天模式下的导航菜单样式优化 */
:root[data-theme="light"] .nav-menu {
	background: rgba(255, 255, 255, 0.95);
	border: 1px solid rgba(0, 0, 0, 0.12);
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

:root[data-theme="light"] .nav-menu a {
	color: #1f2937;
	font-weight: 600;
}

:root[data-theme="light"] .nav-menu a:hover {
	background: rgba(37, 99, 235, 0.1);
	color: #1d4ed8;
}

:root[data-theme="light"] .nav-menu li {
	border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

:root[data-theme="light"] .cta-link {
	background: linear-gradient(135deg, rgba(37, 99, 235, 0.15), rgba(124, 58, 237, 0.15));
	border: 1px solid rgba(37, 99, 235, 0.3);
	color: #1d4ed8;
	font-weight: 700;
}

:root[data-theme="light"] .cta-link:hover {
	background: linear-gradient(135deg, rgba(37, 99, 235, 0.25), rgba(124, 58, 237, 0.25));
	border-color: rgba(37, 99, 235, 0.5);
}

/* 活跃导航项样式 */
.nav-menu a.active {
	background: linear-gradient(135deg, var(--brand), var(--brand-2));
	color: #fff;
	font-weight: 500;
}
.nav-menu a.active:hover {
	background: linear-gradient(135deg, var(--brand), var(--brand-2));
	opacity: 0.9;
}

.cta-link {
	background: linear-gradient(135deg, rgba(106, 169, 255, 0.2), rgba(139, 92, 246, 0.2));
	border: 1px solid rgba(106, 169, 255, 0.35);
}

/* 语言切换按钮 */
.lang-switch {
	margin-left: 12px;
	padding: 8px 12px;
	border-radius: 12px;
	background: #203047;
	color: #e6eeff;
	border: 1px solid rgba(255, 255, 255, 0.18);
	font-size: 14px;
	line-height: 1.2;
	cursor: pointer;
}
.lang-switch:hover {
	border-color: rgba(255, 255, 255, 0.28);
}
.lang-switch:focus {
	outline: none;
	box-shadow: 0 0 0 3px rgba(106, 169, 255, 0.25);
}

/* 移动端菜单 */
.hamburger {
	display: none;
	border: none;
	background: transparent;
	padding: 12px;
	border-radius: 12px;
	cursor: pointer;
	/* iPhone触摸优化 */
	-webkit-tap-highlight-color: transparent;
	touch-action: manipulation;
}
.hamburger:focus {
	outline: 2px solid var(--brand);
}
.hamburger:active {
	background: rgba(127, 127, 127, 0.1);
}
.hamburger-bar {
	display: block;
	width: 24px;
	height: 2px;
	background: #cfd6ea;
	margin: 5px 0;
	border-radius: 2px;
	transition: 0.2s;
	-webkit-transition: 0.2s;
}

@media (max-width: 880px) {
	.hamburger {
		display: block;
	}
	.nav-menu {
		position: absolute;
		right: 0;
		top: 56px;
		flex-direction: column;
		gap: 0;
		background: rgba(15, 21, 43, 0.98);
		border: 1px solid rgba(255, 255, 255, 0.08);
		border-radius: 14px;
		padding: 16px;
		width: 240px;
		box-shadow: var(--shadow);
		transform-origin: top right;
		transform: scale(0.98) translateY(-8px);
		opacity: 0;
		pointer-events: none;
		transition: 0.2s ease;
		/* iPhone兼容性优化 */
		-webkit-transform: scale(0.98) translateY(-8px);
		-webkit-transition: 0.2s ease;
		z-index: 1000;
	}
	.nav-menu.open {
		opacity: 1;
		pointer-events: auto;
		transform: scale(1) translateY(0);
		-webkit-transform: scale(1) translateY(0);
	}
	.nav-menu li {
		border-bottom: 1px solid rgba(255, 255, 255, 0.06);
		padding: 8px 0;
	}
	.nav-menu li:last-child {
		border-bottom: none;
	}
}

/* Hero */
.hero {
	position: relative;
}
.hero-grid {
	display: grid;
	grid-template-columns: 1.1fr 0.9fr;
	gap: 40px;
	align-items: center;
}
.hero-content h1 {
	font-size: 44px;
	line-height: 1.1;
	margin: 0 0 10px 0;
}
.hero-sub {
	color: var(--muted);
	margin: 0 0 20px 0;
	font-size: 18px;
}
.hero-link {
	font-weight: 800;
}
.hero-actions {
	display: flex;
	gap: 12px;
	align-items: center;
}
.btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 12px 18px;
	border-radius: 12px;
	font-weight: 600;
	text-decoration: none;
	border: 1px solid transparent;
	transition: 0.2s;
	cursor: pointer;
}
.btn-primary {
	background: linear-gradient(135deg, var(--brand), var(--brand-2));
	color: white;
}
.btn-primary:hover {
	filter: brightness(1.05);
}
.btn-ghost {
	background: transparent;
	color: var(--fg);
	border-color: rgba(127, 127, 127, 0.22);
}

/* 主题切换按钮 */
.theme-toggle {
	margin-left: 8px;
	padding: 8px 10px;
	border-radius: 12px;
	border: 1px solid rgba(127, 127, 127, 0.22);
	background: transparent;
	color: var(--fg);
	cursor: pointer;
}
.theme-toggle:hover {
	background: rgba(127, 127, 127, 0.1);
}
.theme-toggle:focus {
	outline: none;
	box-shadow: 0 0 0 3px rgba(106, 169, 255, 0.25);
}

/* 浅色主题下卡片边框略深 */
:root[data-theme="light"] .card,
:root[data-theme="light"] .price-card,
:root[data-theme="light"] .case {
	border-color: rgba(0, 0, 0, 0.08);
}

.btn-outline {
	background: transparent;
	color: var(--fg);
	border-color: rgba(106, 169, 255, 0.45);
}
.btn.full {
	width: 100%;
	justify-content: center;
}

.hero-kpis {
	display: flex;
	gap: 22px;
	margin-top: 22px;
	flex-wrap: wrap;
}
.kpi {
	display: flex;
	flex-direction: column;
}
.kpi-num {
	font-size: 24px;
	font-weight: 800;
}
.kpi-label {
	color: var(--muted);
	font-size: 13px;
}

.hero-visual {
	display: flex;
	justify-content: center;
}
.glassy {
	width: min(420px, 100%);
	padding: 26px;
	text-align: center;
	border-radius: 20px;
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03));
	border: 1px solid rgba(255, 255, 255, 0.1);
	box-shadow: var(--shadow);
}
.glassy i {
	font-size: 30px;
	color: #b7c6ff;
}
.glassy h3 {
	margin: 10px 0 6px 0;
}
.glassy p {
	color: var(--muted);
	margin: 0;
}

.hero-bg-gradient {
	position: absolute;
	inset: auto 0 0 0;
	height: 240px;
	background: radial-gradient(60% 90% at 50% 100%, rgba(111, 182, 255, 0.28), transparent 70%);
	z-index: -1;
}

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

/* 卡片与网格 */
.grid {
	display: grid;
	gap: 16px;
}
.cards-4 {
	grid-template-columns: repeat(4, 1fr);
}
.cards-3 {
	grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 1100px) {
	.cards-4 {
		grid-template-columns: repeat(2, 1fr);
	}
}
@media (max-width: 720px) {
	.cards-4,
	.cards-3 {
		grid-template-columns: 1fr;
	}
}

.card,
.price-card,
.case {
	background: var(--card);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: var(--radius);
	padding: 18px;
	transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover,
.price-card:hover,
.case:hover {
	transform: translateY(-3px);
	box-shadow: var(--shadow);
}

.icon-wrap {
	width: 44px;
	height: 44px;
	border-radius: 12px;
	display: grid;
	place-items: center;
	margin-bottom: 10px;
	background: linear-gradient(135deg, rgba(106, 169, 255, 0.25), rgba(139, 92, 246, 0.25));
	border: 1px solid rgba(106, 169, 255, 0.45);
}
.icon-wrap i {
	color: #caddff;
}

.price-card .price {
	font-weight: 800;
	font-size: 28px;
	margin: 6px 0 12px 0;
}
.price-list {
	margin: 0 0 16px 0;
	padding: 0 0 0 16px;
	color: var(--muted);
}
.price-card.featured {
	background: linear-gradient(180deg, rgba(106, 169, 255, 0.12), rgba(139, 92, 246, 0.12));
}
.badge {
	display: inline-block;
	padding: 4px 10px;
	border-radius: 999px;
	background: linear-gradient(135deg, var(--brand), var(--brand-2));
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	margin-bottom: 6px;
}

/* 关于我们 */
.about-grid {
	display: grid;
	grid-template-columns: 1.1fr 0.9fr;
	gap: 28px;
	align-items: center;
}
.stats {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 14px;
}
.stat {
	background: var(--card-2);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 16px;
	padding: 18px;
	text-align: center;
}
.stat span {
	font-size: 28px;
	font-weight: 800;
	display: block;
}
.stat small {
	color: var(--muted);
}
@media (max-width: 980px) {
	.about-grid {
		grid-template-columns: 1fr;
	}
}

/* 案例 */
.case header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	color: var(--muted);
	font-size: 13px;
}
.case .tag {
	padding: 4px 10px;
	border-radius: 999px;
	background: rgba(106, 169, 255, 0.14);
	color: #cfe1ff;
	border: 1px solid rgba(106, 169, 255, 0.35);
}
.link {
	color: #cfe1ff;
	text-decoration: none;
	border-bottom: 1px dashed rgba(207, 225, 255, 0.4);
}
.link:hover {
	border-bottom-style: solid;
}

/* 让首页 Hero 的“VO辅助”链接更显眼（绿色） */
.link.hero-link {
	color: var(--ok);
	border-bottom-color: rgba(34, 197, 94, 0.55);
	font-weight: 800;
}
.link.hero-link:hover {
	color: #86efac;
}

/* 指向 VO 支持页的链接统一加绿色强调 */
.link[href*="vo-support"] {
	color: var(--ok);
	border-bottom-color: rgba(34, 197, 94, 0.55);
	font-weight: 700;
}
.link[href*="vo-support"]:hover {
	color: #86efac;
}

/* 引用 */
.quote {
	background: var(--card-2);
	border: 1px solid rgba(255, 255, 255, 0.08);
	padding: 24px;
	border-radius: 16px;
	font-size: 16px;
}
.quote p {
	margin: 0 0 8px 0;
}
.quote cite {
	color: var(--muted);
}

/* 联系我们 */
.contact-grid {
	display: grid;
	grid-template-columns: 0.9fr 1.1fr;
	gap: 28px;
	align-items: start;
}
.contact-side > * {
	margin-bottom: 12px;
}
.contact-card {
	background: var(--card);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 16px;
	padding: 18px;
}
.guarantees {
	background: var(--card);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 16px;
	padding: 18px;
	margin-top: 14px;
}
.guarantee-list {
	list-style: none;
	margin: 8px 0 0 0;
	padding: 0;
}
.guarantee-list li {
	color: #ef4444;
	font-weight: 800;
	margin: 8px 0;
}
.notice-card {
	background: var(--card-2);
	border: 1px solid rgba(255, 255, 255, 0.08);
	padding: 18px;
	border-radius: 16px;
	margin-top: 14px;
}
.contact-row {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 10px;
}
.contact-row i {
	color: #cde0ff;
}
.contact-row a {
	color: #e6eeff;
	text-decoration: none;
}

/* 浅色主题下的联系信息颜色适配 */
:root[data-theme="light"] .contact-row i {
	color: #4b5563;
}
:root[data-theme="light"] .contact-row a {
	color: #1f2937;
}

/* 确保浮动二维码区域的联系信息也正确显示 */
:root[data-theme="light"] .qr-float .contact-row i {
	color: #4b5563 !important;
}
:root[data-theme="light"] .qr-float .contact-row a {
	color: #1f2937 !important;
}

/* 针对所有包含联系信息的区域，确保浅色主题下正确显示 */
:root[data-theme="light"] a[href*="catcstech@gmail.com"],
:root[data-theme="light"] a[href*="tel:+8617863968105"] {
	color: #1f2937 !important;
}

/* 浅色主题下加深业务范围列表文字颜色 */
:root[data-theme="light"] .price-list {
	color: #374151;
	font-weight: 500;
}
.qr-wrap {
	margin-top: 12px;
	text-align: center;
}
.qr-title {
	color: var(--muted);
	margin: 0 0 8px 0;
}
.qr-wrap img,
.qr-mini img {
	width: 330px;
	max-width: 100%;
	border-radius: 12px;
	border: 1px solid rgba(255, 255, 255, 0.12);
}
/* 右侧跟随的二维码浮窗 */
.qr-float {
	position: fixed;
	right: 18px;
	top: 92px; /* 让出导航高度 */
	width: 300px;
	z-index: 1000;
	background: var(--card);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 16px;
	box-shadow: var(--shadow);
	padding: 12px;
}
.qr-float .qr-title {
	text-align: center;
	color: var(--muted);
	margin: 8px 0 10px 0;
}
.qr-float img {
	width: 100%;
	height: auto;
	border-radius: 12px;
	border: 1px solid rgba(255, 255, 255, 0.12);
}
.qr-float .contact-row {
	margin-bottom: 6px;
}
@media (max-width: 980px) {
	.qr-float {
		display: none;
	}
}
@media (max-width: 980px) {
	.contact-grid {
		grid-template-columns: 1fr;
	}
}

/* 表单 */
.contact-form {
	background: var(--card);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 16px;
	padding: 18px;
}
.form-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
}
.form-group {
	display: flex;
	flex-direction: column;
	gap: 8px;
}
label {
	font-weight: 600;
}
input,
select,
textarea {
	background: #203047;
	color: var(--fg);
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 12px;
	padding: 12px 12px;
	outline: none;
	transition: 0.15s;
}
input:focus,
select:focus,
textarea:focus {
	border-color: rgba(106, 169, 255, 0.55);
	box-shadow: 0 0 0 3px rgba(106, 169, 255, 0.18);
}
.form-status {
	margin-top: 10px;
	color: var(--muted);
}
@media (max-width: 720px) {
	.form-row {
		grid-template-columns: 1fr;
	}
}

/* 页脚 */
.footer {
	margin-top: 40px;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
	background: rgba(27, 39, 56, 0.75);
}
.footer-grid {
	display: grid;
	grid-template-columns: 2fr 1fr 1fr 1.2fr;
	gap: 20px;
	padding: 28px 0;
}
.footer h4 {
	margin: 0 0 10px 0;
}
.muted {
	color: var(--muted);
	margin: 10px 0 0 0;
}
.list {
	list-style: none;
	margin: 0;
	padding: 0;
}
.list li {
	margin: 8px 0;
}
.list a {
	color: #e6eeff;
	text-decoration: none;
}

/* 浅色主题下的页脚链接颜色适配 */
:root[data-theme="light"] .list a {
	color: #1f2937;
}
.qr-mini img {
	width: 140px;
	max-width: 100%;
	border-radius: 10px;
	border: 1px solid rgba(255, 255, 255, 0.12);
}
.footer-bottom {
	border-top: 1px solid rgba(255, 255, 255, 0.08);
	text-align: center;
	padding: 12px 0;
	color: var(--muted);
}

/* 无障碍隐藏文本 */
.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* 客户反馈画廊 */
.feedback-grid {
	grid-template-columns: repeat(3, 1fr);
	gap: 16px;
}
.feedback-grid img {
	width: 100%;
	height: auto;
	max-height: 260px;
	display: block;
	border-radius: 12px;
	border: 1px solid rgba(255, 255, 255, 0.12);
	background: rgba(255, 255, 255, 0.02);
	object-fit: contain;
	padding: 4px;
}
@media (max-width: 1200px) {
	.feedback-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}
@media (max-width: 900px) {
	.feedback-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}
@media (max-width: 600px) {
	.feedback-grid {
		grid-template-columns: 1fr;
	}
}

/* 案例详情画廊 */
.case-gallery {
	grid-template-columns: repeat(3, 1fr);
	gap: 12px;
}
.case-gallery img {
	width: 100%;
	height: auto;
	display: block;
	border-radius: 12px;
	border: 1px solid rgba(255, 255, 255, 0.12);
	cursor: zoom-in;
}
@media (max-width: 820px) {
	.case-gallery {
		grid-template-columns: repeat(2, 1fr);
	}
}
@media (max-width: 520px) {
	.case-gallery {
		grid-template-columns: 1fr;
	}
}

/* 实战专栏画廊（OA / VO） */
.showcase-grid {
	grid-template-columns: repeat(3, 1fr);
	gap: 16px;
}
.showcase-grid img {
	width: 100%;
	height: auto;
	max-height: 260px;
	display: block;
	border-radius: 12px;
	border: 1px solid rgba(255, 255, 255, 0.12);
	background: rgba(255, 255, 255, 0.02);
	object-fit: contain;
	padding: 6px;
	cursor: zoom-in; /* 点击放大为蒙层，不跳走 */
}
.showcase-grid .showcase-item {
	position: relative;
	display: block;
}
.showcase-caption {
	position: absolute;
	left: 10px;
	right: 10px;
	bottom: 10px;
	padding: 6px 10px;
	border-radius: 10px;
	color: #fff;
	font-weight: 700;
	font-size: 14px;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.45));
	border: 1px solid rgba(255, 255, 255, 0.18);
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}
@media (max-width: 900px) {
	.showcase-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}
@media (max-width: 600px) {
	.showcase-grid {
		grid-template-columns: 1fr;
	}
}

/* 轻量图片查看蒙层 */
.lightbox-backdrop {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.7);
	display: none;
	align-items: center;
	justify-content: center;
	z-index: 2000;
}
.lightbox-backdrop.open {
	display: flex;
}
.lightbox-img {
	max-width: 92vw;
	max-height: 92vh;
	border-radius: 14px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
	border: 1px solid rgba(255, 255, 255, 0.15);
}
.lightbox-close {
	position: absolute;
	top: 16px;
	right: 16px;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	border: 1px solid rgba(255, 255, 255, 0.25);
	background: rgba(0, 0, 0, 0.35);
	color: #fff;
	display: grid;
	place-items: center;
	cursor: pointer;
}

/* 分页 */
.pagination {
	display: flex;
	gap: 8px;
	align-items: center;
	justify-content: center;
	margin-top: 12px;
	flex-wrap: wrap;
}
.pagination .page {
	padding: 8px 12px;
	border-radius: 10px;
	border: 1px solid rgba(127, 127, 127, 0.22);
	background: transparent;
	color: var(--fg);
	cursor: pointer;
}
.pagination .page:hover {
	background: rgba(127, 127, 127, 0.1);
}
.pagination .page.active {
	background: linear-gradient(135deg, var(--brand), var(--brand-2));
	color: #fff;
	border-color: transparent;
}
.pagination .page.disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

/* 博客文章封面：完整显示不裁剪 */
.post-cover {
	width: 100%;
	height: auto;
	max-height: 520px;
	object-fit: contain;
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.03);
	border: 1px solid rgba(255, 255, 255, 0.12);
}
/* ====== Mobile Nav Fixes (append at end) ====== */

/* 提高菜单层级、防遮挡，并固定在视口位置 */
@media (max-width: 880px) {
	.nav {
		position: relative;
		z-index: 2100;
	}
	.nav-menu {
		position: fixed !important;
		top: 64px !important; /* 跟你的 .nav-container 高度一致 */
		right: 12px !important;
		width: 240px !important;
		max-height: calc(100vh - 80px);
		overflow-y: auto;
		background: rgba(15, 21, 43, 0.98);
		border: 1px solid rgba(255, 255, 255, 0.08);
		border-radius: 14px;
		padding: 8px;
		box-shadow: var(--shadow);
		transform-origin: top right;
		transform: scale(0.98) translateY(-8px);
		opacity: 0;
		pointer-events: none;
		transition: 0.2s ease;
		z-index: 2100; /* 高于语言切换/主题按钮/hero 装饰 */
	}
	.nav-menu.open {
		opacity: 1;
		pointer-events: auto;
		transform: scale(1) translateY(0);
	}

	/* 菜单项更易点 */
	.nav-menu a {
		display: block;
		padding: 12px 14px;
		-webkit-tap-highlight-color: transparent;
	}

	/* 汉堡按钮扩大点击区，避免“很难点到” */
	.hamburger {
		width: 44px;
		height: 44px;
		padding: 8px;
		-webkit-tap-highlight-color: transparent;
		z-index: 2150; /* 高于菜单盒子，保证可点 */
	}
	.hamburger .hamburger-bar {
		pointer-events: none;
	}

	/* 菜单打开时，禁止顶部浮层抢事件（语言切换、主题按钮、装饰层等） */
	body.menu-open #lang-switch,
	body.menu-open #theme-toggle,
	body.menu-open .hero-bg-gradient {
		pointer-events: none !important;
	}

	/* 若有遮罩层类名，确保收起时不拦截点击（按需添加你的类名） */
	.nav-overlay {
		pointer-events: none;
	}
}

/* 链接统一：被访问过仍按未访问色显示（避免紫色） */
a:visited {
	color: var(--link) !important;
}

/* 强化“面试真题”可见性（可选） */
.nav-menu a[href="/blog/"],
.nav-menu a[href="blog/"] {
	font-weight: 700;
}
