/* ===== 头部 ===== */
.site-header {
	background: #fff;
	box-shadow: 0 1px 0 var(--border);
	position: relative;
	z-index: 100;
}

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

.site-branding {
	flex-shrink: 0;
}

.site-title {
	font-size: 22px;
	font-weight: 700;
	color: var(--primary);
	letter-spacing: .5px;
}

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

.main-navigation {
	flex: 1;
}

.main-navigation ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	gap: 4px;
}

.main-navigation li {
	position: relative;
}

.main-navigation a {
	display: block;
	padding: 8px 14px;
	font-size: 15px;
	color: var(--text);
	border-radius: 4px;
}

.main-navigation a:hover,
.main-navigation .current-menu-item > a,
.main-navigation .current_page_item > a {
	color: var(--primary);
}

.main-navigation .sub-menu {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	background: #fff;
	min-width: 160px;
	box-shadow: 0 6px 16px rgba(0, 0, 0, .08);
	border-radius: 6px;
	padding: 6px 0;
}

.main-navigation li:hover > .sub-menu {
	display: block;
}

.main-navigation .sub-menu a {
	padding: 8px 16px;
}

.header-actions {
	display: flex;
	align-items: center;
	gap: 14px;
}

.login-link,
.register-link {
	font-size: 14px;
	color: var(--text);
}

.login-link {
	padding-right: 10px;
	margin-right: 2px;
	position: relative;
}

.login-link::after {
	content: "";
	position: absolute;
	right: 0;
	top: 50%;
	transform: translateY(-50%);
	width: 1px;
	height: 14px;
	background: var(--muted);
	opacity: .5;
}

.login-link:hover,
.register-link:hover {
	color: var(--primary);
}

.btn-publish {
	display: inline-block;
	padding: 5px 16px;
	font-size: 14px;
	line-height: 20px;
	color: #fff;
	background: var(--primary);
	border-radius: 6px;
}

.btn-publish:hover {
	background: var(--primary-dark);
	color: #fff;
}

.search-toggle,
.menu-toggle {
	background: none;
	border: none;
	cursor: pointer;
	color: var(--text);
	padding: 6px;
	display: flex;
	align-items: center;
}

.menu-toggle {
	display: none;
	flex-direction: column;
	gap: 4px;
	padding: 8px;
}

.menu-toggle span {
	display: block;
	width: 20px;
	height: 2px;
	background: var(--text);
	border-radius: 2px;
}

.search-bar {
	display: none;
	background: #fff;
	border-top: 1px solid var(--border);
	padding: 12px 0;
}

.search-bar.open {
	display: block;
}

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

.search-field {
	flex: 1;
	padding: 10px 14px;
	border: 1px solid var(--border);
	border-radius: 6px;
	font-size: 14px;
}

.search-field:focus {
	outline: none;
	border-color: var(--primary);
}

.search-submit {
	padding: 10px 22px;
	background: var(--primary);
	color: #fff;
	border: none;
	border-radius: 6px;
	cursor: pointer;
	font-size: 14px;
}

.search-submit:hover {
	background: var(--primary-dark);
}

/* ===== 幻灯滑块 ===== */
.hero-slider-wrap {
	display: flex;
	gap: 20px;
	margin: 24px 0;
}

.hero-slider {
	position: relative;
	flex: 1;
	min-width: 0;
	border-radius: 12px;
	overflow: hidden;
	height: 400px;
	background: #1d2129;
}

.feature-post {
	flex-shrink: 0;
	width: 300px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.feature-post li {
	position: relative;
	height: 190px;
	border-radius: 8px;
	overflow: hidden;
	margin-bottom: 20px;
	background: #1d2129;
}

.feature-post li:last-child { margin-bottom: 0; }

.feature-post a, .feature-post img { display: block; width: 100%; height: 100%; }

.feature-post img { object-fit: cover; transition: transform .3s ease; }

.feature-post li:hover img { transform: scale(1.05); }

.feature-post span {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 10px 15px;
	color: #fff;
	font-size: 15px;
	font-weight: 500;
	background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .7));
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.slider-track {
	height: 100%;
}

.slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	transition: opacity .5s ease;
}

.slide.active {
	opacity: 1;
}

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

.slide-placeholder {
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, #2b3242, #1d2129);
}

.slide-caption {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 40px 20px 16px;
	background: linear-gradient(to top, rgba(0, 0, 0, .7), transparent);
	color: #fff;
	z-index: 1;
}

.slide-caption h3 {
	margin: 0;
	font-size: 18px;
	font-weight: 500;
	line-height: 1.4;
}

.slide-caption h3 a {
	color: #fff;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.slide-caption a:hover {
	color: #fff;
}

.slider-btn {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 40px;
	height: 40px;
	border: none;
	background: rgba(0, 0, 0, .35);
	color: #fff;
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 5;
}

.slider-btn:hover {
	background: rgba(0, 0, 0, .6);
}

.slider-btn.prev {
	left: 16px;
}

.slider-btn.next {
	right: 16px;
}

.slider-dots {
	position: absolute;
	bottom: 16px;
	right: 24px;
	display: flex;
	gap: 6px;
	z-index: 5;
}

.slider-dots span {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: rgba(255, 255, 255, .5);
	cursor: pointer;
}

.slider-dots span.active {
	background: #fff;
}

/* ===== 区块标题 ===== */
.home-section {
	margin: 28px 0;
}

.section-title {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin: 0 0 16px;
	padding-left: 12px;
	border-left: 4px solid var(--primary);
	font-size: 20px;
}

.section-title .more-link {
	font-size: 13px;
	color: var(--muted);
	font-weight: 400;
}

.section-title .more-link:hover {
	color: var(--primary);
}

/* ===== 专题 ===== */
.topics-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 16px;
}

.topic-card {
	position: relative;
	display: block;
	aspect-ratio: 16 / 9;
	border-radius: var(--radius);
	overflow: hidden;
	background: #eef0f3;
}

.topic-card::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 50%;
	background: linear-gradient(to top, rgba(0, 0, 0, .65), transparent);
	pointer-events: none;
}

.topic-cover {
	position: absolute;
	inset: 0;
}

.topic-cover img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform .3s ease;
}

.topic-card:hover .topic-cover img {
	transform: scale(1.05);
}

.topic-name {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 10px 12px;
	color: #fff;
	font-size: 16px;
	font-weight: 500;
	text-align: center;
	z-index: 1;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* ===== 布局区域 ===== */
.content-area {
	display: flex;
	gap: 24px;
	margin: 24px 0;
}

.layout-main {
	flex: 1;
	min-width: 0;
}

.widget-area {
	width: 320px;
	flex-shrink: 0;
}

/* ===== 文章卡片 ===== */
.post-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 20px;
}

.post-card {
	background: var(--card);
	border-radius: var(--radius);
	overflow: hidden;
	border: 1px solid var(--border);
	transition: box-shadow .2s ease, transform .2s ease;
}

.post-card:hover {
	box-shadow: 0 8px 20px rgba(0, 0, 0, .07);
	transform: translateY(-3px);
}

.card-thumb {
	position: relative;
	display: block;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: #eef0f3;
}

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

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

.thumb-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 100%;
	color: #b0b6bf;
	font-size: 14px;
}

.sticky-badge {
	position: absolute;
	top: 10px;
	left: 10px;
	background: #f53f3f;
	color: #fff;
	font-size: 12px;
	padding: 2px 8px;
	border-radius: 4px;
}

.card-body {
	padding: 16px;
}

.card-title {
	font-size: 17px;
	margin: 10px 0 8px;
	line-height: 1.45;
}

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

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

.cat-badge {
	display: inline-block;
	font-size: 12px;
	padding: 2px 10px;
	border-radius: 4px;
	background: #eef4ff;
	color: var(--primary);
}

.card-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	font-size: 12px;
	color: var(--muted);
}

.card-meta .meta-item a {
	color: var(--muted);
}

