/* =========================================================
   Brisk 主题样式表
   1. 设计变量    2. 基础与排版    3. 布局    4. 页眉
   5. 页脚        6. 按钮与标签    7. 卡片    8. 区块标题与分页
   9. 文章页      10. 作者/评论    11. 首页模块    12. 空状态
   13. 区块与正文  14. 暗色模式    15. 响应式    16. 可访问性
   ========================================================= */

/* ---------------------------------------------------------
   1. 设计变量
   --------------------------------------------------------- */
:root {
	--brisk-brand: #ff5c39;
	--brisk-brand-deep: #d93b1b;
	--brisk-brand-soft: #ffe9e1;
	--brisk-amber: #ffb020;
	--brisk-amber-soft: #fff3d6;
	--brisk-blue: #3b5bff;
	--brisk-blue-soft: #e7ebff;
	--brisk-mint: #14c2a3;
	--brisk-mint-soft: #dff8f1;

	--brisk-ink: #17191f;
	--brisk-ink-2: #3d414c;
	--brisk-muted: #6e7381;

	--brisk-bg: #fffcf7;
	--brisk-surface: #ffffff;
	--brisk-surface-2: #fbf7f0;
	--brisk-line: #ede6da;

	--brisk-radius-s: 12px;
	--brisk-radius: 20px;
	--brisk-radius-l: 32px;

	--brisk-shadow: 0 18px 40px -24px rgba(23, 25, 31, 0.35);
	--brisk-shadow-pop: 5px 5px 0 0 #17191f;

	--brisk-max: 1180px;
	--brisk-narrow: 860px;
	--brisk-sidebar-w: 320px;
	--brisk-header-h: 72px;

	--brisk-font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
		"Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}

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

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--brisk-header-h) + 16px);
}

body {
	margin: 0;
	font-family: var(--brisk-font-sans);
	font-size: 1rem;
	line-height: 1.75;
	color: var(--brisk-ink);
	background-color: var(--brisk-bg);
	-webkit-font-smoothing: antialiased;
	overflow-wrap: break-word;
}

body.brisk-noscroll {
	overflow: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	margin: 0 0 0.6em;
	font-weight: 800;
	line-height: 1.3;
	letter-spacing: -0.01em;
	color: var(--brisk-ink);
	text-wrap: balance;
}

p {
	margin: 0 0 1.2em;
}

a {
	color: var(--brisk-brand-deep);
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

a:hover {
	color: var(--brisk-brand);
}

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

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

figure {
	margin: 0 0 1.4em;
}

code,
kbd,
pre,
samp {
	font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
	font-size: 0.9375em;
}

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

table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.9375rem;
}

th,
td {
	padding: 0.7em 0.9em;
	border-bottom: 1px solid var(--brisk-line);
	text-align: left;
}

th {
	font-weight: 700;
	background: var(--brisk-surface-2);
}

/* ---------------------------------------------------------
   3. 布局
   --------------------------------------------------------- */
.site {
	display: flex;
	min-height: 100vh;
	flex-direction: column;
}

.wrap {
	width: 100%;
	max-width: var(--brisk-max);
	margin-inline: auto;
	padding-inline: clamp(18px, 4vw, 44px);
}

.content-area {
	display: block;
	padding-block: clamp(32px, 5vw, 64px);
	flex: 1 0 auto;
}

.content-area--sidebar {
	display: grid;
	grid-template-columns: minmax(0, 1fr) var(--brisk-sidebar-w, 320px);
	gap: clamp(24px, 3vw, 52px);
	align-items: start;
	max-width: var(--brisk-max);
}

.content-area--narrow {
	max-width: var(--brisk-narrow);
}

.site-main {
	min-width: 0;
}

