/*
Theme Name: 沈航幻想乡
Theme URI:
Author: 沈航幻想乡
Author URI:
Description: 轻量、无图片角色的东方 Project 同人风格主题。红白与阴阳玉配色，CSS 绘制的简洁装饰，不加载外部字体、JavaScript 或角色素材，适合社团博客与社团物品/经费页面。
Version: 1.9.6
Requires at least: 5.8
Tested up to: 6.7
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: shenhang-gensokyo
Tags: blog, one-column, two-columns, right-sidebar, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, block-styles, wide-blocks
*/

/* ---------------------------------------------------------
 * 基础
 * ------------------------------------------------------ */
:root {
	--shgx-red: #a51c1c;
	--shgx-red-dark: #671010;
	--shgx-red-deep: #4a0c0c;
	--shgx-gold: #c3923f;
	--shgx-gold-soft: #f4e6c8;
	--shgx-ink: #2b2523;
	--shgx-muted: #756a63;
	--shgx-paper: #fbf7f2;
	--shgx-card: #fffdf9;
	--shgx-line: #e8ddd2;
	--shgx-pattern: rgba(165, 28, 28, 0.055);
	--shgx-white: #fff;
	--shgx-radius: 18px;
	--shgx-shadow: 0 18px 40px -30px rgba(43, 37, 35, 0.45);
	--shgx-font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", sans-serif;
	--shgx-font-serif: Georgia, "Noto Serif SC", "Source Han Serif SC", "Songti SC", SimSun, serif;
}

/* 幻想乡用户中心里的角色主题会同步到这里。 */
body.shgx-theme-marisa {
	--shgx-red: #a16207;
	--shgx-red-dark: #1c1917;
	--shgx-red-deep: #1c1917;
	--shgx-gold: #f59e0b;
	--shgx-gold-soft: #fef3c7;
	--shgx-ink: #292524;
	--shgx-muted: #78716c;
	--shgx-paper: #fffdf2;
	--shgx-card: #fffef8;
	--shgx-line: #fde68a;
	--shgx-pattern: rgba(161, 98, 7, 0.06);
}

body.shgx-theme-sakuya {
	--shgx-red: #1d4ed8;
	--shgx-red-dark: #1e3a8a;
	--shgx-red-deep: #1e3a8a;
	--shgx-gold: #64748b;
	--shgx-gold-soft: #dbeafe;
	--shgx-ink: #1e293b;
	--shgx-muted: #64748b;
	--shgx-paper: #f8fbff;
	--shgx-card: #ffffff;
	--shgx-line: #bfdbfe;
	--shgx-pattern: rgba(29, 78, 216, 0.06);
}

body.shgx-theme-youmu {
	--shgx-red: #15803d;
	--shgx-red-dark: #14532d;
	--shgx-red-deep: #14532d;
	--shgx-gold: #db2777;
	--shgx-gold-soft: #fce7f3;
	--shgx-ink: #1f2937;
	--shgx-muted: #6b7280;
	--shgx-paper: #f7fdf9;
	--shgx-card: #ffffff;
	--shgx-line: #bbf7d0;
	--shgx-pattern: rgba(21, 128, 61, 0.06);
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background-color: var(--shgx-paper);
	background-image: radial-gradient(var(--shgx-pattern) 1px, transparent 1px);
	background-size: 22px 22px;
	color: var(--shgx-ink);
	font-family: var(--shgx-font-sans);
	font-size: 16px;
	line-height: 1.75;
	-webkit-font-smoothing: antialiased;
}

