/*
Theme Name: Lumen
Theme URI: https://example.com/lumen
Author: Lumen
Author URI: https://example.com
Description: Lumen（流明）是一款面向中文内容站点的 WordPress 主题：响应式两栏布局、首页焦点图、专题聚合、文章点赞与阅读数、相关文章、SEO 友好。全部代码独立编写，字体使用系统字体与开源字体（SIL OFL），图标为内联 SVG，无任何第三方商业资产。
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: lumen
Tags: blog, news, two-columns, right-sidebar, custom-menu, custom-logo, featured-images, translation-ready, responsive-layout
*/

/* =========================================================
   1. 设计变量与基础
   字体说明：字体栈全部由系统内置字体或开源字体构成
   （苹方 / 微软雅黑 / 思源黑体 Source Han Sans SC / Noto Sans CJK SC /
   文泉驿微米黑，均为 SIL OFL 或系统自带），不加载任何商业字体文件。
   ========================================================= */
:root {
	--font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", "Source Han Sans SC", "Noto Sans CJK SC", "WenQuanYi Micro Hei", Helvetica, Arial, sans-serif;
	--font-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, "Courier New", monospace;

	--primary: #1c64f2;
	--primary-600: #1550c8;
	--primary-50: #eef4ff;

	--text: #2b3038;
	--text-2: #5b6572;
	--muted: #8a939f;

	--bg: #f4f6f9;
	--card: #ffffff;
	--border: #e8ecf1;
	--border-2: #f0f3f7;

	--radius: 12px;
	--radius-sm: 8px;
	--wrap: 1200px;
	--shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 8px 24px rgba(16, 24, 40, .06);
}

body.lumen-dark {
	--text: #d7dde6;
	--text-2: #a4aebd;
	--muted: #7a8593;
	--bg: #10141a;
	--card: #171c24;
	--border: #262d38;
	--border-2: #1f2530;
	--primary-50: #16233d;
	--shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
}

* { box-sizing: border-box; }

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

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: var(--font-sans);
	font-size: 15px;
	line-height: 1.75;
	-webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--primary); }

img { max-width: 100%; height: auto; display: block; border: 0; }

h1, h2, h3, h4, h5, h6 {
	margin: 0 0 .6em;
	font-weight: 600;
	line-height: 1.4;
	color: var(--text);
}
h1 { font-size: 26px; }
h2 { font-size: 21px; }
h3 { font-size: 18px; }
h4 { font-size: 16px; }

p { margin: 0 0 1em; }

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

hr { border: 0; border-top: 1px solid var(--border); margin: 24px 0; }

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

svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.lumen-ico { width: 1em; height: 1em; vertical-align: -.15em; flex: none; }

.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;
}

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

.clearfix::after { content: ""; display: table; clear: both; }

/* =========================================================
   2. 顶部 Header
   ========================================================= */
.site-header {
	position: sticky;
	top: 0;
	z-index: 90;
	background: var(--card);
	border-bottom: 1px solid var(--border);
}
.header-inner {
	display: flex;
	align-items: center;
	gap: 20px;
	height: 66px;
}

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

.site-logo img { max-height: 38px; width: auto; }
.site-logo .logo-dark { display: none; }
.lumen-dark .site-logo .logo-dark { display: block; }
.lumen-dark .site-logo .logo-light { display: none; }

.site-title {
	margin: 0;
	font-size: 21px;
	font-weight: 700;
	letter-spacing: .3px;
	white-space: nowrap;
}
.site-tagline {
	margin: 0;
	font-size: 12px;
	color: var(--muted);
	white-space: nowrap;
}

.brand-slogan {
	display: none;
	font-size: 12px;
	line-height: 1.4;
	color: var(--muted);
	border-left: 1px solid var(--border);
	padding-left: 14px;
}

