/*
Theme Name: 菏泽汉韵环保设备 (Hanyun Heritage Environmental)
Theme URI: https://example.com/hanyun-chinese/
Author: 沈砚秋
Author URI: https://example.com/
Description: 新中式国风企业主题,为菏泽汉韵环保设备有限公司(虚构演示公司)而作。月白为底,墨线为骨,青花为色,朱砂唯印;标题取宋体,区块作卷轴,分隔用细墨线与中点。工笔与留白并重,以「器 / 艺 / 迹 / 闻 / 晤」五字立目,治废气如作画,先立气韵。
Version: 1.0.0
Requires at least: 5.9
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: hanyun-chinese
Tags: custom-logo, custom-menu, featured-images, translation-ready, two-columns
*/

/* --------------------------------------------------
   一 · 底色与字法(自定义属性)
-------------------------------------------------- */
:root {
	--paper: #f4f7f0;          /* 月白(冷调) */
	--paper-raised: #fbfdf8;   /* 裱纸(卡片) */
	--paper-deep: #e9efe5;     /* 月白沉(页脚/深区) */
	--ink: #2b2b2b;            /* 墨黑 */
	--ink-soft: #565b52;       /* 淡墨(偏冷) */
	--ink-faint: rgba(43, 43, 43, 0.16);  /* 墨痕 */
	--cinnabar: #b02418;       /* 朱砂 · 印章专用,不入版面他处 */
	--qinghua: #2c5f8a;        /* 青花 · 主导强调色 */
	--qinghua-deep: #1e4568;   /* 青花沉 */
	--qinghua-mist: rgba(44, 95, 138, 0.12);

	--font-song: "Songti SC", "STSongti-SC-Regular", "STSong", "SimSun", "NSimSun", "Noto Serif CJK SC", "Source Han Serif SC", "Source Han Serif CN", serif;
	--font-kai: "Kaiti SC", "STKaiti", "KaiTi", "BiauKai", "Noto Serif CJK SC", serif;

	--w-page: 1120px;
	--w-text: 46em;
	--shadow-card: 0 2px 0 rgba(43, 43, 43, 0.06), 0 14px 28px -18px rgba(43, 43, 43, 0.28);
	--huiwen: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath d='M4,21V3H21V17H9V9H16V13' fill='none' stroke='%232c5f8a' stroke-width='1.4' opacity='0.55'/%3E%3C/svg%3E");
}

/* --------------------------------------------------
   二 · 通则(重置与基骨)
-------------------------------------------------- */
*,
*::before,
*::after {
	box-sizing: border-box;
}

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

@media (prefers-reduced-motion: no-preference) {
	html {
		scroll-behavior: smooth;
	}
}

body {
	margin: 0;
	font-family: var(--font-song);
	font-size: 17px;
	line-height: 1.95;
	color: var(--ink);
	background-color: var(--paper);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cfilter id='p'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='2' seed='7'/%3E%3CfeColorMatrix values='0 0 0 0 0.34 0 0 0 0 0.40 0 0 0 0 0.44 0 0 0 0.035 0'/%3E%3C/filter%3E%3Crect width='260' height='260' filter='url(%23p)'/%3E%3C/svg%3E");
	-webkit-font-smoothing: antialiased;
}

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

svg {
	display: block;
}

a {
	color: var(--qinghua);
	text-decoration: none;
	transition: color 0.2s ease;
}

a:hover,
a:focus {
	color: var(--qinghua-deep);
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-song);
	font-weight: 700;
	line-height: 1.45;
	color: var(--ink);
	margin: 0 0 0.6em;
	letter-spacing: 0.06em;
}

p {
	margin: 0 0 1.1em;
}

ul, ol {
	margin: 0 0 1.1em;
	padding-left: 1.6em;
}

blockquote {
	margin: 1.6em 0;
	padding: 0.4em 0 0.4em 1.4em;
	border-left: 3px solid var(--qinghua);
	font-family: var(--font-kai);
	color: var(--ink-soft);
}

table {
	border-collapse: collapse;
	width: 100%;
}

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

::selection {
	background: var(--qinghua);
	color: var(--paper);
}

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	width: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	word-wrap: normal;
}

.skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 200;
	background: var(--ink);
	color: var(--paper);
	padding: 0.6em 1.2em;
}

.skip-link:focus {
	left: 8px;
	top: 8px;
	color: var(--paper);
}

/* WordPress 常用类 */
.alignleft {
	float: left;
	margin: 0.4em 1.4em 1em 0;
}

.alignright {
	float: right;
	margin: 0.4em 0 1em 1.4em;
}

.aligncenter {
	display: block;
	margin: 1.4em auto;
}

.wp-caption {
	max-width: 100%;
	margin-bottom: 1.4em;
}

.wp-caption-text,
.gallery-caption {
	font-size: 0.85rem;
	color: var(--ink-soft);
	text-align: center;
	padding-top: 0.4em;
}

.sticky,
.bypostauthor {
	display: block;
}

/* --------------------------------------------------
   三 · 常用小件:墨线、卷轴、印章、按钮
-------------------------------------------------- */
.wrap {
	max-width: var(--w-page);
	margin: 0 auto;
	padding: 0 24px;
}