a {
	color: var(--shgx-red);
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

a:hover {
	color: var(--shgx-red-dark);
}

img {
	max-width: 100%;
	height: auto;
	vertical-align: middle;
}

button,
input,
select,
textarea {
	font: inherit;
}

:focus-visible {
	outline: 2px solid var(--shgx-gold);
	outline-offset: 3px;
}

.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 {
	top: 8px;
	left: 8px;
	z-index: 100000;
	display: block;
	width: auto;
	height: auto;
	padding: 10px 14px;
	clip: auto !important;
	background: var(--shgx-white);
	color: var(--shgx-red-dark);
	font-size: 0.86rem;
	font-weight: 700;
	text-decoration: none;
}

.skip-link {
	position: absolute;
	top: -80px;
	left: 12px;
	z-index: 100001;
	padding: 10px 14px;
	background: var(--shgx-white);
	color: var(--shgx-red-dark);
	font-size: 0.86rem;
	font-weight: 700;
	text-decoration: none;
}

.skip-link:focus {
	top: 10px;
}

/* ---------------------------------------------------------
 * 头部
 * ------------------------------------------------------ */
.site-header {
	position: relative;
	overflow: hidden;
	background:
		radial-gradient(circle at 82% 12%, rgba(255, 255, 255, 0.14), transparent 30%),
		linear-gradient(135deg, var(--shgx-red-deep), var(--shgx-red) 58%, var(--shgx-red-dark));
	color: var(--shgx-white);
}

.site-header::before {
	content: "☯";
	position: absolute;
	top: 50%;
	right: 5%;
	transform: translateY(-50%) rotate(-10deg);
	color: rgba(255, 255, 255, 0.07);
	font-size: 190px;
	line-height: 1;
	pointer-events: none;
}

.site-header::after {
	content: "";
	position: absolute;
	inset: 0;
	background-image: radial-gradient(rgba(255, 255, 255, 0.22) 1px, transparent 1.5px);
	background-size: 24px 24px;
	opacity: 0.16;
	pointer-events: none;
}

.site-header__inner {
	position: relative;
	z-index: 1;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 20px 36px;
	max-width: 1200px;
	margin: 0 auto;
	padding: 22px 24px;
}

.site-header__right {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px;
	margin-left: auto;
}

.site-account {
	display: flex;
	flex: 0 0 auto;
	align-items: center;
}

.site-account__login {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 34px;
	padding: 5px 14px;
	border: 1px solid rgba(255, 255, 255, 0.42);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.08);
	color: var(--shgx-white);
	font-size: 0.8rem;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
	transition: background-color 0.16s ease, border-color 0.16s ease;
}

.site-account__login:hover,
.site-account__login:focus {
	border-color: rgba(255, 255, 255, 0.7);
	background: rgba(255, 255, 255, 0.16);
	color: var(--shgx-white);
	text-decoration: none;
}

.site-account__avatar {
	display: block;
	width: 42px;
	height: 42px;
	padding: 2px;
	border: 1px solid rgba(255, 255, 255, 0.52);
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.12);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
	transition: border-color 0.16s ease, transform 0.16s ease;
}

.site-account__avatar:hover,
.site-account__avatar:focus {
	border-color: rgba(255, 255, 255, 0.9);
	transform: translateY(-1px);
}

.site-account__avatar img {
	display: block;
	width: 100%;
	height: 100%;
	border-radius: 50%;
	object-fit: cover;
}

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

.custom-logo-link {
	display: block;
	flex: 0 0 auto;
}

.custom-logo {
	display: block;
	width: auto;
	max-width: 72px;
	max-height: 56px;
	border-radius: 12px;
}

.site-brand__seal {
	display: flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	border: 1px solid rgba(255, 255, 255, 0.45);
	border-radius: 14px;
	background: rgba(255, 255, 255, 0.1);
	box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.08);
	font-family: "Segoe UI Symbol", var(--shgx-font-serif);
	font-size: 1.9rem;
	line-height: 1;
}

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

.site-kicker {
	margin: 0;
	color: rgba(255, 255, 255, 0.62);
	font-size: 0.64rem;
	font-weight: 700;
	letter-spacing: 0.2em;
	line-height: 1.4;
	text-transform: uppercase;
}

.site-title {
	margin: 0;
	font-family: var(--shgx-font-serif);
	font-size: clamp(1.35rem, 2.4vw, 1.8rem);
	font-weight: 700;
	line-height: 1.25;
}

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

.site-title a:hover {
	color: var(--shgx-gold-soft);
}

.site-description {
	margin: 2px 0 0;
	color: rgba(255, 255, 255, 0.72);
	font-size: 0.78rem;
	line-height: 1.55;
}

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

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

.main-navigation .menu > li {
	position: relative;
}

.main-navigation .menu a {
	display: inline-block;
	padding: 7px 10px;
	border-radius: 999px;
	color: rgba(255, 255, 255, 0.82);
	font-size: 0.84rem;
	font-weight: 600;
	text-decoration: none;
	transition: background-color 0.16s ease, color 0.16s ease;
}

.main-navigation .menu a:hover,
.main-navigation .menu .current-menu-item > a,
.main-navigation .menu .current_page_item > a {
	background: rgba(255, 255, 255, 0.13);
	color: var(--shgx-white);
}

