/* ==========================================================================
   CMWELD Welding Media — 主样式表
   科技蓝浅色：白卡片 + 蓝色主色，横向通透，数据与表格为主。
   所有颜色都走 CSS 变量，后台「外观与版式」改色或切换深色方案时，这里不用改一行。
   ========================================================================== */

/* ---------- 设计变量 ---------- */
:root {
	/* 语义变量。取值由 CMWG_Settings::theme_css() 以 :root 内联覆盖，
	   这里的值只是没有内联样式时（后台预览、样式表单独打开）的兜底。 */
	--c-bg: #f5f8fc;
	--c-bg-alt: #f0f3f7;
	--c-surface: #ffffff;
	--c-surface-2: #f2f5f9;
	--c-surface-3: #e5ebf4;
	--c-surface-4: #d5deec;
	--c-line: #dfe6f0;
	--c-line-soft: #eff3f8;
	--c-line-hot: #b7bdc5;
	--c-text: #1a2433;
	--c-text-dim: #5f6670;
	--c-text-mute: #838991;
	--c-heading: #17202e;
	--c-primary: #1668e3;
	--c-primary-dark: #0d4fb5;
	--c-primary-hot: #0d4fb5;
	--c-primary-soft: #d5e4fa;
	--c-primary-mid: #9dc0f3;
	--c-primary-tint: #ecf3fd;
	--c-on-primary: #ffffff;
	--c-accent: #00b3c7;
	--c-accent-text: #00636f;
	--c-accent-soft: #9ee2ea;
	--c-accent-tint: #e0f6f8;
	--c-ok: #2fbf71;
	--c-ok-text: #228a51;
	--c-ok-soft: #ace5c6;
	--c-ok-tint: #eefaf4;
	--c-err: #ef4b4b;
	--c-err-text: #c93f3f;
	--c-err-soft: #f9b7b7;
	--c-err-tint: #fef1f1;
	--c-header-bg: rgba(255, 255, 255, 0.92);
	--c-shadow: rgba(15, 40, 78, 0.08);
	--c-shadow-strong: rgba(15, 40, 78, 0.16);

	/* 旧变量名继续保留，全部指向语义变量。
	   模板与老样式里还散落着 var(--ink-*) / var(--spark)，这一层让它们一起跟着后台配色走。 */
	--ink-900: var(--c-bg);
	--ink-850: var(--c-bg-alt);
	--ink-800: var(--c-surface);
	--ink-700: var(--c-surface-2);
	--ink-600: var(--c-surface-3);
	--ink-500: var(--c-surface-4);

	--line: var(--c-line);
	--line-soft: var(--c-line-soft);
	--line-hot: var(--c-line-hot);

	--text: var(--c-text);
	--text-dim: var(--c-text-dim);
	--text-mute: var(--c-text-mute);

	--spark: var(--c-primary);
	--spark-hot: var(--c-primary-hot);
	--spark-deep: var(--c-primary-dark);
	--amber: var(--c-accent);

	--ok: var(--c-ok);
	--err: var(--c-err);

	--wrap: 1240px;
	--sidebar: 320px;
	--radius: 4px;

	/* 资讯站版式度量。国内资讯站的密度靠这三档间距撑起来：
	   栏与栏之间 28，区块与区块 32，区块内部 14。 */
	--gap-col: 28px;
	--gap-section: 32px;
	--gap-item: 14px;

	--font-sans: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", "Source Han Sans CN", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", sans-serif;
	--font-mono: "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

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

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

body {
	margin: 0;
	background: var(--ink-900);
	color: var(--text);
	font-family: var(--font-sans);
	font-size: 16px;
	line-height: 1.7;
	font-feature-settings: "kern" 1;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

img,
svg,
video,
iframe {
	max-width: 100%;
	height: auto;
	display: block;
}

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

a:hover {
	color: var(--spark);
}

h1,
h2,
h3,
h4,
h5,
h6 {
	margin: 0 0 0.6em;
	font-weight: 800;
	line-height: 1.25;
	letter-spacing: -0.015em;
	color: var(--c-heading);
}

p {
	margin: 0 0 1.1em;
}

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

hr {
	border: 0;
	border-top: 1px solid var(--line-soft);
	margin: 2em 0;
}

button {
	font-family: inherit;
	font-size: inherit;
	cursor: pointer;
}

::selection {
	background: var(--spark);
	color: var(--c-on-primary);
}

/* ---------- 布局 ---------- */
.wrap {
	width: 100%;
	max-width: var(--wrap);
	margin: 0 auto;
	padding: 0 24px;
}

.site-main {
	display: block;
	min-height: 40vh;
}

.layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) var(--sidebar);
	gap: var(--gap-col);
	padding-top: 24px;
	padding-bottom: 56px;
	align-items: start;
}

.layout-single {
	padding-top: 24px;
}

.no-sidebar .layout {
	grid-template-columns: minmax(0, 1fr);
	max-width: 940px;
}

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

/* ---------- 按钮 ---------- */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 11px 22px;
	border: 1px solid transparent;
	border-radius: var(--radius);
	background: transparent;
	color: var(--text);
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.02em;
	line-height: 1.2;
	cursor: pointer;
	transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease, transform 0.12s ease;
}

.btn:active {
	transform: translateY(1px);
}

.btn-primary {
	background: var(--spark);
	border-color: var(--spark);
	color: var(--c-on-primary);
}

.btn-primary:hover {
	background: var(--spark-hot);
	border-color: var(--spark-hot);
	color: var(--c-on-primary);
}

.btn-ghost {
	border-color: var(--line-hot);
	color: var(--text-dim);
}

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

.btn-block {
	width: 100%;
}

.btn-mini {
	padding: 5px 12px;
	font-size: 12px;
	border-color: var(--line-hot);
	color: var(--text-mute);
}

.btn-mini:hover {
	border-color: var(--spark);
	color: var(--spark);
}

.btn.is-active {
	border-color: var(--spark);
	color: var(--spark);
	background: var(--c-primary-tint);
}

/* ---------- 顶部信息条 ---------- */
.topbar {
	background: var(--ink-900);
	border-bottom: 1px solid var(--line-soft);
	font-size: 12.5px;
	color: var(--text-mute);
}

.topbar-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	height: 40px;
}

.topbar-left,
.topbar-right {
	display: flex;
	align-items: center;
	gap: 14px;
	min-width: 0;
}

.topbar-tag {
	font-family: var(--font-mono);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.16em;
	color: var(--spark);
	white-space: nowrap;
}

.topbar-sep {
	width: 1px;
	height: 12px;
	background: var(--line);
}

.topbar-slogan {
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.topbar-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--text-dim);
	white-space: nowrap;
}

.topbar-link:hover {
	color: var(--spark);
}

.topbar-link img,
.topbar-link .avatar {
	width: 24px;
	height: 24px;
	border-radius: 50%;
}

.topbar-cta {
	padding: 3px 12px;
	border: 1px solid var(--line-hot);
	border-radius: var(--radius);
	color: var(--text);
}

.topbar-cta:hover {
	border-color: var(--spark);
	background: var(--spark);
	color: var(--c-on-primary);
}

.lang-switch {
	font-family: var(--font-mono);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.1em;
	padding: 3px 10px;
	border: 1px solid var(--line-hot);
	border-radius: var(--radius);
	color: var(--text-dim);
}

.lang-switch:hover {
	border-color: var(--spark);
	color: var(--spark);
}

/* ---------- 站点头部 ---------- */
.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: var(--c-header-bg);
	backdrop-filter: saturate(140%) blur(10px);
	border-bottom: 1px solid var(--line);
}

.header-inner {
	display: flex;
	align-items: center;
	gap: 32px;
	height: 76px;
}

/* 品牌区：LOGO 与文字可同时出现，基线对齐避免 LOGO 比文字高时错位。 */
.brand {
	display: flex;
	flex-direction: column;
	gap: 2px;
	flex-shrink: 0;
}

.brand-link {
	display: inline-flex;
	align-items: center;
	gap: 10px;
}

.brand-logo {
	display: block;
	width: auto;
	max-height: 48px;
	object-fit: contain;
}

/* 导航位置由后台「页头与页脚」决定，四组组合各管一处对齐。
   窄屏下这些规则全部让位给抽屉菜单，见文件末尾的媒体查询。 */
.nav-pos-inline .primary-nav {
	flex: 1;
	min-width: 0;
}

.nav-align-left .nav-menu {
	justify-content: flex-start;
}

.nav-align-center .nav-menu {
	justify-content: center;
}

.nav-align-right .nav-menu {
	justify-content: flex-end;
}

.nav-pos-inline.nav-align-left .primary-nav {
	margin-right: auto;
}

.nav-pos-inline.nav-align-center .primary-nav {
	position: absolute;
	left: 50%;
	transform: translateX(-50%);
}

.nav-pos-inline.nav-align-right .primary-nav {
	margin-left: auto;
}

.nav-pos-inline .header-inner {
	position: relative;
}

/* 导航另起一行：品牌居中在上，菜单独占一行并撑满。 */
.nav-pos-below .header-inner {
	flex-wrap: wrap;
	height: auto;
	padding: 14px 0 0;
	gap: 12px;
}

.nav-pos-below .brand {
	width: 100%;
	align-items: center;
	text-align: center;
}

.nav-pos-below .brand-desc {
	text-align: center;
}

.nav-pos-below .primary-nav {
	order: 3;
	flex: 0 0 100%;
	border-top: 1px solid var(--line-soft);
	padding: 4px 0 6px;
}

.nav-pos-below .header-actions {
	margin-left: auto;
}

.nav-pos-below .nav-toggle {
	margin-left: auto;
}

.brand-text {
	display: inline-flex;
	align-items: center;
	gap: 10px;
}

