/*
Theme Name: 原型环保 Yuanxing Wire
Theme URI: https://example.com/themes/yuanxing-wire
Author: 灰阶
Author URI: https://example.com/designers/huijie
Description: UX 线框原型风中文企业主题,为虚构演示公司「廊坊原型环保科技有限公司」设计。近白底 #fafafa 与灰阶线框构成整站骨架,唯一彩色是小面积批注紫罗兰:批注便签、编号圆标、评审勾选与当前导航。图片位是灰底对角十字叉占位符,工艺流程画成流程图,页角盖「v2.4 · 评审通过」方框章。含 CPT 组件库(product)、演示兜底、汉堡导航与 IntersectionObserver 入场。
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
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: yuanxing-wire
Tags: one-column, two-columns, custom-menu, custom-logo, featured-images, translation-ready
*/

/* --------------------------------------------------
   0. 设计令牌(线框原型体系)
-------------------------------------------------- */
:root {
	--bg: #fafafa;            /* 画板近白底 */
	--paper: #ffffff;         /* 卡片纸面 */
	--field: #f0f0f0;         /* 占位符灰底 */
	--line: #c9c9c9;          /* 边框灰 */
	--line-soft: #e3e3e3;     /* 细规则线 */
	--gray: #8a8a8a;          /* 中灰:仅大字/装饰 */
	--ink: #333333;           /* 正文炭 */
	--ink-soft: #6b6b6b;      /* 次级小字(4.5:1+) */
	--violet: #6d5ae6;        /* 批注紫罗兰(描边/大号) */
	--violet-deep: #5b48d0;   /* 批注紫加深(小字) */
	--violet-tint: #f3f0fe;   /* 紫微底 */
	--dot: #e7e7e7;           /* 点阵网格 */
	--font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", "Source Han Sans SC", sans-serif;
	--wrap: 1140px;
	--handle: linear-gradient(var(--gray), var(--gray));
}

/* --------------------------------------------------
   1. 基础重置
-------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: var(--font);
	font-size: 16px;
	line-height: 1.75;
	color: var(--ink);
	background-color: var(--bg);
	background-image: radial-gradient(circle, var(--dot) 1px, transparent 1.2px);
	background-size: 8px 8px;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4, h5, h6 { font-weight: 600; line-height: 1.35; color: var(--ink); margin: 0 0 .6em; }
h1 { font-size: clamp(28px, 4.4vw, 42px); }
h2 { font-size: clamp(22px, 3vw, 30px); }
h3 { font-size: 19px; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.4em; }
a { color: var(--violet-deep); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, input:focus-visible, [tabindex]:focus-visible {
	outline: 2px dashed var(--violet-deep);
	outline-offset: 2px;
}
hr { border: 0; border-top: 1px dashed var(--line); margin: 2em 0; }
table { border-collapse: collapse; width: 100%; }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; font-size: 15px; color: var(--ink); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.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;
}
.screen-reader-text:focus {
	background: var(--paper); border: 1px solid var(--violet); clip: auto; clip-path: none;
	color: var(--violet-deep); display: block; font-size: 14px; height: auto;
	left: 8px; top: 8px; padding: 10px 16px; width: auto; z-index: 100000;
}
.skip-link { position: absolute; }

/* --------------------------------------------------
   2. 线框语言:实线框 / 虚线待定区 / 四角手柄
-------------------------------------------------- */
.wire-box {
	position: relative;
	background-color: var(--paper);
	border: 1px solid var(--line);
	background-repeat: no-repeat;
	background-origin: border-box;
	transition: border-color .15s ease;
}
.wire-box:hover,
.wire-box:focus-within,
.is-selected {
	border-color: var(--gray);
	background-image: var(--handle), var(--handle), var(--handle), var(--handle);
	background-size: 6px 6px;
	background-position: left top, right top, left bottom, right bottom;
}
.is-selected { background-repeat: no-repeat; background-origin: border-box; }
.wire-dash {
	position: relative;
	border: 2px dashed var(--line);
	background: transparent;
}
.wire-label {
	position: absolute;
	top: -9px; left: 12px;
	background: var(--bg);
	padding: 0 8px;
	font-size: 12px;
	color: var(--ink-soft);
	letter-spacing: .08em;
}

