/* ==========================================================================
   北极小站 · 科技感皮肤
   —— 深空底色 + 网格/光晕 + 玻璃拟态卡片 + 霓虹渐变标题 + 发光线
   对所有选择器都只做"叠加"，不破坏父主题结构，可随时停用。
   ========================================================================== */

:root {
	--tech-bg: #04060c;
	--tech-bg-2: #0a1020;
	--tech-fg: #dbe7ff;
	--tech-muted: #8ea0c0;
	--tech-cyan: #00e5ff;
	--tech-violet: #7c5cff;
	--tech-pink: #ff4ecd;
	--tech-card: rgba(255, 255, 255, 0.035);
	--tech-card-hover: rgba(255, 255, 255, 0.06);
	--tech-border: rgba(0, 229, 255, 0.22);
	--tech-glow: 0 0 24px rgba(0, 229, 255, 0.35);
	--tech-radius: 14px;
}

/* ---------- 底色与背景层 ---------- */

html {
	background-color: var(--tech-bg);
	background-image:
		radial-gradient(1100px 700px at 12% -5%, rgba(124, 92, 255, 0.22), transparent 62%),
		radial-gradient(900px 650px at 88% 4%, rgba(0, 229, 255, 0.16), transparent 60%),
		radial-gradient(700px 500px at 50% 110%, rgba(255, 78, 205, 0.10), transparent 60%),
		linear-gradient(rgba(255, 255, 255, 0.032) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, 0.032) 1px, transparent 1px);
	background-size: auto, auto, auto, 46px 46px, 46px 46px;
	background-attachment: fixed;
}

body.tech-dark {
	background: transparent !important;
	color: var(--tech-fg);
	-webkit-font-smoothing: antialiased;
}

/* 粒子画布：固定在底层 */
#tech-particles {
	position: fixed;
	inset: 0;
	width: 100%;
	height: 100%;
	z-index: -1;
	pointer-events: none;
	display: block;
}

/* 顶部滚动进度条 */
.tech-progress {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 2px;
	transform: scaleX(0);
	transform-origin: 0 50%;
	background: linear-gradient(90deg, var(--tech-cyan), var(--tech-violet) 55%, var(--tech-pink));
	box-shadow: 0 0 14px rgba(0, 229, 255, 0.65);
	z-index: 99999;
	pointer-events: none;
}

/* ---------- 文字与链接 ---------- */

body.tech-dark h1,
body.tech-dark h2,
body.tech-dark h3,
body.tech-dark h4 {
	color: #eef4ff;
	letter-spacing: 0.01em;
}

body.tech-dark p,
body.tech-dark li {
	color: var(--tech-fg);
}

body.tech-dark a {
	color: var(--tech-cyan);
	text-decoration-color: rgba(0, 229, 255, 0.35);
	transition: color 0.2s ease, text-shadow 0.2s ease;
}

body.tech-dark a:hover {
	color: #7ff3ff;
	text-shadow: 0 0 12px rgba(0, 229, 255, 0.55);
}

body.tech-dark ::selection {
	background: rgba(0, 229, 255, 0.28);
	color: #ffffff;
}

/* 站点标题：霓虹渐变字 */
body.tech-dark .wp-block-site-title a {
	background: linear-gradient(92deg, var(--tech-cyan) 0%, var(--tech-violet) 55%, var(--tech-pink) 100%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	text-shadow: none;
	font-weight: 800;
	letter-spacing: 0.02em;
}

body.tech-dark .wp-block-site-tagline {
	color: var(--tech-muted);
}

/* ---------- 页眉 / 页脚 ---------- */

body.tech-dark .wp-block-template-part:has(.wp-block-navigation),
body.tech-dark header.wp-block-template-part {
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
	background: rgba(4, 6, 12, 0.62);
	border-bottom: 1px solid var(--tech-border);
}

body.tech-dark footer.wp-block-template-part {
	border-top: 1px solid rgba(255, 255, 255, 0.08);
	color: var(--tech-muted);
	background: rgba(4, 6, 12, 0.5);
}

body.tech-dark .wp-block-navigation a {
	color: var(--tech-fg);
	position: relative;
}

body.tech-dark .wp-block-navigation a::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: -3px;
	width: 100%;
	height: 1px;
	background: linear-gradient(90deg, var(--tech-cyan), var(--tech-violet));
	transform: scaleX(0);
	transform-origin: 0 50%;
	transition: transform 0.25s ease;
}

body.tech-dark .wp-block-navigation a:hover::after {
	transform: scaleX(1);
}

/* ---------- 卡片：玻璃拟态 ---------- */