/* 细墨线 + 中点 分隔 */
.ink-divider {
	display: flex;
	align-items: center;
	gap: 1rem;
	margin: 1.6rem auto;
	max-width: 420px;
}

.ink-divider::before,
.ink-divider::after {
	content: "";
	flex: 1;
	height: 1px;
	background: var(--ink-faint);
}

.ink-divider .dot {
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: var(--qinghua);
	flex: none;
}

.ink-divider--wide {
	max-width: none;
}

/* 卷轴天杆 / 地杆 */
.scroll-rod {
	display: flex;
	align-items: center;
	width: min(300px, 56%);
	margin: 0 auto 1.2rem;
}

.scroll-rod span {
	flex: 1;
	height: 2px;
	background: var(--ink);
}

.scroll-rod::before,
.scroll-rod::after {
	content: "";
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: var(--ink);
	flex: none;
}

.scroll-rod--foot {
	margin: 2.6rem auto 0;
	width: min(220px, 44%);
	opacity: 0.55;
}

/* 印章 */
.seal {
	width: 56px;
	height: 56px;
	flex: none;
}

.seal--sm {
	width: 34px;
	height: 34px;
}

.seal--lg {
	width: 76px;
	height: 76px;
}

.seal-tilt {
	transform: rotate(-3deg);
}

/* 按钮 */
.btn {
	display: inline-block;
	font-family: var(--font-song);
	font-size: 1rem;
	letter-spacing: 0.35em;
	text-indent: 0.35em;
	padding: 0.72em 1.9em;
	border: 1px solid var(--ink);
	color: var(--ink);
	background: transparent;
	cursor: pointer;
	transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.2s ease;
}

.btn:hover,
.btn:focus {
	transform: translateY(-2px);
}

.btn--qinghua {
	background: var(--qinghua);
	border-color: var(--qinghua);
	color: var(--paper);
}

.btn--qinghua:hover,
.btn--qinghua:focus {
	background: var(--qinghua-deep);
	border-color: var(--qinghua-deep);
	color: var(--paper);
}

/* 竖排文字 */
.vertical-text {
	writing-mode: vertical-rl;
	letter-spacing: 0.4em;
	font-family: var(--font-song);
}

/* 回纹带 */
.huiwen-band {
	height: 24px;
	background-image: var(--huiwen);
	background-repeat: repeat-x;
	background-position: center;
}

/* --------------------------------------------------
   四 · 卷首(页头与导航)
-------------------------------------------------- */
.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: var(--paper);
	border-bottom: 1px solid var(--ink-faint);
	transition: box-shadow 0.3s ease;
}

.site-header::after {
	content: "";
	display: block;
	height: 3px;
	background: linear-gradient(to right, transparent 0%, var(--ink) 18%, var(--ink) 82%, transparent 100%);
	opacity: 0;
	transition: opacity 0.3s ease;
}

.site-header.is-scrolled {
	box-shadow: 0 10px 24px -18px rgba(43, 43, 43, 0.5);
}

.site-header.is-scrolled::after {
	opacity: 0.25;
}

.header-inner {
	max-width: var(--w-page);
	margin: 0 auto;
	padding: 14px 24px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}

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

.site-branding .custom-logo {
	max-height: 52px;
	width: auto;
}

.site-title {
	margin: 0;
	font-size: 1.3rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	line-height: 1.3;
}

.site-title a {
	color: var(--ink);
}

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

.site-tagline {
	margin: 0;
	font-size: 0.78rem;
	letter-spacing: 0.3em;
	color: var(--ink-soft);
}

/* 导航 */
.main-navigation ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	align-items: center;
	gap: 1.6rem;
}

.main-navigation a {
	position: relative;
	display: inline-block;
	padding: 0.35em 0.1em;
	color: var(--ink);
	font-size: 1.02rem;
	letter-spacing: 0.08em;
}

.main-navigation a::after {
	content: "";
	position: absolute;
	left: 8%;
	right: 8%;
	bottom: 0;
	height: 2px;
	background: var(--qinghua);
	transform: scaleX(0);
	transform-origin: center;
	transition: transform 0.25s ease;
}

.main-navigation a:hover::after,
.main-navigation a:focus::after,
.main-navigation .current-menu-item > a::after,
.main-navigation .current_page_item > a::after {
	transform: scaleX(1);
}

.nav-note {
	font-size: 0.72rem;
	color: var(--ink-soft);
	letter-spacing: 0.1em;
	margin-left: 0.2em;
}

/* 汉堡钮 */
.menu-toggle {
	display: none;
	position: relative;
	z-index: 130;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	background: none;
	border: 1px solid var(--ink);
	padding: 8px 10px;
	cursor: pointer;
}

.menu-toggle-bars,
.menu-toggle-bars::before,
.menu-toggle-bars::after {
	content: "";
	display: block;
	width: 22px;
	height: 2px;
	background: var(--ink);
	transition: transform 0.25s ease, opacity 0.25s ease;
}

.menu-toggle-bars {
	position: relative;
	margin: 8px 0;
}

.menu-toggle-bars::before {
	position: absolute;
	top: -7px;
	left: 0;
}

.menu-toggle-bars::after {
	position: absolute;
	top: 7px;
	left: 0;
}

.menu-toggle-text {
	font-size: 0.68rem;
	letter-spacing: 0.25em;
	text-indent: 0.25em;
}