/* --------------------------------------------------
   3. 占位符:灰底 + 对角十字叉
-------------------------------------------------- */
.ph {
	position: relative;
	display: grid;
	place-items: center;
	background-color: var(--field);
	border: 1px solid var(--line);
	background-image:
		linear-gradient(to top right, transparent calc(50% - .7px), var(--line) calc(50% - .7px), var(--line) calc(50% + .7px), transparent calc(50% + .7px)),
		linear-gradient(to bottom right, transparent calc(50% - .7px), var(--line) calc(50% - .7px), var(--line) calc(50% + .7px), transparent calc(50% + .7px));
	min-height: 120px;
}
.ph > span {
	background: var(--paper);
	border: 1px solid var(--line);
	color: var(--ink-soft);
	font-size: 12px;
	letter-spacing: .06em;
	padding: 3px 10px;
	position: relative;
}
.ph--thumb { aspect-ratio: 8 / 5; min-height: 0; }
.ph--wide { aspect-ratio: 16 / 7; }
.ph--tall { aspect-ratio: 4 / 3; }
.ph--404 { aspect-ratio: 16 / 6; }

/* --------------------------------------------------
   4. 批注系统:便签 / 编号圆标 / 引线 / 图章
-------------------------------------------------- */
.note {
	position: relative;
	background: var(--paper);
	border: 1px solid var(--violet);
	padding: 12px 14px 12px 44px;
	font-size: 13px;
	line-height: 1.6;
	color: var(--ink);
	max-width: 300px;
}
.note::after { /* 便签钉 */
	content: "";
	position: absolute;
	top: -5px; left: 50%;
	width: 8px; height: 8px;
	margin-left: -4px;
	border-radius: 50%;
	background: var(--violet);
}
.note--leader::before { /* 紫色细引线(向上指向被批注元素) */
	content: "";
	position: absolute;
	bottom: 100%; left: 50%;
	width: 1px; height: 26px;
	background: var(--violet);
}
.note-num {
	position: absolute;
	left: 12px; top: 12px;
	width: 21px; height: 21px;
	border: 1.5px solid var(--violet);
	border-radius: 50%;
	display: grid;
	place-items: center;
	font-size: 12px;
	font-weight: 600;
	color: var(--violet-deep);
	background: var(--paper);
}
.note-src { display: block; margin-top: 6px; font-size: 12px; color: var(--ink-soft); }
.num-badge {
	display: inline-grid;
	place-items: center;
	width: 20px; height: 20px;
	border: 1.5px solid var(--violet);
	border-radius: 50%;
	font-size: 12px;
	font-weight: 600;
	color: var(--violet-deep);
	background: var(--paper);
	flex: none;
}
.stamp {
	display: inline-block;
	border: 2px solid var(--violet);
	color: var(--violet-deep);
	background: rgba(255, 255, 255, .88);
	padding: 4px 12px;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .14em;
	transform: rotate(-2deg);
	white-space: nowrap;
}
.chip {
	display: inline-block;
	border: 1px solid var(--line);
	background: var(--paper);
	color: var(--ink-soft);
	font-size: 12px;
	line-height: 1.5;
	padding: 2px 9px;
	letter-spacing: .04em;
}
.chip--violet {
	border-color: var(--violet);
	color: var(--violet-deep);
	background: var(--violet-tint);
}
.pass {
	display: inline-block;
	border: 1.5px solid var(--violet);
	color: var(--violet-deep);
	font-weight: 600;
	font-size: 13px;
	padding: 1px 10px;
	transform: rotate(-2deg);
	background: var(--paper);
}

/* --------------------------------------------------
   5. 原型按钮
-------------------------------------------------- */
.btn {
	display: inline-block;
	border: 1px solid var(--gray);
	background: var(--paper);
	color: var(--ink);
	font-size: 15px;
	line-height: 1.4;
	padding: 10px 22px;
	text-decoration: none;
	transition: background-color .15s ease, border-color .15s ease;
}
.btn:hover { background: var(--field); text-decoration: none; }
.btn-primary {
	border: 1.5px solid var(--violet);
	color: var(--violet-deep);
	font-weight: 600;
}
.btn-primary:hover { background: var(--violet-tint); }
.btn-ghost { border-style: dashed; color: var(--ink-soft); }