.brand-mark {
	width: 30px;
	height: 30px;
	color: var(--spark);
	flex-shrink: 0;
}

.brand-mark svg {
	width: 100%;
	height: 100%;
}

.brand-name {
	font-size: 21px;
	font-weight: 900;
	letter-spacing: 0.01em;
	color: var(--c-heading);
	line-height: 1.1;
}

.brand-desc {
	font-size: 11.5px;
	color: var(--text-mute);
	letter-spacing: 0.04em;
}

/* ---------- 主导航 ---------- */
.primary-nav {
	flex: 1;
	min-width: 0;
}

.nav-menu {
	display: flex;
	align-items: center;
	gap: 6px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.nav-menu > li {
	position: relative;
}

.nav-menu > li > a {
	display: block;
	padding: 9px 14px;
	font-size: 14.5px;
	font-weight: 700;
	color: var(--text-dim);
	border-radius: var(--radius);
	white-space: nowrap;
}

.nav-menu > li > a:hover,
.nav-menu > li.current-menu-item > a,
.nav-menu > li.current-menu-ancestor > a {
	color: var(--c-heading);
	background: var(--ink-600);
}

.nav-menu > li.current-menu-item > a {
	box-shadow: inset 0 -2px 0 var(--spark);
}

.nav-menu .sub-menu {
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 190px;
	list-style: none;
	margin: 0;
	padding: 8px;
	background: var(--ink-700);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	box-shadow: 0 18px 36px var(--c-shadow-strong);
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s;
}

.nav-menu > li:hover > .sub-menu,
.nav-menu > li:focus-within > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.nav-menu .sub-menu a {
	display: block;
	padding: 8px 10px;
	font-size: 14px;
	color: var(--text-dim);
	border-radius: var(--radius);
}

.nav-menu .sub-menu a:hover {
	background: var(--ink-600);
	color: var(--spark);
}

/* ---------- 头部操作区 ---------- */
.header-actions {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-shrink: 0;
}

.search-toggle {
	width: 38px;
	height: 38px;
	display: grid;
	place-items: center;
	background: transparent;
	border: 1px solid var(--line-hot);
	border-radius: var(--radius);
	color: var(--text-dim);
	padding: 0;
}

.search-toggle:hover {
	border-color: var(--spark);
	color: var(--spark);
}

.header-submit {
	padding: 9px 18px;
	font-size: 13.5px;
}

.header-search {
	border-top: 1px solid var(--line);
	background: var(--ink-800);
	padding: 18px 0;
}

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

/* ---------- 搜索表单 ---------- */
.search-form {
	display: flex;
	gap: 8px;
	align-items: stretch;
}

.search-form input[type="search"] {
	flex: 1;
	min-width: 0;
	padding: 11px 14px;
	background: var(--ink-900);
	border: 1px solid var(--line-hot);
	border-radius: var(--radius);
	color: var(--text);
	font-size: 15px;
}

.search-form input[type="search"]:focus {
	outline: none;
	border-color: var(--spark);
}

.search-form input[type="submit"],
.search-form button {
	padding: 11px 22px;
	background: var(--spark);
	border: 0;
	border-radius: var(--radius);
	color: var(--c-on-primary);
	font-weight: 700;
	font-size: 14px;
}

.search-form label {
	flex: 1;
	min-width: 0;
	display: block;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.skip-link:focus {
	position: fixed;
	top: 8px;
	left: 8px;
	z-index: 999;
	width: auto;
	height: auto;
	clip: auto;
	padding: 10px 18px;
	background: var(--spark);
	color: var(--c-on-primary);
	font-weight: 700;
}

/* ---------- 移动端菜单按钮 ---------- */
.nav-toggle {
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 40px;
	height: 40px;
	padding: 0 8px;
	background: transparent;
	border: 1px solid var(--line-hot);
	border-radius: var(--radius);
}

.nav-toggle-bar {
	display: block;
	height: 2px;
	background: var(--text-dim);
	transition: background 0.16s ease;
}

.nav-toggle:hover .nav-toggle-bar {
	background: var(--spark);
}

/* ---------- 头条 ---------- */
.hero {
	background: var(--ink-850);
	border-bottom: 1px solid var(--line);
}

.hero-inner {
	display: grid;
	grid-template-columns: 1.15fr 1fr;
	gap: 0;
	align-items: stretch;
	padding-top: 0;
	padding-bottom: 0;
}

.hero-media {
	position: relative;
	overflow: hidden;
	background: var(--ink-800);
	min-height: 380px;
}

.hero-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.hero-placeholder,
.hero-placeholder svg {
	width: 100%;
	height: 100%;
	min-height: 380px;
	display: block;
}

.hero-body {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 14px;
	padding: 56px 0 56px 48px;
}

.hero-title {
	font-size: clamp(26px, 3.1vw, 42px);
	line-height: 1.18;
	margin: 0;
	letter-spacing: -0.02em;
}

.hero-title a:hover {
	color: var(--spark);
}

.hero-excerpt {
	margin: 0;
	color: var(--text-dim);
	font-size: 16px;
	line-height: 1.8;
}

.hero-meta {
	color: var(--text-mute);
	font-size: 13px;
}

.hero-meta .entry-meta {
	color: var(--text-mute);
}

.hero .btn-primary {
	align-self: flex-start;
	margin-top: 6px;
}

/* ---------- 分类徽标 ---------- */
.badge {
	display: inline-block;
	padding: 4px 11px;
	background: var(--c-primary-tint);
	border: 1px solid var(--c-primary-soft);
	border-radius: var(--radius);
	color: var(--spark);
	font-size: 11.5px;
	font-weight: 800;
	letter-spacing: 0.08em;
	line-height: 1.5;
	text-transform: uppercase;
}

.badge:hover {
	background: var(--spark);
	border-color: var(--spark);
	color: var(--c-on-primary);
}

/* ---------- 次头条三宫格 ---------- */
.secondary-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
	padding: 40px 0 8px;
}

/* ---------- 首页第一栏：左幻灯片 + 右三篇 ---------- */
.home-top {
	background: var(--c-surface);
	border-bottom: 1px solid var(--line);
	padding: 20px 0 22px;
}

.home-top-inner {
	display: grid;
	grid-template-columns: minmax(0, 1.22fr) minmax(0, 1fr);
	gap: 20px;
	align-items: stretch;
}

/* 幻灯片 */
.home-slider {
	position: relative;
	overflow: hidden;
	border-radius: var(--radius);
	background: var(--ink-700);
	min-height: 380px;
}

.home-slider-track {
	position: relative;
	height: 100%;
	min-height: 380px;
}

.home-slider .slide {
	position: absolute;
	inset: 0;
	margin: 0;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.45s ease, visibility 0.45s ease;
}

.home-slider .slide.is-active {
	opacity: 1;
	visibility: visible;
}

.home-slider .slide-link {
	display: block;
	width: 100%;
	height: 100%;
}

.home-slider .slide-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.home-slider .slide-placeholder {
	display: block;
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, var(--c-primary-mid), var(--ink-600));
}

.home-slider .slide-caption {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	display: flex;
	flex-direction: column;
	gap: 5px;
	padding: 26px 20px 14px;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.55) 45%, rgba(0, 0, 0, 0));
}

.home-slider .slide-title {
	color: #fff;
	font-size: 21px;
	font-weight: 800;
	line-height: 1.38;
	letter-spacing: -0.01em;
	text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.home-slider .slide-meta {
	color: rgba(255, 255, 255, 0.75);
	font-size: 12px;
	font-family: var(--font-mono);
}

/* 「上图 + 下方白底文字块」：标题条移到图外，白底黑字 */
.home-slider--split .slide {
	display: flex;
	flex-direction: column;
	background: var(--c-surface);
}

.home-slider--split .slide-link {
	flex: 1 1 auto;
	min-height: 0;
}

.home-slider--split .slide-caption {
	position: static;
	background: var(--c-surface);
	padding: 12px 16px;
	border-top: 2px solid var(--spark);
	flex: 0 0 auto;
}

.home-slider--split .slide-title {
	color: var(--text);
	text-shadow: none;
	font-size: 17px;
	-webkit-line-clamp: 1;
}

.home-slider--split .slide-meta {
	color: var(--text-mute);
}

/* 「满图淡入 + 右下角标题」 */
.home-slider--fade .slide-caption {
	background: none;
	left: auto;
	bottom: 14px;
	right: 14px;
	max-width: 78%;
	align-items: flex-end;
	text-align: right;
	padding: 8px 12px;
	background: rgba(0, 0, 0, 0.55);
	border-radius: var(--radius);
}

.home-slider--fade .slide-title {
	font-size: 17px;
	-webkit-line-clamp: 1;
}

.home-slider .slide-nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 34px;
	height: 54px;
	display: grid;
	place-items: center;
	border: 0;
	border-radius: var(--radius);
	background: rgba(0, 0, 0, 0.34);
	color: #fff;
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
	opacity: 0;
	transition: opacity 0.2s ease, background 0.2s ease;
}

.home-slider:hover .slide-nav,
.home-slider:focus-within .slide-nav {
	opacity: 1;
}

.home-slider .slide-nav:hover {
	background: var(--spark);
}

.slide-prev {
	left: 0;
	border-radius: 0 var(--radius) var(--radius) 0;
}

.slide-next {
	right: 0;
	border-radius: var(--radius) 0 0 var(--radius);
}

.home-slider .slide-dots {
	position: absolute;
	right: 14px;
	top: 14px;
	display: flex;
	gap: 6px;
	z-index: 2;
}

.home-slider .slide-dot {
	width: 8px;
	height: 8px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.5);
	cursor: pointer;
	transition: background 0.2s ease, width 0.2s ease;
}

