/* ============================================================
   WANHAO PLASTIC — inner page base
   Shared shell: page banner, headings, buttons, filters,
   pagination, prose — everything below builds on style.css
   ============================================================ */

body {
	background: #fff;
}

/* ---------- Header active state ---------- */
.topbar-nav a.is-active::after {
	width: 100%;
}

/* ============================================================
   PAGE HERO
   ============================================================ */
.page-hero {
	position: relative;
	display: flex;
	align-items: flex-end;
	min-height: clamp(340px, 42vw, 520px);
	margin-top: calc(-1 * (34px + var(--topbar)));
	padding-top: calc(34px + var(--topbar));
	overflow: hidden;
	background: #1a1208;
	border-bottom: 1px solid var(--line);
}

.page-hero-bg {
	position: absolute;
	inset: 0;
	z-index: 1;
}

.page-hero-bg img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	filter: brightness(0.62) saturate(1.02);
	transform: scale(1.06);
	animation: heroZoom 14s var(--ease) forwards;
}

.page-hero::after {
	content: '';
	position: absolute;
	inset: 0;
	z-index: 2;
	background: linear-gradient(90deg, rgba(0, 0, 0, 0.74) 0%, rgba(0, 0, 0, 0.38) 46%, rgba(0, 0, 0, 0.1) 78%), linear-gradient(180deg, rgba(0, 0, 0, 0.56) 0%, rgba(0, 0, 0, 0.12) 42%, rgba(0, 0, 0, 0.58) 100%);
	pointer-events: none;
}

.page-hero-inner {
	position: relative;
	z-index: 3;
	width: 100%;
	padding-top: clamp(58px, 8vw, 108px);
	padding-bottom: clamp(26px, 3.4vw, 42px);
}

.page-kicker {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	font-family: var(--mono);
	font-size: 12.5px;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--amber-1);
}

.page-kicker::after {
	content: '';
	width: 46px;
	height: 1px;
	background: rgba(255, 176, 32, 0.55);
}

.page-hero h1 {
	margin-top: 18px;
	font-family: var(--display);
	font-weight: 900;
	/* font-size: clamp(38px, 6.2vw, 86px); */
	font-size: 30px;
	line-height: 0.98;
	/* letter-spacing: -0.02em; */
	/* text-transform: uppercase; */
	color: #fff;
	text-shadow: 0 4px 30px rgba(0, 0, 0, 0.45);
}

.page-hero h1 em {
	color: var(--amber-1);
}

.page-lead {
	margin-top: clamp(14px, 1.8vw, 22px);
	max-width: 64ch;
	font-size: clamp(14.5px, 1.5vw, 18px);
	line-height: 1.72;
	color: rgba(255, 255, 255, 0.8);
}

.page-crumb {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin-top: clamp(24px, 3vw, 40px);
	font-family: var(--mono);
	font-size: 12px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.5);
}

.page-crumb a {
	color: rgba(255, 255, 255, 0.68);
	transition: color 0.3s;
}

.page-crumb a:hover {
	color: var(--amber-1);
}

.page-crumb i {
	font-style: normal;
	opacity: 0.5;
}

.page-crumb .is-current {
	color: #fff;
}

/* ============================================================
   SECTION HEADS / TEXT
   ============================================================ */
.section--tight {
	padding: clamp(38px, 5.4vw, 70px) 0;
}

.section--flush {
	padding-bottom: 0;
	border-bottom: 0;
}

.section--tint {
	background: var(--ink);
}

.section--warm {
	background: linear-gradient(180deg, #faf7f1 0%, #f1ebe0 100%);
}

.inner-head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 18px;
	padding-bottom: clamp(16px, 2vw, 24px);
	margin-bottom: clamp(26px, 3.2vw, 44px);
	border-bottom: 1px solid var(--line);
}

.inner-head .sec-index {
	margin-bottom: 0;
}

.inner-head h2 {
	margin-top: 10px;
	font-family: var(--display);
	font-weight: 800;
	font-size: clamp(26px, 3.2vw, 40px);
	line-height: 1.05;
	letter-spacing: -0.02em;
	text-transform: uppercase;
}

.inner-head h2 em {
	color: var(--brass);
}

.inner-head p {
	max-width: 46ch;
	font-size: 14.5px;
	line-height: 1.7;
	color: var(--ivory-45);
	text-align: right;
}

