/**
 * Niren Finance 金融科普主题 — 主样式表
 *
 * 设计系统（开发计划 4.4 节）：
 *   - 扁平配色：单一纯色值，禁止渐变
 *   - 字体：Inter（正文） / Space Grotesk（标题）
 *   - 断点：<640 单栏 / 640-1024 双栏 / >=1024 三栏
 *   - 对比度符合 WCAG AA，交互组件支持键盘导航
 */

/* ---------------------------------------------------------------------------
 * 1. 设计变量
 * ------------------------------------------------------------------------- */

:root {
	--niren-primary: #0F172A;
	--niren-secondary: #1E293B;
	--niren-accent: #10B981;
	--niren-warning: #F59E0B;
	--niren-background: #F8FAFC;
	--niren-text: #334155;
	--niren-muted: #64748B;
	--niren-border: #E2E8F0;
	--niren-surface: #FFFFFF;
	--niren-tag-bg: #F1F5F9;

	--niren-radius: 8px;
	--niren-radius-sm: 4px;
	--niren-header-h: 64px;
	--niren-container: 1280px;

	--niren-font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'PingFang SC', 'Microsoft YaHei', sans-serif;
	--niren-font-display: 'Space Grotesk', 'Inter', system-ui, 'PingFang SC', 'Microsoft YaHei', sans-serif;

	--niren-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
	--niren-shadow-hover: 0 12px 28px rgba(15, 23, 42, 0.12);
}

/* ---------------------------------------------------------------------------
 * 2. 基础重置
 * ------------------------------------------------------------------------- */

*,
*::before,
*::after {
	box-sizing: border-box;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

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

body {
	margin: 0;
	background-color: var(--niren-background);
	color: var(--niren-text);
	font-family: var(--niren-font-sans);
	font-size: 16px;
	line-height: 1.75;
	overflow-x: hidden;
}

img {
	max-width: 100%;
	height: auto;
	border-style: none;
}

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

a:hover,
a:focus {
	color: var(--niren-primary);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
	outline: 2px solid var(--niren-accent);
	outline-offset: 2px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	margin: 0 0 0.6em;
	color: var(--niren-primary);
	font-family: var(--niren-font-display);
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: -0.01em;
}

p {
	margin: 0 0 1em;
}

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

button,
input,
select,
textarea {
	font-family: inherit;
	font-size: inherit;
}

/* 可访问性：跳转链接与屏幕阅读文本 */
.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;
}

.screen-reader-text:focus {
	position: static !important;
	display: block;
	width: auto;
	height: auto;
	padding: 12px 16px;
	margin: 0;
	clip: auto;
	background: var(--niren-primary);
	color: #fff;
	z-index: 100000;
}

.skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
}

.skip-link:focus {
	left: 8px;
	top: 8px;
}

/* ---------------------------------------------------------------------------
 * 3. 布局容器
 * ------------------------------------------------------------------------- */

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

.niren-site {
	min-height: 60vh;
	padding-top: 32px;
	padding-bottom: 64px;
}

.niren-main {
	display: block;
}

/* ---------------------------------------------------------------------------
 * 4. 页头与导航（高度 64px，链接 #64748B，hover #10B981）
 * ------------------------------------------------------------------------- */

.site-header {
	background-color: var(--niren-primary);
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
	position: sticky;
	top: 0;
	z-index: 100;
}

.niren-header__inner {
	display: flex;
	align-items: center;
	gap: 24px;
	min-height: var(--niren-header-h);
}

.niren-brand {
	display: flex;
	align-items: baseline;
	gap: 12px;
	flex-shrink: 0;
}

.niren-brand__link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: #fff;
	font-family: var(--niren-font-display);
	font-size: 20px;
	font-weight: 700;
	letter-spacing: -0.02em;
}

.niren-brand__link:hover,
.niren-brand__link:focus {
	color: var(--niren-accent);
}

.niren-brand__mark {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	background-color: var(--niren-accent);
	color: var(--niren-primary);
	border-radius: var(--niren-radius-sm);
	font-size: 17px;
	font-weight: 700;
}

.niren-brand__tagline {
	color: #94A3B8;
	font-size: 13px;
}