.home-slider .slide-dot.is-active {
	background: #fff;
	width: 18px;
	border-radius: 4px;
}

/* 只剩一侧时铺满整行，避免另一列留出生硬的空档 */
.home-top-inner > .home-slider:only-child,
.home-top-inner > .home-side:only-child {
	grid-column: 1 / -1;
}

/* 右侧三篇：纵向等分，左图右文，与左侧幻灯齐高 */
.home-side {
	display: flex;
	flex-direction: column;
	gap: 12px;
	min-width: 0;
}

.home-side-title {
	margin: 0;
	font-size: 15px;
	font-weight: 800;
	letter-spacing: 0.02em;
	display: flex;
	align-items: center;
	gap: 10px;
}

.home-side-title::after {
	content: "";
	flex: 1;
	height: 1px;
	background: var(--line-soft);
}

.home-side-list {
	display: grid;
	grid-template-rows: repeat(3, minmax(0, 1fr));
	grid-auto-rows: minmax(0, 1fr);
	gap: 0;
	flex: 1 1 auto;
	min-height: 0;
}

.side-card {
	display: grid;
	grid-template-columns: 148px minmax(0, 1fr);
	gap: 12px;
	align-items: stretch;
	min-width: 0;
	min-height: 0;
	padding: 12px 0;
	border-bottom: 1px solid var(--line-soft);
}

.side-card:last-child {
	border-bottom: 0;
}

.side-card-thumb {
	display: block;
	position: relative;
	overflow: hidden;
	border-radius: var(--radius);
	background: var(--ink-700);
	min-height: 94px;
}

.side-card-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.side-card:hover .side-card-thumb img {
	transform: scale(1.04);
}

.side-card-body {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 6px;
	min-width: 0;
}

.side-card-title {
	margin: 0;
	font-size: 16px;
	line-height: 1.45;
	font-weight: 700;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.side-card-title a:hover {
	color: var(--spark);
}

.side-card-foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	margin-top: auto;
	font-size: 12px;
	color: var(--text-mute);
}

.side-card-cat {
	color: var(--text-mute);
}

.side-card-cat:hover {
	color: var(--spark);
}

.side-card-like {
	display: inline-flex;
	align-items: center;
	gap: 3px;
	color: var(--text-mute);
	flex: 0 0 auto;
}

/* ---------- 首页第二栏：头条 + 三栏版块 ---------- */
.home-news {
	padding: 26px 0 6px;
}

.news-tag {
	display: inline-block;
	align-self: flex-start;
	width: fit-content;
	max-width: 100%;
	padding: 1px 6px;
	border-radius: 2px;
	background: var(--err);
	color: #fff !important;
	font-size: 11px;
	font-weight: 700;
	line-height: 1.65;
	white-space: nowrap;
}

.news-tag:hover {
	background: var(--c-err-text);
}

.news-head {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
	gap: 26px;
	padding-bottom: 20px;
	border-bottom: 1px solid var(--c-surface-3);
}

.news-top-tag {
	display: inline-block;
	padding: 2px 9px;
	border-radius: 2px;
	background: var(--err);
	color: #fff;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.06em;
	margin-bottom: 10px;
}

.news-top-tag:hover {
	background: var(--c-err-text);
}

.news-top-title {
	margin: 0 0 10px;
	font-size: clamp(23px, 2.4vw, 31px);
	line-height: 1.3;
	font-weight: 800;
	letter-spacing: -0.015em;
}

.news-top-title a:hover {
	color: var(--spark);
}