.site-nav { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.site-nav li { position: relative; }
.site-nav > li > a,
.site-nav > li > span.link-disabled {
	display: block;
	padding: 8px 14px;
	border-radius: var(--radius-sm);
	font-size: 15px;
	white-space: nowrap;
	color: var(--text);
}
.site-nav > li > a:hover { background: var(--primary-50); color: var(--primary); }
.site-nav > li.current-menu-item > a,
.site-nav > li.current-menu-ancestor > a,
.site-nav > li.current-menu-parent > a {
	color: var(--primary);
	background: var(--primary-50);
}

.site-nav .sub-menu {
	position: absolute;
	top: 100%;
	left: 0;
	z-index: 30;
	min-width: 168px;
	margin: 6px 0 0;
	padding: 6px;
	list-style: none;
	background: var(--card);
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	box-shadow: var(--shadow);
	opacity: 0;
	visibility: hidden;
	transform: translateY(-6px);
	transition: all .18s ease;
}
.site-nav li:hover > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.site-nav .sub-menu a { display: block; padding: 7px 12px; font-size: 14px; border-radius: 6px; color: var(--text-2); }
.site-nav .sub-menu a:hover { background: var(--primary-50); color: var(--primary); }

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

.icon-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px; height: 36px;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--text-2);
	cursor: pointer;
	font-size: 18px;
	transition: all .2s ease;
}
.icon-btn:hover { background: var(--primary-50); color: var(--primary); }

.header-topbar {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 16px;
	height: 36px;
	font-size: 13px;
	color: var(--text-2);
	border-bottom: 1px solid var(--border-2);
}
.header-topbar a:hover { color: var(--primary); }
.topbar-menu { display: flex; list-style: none; margin: 0; padding: 0; gap: 14px; }

/* 搜索层 */
.site-search {
	display: none;
	padding: 18px 0 22px;
	background: var(--card);
	border-bottom: 1px solid var(--border);
}
.site-search.is-open { display: block; }
.search-form { display: flex; gap: 10px; max-width: 640px; margin: 0 auto; }
.search-form input[type="search"],
.search-form input[type="text"] {
	flex: 1;
	height: 42px;
	padding: 0 16px;
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	background: var(--bg);
	color: var(--text);
	outline: none;
}
.search-form input:focus { border-color: var(--primary); }
.search-form button {
	height: 42px;
	padding: 0 22px;
	border: 0;
	border-radius: var(--radius-sm);
	background: var(--primary);
	color: #fff;
	cursor: pointer;
}
.search-form button:hover { background: var(--primary-600); }

/* 面包屑 */
.breadcrumbs {
	padding: 12px 0;
	font-size: 13px;
	color: var(--muted);
	border-bottom: 1px solid var(--border-2);
	background: var(--card);
}
.breadcrumbs a { color: var(--text-2); }
.breadcrumbs .sep { margin: 0 6px; opacity: .6; }

/* =========================================================
   3. 主体布局
   ========================================================= */
.site-main { padding: 22px 0 40px; }
.content-wrap { display: flex; gap: 24px; align-items: flex-start; }
.main-column { flex: 1; min-width: 0; }
.sidebar-column { width: 320px; flex: none; position: sticky; top: 86px; }

.card {
	background: var(--card);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
}

.section-title {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin: 0 0 14px;
	padding-bottom: 10px;
	border-bottom: 2px solid var(--border-2);
}
.section-title h2, .section-title h3 { margin: 0; font-size: 18px; }
.section-title .more { font-size: 13px; color: var(--muted); }

/* =========================================================
   4. 首页焦点图 / 专题
   ========================================================= */
.focus-slider {
	position: relative;
	overflow: hidden;
	border-radius: var(--radius);
	background: var(--border-2);
	margin-bottom: 22px;
}
.focus-slider .slides { position: relative; height: 320px; }
.focus-slider .slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	transition: opacity .5s ease;
}
.focus-slider .slide.is-active { opacity: 1; z-index: 2; }
.focus-slider .slide img { width: 100%; height: 100%; object-fit: cover; }
.focus-slider .slide .slide-title {
	position: absolute;
	left: 0; right: 0; bottom: 0;
	padding: 42px 20px 16px;
	background: linear-gradient(transparent, rgba(0, 0, 0, .65));
	color: #fff;
	font-size: 16px;
}
.focus-slider .dots {
	position: absolute;
	right: 14px; bottom: 14px;
	z-index: 3;
	display: flex;
	gap: 6px;
}
.focus-slider .dots button {
	width: 9px; height: 9px; padding: 0;
	border: 0; border-radius: 50%;
	background: rgba(255, 255, 255, .55);
	cursor: pointer;
}
.focus-slider .dots button.is-active { background: #fff; width: 22px; border-radius: 6px; }
.focus-slider .arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 3;
	width: 36px; height: 36px;
	display: flex; align-items: center; justify-content: center;
	border: 0; border-radius: 50%;
	background: rgba(0, 0, 0, .35);
	color: #fff;
	cursor: pointer;
	font-size: 18px;
}
.focus-slider .arrow.prev { left: 12px; }
.focus-slider .arrow.next { right: 12px; }