/* --------------------------------------------------
   6. 区块标头
-------------------------------------------------- */
.sec { padding: 72px 0; }
.sec-head { max-width: 720px; margin-bottom: 36px; }
.sec-kicker {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 12px;
	letter-spacing: .12em;
	color: var(--violet-deep);
	margin-bottom: 10px;
}
.sec-kicker::before { content: ""; width: 6px; height: 6px; background: var(--violet); }
.sec-title { margin-bottom: .4em; }
.sec-desc { color: var(--ink-soft); font-size: 15px; margin: 0; }

/* --------------------------------------------------
   7. 页头与导航
-------------------------------------------------- */
.site-head {
	position: sticky;
	top: 0;
	z-index: 60;
	background: var(--paper);
	border-bottom: 1px solid var(--line);
}
.site-head.is-stuck { box-shadow: 0 1px 0 var(--line-soft); }
.admin-bar .site-head { top: 32px; }
.head-in {
	display: flex;
	align-items: center;
	gap: 24px;
	min-height: 66px;
}
.brand { display: flex; align-items: center; min-width: 0; }
.brand-link { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-link:hover { text-decoration: none; }
.custom-logo-link { display: inline-flex; align-items: center; }
.custom-logo { max-height: 44px; width: auto; }
.brand-mark {
	width: 30px; height: 30px;
	border: 1.5px solid var(--ink);
	display: grid;
	place-items: center;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .04em;
	position: relative;
	background:
		var(--handle) left top / 4px 4px no-repeat border-box,
		var(--handle) right bottom / 4px 4px no-repeat border-box,
		var(--paper);
}
.brand-name { display: block; font-weight: 600; font-size: 17px; line-height: 1.2; }
.brand-tag { display: block; font-size: 12px; color: var(--ink-soft); line-height: 1.4; }
.site-nav { margin-left: auto; display: flex; align-items: center; gap: 20px; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 6px; }
.site-nav li { margin: 0; }
.site-nav a {
	display: block;
	padding: 8px 12px;
	font-size: 15px;
	color: var(--ink);
	border: 1px solid transparent;
}
.site-nav a:hover { border-color: var(--line); text-decoration: none; background: var(--paper); }
.site-nav .current-menu-item > a,
.site-nav .current_page_item > a,
.site-nav a[aria-current="page"] {
	color: var(--violet-deep);
	border: 1px dashed var(--violet);
}
.head-cta { padding: 8px 18px; font-size: 14px; }
.nav-toggle {
	display: none;
	margin-left: auto;
	align-items: center;
	gap: 8px;
	background: var(--paper);
	border: 1px solid var(--gray);
	padding: 8px 12px;
	font-size: 13px;
	color: var(--ink);
}
.nav-toggle-box { display: inline-flex; flex-direction: column; gap: 4px; width: 18px; }
.nav-toggle-box i { display: block; height: 2px; background: var(--ink); transition: transform .2s ease, opacity .2s ease; }
.nav-open .nav-toggle-box i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle-box i:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle-box i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* --------------------------------------------------
   8. 首页 Hero:原型标注图
-------------------------------------------------- */
.hero { padding: 72px 0 64px; position: relative; }
.hero-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 48px;
	align-items: center;
}
.hero-kicker { display: inline-flex; gap: 8px; align-items: center; margin-bottom: 14px; }
.hero h1 { margin-bottom: .5em; }
.hero-lead { font-size: 17px; color: var(--ink); max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 26px 0 22px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 0; list-style: none; }
.hero-meta li {
	border: 1px dashed var(--line);
	background: var(--paper);
	font-size: 12px;
	color: var(--ink-soft);
	padding: 4px 10px;
}
.hero-note { margin-top: 30px; }
.hero-fig { position: relative; padding: 22px 18px 14px; }
.hero-fig svg { width: 100%; height: auto; display: block; }
.hero-fig .stamp { position: absolute; right: 14px; top: -14px; }
.fig-cap {
	margin: 10px 0 0;
	font-size: 12px;
	color: var(--ink-soft);
	border-top: 1px dashed var(--line-soft);
	padding-top: 8px;
	display: flex;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
}

