/*
Theme Name: PackPro 包装工业
Theme URI: https://example.com/packpro
Author: PackPro Theme
Author URI: https://example.com
Description: 面向包装制造与包装服务企业的 WordPress 前台主题。不写死任何导航与联系方式，页头菜单、页面、产品、案例、联系方式均在后台维护；内置首页区块、产品中心、客户案例、响应式布局与无障碍基础支持。
Version: 1.1.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: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: packpro
Tags: business, custom-menu, custom-logo, featured-images, translation-ready, block-styles, wide-blocks
*/

/* ==========================================================================
   1. 设计变量
   ========================================================================== */
:root {
	--paper: #f6f3ea;
	--paper-deep: #efe9da;
	--surface: #ffffff;
	--ink: #111b18;
	--muted: #5c6b66;
	--brand: #0d3f36;
	--brand-600: #14584b;
	--brand-050: #e8f0ec;
	--accent: #c2661a;
	--accent-soft: #f3e2d2;
	--line: #e3ddce;
	--radius-sm: 8px;
	--radius: 14px;
	--radius-lg: 22px;
	--shadow-sm: 0 2px 10px rgba(17, 27, 24, 0.05);
	--shadow-md: 0 18px 40px -18px rgba(17, 27, 24, 0.35);
	--container: 1200px;
	--font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", sans-serif;
	--ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ==========================================================================
   2. 基础重置
   ========================================================================== */
*,
*::before,
*::after {
	box-sizing: border-box;
}

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

body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--font-sans);
	font-size: 16px;
	line-height: 1.75;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

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

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

a:hover {
	color: var(--accent);
}

h1,
h2,
h3,
h4,
h5 {
	margin: 0 0 0.6em;
	color: var(--ink);
	font-weight: 700;
	line-height: 1.28;
	letter-spacing: -0.01em;
}

p {
	margin: 0 0 1em;
}

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

figure {
	margin: 0;
}

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

button {
	cursor: pointer;
}

:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 3px;
	border-radius: 4px;
}

/* 无障碍工具类 */
.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	width: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	position: absolute !important;
	word-wrap: normal !important;
}

.skip-link:focus {
	background: var(--surface);
	clip: auto;
	clip-path: none;
	color: var(--brand);
	display: block;
	font-weight: 600;
	height: auto;
	left: 16px;
	padding: 12px 20px;
	top: 12px;
	width: auto;
	z-index: 100000;
	box-shadow: var(--shadow-md);
}

.container {
	width: 100%;
	max-width: var(--container);
	margin: 0 auto;
	padding: 0 clamp(18px, 4vw, 40px);
}

/* ==========================================================================
   3. 按钮
   ========================================================================== */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 12px 24px;
	border: 1px solid transparent;
	border-radius: var(--radius-sm);
	background: var(--brand);
	color: #fff;
	font-size: 0.95rem;
	font-weight: 600;
	line-height: 1.4;
	text-align: center;
	transition: background 0.2s var(--ease), color 0.2s var(--ease), transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.btn:hover {
	color: #fff;
	transform: translateY(-1px);
}

.btn-primary {
	background: var(--accent);
	box-shadow: 0 10px 22px -12px rgba(194, 102, 26, 0.85);
}

.btn-primary:hover {
	background: #a9550f;
}

.btn-outline {
	background: transparent;
	border-color: var(--brand);
	color: var(--brand);
}

.btn-outline:hover {
	background: var(--brand);
	color: #fff;
}

.btn-ghost {
	background: rgba(255, 255, 255, 0.08);
	border-color: rgba(255, 255, 255, 0.55);
	color: #fff;
	backdrop-filter: blur(4px);
}

.btn-ghost:hover {
	background: #fff;
	border-color: #fff;
	color: var(--brand);
}

.btn-light {
	background: #fff;
	color: var(--brand);
}

.btn-light:hover {
	background: var(--accent-soft);
	color: var(--brand);
}

.btn-lg {
	padding: 15px 32px;
	font-size: 1rem;
}

/* ==========================================================================
   4. 页头
   ========================================================================== */
.site-header {
	position: sticky;
	top: 0;
	z-index: 90;
	background: var(--surface);
	transition: box-shadow 0.25s var(--ease);
}

.site-header.is-stuck {
	box-shadow: 0 12px 30px -22px rgba(17, 27, 24, 0.6);
}