.main-navigation.is-open .menu-toggle-bars {
	transform: rotate(45deg);
}

.main-navigation.is-open .menu-toggle-bars::before {
	transform: translateY(7px) rotate(-90deg);
}

.main-navigation.is-open .menu-toggle-bars::after {
	opacity: 0;
}

body.menu-open::after {
	content: "";
	position: fixed;
	inset: 0;
	background: rgba(43, 43, 43, 0.4);
	z-index: 110;
}

/* --------------------------------------------------
   五 · 区块通式(卷轴段落)
-------------------------------------------------- */
.section {
	padding: 4.6rem 0 3.6rem;
}

.section--deep {
	background: var(--paper-deep);
	border-top: 1px solid var(--ink-faint);
	border-bottom: 1px solid var(--ink-faint);
}

.section-head {
	text-align: center;
	margin-bottom: 2.6rem;
}

.section-title {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.8rem;
	margin: 0;
	font-size: 1.9rem;
}

.title-char {
	font-size: 2.4rem;
	letter-spacing: 0;
}

.title-note {
	font-size: 0.92rem;
	font-weight: 400;
	color: var(--ink-soft);
	letter-spacing: 0.28em;
	writing-mode: vertical-rl;
	line-height: 1.2;
	max-height: 5.6em;
}

.section-lead {
	max-width: var(--w-text);
	margin: 0.6rem auto 0;
	color: var(--ink-soft);
	font-size: 0.98rem;
	letter-spacing: 0.05em;
}

/* 入场:仅在 html.js 下先藏后现 */
html.js .reveal {
	opacity: 0;
	transform: translateY(26px);
	transition: opacity 0.7s ease, transform 0.7s ease;
}

html.js .reveal.is-visible {
	opacity: 1;
	transform: none;
}

html.js .reveal .seal-pop {
	opacity: 0;
	transform: scale(1.7) rotate(-10deg);
	transition: transform 0.5s cubic-bezier(0.2, 1.5, 0.4, 1) 0.4s, opacity 0.25s ease 0.4s;
}

html.js .reveal.is-visible .seal-pop {
	opacity: 1;
	transform: scale(1) rotate(-3deg);
}

/* --------------------------------------------------
   六 · 卷首画心(首页 hero)
-------------------------------------------------- */
.hero {
	padding: 4rem 0 4.4rem;
}

.hero-frame {
	position: relative;
	border: 1px solid var(--ink);
	box-shadow: 0 0 0 7px var(--paper), 0 0 0 8px var(--ink-faint), var(--shadow-card);
	background: var(--paper-raised);
	padding: 4rem 3rem 3.4rem;
	display: grid;
	grid-template-columns: auto 1fr auto;
	gap: 2.4rem;
	align-items: stretch;
}

.hero-side {
	display: flex;
	align-items: center;
}

.hero-side .vertical-text {
	font-size: 1.25rem;
	color: var(--ink-soft);
	border-left: 1px solid var(--ink-faint);
	border-right: 1px solid var(--ink-faint);
	padding: 0.6em 0.5em;
}

.hero-core {
	text-align: center;
	max-width: 620px;
	margin: 0 auto;
}

.hero-kicker {
	font-size: 0.9rem;
	letter-spacing: 0.5em;
	text-indent: 0.5em;
	color: var(--qinghua);
	margin-bottom: 1.4rem;
}

.hero-title {
	font-size: clamp(2.4rem, 5.6vw, 3.6rem);
	letter-spacing: 0.22em;
	text-indent: 0.22em;
	margin-bottom: 0.4em;
}

.hero-sub {
	color: var(--ink-soft);
	font-size: 1.02rem;
	letter-spacing: 0.08em;
	max-width: 34em;
	margin: 0 auto 1.6rem;
}

.hero-quote {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 1rem;
	margin: 1.8rem auto;
}

.hero-quote-text {
	font-family: var(--font-kai);
	font-size: 1.5rem;
	letter-spacing: 0.2em;
	color: var(--ink);
	margin: 0;
}

.hero-cloud {
	margin: 1.6rem auto 2rem;
	width: min(360px, 80%);
	opacity: 0.8;
}

.hero-actions {
	display: flex;
	justify-content: center;
	gap: 1.2rem;
	flex-wrap: wrap;
}

/* --------------------------------------------------
   七 · 序(本源)
-------------------------------------------------- */
.preface-grid {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 3rem;
	align-items: start;
	max-width: 880px;
	margin: 0 auto;
}

.preface-mark {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1.2rem;
	padding-top: 0.4rem;
}

.preface-mark .vertical-text {
	font-size: 1.05rem;
	color: var(--ink-soft);
	letter-spacing: 0.5em;
}

.preface-body p {
	text-align: justify;
}

.preface-body .drop-word {
	float: left;
	font-size: 3.2rem;
	line-height: 1;
	padding: 0.08em 0.18em 0 0;
	color: var(--qinghua);
	font-weight: 700;
}

.preface-facts {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	margin-top: 2rem;
	padding-top: 1.4rem;
	border-top: 1px dashed var(--ink-faint);
	text-align: center;
	flex-wrap: wrap;
}

.fact b {
	display: block;
	font-size: 1.7rem;
	color: var(--qinghua);
	letter-spacing: 0.04em;
}

