/*
Theme Name: 排水网
Theme URI: https://paishui.com/
Author: 排水网
Description: 面向家庭排水决策的轻量、移动优先 WordPress 主题。
Version: 0.1.0
Requires at least: 6.6
Requires PHP: 8.1
Text Domain: paishui
*/

:root {
	--ps-primary: #0f766e;
	--ps-primary-dark: #0b5752;
	--ps-primary-soft: #e8f5f2;
	--ps-text: #172b2b;
	--ps-muted: #526665;
	--ps-border: #dbe5e3;
	--ps-surface: #f4f8f7;
	--ps-warning: #b7791f;
	--ps-danger: #b23b3b;
	--ps-radius: 16px;
	--ps-content: 1120px;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	color: var(--ps-text);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
	font-size: 16px;
	line-height: 1.75;
	background: #fff;
	-webkit-font-smoothing: antialiased;
}

body.admin-bar .site-header {
	top: 32px;
}

a {
	color: var(--ps-primary-dark);
	text-underline-offset: .18em;
}

a:hover {
	color: var(--ps-primary);
}

img {
	max-width: 100%;
	height: auto;
}

button,
input,
textarea,
select {
	font: inherit;
}

:focus-visible {
	outline: 3px solid #f2bd4b;
	outline-offset: 3px;
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.screen-reader-text:focus {
	top: 8px;
	left: 8px;
	z-index: 100000;
	width: auto;
	height: auto;
	padding: .75rem 1rem;
	clip: auto;
	background: #fff;
}

.ps-container {
	width: min(calc(100% - 2rem), var(--ps-content));
	margin-inline: auto;
}

.site-header {
	position: sticky;
	top: 0;
	z-index: 20;
	background: rgb(255 255 255 / 94%);
	border-bottom: 1px solid var(--ps-border);
	backdrop-filter: blur(10px);
}

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 68px;
	gap: 1.5rem;
}

.site-branding a {
	display: inline-flex;
	align-items: center;
	gap: .55rem;
	color: var(--ps-text);
	font-size: 1.2rem;
	font-weight: 800;
	text-decoration: none;
}

.site-branding a::before {
	width: 30px;
	height: 30px;
	content: "";
	background: var(--ps-primary);
	border-radius: 50% 50% 50% 12%;
	transform: rotate(45deg);
}

.custom-logo-link::before {
	display: none;
}

.custom-logo {
	max-height: 40px;
	width: auto;
}

.site-nav ul {
	display: flex;
	align-items: center;
	gap: 1.4rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-nav a {
	color: var(--ps-text);
	font-size: .94rem;
	font-weight: 650;
	text-decoration: none;
}

.site-nav .menu-item-cta a {
	padding: .45rem .8rem;
	color: #fff;
	background: var(--ps-primary);
	border-radius: 8px;
}

.site-main {
	min-height: 65vh;
}

.hero {
	padding-block: clamp(4rem, 10vw, 7rem);
	background: linear-gradient(145deg, #f3faf8 0%, #fff 62%, #f7f4ea 100%);
	border-bottom: 1px solid var(--ps-border);
}

.hero__content {
	max-width: 760px;
}

.hero__eyebrow,
.section-eyebrow {
	margin: 0 0 .5rem;
	color: var(--ps-primary);
	font-size: .82rem;
	font-weight: 800;
	letter-spacing: .08em;
}

.hero h1 {
	max-width: 720px;
	margin: 0;
	font-size: clamp(2.25rem, 8vw, 4.6rem);
	line-height: 1.08;
	letter-spacing: -.035em;
}

.hero__lead {
	max-width: 660px;
	margin-block: 1.25rem 1.8rem;
	color: var(--ps-muted);
	font-size: clamp(1.05rem, 3vw, 1.25rem);
}

.hero__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1rem;
}

.ps-cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 50px;
	padding: .8rem 1.2rem;
	color: #fff;
	font-weight: 750;
	text-decoration: none;
	background: var(--ps-primary);
	border-radius: 10px;
	box-shadow: 0 9px 24px rgb(15 118 110 / 20%);
}

.ps-cta:hover,
.ps-cta:focus-visible {
	color: #fff;
	background: var(--ps-primary-dark);
}

.hero__promise {
	color: var(--ps-muted);
	font-size: .92rem;
}

.home-section {
	padding-block: clamp(3.5rem, 8vw, 6rem);
}

.home-section--soft {
	background: var(--ps-surface);
}

.section-heading {
	display: flex;
	align-items: end;
	justify-content: space-between;
	gap: 2rem;
	margin-bottom: 1.75rem;
}