.main-navigation .sub-menu {
	position: absolute;
	top: 100%;
	left: 0;
	z-index: 30;
	display: none;
	min-width: 190px;
	margin: 6px 0 0;
	padding: 6px;
	border: 1px solid var(--shgx-line);
	border-radius: 12px;
	background: var(--shgx-card);
	box-shadow: var(--shgx-shadow);
	list-style: none;
}

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

.main-navigation .sub-menu a {
	display: block;
	padding: 8px 10px;
	border-radius: 8px;
	color: var(--shgx-ink);
}

.main-navigation .sub-menu a:hover {
	background: #f6eee5;
	color: var(--shgx-red-dark);
}

/* ---------------------------------------------------------
 * 主内容
 * ------------------------------------------------------ */
.site-main {
	max-width: 1200px;
	margin: 0 auto;
	padding: 30px 24px 58px;
}

.content-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 300px;
	gap: 32px;
	align-items: start;
}

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

.shgx-full-width .site-main {
	max-width: 1120px;
}

/* ---------------------------------------------------------
 * 首页英雄区
 * ------------------------------------------------------ */
.home-hero {
	position: relative;
	overflow: hidden;
	margin: 0 0 30px;
	padding: clamp(28px, 5vw, 52px);
	border-radius: 26px;
	background:
		radial-gradient(circle at 85% 15%, rgba(255, 255, 255, 0.16), transparent 30%),
		linear-gradient(135deg, var(--shgx-red-deep), var(--shgx-red) 62%, var(--shgx-red-dark));
	box-shadow: 0 24px 50px -34px rgba(74, 12, 12, 0.7);
	color: var(--shgx-white);
	isolation: isolate;
}

.home-hero::before {
	content: "☯";
	position: absolute;
	top: 50%;
	right: 4%;
	z-index: -1;
	transform: translateY(-50%) rotate(-12deg);
	color: rgba(255, 255, 255, 0.08);
	font-size: clamp(140px, 22vw, 260px);
	line-height: 1;
	pointer-events: none;
}

.home-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background-image:
		radial-gradient(rgba(255, 255, 255, 0.28) 1px, transparent 1.5px),
		linear-gradient(120deg, transparent 60%, rgba(255, 255, 255, 0.06));
	background-size: 23px 23px, auto;
	opacity: 0.16;
	pointer-events: none;
}

.home-hero__eyebrow {
	margin: 0 0 8px;
	color: rgba(255, 255, 255, 0.62);
	font-size: 0.66rem;
	font-weight: 700;
	letter-spacing: 0.22em;
	text-transform: uppercase;
}

.home-hero h1 {
	max-width: 760px;
	margin: 0;
	font-family: var(--shgx-font-serif);
	font-size: clamp(2rem, 4.4vw, 3.5rem);
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: 0.01em;
}

.home-hero__description {
	max-width: 620px;
	margin: 12px 0 0;
	color: rgba(255, 255, 255, 0.82);
	font-size: clamp(0.92rem, 1.5vw, 1.02rem);
	line-height: 1.8;
}

.home-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 9px;
	margin-top: 22px;
}

.home-hero__seal {
	position: absolute;
	right: clamp(18px, 5vw, 48px);
	bottom: clamp(18px, 4vw, 38px);
	display: flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	border: 1px solid rgba(255, 255, 255, 0.38);
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.08);
	font-family: "Segoe UI Symbol", var(--shgx-font-serif);
	font-size: 1.6rem;
	line-height: 1;
	transform: rotate(-6deg);
}

/* 登录会员快捷栏 */
.home-member-bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 9px 22px;
	margin: -8px 0 24px;
	padding: 13px 18px;
	border: 1px solid var(--shgx-line);
	border-radius: 14px;
	background: var(--shgx-card);
	box-shadow: 0 14px 28px -26px rgba(43, 37, 35, 0.5);
	color: var(--shgx-muted);
	font-size: 0.8rem;
}

.home-member-bar__welcome strong {
	color: var(--shgx-red-dark);
}

.home-member-bar__stats {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 14px;
}

.home-member-bar__stats strong {
	color: var(--shgx-ink);
}

.home-member-bar__stats .is-danger strong {
	color: #b91c1c;
}

.home-member-bar__links {
	display: flex;
	flex-wrap: wrap;
	gap: 7px;
	margin-left: auto;
}

/* 待社员审核提示 */
.home-pending {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 12px;
	margin: -8px 0 24px;
	padding: 12px 16px;
	border: 1px solid var(--shgx-gold);
	border-left-width: 4px;
	border-radius: 10px;
	background: var(--shgx-gold-soft);
	color: #7c4a12;
	font-size: 0.84rem;
	line-height: 1.6;
}