.fact span {
	font-size: 0.85rem;
	color: var(--ink-soft);
	letter-spacing: 0.18em;
}

/* --------------------------------------------------
   八 · 器(产品卡)
-------------------------------------------------- */
.qi-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 1.6rem;
}

.product-card {
	position: relative;
	background: var(--paper-raised);
	border: 1px solid var(--ink-faint);
	box-shadow: var(--shadow-card);
	padding: 1.8rem 1.6rem 1.5rem;
	display: flex;
	flex-direction: column;
	transition: transform 0.25s ease, border-color 0.25s ease;
}

.product-card:hover {
	transform: translateY(-5px);
	border-color: var(--qinghua);
}

.product-card::before {
	content: "";
	position: absolute;
	top: 10px;
	left: 10px;
	right: 10px;
	bottom: 10px;
	border: 1px solid var(--ink-faint);
	pointer-events: none;
}

.card-icon {
	width: 64px;
	height: 64px;
	margin-bottom: 1rem;
	color: var(--ink);
}

.card-icon svg {
	width: 100%;
	height: 100%;
}

.card-thumb {
	margin: -0.4rem -0.3rem 1rem;
	border: 1px solid var(--ink-faint);
	overflow: hidden;
}

.card-model {
	font-size: 0.78rem;
	letter-spacing: 0.32em;
	color: var(--qinghua);
	margin-bottom: 0.3rem;
}

.card-title {
	font-size: 1.22rem;
	margin-bottom: 0.5rem;
}

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

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

.card-text {
	font-size: 0.94rem;
	color: var(--ink-soft);
	flex: 1;
	margin-bottom: 1rem;
}

.card-link {
	font-size: 0.9rem;
	letter-spacing: 0.22em;
	color: var(--qinghua);
	align-self: flex-start;
	border-bottom: 1px solid currentColor;
	padding-bottom: 0.15em;
}

.section-foot-link {
	text-align: center;
	margin-top: 2.4rem;
}

/* --------------------------------------------------
   九 · 艺(白描图 + 工序 + 择材)
-------------------------------------------------- */
.yi-grid {
	display: grid;
	grid-template-columns: minmax(280px, 420px) 1fr;
	gap: 3rem;
	align-items: start;
}

.baimiao-figure {
	position: relative;
	background: var(--paper-raised);
	border: 1px solid var(--ink-faint);
	box-shadow: var(--shadow-card);
	padding: 1.6rem 1.4rem 1rem;
	margin: 0;
}

.baimiao-figure svg {
	width: 100%;
	height: auto;
}

.baimiao-figure figcaption {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.8rem;
	padding-top: 0.8rem;
	border-top: 1px solid var(--ink-faint);
	font-size: 0.85rem;
	letter-spacing: 0.18em;
	color: var(--ink-soft);
}

.process-steps {
	list-style: none;
	counter-reset: gongxu;
	margin: 0 0 2rem;
	padding: 0;
}

.process-steps li {
	counter-increment: gongxu;
	position: relative;
	padding: 0.55em 0 0.55em 3.4em;
	border-bottom: 1px dashed var(--ink-faint);
}

.process-steps li::before {
	content: counter(gongxu, cjk-ideographic);
	position: absolute;
	left: 0;
	top: 0.72em;
	width: 2.1em;
	height: 2.1em;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 0.82rem;
	color: var(--paper);
	background: var(--qinghua);
	border-radius: 3px;
	line-height: 1;
}

.process-steps li b {
	letter-spacing: 0.1em;
}

.process-steps li span {
	color: var(--ink-soft);
	font-size: 0.92rem;
}

.process-note {
	font-size: 0.9rem;
	color: var(--qinghua);
	letter-spacing: 0.12em;
	margin-top: -1rem;
	margin-bottom: 2rem;
}

/* 择材如择墨(金浩丰) */
.material-note {
	position: relative;
	background: var(--paper);
	border-top: 24px solid transparent;
	border-bottom: 24px solid transparent;
	border-image: none;
	padding: 1.6rem 1.8rem;
	margin: 0;
}

.material-note::before,
.material-note::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	height: 24px;
	background-image: var(--huiwen);
	background-repeat: repeat-x;
	background-position: center;
}

.material-note::before {
	top: -24px;
}

.material-note::after {
	bottom: -24px;
}

.material-note-inner {
	display: flex;
	gap: 1.4rem;
	align-items: flex-start;
}

.material-note h3 {
	font-size: 1.15rem;
	letter-spacing: 0.2em;
	margin-bottom: 0.5em;
}

.material-note p {
	margin-bottom: 0.4em;
	font-size: 0.96rem;
}

.material-note .cite {
	font-family: var(--font-kai);
	color: var(--qinghua);
}

/* --------------------------------------------------
   十 · 所治(应用行业)
-------------------------------------------------- */
.hang-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
	gap: 1.4rem;
}

.industry-item {
	display: flex;
	gap: 1.1rem;
	background: var(--paper-raised);
	border: 1px solid var(--ink-faint);
	padding: 1.4rem 1.3rem;
	box-shadow: var(--shadow-card);
}

.industry-item .vertical-text {
	font-size: 1.02rem;
	color: var(--qinghua);
	border-right: 1px solid var(--ink-faint);
	padding-right: 0.7em;
	letter-spacing: 0.3em;
	flex: none;
}