/* --------------------------------------------------
   9. 评审通过清单
-------------------------------------------------- */
.acc-wrap { padding: 28px 30px; }
.acc-list { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 44px; }
.acc-list li {
	break-inside: avoid;
	display: flex;
	gap: 12px;
	padding: 13px 2px;
	border-bottom: 1px dashed var(--line-soft);
	font-size: 15px;
}
.acc-box {
	flex: none;
	width: 18px; height: 18px;
	margin-top: 5px;
	border: 1.5px solid var(--gray);
	background: var(--paper);
	position: relative;
}
.acc-box::after {
	content: "";
	position: absolute;
	left: 5px; top: 1px;
	width: 5px; height: 10px;
	border-right: 2px solid var(--violet-deep);
	border-bottom: 2px solid var(--violet-deep);
	transform: rotate(40deg);
}
.acc-list .acc-ok { color: var(--ink-soft); font-size: 12px; white-space: nowrap; margin-left: auto; padding-top: 4px; }

/* --------------------------------------------------
   10. 卡片网格:组件卡 / 案例验收单 / 日志
-------------------------------------------------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.comp-card { display: flex; flex-direction: column; }
.comp-card .ph { border-left: 0; border-right: 0; border-top: 0; }
.comp-thumb { margin: 0; }
.comp-thumb img { width: 100%; aspect-ratio: 8 / 5; object-fit: cover; }
.comp-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.comp-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.comp-title { font-size: 17px; margin: 0; }
.comp-title a { color: var(--ink); }
.comp-title a:hover { color: var(--violet-deep); }
.attr-rows { list-style: none; margin: 0; padding: 0; font-size: 13px; }
.attr-rows li {
	display: flex;
	justify-content: space-between;
	gap: 14px;
	padding: 6px 0;
	border-bottom: 1px dashed var(--line-soft);
}
.attr-rows .k { color: var(--ink-soft); flex: none; }
.attr-rows .v { text-align: right; }
.comp-foot { margin-top: auto; padding-top: 10px; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.comp-more { font-size: 13px; }
.case-card { padding: 22px 24px; display: flex; flex-direction: column; gap: 12px; }
.case-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; border-bottom: 1px solid var(--line-soft); padding-bottom: 10px; }
.case-title { font-size: 16px; margin: 0; }
.case-rows { margin: 0; }
.case-rows > div { display: flex; gap: 12px; padding: 7px 0; border-bottom: 1px dashed var(--line-soft); font-size: 14px; }
.case-rows dt { flex: none; width: 5.2em; color: var(--ink-soft); }
.case-rows dd { margin: 0; }
.case-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 4px; }
.case-date { font-size: 12px; color: var(--ink-soft); }
.log-card { padding: 20px 22px; display: flex; flex-direction: column; gap: 8px; }
.log-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 12px; color: var(--ink-soft); }
.log-title { font-size: 17px; margin: 0; }
.log-title a { color: var(--ink); }
.log-title a:hover { color: var(--violet-deep); }
.log-card p { margin: 0; font-size: 14px; color: var(--ink-soft); }

/* --------------------------------------------------
   11. 流程稿(流程图)
-------------------------------------------------- */
.flow-wrap { padding: 34px 26px 28px; }
.flow {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 6px 0;
}
.flow-node {
	border: 1px solid var(--gray);
	background: var(--paper);
	padding: 12px 16px;
	font-size: 14px;
	text-align: center;
	min-width: 104px;
	position: relative;
}
.flow-node small { display: block; font-size: 12px; color: var(--ink-soft); }
.flow-start { border-radius: 999px; }
.flow-dec {
	flex: none;
	width: 96px; height: 96px;
	display: grid;
	place-items: center;
	position: relative;
}
.flow-dec::before {
	content: "";
	position: absolute;
	inset: 14px;
	border: 1px solid var(--gray);
	background: var(--paper);
	transform: rotate(45deg);
}
.flow-dec span { position: relative; font-size: 13px; text-align: center; line-height: 1.35; }
.flow-arr {
	flex: none;
	width: 34px; height: 2px;
	background: var(--gray);
	position: relative;
	margin: 0 2px;
}
.flow-arr::after {
	content: "";
	position: absolute;
	right: -1px; top: -4px;
	border-left: 7px solid var(--gray);
	border-top: 5px solid transparent;
	border-bottom: 5px solid transparent;
}
.flow-back {
	margin: 18px auto 0;
	text-align: center;
	font-size: 12px;
	color: var(--ink-soft);
	border-top: 1px dashed var(--line);
	max-width: 520px;
	padding-top: 8px;
}
.flow-legend { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 16px; font-size: 12px; color: var(--ink-soft); justify-content: center; }
.flow-legend span { display: inline-flex; align-items: center; gap: 6px; }
.lg-rect { width: 14px; height: 10px; border: 1px solid var(--gray); display: inline-block; }
.lg-dia { width: 10px; height: 10px; border: 1px solid var(--gray); transform: rotate(45deg); display: inline-block; }
.lg-note { width: 10px; height: 10px; border: 1px solid var(--violet); display: inline-block; }