.home-pending strong {
	flex: 0 0 auto;
	color: var(--shgx-red-dark);
}

.home-pending p {
	flex: 1 1 320px;
	margin: 0;
}

.home-pending a {
	flex: 0 0 auto;
	color: var(--shgx-red-dark);
	font-weight: 700;
}

/* 首页活动 */
.home-events {
	margin: 0 0 34px;
}

.home-section-head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 14px;
}

.home-section-head__eyebrow {
	display: block;
	color: var(--shgx-gold);
	font-size: 0.66rem;
	font-weight: 700;
	letter-spacing: 0.18em;
}

.home-section-head h2 {
	margin: 2px 0 0;
	font-family: var(--shgx-font-serif);
	font-size: 1.35rem;
	line-height: 1.35;
}

.home-section-head > a {
	color: var(--shgx-red);
	font-size: 0.8rem;
	font-weight: 700;
}

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

.home-event-card {
	display: flex;
	flex-direction: column;
	min-width: 0;
	padding: 16px;
	border: 1px solid var(--shgx-line);
	border-radius: 14px;
	background: var(--shgx-card);
	box-shadow: var(--shgx-shadow);
	color: var(--shgx-ink);
	text-decoration: none;
	transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.home-event-card:hover,
.home-event-card:focus {
	transform: translateY(-3px);
	box-shadow: 0 20px 34px -26px rgba(43, 37, 35, 0.55);
	color: var(--shgx-ink);
}

.home-event-card__top {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 6px;
	margin-bottom: 10px;
}

.home-event-card__badge {
	padding: 2px 8px;
	border-radius: 999px;
	background: var(--shgx-gold-soft);
	color: var(--shgx-red-dark);
	font-size: 0.66rem;
	font-weight: 700;
}

.home-event-card.is-internal .home-event-card__badge {
	background: var(--shgx-red-deep);
	color: #fff;
}

.home-event-card__top time {
	color: var(--shgx-muted);
	font-size: 0.7rem;
}

.home-event-card h3 {
	margin: 0 0 6px;
	font-family: var(--shgx-font-serif);
	font-size: 1.02rem;
	line-height: 1.45;
}

.home-event-card__location {
	margin: 0 0 10px;
	color: var(--shgx-muted);
	font-size: 0.78rem;
}

.home-event-card__bottom {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 6px;
	margin-top: auto;
	padding-top: 10px;
	border-top: 1px dashed var(--shgx-line);
	color: var(--shgx-muted);
	font-size: 0.72rem;
}

.home-event-card__bottom span:last-child {
	color: var(--shgx-red);
	font-weight: 700;
}

/* 首页待填写问卷 */
.home-surveys {
	margin: 0 0 28px;
}

/* 近期活动与待填写问卷左右排布 */
.home-dual-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 22px;
	margin-bottom: 28px;
}

.home-dual-grid > .home-events,
.home-dual-grid > .home-surveys {
	min-width: 0;
	margin: 0;
}

.home-dual-grid .home-event-grid,
.home-dual-grid .home-survey-grid {
	grid-template-columns: 1fr;
}

.home-dual-grid > :only-child {
	grid-column: 1 / -1;
}