.topic-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 14px;
	margin-bottom: 22px;
}
.topic-card {
	display: block;
	position: relative;
	overflow: hidden;
	border-radius: var(--radius);
	background: var(--border-2);
	aspect-ratio: 16 / 9;
}
.topic-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.topic-card:hover img { transform: scale(1.05); }
.topic-card .topic-info {
	position: absolute; inset: auto 0 0 0;
	padding: 28px 14px 12px;
	background: linear-gradient(transparent, rgba(0, 0, 0, .7));
	color: #fff;
}
.topic-card .topic-info h3 { margin: 0; font-size: 15px; color: #fff; }
.topic-card .topic-info .count { font-size: 12px; opacity: .85; }

/* =========================================================
   5. 文章列表（摘要卡片）
   ========================================================= */
.post-list { display: flex; flex-direction: column; gap: 14px; }

.excerpt {
	display: flex;
	gap: 18px;
	padding: 16px;
	background: var(--card);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	transition: box-shadow .2s ease, border-color .2s ease, transform .2s ease;
}
.excerpt:hover { border-color: rgba(28, 100, 242, .35); box-shadow: var(--shadow); transform: translateY(-1px); }

.excerpt .thumb-link {
	flex: none;
	width: 220px;
	border-radius: var(--radius-sm);
	overflow: hidden;
	background: var(--border-2);
}
.excerpt .thumb-link img { width: 100%; height: 140px; object-fit: cover; transition: transform .35s ease; }
.excerpt:hover .thumb-link img { transform: scale(1.04); }

.excerpt-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.excerpt .entry-title { margin: 0 0 8px; font-size: 18px; line-height: 1.45; }
.excerpt .entry-title a { display: block; }
.excerpt .entry-title .badge {
	display: inline-block;
	margin-right: 6px;
	padding: 1px 7px;
	font-size: 12px;
	font-weight: 400;
	border-radius: 4px;
	background: var(--primary);
	color: #fff;
	vertical-align: 2px;
}
.excerpt .entry-summary {
	margin: 0 0 10px;
	color: var(--text-2);
	font-size: 14px;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.excerpt .entry-meta {
	margin-top: auto;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px;
	font-size: 13px;
	color: var(--muted);
}
.excerpt .entry-meta .meta-item { display: inline-flex; align-items: center; gap: 4px; }
.excerpt .entry-meta a.cat-link {
	padding: 1px 8px;
	border-radius: 20px;
	background: var(--primary-50);
	color: var(--primary);
	font-size: 12px;
}
.excerpt.is-text .thumb-link { display: none; }
.excerpt.is-sticky { border-color: rgba(28, 100, 242, .4); }

/* 归档头部 */
.archive-header {
	padding: 18px 20px;
	margin-bottom: 16px;
	background: var(--card);
	border: 1px solid var(--border);
	border-radius: var(--radius);
}
.archive-header h1 { margin: 0 0 6px; font-size: 22px; }
.archive-header .archive-desc { margin: 0; color: var(--text-2); font-size: 14px; }
.archive-header .archive-count { font-size: 13px; color: var(--muted); }

/* =========================================================
   6. 分页
   ========================================================= */
.pagination { margin: 26px 0 0; }
.pagination ul,
.pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	justify-content: center;
	list-style: none;
	margin: 0;
	padding: 0;
}
.pagination li { list-style: none; }
.pagination .page-numbers {
	min-width: 36px;
	height: 36px;
	padding: 0 10px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	background: var(--card);
	color: var(--text-2);
	font-size: 14px;
}
.pagination .page-numbers:hover { border-color: var(--primary); color: var(--primary); }
.pagination .page-numbers.current { background: var(--primary); border-color: var(--primary); color: #fff; }
.pagination .page-numbers.dots { border: 0; background: transparent; }

/* =========================================================
   7. 侧边栏与小工具
   ========================================================= */
.widget {
	margin-bottom: 16px;
	padding: 16px;
	background: var(--card);
	border: 1px solid var(--border);
	border-radius: var(--radius);
}
.widget-title {
	position: relative;
	margin: 0 0 12px;
	padding-left: 12px;
	font-size: 16px;
}
.widget-title::before {
	content: "";
	position: absolute;
	left: 0; top: 50%;
	transform: translateY(-50%);
	width: 4px; height: 16px;
	border-radius: 2px;
	background: var(--primary);
}

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

/* 图文列表小工具 */
.widget-post-list li { padding: 10px 0; border-bottom: 1px dashed var(--border-2); }
.widget-post-list li:last-child { border-bottom: 0; }
.widget-post-list li a { display: flex; gap: 10px; align-items: flex-start; }
.widget-post-list .w-thumb {
	flex: none;
	width: 84px; height: 60px;
	border-radius: 6px;
	overflow: hidden;
	background: var(--border-2);
}
.widget-post-list .w-thumb img { width: 100%; height: 100%; object-fit: cover; }
.widget-post-list .w-body { flex: 1; min-width: 0; }
.widget-post-list .w-title {
	font-size: 14px;
	line-height: 1.5;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.widget-post-list .w-meta { margin-top: 4px; font-size: 12px; color: var(--muted); }
.widget-post-list.nopic .w-thumb { display: none; }
.widget-post-list.nopic li { display: flex; align-items: center; gap: 8px; }
.widget-post-list.nopic li::before {
	content: "";
	flex: none;
	width: 5px; height: 5px;
	border-radius: 50%;
	background: var(--border);
}

/* 标签云 */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-cloud a {
	padding: 3px 10px;
	border: 1px solid var(--border);
	border-radius: 20px;
	font-size: 13px;
	color: var(--text-2);
}
.tag-cloud a:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-50); }

/* 广告位 */
.widget-ads { text-align: center; }
.widget-ads img { border-radius: var(--radius-sm); margin: 0 auto; }

/* 站点统计 */
.widget-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.widget-stats .stat { padding: 10px; text-align: center; border-radius: var(--radius-sm); background: var(--bg); }
.widget-stats .stat b { display: block; font-size: 18px; color: var(--primary); }
.widget-stats .stat span { font-size: 12px; color: var(--muted); }

/* 公告 */
.widget-notice .notice-body { font-size: 14px; color: var(--text-2); }
.widget-notice ul li { padding: 6px 0; font-size: 14px; }
.widget-notice ul li time { margin-right: 8px; color: var(--muted); font-size: 12px; }

/* 最新评论 */
.widget-comments li { padding: 8px 0; font-size: 13px; border-bottom: 1px dashed var(--border-2); }
.widget-comments li:last-child { border-bottom: 0; }
.widget-comments .c-author { color: var(--primary); }
.widget-comments .c-text { color: var(--text-2); }

/* =========================================================
   8. 文章页
   ========================================================= */
.article { padding: 24px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); }
.article-header { margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px solid var(--border-2); }
.article-title { margin: 0 0 10px; font-size: 27px; line-height: 1.4; }
.article-meta { display: flex; flex-wrap: wrap; gap: 16px; font-size: 13px; color: var(--muted); }
.article-meta .meta-item { display: inline-flex; align-items: center; gap: 4px; }
.article-meta a { color: var(--text-2); }