.topbar {
	background: var(--brand);
	color: rgba(255, 255, 255, 0.78);
	font-size: 0.82rem;
}

.topbar-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	min-height: 40px;
}

.topbar-note {
	margin: 0;
	letter-spacing: 0.04em;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.topbar-right {
	display: flex;
	align-items: center;
	gap: 18px;
	margin-left: auto;
}

.utility-menu {
	display: flex;
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.utility-menu a {
	color: rgba(255, 255, 255, 0.78);
	font-size: 0.82rem;
}

.utility-menu a:hover {
	color: #fff;
}

.topbar-link {
	display: inline-flex;
	align-items: baseline;
	gap: 6px;
	color: rgba(255, 255, 255, 0.78);
}

.topbar-link span {
	color: #fff;
	font-weight: 600;
	letter-spacing: 0.02em;
}

.topbar-link:hover {
	color: #fff;
}

.header-main {
	border-bottom: 1px solid var(--line);
}

.header-inner {
	display: flex;
	align-items: center;
	gap: 28px;
	min-height: 84px;
}

.site-branding {
	display: flex;
	align-items: center;
	flex-shrink: 0;
}

.site-branding img {
	max-height: 56px;
	width: auto;
}

.brand-name {
	font-size: 1.35rem;
	font-weight: 800;
	letter-spacing: -0.02em;
	color: var(--brand);
	line-height: 1.2;
}

.brand-name:hover {
	color: var(--brand);
}

/* 主导航 */
.main-nav {
	margin-left: auto;
}

.primary-menu {
	display: flex;
	align-items: center;
	gap: 4px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.primary-menu > li {
	position: relative;
}

.primary-menu > li > a {
	display: block;
	padding: 10px 14px;
	border-radius: var(--radius-sm);
	color: var(--ink);
	font-size: 0.95rem;
	font-weight: 600;
	white-space: nowrap;
}

.primary-menu > li > a:hover,
.primary-menu > li.current-menu-item > a,
.primary-menu > li.current_page_item > a,
.primary-menu > li.current-menu-ancestor > a {
	background: var(--brand-050);
	color: var(--brand);
}

/* 二级菜单 */
.primary-menu .sub-menu {
	position: absolute;
	top: calc(100% + 10px);
	left: 0;
	min-width: 210px;
	margin: 0;
	padding: 8px;
	list-style: none;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	box-shadow: var(--shadow-md);
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0.2s;
	z-index: 20;
}

.primary-menu li:hover > .sub-menu,
.primary-menu li:focus-within > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.primary-menu .sub-menu a {
	display: block;
	padding: 9px 12px;
	border-radius: 6px;
	color: var(--muted);
	font-size: 0.9rem;
	font-weight: 500;
}

.primary-menu .sub-menu a:hover {
	background: var(--paper);
	color: var(--brand);
}

.primary-menu .sub-menu .sub-menu {
	top: -8px;
	left: 100%;
}

.header-action {
	flex-shrink: 0;
}

.header-action .btn {
	flex-direction: column;
	gap: 0;
	padding: 9px 18px;
	line-height: 1.25;
}

.header-action .btn-label {
	font-size: 0.7rem;
	font-weight: 500;
	opacity: 0.85;
	letter-spacing: 0.08em;
}

.header-action .btn strong {
	font-size: 0.98rem;
	letter-spacing: 0.01em;
}

/* 移动端菜单按钮 */
.nav-toggle {
	display: none;
	align-items: center;
	gap: 10px;
	margin-left: auto;
	padding: 8px 12px;
	background: transparent;
	border: 1px solid var(--line);
	border-radius: var(--radius-sm);
	color: var(--ink);
	font-size: 0.85rem;
	font-weight: 600;
}

.nav-toggle-box {
	display: inline-flex;
	flex-direction: column;
	gap: 4px;
	width: 18px;
}

.nav-toggle-box span {
	display: block;
	height: 2px;
	background: var(--brand);
	border-radius: 2px;
	transition: transform 0.25s var(--ease), opacity 0.2s;
}

.nav-open .nav-toggle-box span:nth-child(1) {
	transform: translateY(6px) rotate(45deg);
}

.nav-open .nav-toggle-box span:nth-child(2) {
	opacity: 0;
}

.nav-open .nav-toggle-box span:nth-child(3) {
	transform: translateY(-6px) rotate(-45deg);
}

/* ==========================================================================
   5. 首页首屏
   ========================================================================== */
.hero {
	position: relative;
	overflow: hidden;
	background: linear-gradient(135deg, #0b3a32 0%, #10503f 55%, #0b3a32 100%);
	color: #fff;
	isolation: isolate;
}

.hero::after {
	content: "";
	position: absolute;
	inset: 0;
	background-image: repeating-linear-gradient(115deg, rgba(255, 255, 255, 0.055) 0 2px, transparent 2px 18px);
	opacity: 0.9;
	z-index: -1;
}

.hero-bg {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	transform: scale(1.02);
	z-index: -2;
}

.hero-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(100deg, rgba(8, 32, 27, 0.92) 0%, rgba(8, 32, 27, 0.72) 45%, rgba(8, 32, 27, 0.38) 100%);
	z-index: -1;
}

.hero-inner {
	position: relative;
	padding: clamp(64px, 11vw, 148px) 0 clamp(56px, 9vw, 120px);
}

.hero-text {
	max-width: 720px;
}

.hero-kicker {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 22px;
	padding: 6px 14px 6px 12px;
	border: 1px solid rgba(255, 255, 255, 0.28);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.08);
	color: #f6d9bd;
	font-size: 0.82rem;
	font-weight: 600;
	letter-spacing: 0.1em;
}

.hero-title {
	margin: 0 0 20px;
	color: #fff;
	font-size: clamp(2rem, 4.6vw, 3.55rem);
	line-height: 1.16;
	letter-spacing: -0.02em;
	text-wrap: balance;
}

.hero-sub {
	color: rgba(255, 255, 255, 0.84);
	font-size: clamp(1rem, 1.4vw, 1.12rem);
	line-height: 1.85;
	max-width: 62ch;
}

.hero-sub p:last-child {
	margin-bottom: 0;
}

.hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	margin-top: 34px;
}

/* ==========================================================================
   6. 通用区块
   ========================================================================== */
.section {
	padding: clamp(54px, 7.5vw, 96px) 0;
}

.section--products {
	background: var(--surface);
	border-bottom: 1px solid var(--line);
}

.section--cases {
	background: var(--paper-deep);
}

.front-intro {
	padding: clamp(48px, 7vw, 84px) 0;
	background: var(--surface);
}

.front-intro .entry-content {
	max-width: 860px;
	margin: 0 auto;
}

.section-head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: clamp(28px, 4vw, 44px);
}

.eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 12px;
	color: var(--accent);
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.16em;
}

.eyebrow::before {
	content: "";
	width: 26px;
	height: 2px;
	background: var(--accent);
}

.section-title {
	margin: 0;
	font-size: clamp(1.5rem, 2.8vw, 2.15rem);
	letter-spacing: -0.02em;
}

.section-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding-bottom: 4px;
	border-bottom: 1px solid var(--line);
	color: var(--muted);
	font-size: 0.9rem;
	font-weight: 600;
	white-space: nowrap;
}

.section-link span {
	transition: transform 0.2s var(--ease);
}

.section-link:hover {
	color: var(--accent);
	border-color: var(--accent);
}

.section-link:hover span {
	transform: translateX(4px);
}

/* 卡片网格 */
.card-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
	gap: clamp(18px, 2.4vw, 28px);
}

.card-grid--posts {
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

.card:hover {
	transform: translateY(-4px);
	border-color: #d3c9b2;
	box-shadow: var(--shadow-md);
}

.section--cases .card {
	background: #fffdf8;
}

.card-media {
	display: block;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: var(--paper-deep);
}

.card-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s var(--ease);
}

.card:hover .card-media img {
	transform: scale(1.045);
}

.card-media-empty {
	display: block;
	width: 100%;
	height: 100%;
	background-color: var(--paper-deep);
	background-image: repeating-linear-gradient(45deg, rgba(13, 63, 54, 0.07) 0 1px, transparent 1px 12px);
}

.card-body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 8px;
	padding: 22px 22px 24px;
}

.card-kicker {
	margin: 0;
	color: var(--accent);
	font-size: 0.76rem;
	font-weight: 700;
	letter-spacing: 0.12em;
}

.card-title {
	margin: 0;
	font-size: 1.1rem;
	line-height: 1.45;
}

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

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