.industry-item h3 {
	font-size: 1.08rem;
	margin-bottom: 0.35em;
}

.industry-item p {
	font-size: 0.9rem;
	color: var(--ink-soft);
	margin: 0;
}

.industry-item--main {
	border-color: var(--qinghua);
}

/* --------------------------------------------------
   十一 · 迹(三则短记)
-------------------------------------------------- */
.ji-list {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
	gap: 1.6rem;
}

.case-record {
	position: relative;
	background: var(--paper-raised);
	border: 1px solid var(--ink-faint);
	box-shadow: var(--shadow-card);
	padding: 1.7rem 1.6rem 1.4rem;
	display: flex;
	gap: 1.2rem;
}

.case-record .case-index {
	writing-mode: vertical-rl;
	font-size: 1.05rem;
	letter-spacing: 0.4em;
	color: var(--qinghua);
	border-right: 1px solid var(--ink-faint);
	padding-right: 0.7em;
	flex: none;
}

.case-record h3 {
	font-size: 1.12rem;
	margin-bottom: 0.5em;
}

.case-record .case-text {
	font-family: var(--font-kai);
	font-size: 0.97rem;
	color: var(--ink-soft);
	text-align: justify;
	margin-bottom: 1rem;
}

.case-record .case-result {
	font-size: 0.85rem;
	letter-spacing: 0.12em;
	color: var(--qinghua);
	border-top: 1px dashed var(--ink-faint);
	padding-top: 0.7em;
	margin: 0;
}

.case-record .case-result b {
	color: var(--qinghua-deep);
	font-size: 1.05rem;
}

/* --------------------------------------------------
   十二 · 闻(新闻)
-------------------------------------------------- */
.wen-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 1.6rem;
}

.news-card {
	background: var(--paper-raised);
	border: 1px solid var(--ink-faint);
	box-shadow: var(--shadow-card);
	padding: 1.5rem 1.5rem 1.3rem;
	display: flex;
	flex-direction: column;
	transition: transform 0.25s ease, border-color 0.25s ease;
}

.news-card:hover {
	transform: translateY(-4px);
	border-color: var(--qinghua);
}

.news-date {
	font-size: 0.8rem;
	letter-spacing: 0.2em;
	color: var(--ink-soft);
	margin-bottom: 0.5rem;
}

.news-date::before {
	content: "";
	display: inline-block;
	width: 0.55em;
	height: 0.55em;
	background: var(--qinghua);
	margin-right: 0.6em;
	vertical-align: 0.05em;
}

.news-card h3 {
	font-size: 1.1rem;
	margin-bottom: 0.5em;
}

.news-card h3 a {
	color: var(--ink);
}

.news-card h3 a:hover {
	color: var(--qinghua);
}

.news-card p {
	font-size: 0.92rem;
	color: var(--ink-soft);
	flex: 1;
	margin-bottom: 0;
}

/* --------------------------------------------------
   十三 · 晤(联系)
-------------------------------------------------- */
.wu-cta {
	text-align: center;
	max-width: 700px;
	margin: 0 auto;
}

.wu-cta .wu-quote {
	font-family: var(--font-kai);
	font-size: 1.3rem;
	letter-spacing: 0.16em;
	color: var(--ink-soft);
	margin-bottom: 2rem;
}

.contact-lines {
	display: flex;
	justify-content: center;
	gap: 2.4rem;
	flex-wrap: wrap;
	margin-bottom: 2.2rem;
}

.contact-line {
	text-align: center;
}

.contact-line .label {
	display: block;
	font-size: 0.8rem;
	letter-spacing: 0.35em;
	text-indent: 0.35em;
	color: var(--qinghua);
	margin-bottom: 0.3em;
}

.contact-line .value {
	font-size: 1.05rem;
	letter-spacing: 0.06em;
	color: var(--ink);
}

/* --------------------------------------------------
   十四 · 落款(页脚)
-------------------------------------------------- */
.site-footer {
	margin-top: 4rem;
	background: var(--paper-deep);
	border-top: 1px solid var(--ink-faint);
}

.site-footer .huiwen-band {
	border-bottom: 1px solid var(--ink-faint);
}

.footer-inner {
	max-width: var(--w-page);
	margin: 0 auto;
	padding: 3rem 24px 1.6rem;
}

.footer-cols {
	display: grid;
	grid-template-columns: 1.3fr 1fr 1fr;
	gap: 2.6rem;
	padding-bottom: 2.2rem;
	border-bottom: 1px dashed var(--ink-faint);
}

.footer-title {
	font-size: 1.02rem;
	letter-spacing: 0.3em;
	margin-bottom: 0.9em;
	color: var(--ink);
}

.footer-col p {
	font-size: 0.92rem;
	color: var(--ink-soft);
	margin-bottom: 0.5em;
}

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

.footer-menu li {
	padding: 0.28em 0;
}

.footer-menu a {
	color: var(--ink-soft);
	font-size: 0.95rem;
	letter-spacing: 0.1em;
}

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

.supplier-note {
	font-size: 0.9rem;
	color: var(--ink-soft);
	text-align: center;
	padding: 1.6rem 0 0.4rem;
	letter-spacing: 0.06em;
}

.supplier-note em {
	font-style: normal;
	color: var(--qinghua);
}