.custom-logo-link img {
	max-height: 40px;
	width: auto;
}

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

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

.niren-menu li {
	position: relative;
	margin: 0;
	padding: 0;
	list-style: none;
}

.niren-menu a {
	display: block;
	padding: 10px 14px;
	color: #CBD5E1;
	font-size: 15px;
	font-weight: 500;
	border-radius: var(--niren-radius-sm);
	transition: color 0.18s ease, background-color 0.18s ease;
}

.niren-menu a:hover,
.niren-menu a:focus,
.niren-menu .current-menu-item > a,
.niren-menu .current_page_item > a {
	color: var(--niren-accent);
	background-color: rgba(16, 185, 129, 0.10);
}

/* 二级菜单 */
.niren-menu .sub-menu {
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 180px;
	margin: 0;
	padding: 8px;
	background-color: var(--niren-secondary);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: var(--niren-radius);
	box-shadow: var(--niren-shadow-hover);
	list-style: none;
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
}

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

.niren-menu .sub-menu a {
	color: #E2E8F0;
	white-space: nowrap;
}

.niren-header__search {
	flex-shrink: 0;
}

.niren-nav-toggle {
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 42px;
	height: 42px;
	margin-left: auto;
	padding: 10px;
	background-color: transparent;
	border: 1px solid rgba(255, 255, 255, 0.20);
	border-radius: var(--niren-radius-sm);
	cursor: pointer;
}

.niren-nav-toggle__bar {
	display: block;
	width: 100%;
	height: 2px;
	background-color: #E2E8F0;
	transition: transform 0.18s ease, opacity 0.18s ease;
}

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

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

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

/* 搜索表单 */
.niren-search {
	display: flex;
	align-items: center;
	gap: 6px;
}

/* 默认（浅色区域）搜索框 */
.niren-search__input {
	width: 200px;
	height: 38px;
	padding: 0 12px;
	background-color: var(--niren-surface);
	color: var(--niren-text);
	border: 1px solid var(--niren-border);
	border-radius: var(--niren-radius-sm);
	transition: border-color 0.18s ease, background-color 0.18s ease;
}

.niren-search__input::placeholder {
	color: var(--niren-muted);
}

.niren-search__input:focus {
	border-color: var(--niren-accent);
	outline: none;
}

/* 深色页头内的搜索框 */
.site-header .niren-search__input {
	background-color: rgba(255, 255, 255, 0.10);
	color: #F8FAFC;
	border-color: rgba(255, 255, 255, 0.18);
}

.site-header .niren-search__input::placeholder {
	color: #94A3B8;
}

.site-header .niren-search__input:focus {
	background-color: rgba(255, 255, 255, 0.16);
	border-color: var(--niren-accent);
}

.niren-search__submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	background-color: var(--niren-accent);
	color: var(--niren-primary);
	border: 0;
	border-radius: var(--niren-radius-sm);
	cursor: pointer;
	transition: background-color 0.18s ease;
}

.niren-search__submit:hover {
	background-color: #34D399;
}

/* ---------------------------------------------------------------------------
 * 5. Hero 区块
 * ------------------------------------------------------------------------- */

.niren-hero {
	background-color: var(--niren-primary);
	border-radius: var(--niren-radius);
	padding: 56px 40px;
	margin-bottom: 40px;
	color: #E2E8F0;
}

.niren-hero__inner {
	max-width: 720px;
}

.niren-hero__eyebrow {
	margin: 0 0 12px;
	color: var(--niren-accent);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.14em;
}

.niren-hero__title {
	margin: 0 0 14px;
	color: #fff;
	font-size: 44px;
	font-weight: 700;
	letter-spacing: -0.02em;
}

.niren-hero__desc {
	margin: 0 0 26px;
	color: #CBD5E1;
	font-size: 17px;
	line-height: 1.75;
}

.niren-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

/* ---------------------------------------------------------------------------
 * 6. 按钮（实心 / 描边两种变体）
 * ------------------------------------------------------------------------- */

.niren-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 42px;
	padding: 0 22px;
	border: 1px solid transparent;
	border-radius: var(--niren-radius-sm);
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.niren-btn--primary {
	background-color: var(--niren-accent);
	color: var(--niren-primary);
}