.lead {
	font-size: clamp(16px, 1.35vw, 19px);
	line-height: 1.8;
	color: var(--ivory-70);
}

.eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	font-family: var(--mono);
	font-size: 12.5px;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--brass);
}

.eyebrow::after {
	content: '';
	width: 40px;
	height: 1px;
	background: var(--line-strong);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	padding: 15px 26px;
	font-family: var(--mono);
	font-size: 12.5px;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	border-radius: 100px;
	transition: background 0.4s, color 0.4s, border-color 0.4s, transform 0.45s var(--ease), gap 0.4s var(--ease);
}

.btn svg {
	width: 14px;
	height: 14px;
	fill: currentColor;
	flex-shrink: 0;
}

.btn--dark {
	background: #2a1600;
	color: #ffd489;
	box-shadow: 0 14px 28px rgba(74, 38, 0, 0.2);
}

.btn--dark:hover {
	background: #3e2200;
	color: #fff1d4;
	transform: translateY(-2px);
	gap: 18px;
}

.btn--ghost {
	border: 1px solid var(--line-strong);
	color: var(--ivory);
}

.btn--ghost:hover {
	border-color: var(--brass);
	color: var(--brass);
	gap: 18px;
}

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

.btn--light:hover {
	background: var(--amber-1);
	color: #2a1600;
	gap: 18px;
}

/* ============================================================
   FILTER BAR
   ============================================================ */
.filter-bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	padding-bottom: clamp(18px, 2.2vw, 26px);
	margin-bottom: clamp(24px, 3vw, 40px);
	border-bottom: 1px solid var(--line);
}

.filter-btn {
	padding: 9px 17px;
	border: 1px solid transparent;
	border-radius: 100px;
	background: none;
	font-family: var(--mono);
	font-size: 12px;
	/* letter-spacing: 0.1em; */
	text-transform: uppercase;
	color: var(--ivory-45);
	cursor: pointer;
	transition: color 0.3s, background 0.35s, border-color 0.35s;
}

.filter-btn:hover {
	color: var(--ivory);
	border-color: var(--line-strong);
}

.filter-btn.is-on {
	background: var(--ivory);
	border-color: var(--ivory);
	color: #fff;
}

.filter-count {
	margin-left: auto;
	font-family: var(--mono);
	font-size: 11.5px;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--ivory-25);
	white-space: nowrap;
}

.is-filtered-out {
	display: none !important;
}

/* ============================================================
   TAGS
   ============================================================ */
.tag {
	display: inline-flex;
	align-items: center;
	padding: 6px 12px;
	border: 1px solid var(--line);
	font-family: var(--mono);
	font-size: 11.5px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--ivory-45);
	transition: color 0.3s, border-color 0.3s;
}

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

/* ============================================================
   PAGINATION
   ============================================================ */
.pager {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	margin-top: clamp(34px, 4.4vw, 58px);
}

/* ---- showpage — 用户给定的原生结构 ---- */
.pager .showpage {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 8px;
	font-family: var(--mono);
	font-size: 13px;
	color: var(--ivory-55);
	line-height: 1;
}

/* 页码按钮 + 当前页 — 统一按钮样式 */
.pager .showpage a,
.pager .showpage .current {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	height: 44px;
	padding: 0 16px;
	border: 1px solid var(--line-strong);
	background: transparent;
	font-family: var(--mono);
	font-size: 12.5px;
	letter-spacing: 0.08em;
	color: var(--ivory-70);
	text-decoration: none;
	transition: color 0.3s, border-color 0.3s, background 0.35s, transform 0.25s;
}

.pager .showpage a:hover {
	border-color: var(--brass);
	color: var(--brass);
	transform: translateY(-2px);
}

/* 当前页高亮 */
.pager .showpage .current {
	background: var(--brass);
	border-color: var(--brass);
	color: #fff;
	font-weight: 600;
}

@media (max-width: 640px) {
	.pager .showpage a,
	.pager .showpage .current {
		min-width: 38px;
		height: 38px;
		padding: 0 12px;
		font-size: 11.5px;
	}

	.pager .showpage {
		gap: 6px;
		font-size: 12px;
	}
}

/* ============================================================
   PROSE (article / case body)
   ============================================================ */