.news-top-excerpt {
	margin: 0 0 12px;
	color: var(--text-dim);
	font-size: 14.5px;
	line-height: 1.76;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.news-top-meta {
	display: flex;
	align-items: center;
	gap: 14px;
	font-size: 12.5px;
	color: var(--text-mute);
}

.news-top-meta time {
	font-family: var(--font-mono);
	font-size: 12px;
}

.news-top-more {
	color: var(--spark);
	font-weight: 700;
}

.news-sub {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.news-sub-item {
	display: grid;
	grid-template-columns: 156px minmax(0, 1fr);
	gap: 13px;
	padding-bottom: 14px;
	border-bottom: 1px solid var(--line-soft);
}

.news-sub-item:last-child {
	padding-bottom: 0;
	border-bottom: 0;
}

.news-sub-thumb {
	display: block;
	position: relative;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	border-radius: var(--radius);
	background: var(--ink-700);
}

.news-sub-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.news-sub-body {
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-width: 0;
}

.news-sub-title {
	margin: 0;
	font-size: 16.5px;
	line-height: 1.42;
	font-weight: 700;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.news-sub-title a:hover {
	color: var(--spark);
}

.news-sub-excerpt {
	margin: 0;
	color: var(--text-dim);
	font-size: 13px;
	line-height: 1.62;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.news-blocks {
	display: grid;
	grid-template-columns: minmax(0, 1.02fr) minmax(0, 1.24fr) minmax(0, 0.92fr);
	gap: 26px;
	padding-top: 22px;
	align-items: start;
}

.news-block {
	min-width: 0;
}

.news-block .section-head {
	margin-bottom: 16px;
	gap: 12px;
}

.news-block .section-title {
	font-size: 17px;
}

.news-block .section-more {
	font-size: 12.5px;
	white-space: nowrap;
}

/* 栏一：首条大标题 + 下方密集纯文字列表 */
.news-lead {
	margin-bottom: 10px;
	padding-bottom: 10px;
	border-bottom: 1px solid var(--line-soft);
}

.news-lead-title {
	margin: 0 0 6px;
	font-size: 19px;
	line-height: 1.36;
	font-weight: 800;
	letter-spacing: -0.01em;
}

.news-lead-title a:hover {
	color: var(--spark);
}

.news-lead-line {
	margin: 0;
	color: var(--text-dim);
	font-size: 13px;
	line-height: 1.62;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.news-lead-line .news-tag {
	margin-right: 6px;
	vertical-align: 1px;
}

.news-text-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0;
}

.news-text-list li {
	padding: 7px 0;
	border-bottom: 1px solid var(--line-soft);
	line-height: 1.5;
	font-size: 14.5px;
}

.news-text-list li:first-child {
	padding-top: 0;
}

.news-text-list li:last-child {
	border-bottom: 0;
}

.news-text-list .news-tag {
	margin-right: 6px;
}

.news-text-link {
	font-size: 14.5px;
	font-weight: 500;
}

.news-text-link:hover {
	color: var(--spark);
}

/* 栏二：上 4 条纯文字标题，下 2 张图文小卡 */
.news-mid-text {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin: 0 0 12px;
	padding: 0 0 12px;
	list-style: none;
	border-bottom: 1px solid var(--line-soft);
}

.news-mid-text li {
	position: relative;
	margin: 0;
	padding-left: 12px;
	font-size: 14.5px;
	line-height: 1.5;
	font-weight: 600;
	display: -webkit-box;
	-webkit-line-clamp: 1;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.news-mid-text li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 8px;
	width: 4px;
	height: 4px;
	border-radius: 50%;
	background: var(--spark);
}

.news-mid-text a:hover {
	color: var(--spark);
}

.news-mid-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px 16px;
}

.news-mini {
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-width: 0;
}

.news-mini-thumb {
	display: block;
	position: relative;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	border-radius: var(--radius);
	background: var(--ink-700);
}

.news-mini-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.news-mini:hover .news-mini-thumb img {
	transform: scale(1.04);
}

.news-mini-title {
	margin: 0;
	font-size: 14px;
	line-height: 1.45;
	font-weight: 600;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.news-mini-title a:hover {
	color: var(--spark);
}

.news-mini-cat {
	font-size: 12px;
	color: var(--text-mute);
}

.news-mini-cat:hover {
	color: var(--spark);
}

/* 栏三：左图右文，分类红标压在缩略图左下角 */
.news-flow {
	display: flex;
	flex-direction: column;
	gap: 0;
}

.news-flow-item {
	display: grid;
	grid-template-columns: 34% minmax(0, 1fr);
	gap: 9px;
	align-items: center;
	min-width: 0;
	padding: 6px 0;
	border-bottom: 1px solid var(--line-soft);
}

.news-flow-item:first-child {
	padding-top: 0;
}

.news-flow-item:last-child {
	border-bottom: 0;
}

.news-flow-thumb {
	display: block;
	position: relative;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	border-radius: var(--radius);
	background: var(--ink-700);
}

.news-flow-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.news-flow-item:hover .news-flow-thumb img {
	transform: scale(1.04);
}

.news-flow-badge {
	position: absolute;
	left: 6px;
	bottom: 6px;
	font-size: 10px;
	padding: 1px 5px;
}

.news-flow-title {
	margin: 0;
	font-size: 13.5px;
	line-height: 1.45;
	font-weight: 600;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.news-flow-title a:hover {
	color: var(--spark);
}

/* ---------- 卡片 ---------- */
.card {
	background: var(--c-surface);
	border: 1px solid var(--line-soft);
	border-radius: var(--radius);
	overflow: hidden;
	transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.card:hover {
	border-color: var(--c-primary-mid);
	box-shadow: 0 4px 14px var(--c-shadow);
}

.card-thumb {
	display: block;
	position: relative;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: var(--ink-700);
}

.card-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.card:hover .card-thumb img {
	transform: scale(1.04);
}

.thumb-placeholder {
	display: block;
	width: 100%;
	height: 100%;
}

.thumb-placeholder svg {
	width: 100%;
	height: 100%;
	fill: var(--ink-600);
}

.card-body {
	padding: 16px 20px 18px;
}

.card-title {
	font-size: 17.5px;
	line-height: 1.42;
	margin: 7px 0 8px;
	font-weight: 700;
	letter-spacing: -0.005em;
}

.card-compact .card-title {
	font-size: 16px;
	margin-bottom: 0;
}

.card-title a:hover {
	color: var(--spark);
}

.card-meta {
	font-size: 12.5px;
	color: var(--text-mute);
}

.card-excerpt {
	margin: 0 0 12px;
	color: var(--text-dim);
	font-size: 14px;
	line-height: 1.7;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.card-foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding-top: 10px;
	border-top: 1px solid var(--line-soft);
}

.card-author {
	font-size: 12.5px;
	color: var(--text-mute);
	white-space: nowrap;
}

/* 列表卡：左图右文 */
.card-row {
	display: grid;
	grid-template-columns: 258px minmax(0, 1fr);
}

.card-row .card-thumb {
	aspect-ratio: auto;
	height: 100%;
	min-height: 168px;
}

.card-row .card-body {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 18px 22px;
}

.card-row .card-title {
	font-size: 19.5px;
	line-height: 1.38;
	margin: 8px 0;
}

.card-row .card-title a:hover {
	color: var(--spark);
}

.post-list {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

/* ---------- 区块标题 ---------- */
.section-head {
	display: flex;
	align-items: center;
	gap: 14px;
	margin: 0 0 14px;
	padding-bottom: 9px;
	border-bottom: 1px solid var(--c-surface-3);
}

.section-title {
	font-size: 18px;
	margin: 0;
	letter-spacing: 0.01em;
	white-space: nowrap;
	font-weight: 800;
}

.section-title::before {
	content: "";
	display: inline-block;
	width: 4px;
	height: 16px;
	margin-right: 9px;
	background: var(--spark);
	vertical-align: -2px;
}

.section-more {
	color: var(--text-mute);
	font-weight: 500;
	white-space: nowrap;
}

.section-more:hover {
	color: var(--spark);
}

.section-line {
	flex: 1;
	height: 1px;
	background: var(--line-soft);
}

/* ---------- 元信息 ---------- */
.entry-meta {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 7px;
	font-size: 12px;
	color: var(--text-mute);
	line-height: 1.5;
}

.entry-meta time {
	font-family: var(--font-mono);
	font-size: 11.5px;
	letter-spacing: 0.02em;
}

.meta-sep {
	color: var(--line-hot);
}

.meta-cat {
	color: var(--text-mute);
}

.meta-cat:hover {
	color: var(--spark);
}

/* ---------- 侧栏 ---------- */
.sidebar {
	display: flex;
	flex-direction: column;
	gap: 18px;
	position: sticky;
	top: 96px;
}

.widget {
	background: var(--c-surface);
	border: 1px solid var(--line-soft);
	border-radius: var(--radius);
	padding: 16px 18px 18px;
}

.widget-title {
	font-size: 15px;
	margin: 0 0 12px;
	padding-bottom: 9px;
	border-bottom: 2px solid var(--c-surface-3);
	letter-spacing: 0.01em;
	font-weight: 800;
}

.widget-title::before {
	content: "";
	display: inline-block;
	width: 3px;
	height: 14px;
	margin-right: 9px;
	background: var(--spark);
	vertical-align: -1px;
}

.widget ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.widget li {
	padding: 7px 0;
	border-bottom: 1px solid var(--line-soft);
	font-size: 14px;
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 10px;
	line-height: 1.5;
}

.widget li:last-child {
	border-bottom: 0;
}

.widget li a {
	color: var(--text-dim);
}

.widget li a:hover {
	color: var(--spark);
}

.widget p {
	font-size: 14px;
	color: var(--text-dim);
	margin-bottom: 12px;
}

/* 排行榜：前三名用主色实心编号，与国内资讯站热榜一致 */
.rank-list {
	counter-reset: rank;
}

.rank-list li {
	counter-increment: rank;
	padding-left: 28px;
	position: relative;
}

.rank-list li::before {
	content: counter(rank);
	position: absolute;
	left: 0;
	top: 7px;
	width: 18px;
	height: 18px;
	display: grid;
	place-items: center;
	border-radius: 2px;
	background: var(--c-surface-2);
	color: var(--text-mute);
	font-family: var(--font-mono);
	font-size: 11.5px;
	font-weight: 700;
	line-height: 1;
}

.rank-list li:nth-child(-n + 3)::before {
	background: var(--spark);
	color: var(--c-on-primary);
}

.rank-meta {
	font-family: var(--font-mono);
	font-size: 11.5px;
	color: var(--text-mute);
	white-space: nowrap;
}

.cat-list li a::before {
	content: "#";
	color: var(--line-hot);
	margin-right: 6px;
}

.tag-cloud {
	display: flex;
	flex-wrap: wrap;
	gap: 7px;
	line-height: 1;
}

.tag-cloud a {
	display: inline-block;
	padding: 5px 10px;
	background: var(--c-surface-2);
	border: 1px solid transparent;
	border-radius: 2px;
	color: var(--text-dim);
	font-size: 12.5px !important;
}

.tag-cloud a:hover {
	border-color: var(--spark);
	color: var(--spark);
}

.widget-empty {
	display: block;
	padding: 6px 0 2px;
	color: var(--text-mute);
	font-size: 13px;
}

.widget-cta {
	background: linear-gradient(160deg, var(--c-primary-tint), var(--c-surface));
	border-color: var(--c-primary-soft);
}

/* ---------- 分页 ---------- */
.pagination {
	display: flex;
	gap: 8px;
	justify-content: center;
	margin: 40px 0 0;
	flex-wrap: wrap;
}

.pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 12px;
	background: var(--ink-800);
	border: 1px solid var(--line-soft);
	border-radius: var(--radius);
	color: var(--text-dim);
	font-size: 14px;
	font-weight: 600;
}

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

.pagination .page-numbers.current {
	background: var(--spark);
	border-color: var(--spark);
	color: var(--c-on-primary);
}

.pagination .dots {
	border-color: transparent;
	background: transparent;
}

/* ---------- 归档头 ---------- */
.archive-header {
	background: var(--ink-850);
	border-bottom: 1px solid var(--line);
	padding: 40px 0 44px;
}

.archive-title {
	font-size: clamp(26px, 3vw, 38px);
	margin: 10px 0 12px;
	letter-spacing: -0.02em;
}

.archive-title em {
	font-style: normal;
	color: var(--spark);
}

.archive-desc {
	color: var(--text-dim);
	font-size: 15.5px;
	max-width: 780px;
	margin: 0 0 12px;
}

.archive-search {
	max-width: 520px;
	margin-top: 20px;
}

/* ---------- 面包屑 ---------- */
.breadcrumb {
	font-size: 12.5px;
	color: var(--text-mute);
	margin-bottom: 14px;
}

.breadcrumb ol {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.breadcrumb li {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.breadcrumb li:not(:last-child)::after {
	content: "/";
	color: var(--line-hot);
}

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

.breadcrumb a:hover {
	color: var(--spark);
}

.breadcrumb li[aria-current] {
	color: var(--text-dim);
}

/* ---------- 作者归档头 ---------- */
.author-hero {
	display: flex;
	gap: 26px;
	align-items: flex-start;
	padding-top: 8px;
}

.author-hero-avatar img,
.author-hero-avatar .avatar {
	width: 96px;
	height: 96px;
	border-radius: 50%;
	border: 2px solid var(--line-hot);
	object-fit: cover;
}

.author-hero-body {
	min-width: 0;
}

.author-stats {
	display: flex;
	flex-wrap: wrap;
	gap: 26px;
	margin: 14px 0 18px;
	font-size: 13.5px;
	color: var(--text-mute);
}

.author-stats strong {
	display: block;
	font-family: var(--font-mono);
	font-size: 20px;
	color: var(--spark);
	line-height: 1.3;
}

/* ---------- 会员徽标 ---------- */
.member-badge {
	display: inline-block;
	margin-left: 8px;
	padding: 2px 9px;
	background: var(--c-accent-tint);
	border: 1px solid var(--c-accent-soft);
	border-radius: var(--radius);
	color: var(--c-accent-text);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.04em;
	vertical-align: middle;
}

/* ---------- 单篇文章 ---------- */
.single-article {
	display: block;
}

.article-header {
	background: var(--ink-850);
	border-bottom: 1px solid var(--line);
	padding: 26px 0 30px;
}

.article-head-inner {
	max-width: 900px;
}

.article-title {
	font-size: clamp(26px, 3.2vw, 40px);
	line-height: 1.22;
	margin: 12px 0 14px;
	letter-spacing: -0.022em;
	font-weight: 800;
}

.article-lede {
	font-size: 17px;
	line-height: 1.8;
	color: var(--text-dim);
	max-width: 780px;
	margin: 0 0 24px;
	padding-left: 16px;
	border-left: 3px solid var(--spark);
}

.article-byline {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
	margin-top: 22px;
}

.byline-avatar img,
.byline-avatar .avatar {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	border: 1px solid var(--line-hot);
	object-fit: cover;
}

.byline-info {
	display: flex;
	flex-direction: column;
	line-height: 1.4;
}

.byline-name {
	font-size: 14.5px;
	font-weight: 700;
	color: var(--c-heading);
}

.byline-name:hover {
	color: var(--spark);
}

.byline-meta {
	font-size: 12.5px;
	color: var(--text-mute);
}

.article-hero {
	margin: 0;
	background: var(--ink-900);
}

.article-hero-img {
	width: 100%;
	max-height: 560px;
	object-fit: cover;
	border-radius: var(--radius);
}

/* ---------- 正文排版 ---------- */
.entry-content {
	font-size: 16.5px;
	line-height: 1.9;
	color: var(--c-text);
}

.entry-content > *:first-child {
	margin-top: 0;
}

.entry-content h2 {
	font-size: 25px;
	margin: 2em 0 0.7em;
	padding-left: 14px;
	line-height: 1.35;
	border-left: 4px solid var(--spark);
}

.entry-content h3 {
	font-size: 20px;
	margin: 1.7em 0 0.6em;
	color: var(--c-heading);
}

.entry-content h4 {
	font-size: 17px;
	margin: 1.5em 0 0.5em;
	color: var(--c-heading);
}

.entry-content p {
	margin: 0 0 1.35em;
}

.entry-content a {
	color: var(--spark-hot);
	text-decoration: underline;
	text-decoration-color: var(--c-primary-mid);
	text-underline-offset: 3px;
}

.entry-content a:hover {
	color: var(--spark);
	text-decoration-color: var(--spark);
}

.entry-content ul,
.entry-content ol {
	padding-left: 1.5em;
	margin-bottom: 1.35em;
}

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

.entry-content li::marker {
	color: var(--spark);
}

.entry-content blockquote {
	margin: 1.8em 0;
	padding: 18px 24px;
	background: var(--ink-800);
	border-left: 4px solid var(--spark);
	border-radius: 0 var(--radius) var(--radius) 0;
	color: var(--text-dim);
	font-size: 16px;
}

.entry-content blockquote p:last-child {
	margin: 0;
}

.entry-content img,
.entry-content figure img {
	border-radius: var(--radius);
	margin: 1.6em 0;
}

.entry-content figcaption {
	font-size: 13px;
	color: var(--text-mute);
	text-align: center;
	margin-top: -1em;
}

.entry-content code {
	font-family: var(--font-mono);
	font-size: 0.9em;
	padding: 2px 6px;
	background: var(--ink-700);
	border: 1px solid var(--line-soft);
	border-radius: var(--radius);
	color: var(--c-accent-text);
}

.entry-content pre {
	background: var(--ink-850);
	border: 1px solid var(--line-soft);
	border-radius: var(--radius);
	padding: 18px 20px;
	overflow-x: auto;
	margin: 1.6em 0;
	font-size: 0.9em;
	line-height: 1.7;
}

.entry-content pre code {
	background: transparent;
	border: 0;
	padding: 0;
	color: var(--c-text);
}

/* 技术规格表：工业主题的核心元素 */
.entry-content table {
	width: 100%;
	border-collapse: collapse;
	margin: 1.8em 0;
	font-size: 14.5px;
	background: var(--ink-800);
	border: 1px solid var(--line);
}

.entry-content thead th {
	background: var(--ink-600);
	color: var(--c-heading);
	font-weight: 700;
	text-align: left;
	padding: 12px 14px;
	border-bottom: 2px solid var(--spark);
	font-size: 13.5px;
	letter-spacing: 0.02em;
}

.entry-content tbody td {
	padding: 11px 14px;
	border-bottom: 1px solid var(--line-soft);
	color: var(--text-dim);
}

.entry-content tbody tr:nth-child(even) {
	background: var(--c-surface-2);
}

.entry-content tbody tr:last-child td {
	border-bottom: 0;
}

.entry-content tbody tr:hover {
	background: var(--c-primary-tint);
}

.entry-content .wp-block-table {
	overflow-x: auto;
}

.page-links {
	margin: 2em 0;
	font-size: 14px;
	color: var(--text-mute);
}

.page-links a {
	padding: 4px 10px;
	border: 1px solid var(--line-hot);
	border-radius: var(--radius);
}

/* ---------- 文章页脚 ---------- */
.article-footer {
	margin-top: 44px;
	padding-top: 28px;
	border-top: 1px solid var(--line-soft);
}

.article-tags {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin-bottom: 22px;
	font-size: 13px;
}

.tag-label {
	color: var(--text-mute);
	font-size: 12.5px;
	letter-spacing: 0.06em;
}

.article-tags a {
	padding: 5px 11px;
	background: var(--ink-700);
	border: 1px solid var(--line-soft);
	border-radius: var(--radius);
	color: var(--text-dim);
	font-size: 12.5px;
}

.article-tags a:hover {
	border-color: var(--spark);
	color: var(--spark);
}

.article-actions {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	flex-wrap: wrap;
}

.btn-action {
	gap: 8px;
	padding: 9px 16px;
	font-size: 13.5px;
	border-color: var(--line-hot);
	color: var(--text-dim);
}

.btn-action:hover {
	border-color: var(--spark);
	color: var(--spark);
}

.btn-count {
	font-family: var(--font-mono);
	font-size: 12px;
	color: var(--text-mute);
	padding-left: 8px;
	border-left: 1px solid var(--line);
}

.share-bar {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 13px;
	flex-wrap: wrap;
}

.share-label {
	color: var(--text-mute);
	font-size: 12.5px;
	letter-spacing: 0.06em;
}

.share-bar a,
.share-copy {
	padding: 6px 12px;
	background: var(--ink-700);
	border: 1px solid var(--line-soft);
	border-radius: var(--radius);
	color: var(--text-dim);
	font-size: 12.5px;
}

.share-bar a:hover,
.share-copy:hover {
	border-color: var(--spark);
	color: var(--spark);
}

/* ---------- 作者卡 ---------- */
.author-box {
	display: flex;
	gap: 18px;
	margin: 36px 0 0;
	padding: 24px;
	background: var(--ink-800);
	border: 1px solid var(--line-soft);
	border-left: 3px solid var(--spark);
	border-radius: var(--radius);
}

.author-avatar img,
.author-avatar .avatar {
	width: 72px;
	height: 72px;
	border-radius: 50%;
	border: 1px solid var(--line-hot);
	object-fit: cover;
}

.author-body {
	min-width: 0;
}

.author-name {
	font-size: 16.5px;
	font-weight: 800;
	margin-bottom: 6px;
	color: var(--c-heading);
}

.author-desc {
	font-size: 14px;
	color: var(--text-dim);
	margin: 0 0 10px;
	line-height: 1.7;
}

.author-link {
	font-size: 13px;
	color: var(--spark);
	font-weight: 700;
}

/* ---------- 相关文章 ---------- */
.related {
	margin-top: 52px;
	padding-top: 32px;
	border-top: 1px solid var(--line-soft);
}

.related-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
}

/* ---------- 评论 ---------- */
.comments-area {
	margin-top: 52px;
	padding-top: 32px;
	border-top: 1px solid var(--line-soft);
}

.comments-title,
.comment-reply-title {
	font-size: 19px;
	margin-bottom: 22px;
}

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

.comment-list ol.children {
	list-style: none;
	margin: 18px 0 0;
	padding-left: 30px;
	border-left: 1px solid var(--line-soft);
}

.comment-body {
	padding: 18px 0;
	border-bottom: 1px solid var(--line-soft);
}

.comment-meta {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 10px;
}

.comment-author {
	display: flex;
	align-items: center;
	gap: 10px;
	font-weight: 700;
	font-size: 14px;
}

.comment-author .avatar {
	border-radius: 50%;
	border: 1px solid var(--line-hot);
}

.comment-metadata {
	font-size: 12px;
	color: var(--text-mute);
}

.comment-content {
	font-size: 14.5px;
	color: var(--text-dim);
	line-height: 1.8;
}

.comment-content p:last-child {
	margin-bottom: 0;
}

.reply a {
	font-size: 12.5px;
	color: var(--spark);
}

.comment-respond {
	margin-top: 30px;
}

.comment-form {
	display: grid;
	gap: 16px;
}

.comment-form p {
	margin: 0;
}

.comment-form label {
	display: block;
	font-size: 13px;
	color: var(--text-mute);
	margin-bottom: 6px;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
	width: 100%;
	padding: 11px 14px;
	background: var(--ink-900);
	border: 1px solid var(--line-hot);
	border-radius: var(--radius);
	color: var(--text);
	font-family: inherit;
	font-size: 15px;
	line-height: 1.6;
}

.comment-form input:focus,
.comment-form textarea:focus {
	outline: none;
	border-color: var(--spark);
}

.comment-form textarea {
	min-height: 140px;
	resize: vertical;
}

.comment-notes,
.logged-in-as,
.comment-form-cookies-consent {
	font-size: 13px;
	color: var(--text-mute);
}

.comment-form-cookies-consent {
	display: flex;
	align-items: center;
	gap: 8px;
}

.comment-login-hint {
	padding: 22px 24px;
	background: var(--ink-800);
	border: 1px dashed var(--line-hot);
	border-radius: var(--radius);
	margin-bottom: 24px;
}

.comment-login-hint p {
	color: var(--text-dim);
	font-size: 14.5px;
	margin-bottom: 14px;
}

.comment-login-hint .btn {
	margin-right: 10px;
}

.no-comments {
	color: var(--text-mute);
	font-size: 14px;
}

/* ---------- 空状态 / 404 ---------- */
.empty-state {
	text-align: center;
	padding: 80px 24px;
	background: var(--ink-800);
	border: 1px dashed var(--line-hot);
	border-radius: var(--radius);
}

.empty-icon {
	color: var(--line-hot);
	margin-bottom: 18px;
	display: flex;
	justify-content: center;
}

.empty-state h2 {
	font-size: 20px;
	margin-bottom: 8px;
}

.empty-state p {
	color: var(--text-mute);
	margin-bottom: 22px;
}

.error-page {
	padding: 70px 0 90px;
}

.error-code {
	font-family: var(--font-mono);
	font-size: clamp(80px, 16vw, 180px);
	font-weight: 900;
	line-height: 1;
	letter-spacing: -0.05em;
	color: transparent;
	-webkit-text-stroke: 2px var(--line-hot);
	margin-bottom: 10px;
}

.error-title {
	font-size: clamp(24px, 3vw, 34px);
	margin-bottom: 12px;
}

.error-desc {
	color: var(--text-dim);
	max-width: 560px;
	margin-bottom: 26px;
}

.error-search {
	max-width: 520px;
	margin-bottom: 26px;
}

.error-actions {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
	margin-bottom: 56px;
}

.error-recent {
	max-width: 700px;
	padding-top: 32px;
	border-top: 1px solid var(--line-soft);
}

.error-recent h2 {
	font-size: 16px;
	margin-bottom: 14px;
	color: var(--text-dim);
}

.error-recent ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.error-recent li {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	padding: 11px 0;
	border-bottom: 1px dashed var(--line-soft);
	font-size: 14.5px;
}

.error-recent li span {
	color: var(--text-mute);
	font-size: 12.5px;
	white-space: nowrap;
}

/* ---------- 通知条 ---------- */
.cmwg-notice {
	padding: 13px 18px;
	margin-bottom: 22px;
	border: 1px solid;
	border-radius: var(--radius);
	font-size: 14px;
	line-height: 1.6;
}

.cmwg-notice--error {
	background: var(--c-err-tint);
	border-color: var(--c-err-soft);
	color: var(--c-err-text);
}

.cmwg-notice--success {
	background: var(--c-ok-tint);
	border-color: var(--c-ok-soft);
	color: var(--c-ok-text);
}

/* ---------- 表单通用 ---------- */
.field {
	display: block;
	margin-bottom: 18px;
}

.field-label {
	display: block;
	font-size: 13px;
	font-weight: 700;
	color: var(--text-dim);
	margin-bottom: 7px;
	letter-spacing: 0.02em;
}

.field-hint {
	display: block;
	font-size: 12.5px;
	color: var(--text-mute);
	margin-top: 6px;
	line-height: 1.6;
}

.field input[type="text"],
.field input[type="email"],
.field input[type="url"],
.field input[type="password"],
.field input[type="file"],
.field select,
.field textarea {
	width: 100%;
	padding: 11px 14px;
	background: var(--ink-900);
	border: 1px solid var(--line-hot);
	border-radius: var(--radius);
	color: var(--text);
	font-family: inherit;
	font-size: 15px;
	line-height: 1.6;
}

.field input[type="file"] {
	padding: 8px 10px;
	font-size: 13px;
	color: var(--text-mute);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
	outline: none;
	border-color: var(--spark);
	box-shadow: 0 0 0 3px var(--c-primary-tint);
}

.field textarea {
	resize: vertical;
	min-height: 90px;
}

.field-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 18px;
}

.check {
	display: flex;
	align-items: flex-start;
	gap: 9px;
	font-size: 13.5px;
	color: var(--text-dim);
	line-height: 1.6;
	margin-bottom: 18px;
	cursor: pointer;
}

.check input {
	margin-top: 4px;
	accent-color: var(--spark);
	width: 16px;
	height: 16px;
	flex-shrink: 0;
}

.check-inline {
	margin-bottom: 0;
}

/* ---------- 登录注册 ---------- */
.auth-page {
	display: grid;
	grid-template-columns: 1fr 1fr;
	min-height: calc(100vh - 116px);
}

.auth-visual {
	position: relative;
	display: flex;
	align-items: center;
	padding: 60px 56px;
	background: var(--ink-850);
	border-right: 1px solid var(--line);
	overflow: hidden;
}

.auth-visual::before {
	content: "";
	position: absolute;
	inset: 0;
	background:
		radial-gradient(circle at 78% 18%, var(--c-primary-soft), transparent 55%),
		repeating-linear-gradient(135deg, var(--c-line-soft) 0 1px, transparent 1px 14px);
	pointer-events: none;
}

.auth-visual-inner {
	position: relative;
	max-width: 440px;
}

.auth-kicker {
	font-family: var(--font-mono);
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: 0.22em;
	color: var(--spark);
	margin-bottom: 24px;
}

.auth-visual-title {
	font-size: clamp(30px, 3.4vw, 46px);
	line-height: 1.22;
	letter-spacing: -0.03em;
	margin: 0 0 20px;
}

.auth-visual-title span {
	display: block;
}

.auth-visual-title .accent {
	color: var(--spark);
}

.auth-visual-desc {
	color: var(--text-dim);
	font-size: 15.5px;
	line-height: 1.85;
	margin-bottom: 26px;
}

.auth-points {
	list-style: none;
	margin: 0;
	padding: 0;
}

.auth-points li {
	position: relative;
	padding-left: 22px;
	margin-bottom: 11px;
	font-size: 14px;
	color: var(--text-mute);
}

.auth-points li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 10px;
	width: 7px;
	height: 7px;
	background: var(--spark);
	transform: rotate(45deg);
}

.auth-panel {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 56px 40px;
}

.auth-card {
	width: 100%;
	max-width: 400px;
}

.auth-title {
	font-size: 26px;
	margin-bottom: 6px;
}

.auth-sub {
	font-size: 14px;
	color: var(--text-mute);
	margin-bottom: 26px;
}

.auth-sub a {
	color: var(--spark);
	font-weight: 700;
}

.auth-form {
	display: block;
}

.auth-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 22px;
}

.auth-link {
	font-size: 13px;
	color: var(--text-mute);
}

.auth-link:hover {
	color: var(--spark);
}

.auth-forgot {
	margin-top: 26px;
	padding-top: 24px;
	border-top: 1px solid var(--line-soft);
}

.auth-forgot h3 {
	font-size: 15px;
	margin-bottom: 16px;
	color: var(--text-dim);
}

/* ---------- 会员中心 ---------- */
.member-head {
	background: var(--ink-850);
	border-bottom: 1px solid var(--line);
	padding: 32px 0;
}

.member-head-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 32px;
	flex-wrap: wrap;
}

.member-identity {
	display: flex;
	align-items: center;
	gap: 18px;
}

.member-avatar img,
.member-avatar .avatar {
	width: 80px;
	height: 80px;
	border-radius: 50%;
	border: 2px solid var(--line-hot);
	object-fit: cover;
}

.member-name {
	font-size: 24px;
	margin: 0 0 4px;
}

.member-since {
	margin: 0;
	font-size: 13px;
	color: var(--text-mute);
}

.member-score {
	display: flex;
	gap: 40px;
}

.score-item {
	text-align: center;
}

.score-item strong {
	display: block;
	font-family: var(--font-mono);
	font-size: 26px;
	font-weight: 700;
	color: var(--spark);
	line-height: 1.2;
}

.score-item span {
	font-size: 12.5px;
	color: var(--text-mute);
}

.member-layout {
	display: grid;
	grid-template-columns: 210px minmax(0, 1fr);
	gap: 36px;
	padding-top: 36px;
	padding-bottom: 80px;
	align-items: start;
}

.member-nav {
	display: flex;
	flex-direction: column;
	gap: 4px;
	position: sticky;
	top: 100px;
}

.member-nav-item {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 11px 14px;
	border-radius: var(--radius);
	color: var(--text-dim);
	font-size: 14px;
	font-weight: 600;
	border-left: 2px solid transparent;
}

.member-nav-item:hover {
	background: var(--ink-800);
	color: var(--spark);
}

.member-nav-item.is-active {
	background: var(--ink-800);
	border-left-color: var(--spark);
	color: var(--c-heading);
}

.member-nav-icon {
	width: 18px;
	text-align: center;
	color: var(--text-mute);
	font-size: 13px;
}

.member-nav-item.is-active .member-nav-icon {
	color: var(--spark);
}

.member-nav-dot {
	margin-left: auto;
	padding: 1px 7px;
	background: var(--spark);
	border-radius: 10px;
	color: var(--c-on-primary);
	font-family: var(--font-mono);
	font-size: 11px;
	font-weight: 700;
}

.member-nav-out {
	margin-top: 14px;
	color: var(--text-mute);
	font-size: 13px;
	border-left-color: transparent;
}

.member-body {
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 26px;
}

.member-section {
	background: var(--ink-800);
	border: 1px solid var(--line-soft);
	border-radius: var(--radius);
	padding: 26px 28px;
}

.member-section-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 18px;
}

.member-section-title {
	font-size: 17px;
	margin: 0 0 18px;
	padding-bottom: 12px;
	border-bottom: 1px solid var(--line-soft);
}

.member-section-head .member-section-title {
	margin-bottom: 0;
	padding-bottom: 0;
	border-bottom: 0;
}

.member-more {
	font-size: 13px;
	color: var(--spark);
	font-weight: 700;
	white-space: nowrap;
}

.member-hint {
	font-size: 13.5px;
	color: var(--text-mute);
	padding: 12px 16px;
	background: var(--ink-900);
	border-left: 3px solid var(--line-hot);
	border-radius: 0 var(--radius) var(--radius) 0;
	margin: -4px 0 22px;
	line-height: 1.7;
}

.member-empty {
	color: var(--text-mute);
	font-size: 14.5px;
	margin: 0;
	padding: 20px 0;
}

.member-empty a {
	color: var(--spark);
	font-weight: 700;
}

.stat-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 14px;
}

.stat-card {
	padding: 18px 16px;
	background: var(--ink-900);
	border: 1px solid var(--line-soft);
	border-radius: var(--radius);
	text-align: center;
}

.stat-num {
	display: block;
	font-family: var(--font-mono);
	font-size: 24px;
	font-weight: 700;
	color: var(--spark);
	line-height: 1.3;
}

.stat-label {
	font-size: 12.5px;
	color: var(--text-mute);
}

.member-post-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.member-post-list li {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 12px 0;
	border-bottom: 1px dashed var(--line-soft);
	font-size: 14.5px;
}

.member-post-list li:last-child {
	border-bottom: 0;
}

.member-post-title {
	flex: 1;
	min-width: 0;
	color: var(--text);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.member-post-title:hover {
	color: var(--spark);
}

.member-post-date {
	font-family: var(--font-mono);
	font-size: 12px;
	color: var(--text-mute);
	white-space: nowrap;
}

.member-post-edit {
	font-size: 12.5px;
	color: var(--text-mute);
	white-space: nowrap;
}

.member-post-edit:hover {
	color: var(--spark);
}

.status-pill {
	flex-shrink: 0;
	padding: 2px 9px;
	border-radius: 10px;
	font-size: 11.5px;
	font-weight: 700;
	line-height: 1.7;
	white-space: nowrap;
}

.status-pill.is-live {
	background: var(--c-ok-tint);
	color: var(--c-ok-text);
}

.status-pill.is-pending {
	background: var(--c-accent-tint);
	color: var(--c-accent-text);
}

.status-pill.is-draft,
.status-pill.is-none {
	background: var(--c-surface-3);
	color: var(--c-text-mute);
}

.status-pill.is-rejected {
	background: var(--c-err-tint);
	color: var(--c-err-text);
}

.points-rules {
	list-style: none;
	margin: 0;
	padding: 0;
}

.points-rules li {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	padding: 9px 0;
	border-bottom: 1px dashed var(--line-soft);
	font-size: 14px;
	color: var(--text-dim);
}

.points-rules li:last-child {
	border-bottom: 0;
}

.points-rules strong {
	color: var(--spark);
	font-family: var(--font-mono);
}

.follow-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
}

.follow-card {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px 16px;
	background: var(--ink-900);
	border: 1px solid var(--line-soft);
	border-radius: var(--radius);
}

.follow-avatar img,
.follow-avatar .avatar {
	width: 56px;
	height: 56px;
	border-radius: 50%;
	border: 1px solid var(--line-hot);
	object-fit: cover;
}

.follow-body {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
}

.follow-name {
	font-size: 14.5px;
	font-weight: 700;
	color: var(--c-heading);
}

.follow-name:hover {
	color: var(--spark);
}

.follow-count {
	font-size: 12px;
	color: var(--text-mute);
}

.submit-form {
	display: block;
}

.submit-form > .btn {
	margin-top: 6px;
}

/* ---------- 页脚 ---------- */
.site-footer {
	background: var(--ink-900);
	border-top: 1px solid var(--line);
	padding: 56px 0 28px;
	margin-top: auto;
}

.footer-grid {
	display: grid;
	grid-template-columns: 1.6fr 1fr 1fr 1fr;
	gap: 40px;
	padding-bottom: 40px;
	border-bottom: 1px solid var(--line-soft);
}

.footer-brand .brand-name {
	font-size: 20px;
	margin-bottom: 12px;
}

.footer-desc {
	font-size: 13.5px;
	color: var(--text-mute);
	line-height: 1.8;
	max-width: 340px;
	margin-bottom: 16px;
}

.footer-contact {
	display: flex;
	flex-direction: column;
	gap: 6px;
	font-family: var(--font-mono);
	font-size: 12.5px;
	color: var(--text-dim);
}

.footer-title {
	font-size: 13px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--text-mute);
	margin-bottom: 16px;
	font-weight: 700;
}