.niren-btn--primary:hover,
.niren-btn--primary:focus {
	background-color: #34D399;
	color: var(--niren-primary);
}

.niren-btn--ghost {
	background-color: transparent;
	color: #E2E8F0;
	border-color: rgba(255, 255, 255, 0.28);
}

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

/* ---------------------------------------------------------------------------
 * 7. 区块标题
 * ------------------------------------------------------------------------- */

.niren-section {
	margin-bottom: 44px;
}

.niren-section__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 20px;
	padding-bottom: 12px;
	border-bottom: 1px solid var(--niren-border);
}

.niren-section__title {
	margin: 0;
	font-size: 22px;
	font-weight: 700;
}

.niren-section__more {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--niren-muted);
	font-size: 14px;
	font-weight: 500;
}

.niren-section__more:hover {
	color: var(--niren-accent);
}

/* ---------------------------------------------------------------------------
 * 8. 文章网格与卡片
 * ------------------------------------------------------------------------- */

.niren-grid {
	display: grid;
	gap: 24px;
	grid-template-columns: repeat(var(--cols-1, 1), minmax(0, 1fr));
}

@media (min-width: 640px) {
	.niren-grid {
		grid-template-columns: repeat(var(--cols-2, 2), minmax(0, 1fr));
	}
}

@media (min-width: 1024px) {
	.niren-grid {
		grid-template-columns: repeat(var(--cols-3, 3), minmax(0, 1fr));
	}
}

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

.niren-card:hover,
.niren-card:focus-within {
	box-shadow: var(--niren-shadow-hover);
	transform: translateY(-3px);
}

.niren-card__media {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 180px;
	background-color: var(--niren-secondary);
	overflow: hidden;
}

.niren-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: opacity 0.18s ease;
}

.niren-card:hover .niren-card__media img {
	opacity: 0.9;
}

.niren-card__placeholder {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	color: #64748B;
}

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

.niren-card__title {
	margin: 0 0 10px;
	font-size: 18px;
	font-weight: 600;
	line-height: 1.45;
}

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

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

.niren-card__excerpt {
	flex: 1;
	margin: 0 0 16px;
	color: var(--niren-muted);
	font-size: 14.5px;
	line-height: 1.7;
}

.niren-card__meta {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-top: auto;
	color: var(--niren-muted);
	font-size: 13px;
}

.niren-card__arrow {
	margin-left: auto;
	color: var(--niren-muted);
	transition: color 0.18s ease, transform 0.18s ease;
}

.niren-card:hover .niren-card__arrow {
	color: var(--niren-accent);
	transform: translateX(3px);
}

/* 重点推荐大卡 */
.niren-featured {
	display: grid;
	grid-template-columns: 1fr;
	background-color: var(--niren-surface);
	border: 1px solid var(--niren-border);
	border-radius: var(--niren-radius);
	overflow: hidden;
	box-shadow: var(--niren-shadow);
	transition: box-shadow 0.18s ease;
}

.niren-featured:hover {
	box-shadow: var(--niren-shadow-hover);
}

.niren-featured__media {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 260px;
	background-color: var(--niren-secondary);
}

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

.niren-featured__body {
	padding: 32px;
}

.niren-featured__title {
	margin: 14px 0 12px;
	font-size: 28px;
	line-height: 1.35;
}

.niren-featured__title:hover {
	color: var(--niren-accent);
}

.niren-featured__excerpt {
	color: var(--niren-muted);
	font-size: 15.5px;
}

.niren-featured__meta {
	color: var(--niren-muted);
	font-size: 13px;
}

@media (min-width: 1024px) {
	.niren-featured {
		grid-template-columns: 1.15fr 1fr;
	}

	.niren-featured__media {
		min-height: 100%;
	}
}

/* ---------------------------------------------------------------------------
 * 9. 标签、徽标、分类卡
 * ------------------------------------------------------------------------- */

.niren-badge {
	display: inline-block;
	padding: 3px 10px;
	background-color: var(--niren-tag-bg);
	color: var(--niren-muted);
	border-radius: var(--niren-radius-sm);
	font-size: 12.5px;
	font-weight: 600;
}