.footer-signature {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 1rem;
	padding: 0.8rem 0;
	font-family: var(--font-kai);
	font-size: 1.02rem;
	letter-spacing: 0.24em;
	color: var(--ink);
}

.site-info {
	text-align: center;
	font-size: 0.8rem;
	color: var(--ink-soft);
	letter-spacing: 0.08em;
	padding-top: 0.6rem;
}

/* 回卷首 */
.back-top {
	position: fixed;
	right: 22px;
	bottom: 28px;
	z-index: 90;
	writing-mode: vertical-rl;
	letter-spacing: 0.35em;
	font-family: var(--font-song);
	font-size: 0.85rem;
	background: var(--paper-raised);
	color: var(--ink);
	border: 1px solid var(--ink);
	padding: 0.9em 0.55em;
	cursor: pointer;
	opacity: 0;
	visibility: hidden;
	transform: translateY(10px);
	transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
}

.back-top.is-shown {
	opacity: 1;
	visibility: visible;
	transform: none;
}

.back-top:hover {
	border-color: var(--qinghua);
	color: var(--qinghua);
}

/* --------------------------------------------------
   十五 · 内页(文章 / 归档 / 检索)
-------------------------------------------------- */
.page-shell {
	padding: 3.4rem 0 1rem;
}

.archive-header {
	text-align: center;
	margin-bottom: 2.8rem;
}

.archive-header .page-title {
	font-size: 1.9rem;
	letter-spacing: 0.14em;
	margin-bottom: 0.3em;
}

.archive-header .archive-description {
	color: var(--ink-soft);
	max-width: var(--w-text);
	margin: 0 auto;
	font-size: 0.95rem;
}

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

.post-list {
	display: grid;
	gap: 1.8rem;
}

.post-card {
	background: var(--paper-raised);
	border: 1px solid var(--ink-faint);
	box-shadow: var(--shadow-card);
	padding: 1.8rem 2rem;
	transition: border-color 0.25s ease;
}

.post-card:hover {
	border-color: var(--qinghua);
}

.post-card .entry-title {
	font-size: 1.35rem;
	margin-bottom: 0.35em;
}

.post-card .entry-title a {
	color: var(--ink);
}

.post-card .entry-title a:hover {
	color: var(--qinghua);
}

.entry-meta {
	font-size: 0.82rem;
	color: var(--ink-soft);
	letter-spacing: 0.14em;
	margin-bottom: 0.8em;
}

.entry-meta .sep {
	color: var(--qinghua);
	margin: 0 0.5em;
}

.post-card .entry-summary {
	color: var(--ink-soft);
	font-size: 0.96rem;
	margin-bottom: 1em;
}

.read-more {
	font-size: 0.9rem;
	letter-spacing: 0.22em;
	border-bottom: 1px solid currentColor;
	padding-bottom: 0.12em;
}

.post-thumb {
	margin: 0 0 1.2rem;
	border: 1px solid var(--ink-faint);
	overflow: hidden;
}

/* 单篇 */
.entry-header {
	text-align: center;
	margin-bottom: 2.2rem;
}

.entry-header .entry-title {
	font-size: 2rem;
	letter-spacing: 0.1em;
}

article.single-entry {
	background: var(--paper-raised);
	border: 1px solid var(--ink-faint);
	box-shadow: var(--shadow-card);
	padding: 2.8rem clamp(1.4rem, 4vw, 3.2rem);
}

.entry-content {
	max-width: var(--w-text);
	margin: 0 auto;
}

.entry-content h2 {
	font-size: 1.45rem;
	padding-left: 0.7em;
	border-left: 4px solid var(--qinghua);
	margin-top: 2em;
}

.entry-content h3 {
	font-size: 1.2rem;
	color: var(--qinghua);
	margin-top: 1.6em;
}

.entry-content a {
	border-bottom: 1px solid var(--qinghua-mist);
}

.entry-content img {
	border: 1px solid var(--ink-faint);
}

.entry-footer {
	max-width: var(--w-text);
	margin: 2.4rem auto 0;
	padding-top: 1.2rem;
	border-top: 1px dashed var(--ink-faint);
	font-size: 0.85rem;
	color: var(--ink-soft);
	letter-spacing: 0.1em;
}

.post-navigation .nav-links {
	display: flex;
	justify-content: space-between;
	gap: 1.4rem;
	margin: 2rem 0;
	flex-wrap: wrap;
}

.post-navigation a {
	font-size: 0.95rem;
	letter-spacing: 0.08em;
}

/* 翻页 */
.pagination,
.page-links {
	margin: 2.6rem 0 1rem;
	text-align: center;
}

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

.pagination .page-numbers {
	display: inline-block;
	min-width: 2.4em;
	padding: 0.4em 0.6em;
	border: 1px solid var(--ink-faint);
	color: var(--ink);
	background: var(--paper-raised);
}

.pagination .page-numbers.current {
	background: var(--qinghua);
	border-color: var(--qinghua);
	color: var(--paper);
}

.pagination .page-numbers:hover {
	border-color: var(--qinghua);
	color: var(--qinghua);
}

/* 侧栏 · 旁注 */
.widget {
	background: var(--paper-raised);
	border: 1px solid var(--ink-faint);
	box-shadow: var(--shadow-card);
	padding: 1.4rem 1.5rem;
	margin-bottom: 1.6rem;
	font-size: 0.94rem;
}