.footer-col ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.footer-col li {
	margin-bottom: 10px;
	font-size: 13.5px;
}

.footer-col a {
	color: var(--text-dim);
}

.footer-col a:hover {
	color: var(--spark);
}

.footer-widgets {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 30px;
	padding: 32px 0;
	border-bottom: 1px solid var(--line-soft);
}

.footer-widgets .widget {
	background: transparent;
	border: 0;
	padding: 0;
}

.footer-bottom {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
	padding-top: 24px;
	font-size: 12.5px;
	color: var(--text-mute);
}

.footer-note {
	color: var(--text-mute);
}

.copyright {
	font-family: var(--font-mono);
	letter-spacing: 0.02em;
}

/* ---------- 正文容器与阅读时长 ---------- */
.article-body {
	min-width: 0;
}

.meta-read {
	color: var(--text-mute);
}

/* ---------- 收藏 / 关注按钮的状态细节 ---------- */
.btn-label {
	white-space: nowrap;
}

.btn-bookmark,
.btn-follow {
	transition: border-color 0.18s ease, color 0.18s ease, background-color 0.18s ease;
}

.btn-action.is-active {
	border-color: var(--spark);
	color: var(--spark);
	background: var(--c-primary-tint);
}

.btn-action.is-active .btn-count {
	color: var(--spark);
	border-left-color: var(--c-primary-soft);
}