.section-heading h2 {
	margin: 0;
	font-size: clamp(1.8rem, 5vw, 2.65rem);
	line-height: 1.2;
}

.section-heading p {
	max-width: 480px;
	margin: 0;
	color: var(--ps-muted);
}

.problem-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem;
}

.problem-card {
	display: grid;
	gap: .7rem;
	min-height: 220px;
	padding: clamp(1.3rem, 4vw, 2rem);
	color: var(--ps-text);
	text-decoration: none;
	background: #fff;
	border: 1px solid var(--ps-border);
	border-radius: var(--ps-radius);
	box-shadow: 0 12px 34px rgb(15 74 70 / 6%);
}

.problem-card:hover,
.problem-card:focus-visible {
	color: var(--ps-text);
	border-color: var(--ps-primary);
	transform: translateY(-2px);
}

.problem-card__number {
	color: var(--ps-primary);
	font-weight: 800;
}

.problem-card h3 {
	margin: 0;
	font-size: 1.35rem;
}

.problem-card p {
	margin: 0;
	color: var(--ps-muted);
}

.problem-card strong {
	align-self: end;
	color: var(--ps-primary-dark);
}

.decision-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1rem;
}

.decision-step {
	padding: 1.4rem;
	background: #fff;
	border: 1px solid var(--ps-border);
	border-radius: var(--ps-radius);
}

.decision-step span {
	display: inline-grid;
	place-items: center;
	width: 34px;
	height: 34px;
	color: #fff;
	font-weight: 800;
	background: var(--ps-primary);
	border-radius: 50%;
}

.decision-step h3 {
	margin-block: 1rem .4rem;
}

.decision-step p {
	margin: 0;
	color: var(--ps-muted);
}

.trust-panel {
	display: grid;
	grid-template-columns: 1.2fr .8fr;
	gap: 2rem;
	padding: clamp(1.5rem, 5vw, 3rem);
	color: #fff;
	background: var(--ps-primary-dark);
	border-radius: calc(var(--ps-radius) + 4px);
}

.trust-panel h2 {
	margin: 0;
	font-size: clamp(1.8rem, 5vw, 2.7rem);
}

.trust-panel p,
.trust-panel li {
	color: #d8ece9;
}

.trust-panel ul {
	margin: 0;
	padding-left: 1.2rem;
}

.content-wrap {
	width: min(calc(100% - 2rem), 820px);
	margin-inline: auto;
	padding-block: clamp(2.5rem, 7vw, 5rem);
}

.entry-header h1 {
	margin-bottom: 1.5rem;
	font-size: clamp(2rem, 6vw, 3.4rem);
	line-height: 1.15;
}

.entry-meta {
	color: var(--ps-muted);
	font-size: .9rem;
}

.entry-content > * {
	max-width: 100%;
}

.entry-content h2,
.entry-content h3 {
	margin-top: 2em;
	line-height: 1.35;
}

.entry-content blockquote {
	margin-inline: 0;
	padding: .8rem 1.2rem;
	background: var(--ps-surface);
	border-left: 4px solid var(--ps-primary);
}

.archive-grid {
	display: grid;
	gap: 1rem;
}

.archive-card {
	padding: 1.4rem;
	border: 1px solid var(--ps-border);
	border-radius: var(--ps-radius);
}

.archive-card h2 {
	margin-top: 0;
}

.site-footer {
	padding-block: 2.5rem;
	color: #cbdad8;
	background: #132c2a;
}

.site-footer__inner {
	display: flex;
	justify-content: space-between;
	gap: 2rem;
}

.site-footer p {
	margin: 0;
}

.site-footer a {
	color: #fff;
}

@media (max-width: 782px) {
	body.admin-bar .site-header {
		top: 46px;
	}

	.site-header__inner {
		align-items: flex-start;
		flex-direction: column;
		padding-block: .9rem;
	}

	.site-nav {
		width: 100%;
		overflow-x: auto;
	}

	.site-nav ul {
		min-width: max-content;
	}

	.section-heading,
	.site-footer__inner {
		align-items: flex-start;
		flex-direction: column;
	}

	.problem-grid,
	.decision-grid,
	.trust-panel {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 480px) {
	.ps-container,
	.content-wrap {
		width: min(calc(100% - 1.25rem), var(--ps-content));
	}

	.site-header {
		position: relative;
	}

	.site-nav ul {
		gap: 1rem;
	}

	.hero__actions,
	.ps-cta {
		width: 100%;
	}
}