.home-dual-grid > :only-child .home-event-grid,
.home-dual-grid > :only-child .home-survey-grid {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* 首页摊位申请 */
.home-booths {
	margin: 0 0 28px;
}

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

.home-booth-card {
	display: flex;
	flex-direction: column;
	min-width: 0;
	padding: 16px;
	border: 1px solid var(--shgx-line);
	border-radius: 16px;
	background: var(--shgx-card);
}

.home-booth-card h3 {
	margin: 0 0 6px;
	font-family: var(--shgx-font-serif);
	font-size: 1.02rem;
}

.home-booth-card .shgx-button {
	align-self: flex-start;
	margin-top: auto;
}

@media (max-width: 980px) {
	.home-booth-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 700px) {
	.home-booth-grid {
		grid-template-columns: 1fr;
	}
}

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

.home-survey-card {
	display: flex;
	flex-direction: column;
	min-width: 0;
	padding: 16px;
	border: 1px solid var(--shgx-line);
	border-radius: 16px;
	background: var(--shgx-card);
	text-decoration: none;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.home-survey-card:hover,
.home-survey-card:focus {
	transform: translateY(-3px);
	box-shadow: 0 20px 34px -26px rgba(43, 37, 35, 0.55);
	color: var(--shgx-ink);
}

.home-survey-card__top {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 6px;
	margin-bottom: 8px;
	color: var(--shgx-muted);
	font-size: 0.7rem;
}

.home-survey-card__badge {
	padding: 2px 8px;
	border-radius: 999px;
	background: var(--shgx-gold-soft);
	color: var(--shgx-red-dark);
	font-size: 0.66rem;
	font-weight: 700;
}

.home-survey-card__badge.is-completed {
	background: #e7f6ec;
	color: #17663a;
}

.home-survey-card h3 {
	margin: 0 0 6px;
	font-family: var(--shgx-font-serif);
	font-size: 1.02rem;
	line-height: 1.45;
}

.home-survey-card__meta {
	margin: 0 0 10px;
	color: var(--shgx-muted);
	font-size: 0.76rem;
}

.home-survey-card__action {
	margin-top: auto;
	color: var(--shgx-red);
	font-size: 0.78rem;
	font-weight: 700;
}

/* ---------------------------------------------------------
 * 按钮
 * ------------------------------------------------------ */
.shgx-button,
.wp-block-button__link,
button,
input[type="submit"],
input[type="button"] {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 36px;
	padding: 7px 16px;
	border: 1px solid var(--shgx-red);
	border-radius: 999px;
	background: var(--shgx-red);
	color: var(--shgx-white);
	font-size: 0.84rem;
	font-weight: 700;
	line-height: 1.3;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}

.shgx-button:hover,
.wp-block-button__link:hover,
button:hover,
input[type="submit"]:hover,
input[type="button"]:hover {
	background: var(--shgx-red-dark);
	border-color: var(--shgx-red-dark);
	color: var(--shgx-white);
	text-decoration: none;
	transform: translateY(-1px);
}

.shgx-button--ghost {
	border-color: rgba(255, 255, 255, 0.45);
	background: rgba(255, 255, 255, 0.08);
	color: var(--shgx-white);
}

.shgx-button--ghost:hover {
	border-color: rgba(255, 255, 255, 0.7);
	background: rgba(255, 255, 255, 0.16);
	color: var(--shgx-white);
}

.shgx-button--small {
	min-height: 30px;
	padding: 4px 12px;
	font-size: 0.76rem;
}

/* 区块按钮 / 搜索按钮：覆盖 theme.json 的默认深色按钮。 */
body .wp-element-button,
body .wp-block-search__button {
	border: 1px solid var(--shgx-red);
	border-radius: 999px;
	background: var(--shgx-red);
	color: var(--shgx-white);
	-webkit-text-fill-color: var(--shgx-white);
	font-size: 0.84rem;
	font-weight: 700;
	line-height: 1.3;
	text-decoration: none;
}

body .wp-element-button:hover,
body .wp-element-button:focus,
body .wp-block-search__button:hover,
body .wp-block-search__button:focus {
	border-color: var(--shgx-red-dark);
	background: var(--shgx-red-dark);
	color: var(--shgx-white);
	-webkit-text-fill-color: var(--shgx-white);
}

/* ---------------------------------------------------------
 * 标题与文章卡片
 * ------------------------------------------------------ */
.section-heading {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0 0 16px;
	font-family: var(--shgx-font-serif);
	font-size: clamp(1.25rem, 2vw, 1.55rem);
	line-height: 1.3;
}

.section-heading::before {
	content: "";
	width: 6px;
	height: 1.1em;
	border-radius: 99px;
	background: var(--shgx-gold);
}

.page-header {
	margin: 0 0 22px;
	padding: 0 0 14px;
	border-bottom: 1px solid var(--shgx-line);
}

.page-header .page-title {
	margin: 0;
	font-family: var(--shgx-font-serif);
	font-size: clamp(1.6rem, 3vw, 2.2rem);
	line-height: 1.25;
}

.page-header .archive-description {
	margin: 8px 0 0;
	color: var(--shgx-muted);
	font-size: 0.88rem;
}

.post-list {
	display: grid;
	gap: 18px;
}

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

.post-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 22px 46px -30px rgba(43, 37, 35, 0.5);
}

.post-card__thumb {
	flex: 0 0 240px;
	display: block;
	overflow: hidden;
	background: #f2e8de;
}

.post-card__thumb img {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 170px;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.post-card:hover .post-card__thumb img {
	transform: scale(1.03);
}

.post-card__body {
	flex: 1 1 auto;
	min-width: 0;
	padding: 20px 22px;
}

.entry-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 12px;
	margin-bottom: 6px;
	color: var(--shgx-muted);
	font-size: 0.74rem;
}

.entry-meta a {
	color: var(--shgx-muted);
	text-decoration: none;
}

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

.entry-title {
	margin: 0 0 8px;
	font-family: var(--shgx-font-serif);
	font-size: clamp(1.15rem, 1.8vw, 1.4rem);
	line-height: 1.35;
	word-break: break-word;
}

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

.entry-title a:hover {
	color: var(--shgx-red);
}

.entry-summary {
	color: #5e544e;
	font-size: 0.88rem;
	line-height: 1.8;
}

.entry-summary p {
	margin: 0 0 4px;
}

.read-more {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	margin-top: 10px;
	color: var(--shgx-red);
	font-size: 0.8rem;
	font-weight: 700;
	text-decoration: none;
}

.read-more::after {
	content: "→";
	font-size: 0.9em;
}

.read-more:hover {
	text-decoration: underline;
}

/* 无特色图时 */
.post-card--no-thumb .post-card__body {
	padding-left: 24px;
}

/* ---------------------------------------------------------
 * 单篇文章 / 页面
 * ------------------------------------------------------ */
.single-article,
.page-article {
	padding: clamp(22px, 4vw, 38px);
	border: 1px solid var(--shgx-line);
	border-radius: 22px;
	background: var(--shgx-card);
	box-shadow: var(--shgx-shadow);
}

.single-article .entry-header,
.page-article .entry-header {
	margin-bottom: 18px;
	padding-bottom: 14px;
	border-bottom: 1px solid var(--shgx-line);
}

.single-article .entry-title,
.page-article .entry-title {
	margin: 0 0 8px;
	font-family: var(--shgx-font-serif);
	font-size: clamp(1.7rem, 3.4vw, 2.4rem);
	line-height: 1.25;
}

.entry-featured {
	overflow: hidden;
	margin: 0 0 22px;
	border-radius: 14px;
}

.entry-featured img {
	display: block;
	width: 100%;
}

.entry-content {
	overflow-wrap: break-word;
}

.entry-content > * {
	margin-top: 0;
	margin-bottom: 1.15em;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
	margin-top: 1.6em;
	font-family: var(--shgx-font-serif);
	line-height: 1.35;
}

.entry-content h2 {
	padding-bottom: 0.3em;
	border-bottom: 1px solid var(--shgx-line);
	font-size: 1.45rem;
}

.entry-content h3 {
	font-size: 1.2rem;
}

.entry-content a {
	text-decoration: underline;
}

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

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

.entry-content blockquote {
	margin: 1.4em 0;
	padding: 14px 18px;
	border-left: 4px solid var(--shgx-gold);
	border-radius: 0 12px 12px 0;
	background: #faf1e4;
	color: #5d4b39;
}

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

.entry-content code {
	padding: 2px 5px;
	border-radius: 4px;
	background: #f4ebe1;
	color: #7b3420;
	font-size: 0.9em;
}

.entry-content pre {
	overflow-x: auto;
	padding: 14px 16px;
	border: 1px solid var(--shgx-line);
	border-radius: 10px;
	background: #2b2523;
	color: #f8f1e8;
	font-size: 0.84rem;
	line-height: 1.6;
}

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

.entry-content table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.9rem;
}