.card-excerpt {
	margin: 0;
	color: var(--muted);
	font-size: 0.92rem;
	line-height: 1.75;
}

.card-more {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: auto;
	padding-top: 10px;
	color: var(--brand);
	font-size: 0.86rem;
	font-weight: 600;
}

.card-more span {
	transition: transform 0.2s var(--ease);
}

.card:hover .card-more span {
	transform: translateX(4px);
}

/* 首页关于区块 */
.about-grid {
	display: grid;
	grid-template-columns: 1.05fr 1fr;
	gap: clamp(28px, 5vw, 64px);
	align-items: center;
}

.about-media img,
.media-placeholder {
	width: 100%;
	aspect-ratio: 5 / 4;
	object-fit: cover;
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-md);
}

.media-placeholder {
	background-color: var(--paper-deep);
	background-image: repeating-linear-gradient(135deg, rgba(13, 63, 54, 0.08) 0 2px, transparent 2px 16px);
}

.about-text .section-title {
	margin-bottom: 18px;
}

.about-excerpt {
	color: var(--muted);
	font-size: 1rem;
	line-height: 1.9;
	margin-bottom: 26px;
}

/* 行动区块 */
.cta-band {
	position: relative;
	overflow: hidden;
	background: linear-gradient(120deg, #0c352d 0%, #14604f 100%);
	color: #fff;
	padding: clamp(40px, 6vw, 68px) 0;
	isolation: isolate;
}

.cta-band::after {
	content: "";
	position: absolute;
	inset: 0;
	background-image: radial-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px);
	background-size: 18px 18px;
	opacity: 0.5;
	z-index: -1;
}

.cta-inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 28px;
}

.cta-text h2 {
	margin: 0 0 8px;
	color: #fff;
	font-size: clamp(1.4rem, 2.6vw, 2rem);
}

.cta-desc {
	color: rgba(255, 255, 255, 0.82);
	max-width: 58ch;
}

.cta-desc p:last-child {
	margin-bottom: 0;
}

/* ==========================================================================
   7. 内页
   ========================================================================== */
.page-hero {
	padding: clamp(38px, 5vw, 64px) 0 clamp(32px, 4vw, 52px);
	background: var(--paper-deep);
	border-bottom: 1px solid var(--line);
	background-image: linear-gradient(rgba(255, 255, 255, 0.5) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.5) 1px, transparent 1px);
	background-size: 48px 48px;
}

.breadcrumb {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-bottom: 14px;
	color: var(--muted);
	font-size: 0.82rem;
}

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

.breadcrumb a:hover {
	color: var(--accent);
}

.breadcrumb .current {
	color: var(--ink);
	font-weight: 600;
}

.page-title {
	margin: 0;
	font-size: clamp(1.7rem, 3.6vw, 2.7rem);
	letter-spacing: -0.02em;
}

.page-subtitle {
	margin: 12px 0 0;
	color: var(--muted);
	font-size: 1rem;
	max-width: 70ch;
}

.page-search {
	max-width: 460px;
	margin-top: 22px;
}

.content-wrap {
	padding: clamp(38px, 5vw, 64px) 0 clamp(52px, 7vw, 88px);
	display: block;
}

.content-wrap.has-sidebar {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 320px;
	gap: clamp(28px, 4vw, 52px);
	align-items: start;
}

.content-wrap--full {
	padding-top: 0;
}

.entry {
	min-width: 0;
}

.entry-media {
	margin: 0 0 30px;
	overflow: hidden;
	border-radius: var(--radius);
}

.entry-media img {
	width: 100%;
}

.entry-content {
	font-size: 1.02rem;
	line-height: 1.9;
	color: #23302c;
	overflow-wrap: break-word;
}

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

.entry-content h2 {
	margin: 1.8em 0 0.7em;
	font-size: 1.5rem;
}

.entry-content h3 {
	margin: 1.6em 0 0.6em;
	font-size: 1.22rem;
}

.entry-content h4 {
	margin: 1.4em 0 0.5em;
	font-size: 1.06rem;
}

.entry-content a {
	color: var(--brand-600);
	text-decoration: underline;
	text-decoration-color: rgba(20, 88, 75, 0.35);
	text-underline-offset: 3px;
}

.entry-content a:hover {
	color: var(--accent);
}

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

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