.sidebar {
	position: sticky;
	top: calc(var(--brisk-header-h) + 24px);
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.widget {
	padding: 22px;
	background: var(--brisk-surface);
	border: 1px solid var(--brisk-line);
	border-radius: var(--brisk-radius);
}

.widget__title {
	margin: 0 0 14px;
	font-size: 1rem;
	letter-spacing: 0.02em;
}

.widget ul {
	margin: 0;
	padding: 0;
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.widget ul li a {
	color: var(--brisk-ink-2);
	text-decoration: none;
	font-size: 0.9375rem;
}

.widget ul li a:hover {
	color: var(--brisk-brand);
}

/* ---------------------------------------------------------
   4. 页眉与导航
   --------------------------------------------------------- */
.site-header {
	position: sticky;
	top: 0;
	z-index: 90;
	background: rgba(255, 252, 247, 0.86);
	backdrop-filter: saturate(180%) blur(12px);
	border-bottom: 1px solid var(--brisk-line);
}

.site-header__inner {
	display: flex;
	align-items: center;
	gap: clamp(14px, 2vw, 32px);
	min-height: var(--brisk-header-h);
	position: relative;
}

/* 页眉自定义图片：尺寸由定制器内联样式决定，这里只做兜底 */
.header-image {
	flex: 0 0 auto;
	max-width: 100%;
	line-height: 0;
}

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

.site-branding {
	display: flex;
	align-items: center;
	gap: 12px;
	min-width: 0;
}

.custom-logo {
	max-height: 40px;
	width: auto;
	border-radius: 10px;
}

.site-branding__text {
	min-width: 0;
}

.site-title {
	margin: 0;
	font-size: 1.1875rem;
	font-weight: 800;
	letter-spacing: -0.02em;
	line-height: 1.2;
}

.site-title a {
	color: var(--brisk-ink);
	text-decoration: none;
}

.site-title a:hover {
	color: var(--brisk-brand);
}

.site-description {
	margin: 2px 0 0;
	font-size: 0.8125rem;
	color: var(--brisk-muted);
	line-height: 1.4;
}

.primary-nav {
	margin-left: auto;
}

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

.primary-nav .menu-item > a {
	display: block;
	padding: 8px 14px;
	border-radius: 999px;
	color: var(--brisk-ink-2);
	font-size: 0.9375rem;
	font-weight: 600;
	text-decoration: none;
	transition: background-color 0.18s ease, color 0.18s ease;
}

.primary-nav .menu-item > a:hover,
.primary-nav .menu-item.current-menu-item > a {
	background: var(--brisk-brand-soft);
	color: var(--brisk-brand-deep);
}

/*
 * 层级菜单：桌面端悬停 / 键盘聚焦时弹出面板，二级以下向右展开；
 * 移动端回到纵向缩进展开（见第 15 节响应式）。
 */
.primary-nav .menu-item {
	position: relative;
}

.primary-nav .menu-item-has-children > a {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.primary-nav .menu-item-has-children > a::after {
	content: "";
	width: 5px;
	height: 5px;
	border-right: 1.5px solid currentColor;
	border-bottom: 1.5px solid currentColor;
	transform: rotate(45deg) translate(-1px, -1px);
	opacity: 0.55;
	transition: transform 0.18s ease, opacity 0.18s ease;
}

.primary-nav .menu-item-has-children:hover > a::after,
.primary-nav .menu-item-has-children:focus-within > a::after,
.primary-nav .menu-item-has-children.is-submenu-open > a::after {
	transform: rotate(-135deg) translate(-2px, -2px);
	opacity: 1;
}

.primary-nav .sub-menu {
	position: absolute;
	top: calc(100% + 10px);
	left: 0;
	z-index: 40;
	display: block;
	min-width: 210px;
	margin: 0;
	padding: 8px;
	list-style: none;
	background: var(--brisk-surface);
	border: 1px solid var(--brisk-line);
	border-radius: var(--brisk-radius-s);
	box-shadow: var(--brisk-shadow);
	opacity: 0;
	visibility: hidden;
	transform: translateY(-6px);
	pointer-events: none;
	transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
}

.primary-nav .sub-menu::before {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	top: -10px;
	height: 10px;
}

.primary-nav .sub-menu .sub-menu {
	top: -9px;
	left: calc(100% + 10px);
}

/* 向右展开的三级面板：补上左侧 10px 间隙，慢速横移也不会穿越空洞 */
.primary-nav .sub-menu .sub-menu::before {
	top: 0;
	left: -10px;
	right: auto;
	width: 10px;
	height: 100%;
}

.primary-nav .menu-item-has-children:hover > .sub-menu,
.primary-nav .menu-item-has-children:focus-within > .sub-menu,
.primary-nav .menu-item-has-children.is-submenu-open > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
	pointer-events: auto;
}

.primary-nav .sub-menu .menu-item > a {
	display: block;
	position: relative;
	padding: 9px 26px 9px 12px;
	border-radius: 8px;
	font-size: 0.9rem;
	font-weight: 500;
	white-space: nowrap;
}

.primary-nav .sub-menu .menu-item-has-children > a::after {
	position: absolute;
	top: 50%;
	right: 12px;
	margin: 0;
	transform: translateY(-50%) rotate(-45deg);
}

/* 二级以下的面板向右展开，箭头始终朝右，不跟着悬停翻转 */
.primary-nav .sub-menu .menu-item-has-children:hover > a::after,
.primary-nav .sub-menu .menu-item-has-children:focus-within > a::after,
.primary-nav .sub-menu .menu-item-has-children.is-submenu-open > a::after {
	transform: translateY(-50%) rotate(-45deg);
}

.primary-nav .sub-menu .menu-item > a:hover,
.primary-nav .sub-menu .menu-item.current-menu-item > a {
	background: var(--brisk-brand-soft);
	color: var(--brisk-brand-deep);
}

.header-actions {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-left: 4px;
}

.icon-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 1px solid var(--brisk-line);
	border-radius: 12px;
	background: var(--brisk-surface);
	color: var(--brisk-ink-2);
	cursor: pointer;
	list-style: none;
	transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.icon-button:hover {
	background: var(--brisk-brand-soft);
	border-color: var(--brisk-brand-soft);
	color: var(--brisk-brand-deep);
}

.icon-button .icon {
	width: 20px;
	height: 20px;
	display: block;
}

.icon-button::-webkit-details-marker {
	display: none;
}

.icon-button::marker {
	content: "";
}

/* 明暗切换：按当前配色显示对应图标 */
.brisk-toggle .icon--sun,
.brisk-toggle .icon--moon {
	transition: opacity 0.2s ease, transform 0.25s ease;
}

[data-color-scheme="dark"] .brisk-toggle .icon--sun {
	display: none;
}

[data-color-scheme="light"] .brisk-toggle .icon--moon,
html:not([data-color-scheme="dark"]) .brisk-toggle .icon--moon {
	display: none;
}

/* 搜索折叠面板 */
.search-disclosure {
	position: relative;
}

.search-disclosure__panel {
	position: absolute;
	top: calc(100% + 10px);
	right: 0;
	width: min(320px, calc(100vw - 36px));
	padding: 14px;
	background: var(--brisk-surface);
	border: 1px solid var(--brisk-line);
	border-radius: var(--brisk-radius);
	box-shadow: var(--brisk-shadow);
	z-index: 20;
}

.search-form {
	display: flex;
	gap: 8px;
	align-items: stretch;
}

.search-form__field {
	flex: 1 1 auto;
	min-width: 0;
	padding: 0.6em 0.9em;
	font: inherit;
	font-size: 0.9375rem;
	color: var(--brisk-ink);
	background: var(--brisk-bg);
	border: 1px solid var(--brisk-line);
	border-radius: 999px;
}

.search-form__field:focus {
	outline: 2px solid var(--brisk-brand);
	outline-offset: 2px;
}

.search-form__submit {
	white-space: nowrap;
}

.menu-toggle {
	display: none;
}

.menu-toggle .icon--close {
	display: none;
}

.site-header.is-nav-open .menu-toggle .icon--menu {
	display: none;
}

.site-header.is-nav-open .menu-toggle .icon--close {
	display: block;
}

/* ---------------------------------------------------------
   5. 页脚
   --------------------------------------------------------- */
.site-footer {
	margin-top: clamp(40px, 6vw, 80px);
	padding-block: clamp(32px, 4vw, 56px) 24px;
	background: var(--brisk-surface-2);
	border-top: 1px solid var(--brisk-line);
	flex-shrink: 0;
}

.footer-widgets {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(20px, 3vw, 40px);
	padding-bottom: clamp(24px, 3vw, 40px);
	margin-bottom: clamp(24px, 3vw, 40px);
	border-bottom: 1px solid var(--brisk-line);
}

.footer-widgets__column .widget {
	padding: 0;
	border: 0;
	background: none;
}

.footer-main {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	justify-content: space-between;
	gap: 24px;
	padding-bottom: 24px;
	border-bottom: 1px solid var(--brisk-line);
}

.footer-brand {
	max-width: 420px;
}

.footer-brand__name {
	margin: 0 0 6px;
	font-size: 1.125rem;
	font-weight: 800;
	letter-spacing: -0.02em;
}

.footer-brand__text {
	margin: 0;
	color: var(--brisk-muted);
	font-size: 0.875rem;
	line-height: 1.7;
}

.footer-nav .menu {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 18px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.footer-nav .menu-item a {
	color: var(--brisk-ink-2);
	font-size: 0.9375rem;
	text-decoration: none;
}

.footer-nav .menu-item a:hover {
	color: var(--brisk-brand);
}

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

.social-links__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border-radius: 12px;
	background: var(--brisk-surface);
	border: 1px solid var(--brisk-line);
	color: var(--brisk-ink-2);
	transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.social-links__link:hover {
	background: var(--brisk-brand);
	border-color: var(--brisk-brand);
	color: #fff;
	transform: translateY(-2px);
}

.social-links__link .icon {
	width: 18px;
	height: 18px;
	fill: currentColor;
}

.social-links:empty {
	display: none;
}

.footer-bottom {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 20px;
	padding-top: 20px;
	font-size: 0.8125rem;
	color: var(--brisk-muted);
}

.footer-bottom p {
	margin: 0;
}

.footer-bottom__icp a {
	color: var(--brisk-muted);
	text-decoration: none;
}

.footer-bottom__icp a:hover {
	color: var(--brisk-brand);
}

.footer-bottom__credits {
	margin-left: auto;
}

.footer-bottom__credits a {
	color: var(--brisk-ink-2);
	text-decoration: none;
}

/* ---------------------------------------------------------
   6. 按钮、标签、分类胶囊
   --------------------------------------------------------- */
.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5em;
	padding: 0.78em 1.6em;
	font-size: 0.9375rem;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
	border: 2px solid transparent;
	border-radius: 999px;
	cursor: pointer;
	transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease,
		color 0.18s ease, border-color 0.18s ease;
}

.button--primary {
	background: var(--brisk-brand);
	border-color: var(--brisk-brand);
	color: #fff;
}

.button--primary:hover {
	background: var(--brisk-brand-deep);
	border-color: var(--brisk-brand-deep);
	color: #fff;
	transform: translateY(-2px);
}

.button--ghost {
	background: transparent;
	border-color: var(--brisk-line);
	color: var(--brisk-ink);
}

.button--ghost:hover {
	background: var(--brisk-surface);
	border-color: var(--brisk-ink);
	color: var(--brisk-ink);
}

.button--pop {
	box-shadow: var(--brisk-shadow-pop);
}

.button--pop:hover {
	transform: translate(2px, 2px);
	box-shadow: 2px 2px 0 0 #17191f;
}

.cat-pill {
	display: inline-flex;
	align-items: center;
	padding: 4px 12px;
	border-radius: 999px;
	background: var(--brisk-brand-soft);
	color: var(--brisk-brand-deep);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-decoration: none;
	white-space: nowrap;
}

.cat-pill:hover {
	background: var(--brisk-brand);
	color: #fff;
}

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

.cat-chip {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 9px 16px;
	background: var(--brisk-surface);
	border: 1px solid var(--brisk-line);
	border-radius: 999px;
	color: var(--brisk-ink-2);
	font-size: 0.875rem;
	font-weight: 600;
	text-decoration: none;
	transition: transform 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}

.cat-chip:hover {
	transform: translateY(-2px);
	border-color: var(--brisk-brand);
	background: var(--brisk-brand-soft);
	color: var(--brisk-brand-deep);
}

.cat-chip__count {
	font-size: 0.75rem;
	font-weight: 700;
	color: var(--brisk-muted);
	background: var(--brisk-surface-2);
	border-radius: 999px;
	padding: 1px 8px;
}

/* 分类胶囊按顺序循环使用四种彩色底 */
.cat-chips li:nth-child(4n + 2) .cat-chip__count {
	background: var(--brisk-amber-soft);
	color: #96650a;
}

.cat-chips li:nth-child(4n + 3) .cat-chip__count {
	background: var(--brisk-blue-soft);
	color: #2b42b3;
}

.cat-chips li:nth-child(4n + 4) .cat-chip__count {
	background: var(--brisk-mint-soft);
	color: #0a7d69;
}

/* ---------------------------------------------------------
   7. 卡片与网格
   --------------------------------------------------------- */
.post-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: clamp(18px, 2.4vw, 28px);
}

/* 列数由定制器决定，这里按 data-cols 展开，窄屏再降级。 */
.post-grid[data-cols="1"] {
	grid-template-columns: minmax(0, 1fr);
}

.post-grid[data-cols="2"] {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.post-grid[data-cols="3"] {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.post-grid[data-cols="4"] {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* 单列模式下卡片很宽，图片改用更扁的横幅比例，避免一张图占掉整屏。 */
.post-grid[data-cols="1"] .post-card__media {
	aspect-ratio: 21 / 9;
}

.post-grid--three {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.post-card {
	display: flex;
	flex-direction: column;
	background: var(--brisk-surface);
	border: 1px solid var(--brisk-line);
	border-radius: var(--brisk-radius);
	overflow: hidden;
	transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.post-card:hover {
	transform: translateY(-4px);
	border-color: transparent;
	box-shadow: var(--brisk-shadow);
}

.post-card__media {
	position: relative;
	display: block;
	aspect-ratio: var(--brisk-card-ratio, 16 / 10);
	overflow: hidden;
	background: var(--brisk-surface-2);
}

.post-card__media-link {
	display: block;
	height: 100%;
}

.post-card__image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s ease;
}

.post-card:hover .post-card__image {
	transform: scale(1.05);
}

.post-card__body {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	gap: 10px;
	padding: 20px 22px 22px;
}

.post-card__cats {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.post-card__title {
	margin: 0;
	font-size: 1.1875rem;
	line-height: 1.45;
}

.post-card__title a {
	color: var(--brisk-ink);
	text-decoration: none;
	background-image: linear-gradient(var(--brisk-brand), var(--brisk-brand));
	background-size: 0 2px;
	background-position: 0 100%;
	background-repeat: no-repeat;
	transition: background-size 0.25s ease;
}

.post-card__title a:hover {
	color: var(--brisk-ink);
	background-size: 100% 2px;
}

.post-card__excerpt {
	margin: 0;
	font-size: 0.9375rem;
	line-height: 1.7;
	color: var(--brisk-muted);
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.post-card__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	margin-top: auto;
	padding-top: 6px;
	font-size: 0.8125rem;
	color: var(--brisk-muted);
}

.post-card__sep {
	opacity: 0.6;
}

/* ---------------------------------------------------------
   8. 区块标题与分页
   --------------------------------------------------------- */
.section__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: clamp(18px, 2.4vw, 28px);
}

.section__title {
	margin: 0;
	font-size: clamp(1.375rem, 2.4vw, 1.75rem);
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 10px;
}

.section__title::before {
	content: "";
	width: 8px;
	height: 1.05em;
	border-radius: 4px;
	background: linear-gradient(180deg, var(--brisk-brand) 0%, var(--brisk-amber) 100%);
	flex: 0 0 auto;
}

.section__link {
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--brisk-muted);
	text-decoration: none;
	white-space: nowrap;
}

.section__link:hover {
	color: var(--brisk-brand);
}

.pagination {
	margin-top: clamp(28px, 4vw, 48px);
}

.pagination__list {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.pagination__item a,
.pagination__item .current {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 42px;
	height: 42px;
	padding: 0 14px;
	border: 1px solid var(--brisk-line);
	border-radius: 12px;
	background: var(--brisk-surface);
	color: var(--brisk-ink-2);
	font-size: 0.9375rem;
	font-weight: 600;
	text-decoration: none;
	transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.pagination__item a:hover {
	background: var(--brisk-brand-soft);
	border-color: var(--brisk-brand-soft);
	color: var(--brisk-brand-deep);
}

.pagination__item .current {
	background: var(--brisk-brand);
	border-color: var(--brisk-brand);
	color: #fff;
}

/* ---------------------------------------------------------
   9. 文章页与页面
   --------------------------------------------------------- */
.page-header {
	margin-bottom: clamp(24px, 3vw, 40px);
}

.page-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 10px;
	font-size: 0.75rem;
	font-weight: 800;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--brisk-brand);
}

.page-title {
	margin: 0 0 10px;
	font-size: clamp(1.75rem, 4vw, 2.5rem);
}

.page-description {
	color: var(--brisk-muted);
	font-size: 0.9375rem;
}

.page-search {
	max-width: 460px;
	margin-top: 18px;
}

.entry-header {
	margin-bottom: clamp(20px, 3vw, 32px);
}

.entry-cats {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 14px;
}

.entry-title {
	margin: 0 0 16px;
	font-size: clamp(1.625rem, 3.1vw, 2.125rem);
	line-height: 1.32;
	letter-spacing: -0.02em;
}

.entry-excerpt {
	margin: 0;
	color: var(--brisk-muted);
	font-size: 1.0625rem;
}

.entry-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 16px;
	color: var(--brisk-muted);
	font-size: 0.875rem;
}

.entry-meta--single {
	padding-bottom: 4px;
}

.entry-meta__item {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.entry-meta__author a {
	color: var(--brisk-ink-2);
	text-decoration: none;
	font-weight: 600;
}

.entry-meta__author a:hover {
	color: var(--brisk-brand);
}

.entry-meta__avatar {
	border-radius: 50%;
	display: block;
}

.entry .post-card__media {
	margin: clamp(20px, 3vw, 32px) 0;
	aspect-ratio: 16 / 9;
	border-radius: var(--brisk-radius-l);
	overflow: hidden;
}

.entry--single .entry-content {
	font-size: 1.0625rem;
	line-height: 1.9;
}

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

.entry-content p,
.entry-content ul,
.entry-content ol,
.entry-content dl,
.entry-content figure {
	margin-bottom: 1.4em;
}

.entry-content h2 {
	margin-top: 2.2em;
	font-size: clamp(1.4rem, 2.6vw, 1.75rem);
}

.entry-content h3 {
	margin-top: 1.8em;
	font-size: 1.25rem;
}

.entry-content a {
	text-decoration-thickness: 2px;
	text-decoration-color: rgba(255, 92, 57, 0.35);
	transition: text-decoration-color 0.2s ease;
}

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

.entry-content img {
	border-radius: var(--brisk-radius);
}

.entry-content blockquote {
	margin: 1.8em 0;
	padding: 22px 26px;
	background: var(--brisk-brand-soft);
	border-left: 4px solid var(--brisk-brand);
	border-radius: 0 var(--brisk-radius) var(--brisk-radius) 0;
	font-size: 1.0625rem;
	color: var(--brisk-ink);
}

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

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

.entry-content pre {
	padding: 20px;
	background: #17191f;
	color: #f4f5f8;
	border-radius: var(--brisk-radius-s);
	overflow-x: auto;
	line-height: 1.6;
}

.entry-content code {
	background: var(--brisk-surface-2);
	border-radius: 6px;
	padding: 0.15em 0.4em;
}

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

/* 键盘按键：kbd 默认没有任何样式，这里补成「键帽」 */
.entry-content kbd {
	display: inline-block;
	min-width: 1.7em;
	padding: 1px 7px;
	border: 1px solid var(--brisk-line);
	border-bottom: 2px solid var(--brisk-line);
	border-radius: 6px;
	background: var(--brisk-surface-2);
	color: var(--brisk-ink);
	font-size: 0.8125em;
	font-weight: 600;
	line-height: 1.7;
	text-align: center;
	white-space: nowrap;
	box-shadow: 0 1px 0 var(--brisk-line);
	vertical-align: 0.05em;
}

.entry-content figure.wp-block-image figcaption,
.entry-content figcaption {
	margin-top: 8px;
	font-size: 0.8125rem;
	color: var(--brisk-muted);
	text-align: center;
}

.entry-content .wp-block-image,
.entry-content .wp-block-embed {
	border-radius: var(--brisk-radius);
}

.entry-footer {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-top: clamp(28px, 4vw, 44px);
	padding-top: 20px;
	border-top: 1px solid var(--brisk-line);
}

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

.tag-link {
	display: inline-flex;
	padding: 5px 12px;
	border-radius: 999px;
	background: var(--brisk-surface-2);
	color: var(--brisk-ink-2);
	font-size: 0.8125rem;
	text-decoration: none;
}

.tag-link:hover {
	background: var(--brisk-brand-soft);
	color: var(--brisk-brand-deep);
}

.edit-link {
	font-size: 0.8125rem;
}

.page-links {
	margin: 1.6em 0 0;
	font-size: 0.875rem;
	color: var(--brisk-muted);
}

/* 上一篇 / 下一篇 */
.post-nav {
	margin-top: clamp(28px, 4vw, 44px);
	padding: 20px 0;
	border-top: 1px solid var(--brisk-line);
	border-bottom: 1px solid var(--brisk-line);
	font-size: 0.875rem;
}

/* 核心把两项包在 .nav-links 里，用这一层做横向排列 */
.post-nav .nav-links {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 24px;
}

.post-nav .nav-previous,
.post-nav .nav-next {
	flex: 1 1 0;
	min-width: 0;
}

.post-nav .nav-next {
	text-align: right;
}

.post-nav a {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
	color: var(--brisk-ink-2);
	text-decoration: none;
}

.post-nav .nav-next a {
	align-items: flex-end;
}

/* 只有一侧时独占整行 */
.post-nav .nav-links > :only-child {
	flex-basis: 100%;
}

.post-nav__label {
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	color: var(--brisk-muted);
}

.post-nav__title {
	max-width: 100%;
	font-size: 0.9375rem;
	font-weight: 600;
	color: var(--brisk-ink);
	line-height: 1.5;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.post-nav a:hover .post-nav__title {
	color: var(--brisk-brand);
}

/* 软件目录 / 软件详情（页面模板） */
.software-list {
	display: grid;
	gap: 18px;
	margin: 8px 0 4px;
}

.software-item {
	padding: 22px 24px;
	border: 1px solid var(--brisk-line);
	border-radius: var(--brisk-radius);
	background: var(--brisk-surface);
}

.software-item__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
}

.software-item__title {
	margin: 0;
	font-size: 1.25rem;
}

.software-item__title a {
	color: var(--brisk-ink);
	text-decoration: none;
}

.software-item__title a:hover {
	color: var(--brisk-brand);
}

.software-item__badge {
	max-width: 50%;
	padding: 4px 10px;
	border-radius: 999px;
	background: var(--brisk-brand-soft);
	color: var(--brisk-brand-deep);
	font-size: 0.75rem;
	font-weight: 700;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.software-meta {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 8px 24px;
	margin: 14px 0 16px;
	padding: 0;
	list-style: none;
}

.software-meta__item {
	display: flex;
	gap: 8px;
	min-width: 0;
	font-size: 0.875rem;
	line-height: 1.6;
}

.software-meta__label {
	color: var(--brisk-muted);
	white-space: nowrap;
}

.software-meta__value {
	color: var(--brisk-ink);
	font-weight: 600;
	word-break: break-word;
}

.software-item__actions,
.software-actions {
	display: flex;
	align-items: center;
	gap: 16px;
	flex-wrap: wrap;
}

.software-item__link,
.software-back {
	font-size: 0.875rem;
	font-weight: 600;
}

.software-panel {
	margin: 26px 0 8px;
	padding: 22px 24px;
	border: 1px solid var(--brisk-line);
	border-radius: var(--brisk-radius);
	background: var(--brisk-surface);
}

.software-panel .software-meta {
	margin-top: 0;
}

.software-empty {
	color: var(--brisk-muted);
}

/* 标签总览（页面模板） */
.tag-cloud {
	margin: 24px 0 4px;
}

.tag-cloud a,
.tag-cloud-link {
	display: inline-flex;
	align-items: center;
	margin: 0 8px 10px 0;
	padding: 6px 14px;
	border: 1px solid var(--brisk-line);
	border-radius: 999px;
	background: var(--brisk-surface);
	color: var(--brisk-ink-2);
	font-size: 0.8125rem !important;
	font-weight: 600;
	line-height: 1.4;
	text-decoration: none;
	transition: border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.tag-cloud a:hover,
.tag-cloud-link:hover {
	border-color: var(--brisk-brand);
	color: var(--brisk-brand);
	transform: translateY(-1px);
}

.tag-cloud__empty {
	color: var(--brisk-muted);
}

/* 相关文章 */
.related-posts {
	margin-top: clamp(36px, 5vw, 56px);
}

/* ---------------------------------------------------------
   10. 作者卡片与评论
   --------------------------------------------------------- */
.author-box {
	display: flex;
	gap: 18px;
	margin-top: clamp(28px, 4vw, 44px);
	padding: clamp(20px, 3vw, 28px);
	background: var(--brisk-surface-2);
	border-radius: var(--brisk-radius-l);
}

.author-box__avatar img {
	border-radius: 50%;
	display: block;
}

.author-box__body {
	flex: 1 1 auto;
	min-width: 0;
}

.author-box__label {
	margin: 0 0 4px;
	font-size: 0.75rem;
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--brisk-brand);
}

.author-box__name {
	margin: 0 0 6px;
	font-size: 1.0625rem;
	font-weight: 800;
}

.author-box__bio {
	margin: 0 0 10px;
	font-size: 0.9375rem;
	color: var(--brisk-muted);
	line-height: 1.7;
}

.author-box__link {
	font-size: 0.875rem;
	font-weight: 700;
	text-decoration: none;
}

.comments-area {
	margin-top: clamp(36px, 5vw, 56px);
	padding-top: clamp(24px, 3vw, 36px);
	border-top: 1px solid var(--brisk-line);
}

.comments-title,
.comment-reply-title {
	font-size: 1.25rem;
	margin-bottom: 18px;
}

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

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

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

.comment-list .comment-author img {
	border-radius: 50%;
}

.comment-list .comment-meta {
	margin: 6px 0 10px;
	font-size: 0.8125rem;
	color: var(--brisk-muted);
}

.comment-list .comment-content {
	font-size: 0.9375rem;
	line-height: 1.75;
}

.comment-list .comment-list {
	margin-top: 14px;
	padding-left: 0;
}

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

.comment-notes,
.comment-meta {
	font-size: 0.8125rem;
	color: var(--brisk-muted);
}

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

.comment-form label {
	display: block;
	margin-bottom: 6px;
	font-size: 0.875rem;
	font-weight: 600;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
	width: 100%;
	padding: 12px 14px;
	font: inherit;
	font-size: 0.9375rem;
	color: var(--brisk-ink);
	background: var(--brisk-surface);
	border: 1px solid var(--brisk-line);
	border-radius: var(--brisk-radius-s);
}

.comment-form input:focus,
.comment-form textarea:focus {
	outline: 2px solid var(--brisk-brand);
	outline-offset: 1px;
	border-color: transparent;
}

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

.comment-form .submit {
	justify-self: start;
}

.comment-form .comment-form-cookies-consent {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	font-size: 0.8125rem;
}

.comment-form .comment-form-cookies-consent label {
	margin: 0;
	font-weight: 400;
}

.no-comments {
	margin: 0;
	padding: 14px 18px;
	background: var(--brisk-surface-2);
	border-radius: var(--brisk-radius-s);
	font-size: 0.875rem;
	color: var(--brisk-muted);
}

/* ---------------------------------------------------------
   11. 首页模块
   --------------------------------------------------------- */
.site-main--home {
	flex: 1 0 auto;
}

.home-hero {
	padding-block: clamp(18px, 3vw, 32px) 0;
}

.home-hero__inner {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
	align-items: center;
	gap: clamp(24px, 4vw, 56px);
	padding: clamp(26px, 4vw, 60px);
	border-radius: var(--brisk-radius-l);
	background: linear-gradient(135deg, #ffe9d6 0%, #fff6e5 45%, #e7ebff 100%);
	overflow: hidden;
}

.home-hero__inner::before,
.home-hero__inner::after {
	content: "";
	position: absolute;
	border-radius: 50%;
	opacity: 0.45;
	filter: blur(46px);
	pointer-events: none;
}

.home-hero__inner::before {
	width: 380px;
	height: 380px;
	right: -150px;
	top: -170px;
	background: radial-gradient(circle at 40% 40%, #ffb020 0%, rgba(255, 176, 32, 0) 68%);
}

.home-hero__inner::after {
	width: 320px;
	height: 320px;
	left: -140px;
	bottom: -180px;
	background: radial-gradient(circle at 60% 60%, #3b5bff 0%, rgba(59, 91, 255, 0) 68%);
}

.home-hero__text {
	position: relative;
	z-index: 1;
}

.home-hero__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 14px;
	padding: 6px 14px;
	background: rgba(255, 255, 255, 0.75);
	border-radius: 999px;
	font-size: 0.8125rem;
	font-weight: 700;
	color: var(--brisk-ink-2);
}

.home-hero__dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--brisk-brand);
	box-shadow: 0 0 0 4px rgba(255, 92, 57, 0.18);
}

.home-hero__title {
	margin: 0 0 16px;
	font-size: clamp(1.75rem, 4vw, 2.75rem);
	line-height: 1.22;
	letter-spacing: -0.02em;
}

.home-hero__desc {
	max-width: 34em;
	margin: 0 0 26px;
	color: var(--brisk-ink-2);
	font-size: clamp(0.9375rem, 1.2vw, 1.0625rem);
}

.home-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: 28px;
}

.home-hero__stats {
	display: flex;
	flex-wrap: wrap;
	gap: clamp(16px, 3vw, 36px);
	margin: 0;
	padding-top: 22px;
	border-top: 1px solid rgba(23, 25, 31, 0.12);
}

.stat {
	display: flex;
	flex-direction: column-reverse;
	gap: 2px;
}

.stat dt {
	font-size: 0.8125rem;
	color: var(--brisk-ink-2);
	opacity: 0.8;
}

.stat dd {
	margin: 0;
	font-size: clamp(1.25rem, 2vw, 1.625rem);
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: -0.02em;
}

.home-hero__media {
	position: relative;
	z-index: 1;
}

.home-hero__img {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: 24px;
	box-shadow: 0 24px 48px -28px rgba(23, 25, 31, 0.45);
}

.home-hero__placeholder {
	position: relative;
	aspect-ratio: 4 / 3;
	border-radius: 24px;
	background: linear-gradient(135deg, #ff5c39 0%, #ffb020 100%);
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 24px 48px -30px rgba(23, 25, 31, 0.4);
}

.blob {
	position: absolute;
	border-radius: 50%;
	mix-blend-mode: soft-light;
}

.blob--one {
	width: 60%;
	padding-top: 60%;
	background: #ffffff;
	left: -10%;
	top: -12%;
	opacity: 0.45;
}

.blob--two {
	width: 48%;
	padding-top: 48%;
	background: #3b5bff;
	right: -6%;
	bottom: -10%;
	opacity: 0.4;
}

.blob--three {
	width: 30%;
	padding-top: 30%;
	background: #14c2a3;
	right: 22%;
	top: 12%;
	opacity: 0.35;
}

.blob-text {
	position: relative;
	font-size: clamp(2rem, 6vw, 3.5rem);
	font-weight: 800;
	letter-spacing: -0.03em;
	color: #fff;
	text-shadow: 0 6px 24px rgba(23, 25, 31, 0.25);
}

.home-categories {
	padding-block: clamp(24px, 3vw, 36px) 0;
}

.home-categories__label {
	margin: 0 0 12px;
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--brisk-muted);
}

.home-featured,
.home-latest,
.home-newsletter {
	padding-block: clamp(36px, 5vw, 64px) 0;
}

.home-newsletter {
	padding-bottom: clamp(12px, 2vw, 24px);
}

.newsletter-card {
	display: grid;
	grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
	align-items: center;
	gap: clamp(20px, 3vw, 40px);
	padding: clamp(26px, 4vw, 48px);
	border-radius: var(--brisk-radius-l);
	background: linear-gradient(135deg, #17191f 0%, #2b2130 100%);
	color: #fff;
	overflow: hidden;
	position: relative;
}

.newsletter-card::after {
	content: "";
	position: absolute;
	width: 220px;
	height: 220px;
	right: -60px;
	bottom: -100px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(255, 92, 57, 0.55) 0%, rgba(255, 92, 57, 0) 70%);
}

.newsletter-card__text {
	position: relative;
	z-index: 1;
}

.newsletter-card__title {
	margin: 0 0 10px;
	color: #fff;
	font-size: clamp(1.375rem, 2.6vw, 1.875rem);
}

.newsletter-card__desc {
	margin: 0;
	color: rgba(255, 255, 255, 0.72);
	font-size: 0.9375rem;
}

.newsletter-card__action {
	position: relative;
	z-index: 1;
	display: flex;
	justify-content: flex-end;
}

.newsletter-card__action form {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	width: 100%;
}

.newsletter-card__action input {
	flex: 1 1 180px;
	padding: 0.8em 1.1em;
	border: 0;
	border-radius: 999px;
	font: inherit;
	font-size: 0.9375rem;
	background: rgba(255, 255, 255, 0.92);
	color: #17191f;
}

/* ---------------------------------------------------------
   12. 404 与空状态
   --------------------------------------------------------- */
.error-404,
.no-results {
	text-align: center;
	padding-block: clamp(12px, 3vw, 40px);
}

.error-404__code {
	margin: 0 0 8px;
	font-size: clamp(4rem, 12vw, 7rem);
	font-weight: 800;
	line-height: 1;
	letter-spacing: -0.04em;
	background: linear-gradient(135deg, #ff5c39 0%, #ffb020 100%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.error-404 .page-description,
.no-results__text {
	max-width: 34em;
	margin-inline: auto;
	color: var(--brisk-muted);
}

.error-404__search,
.no-results__search {
	max-width: 420px;
	margin: 24px auto;
}

.error-404__actions,
.no-results__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px;
	margin: 0 0 32px;
}

.error-404__cats {
	margin-top: 8px;
}

.error-404__cats-title {
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--brisk-muted);
	margin-bottom: 12px;
}

.error-404__cats .cat-chips {
	justify-content: center;
}

/* ---------------------------------------------------------
   13. 区块样式与正文通用
   --------------------------------------------------------- */
.is-style-brisk-card {
	padding: clamp(20px, 3vw, 32px);
	background: var(--brisk-surface);
	border: 1px solid var(--brisk-line);
	border-radius: var(--brisk-radius);
	box-shadow: var(--brisk-shadow);
}

.wp-block-button.is-style-brisk-outline .wp-block-button__link {
	background: transparent;
	border: 2px solid currentColor;
	color: var(--brisk-ink);
}

.is-style-brisk-highlight {
	border-left: 4px solid var(--brisk-amber);
	background: var(--brisk-amber-soft);
}

.alignwide {
	max-width: 1180px;
	margin-inline: auto;
}

.alignfull {
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
}

.wp-caption-text,
.gallery-caption {
	font-size: 0.8125rem;
	color: var(--brisk-muted);
}

.sticky,
.bypostauthor {
	position: relative;
}

/* ---------------------------------------------------------
   14. 暗色模式
   --------------------------------------------------------- */
[data-color-scheme="dark"] {
	--brisk-ink: #f2f3f7;
	--brisk-ink-2: #c9ccd6;
	--brisk-muted: #989dad;

	--brisk-bg: #101117;
	--brisk-surface: #181a22;
	--brisk-surface-2: #1e2029;
	--brisk-line: #282b36;

	--brisk-brand-soft: #35231e;
	--brisk-amber-soft: #33291a;
	--brisk-blue-soft: #1d2340;
	--brisk-mint-soft: #12312c;

	--brisk-brand-deep: #ff7a5c;
	--brisk-shadow: 0 18px 40px -24px rgba(0, 0, 0, 0.75);
	--brisk-shadow-pop: 5px 5px 0 0 #f2f3f7;
}

[data-color-scheme="dark"] body {
	background-color: var(--brisk-bg);
	color: var(--brisk-ink);
}

[data-color-scheme="dark"] .site-header {
	background: rgba(16, 17, 23, 0.86);
}

[data-color-scheme="dark"] .home-hero__inner {
	background: linear-gradient(135deg, #2a1c14 0%, #221b13 45%, #151a30 100%);
}

[data-color-scheme="dark"] .home-hero__eyebrow {
	background: rgba(255, 255, 255, 0.08);
	color: #d9dce4;
}

[data-color-scheme="dark"] .home-hero__stats {
	border-top-color: rgba(255, 255, 255, 0.12);
}

[data-color-scheme="dark"] .newsletter-card {
	background: linear-gradient(135deg, #1b1d26 0%, #2a1c1e 100%);
	border: 1px solid var(--brisk-line);
}

[data-color-scheme="dark"] .button--pop {
	box-shadow: 5px 5px 0 0 #f2f3f7;
}

[data-color-scheme="dark"] .button--pop:hover {
	box-shadow: 2px 2px 0 0 #f2f3f7;
}

[data-color-scheme="dark"] .entry-content pre {
	background: #0b0c10;
	border: 1px solid var(--brisk-line);
}

[data-color-scheme="dark"] .cat-pill:hover,
[data-color-scheme="dark"] .button--primary,
[data-color-scheme="dark"] .button--primary:hover,
[data-color-scheme="dark"] .pagination__item .current {
	color: #17191f;
}

[data-color-scheme="dark"] .search-form__field,
[data-color-scheme="dark"] .comment-form input,
[data-color-scheme="dark"] .comment-form textarea {
	background: var(--brisk-bg);
}

/* ---------------------------------------------------------
   15. 响应式
   --------------------------------------------------------- */
@media (max-width: 1080px) {
	.content-area--sidebar {
		grid-template-columns: minmax(0, 1fr) min(280px, var(--brisk-sidebar-w, 320px));
	}

	.post-grid--three,
	.post-grid[data-cols="3"],
	.post-grid[data-cols="4"] {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 900px) {
	.home-hero__inner {
		grid-template-columns: minmax(0, 1fr);
	}

	.home-hero__media {
		order: -1;
	}

	.home-hero__img,
	.home-hero__placeholder {
		aspect-ratio: 16 / 9;
	}

	.content-area--sidebar {
		grid-template-columns: minmax(0, 1fr);
	}

	.sidebar {
		position: static;
	}

	/* 移动端导航：默认折叠，点按钮展开 */
	.js .primary-nav {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		margin: 0;
		padding: 12px clamp(18px, 4vw, 44px) 18px;
		background: var(--brisk-surface);
		border-bottom: 1px solid var(--brisk-line);
		box-shadow: var(--brisk-shadow);
		z-index: 30;
	}

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

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

	.primary-nav .menu-item > a {
		padding: 10px 12px;
		border-radius: var(--brisk-radius-s);
	}

	/* 移动端把弹出面板还原成纵向缩进列表 */
	.primary-nav .sub-menu,
	.primary-nav .sub-menu .sub-menu {
		position: static;
		top: auto;
		left: auto;
		min-width: 0;
		margin: 4px 0 6px;
		padding: 0 0 0 14px;
		background: transparent;
		border: 0;
		box-shadow: none;
		opacity: 1;
		visibility: visible;
		transform: none;
		pointer-events: auto;
	}

	.primary-nav .menu-item-has-children > a::after {
		display: none;
	}

	.primary-nav .sub-menu .menu-item > a {
		padding: 8px 12px;
		font-size: 0.9375rem;
	}

	.menu-toggle {
		display: inline-flex;
	}

	.footer-widgets {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.footer-main {
		flex-direction: column;
	}

	.footer-bottom__credits {
		 margin-left: 0;
	}
}

@media (max-width: 640px) {
	:root {
		--brisk-header-h: 64px;
	}

	.post-grid,
	.post-grid--three,
	.post-grid[data-cols="1"],
	.post-grid[data-cols="2"],
	.post-grid[data-cols="3"],
	.post-grid[data-cols="4"] {
		grid-template-columns: minmax(0, 1fr);
	}

	.entry--single .entry-content {
		font-size: 1rem;
	}

	.home-hero {
		padding-block: 8px 0;
	}

	.home-hero__inner {
		padding: 22px;
		border-radius: 24px;
	}

	.home-hero__actions .button {
		flex: 1 1 auto;
		justify-content: center;
	}

	.home-hero__stats {
		gap: 18px;
	}

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

	.newsletter-card__action {
		justify-content: flex-start;
	}

	.footer-widgets {
		grid-template-columns: minmax(0, 1fr);
	}

	.author-box {
		flex-direction: column;
	}

	.post-nav .nav-links {
		flex-direction: column;
		gap: 14px;
	}

	/* 窄屏纵向排列时统一左对齐 */
	.post-nav .nav-next {
		text-align: left;
	}

	.post-nav .nav-next a {
		align-items: flex-start;
	}

	.entry-meta--single {
		font-size: 0.8125rem;
	}

	.comment-list .children {
		margin-left: 10px;
	}
}

/* ---------------------------------------------------------
   16. 可访问性与动效
   --------------------------------------------------------- */
.screen-reader-text {
	border: 0;
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}

.screen-reader-text:focus {
	background-color: var(--brisk-surface);
	border-radius: 3px;
	box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
	clip-path: none;
	color: var(--brisk-ink);
	display: block;
	font-size: 0.875rem;
	font-weight: 700;
	height: auto;
	left: 16px;
	line-height: normal;
	padding: 14px 22px;
	text-decoration: none;
	top: 16px;
	width: auto;
	z-index: 100000;
}

.skip-link {
	position: absolute;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
	outline: 2px solid var(--brisk-brand);
	outline-offset: 2px;
	border-radius: 6px;
}

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

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

@media print {
	.site-header,
	.site-footer,
	.sidebar,
	.post-nav,
	.related-posts,
	.breadcrumb,
	.comments-area {
		display: none !important;
	}

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

/* ---------------------------------------------------------
   16. 定制器附加样式（面包屑 / 非吸顶页眉）
   --------------------------------------------------------- */
.breadcrumb {
	margin: 0 0 clamp(16px, 2.4vw, 26px);
	font-size: 0.8125rem;
	color: var(--brisk-muted);
}

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

.breadcrumb__item {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-width: 0;
}

.breadcrumb__item a {
	color: var(--brisk-muted);
	text-decoration: none;
	border-bottom: 1px solid transparent;
	transition: color 0.18s ease, border-color 0.18s ease;
}

.breadcrumb__item a:hover,
.breadcrumb__item a:focus {
	color: var(--brisk-brand);
	border-bottom-color: currentColor;
}

.breadcrumb__item span[aria-current="page"] {
	color: var(--brisk-ink);
	font-weight: 600;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	max-width: 28ch;
}

.breadcrumb__sep {
	color: var(--brisk-line);
	font-weight: 400;
}

/* 关闭页眉吸顶（定制器「外观与配色 → 页眉吸顶」）。 */
.brisk-header-static .site-header {
	position: static;
	backdrop-filter: none;
}