.niren-badge--accent {
	background-color: rgba(16, 185, 129, 0.14);
	color: #059669;
}

.niren-tag {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 5px 12px;
	background-color: var(--niren-tag-bg);
	color: var(--niren-muted);
	border: 1px solid transparent;
	border-radius: var(--niren-radius-sm);
	font-size: 13.5px;
	transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.niren-tag:hover,
.niren-tag:focus,
.niren-tag.is-active {
	background-color: rgba(16, 185, 129, 0.12);
	color: #059669;
	border-color: rgba(16, 185, 129, 0.35);
}

.niren-tag__count {
	color: var(--niren-muted);
	font-size: 12px;
}

.niren-tag-cloud {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

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

@media (min-width: 640px) {
	.niren-cat-list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 1024px) {
	.niren-cat-list {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

.niren-cat-card {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 18px 20px;
	background-color: var(--niren-surface);
	border: 1px solid var(--niren-border);
	border-left: 3px solid var(--niren-accent);
	border-radius: var(--niren-radius);
	transition: background-color 0.18s ease, box-shadow 0.18s ease;
}

.niren-cat-card:hover,
.niren-cat-card:focus {
	background-color: #ECFDF5;
	box-shadow: var(--niren-shadow);
	color: var(--niren-primary);
}

.niren-cat-card__name {
	color: var(--niren-primary);
	font-weight: 600;
}

.niren-cat-card__count {
	color: var(--niren-muted);
	font-size: 13px;
}

/* ---------------------------------------------------------------------------
 * 10. 页面标题
 * ------------------------------------------------------------------------- */

.niren-page-head {
	margin-bottom: 28px;
	padding-bottom: 18px;
	border-bottom: 1px solid var(--niren-border);
}

.niren-page-head__eyebrow {
	margin: 0 0 6px;
	color: var(--niren-accent);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.niren-page-head__title {
	margin: 0 0 8px;
	font-size: 32px;
	font-weight: 700;
}

.niren-page-head__desc {
	margin: 0;
	color: var(--niren-muted);
	font-size: 15px;
}

.niren-page-head__keyword {
	color: var(--niren-accent);
}

/* ---------------------------------------------------------------------------
 * 11. 文章详情
 * ------------------------------------------------------------------------- */

.niren-breadcrumb {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-bottom: 16px;
	color: var(--niren-muted);
	font-size: 13.5px;
}

.niren-breadcrumb a {
	color: var(--niren-muted);
}

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

.niren-single {
	max-width: 800px;
	margin: 0 auto;
}

.niren-single__head {
	margin-bottom: 24px;
}

.niren-single__title {
	margin: 10px 0 14px;
	font-size: 36px;
	line-height: 1.3;
}

.niren-single__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px;
	color: var(--niren-muted);
	font-size: 14px;
}

.niren-single__meta a {
	color: var(--niren-muted);
}

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

.niren-single__thumb {
	margin: 0 0 26px;
	overflow: hidden;
	border-radius: var(--niren-radius);
}

.niren-single__thumb img {
	width: 100%;
	height: auto;
	display: block;
}

.niren-single__foot {
	margin-top: 32px;
	padding-top: 20px;
	border-top: 1px solid var(--niren-border);
}

/* 来源信息框 */
.niren-source {
	margin: 0 0 28px;
	padding: 20px 22px;
	background-color: var(--niren-tag-bg);
	border-left: 3px solid var(--niren-warning);
	border-radius: var(--niren-radius-sm);
}

.niren-source__title {
	margin: 0 0 12px;
	font-size: 15px;
	font-weight: 600;
}

.niren-source__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.niren-source__list li {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 8px;
	font-size: 14px;
	color: var(--niren-text);
}

.niren-source__list li:last-child {
	margin-bottom: 0;
}

.niren-source__label {
	min-width: 84px;
	color: var(--niren-muted);
}

.niren-source__list a {
	word-break: break-all;
}

.niren-topics {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
}

.niren-topics__label {
	color: var(--niren-muted);
	font-size: 14px;
}

/* 正文排版 */
.niren-content {
	color: var(--niren-text);
	font-size: 17px;
	line-height: 1.85;
}

.niren-content > * {
	margin-top: 0;
	margin-bottom: 1.35em;
}

.niren-content h2 {
	margin-top: 1.9em;
	font-size: 25px;
}

.niren-content h3 {
	margin-top: 1.7em;
	font-size: 21px;
}

.niren-content h4 {
	margin-top: 1.5em;
	font-size: 18px;
}

.niren-content a {
	text-decoration: underline;
	text-underline-offset: 3px;
	text-decoration-thickness: 1px;
}

.niren-content ul,
.niren-content ol {
	padding-left: 1.6em;
}

.niren-content blockquote {
	margin: 1.6em 0;
	padding: 16px 22px;
	background-color: var(--niren-surface);
	border-left: 3px solid var(--niren-accent);
	color: var(--niren-secondary);
	font-style: normal;
}

.niren-content pre {
	overflow-x: auto;
	padding: 18px;
	background-color: var(--niren-secondary);
	color: #E2E8F0;
	border-radius: var(--niren-radius);
	font-size: 14px;
	line-height: 1.6;
}

.niren-content code {
	padding: 2px 6px;
	background-color: var(--niren-tag-bg);
	border-radius: var(--niren-radius-sm);
	font-size: 0.9em;
}

.niren-content pre code {
	padding: 0;
	background-color: transparent;
}

.niren-content table {
	width: 100%;
	margin: 1.6em 0;
	border-collapse: collapse;
	background-color: var(--niren-surface);
}

.niren-content th,
.niren-content td {
	padding: 10px 14px;
	border: 1px solid var(--niren-border);
	text-align: left;
	font-size: 15px;
}

.niren-content th {
	background-color: var(--niren-tag-bg);
	color: var(--niren-primary);
	font-weight: 600;
}

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

.niren-content .alignwide {
	width: 100%;
}

.niren-page-links {
	margin-top: 24px;
	color: var(--niren-muted);
	font-size: 14px;
}

.niren-related {
	margin-top: 52px;
}

/* ---------------------------------------------------------------------------
 * 12. 空状态 / 404
 * ------------------------------------------------------------------------- */

.niren-empty {
	grid-column: 1 / -1;
	padding: 48px 20px;
	text-align: center;
	color: var(--niren-muted);
	background-color: var(--niren-surface);
	border: 1px dashed var(--niren-border);
	border-radius: var(--niren-radius);
}

.niren-empty p {
	margin: 0;
}

.niren-404 {
	max-width: 560px;
	margin: 40px auto;
	text-align: center;
}

.niren-404__code {
	margin: 0 0 6px;
	color: var(--niren-accent);
	font-family: var(--niren-font-display);
	font-size: 72px;
	font-weight: 700;
	line-height: 1;
}

.niren-404__title {
	font-size: 30px;
}

.niren-404__desc {
	color: var(--niren-muted);
}

.niren-404__search {
	display: flex;
	justify-content: center;
	margin: 24px 0;
}

.niren-404 .niren-search__input {
	width: 260px;
}

/* ---------------------------------------------------------------------------
 * 13. 分页
 * ------------------------------------------------------------------------- */

.navigation.pagination {
	margin-top: 36px;
}

.niren-pagination,
.page-numbers {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 12px;
	background-color: var(--niren-surface);
	color: var(--niren-text);
	border: 1px solid var(--niren-border);
	border-radius: var(--niren-radius-sm);
	font-size: 14.5px;
	transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.page-numbers:hover,
.page-numbers:focus {
	border-color: var(--niren-accent);
	color: var(--niren-accent);
}

.page-numbers.current {
	background-color: var(--niren-primary);
	border-color: var(--niren-primary);
	color: #fff;
}

/* ---------------------------------------------------------------------------
 * 14. 评论
 * ------------------------------------------------------------------------- */

.niren-comments {
	max-width: 800px;
	margin: 48px auto 0;
	padding-top: 28px;
	border-top: 1px solid var(--niren-border);
}

.niren-comments__title {
	font-size: 20px;
}

.niren-comments__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.niren-comments__list .comment-body {
	padding: 16px 0;
	border-bottom: 1px solid var(--niren-border);
}

.comment-author .avatar {
	border-radius: 50%;
	margin-right: 8px;
	vertical-align: middle;
}

.comment-metadata {
	color: var(--niren-muted);
	font-size: 13px;
}

.comment-metadata a {
	color: var(--niren-muted);
}

.reply a {
	color: var(--niren-muted);
	font-size: 13.5px;
}

/* ---------------------------------------------------------------------------
 * 15. 页脚
 * ------------------------------------------------------------------------- */

.site-footer {
	background-color: var(--niren-primary);
	color: #CBD5E1;
	padding: 48px 0 32px;
}

.niren-footer__cols {
	display: grid;
	gap: 32px;
	grid-template-columns: repeat(1, minmax(0, 1fr));
	margin-bottom: 28px;
}

@media (min-width: 768px) {
	.niren-footer__cols {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.niren-widget__title {
	color: #fff;
	font-size: 15px;
	font-weight: 600;
	margin-bottom: 12px;
}

.niren-widget {
	color: #94A3B8;
	font-size: 14.5px;
}

.niren-widget a {
	color: #CBD5E1;
}

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

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

.niren-footer-menu li {
	margin: 0;
	list-style: none;
}

.niren-footer-menu a {
	color: #94A3B8;
	font-size: 14px;
}

.niren-footer-menu a:hover {
	color: var(--niren-accent);
}

.niren-footer__bottom {
	padding-top: 22px;
	border-top: 1px solid rgba(255, 255, 255, 0.10);
}

.niren-footer__copyright {
	margin: 0 0 6px;
	color: #94A3B8;
	font-size: 14px;
}

.niren-footer__copyright a {
	color: #CBD5E1;
}

.niren-footer__disclaimer {
	margin: 0;
	color: #64748B;
	font-size: 13px;
}

/* ---------------------------------------------------------------------------
 * 16. 响应式调整
 * ------------------------------------------------------------------------- */

@media (max-width: 1023px) {
	.niren-hero {
		padding: 44px 28px;
	}

	.niren-hero__title {
		font-size: 34px;
	}

	.niren-single__title {
		font-size: 30px;
	}

	.niren-featured__title {
		font-size: 23px;
	}
}

@media (max-width: 767px) {
	.niren-header__search {
		display: none;
	}

	.niren-nav-toggle {
		display: flex;
	}

	.niren-nav {
		position: absolute;
		top: var(--niren-header-h);
		left: 0;
		right: 0;
		display: none;
		margin-left: 0;
		padding: 12px 20px 20px;
		background-color: var(--niren-primary);
		border-bottom: 1px solid rgba(255, 255, 255, 0.10);
	}

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

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

	.niren-menu a {
		padding: 12px 10px;
		font-size: 16px;
	}

	.niren-menu .sub-menu {
		position: static;
		display: block;
		opacity: 1;
		visibility: visible;
		transform: none;
		box-shadow: none;
		background-color: transparent;
		border: 0;
		padding-left: 16px;
	}

	.niren-site {
		padding-top: 24px;
	}

	.niren-hero {
		padding: 36px 22px;
		border-radius: var(--niren-radius);
	}

	.niren-hero__title {
		font-size: 28px;
	}

	.niren-hero__desc {
		font-size: 15.5px;
	}

	.niren-page-head__title {
		font-size: 26px;
	}

	.niren-single__title {
		font-size: 26px;
	}

	.niren-content {
		font-size: 16.5px;
	}

	.niren-card__media {
		height: 190px;
	}

	.niren-featured__body {
		padding: 22px;
	}

	.niren-featured__title {
		font-size: 21px;
	}

	.niren-single,
	.niren-comments {
		max-width: 100%;
	}
}

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

	.niren-hero__actions {
		flex-direction: column;
	}

	.niren-btn {
		width: 100%;
	}
}

/* 打印：去除交互元素 */
@media print {
	.site-header,
	.site-footer,
	.niren-nav-toggle,
	.niren-header__search,
	.niren-pagination {
		display: none !important;
	}
}