.entry-content blockquote {
	margin: 1.8em 0;
	padding: 18px 24px;
	border-left: 3px solid var(--accent);
	background: var(--surface);
	border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
	color: var(--muted);
	font-style: normal;
}

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

.entry-content img,
.entry-content .wp-block-image img {
	border-radius: var(--radius-sm);
}

.entry-content figure {
	margin: 1.6em 0;
}

.entry-content figcaption {
	margin-top: 8px;
	color: var(--muted);
	font-size: 0.84rem;
	text-align: center;
}

.entry-content table {
	width: 100%;
	border-collapse: collapse;
	margin: 1.6em 0;
	font-size: 0.95rem;
}

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

.entry-content th {
	background: var(--paper-deep);
	font-weight: 700;
}

.entry-content hr {
	margin: 2.4em 0;
	border: 0;
	border-top: 1px solid var(--line);
}

.entry-content code {
	padding: 2px 6px;
	background: var(--paper-deep);
	border-radius: 4px;
	font-size: 0.9em;
}

.entry-content pre {
	padding: 18px 20px;
	background: #10201c;
	color: #e8f0ec;
	border-radius: var(--radius-sm);
	overflow: auto;
}

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

.entry-content .alignwide {
	width: min(100%, 1080px);
	margin-left: auto;
	margin-right: auto;
}

.entry-content .alignfull {
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
}

.entry-content .alignleft {
	float: left;
	margin: 0 24px 16px 0;
}

.entry-content .alignright {
	float: right;
	margin: 0 0 16px 24px;
}

.entry-content .aligncenter {
	margin-left: auto;
	margin-right: auto;
}

.entry-content .wp-block-button__link {
	display: inline-block;
	padding: 12px 26px;
	border-radius: var(--radius-sm);
	background: var(--brand);
	color: #fff;
	text-decoration: none;
	font-weight: 600;
}

.entry-content .wp-block-button__link:hover {
	background: var(--accent);
	color: #fff;
}

.entry-content .wp-block-columns {
	display: flex;
	flex-wrap: wrap;
	gap: 24px;
}

.entry-content .wp-block-column {
	flex: 1 1 240px;
}

.entry-meta {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 22px;
	color: var(--muted);
	font-size: 0.86rem;
}

.meta-sep {
	color: var(--line);
}

.entry-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 34px;
	padding-top: 22px;
	border-top: 1px solid var(--line);
}

.tag {
	padding: 5px 12px;
	border: 1px solid var(--line);
	border-radius: 999px;
	color: var(--muted);
	font-size: 0.82rem;
}

.tag:hover {
	border-color: var(--accent);
	color: var(--accent);
}

/* 筛选标签 */
.chip-list {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0 0 30px;
	padding: 0;
	list-style: none;
}

.content-wrap > .chip-list:first-child {
	margin-top: -8px;
}

.chip {
	display: inline-block;
	padding: 8px 18px;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: var(--surface);
	color: var(--muted);
	font-size: 0.86rem;
	font-weight: 600;
}

.chip:hover {
	border-color: var(--brand);
	color: var(--brand);
}

.chip.is-active {
	background: var(--brand);
	border-color: var(--brand);
	color: #fff;
}

/* 分页 */
.pagination,
.page-links {
	margin: 44px 0 0;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: center;
}

.pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 42px;
	height: 42px;
	padding: 0 14px;
	border: 1px solid var(--line);
	border-radius: var(--radius-sm);
	background: var(--surface);
	color: var(--ink);
	font-size: 0.9rem;
	font-weight: 600;
}

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

.pagination .page-numbers.current {
	background: var(--brand);
	border-color: var(--brand);
	color: #fff;
}

.pagination .page-numbers.dots {
	border-color: transparent;
	background: transparent;
}

/* 上一篇 / 下一篇 */
.post-nav {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 16px;
	margin-bottom: clamp(40px, 6vw, 72px);
}