.card-meta .meta-item a:hover {
	color: var(--primary);
}

/* ===== 归档列表 ===== */
.archive-list {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.post-list {
	display: flex;
	gap: 16px;
	background: var(--card);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 16px;
}

.list-thumb {
	flex-shrink: 0;
	width: 220px;
	height: 146px;
	border-radius: 6px;
	overflow: hidden;
	background: #eef0f3;
}

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

.list-body {
	flex: 1;
	min-width: 0;
}

.list-title {
	font-size: 18px;
	margin: 8px 0 6px;
}

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

/* ===== 快讯 ===== */
.flash-list {
	list-style: none;
	margin: 0;
	padding: 16px 20px;
	background: var(--card);
	border: 1px solid var(--border);
	border-radius: var(--radius);
}

.flash-list li {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 9px 0;
	border-bottom: 1px dashed var(--border);
}

.flash-list li:last-child {
	border-bottom: none;
}

.flash-date {
	color: var(--primary);
	font-size: 13px;
	font-weight: 600;
	flex-shrink: 0;
}

.flash-list a {
	font-size: 14px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* ===== 侧边栏 ===== */
.widget {
	background: var(--card);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 16px;
	margin-bottom: 20px;
}

.widget-title {
	font-size: 16px;
	margin: 0 0 12px;
	padding-left: 10px;
	border-left: 3px solid var(--primary);
}

.tab-nav {
	display: flex;
	list-style: none;
	margin: 0 0 12px;
	padding: 0;
	gap: 6px;
}

.tab-nav li {
	flex: 1;
	text-align: center;
	padding: 8px 0;
	font-size: 14px;
	cursor: pointer;
	border-radius: 6px;
	color: var(--muted);
	background: var(--bg);
}

.tab-nav li.active {
	background: var(--primary);
	color: #fff;
}

.tab-panel {
	display: none;
}

.tab-panel.active {
	display: block;
}

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

.tab-list li {
	display: flex;
	gap: 12px;
	align-items: center;
	padding: 9px 0;
	border-bottom: 1px solid var(--border);
}

.tab-list li:last-child {
	border-bottom: none;
}

.rank {
	width: 22px;
	height: 22px;
	border-radius: 5px;
	text-align: center;
	line-height: 22px;
	font-size: 12px;
	background: var(--bg);
	color: var(--muted);
	flex-shrink: 0;
}

.rank-top {
	background: var(--primary);
	color: #fff;
}

.tab-item-body {
	flex: 1;
	min-width: 0;
}

.tab-item-body a {
	display: block;
	font-size: 14px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.tab-item-meta {
	font-size: 12px;
	color: var(--muted);
}

/* ===== 分页 ===== */
.nav-links {
	display: flex;
	gap: 8px;
	justify-content: center;
	margin: 28px 0;
	flex-wrap: wrap;
}

.nav-links .page-numbers {
	display: inline-block;
	min-width: 36px;
	height: 36px;
	line-height: 36px;
	padding: 0 10px;
	text-align: center;
	background: var(--card);
	border: 1px solid var(--border);
	border-radius: 6px;
	font-size: 14px;
}

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

.nav-links .page-numbers:hover {
	color: var(--primary);
	border-color: var(--primary);
}

/* ===== 文章页 ===== */
.entry-header {
	padding: 24px;
	background: var(--card);
	border-radius: var(--radius);
	border: 1px solid var(--border);
	margin-bottom: 20px;
}

.entry-title {
	font-size: 26px;
	margin: 12px 0;
}

.entry-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	font-size: 13px;
	color: var(--muted);
}

.entry-meta a {
	color: var(--muted);
}

.entry-meta a:hover {
	color: var(--primary);
}

.entry-thumb {
	margin-bottom: 20px;
	border-radius: var(--radius);
	overflow: hidden;
}

.entry-thumb img {
	width: 100%;
	height: auto;
	display: block;
}

.entry-content {
	background: var(--card);
	border-radius: var(--radius);
	border: 1px solid var(--border);
	padding: 28px;
	font-size: 16px;
	line-height: 1.8;
}

.entry-content img {
	border-radius: 6px;
}

.entry-content h2 {
	font-size: 22px;
	margin-top: 1.5em;
}

.entry-content h3 {
	font-size: 19px;
	margin-top: 1.4em;
}

.entry-content blockquote {
	margin: 1em 0;
	padding: 12px 20px;
	border-left: 4px solid var(--primary);
	background: #f7f9ff;
	color: #4e5969;
}

.entry-content pre {
	background: #1d2129;
	color: #e8e8e8;
	padding: 16px;
	border-radius: 6px;
	overflow-x: auto;
}

.entry-content code {
	background: #f2f3f5;
	padding: 2px 6px;
	border-radius: 4px;
	font-size: .9em;
}

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

.entry-footer {
	margin-top: 16px;
}

.entry-tags a {
	display: inline-block;
	margin: 0 8px 8px 0;
	padding: 4px 12px;
	background: var(--card);
	border: 1px solid var(--border);
	border-radius: 20px;
	font-size: 13px;
	color: var(--muted);
}

.entry-tags a:hover {
	color: var(--primary);
	border-color: var(--primary);
}

/* ===== 评论区 ===== */
.comments-area {
	background: var(--card);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 24px;
	margin-top: 20px;
}

.comments-title {
	font-size: 18px;
}

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

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

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

.comment-form textarea,
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"] {
	width: 100%;
	padding: 10px 14px;
	border: 1px solid var(--border);
	border-radius: 6px;
	margin-bottom: 10px;
	font-family: inherit;
}

.comment-form .submit {
	background: var(--primary);
	color: #fff;
	border: none;
	padding: 10px 24px;
	border-radius: 6px;
	cursor: pointer;
}

.comment-form .submit:hover {
	background: var(--primary-dark);
}

/* ===== 归档头部 ===== */
.page-header {
	margin-bottom: 20px;
}

.page-title {
	font-size: 24px;
	margin: 0;
}

.archive-description {
	color: var(--muted);
	margin-top: 6px;
}

/* ===== 404 ===== */
.error-404 {
	text-align: center;
	padding: 80px 20px;
	background: var(--card);
	border-radius: var(--radius);
	border: 1px solid var(--border);
}

.error-404 h1 {
	font-size: 80px;
	color: var(--primary);
	margin: 0;
}

.btn {
	display: inline-block;
	padding: 10px 24px;
	background: var(--primary);
	color: #fff;
	border-radius: 6px;
}

.btn:hover {
	background: var(--primary-dark);
	color: #fff;
}

.no-results {
	text-align: center;
	padding: 60px 20px;
	background: var(--card);
	border-radius: var(--radius);
	border: 1px solid var(--border);
}

/* ===== 页脚 ===== */
.site-footer {
	background: #1d2129;
	color: #b0b6bf;
	margin-top: 40px;
}

.footer-widgets {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 32px;
	padding: 40px 0;
}

.footer-col h4 {
	color: #fff;
	font-size: 16px;
	margin-bottom: 16px;
}

.footer-col p {
	font-size: 14px;
	margin: 0 0 8px;
}

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

.footer-col ul li {
	margin-bottom: 8px;
}

.footer-col a {
	color: #b0b6bf;
}

.footer-col a:hover {
	color: #fff;
}

.footer-bottom {
	border-top: 1px solid rgba(255, 255, 255, .08);
	padding: 20px 0;
	text-align: center;
	font-size: 13px;
}

.footer-bottom p {
	margin: 0;
}

/* ===== 问答社区 ===== */
.qa-submit-box { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; margin-bottom: 20px; }
.qa-submit-toggle { background: var(--primary); color: #fff; border: none; padding: 8px 20px; border-radius: 6px; cursor: pointer; font-size: 14px; }
.qa-submit-toggle:hover { background: var(--primary-dark); }
.qa-submit-form { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.qa-submit-form input[type="text"], .qa-submit-form select, .qa-submit-form textarea { width: 100%; padding: 10px 14px; border: 1px solid var(--border); border-radius: 6px; font-size: 14px; font-family: inherit; }
.qa-submit-form textarea { resize: vertical; }
.qa-login-tip { margin: 0; color: var(--muted); }
.qa-list { display: flex; flex-direction: column; gap: 14px; }
.qa-item { display: flex; gap: 16px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; }
.qa-item-stats { display: flex; gap: 16px; flex-shrink: 0; }
.qa-item-stats div { display: flex; flex-direction: column; align-items: center; min-width: 48px; }
.qa-item-stats strong { font-size: 18px; color: var(--primary); }
.qa-item-stats span { font-size: 12px; color: var(--muted); }
.qa-item-main { flex: 1; min-width: 0; }
.qa-item-title { font-size: 17px; margin: 0 0 8px; }
.qa-item-title a:hover { color: var(--primary); }
.qa-item-meta { display: flex; flex-wrap: wrap; gap: 14px; font-size: 12px; color: var(--muted); align-items: center; }
.qa-status { font-size: 12px; padding: 2px 10px; border-radius: 4px; }
.qa-status.solved { background: #e8f7ee; color: #00a854; }
.qa-status.unsolved { background: #fdeeee; color: #f53f3f; }

.qa-single .qa-status { margin-right: 8px; }
.qa-answers-wrap { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; margin-top: 20px; }
.qa-answer-list { list-style: none; margin: 0; padding: 0; }
.qa-answer { padding: 16px 0; border-bottom: 1px solid var(--border); }
.qa-answer:last-child { border-bottom: none; }
.qa-answer-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.qa-answer-user { display: flex; gap: 10px; align-items: center; }
.qa-answer-user img { border-radius: 50%; }
.qa-answer-user strong { display: block; font-size: 14px; }
.qa-answer-user span { font-size: 12px; color: var(--muted); }
.qa-best { background: var(--primary); color: #fff; font-size: 12px; padding: 2px 10px; border-radius: 4px; }
.qa-answer-body { font-size: 15px; line-height: 1.8; }
.qa-answer-foot { display: flex; gap: 12px; align-items: center; margin-top: 10px; }
.qa-like-btn { background: var(--bg); border: 1px solid var(--border); border-radius: 6px; padding: 4px 14px; cursor: pointer; font-size: 13px; color: var(--text); }
.qa-like-btn.liked { background: #eef4ff; border-color: var(--primary); color: var(--primary); }
.qa-like-btn:disabled { opacity: .5; cursor: not-allowed; }
.qa-accept-form { display: inline; margin: 0; }
.qa-accept-btn { background: none; border: 1px solid var(--primary); color: var(--primary); border-radius: 6px; padding: 4px 14px; cursor: pointer; font-size: 13px; }
.qa-no-answer { color: var(--muted); }

/* ===== AnsPress 问答插件适配（仿 JustNews / QAPress 问答社区） ===== */
.anspress {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
	color: #1d2129;
	font-size: 14px;
	line-height: 1.7;
}
.anspress input, .anspress textarea, .anspress select, .anspress button { font-family: inherit; }
.anspress a { color: #1d2129; text-decoration: none; }
.anspress a:hover { color: var(--primary-dark); }
.anspress .ap-container, .anspress .ap-row { max-width: 100% !important; }

/* 列表头 + 提问按钮 */
.anspress .ap-list-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 15px; }
.anspress .ap-btn-ask {
	background: var(--primary); color: #fff; border: none; border-radius: 4px;
	padding: 8px 20px; font-size: 14px; cursor: pointer; text-decoration: none;
}
.anspress .ap-btn-ask:hover { background: var(--primary-dark); color: #fff; }

/* 问题列表项：头像左 + 标题元信息中间 + 统计右 */
.anspress .ap-questions-item { border-bottom: 1px solid #efefef; padding: 20px 0; }
.anspress .ap-questions-inner { display: flex; align-items: flex-start; }
.anspress .ap-avatar { flex-shrink: 0; float: none; width: 50px; margin-right: 20px; }
.anspress .ap-avatar img { width: 50px; height: 50px; border-radius: 50%; }
.anspress .ap-questions-summery { flex: 1; min-width: 0; order: 1; }
.anspress .ap-questions-title { display: block; }
.anspress .ap-questions-hyperlink {
	font-size: 16px; line-height: 22px; font-weight: 500; color: #1d2129;
	display: inline-block; margin-bottom: 8px;
}
.anspress .ap-questions-hyperlink:hover { color: var(--primary-dark); }
.anspress .ap-display-question-meta { color: #999; font-size: 13px; line-height: 15px; }
.anspress .ap-display-meta-item { margin-right: 10px; }

/* 统计（投票 + 回答）移到右侧 */
.anspress .ap-list-counts {
	order: 2; flex-shrink: 0; margin-left: 20px; display: flex; gap: 16px; text-align: center;
}
.anspress .ap-questions-count {
	display: flex; flex-direction: column; align-items: center; color: #999; font-size: 12px; line-height: 1.3;
}
.anspress .ap-questions-count span { font-size: 16px; font-weight: 600; color: var(--primary); }

/* 状态徽章（关闭/待解决等） */
.anspress .ap-post-status {
	display: inline-block; font-size: 12px; padding: 2px 8px; border-radius: 3px; margin-right: 6px;
	background: #fdeeee; color: #f53f3f;
}
/* 已解决徽章 */
.anspress .ap-display-meta-item.solved { background: #e1ffe3; color: #388202; border-radius: 3px; padding: 2px 8px; }

/* 最佳答案徽章 */
.anspress .ap-best-answer-label { background: #e1ffe3; color: #388202; font-size: 12px; padding: 2px 8px; border-radius: 3px; }

/* 回答项 */
.anspress .ap-answer-single, .anspress .ap-answers > * { padding: 20px 0; border-bottom: 1px solid #efefef; }
.anspress .ap-answer-single .ap-avatar img, .anspress .ap-answer .ap-avatar img { width: 40px; height: 40px; border-radius: 50%; }

/* 按钮 */
.anspress .ap-btn {
	background: var(--primary); border: 1px solid var(--primary); color: #fff;
	border-radius: 4px; padding: 6px 15px; cursor: pointer;
}
.anspress .ap-btn:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: #fff; }

/* 表单 */
.anspress input[type="text"], .anspress input[type="email"], .anspress input[type="password"], .anspress input[type="url"], .anspress textarea, .anspress select {
	border: 1px solid #e5e5e5 !important;
	border-radius: 6px !important;
	padding: 8px 12px;
}
.anspress textarea:focus, .anspress input:focus { border-color: var(--primary) !important; outline: none; }

/* 统一圆角 */
.anspress .ap-questions-item, .anspress .ap-answer-single, .anspress .ap-badge, .anspress .ap-card { border-radius: 6px; }

/* ===== 专题 ===== */
.special-list { display: flex; flex-direction: column; gap: 20px; }
.special-card { display: flex; gap: 20px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.special-cover { flex-shrink: 0; width: 300px; min-height: 200px; }
.special-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.special-info { flex: 1; padding: 20px; min-width: 0; }
.special-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 8px; }
.special-title { font-size: 20px; margin: 0; }
.special-title a:hover { color: var(--primary); }
.special-enter { flex-shrink: 0; display: inline-block; padding: 5px 14px; font-size: 13px; color: var(--primary); border: 1px solid var(--primary); border-radius: 4px; }
.special-enter:hover { background: var(--primary); color: #fff; }
.special-desc { color: var(--muted); font-size: 14px; margin: 0 0 8px; }
.special-count { color: var(--primary); font-size: 13px; margin: 0 0 12px; }
.special-recent { list-style: none; margin: 0 0 14px; padding: 0; }
.special-recent li { padding: 4px 0; border-bottom: 1px dashed var(--border); }
.special-recent li:last-child { border-bottom: none; }
.special-recent a { font-size: 14px; }

.special-header { margin-bottom: 20px; }
.special-banner { border-radius: var(--radius); overflow: hidden; margin-bottom: 16px; }
.special-banner img { width: 100%; display: block; }
.special-name { font-size: 24px; margin: 0 0 8px; }
.special-header .special-desc { color: var(--muted); font-size: 14px; margin: 0; }

.special-posts { display: flex; flex-direction: column; }
.special-item { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); }
.special-item-thumb { overflow: hidden; background: #eef0f3; }
.special-item-thumb img { width: 100%; height: 100%; object-fit: cover; }

.special-item-list { display: flex; gap: 16px; padding: 16px; margin-bottom: 16px; }
.special-item-list .special-item-thumb { flex-shrink: 0; width: 220px; height: 146px; border-radius: 6px; }
.special-item-body { flex: 1; min-width: 0; }
.special-item-title { font-size: 17px; margin: 8px 0 6px; }
.special-item-title a:hover { color: var(--primary); }
.special-item-excerpt { color: var(--muted); font-size: 14px; margin: 0 0 10px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.special-posts.special-template-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.special-item-grid { overflow: hidden; }
.special-item-grid .special-item-thumb { display: block; aspect-ratio: 16/10; }
.special-item-grid .special-item-body { padding: 14px; }
.special-item-grid .special-item-title { font-size: 15px; margin: 0 0 8px; line-height: 1.4; }

.special-posts.special-template-4 { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 6px 20px; }
.special-item-compact { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px dashed var(--border); }
.special-item-compact:last-child { border-bottom: none; }
.special-item-compact .special-item-date { color: var(--primary); font-size: 13px; flex-shrink: 0; }
.special-item-compact .special-item-title { font-size: 15px; margin: 0; flex: 1; min-width: 0; }
.special-item-compact .special-item-title a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }

.special-empty { color: var(--muted); text-align: center; padding: 60px 0; }

/* ===== 分享 + 生成海报 ===== */
.share-box { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 12px 0; }
.share-label { color: var(--muted); font-size: 13px; }
.share-btn {
	display: inline-block; padding: 4px 12px; font-size: 13px; border: 1px solid var(--border);
	border-radius: 4px; color: var(--text); background: var(--card); cursor: pointer; line-height: 1.6;
}
.share-btn:hover { color: var(--primary); border-color: var(--primary); }
.share-weibo:hover { color: #e6162d; border-color: #e6162d; }
.share-qq:hover { color: #12b7f5; border-color: #12b7f5; }
.share-qzone:hover { color: #ffce00; border-color: #ffce00; }
.share-wechat { position: relative; }
.share-wechat:hover { color: #07c160; border-color: #07c160; }
.share-wechat img { display: none; position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); width: 120px; height: 120px; border: 1px solid var(--border); border-radius: 6px; background: #fff; z-index: 10; }
.share-wechat:hover img { display: block; }

.poster-btn {
	display: inline-block; padding: 6px 16px; font-size: 13px; color: var(--primary);
	border: 1px solid var(--primary); border-radius: 4px; background: transparent; cursor: pointer; margin-top: 8px;
}
.poster-btn:hover { background: var(--primary); color: #fff; }

.poster-modal { display: none; position: fixed; inset: 0; background: rgba(0, 0, 0, .6); z-index: 9999; align-items: center; justify-content: center; }
.poster-modal.open { display: flex; }
.poster-modal-inner { position: relative; background: #fff; padding: 16px; border-radius: 8px; max-width: 90vw; }
.poster-modal img { display: block; max-width: 80vw; max-height: 78vh; }
.poster-modal-close { position: absolute; top: -12px; right: -12px; width: 30px; height: 30px; border-radius: 50%; background: #fff; border: 1px solid var(--border); cursor: pointer; line-height: 28px; text-align: center; font-size: 18px; }
.poster-modal-tip { text-align: center; color: var(--muted); font-size: 12px; margin: 8px 0 0; }