body.tech-dark .wp-block-post,
body.tech-dark .wp-block-group.is-style-card,
body.tech-dark article {
	background: var(--tech-card);
	border: 1px solid rgba(255, 255, 255, 0.07);
	border-radius: var(--tech-radius);
	transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

body.tech-dark .wp-block-post:hover,
body.tech-dark article:hover {
	transform: translateY(-3px);
	background: var(--tech-card-hover);
	border-color: var(--tech-border);
	box-shadow: 0 12px 40px rgba(0, 229, 255, 0.14);
}

body.tech-dark .wp-block-post-title a {
	color: #eef4ff;
}

body.tech-dark .wp-block-post-title a:hover {
	color: var(--tech-cyan);
}

body.tech-dark .wp-block-post-date,
body.tech-dark .wp-block-post-author-name,
body.tech-dark .wp-block-post-terms {
	color: var(--tech-muted);
	font-size: 0.86em;
}

/* 分类 / 标签胶囊 */
body.tech-dark .wp-block-post-terms a,
body.tech-dark .wp-block-tag-cloud a {
	display: inline-block;
	padding: 2px 10px;
	border: 1px solid var(--tech-border);
	border-radius: 999px;
	color: var(--tech-cyan);
	background: rgba(0, 229, 255, 0.06);
	text-decoration: none;
	font-size: 0.82em;
}

body.tech-dark .wp-block-post-terms a:hover,
body.tech-dark .wp-block-tag-cloud a:hover {
	background: rgba(0, 229, 255, 0.16);
	box-shadow: var(--tech-glow);
}

/* ---------- 按钮 ---------- */

body.tech-dark .wp-block-button__link,
body.tech-dark button:not(.components-button),
body.tech-dark input[type="submit"] {
	background: linear-gradient(135deg, var(--tech-cyan), var(--tech-violet));
	color: #04060c;
	border: none;
	border-radius: 999px;
	font-weight: 700;
	box-shadow: 0 6px 24px rgba(0, 229, 255, 0.28);
	transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

body.tech-dark .wp-block-button__link:hover,
body.tech-dark button:not(.components-button):hover,
body.tech-dark input[type="submit"]:hover {
	transform: translateY(-1px);
	filter: brightness(1.08);
	box-shadow: 0 10px 34px rgba(124, 92, 255, 0.42);
}

/* 次要按钮（描边） */
body.tech-dark .wp-block-button.is-style-outline .wp-block-button__link {
	background: transparent;
	color: var(--tech-cyan);
	border: 1px solid var(--tech-cyan);
	box-shadow: none;
}

/* ---------- 表单 / 搜索 ---------- */

body.tech-dark input[type="text"],
body.tech-dark input[type="email"],
body.tech-dark input[type="url"],
body.tech-dark input[type="password"],
body.tech-dark input[type="search"],
body.tech-dark textarea,
body.tech-dark select {
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 10px;
	color: var(--tech-fg);
}

body.tech-dark input:focus,
body.tech-dark textarea:focus,
body.tech-dark select:focus {
	outline: none;
	border-color: var(--tech-cyan);
	box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.16);
}

body.tech-dark ::placeholder {
	color: rgba(142, 160, 192, 0.75);
}

/* ---------- 代码 / 引用 ---------- */

body.tech-dark code,
body.tech-dark kbd,
body.tech-dark pre,
body.tech-dark .wp-block-code {
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

body.tech-dark :not(pre) > code {
	background: rgba(0, 229, 255, 0.10);
	border: 1px solid rgba(0, 229, 255, 0.22);
	border-radius: 6px;
	padding: 1px 6px;
	color: #a8f4ff;
}

body.tech-dark pre,
body.tech-dark .wp-block-code {
	background: rgba(2, 6, 16, 0.86) !important;
	border: 1px solid var(--tech-border);
	border-left: 3px solid var(--tech-cyan);
	border-radius: 12px;
	color: #cfe9ff;
	overflow-x: auto;
}

body.tech-dark blockquote,
body.tech-dark .wp-block-quote {
	border-left: 3px solid var(--tech-violet);
	background: rgba(124, 92, 255, 0.07);
	border-radius: 0 12px 12px 0;
	padding: 12px 18px;
	color: #cdd9f5;
}

/* ---------- 图片 ---------- */

body.tech-dark img,
body.tech-dark .wp-block-image img {
	border-radius: 12px;
}

body.tech-dark .wp-block-image img:hover {
	box-shadow: 0 14px 44px rgba(0, 229, 255, 0.18);
}

/* ---------- 分隔线 ---------- */

body.tech-dark hr,
body.tech-dark .wp-block-separator {
	border: none;
	height: 1px;
	background: linear-gradient(90deg, transparent, var(--tech-border), transparent);
}

/* ---------- 滚动条 ---------- */

body.tech-dark ::-webkit-scrollbar {
	width: 10px;
	height: 10px;
}

body.tech-dark ::-webkit-scrollbar-track {
	background: #05080f;
}

body.tech-dark ::-webkit-scrollbar-thumb {
	background: linear-gradient(180deg, rgba(0, 229, 255, 0.55), rgba(124, 92, 255, 0.55));
	border-radius: 999px;
	border: 2px solid #05080f;
}

/* ---------- 轻动效 ---------- */

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

@keyframes tech-pulse {
	0%, 100% { opacity: 0.55; }
	50%      { opacity: 1; }
}

body.tech-dark .wp-block-site-title a {
	animation: tech-pulse 6s ease-in-out infinite;
}

/* 首屏大标题加一点发光（不改变字体大小） */
body.tech-dark .wp-block-post-title,
body.tech-dark h1.wp-block-heading {
	text-shadow: 0 0 32px rgba(0, 229, 255, 0.18);
}

/* ---------- 可访问性：尊重"减少动态效果" ---------- */

@media (prefers-reduced-motion: reduce) {
	body.tech-dark *,
	#tech-particles {
		animation: none !important;
		transition: none !important;
	}
}

/* ---------- 移动端微调 ---------- */

@media (max-width: 720px) {
	body.tech-dark .wp-block-post:hover,
	body.tech-dark article:hover {
		transform: none;
	}

	html {
		background-size: auto, auto, auto, 32px 32px, 32px 32px;
	}
}