.post-nav-item {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 20px 22px;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.post-nav-item:hover {
	border-color: var(--brand);
	transform: translateY(-2px);
}

.post-nav-item--next {
	text-align: right;
}

.post-nav-label {
	color: var(--accent);
	font-size: 0.76rem;
	font-weight: 700;
	letter-spacing: 0.1em;
}

.post-nav-title {
	color: var(--ink);
	font-size: 0.95rem;
	font-weight: 600;
}

/* 侧边栏 */
.sidebar {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.sidebar .widget,
.widget {
	padding: 24px;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius);
}

.widget-title,
.footer-title {
	margin: 0 0 14px;
	font-size: 1rem;
	letter-spacing: 0.01em;
}

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

.widget li {
	padding: 8px 0;
	border-bottom: 1px dashed var(--line);
	font-size: 0.92rem;
}

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

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

.widget a:hover {
	color: var(--accent);
}

/* 表单 */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="tel"],
input[type="number"],
input[type="search"],
input[type="password"],
textarea,
select {
	width: 100%;
	padding: 12px 14px;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius-sm);
	font-size: 0.95rem;
	line-height: 1.6;
	transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

input:focus,
textarea:focus,
select:focus {
	border-color: var(--brand);
	box-shadow: 0 0 0 3px rgba(13, 63, 54, 0.12);
	outline: none;
}

textarea {
	min-height: 120px;
	resize: vertical;
}

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

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

.search-submit {
	padding: 0 22px;
	background: var(--brand);
	border: 0;
	border-radius: var(--radius-sm);
	color: #fff;
	font-size: 0.9rem;
	font-weight: 600;
	white-space: nowrap;
}

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

.result-count {
	color: var(--muted);
	font-size: 0.9rem;
	margin-bottom: 22px;
}

/* 空状态 */
.empty-state {
	padding: 40px 28px;
	background: var(--surface);
	border: 1px dashed #cfc6b1;
	border-radius: var(--radius);
	text-align: center;
	color: var(--muted);
}

.empty-state p {
	margin: 0 0 12px;
}

.empty-state-admin {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: center;
}

.empty-state-admin .btn {
	padding: 9px 18px;
	font-size: 0.86rem;
}

/* 404 */
.error-page {
	padding: clamp(56px, 9vw, 110px) 0;
	background: var(--paper-deep);
}

.error-inner {
	max-width: 680px;
	text-align: center;
}

.error-code {
	margin: 0;
	color: var(--accent);
	font-size: clamp(3.5rem, 10vw, 6rem);
	font-weight: 800;
	line-height: 1;
	letter-spacing: -0.04em;
}

.error-desc {
	color: var(--muted);
	margin: 14px 0 26px;
}

.error-search {
	max-width: 420px;
	margin: 0 auto 24px;
}

/* 评论 */
.comments-wrap {
	padding-bottom: clamp(40px, 6vw, 72px);
}

.comments-area {
	max-width: 820px;
	padding-top: 32px;
	border-top: 1px solid var(--line);
}

.comments-title,
.comment-reply-title {
	font-size: 1.15rem;
}

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

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

.comment-list .children {
	margin-top: 10px;
	padding-left: 24px;
	list-style: none;
}

.comment-author {
	display: flex;
	align-items: center;
	gap: 10px;
	font-weight: 600;
}

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

.comment-metadata {
	margin: 4px 0 10px;
	color: var(--muted);
	font-size: 0.82rem;
}

.comment-form p {
	margin-bottom: 16px;
}

.comment-form label {
	display: block;
	margin-bottom: 6px;
	font-size: 0.88rem;
	font-weight: 600;
}

.comment-form input[type="submit"] {
	padding: 12px 28px;
	background: var(--brand);
	border: 0;
	border-radius: var(--radius-sm);
	color: #fff;
	font-weight: 600;
}

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

/* ==========================================================================
   8. 页脚
   ========================================================================== */
.site-footer {
	background: #0b1c18;
	color: rgba(232, 240, 236, 0.72);
	font-size: 0.92rem;
}

.footer-grid {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr 1.25fr;
	gap: clamp(24px, 4vw, 48px);
	padding: clamp(44px, 6vw, 72px) 0 clamp(32px, 4vw, 52px);
}

.footer-logo {
	margin: 0 0 14px;
	color: #fff;
	font-size: 1.2rem;
	font-weight: 800;
	letter-spacing: -0.01em;
}

.footer-about {
	color: rgba(232, 240, 236, 0.66);
	line-height: 1.85;
	max-width: 34ch;
}

.footer-title {
	color: #fff;
	font-size: 0.95rem;
	font-weight: 700;
}

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

.footer-menu li {
	margin-bottom: 10px;
}

.footer-menu a {
	color: rgba(232, 240, 236, 0.72);
	font-size: 0.9rem;
}

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

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