.entry-content th,
.entry-content td {
	padding: 8px 10px;
	border: 1px solid var(--shgx-line);
	text-align: left;
}

.entry-content th {
	background: #f8efe4;
}

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

.entry-content .wp-caption {
	max-width: 100%;
}

.entry-content .wp-caption-text {
	color: var(--shgx-muted);
	font-size: 0.78rem;
	text-align: center;
}

.entry-content .alignwide {
	max-width: 1120px;
	margin-left: auto;
	margin-right: auto;
}

.entry-content .alignfull {
	max-width: none;
}

.entry-footer {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 18px;
	margin-top: 22px;
	padding-top: 14px;
	border-top: 1px solid var(--shgx-line);
	color: var(--shgx-muted);
	font-size: 0.78rem;
}

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

/* 文章导航 */
.post-navigation {
	margin-top: 20px;
}

.post-navigation .nav-links {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
}

.post-navigation a {
	display: block;
	padding: 12px 14px;
	border: 1px solid var(--shgx-line);
	border-radius: 12px;
	background: var(--shgx-card);
	color: var(--shgx-ink);
	text-decoration: none;
}

.post-navigation a:hover {
	border-color: var(--shgx-gold);
	color: var(--shgx-red);
}

.post-navigation .nav-subtitle {
	display: block;
	color: var(--shgx-muted);
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.08em;
}