/* --------------------------------------------------
   12. BOM 表
-------------------------------------------------- */
.bom-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.spec-table { font-size: 14px; background: var(--paper); }
.spec-table th, .spec-table td { border: 1px solid var(--line-soft); padding: 9px 12px; text-align: left; vertical-align: top; }
.spec-table th { background: var(--field); font-size: 12px; font-weight: 600; color: var(--ink-soft); letter-spacing: .06em; }
.spec-table .hl td { background: var(--violet-tint); }
.bom-note { max-width: none; }

/* --------------------------------------------------
   13. 发起需求(待定区)
-------------------------------------------------- */
.contact-box { padding: 40px 34px; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 36px; background: var(--paper); }
.contact-rows { list-style: none; margin: 0 0 4px; padding: 0; font-size: 15px; }
.contact-rows li { display: flex; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--line-soft); }
.contact-rows .k { flex: none; width: 4.4em; color: var(--ink-soft); font-size: 13px; padding-top: 2px; }
.contact-aside { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }

/* --------------------------------------------------
   14. 内页 / 博客布局
-------------------------------------------------- */
.page-head { padding: 52px 0 8px; }
.page-head .chip { margin-bottom: 12px; }
.page-title { margin-bottom: .3em; }
.page-desc { color: var(--ink-soft); max-width: 640px; }
.layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 300px;
	gap: 36px;
	padding: 40px 0 72px;
	align-items: start;
}
.layout--single { grid-template-columns: minmax(0, 1fr); max-width: 860px; margin: 0 auto; }
.stream { display: grid; gap: 22px; }
.post-card { padding: 22px 24px; }
.post-card .log-meta { margin-bottom: 6px; }
.post-card h2 { font-size: 20px; margin: 0 0 .4em; }
.post-card h2 a { color: var(--ink); }
.post-card h2 a:hover { color: var(--violet-deep); }
.post-card .more-link { font-size: 13px; }
.entry { padding: 30px 32px 34px; }
.entry-head { margin-bottom: 22px; border-bottom: 1px solid var(--line-soft); padding-bottom: 16px; }
.entry-head .log-meta { margin: 10px 0 0; }
.entry-content { font-size: 16px; }
.entry-content h2, .entry-content h3 { margin-top: 1.6em; }
.entry-content h2 { font-size: 24px; }
.entry-content a { text-decoration: underline; text-underline-offset: 3px; }
.entry-content img { border: 1px solid var(--line); }
.entry-content blockquote {
	margin: 1.4em 0;
	padding: 14px 18px 14px 20px;
	border: 1px solid var(--violet);
	border-left-width: 3px;
	background: var(--violet-tint);
	font-size: 15px;
}
.entry-content blockquote p:last-child { margin-bottom: 0; }
.entry-content table td, .entry-content table th { border: 1px solid var(--line-soft); padding: 8px 12px; }
.entry-content pre {
	background: var(--field);
	border: 1px dashed var(--line);
	padding: 14px 16px;
	overflow: auto;
	font-size: 13px;
}
.entry-foot { margin-top: 26px; padding-top: 14px; border-top: 1px dashed var(--line); display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 22px; }
.post-nav a { display: block; padding: 14px 16px; font-size: 14px; color: var(--ink); }
.post-nav a:hover { text-decoration: none; }
.post-nav .dir { display: block; font-size: 12px; color: var(--violet-deep); margin-bottom: 4px; }
.post-nav .is-next { text-align: right; }
.pagination, .nav-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; }
.nav-links .page-numbers {
	border: 1px solid var(--line);
	background: var(--paper);
	padding: 6px 13px;
	font-size: 14px;
	color: var(--ink);
}
.nav-links .page-numbers.current { border: 1.5px solid var(--violet); color: var(--violet-deep); font-weight: 600; }
.nav-links a.page-numbers:hover { background: var(--field); text-decoration: none; }