.contact-list li {
	display: flex;
	gap: 10px;
	margin-bottom: 12px;
	line-height: 1.7;
}

.contact-label {
	flex-shrink: 0;
	color: rgba(232, 240, 236, 0.45);
	font-size: 0.82rem;
	padding-top: 2px;
}

.contact-list a,
.contact-list span {
	color: rgba(232, 240, 236, 0.85);
}

.contact-list a:hover {
	color: #f0c9a3;
}

.footer-hint {
	color: rgba(232, 240, 236, 0.42);
	font-size: 0.84rem;
}

.footer-bottom {
	border-top: 1px solid rgba(232, 240, 236, 0.12);
}

.footer-bottom-inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 20px 0;
	font-size: 0.82rem;
}

.footer-bottom-inner p {
	margin: 0;
}

.footer-icp a {
	color: rgba(232, 240, 236, 0.55);
}

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

/* ==========================================================================
   9. WordPress 核心类
   ========================================================================== */
.alignleft {
	float: left;
	margin: 0 24px 16px 0;
}

.alignright {
	float: right;
	margin: 0 0 16px 24px;
}

.aligncenter {
	display: block;
	margin-left: auto;
	margin-right: auto;
}

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

.wp-caption-text {
	color: var(--muted);
	font-size: 0.84rem;
	text-align: center;
}

.sticky .card-title::before {
	content: "★ ";
	color: var(--accent);
}

.gallery {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
	gap: 12px;
	margin-bottom: 24px;
}

.gallery-item {
	margin: 0;
}

/* ==========================================================================
   10. 动效
   ========================================================================== */
.reveal {
	opacity: 0;
	transform: translateY(18px);
	transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

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

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

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

	.reveal {
		opacity: 1;
		transform: none;
	}
}

/* ==========================================================================
   11. 响应式
   ========================================================================== */
@media (max-width: 1080px) {
	.header-inner {
		gap: 18px;
	}

	.primary-menu > li > a {
		padding: 10px 10px;
		font-size: 0.92rem;
	}
}

@media (max-width: 980px) {
	.topbar-note {
		display: none;
	}

	.topbar-inner {
		justify-content: flex-end;
	}

	.header-inner {
		flex-wrap: wrap;
		min-height: 72px;
		padding-top: 12px;
		padding-bottom: 12px;
	}

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

	.main-nav {
		order: 10;
		display: none;
		width: 100%;
		margin: 8px 0 0;
		padding: 12px 0 4px;
		border-top: 1px solid var(--line);
	}

	.nav-open .main-nav {
		display: block;
	}

	.primary-menu {
		flex-direction: column;
		align-items: stretch;
		gap: 2px;
	}

	.primary-menu > li > a {
		padding: 12px 12px;
	}

	.primary-menu .sub-menu {
		position: static;
		display: block;
		opacity: 1;
		visibility: visible;
		transform: none;
		box-shadow: none;
		border: 0;
		border-left: 2px solid var(--line);
		border-radius: 0;
		margin: 2px 0 6px 12px;
		padding: 0 0 0 10px;
		min-width: 0;
	}

	.primary-menu .sub-menu .sub-menu {
		left: auto;
		top: auto;
	}

	.content-wrap.has-sidebar {
		grid-template-columns: minmax(0, 1fr);
	}

	.sidebar {
		flex-direction: row;
		flex-wrap: wrap;
	}

	.sidebar .widget {
		flex: 1 1 260px;
	}

	.about-grid {
		grid-template-columns: 1fr;
	}

	.about-media {
		order: -1;
	}

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

	.header-action {
		display: none;
	}
}

@media (max-width: 640px) {
	.topbar {
		font-size: 0.76rem;
	}

	.topbar-right {
		gap: 12px;
	}

	.topbar-link .contact-label,
	.utility-menu {
		display: none;
	}

	.hero-inner {
		padding: 54px 0 60px;
	}

	.hero-actions .btn {
		flex: 1 1 100%;
	}

	.card-grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.section-head {
		flex-direction: column;
		align-items: flex-start;
		gap: 12px;
	}

	.footer-grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 30px;
	}

	.footer-bottom-inner {
		flex-direction: column;
		align-items: flex-start;
	}

	.entry-content {
		font-size: 0.98rem;
	}

	.sidebar {
		flex-direction: column;
	}
}