.entry-content { font-size: 16px; line-height: 1.85; color: var(--text); word-wrap: break-word; }
.entry-content > *:first-child { margin-top: 0; }
.entry-content h2 { margin-top: 1.6em; padding-left: 12px; border-left: 4px solid var(--primary); }
.entry-content h3 { margin-top: 1.4em; }
.entry-content a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
.entry-content img { border-radius: var(--radius-sm); }
.entry-content blockquote {
	margin: 1.2em 0;
	padding: 12px 18px;
	background: var(--bg);
	border-left: 4px solid var(--primary);
	border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
	color: var(--text-2);
}
.entry-content blockquote p:last-child { margin-bottom: 0; }
.entry-content pre {
	padding: 14px 16px;
	overflow-x: auto;
	background: #1e2430;
	color: #e6edf3;
	border-radius: var(--radius-sm);
	font-family: var(--font-mono);
	font-size: 13px;
	line-height: 1.7;
}
.lumen-dark .entry-content pre { background: #0d1117; }
.entry-content code {
	padding: 2px 6px;
	background: var(--bg);
	border-radius: 4px;
	font-family: var(--font-mono);
	font-size: .9em;
}
.entry-content pre code { padding: 0; background: none; color: inherit; }
.entry-content table { width: 100%; border-collapse: collapse; margin: 1.2em 0; font-size: 14px; }
.entry-content th, .entry-content td { padding: 10px 12px; border: 1px solid var(--border); }
.entry-content th { background: var(--bg); text-align: left; }
.entry-content ul, .entry-content ol { padding-left: 1.5em; }
.entry-content li { margin-bottom: .4em; }
.entry-content .wp-caption { max-width: 100%; }
.entry-content .wp-caption-text, .entry-content figcaption { font-size: 13px; color: var(--muted); text-align: center; }
.entry-content .alignleft { float: left; margin: 4px 18px 12px 0; }
.entry-content .alignright { float: right; margin: 4px 0 12px 18px; }
.entry-content .aligncenter { margin: 12px auto; display: block; }

.article-update-tip {
	margin-bottom: 16px;
	padding: 8px 14px;
	border-radius: var(--radius-sm);
	background: var(--primary-50);
	color: var(--text-2);
	font-size: 13px;
}

.article-tags { margin: 20px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.article-tags a {
	padding: 3px 12px;
	border-radius: 20px;
	background: var(--bg);
	border: 1px solid var(--border);
	font-size: 13px;
	color: var(--text-2);
}
.article-tags a:hover { border-color: var(--primary); color: var(--primary); }

.post-copyright {
	margin-top: 20px;
	padding: 14px 16px;
	background: var(--bg);
	border-radius: var(--radius-sm);
	font-size: 13px;
	color: var(--text-2);
}

/* 点赞 / 分享 */
.post-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.action-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	height: 38px;
	padding: 0 18px;
	border: 1px solid var(--border);
	border-radius: 20px;
	background: var(--card);
	color: var(--text-2);
	font-size: 14px;
	cursor: pointer;
	transition: all .2s ease;
}
.action-btn:hover { border-color: var(--primary); color: var(--primary); }
.action-btn.is-active { background: var(--primary); border-color: var(--primary); color: #fff; }
.action-btn .count { font-size: 13px; }

.shares { display: flex; align-items: center; gap: 10px; margin-top: 20px; flex-wrap: wrap; }
.shares .share-label { font-size: 13px; color: var(--muted); }
.shares .share-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px; height: 34px;
	border-radius: 50%;
	background: var(--bg);
	color: var(--text-2);
	font-size: 16px;
}
.shares .share-btn:hover { background: var(--primary); color: #fff; }

/* 作者卡片 */
.author-card { display: flex; gap: 14px; margin-top: 24px; padding: 16px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg); }
.author-card .avatar { width: 56px; height: 56px; border-radius: 50%; flex: none; }
.author-card .author-info h4 { margin: 0 0 4px; }
.author-card .author-info p { margin: 0; font-size: 13px; color: var(--text-2); }

/* 上下篇 */
.article-nav { display: flex; gap: 12px; margin-top: 20px; }
.article-nav a {
	flex: 1;
	padding: 12px 14px;
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	font-size: 14px;
	background: var(--card);
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
}
.article-nav a span { display: block; font-size: 12px; color: var(--muted); }
.article-nav .nav-next { text-align: right; }

/* 相关文章 */
.related-posts { margin-top: 26px; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.related-item { display: block; border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; background: var(--card); }
.related-item img { width: 100%; height: 120px; object-fit: cover; }
.related-item .r-title { padding: 10px 12px; font-size: 14px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.related-text li { padding: 7px 0; border-bottom: 1px dashed var(--border-2); font-size: 14px; }
.related-text li:last-child { border-bottom: 0; }

/* 页面 */
.page-content { padding: 24px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); }

/* =========================================================
   9. 评论
   ========================================================= */
.comments-area { margin-top: 26px; padding: 24px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); }
.comments-title { margin: 0 0 18px; font-size: 18px; }
.comments-title b { color: var(--primary); }

.comment-form {
	margin-bottom: 26px;
	padding: 16px;
	background: var(--bg);
	border-radius: var(--radius-sm);
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 10px;
}
.comment-form > * { grid-column: 1 / -1; margin: 0; }
.comment-form .comment-form-author,
.comment-form .comment-form-email,
.comment-form .comment-form-url { grid-column: auto; }
.comment-form input {
	width: 100%;
	height: 38px;
	padding: 0 12px;
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	background: var(--card);
	color: var(--text);
	outline: none;
}
.comment-form input:focus { border-color: var(--primary); }
.comment-form .comt-box { display: flex; flex-direction: column; gap: 10px; }
.comment-form textarea {
	width: 100%;
	min-height: 96px;
	padding: 12px 14px;
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	background: var(--card);
	color: var(--text);
	resize: vertical;
	outline: none;
}
.comment-form textarea:focus { border-color: var(--primary); }
.comment-form .comt-ctrl { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.comment-form .submit {
	height: 38px;
	padding: 0 24px;
	border: 0;
	border-radius: var(--radius-sm);
	background: var(--primary);
	color: #fff;
	cursor: pointer;
}
.comment-form .submit:hover { background: var(--primary-600); }
.comment-form .comt-fields { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.comment-form .comt-fields input {
	height: 38px;
	padding: 0 12px;
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	background: var(--card);
	color: var(--text);
	outline: none;
}
.comment-form .comt-fields input:focus { border-color: var(--primary); }
.comment-form .logged-in-as { font-size: 13px; color: var(--muted); }
.comment-notes, .form-allowed-tags { font-size: 12px; color: var(--muted); }

.comment-list { list-style: none; margin: 0; padding: 0; }
.comment-list .comment { padding: 16px 0; border-top: 1px solid var(--border-2); }
.comment-list .children { list-style: none; margin: 0 0 0 20px; padding: 0; }
.comment-list .comment-body { display: flex; gap: 12px; }
.comment-list .comment-avatar { flex: none; }
.comment-list .comment-avatar img { width: 42px; height: 42px; border-radius: 50%; }
.comment-list .comment-main { flex: 1; min-width: 0; }
.comment-list .comment-author { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.comment-list .comment-author .floor { font-size: 12px; color: var(--muted); }
.comment-list .comment-author cite { font-style: normal; font-weight: 600; }
.comment-list .comment-meta { font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.comment-list .comment-text { font-size: 14px; color: var(--text); }
.comment-list .comment-text p { margin: 0 0 .5em; }
.comment-list .reply { font-size: 12px; }
.comment-list .reply a { color: var(--primary); }
.comment-list .comment-awaiting { font-size: 12px; color: #d97706; }
.comment-navigation { display: flex; justify-content: space-between; font-size: 13px; }
.comment-closed { font-size: 14px; color: var(--muted); }

/* =========================================================
   10. 页脚
   ========================================================= */
.site-footer {
	margin-top: 30px;
	background: var(--card);
	border-top: 1px solid var(--border);
	padding: 30px 0 20px;
	color: var(--text-2);
	font-size: 14px;
}
.footer-widgets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 24px; }
.footer-widgets .widget { margin: 0; padding: 0; background: none; border: 0; box-shadow: none; }
.footer-links { margin-bottom: 18px; }
.footer-links h4 { font-size: 14px; }
.footer-links ul { display: flex; flex-wrap: wrap; gap: 10px 18px; list-style: none; margin: 0; padding: 0; font-size: 13px; }
.footer-bottom { padding-top: 16px; border-top: 1px solid var(--border-2); font-size: 13px; color: var(--muted); text-align: center; }
.footer-bottom a:hover { color: var(--primary); }

/* 移动端底部工具条 */
.mobile-tabbar {
	display: none;
	position: fixed;
	left: 0; right: 0; bottom: 0;
	z-index: 95;
	background: var(--card);
	border-top: 1px solid var(--border);
}
.mobile-tabbar a {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 2px;
	height: 52px;
	font-size: 11px;
	color: var(--text-2);
}
.mobile-tabbar a .lumen-ico { font-size: 18px; }

.back-to-top {
	position: fixed;
	right: 18px; bottom: 24px;
	z-index: 80;
	width: 42px; height: 42px;
	display: none;
	align-items: center;
	justify-content: center;
	border: 0;
	border-radius: var(--radius-sm);
	background: var(--primary);
	color: #fff;
	cursor: pointer;
	box-shadow: var(--shadow);
}
.back-to-top.is-show { display: flex; }

/* 404 */
.notfound { padding: 60px 20px; text-align: center; }
.notfound h1 { font-size: 40px; }
.notfound .nf-actions { margin-top: 20px; display: flex; gap: 12px; justify-content: center; }

.btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	height: 40px;
	padding: 0 20px;
	border: 1px solid var(--primary);
	border-radius: var(--radius-sm);
	background: var(--primary);
	color: #fff;
	font-size: 14px;
	cursor: pointer;
}
.btn:hover { background: var(--primary-600); border-color: var(--primary-600); color: #fff; }
.btn.btn-outline { background: transparent; color: var(--primary); }
.btn.btn-outline:hover { background: var(--primary); color: #fff; }

/* =========================================================
   11. 响应式
   ========================================================= */
@media (min-width: 1100px) {
	.brand-slogan { display: block; }
}

@media (max-width: 1000px) {
	.topic-grid, .related-grid { grid-template-columns: repeat(2, 1fr); }
	.footer-widgets { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
	.header-inner { height: 56px; }
	.brand-slogan { display: none; }
	.primary-nav, .header-topbar { display: none; }

	.nav-toggle { display: inline-flex !important; }

	.content-wrap { flex-direction: column; }
	.sidebar-column { width: 100%; position: static; }

	.excerpt { padding: 12px; gap: 12px; }
	.excerpt .thumb-link { width: 110px; }
	.excerpt .thumb-link img { height: 78px; }
	.excerpt .entry-title { font-size: 16px; }
	.excerpt .entry-summary { -webkit-line-clamp: 2; }
	.excerpt .entry-meta { gap: 10px; font-size: 12px; }

	.article, .page-content, .comments-area { padding: 16px; border-radius: var(--radius-sm); }
	.article-title { font-size: 21px; }
	.entry-content { font-size: 15px; }

	.focus-slider .slides { height: 180px; }
	.comment-form { grid-template-columns: 1fr; }
	.comment-form .comment-form-author,
	.comment-form .comment-form-email,
	.comment-form .comment-form-url { grid-column: 1 / -1; }
	.article-nav { flex-direction: column; }

	.mobile-tabbar { display: flex; }
	body.has-tabbar { padding-bottom: 54px; }
	.back-to-top { bottom: 66px; }
}

@media (max-width: 640px) {
	.site-title { font-size: 18px; }
	.topic-grid, .related-grid, .footer-widgets { grid-template-columns: 1fr; }
	.related-grid { grid-template-columns: repeat(2, 1fr); }
	.sidebar-column .widget { padding: 14px; }
}

/* 移动端抽屉菜单 */
.mobile-drawer {
	position: fixed;
	inset: 0;
	z-index: 120;
	display: none;
}
.mobile-drawer.is-open { display: block; }
.mobile-drawer .drawer-mask { position: absolute; inset: 0; background: rgba(0, 0, 0, .45); }
.mobile-drawer .drawer-panel {
	position: absolute;
	top: 0; left: 0; bottom: 0;
	width: 76%;
	max-width: 320px;
	padding: 20px 18px;
	background: var(--card);
	overflow-y: auto;
	transform: translateX(-100%);
	transition: transform .25s ease;
}
.mobile-drawer.is-open .drawer-panel { transform: none; }
.mobile-drawer .drawer-close { position: absolute; top: 12px; right: 12px; }
.mobile-drawer ul { list-style: none; margin: 30px 0 0; padding: 0; }
.mobile-drawer li a { display: block; padding: 11px 0; border-bottom: 1px solid var(--border-2); font-size: 15px; }
.mobile-drawer .sub-menu { margin: 0 0 0 14px !important; }

.nav-toggle { display: none; }

/* =========================================================
   12. 布局变体与补充
   ========================================================= */
.layout-left .content-wrap { flex-direction: row-reverse; }
.layout-none .sidebar-column { display: none; }
.layout-none .main-column { width: 100%; }

.header-topbar .container {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 16px;
}
.topbar-user a + a { margin-left: 12px; }

.footer-menu { margin-bottom: 14px; }
.footer-menu .topbar-menu { justify-content: center; }

.ico-light, .ico-dark { display: inline-flex; }

.edit-link a { color: var(--primary); }
.comment-list .comment-body .floor { margin-left: 4px; }

.widget_ads .widget-ads-code { overflow: hidden; }
.widget_ads .widget-ads-code img { margin: 0 auto; }