/* --------------------------------------------------
   15. 侧栏(批注区)
-------------------------------------------------- */
.sidebar { display: grid; gap: 20px; }
.widget { padding: 18px 20px; }
.widget-title {
	font-size: 13px;
	letter-spacing: .1em;
	color: var(--ink-soft);
	margin: 0 0 12px;
	padding-bottom: 8px;
	border-bottom: 1px dashed var(--line);
}
.widget ul { list-style: none; margin: 0; padding: 0; font-size: 14px; }
.widget li { padding: 6px 0; border-bottom: 1px dashed var(--line-soft); }
.widget li:last-child { border-bottom: 0; }
.widget a { color: var(--ink); }
.widget a:hover { color: var(--violet-deep); }
.sidebar .note { max-width: none; }

/* --------------------------------------------------
   16. 搜索
-------------------------------------------------- */
.search-form { padding: 16px 18px; }
.search-label { display: block; font-size: 12px; color: var(--ink-soft); letter-spacing: .08em; margin-bottom: 8px; }
.search-row { display: flex; gap: 10px; }
.search-field {
	flex: 1;
	min-width: 0;
	border: 1px solid var(--line);
	background: var(--bg);
	padding: 9px 12px;
}
.search-field:focus { border-color: var(--violet); outline: none; }
.search-submit { padding: 8px 18px; }
.search-report { margin: 14px 0 0; font-size: 14px; color: var(--ink-soft); }

/* --------------------------------------------------
   17. 404:线框稿阶段
-------------------------------------------------- */
.err-wrap { max-width: 760px; margin: 0 auto; padding: 64px 20px 88px; }
.err-box { padding: 40px 36px 36px; background: var(--paper); }
.err-code { font-size: clamp(56px, 10vw, 96px); font-weight: 600; color: var(--gray); line-height: 1; letter-spacing: .06em; margin-bottom: 10px; }
.err-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0; }
.err-box .search-form { margin-top: 8px; }
.err-note { margin-top: 26px; }

/* --------------------------------------------------
   18. 页脚
-------------------------------------------------- */
.site-foot { border-top: 1px solid var(--line); background: var(--paper); margin-top: 0; }
.foot-grid {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr;
	gap: 36px;
	padding: 52px 0 36px;
}
.foot-col h3 { font-size: 13px; letter-spacing: .1em; color: var(--ink-soft); margin-bottom: 14px; }
.foot-col p { font-size: 14px; color: var(--ink); margin-bottom: .7em; }
.foot-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.foot-brand .brand-mark { border-color: var(--gray); }
.foot-brand strong { font-size: 16px; font-weight: 600; }
.foot-supplier { font-size: 13px; color: var(--ink-soft); border: 1px dashed var(--line); padding: 12px 14px; margin-top: 14px; }
.site-foot .widget { border: 0; padding: 0; }
.foot-menu ul, .foot-list { list-style: none; margin: 0; padding: 0; font-size: 14px; }
.foot-menu li, .foot-list li { padding: 5px 0; }
.foot-menu a { color: var(--ink); }
.foot-menu a:hover { color: var(--violet-deep); }
.foot-list .k { color: var(--ink-soft); font-size: 12px; display: block; }
.foot-bar {
	border-top: 1px dashed var(--line);
	padding: 18px 0 26px;
}
.foot-bar-in { display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center; justify-content: space-between; }
.foot-bar p { margin: 0; font-size: 12px; color: var(--ink-soft); }

