/* 诚德福 B25 官网 · 品牌色 #009A66 */

:root {
	--brand: #009a66;
	--brand-hover: #007a52;
	--brand-subtle: #e8faf3;
	--brand-hero: #00b87a;
	--text: #1a1a1a;
	--text-muted: #666;
	--border: #e8ecef;
	--bg: #f7faf8;
	--white: #fff;
	--radius: 12px;
	--shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
	--container: 1120px;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans GB',
		'Microsoft YaHei', sans-serif;
	font-size: 16px;
	line-height: 1.6;
	color: var(--text);
	background: var(--bg);
}

a {
	color: var(--brand);
	text-decoration: none;
}

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

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

.container {
	max-width: var(--container);
	margin: 0 auto;
	padding: 0 20px;
}

/* Header */
.site-header {
	background: var(--white);
	border-bottom: 1px solid var(--border);
	position: sticky;
	top: 0;
	z-index: 100;
}

.header-inner {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 12px 20px;
	min-height: 64px;
}

.brand {
	display: flex;
	align-items: center;
	gap: 10px;
	color: var(--text);
	font-weight: 700;
	font-size: 1.15rem;
}

.brand-mark {
	width: 36px;
	height: 36px;
	border-radius: 10px;
	background: linear-gradient(135deg, var(--brand-hero), var(--brand));
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1rem;
}

.nav-main {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 8px;
	flex: 1;
	min-width: 0;
}

.nav-link {
	padding: 8px 14px;
	border-radius: 8px;
	color: var(--text-muted);
	font-size: 0.95rem;
}

.nav-link.is-active,
.nav-link:hover {
	color: var(--brand);
	background: var(--brand-subtle);
}

.nav-auth {
	display: flex;
	gap: 8px;
}

/* Buttons */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 12px 24px;
	border-radius: 10px;
	font-size: 0.95rem;
	font-weight: 600;
	border: none;
	cursor: pointer;
	transition: 0.2s;
}

.btn-sm {
	padding: 8px 16px;
	font-size: 0.875rem;
}

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

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

.btn-ghost {
	background: transparent;
	color: var(--brand);
	border: 1px solid var(--brand);
}

.btn-ghost:hover {
	background: var(--brand-subtle);
}

/* Hero */
.hero {
	background: linear-gradient(155deg, var(--brand-hero) 0%, var(--brand) 45%, #2ba8e8 100%);
	color: #fff;
	padding: 64px 0 72px;
}

.hero h1 {
	font-size: clamp(1.75rem, 4vw, 2.5rem);
	margin: 0 0 16px;
	line-height: 1.25;
}

.hero p {
	font-size: 1.05rem;
	opacity: 0.95;
	max-width: 560px;
	margin: 0 0 28px;
}

.hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

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

.hero .btn-ghost {
	border-color: rgba(255, 255, 255, 0.8);
	color: #fff;
}

.trust-row {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	margin-top: 32px;
	font-size: 0.9rem;
	opacity: 0.9;
}

.trust-row span::before {
	content: '✓ ';
}

/* Sections */
.section {
	padding: 48px 0;
}

.section-title {
	font-size: 1.5rem;
	margin: 0 0 8px;
}

.section-desc {
	color: var(--text-muted);
	margin: 0 0 24px;
}

.card {
	background: var(--white);
	border-radius: var(--radius);
	padding: 24px;
	box-shadow: var(--shadow);
}

.page-head {
	padding: 32px 0 16px;
}

.page-head h1 {
	margin: 0 0 8px;
	font-size: 1.75rem;
}

.page-head p {
	margin: 0;
	color: var(--text-muted);
}

/* Category */
.category-grid,
.category-row {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.category-chip,
.filter-chip {
	padding: 8px 16px;
	border-radius: 999px;
	background: var(--white);
	border: 1px solid var(--border);
	color: var(--text);
	font-size: 0.9rem;
	cursor: pointer;
}

.category-chip:hover,
.filter-chip:hover,
.filter-chip.is-active {
	border-color: var(--brand);
	background: var(--brand-subtle);
	color: var(--brand);
}

/* Products */
.product-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 20px;
}

.product-card {
	background: var(--white);
	border-radius: var(--radius);
	overflow: hidden;
	box-shadow: var(--shadow);
	color: var(--text);
	transition: transform 0.2s, box-shadow 0.2s;
}

.product-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 32px rgba(0, 154, 102, 0.12);
}

.product-cover {
	aspect-ratio: 4/3;
	background: var(--brand-subtle);
	overflow: hidden;
}

.product-cover img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.cover-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 100%;
	color: var(--brand);
	font-weight: 700;
	background: linear-gradient(145deg, #edf5ff, #e8faf3);
}

.cover-placeholder.large {
	min-height: 320px;
	font-size: 1.5rem;
}

.product-body {
	padding: 16px;
}

.product-body h3 {
	margin: 0 0 8px;
	font-size: 1rem;
	line-height: 1.4;
}