.post-navigation .nav-title {
	display: block;
	margin-top: 3px;
	font-size: 0.84rem;
	font-weight: 600;
	line-height: 1.45;
}

/* ---------------------------------------------------------
 * 分页
 * ------------------------------------------------------ */
.pagination {
	margin-top: 24px;
}

.pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	justify-content: center;
}

.pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 34px;
	height: 34px;
	padding: 0 10px;
	border: 1px solid var(--shgx-line);
	border-radius: 9px;
	background: var(--shgx-card);
	color: var(--shgx-ink);
	font-size: 0.8rem;
	text-decoration: none;
}

.pagination .page-numbers.current,
.pagination .page-numbers:hover {
	border-color: var(--shgx-red);
	background: var(--shgx-red);
	color: var(--shgx-white);
}

/* ---------------------------------------------------------
 * 侧边栏
 * ------------------------------------------------------ */
.widget-area {
	min-width: 0;
}

.widget {
	margin-bottom: 16px;
	padding: 18px;
	border: 1px solid var(--shgx-line);
	border-radius: 16px;
	background: var(--shgx-card);
	box-shadow: 0 14px 28px -26px rgba(43, 37, 35, 0.5);
}

.widget:last-child {
	margin-bottom: 0;
}

.widget-title,
.widget .wp-block-heading {
	display: flex;
	align-items: center;
	gap: 9px;
	margin: 0 0 10px;
	font-family: var(--shgx-font-serif);
	font-size: 1rem;
	line-height: 1.35;
}

.widget-title::before,
.widget .wp-block-heading::before {
	content: "";
	width: 5px;
	height: 1em;
	border-radius: 99px;
	background: var(--shgx-gold);
}

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

.widget li {
	padding: 6px 0;
	border-bottom: 1px dashed #eee3d8;
	font-size: 0.84rem;
}

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

.widget a {
	text-decoration: none;
}

.widget a:hover {
	text-decoration: underline;
}

.widget select {
	width: 100%;
	padding: 7px 9px;
	border: 1px solid var(--shgx-line);
	border-radius: 8px;
	background: var(--shgx-white);
}

/* 搜索 */
.search-form {
	display: flex;
	gap: 6px;
}

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

.search-form .search-field {
	width: 100%;
	min-height: 36px;
	padding: 6px 10px;
	border: 1px solid var(--shgx-line);
	border-radius: 8px;
	background: var(--shgx-white);
	color: var(--shgx-ink);
}

.search-form .search-submit {
	flex: 0 0 auto;
	min-height: 36px;
	padding: 6px 13px;
}

/* ---------------------------------------------------------
 * 评论
 * ------------------------------------------------------ */
.comments-area {
	margin-top: 22px;
	padding: clamp(18px, 3vw, 28px);
	border: 1px solid var(--shgx-line);
	border-radius: 18px;
	background: var(--shgx-card);
}

.comments-title,
.comment-reply-title {
	margin: 0 0 14px;
	font-family: var(--shgx-font-serif);
	font-size: 1.2rem;
}

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

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

.comment-body {
	margin: 0 0 16px;
	padding: 14px;
	border: 1px solid var(--shgx-line);
	border-radius: 12px;
	background: #fffcf7;
}

.comment-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-bottom: 6px;
	color: var(--shgx-muted);
	font-size: 0.76rem;
}

.comment-author {
	display: flex;
	align-items: center;
	gap: 7px;
	color: var(--shgx-ink);
	font-weight: 700;
}

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

.comment-metadata a {
	color: var(--shgx-muted);
	text-decoration: none;
}

.comment-content {
	font-size: 0.88rem;
}

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

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

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

.comment-form p {
	margin: 0;
}

.comment-form label {
	display: block;
	margin-bottom: 3px;
	color: var(--shgx-muted);
	font-size: 0.76rem;
	font-weight: 700;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
	width: 100%;
	padding: 8px 10px;
	border: 1px solid var(--shgx-line);
	border-radius: 8px;
	background: var(--shgx-white);
	color: var(--shgx-ink);
}

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

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

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

/* ---------------------------------------------------------
 * 404 / 空内容
 * ------------------------------------------------------ */
.empty-state {
	padding: clamp(32px, 6vw, 60px) 20px;
	border: 1px dashed var(--shgx-line);
	border-radius: 20px;
	background: var(--shgx-card);
	text-align: center;
}