.btn-follow.is-active {
	border-color: var(--c-primary-mid);
	color: var(--spark);
}

/* ---------- 会员中心补充块 ---------- */
.member-page {
	display: block;
}

.member-meta {
	min-width: 0;
}

.member-post-list--full li {
	padding: 14px 0;
}

/* ---------- 表格横向滚动容器（由 main.js 包裹） ---------- */
.table-scroll {
	margin: 26px 0;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--ink-850);
}

.table-scroll > table {
	margin: 0;
	border: 0;
}

/* ---------- GEO：结论块与 FAQ 覆盖为深色 ---------- */
.cmwg-tldr {
	background: var(--c-primary-tint) !important;
	border-left-color: var(--spark) !important;
	border-radius: 0 var(--radius) var(--radius) 0 !important;
}

.cmwg-tldr-label {
	color: var(--spark) !important;
}

.cmwg-tldr-text {
	color: var(--text) !important;
}

.cmwg-faq {
	border-top-color: var(--line-soft) !important;
}

.cmwg-faq-title {
	color: var(--c-heading) !important;
}

.cmwg-faq-item {
	border-bottom-color: var(--line-soft) !important;
}

.cmwg-faq-item > summary {
	color: var(--text) !important;
}

.cmwg-faq-item > summary::after {
	color: var(--text-mute) !important;
}