.product-desc {
	margin: 0 0 12px;
	font-size: 0.85rem;
	color: var(--text-muted);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.product-foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.price {
	color: var(--brand);
	font-weight: 700;
	font-size: 1.1rem;
}

.price small {
	font-size: 0.75rem;
	font-weight: 500;
}

.link-more {
	font-size: 0.85rem;
	color: var(--text-muted);
}

/* Detail */
.detail-layout {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 32px;
	margin-bottom: 32px;
}

.detail-media img {
	border-radius: var(--radius);
	width: 100%;
}

.detail-info h1 {
	margin: 0 0 12px;
	font-size: 1.5rem;
}

.detail-desc {
	color: var(--text-muted);
	margin: 0 0 20px;
}

.price-list {
	list-style: none;
	padding: 0;
	margin: 0 0 16px;
}

.price-list li {
	display: flex;
	justify-content: space-between;
	padding: 10px 0;
	border-bottom: 1px solid var(--border);
}

.price-list strong {
	color: var(--brand);
	font-size: 1.1rem;
}

.detail-tip {
	font-size: 0.875rem;
	color: var(--text-muted);
	margin-bottom: 20px;
}

.detail-content h2 {
	margin-top: 0;
	font-size: 1.15rem;
}

/* Mini program CTA */
.mini-cta {
	display: grid;
	grid-template-columns: 140px 1fr;
	gap: 24px;
	align-items: center;
	background: var(--brand-subtle);
	border-radius: var(--radius);
	padding: 24px;
	margin-top: 16px;
}

.mini-cta--compact {
	grid-template-columns: 120px 1fr;
	padding: 20px;
}

.mini-cta-qr img {
	width: 120px;
	height: 120px;
	border-radius: 8px;
	background: #fff;
	padding: 6px;
}

.qr-fallback {
	width: 120px;
	height: 120px;
	background: #fff;
	border: 2px dashed var(--border);
	border-radius: 8px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	font-size: 0.75rem;
	color: var(--text-muted);
	text-align: center;
	padding: 8px;
}

.mini-cta-text h3 {
	margin: 0 0 8px;
	font-size: 1.1rem;
}

.mini-cta-text p {
	margin: 0 0 6px;
	font-size: 0.9rem;
}

.mini-cta-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 14px;
}

/* Steps */
.steps {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 16px;
}

.step-item {
	text-align: center;
	padding: 20px 12px;
	background: var(--white);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
}

.step-num {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: var(--brand);
	color: #fff;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	margin-bottom: 10px;
}

.step-item h3 {
	margin: 0 0 6px;
	font-size: 0.95rem;
}

.step-item p {
	margin: 0;
	font-size: 0.8rem;
	color: var(--text-muted);
}

/* About / Contact / Login */
.prose {
	max-width: 720px;
}

.prose h2 {
	margin-top: 32px;
	font-size: 1.15rem;
}

.info-list {
	list-style: none;
	padding: 0;
}

.info-list li {
	padding: 12px 0;
	border-bottom: 1px solid var(--border);
}

.login-steps {
	counter-reset: step;
	list-style: none;
	padding: 0;
	margin: 24px 0;
}

.login-steps li {
	counter-increment: step;
	padding: 12px 0 12px 40px;
	position: relative;
	border-bottom: 1px solid var(--border);
}

.login-steps li::before {
	content: counter(step);
	position: absolute;
	left: 0;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: var(--brand-subtle);
	color: var(--brand);
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 0.85rem;
}

/* Legal */
.legal-doc {
	background: var(--white);
	border-radius: var(--radius);
	padding: 32px;
	box-shadow: var(--shadow);
	max-width: 800px;
}

.legal-meta {
	color: var(--text-muted);
	font-size: 0.875rem;
}

.legal-intro {
	font-size: 1.05rem;
	line-height: 1.7;
}

.legal-section {
	margin-top: 28px;
}

.legal-section h2 {
	font-size: 1.1rem;
	margin-bottom: 12px;
}

.legal-section p,
.legal-section li {
	color: #333;
	line-height: 1.75;
}

.legal-section ul {
	padding-left: 1.25rem;
}

/* Footer */
.site-footer {
	background: #1a2420;
	color: rgba(255, 255, 255, 0.85);
	margin-top: 48px;
	padding: 48px 0 24px;
}

.site-footer a {
	color: rgba(255, 255, 255, 0.9);
}

.footer-grid {
	display: grid;
	grid-template-columns: 2fr 1fr 1.5fr;
	gap: 32px;
	margin-bottom: 32px;
}

.footer-grid h3,
.footer-grid h4 {
	color: #fff;
	margin: 0 0 12px;
}

.footer-desc,
.footer-note {
	font-size: 0.9rem;
	opacity: 0.8;
}

.footer-links {
	list-style: none;
	padding: 0;
	margin: 0;
	font-size: 0.9rem;
}

.footer-links li {
	margin-bottom: 8px;
}

.footer-bottom {
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	padding-top: 20px;
	font-size: 0.85rem;
	opacity: 0.7;
	text-align: center;
}

.footer-bottom p {
	margin: 4px 0;
}

.footer-icp a {
	color: rgba(255, 255, 255, 0.85);
	text-decoration: underline;
}

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

/* Utils */
.loading,
.empty,
.error,
.muted {
	color: var(--text-muted);
}

.error {
	color: #c0392b;
}

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

.more-link {
	display: inline-block;
	margin-top: 16px;
	font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
	.header-inner {
		gap: 8px 12px;
	}

	.nav-link {
		padding: 6px 10px;
		font-size: 0.875rem;
	}

	.nav-auth {
		margin-left: auto;
	}

	.btn-sm {
		padding: 6px 12px;
		font-size: 0.8125rem;
	}

	.detail-layout,
	.mini-cta,
	.footer-grid,
	.steps {
		grid-template-columns: 1fr;
	}

	.hero {
		padding: 40px 0 48px;
	}
}