.empty-state__mark {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 60px;
	height: 60px;
	margin-bottom: 12px;
	border-radius: 50%;
	background: #f7ecdf;
	color: var(--shgx-red);
	font-size: 1.6rem;
}

.empty-state h1,
.empty-state h2 {
	margin: 0 0 8px;
	font-family: var(--shgx-font-serif);
	font-size: clamp(1.45rem, 3vw, 2rem);
}

.empty-state p {
	max-width: 520px;
	margin: 0 auto 16px;
	color: var(--shgx-muted);
	font-size: 0.88rem;
}

.empty-state .search-form {
	max-width: 380px;
	margin: 0 auto;
}

/* ---------------------------------------------------------
 * 页脚
 * ------------------------------------------------------ */
.site-footer {
	background: var(--shgx-red-deep);
	color: rgba(255, 255, 255, 0.74);
}

.site-footer a {
	color: rgba(255, 255, 255, 0.82);
	text-decoration: none;
}

.site-footer a:hover {
	color: var(--shgx-gold-soft);
}

.site-footer__inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 30px 24px 22px;
}

.site-footer__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
	gap: 24px;
	align-items: start;
}

.site-footer__brand {
	display: flex;
	align-items: flex-start;
	gap: 12px;
}

.site-footer__seal {
	display: flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border: 1px solid rgba(255, 255, 255, 0.3);
	border-radius: 10px;
	font-family: "Segoe UI Symbol", var(--shgx-font-serif);
	font-size: 1.3rem;
}

.site-footer__title {
	margin: 0;
	color: var(--shgx-white);
	font-family: var(--shgx-font-serif);
	font-size: 1.05rem;
}

.site-footer__description {
	margin: 3px 0 0;
	font-size: 0.78rem;
	line-height: 1.7;
}

.site-footer__menu {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 14px;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 0.78rem;
}

.site-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 8px 20px;
	margin-top: 22px;
	padding-top: 14px;
	border-top: 1px solid rgba(255, 255, 255, 0.14);
	font-size: 0.72rem;
}

.site-footer__widgets {
	margin-bottom: 18px;
}

.site-footer__widgets .widget {
	border-color: rgba(255, 255, 255, 0.14);
	background: rgba(255, 255, 255, 0.06);
	box-shadow: none;
}

.site-footer__widgets .widget,
.site-footer__widgets .widget a {
	color: rgba(255, 255, 255, 0.78);
}

.site-footer__widgets .widget-title::before {
	background: var(--shgx-gold);
}

/* ---------------------------------------------------------
 * 响应式
 * ------------------------------------------------------ */
@media (max-width: 980px) {
	.content-grid {
		grid-template-columns: 1fr;
	}

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

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

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

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

	.widget {
		margin-bottom: 0;
	}

	.site-footer__grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 700px) {
	.home-event-grid {
		grid-template-columns: 1fr;
	}

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

	.site-header__inner {
		align-items: flex-start;
		padding: 18px 18px;
	}

	.site-header__right {
		width: 100%;
		justify-content: space-between;
	}

	.main-navigation {
		flex: 1 1 auto;
	}

	.site-account {
		margin-left: auto;
	}

	.site-account__avatar {
		width: 38px;
		height: 38px;
	}

	.main-navigation .menu {
		gap: 2px;
	}

	.main-navigation .menu a {
		padding: 6px 8px;
		font-size: 0.8rem;
	}

	.site-main {
		padding: 20px 16px 44px;
	}

	.home-hero {
		padding: 26px 20px 34px;
		border-radius: 20px;
	}

	.home-hero__seal {
		display: none;
	}

	.post-card {
		flex-direction: column;
	}

	.post-card__thumb {
		flex-basis: auto;
		aspect-ratio: 16 / 9;
	}

	.post-card__thumb img {
		min-height: 0;
	}

	.post-card__body {
		padding: 16px 18px;
	}

	.home-member-bar {
		align-items: flex-start;
		margin-top: -6px;
	}

	.home-member-bar__links {
		width: 100%;
		margin-left: 0;
	}

	.widget-area {
		grid-template-columns: 1fr;
	}

	.post-navigation .nav-links {
		grid-template-columns: 1fr;
	}

	.entry-content .alignwide,
	.entry-content .alignfull {
		margin-left: 0;
		margin-right: 0;
	}

	.comments-area {
		padding: 16px;
	}

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

	.site-footer__inner {
		padding: 24px 18px 18px;
	}
}

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

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