.prose {
	font-size: 16px;
	line-height: 1.88;
	color: var(--ivory-70);
}

.prose > * + * {
	margin-top: 20px;
}

.prose h2 {
	margin-top: clamp(34px, 4vw, 52px);
	font-family: var(--display);
	font-weight: 700;
	font-size: clamp(22px, 2.2vw, 29px);
	line-height: 1.16;
	letter-spacing: -0.015em;
	color: var(--ivory);
}

.prose h3 {
	margin-top: 30px;
	font-family: var(--display);
	font-weight: 700;
	font-size: clamp(18px, 1.6vw, 21px);
	line-height: 1.25;
	color: var(--ivory);
}

.prose p strong {
	color: var(--ivory);
	font-weight: 600;
}

.prose ul,
.prose ol {
	list-style: none;
	padding-left: 0;
}

.prose ul li,
.prose ol li {
	position: relative;
	padding-left: 22px;
	margin-bottom: 8px;
}

.prose ul li::before {
	content: '';
	position: absolute;
	left: 0;
	top: 0.78em;
	width: 8px;
	height: 1px;
	background: var(--brass);
}

.prose ol {
	counter-reset: prose-ol;
}

.prose ol li {
	counter-increment: prose-ol;
}

.prose ol li::before {
	content: counter(prose-ol, decimal-leading-zero);
	position: absolute;
	left: 0;
	top: 0;
	font-family: var(--mono);
	font-size: 12px;
	color: var(--brass);
}

.prose blockquote {
	margin: clamp(30px, 4vw, 46px) 0;
	padding: 4px 0 4px clamp(20px, 2.4vw, 30px);
	border-left: 2px solid var(--brass);
	font-family: var(--display);
	font-weight: 500;
	font-size: clamp(19px, 2vw, 24px);
	line-height: 1.5;
	letter-spacing: -0.01em;
	color: var(--ivory);
}

.prose figure {
	margin: clamp(28px, 3.4vw, 44px) 0;
}

.prose figure img {
	width: 100%;
}

.prose figcaption {
	margin-top: 12px;
	font-family: var(--mono);
	font-size: 11.5px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--ivory-25);
}

.prose a {
	color: var(--ivory);
	border-bottom: 1px solid var(--brass);
	transition: color 0.3s;
}

.prose a:hover {
	color: var(--brass);
}

/* ============================================================
   MISC SHARED
   ============================================================ */
.img-caption {
	margin-top: 12px;
	font-family: var(--mono);
	font-size: 11.5px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--ivory-25);
}

.split-2 {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: clamp(28px, 5vw, 84px);
	align-items: center;
}

.stat-row {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: clamp(18px, 2.4vw, 34px);
}

.stat-item b {
	display: block;
	font-family: var(--display);
	font-weight: 900;
	font-size: clamp(30px, 3.4vw, 48px);
	line-height: 1;
	letter-spacing: -0.02em;
	color: var(--ivory);
}

.stat-item b sup {
	font-size: 0.42em;
	font-weight: 700;
	vertical-align: super;
}

.stat-item span {
	display: block;
	margin-top: 10px;
	font-family: var(--mono);
	font-size: 11.5px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--ivory-45);
}

/* underline-style form base */
.field {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.field label {
	font-family: var(--mono);
	font-size: 11.5px;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--ivory-45);
}

.field input,
.field select,
.field textarea {
	width: 100%;
	padding: 12px 2px;
	border: 0;
	border-bottom: 1px solid var(--line-strong);
	border-radius: 0;
	background: transparent;
	font-family: var(--sans);
	font-size: 15px;
	color: var(--ivory);
	outline: none;
	transition: border-color 0.35s;
}

.field input::placeholder,
.field textarea::placeholder {
	color: var(--ivory-25);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
	border-color: var(--brass);
}

@media (max-width: 900px) {
	.page-hero {
		min-height: 300px;
	}

	.page-hero-inner {
		padding-bottom: 26px;
	}

	.inner-head p {
		text-align: left;
	}

	.split-2 {
		grid-template-columns: 1fr;
	}

	.stat-row {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 560px) {
	.page-hero {
		min-height: 260px;
	}

	.page-lead {
		font-size: 14px;
	}

	.filter-count {
		display: none;
	}

	.stat-row {
		grid-template-columns: 1fr;
	}
}