.cmwg-faq-item > summary:hover {
	color: var(--spark) !important;
}

.cmwg-faq-a,
.cmwg-faq-a p {
	color: var(--text-dim) !important;
}

/* ---------- 响应式 ---------- */
@media (max-width: 1080px) {
	.layout {
		grid-template-columns: minmax(0, 1fr) 300px;
		gap: 24px;
	}

	.card-row {
		grid-template-columns: 224px minmax(0, 1fr);
	}

	.footer-grid {
		grid-template-columns: 1fr 1fr;
		gap: 32px;
	}

	.home-top-inner {
		grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
		gap: 18px;
	}

	.side-card {
		grid-template-columns: 124px minmax(0, 1fr);
	}

	.news-head {
		grid-template-columns: 1fr;
		gap: 20px;
	}

	.news-blocks {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
		gap: 24px 20px;
	}

	.news-block--right {
		grid-column: 1 / -1;
	}

	.news-block--right .news-flow {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 14px 20px;
	}

	.news-block--right .news-flow-item {
		padding: 0;
		border-bottom: 0;
	}
}

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

	.hero-media,
	.hero-placeholder,
	.hero-placeholder svg {
		min-height: 240px;
	}

	.hero-body {
		padding: 32px 0 40px;
	}

	.secondary-grid,
	.related-grid {
		grid-template-columns: 1fr 1fr;
	}

	.home-top-inner {
		grid-template-columns: 1fr;
	}

	.home-slider,
	.home-slider-track {
		min-height: 280px;
	}

	.news-blocks {
		grid-template-columns: 1fr;
		gap: 26px;
	}

	.news-block--right {
		grid-column: auto;
	}

	.news-block--right .news-flow {
		display: flex;
	}

	.layout,
	.member-layout {
		grid-template-columns: 1fr;
	}

	.sidebar,
	.member-nav {
		position: static;
	}

	.member-nav {
		flex-direction: row;
		flex-wrap: wrap;
		overflow-x: auto;
		padding-bottom: 4px;
	}

	.member-nav-item {
		border-left: 0;
		border-bottom: 2px solid transparent;
		white-space: nowrap;
	}

	.member-nav-item.is-active {
		border-left-color: transparent;
		border-bottom-color: var(--spark);
	}

	.member-nav-out {
		margin-top: 0;
	}

	.auth-page {
		grid-template-columns: 1fr;
		min-height: 0;
	}

	.auth-visual {
		display: none;
	}

	.auth-panel {
		padding: 40px 24px 56px;
	}

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

	.card-row {
		grid-template-columns: 1fr;
	}

	.card-row .card-thumb {
		aspect-ratio: 16 / 9;
		min-height: 0;
	}

	.card-row .card-body {
		padding: 18px 20px;
	}

	.nav-toggle {
		display: flex;
	}

	.primary-nav {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		background: var(--ink-800);
		border-bottom: 1px solid var(--line);
		padding: 12px 24px 18px;
		box-shadow: 0 20px 40px var(--c-shadow-strong);
	}

	.primary-nav.is-open {
		display: block;
	}

	.nav-menu {
		flex-direction: column;
		align-items: stretch;
		gap: 2px;
	}

	.nav-menu > li > a {
		padding: 12px 10px;
		font-size: 15px;
	}

	.nav-menu .sub-menu {
		position: static;
		opacity: 1;
		visibility: visible;
		transform: none;
		box-shadow: none;
		border: 0;
		background: transparent;
		padding: 0 0 6px 14px;
	}

	.header-inner {
		position: relative;
		height: 68px;
		gap: 16px;
	}

	.header-submit {
		display: none;
	}
}

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

	.topbar-slogan,
	.topbar-sep {
		display: none;
	}

	.topbar-inner {
		height: 36px;
	}

	.hero-body {
		padding: 26px 0 34px;
	}

	.secondary-grid,
	.related-grid,
	.follow-grid {
		grid-template-columns: 1fr;
	}

	.home-side-list {
		grid-template-columns: 1fr;
		gap: 16px;
	}

	.side-card {
		display: grid;
		grid-template-columns: 112px minmax(0, 1fr);
		gap: 4px 12px;
		align-items: start;
	}

	.side-card-thumb {
		grid-row: 1 / span 2;
		aspect-ratio: 4 / 3;
	}

	.side-card-title {
		-webkit-line-clamp: 3;
	}

	.news-sub-item {
		grid-template-columns: 124px minmax(0, 1fr);
		gap: 12px;
	}

	.news-mid-grid {
		gap: 16px;
	}

	.news-flow-item {
		grid-template-columns: 34% minmax(0, 1fr);
		gap: 8px;
	}

	.news-flow-title {
		font-size: 13.5px;
		-webkit-line-clamp: 2;
	}

	.home-slider,
	.home-slider-track {
		min-height: 220px;
	}

	.home-slider .slide-title {
		font-size: 16px;
	}

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

	.footer-bottom {
		flex-direction: column;
		align-items: flex-start;
		gap: 8px;
	}

	.field-row {
		grid-template-columns: 1fr;
	}

	.member-score {
		gap: 28px;
	}

	.member-section {
		padding: 20px 18px;
	}

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

	.author-hero {
		flex-direction: column;
		gap: 16px;
	}

	.article-actions {
		flex-direction: column;
		align-items: flex-start;
	}

	.member-post-list li {
		flex-wrap: wrap;
	}

	.error-code {
		font-size: 90px;
	}
}