.widget-title {
	font-size: 1.02rem;
	letter-spacing: 0.26em;
	padding-bottom: 0.6em;
	margin-bottom: 0.8em;
	border-bottom: 1px solid var(--ink-faint);
	position: relative;
}

.widget-title::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: -1px;
	width: 3.4em;
	height: 1px;
	background: var(--qinghua);
}

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

.widget li {
	padding: 0.34em 0;
	border-bottom: 1px dashed var(--ink-faint);
}

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

/* 检索表单 */
.search-form {
	display: flex;
	gap: 0;
	max-width: 460px;
}

.search-form .search-field {
	flex: 1;
	min-width: 0;
	border: 1px solid var(--ink);
	border-right: 0;
	background: var(--paper-raised);
	padding: 0.6em 1em;
	font-family: var(--font-song);
	letter-spacing: 0.06em;
}

.search-form .search-field:focus {
	outline: 2px solid var(--qinghua);
	outline-offset: -1px;
}

.search-form .search-submit {
	border: 1px solid var(--qinghua);
	background: var(--qinghua);
	color: var(--paper);
	padding: 0.6em 1.4em;
	letter-spacing: 0.2em;
	text-indent: 0.2em;
	cursor: pointer;
}

.search-form .search-submit:hover {
	background: var(--qinghua-deep);
}

/* 404 与空态 */
.error-404,
.no-results {
	text-align: center;
	max-width: 620px;
	margin: 0 auto;
	padding: 3rem 0;
}

.error-404 .error-char {
	font-size: 5rem;
	font-family: var(--font-kai);
	color: var(--ink-faint);
	line-height: 1.2;
	letter-spacing: 0.3em;
	text-indent: 0.3em;
	margin-bottom: 0.2em;
}

.error-404 .search-form,
.no-results .search-form {
	margin: 1.8rem auto;
}

.demo-note {
	text-align: center;
	font-size: 0.85rem;
	color: var(--ink-soft);
	letter-spacing: 0.14em;
	margin: 0 0 2rem;
}

.demo-note::before,
.demo-note::after {
	content: "·";
	color: var(--qinghua);
	margin: 0 0.8em;
}

/* --------------------------------------------------
   十六 · 器物单页(产品详情)
-------------------------------------------------- */
.product-single-grid {
	display: grid;
	grid-template-columns: minmax(260px, 400px) 1fr;
	gap: 3rem;
	align-items: start;
	margin-bottom: 3rem;
}

.product-figure {
	background: var(--paper-raised);
	border: 1px solid var(--ink-faint);
	box-shadow: var(--shadow-card);
	padding: 1.6rem;
	margin: 0;
}

.product-figure img {
	width: 100%;
}

.product-figure .figure-note {
	text-align: center;
	font-size: 0.82rem;
	letter-spacing: 0.2em;
	color: var(--ink-soft);
	padding-top: 0.8rem;
	margin: 0;
}

.spec-table {
	margin: 1.6rem 0 2rem;
	border: 1px solid var(--ink-faint);
	background: var(--paper-raised);
}

.spec-table caption {
	text-align: left;
	font-size: 1.05rem;
	letter-spacing: 0.24em;
	font-weight: 700;
	padding: 0.8em 1em;
	border-bottom: 2px solid var(--ink);
	background: var(--paper);
	caption-side: top;
}

.spec-table th,
.spec-table td {
	padding: 0.65em 1em;
	border-bottom: 1px dashed var(--ink-faint);
	font-size: 0.95rem;
	text-align: left;
	vertical-align: top;
}

.spec-table th {
	width: 9em;
	color: var(--qinghua);
	font-weight: 400;
	letter-spacing: 0.14em;
	white-space: nowrap;
}

.spec-table tr:last-child th,
.spec-table tr:last-child td {
	border-bottom: 0;
}

.inquiry-cta {
	background: var(--paper-deep);
	border: 1px solid var(--ink-faint);
	padding: 2rem 1.8rem;
	text-align: center;
}

.inquiry-cta h2 {
	font-size: 1.3rem;
	letter-spacing: 0.26em;
	margin-bottom: 0.4em;
}

.inquiry-cta p {
	color: var(--ink-soft);
	font-size: 0.95rem;
}

.inquiry-cta .hero-actions {
	margin-top: 1.4rem;
}

.related-note {
	font-size: 0.88rem;
	color: var(--ink-soft);
	letter-spacing: 0.1em;
	text-align: center;
	margin-top: 2rem;
}

/* --------------------------------------------------
   十七 · 应答式(≤768px)
-------------------------------------------------- */
@media (max-width: 1024px) {
	.yi-grid,
	.product-single-grid {
		grid-template-columns: 1fr;
	}

	.content-sidebar {
		grid-template-columns: 1fr;
	}

	.hero-frame {
		grid-template-columns: auto 1fr auto;
		padding: 3rem 1.8rem 2.6rem;
	}
}