/* --------------------------------------------------
   19. WordPress 核心样式
-------------------------------------------------- */
.alignleft { float: left; margin: 0 20px 12px 0; }
.alignright { float: right; margin: 0 0 12px 20px; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.wp-caption { max-width: 100%; border: 1px solid var(--line); background: var(--paper); padding: 6px; }
.wp-caption img { margin: 0 auto; }
.wp-caption-text, .gallery-caption { font-size: 12px; color: var(--ink-soft); text-align: center; padding: 6px 4px 2px; margin: 0; }
.sticky .log-meta::before { content: "置顶 · "; color: var(--violet-deep); }
.bypostauthor { outline: 1px dashed var(--violet); }
.post-password-form input[type="password"] { border: 1px solid var(--line); padding: 8px 10px; }
.post-edit-link { font-size: 12px; }

/* --------------------------------------------------
   20. 动效:入场 / 编号脉冲(尊重 reduced-motion)
-------------------------------------------------- */
.reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: no-preference) {
	.js .reveal {
		opacity: 0;
		transform: translateY(14px);
		transition: opacity .5s ease, transform .5s ease;
	}
	.js .reveal.on { opacity: 1; transform: none; }
	.note-num, .num-badge { animation: yx-pulse 2.8s ease-in-out infinite; }
	@keyframes yx-pulse {
		0%, 100% { box-shadow: 0 0 0 0 rgba(109, 90, 230, .3); }
		55% { box-shadow: 0 0 0 7px rgba(109, 90, 230, 0); }
	}
}
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation: none !important; transition: none !important; }
}

/* --------------------------------------------------
   21. 响应式
-------------------------------------------------- */
@media (max-width: 1020px) {
	.grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.hero-grid { gap: 32px; }
}
@media (max-width: 860px) {
	.hero-grid, .bom-grid, .contact-box { grid-template-columns: minmax(0, 1fr); }
	.layout { grid-template-columns: minmax(0, 1fr); }
	.acc-list { columns: 1; }
	.foot-grid { grid-template-columns: 1fr 1fr; }
	.hero { padding-top: 48px; }
	.sec { padding: 56px 0; }
}
@media (max-width: 768px) {
	.nav-toggle { display: inline-flex; }
	.site-nav {
		position: absolute;
		left: 0; right: 0; top: 100%;
		background: var(--paper);
		border-bottom: 1px solid var(--line);
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		padding: 10px 20px 18px;
		display: none;
	}
	.nav-open .site-nav { display: flex; }
	.site-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
	.site-nav a { border: 0; border-bottom: 1px dashed var(--line-soft); padding: 12px 4px; }
	.site-nav .current-menu-item > a,
	.site-nav .current_page_item > a,
	.site-nav a[aria-current="page"] { border: 0; border-bottom: 1px dashed var(--violet); }
	.head-cta { margin-top: 14px; text-align: center; }
	.admin-bar .site-head { top: 46px; }
}
@media (max-width: 600px) {
	.grid-3, .grid-2, .post-nav { grid-template-columns: minmax(0, 1fr); }
	.foot-grid { grid-template-columns: 1fr; padding-top: 40px; }
	.flow { flex-direction: column; }
	.flow-arr { width: 2px; height: 26px; margin: 2px 0; }
	.flow-arr::after {
		right: auto; top: auto;
		left: -4px; bottom: -1px;
		border-left: 5px solid transparent;
		border-right: 5px solid transparent;
		border-top: 7px solid var(--gray);
		border-bottom: 0;
	}
	.entry { padding: 22px 18px 26px; }
	.acc-wrap, .flow-wrap { padding: 20px 16px; }
	.contact-box { padding: 26px 20px; }
	.hero-fig { padding: 14px 10px 10px; }
	.note { max-width: none; }
}