/* ---------- 动效与打印 ---------- */
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}

@media print {
	.topbar,
	.site-header,
	.site-footer,
	.sidebar,
	.tools,
	.article-actions,
	.share-bar,
	.related,
	.comments-area {
		display: none !important;
	}

	body {
		background: #fff;
		color: #000;
	}

	.entry-content a {
		color: #000;
	}
}

/* ==========================================================================
   三级会员认证
   ========================================================================== */

.tier-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 16px;
	margin: 18px 0 8px;
}

.tier-card {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 20px 18px;
	background: var(--c-surface);
	border: 1px solid var(--c-line);
	border-radius: var(--radius);
	transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.tier-card:hover {
	border-color: var(--c-primary-mid);
	box-shadow: 0 6px 20px var(--c-shadow);
}

.tier-card.is-active {
	border-color: var(--c-primary);
	box-shadow: inset 0 0 0 1px var(--c-primary-soft);
}

.tier-name {
	margin: 0;
	font-size: 16px;
	font-weight: 800;
	color: var(--c-heading);
}

.tier-needs {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.tier-needs li {
	padding: 2px 9px;
	border-radius: 10px;
	background: var(--c-accent-tint);
	color: var(--c-accent-text);
	font-size: 11.5px;
	font-weight: 600;
}

.tier-desc {
	margin: 0;
	flex: 1;
	font-size: 13px;
	line-height: 1.7;
	color: var(--c-text-dim);
}

.tier-done {
	align-self: flex-start;
	padding: 3px 10px;
	border-radius: 10px;
	background: var(--c-ok-tint);
	color: var(--c-ok-text);
	font-size: 12px;
	font-weight: 700;
}

.apply-form-wrap {
	margin-top: 26px;
	padding-top: 22px;
	border-top: 1px solid var(--c-line-soft);
}

.apply-form-title {
	margin: 26px 0 12px;
	font-size: 15px;
	font-weight: 800;
	color: var(--c-heading);
}

.apply-form-wrap .apply-form-title {
	margin-top: 0;
}

.field-req {
	margin-left: 3px;
	color: var(--c-err);
	font-weight: 700;
}

.verify-timeline {
	list-style: none;
	margin: 0;
	padding: 0;
	border-left: 2px solid var(--c-line);
}

.verify-timeline li {
	position: relative;
	padding: 0 0 14px 18px;
	font-size: 13px;
	color: var(--c-text-dim);
}

.verify-timeline li::before {
	content: "";
	position: absolute;
	left: -5px;
	top: 8px;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--c-primary);
}

.verify-timeline li:last-child {
	padding-bottom: 0;
}

.timeline-time {
	display: block;
	font-family: var(--font-mono);
	font-size: 11.5px;
	color: var(--c-text-mute);
}

.timeline-note {
	display: block;
	margin-top: 2px;
}

.doc-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.doc-list li a {
	display: inline-block;
	padding: 5px 12px;
	border: 1px solid var(--c-line);
	border-radius: var(--radius);
	font-size: 12.5px;
	color: var(--c-text-dim);
}

.doc-list li a:hover {
	border-color: var(--c-primary);
	color: var(--c-primary);
}

.btn-sm {
	padding: 7px 15px;
	font-size: 13px;
}

/* ==========================================================================
   广告位
   ========================================================================== */

.ad-slot-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 16px;
	margin-bottom: 8px;
}

.ad-slot-card {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 16px;
	background: var(--c-surface);
	border: 1px dashed var(--c-line-hot);
	border-radius: var(--radius);
}

.ad-slot-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
}

.ad-slot-name {
	font-size: 13px;
	font-weight: 700;
	color: var(--c-heading);
}

.ad-slot-preview {
	display: block;
	overflow: hidden;
	border: 1px solid var(--c-line-soft);
	border-radius: var(--radius);
	background: var(--c-surface-2);
}

.ad-slot-preview img {
	display: block;
	width: 100%;
	height: auto;
}

.ad-slot-meta {
	margin: 0;
	font-size: 12px;
	color: var(--c-text-mute);
}

.ad-slot-reason {
	margin: 0;
	font-size: 12px;
	color: var(--c-err-text);
}

.ad-slot-off {
	margin: 0;
}

.ad-slot-form {
	margin-top: 6px;
	padding-top: 12px;
	border-top: 1px solid var(--c-line-soft);
	gap: 0;
}

.ad-note {
	margin-bottom: 14px;
	padding: 12px 14px;
	background: var(--c-accent-tint);
	border-left: 3px solid var(--c-accent);
	border-radius: var(--radius);
	font-size: 12.5px;
	line-height: 1.8;
	color: var(--c-text-dim);
}

.ad-site,
.ad-home {
	display: block;
	overflow: hidden;
	border-radius: var(--radius);
	transition: opacity 0.16s ease;
}

.ad-site:hover,
.ad-home:hover {
	opacity: 0.86;
}

.ad-site img,
.ad-home img {
	display: block;
	width: 100%;
	height: auto;
}

.ad-site--sidebar {
	margin-bottom: 18px;
}

.ad-site--footer {
	margin-top: 28px;
}

.ad-home {
	margin: 20px 0;
	border: 1px solid var(--c-line-soft);
}

/* ==========================================================================
   悬浮工具条
   ========================================================================== */

.tools {
	position: fixed;
	bottom: 28px;
	z-index: 60;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.tools.is-right {
	right: 22px;
}

.tools.is-left {
	left: 22px;
}

.tools-btn,
.tools-item {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	gap: 1px;
	width: 52px;
	min-height: 48px;
	padding: 6px 4px;
	background: var(--c-surface);
	border: 1px solid var(--c-line);
	border-radius: var(--radius);
	box-shadow: 0 4px 14px var(--c-shadow);
	color: var(--c-text-dim);
	font-size: 11px;
	font-weight: 600;
	line-height: 1.3;
	text-align: center;
	cursor: pointer;
	transition: color 0.16s ease, border-color 0.16s ease, transform 0.16s ease, opacity 0.2s ease;
}

.tools-btn:hover,
.tools-item:hover {
	border-color: var(--c-primary);
	color: var(--c-primary);
	transform: translateY(-2px);
}

.tools-icon {
	font-size: 15px;
	line-height: 1;
}

.tools-label {
	display: block;
	max-width: 44px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* 悬浮浮层：默认收起，hover / focus 时展开 */
.tools-pop {
	position: absolute;
	right: calc(100% + 10px);
	bottom: 0;
	min-width: 180px;
	padding: 12px 14px;
	background: var(--c-surface);
	border: 1px solid var(--c-line);
	border-radius: var(--radius);
	box-shadow: 0 12px 32px var(--c-shadow-strong);
	opacity: 0;
	visibility: hidden;
	transform: translateX(6px);
	transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s;
}

.tools.is-left .tools-pop {
	right: auto;
	left: calc(100% + 10px);
	transform: translateX(-6px);
}

.tools-item:hover .tools-pop,
.tools-item:focus-within .tools-pop {
	opacity: 1;
	visibility: visible;
	transform: translateX(0);
}

.tools-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	font-size: 12.5px;
	font-weight: 500;
	color: var(--c-text-dim);
}

.tools-row + .tools-row {
	margin-top: 8px;
	padding-top: 8px;
	border-top: 1px solid var(--c-line-soft);
}

.tools-row-label {
	flex-shrink: 0;
	color: var(--c-text-mute);
}

.tools-row a,
.tools-copy {
	padding: 0;
	border: 0;
	background: none;
	color: var(--c-primary);
	font: inherit;
	cursor: pointer;
	text-align: right;
	word-break: break-all;
}

.tools-pop-qr {
	padding: 8px;
}

.tools-pop-qr img {
	display: block;
	width: 148px;
	height: auto;
}

/* 返回顶部：滚动到阈值后淡入，未到阈值时不可点 */
.tools-backtop {
	opacity: 0;
	visibility: hidden;
	transform: translateY(8px);
}

.tools-backtop.is-on {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

@media (max-width: 720px) {
	.tools {
		bottom: 16px;
	}

	.tools.is-right {
		right: 12px;
	}

	.tools.is-left {
		left: 12px;
	}

	.tools-btn,
	.tools-item {
		width: 44px;
		min-height: 42px;
	}

	.tools-label {
		display: none;
	}

	.tools-pop {
		min-width: 150px;
	}

	.tools-pop-qr img {
		width: 112px;
	}

	.ad-slot-grid {
		grid-template-columns: 1fr;
	}
}