@media (max-width: 768px) {
	body {
		font-size: 16px;
	}

	.section {
		padding: 3.2rem 0 2.6rem;
	}

	.hero {
		padding: 2.4rem 0 3rem;
	}

	.hero-frame {
		grid-template-columns: 1fr;
		gap: 1.6rem;
		padding: 2.4rem 1.4rem 2.2rem;
	}

	.hero-side {
		justify-content: center;
	}

	.hero-side .vertical-text {
		writing-mode: horizontal-tb;
		border: 0;
		border-top: 1px solid var(--ink-faint);
		border-bottom: 1px solid var(--ink-faint);
		padding: 0.4em 1em;
		font-size: 1rem;
	}

	.preface-grid {
		grid-template-columns: 1fr;
		gap: 1.8rem;
	}

	.preface-mark {
		flex-direction: row;
		justify-content: center;
	}

	.preface-mark .vertical-text {
		writing-mode: horizontal-tb;
	}

	.title-note {
		writing-mode: horizontal-tb;
		max-height: none;
	}

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

	.main-navigation ul {
		position: fixed;
		top: 0;
		right: 0;
		bottom: 0;
		z-index: 120;
		width: min(78vw, 320px);
		background: var(--paper);
		border-left: 1px solid var(--ink-faint);
		box-shadow: -18px 0 40px -22px rgba(43, 43, 43, 0.5);
		flex-direction: column;
		align-items: flex-start;
		gap: 0;
		padding: 92px 30px 40px;
		transform: translateX(102%);
		transition: transform 0.3s ease;
		overflow-y: auto;
	}

	.main-navigation.is-open ul {
		transform: translateX(0);
	}

	.main-navigation li {
		width: 100%;
		border-bottom: 1px dashed var(--ink-faint);
	}

	.main-navigation a {
		display: block;
		padding: 0.8em 0.2em;
		font-size: 1.1rem;
	}

	.footer-cols {
		grid-template-columns: 1fr;
		gap: 1.8rem;
	}

	.contact-lines {
		flex-direction: column;
		gap: 1.2rem;
	}

	.case-record {
		flex-direction: column;
	}

	.case-record .case-index {
		writing-mode: horizontal-tb;
		border-right: 0;
		border-bottom: 1px solid var(--ink-faint);
		padding: 0 0 0.4em;
	}

	.back-top {
		right: 14px;
		bottom: 18px;
	}
}

/* --------------------------------------------------
   十七之补 · 补笔(细处修葺)
-------------------------------------------------- */
.skip-link:focus {
	clip: auto;
	clip-path: none;
	width: auto;
	height: auto;
	margin: 0;
	overflow: visible;
}

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

.table-scroll {
	overflow-x: auto;
}

.case-record .case-seal {
	position: absolute;
	top: 0.9rem;
	right: 0.9rem;
}

.case-record h3 {
	padding-right: 2.8rem;
}

.error-404 .seal,
.no-results .seal {
	margin: 0 auto 1.4rem;
}

.error-404 .search-form,
.no-results .search-form {
	margin-left: auto;
	margin-right: auto;
}

.inquiry-cta .seal {
	margin: 0 auto 1rem;
}

.widget .search-form {
	max-width: none;
}

.widget-contact p {
	margin-bottom: 0.4em;
}

.entry-content > :first-child {
	margin-top: 0;
}

.product-detail blockquote {
	margin-top: 0;
}

.yi-body > h3 {
	font-size: 1.25rem;
	letter-spacing: 0.24em;
}

/* 评论区(酬答) */
.comments-area {
	max-width: var(--w-text);
	margin: 2.6rem auto 0;
	padding-top: 1.6rem;
	border-top: 1px solid var(--ink-faint);
}

.comments-title,
.comment-reply-title {
	font-size: 1.2rem;
	letter-spacing: 0.2em;
}

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

.comment-list .comment,
.comment-list .pingback {
	border-bottom: 1px dashed var(--ink-faint);
	padding: 1rem 0;
}

.comment-list .children {
	list-style: none;
	padding-left: 1.4rem;
}

.comment-author .fn {
	font-style: normal;
	font-weight: 700;
}

.comment-metadata {
	font-size: 0.8rem;
	color: var(--ink-soft);
	letter-spacing: 0.08em;
}

.comment-form label {
	display: block;
	font-size: 0.9rem;
	letter-spacing: 0.14em;
	margin-bottom: 0.3em;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
	width: 100%;
	border: 1px solid var(--ink-faint);
	background: var(--paper-raised);
	padding: 0.55em 0.8em;
	margin-bottom: 1em;
	font-family: var(--font-song);
}

.comment-form input[type="submit"] {
	border: 1px solid var(--qinghua);
	background: var(--qinghua);
	color: var(--paper);
	padding: 0.6em 1.8em;
	letter-spacing: 0.3em;
	text-indent: 0.3em;
	cursor: pointer;
}

.comment-form input[type="submit"]:hover {
	background: var(--qinghua-deep);
}

/* 无 JS 之时:目次直陈,不倚汉堡 */
@media (max-width: 768px) {
	html.no-js .menu-toggle {
		display: none;
	}

	html.no-js .main-navigation ul {
		position: static;
		width: auto;
		transform: none;
		box-shadow: none;
		border-left: 0;
		background: transparent;
		padding: 0.4em 0;
	}
}

/* --------------------------------------------------
   十八 · 动效之节制(prefers-reduced-motion)
-------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}

	html {
		scroll-behavior: auto;
	}

	html.js .reveal,
	html.js .reveal .seal-pop {
		opacity: 1;
		transform: none;
	}
}
