/*
Theme Name: 沃田农业 · 灌溉产品官网（中英双语）
Theme URI: https://example.com/wotian-irrigation
Author: 沃田农业
Description: 面向滴灌带、微喷带与灌溉连接配件经销商的 WordPress 企业官网主题，中英双语可切换，浅绿亮色界面。三级页面结构：首页 → 产品中心 / 解决方案 / 应用领域 → 各详情页，页面之间互相跳转。文案集中在 inc/content.php 与 inc/i18n.php，图片在 images/ 目录，公司名与联系方式在后台「外观 → 自定义」修改。
Version: 2.3.0
Requires at least: 5.9
Tested up to: 6.6
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: wotian-irrigation
Tags: business, one-column, custom-logo, custom-menu, featured-images, translation-ready, right-sidebar
*/

:root {
	--bg: #f7faf6;
	--bg-soft: #eaf4ea;
	--panel: #ffffff;
	--panel-2: #f2f8f1;
	--line: rgba(21, 87, 51, 0.14);
	--line-strong: rgba(21, 87, 51, 0.30);
	--ink: #14251b;
	--ink-2: #3d5547;
	--muted: #6c8175;
	--accent: #1f9d55;
	--accent2: #12a594;
	--accent-deep: #14713d;
	--on-accent: #ffffff;
	--deep: #12351f;
	--deep-ink: #d7e9dc;
	--radius: 14px;
	--maxw: 1180px;
	--shadow: 0 12px 30px rgba(20, 60, 35, 0.10);
}

* { box-sizing: border-box; }

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

body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
	font-size: 16px;
	line-height: 1.75;
	letter-spacing: 0.01em;
}

.site { display: flex; flex-direction: column; min-height: 100vh; }
.site-main { flex: 1; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

a { color: var(--accent-deep); text-decoration: none; transition: color .2s ease, opacity .2s ease; }
a:hover { color: var(--accent2); }

h1, h2, h3, h4 { margin: 0 0 .5em; font-weight: 700; line-height: 1.25; letter-spacing: -0.01em; }
h1 { font-size: clamp(30px, 5.2vw, 52px); }
h2 { font-size: clamp(24px, 3.4vw, 36px); }
h3 { font-size: 18px; }
p { margin: 0 0 1em; }

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

.kicker {
	margin: 0 0 10px;
	font-size: 12px;
	letter-spacing: .22em;
	text-transform: uppercase;
	color: var(--accent-deep);
	font-weight: 700;
}

.muted, .note, .sec-foot, .use { color: var(--muted); font-size: 14px; }

/* ---------- 按钮 ---------- */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 13px 26px;
	border-radius: 999px;
	border: 1px solid transparent;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
}
.btn.primary { background: linear-gradient(100deg, var(--accent), var(--accent2)); color: var(--on-accent); box-shadow: 0 8px 20px rgba(31, 157, 85, .22); }
.btn.primary:hover { color: var(--on-accent); transform: translateY(-2px); box-shadow: 0 14px 28px rgba(18, 165, 148, .26); }
.btn.ghost { border-color: var(--line-strong); color: var(--ink); background: var(--panel); }
.btn.ghost:hover { color: var(--accent-deep); border-color: var(--accent); background: var(--bg-soft); }
.btn.small { padding: 9px 18px; font-size: 14px; }

/* ---------- 顶栏 ---------- */
.topbar {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(255, 255, 255, .92);
	backdrop-filter: blur(14px);
	border-bottom: 1px solid var(--line);
}
.topbar-in { display: flex; align-items: center; gap: 24px; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand img { max-height: 44px; width: auto; }
.brand-mark {
	display: grid; place-items: center;
	width: 40px; height: 40px; border-radius: 11px;
	background: linear-gradient(135deg, var(--accent), var(--accent2));
	color: var(--on-accent); font-weight: 800; font-size: 15px; letter-spacing: .02em;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text a { color: var(--ink); }
.brand-text a:hover { color: var(--accent-deep); }
.brand-mark { color: var(--on-accent) !important; }
.brand-text strong { font-size: 17px; }
.brand-text em { font-style: normal; font-size: 11.5px; color: var(--muted); letter-spacing: .08em; }

.nav { margin-left: auto; }
.nav ul, ul.nav { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav a, ul.nav a {
	display: block; padding: 9px 11px; border-radius: 10px;
	color: var(--ink-2); font-size: 14px; font-weight: 500; white-space: nowrap;
}
.nav a:hover { color: var(--accent-deep); background: var(--bg-soft); }

.topbar-cta { display: flex; align-items: center; gap: 14px; }
.topbar-cta .tel { font-size: 14.5px; font-weight: 700; color: var(--ink); white-space: nowrap; }

.menu-toggle { display: none; background: none; border: 1px solid var(--line-strong); border-radius: 10px; padding: 10px; cursor: pointer; }
.menu-toggle span { display: block; width: 18px; height: 2px; background: var(--ink); margin: 3px 0; }

/* ---------- 首屏 ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(64px, 9vw, 120px) 0 clamp(48px, 6vw, 80px); border-bottom: 1px solid var(--line); }
.hero-bg {
	position: absolute; inset: 0; pointer-events: none;
	background:
		radial-gradient(650px 340px at 12% 18%, rgba(31, 157, 85, .14), transparent 62%),
		radial-gradient(700px 380px at 88% 12%, rgba(18, 165, 148, .12), transparent 60%),
		linear-gradient(180deg, #ffffff 0%, var(--bg) 100%);
}
.hero-bg::after {
	content: ""; position: absolute; inset: 0;
	background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
	background-size: 48px 48px;
	opacity: .5;
	mask-image: radial-gradient(60% 60% at 50% 30%, #000, transparent 75%);
	-webkit-mask-image: radial-gradient(60% 60% at 50% 30%, #000, transparent 75%);
}
.hero-in { position: relative; max-width: 860px; }
.hero h1 { margin-bottom: 18px; }
.hero .lead { font-size: clamp(16px, 1.9vw, 19px); color: var(--ink-2); max-width: 660px; }
.hero-btns { display: flex; flex-wrap: wrap; gap: 14px; margin: 28px 0 36px; }

.promise { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; list-style: none; margin: 0; padding: 22px 0 0; border-top: 1px solid var(--line); }
.promise li { display: flex; flex-direction: column; gap: 2px; }
.promise strong { font-size: 15px; color: var(--accent-deep); }
.promise span { font-size: 13px; color: var(--muted); line-height: 1.6; }

/* ---------- 数字条 ---------- */
.stats { background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.stats-in { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; padding: 26px 24px; }
.stat { display: flex; flex-direction: column; }
.stat strong { font-size: clamp(20px, 3vw, 28px); color: var(--accent-deep); font-weight: 800; }
.stat span { font-size: 13px; color: var(--muted); }

/* ---------- 栏目 ---------- */
.section { padding: clamp(64px, 8vw, 104px) 0; }
.section.alt { background: var(--bg-soft); border-block: 1px solid var(--line); }
.sec-head { max-width: 680px; margin-bottom: 42px; }
.sec-desc { color: var(--ink-2); }
.sec-foot { margin-top: 26px; }

.grid { display: grid; gap: 20px; }
.grid.c2 { grid-template-columns: repeat(2, 1fr); }
.grid.c3 { grid-template-columns: repeat(3, 1fr); }
.grid.c4 { grid-template-columns: repeat(4, 1fr); }
.grid.tight { gap: 14px; }

.card {
	position: relative;
	padding: 26px 24px;
	background: var(--panel);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	box-shadow: 0 2px 10px rgba(20, 60, 35, .04);
	transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--line-strong); box-shadow: var(--shadow); }
.card h3 { margin-bottom: 8px; }
.card .desc { color: var(--ink-2); font-size: 14.5px; }
.card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.model { font-size: 11.5px; letter-spacing: .1em; color: var(--accent-deep); border: 1px solid rgba(31, 157, 85, .32); border-radius: 999px; padding: 3px 10px; }
.ico { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: rgba(31, 157, 85, .1); color: var(--accent-deep); }
.ico svg { width: 26px; height: 26px; }

.specs { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.specs li { position: relative; padding-left: 18px; font-size: 13.5px; color: var(--ink-2); }
.specs li::before { content: ""; position: absolute; left: 0; top: .62em; width: 7px; height: 7px; border-radius: 2px; background: linear-gradient(135deg, var(--accent), var(--accent2)); }
.use { margin: 14px 0 0; padding-top: 12px; border-top: 1px dashed var(--line); }

.scene .num { font-size: 13px; color: var(--muted); letter-spacing: .16em; }

.feature { padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.feature h3 { color: var(--accent-deep); font-size: 16px; }
.feature p { margin: 0; font-size: 14px; color: var(--ink-2); }

.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 46px; align-items: start; }
.panel { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); box-shadow: 0 2px 10px rgba(20, 60, 35, .04); }
.panel h3 { margin-bottom: 14px; }

/* ---------- 联系 ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 26px; }
.contact-card { padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.contact-card h3 { font-size: 14px; color: var(--muted); font-weight: 600; letter-spacing: .06em; }
.contact-card .big { font-size: 19px; font-weight: 700; color: var(--ink); margin: 0 0 6px; word-break: break-all; }
.contact-card .big a { color: var(--ink); }
.contact-card .big a:hover { color: var(--accent-deep); }
.contact-card .address { line-height: 1.7; }

/* ---------- 内页 ---------- */
.page-head { padding: clamp(52px, 7vw, 88px) 0 clamp(28px, 4vw, 44px); background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.page-head h1 { margin-bottom: 10px; }
.entry { padding: clamp(40px, 6vw, 72px) 0; }
.entry-content { max-width: 780px; }
.entry-content h2 { margin-top: 1.6em; }
.entry-content h3 { margin-top: 1.4em; }
.entry-content ul, .entry-content ol { padding-left: 22px; color: var(--ink-2); }
.entry-content li { margin-bottom: 8px; }
.entry-content blockquote { margin: 1.4em 0; padding: 4px 0 4px 18px; border-left: 3px solid var(--accent); color: var(--ink-2); }
.entry-content table { width: 100%; border-collapse: collapse; margin: 1.2em 0; font-size: 14px; }
.entry-content th, .entry-content td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; }
.entry-content th { background: var(--bg-soft); color: var(--ink); }
.entry-content code { background: var(--panel-2); padding: 2px 6px; border-radius: 6px; font-size: 14px; }

.post-list { display: flex; flex-direction: column; gap: 16px; }
.post-item { padding: 22px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.post-item h2 { font-size: 20px; margin-bottom: 6px; }
.post-item h2 a { color: var(--ink); }
.post-item h2 a:hover { color: var(--accent-deep); }
.post-item .meta { font-size: 13px; color: var(--muted); }

.pagination { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 34px; }
.pagination .page-numbers { padding: 8px 14px; border: 1px solid var(--line-strong); border-radius: 10px; color: var(--ink-2); font-size: 14px; }
.pagination .current { background: linear-gradient(100deg, var(--accent), var(--accent2)); color: var(--on-accent); border-color: transparent; font-weight: 700; }

.search-form { display: flex; gap: 10px; max-width: 480px; margin-bottom: 30px; }
.search-form input { flex: 1; background: var(--panel); border: 1px solid var(--line-strong); border-radius: 10px; padding: 11px 13px; color: var(--ink); font: inherit; }

/* ---------- 页脚（深绿收尾）---------- */
.footer { margin-top: auto; background: var(--deep); color: var(--deep-ink); border-top: 3px solid var(--accent); padding: 52px 0 22px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 34px; padding-bottom: 30px; border-bottom: 1px solid rgba(215, 233, 220, .16); }
.footer h4 { font-size: 14px; color: #fff; margin-bottom: 12px; letter-spacing: .04em; }
.f-brand { display: block; font-size: 18px; margin-bottom: 8px; }
.f-brand a { color: #fff; }
.f-brand a:hover { color: var(--accent); }
.f-links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.f-links a { color: var(--deep-ink); font-size: 14px; }
.f-links a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding-top: 18px; }
.footer-bottom p { margin: 0; font-size: 13px; color: rgba(215, 233, 220, .72); }

/* ---------- 通用区块 ---------- */
.site-footer-cta, .notice-area { padding: 20px; border: 1px dashed var(--line-strong); border-radius: var(--radius); color: var(--muted); }
.alignwide { max-width: 1000px; }
.alignfull { max-width: none; }
.sticky { position: static; }
.screen-reader-text { position: absolute !important; clip: rect(1px, 1px, 1px, 1px); width: 1px; height: 1px; overflow: hidden; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 20px; top: 20px; z-index: 99; background: var(--accent); color: var(--on-accent); padding: 10px 16px; border-radius: 8px; }

/* ---------- 双语组件 ---------- */
.topbar-tools { display: flex; align-items: center; gap: 12px; white-space: nowrap; }

.lang-switch {
	display: inline-flex; align-items: center; gap: 6px;
	padding: 7px 13px; border: 1px solid var(--line-strong); border-radius: 999px;
	color: var(--ink-2); font-size: 13px; font-weight: 600; background: var(--panel);
}
.lang-switch svg { width: 15px; height: 15px; }
.lang-switch:hover { color: var(--on-accent); background: linear-gradient(100deg, var(--accent), var(--accent2)); border-color: transparent; }

/* 下拉子导航 */
.nav-root > li { position: relative; }
.has-sub > a::after {
	content: ""; display: inline-block; margin-left: 6px; vertical-align: 2px;
	width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
	transform: rotate(45deg); opacity: .6;
}
.nav .sub {
	display: none; position: absolute; top: calc(100% + 6px); left: 0; z-index: 60;
	min-width: 230px; margin: 0; padding: 8px; flex-direction: column; gap: 2px;
	background: var(--panel); border: 1px solid var(--line-strong); border-radius: 12px; box-shadow: var(--shadow);
}
.has-sub:hover > .sub, .has-sub:focus-within > .sub { display: flex; }
.nav .sub a { padding: 9px 12px; font-size: 13.5px; color: var(--ink-2); border-radius: 8px; }
.nav .sub a:hover { color: var(--on-accent); background: linear-gradient(100deg, var(--accent), var(--accent2)); }

/* 面包屑 */
.crumbs { padding: 11px 0; background: var(--bg-soft); border-bottom: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--accent-deep); }
.crumbs .sep { margin: 0 9px; opacity: .55; }
.crumbs .here { color: var(--ink-2); }

/* 内页页头 */
.page-hero {
	padding: clamp(44px, 6vw, 78px) 0 clamp(30px, 4vw, 48px);
	background: radial-gradient(680px 300px at 15% 0%, rgba(31, 157, 85, .12), transparent 60%), var(--bg-soft);
	border-bottom: 1px solid var(--line);
}
.page-hero h1 { margin-bottom: 12px; }
.page-hero .lead { color: var(--ink-2); max-width: 780px; margin-bottom: 0; }
.page-hero .model { display: inline-block; margin-top: 14px; }

/* 卡片跳转 */
.card h3 a, .block-card h2 a { color: var(--ink); }
.card h3 a:hover, .block-card h2 a:hover { color: var(--accent-deep); }
.card-more { display: inline-block; margin-top: 16px; font-size: 13.5px; font-weight: 600; color: var(--accent-deep); }
.note-line { margin-top: 18px; font-size: 12.5px; color: var(--muted); }
.sec-foot .btn { margin-right: 10px; }

/* 栏目大卡 */
.block-card { padding: 30px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); margin-bottom: 20px; box-shadow: 0 2px 10px rgba(20, 60, 35, .04); }
.block-card:hover { border-color: var(--line-strong); }
.block-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 10px; }
.block-head h2 { margin: 0; font-size: clamp(20px, 2.6vw, 27px); }

/* 要点列表 */
.check-list { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.check-list li { position: relative; padding-left: 27px; font-size: 14.5px; color: var(--ink-2); }
.check-list li::before { content: ""; position: absolute; left: 0; top: .35em; width: 17px; height: 17px; border-radius: 5px; background: rgba(31, 157, 85, .12); border: 1px solid rgba(31, 157, 85, .42); }
.check-list li::after { content: "✓"; position: absolute; left: 3.5px; top: .3em; font-size: 11px; color: var(--accent-deep); }

/* 规格表 */
.spec-table { width: 100%; border-collapse: collapse; margin-top: 4px; font-size: 14px; }
.spec-table th, .spec-table td { padding: 10px 0; border-bottom: 1px dashed var(--line); text-align: left; vertical-align: top; }
.spec-table th { width: 46%; padding-right: 12px; font-weight: 600; color: var(--muted); }
.spec-table td { color: var(--ink); word-break: break-word; }
.spec-panel { position: sticky; top: 92px; }

/* 相关配套 */
.rel-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.rel-card { display: flex; flex-direction: column; gap: 7px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); color: var(--ink); }
.rel-card strong { color: var(--accent-deep); font-size: 15.5px; }
.rel-card span { font-size: 13.5px; color: var(--muted); line-height: 1.65; }
.rel-card:hover { border-color: var(--accent); background: var(--bg-soft); color: var(--ink); }

/* 详情页上下篇 */
.pager { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 14px; }
.pager > div:last-child { text-align: right; }
.pager-link { display: block; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; color: var(--ink-2); font-size: 14px; background: var(--panel); }
.pager-link:hover { border-color: var(--accent); color: var(--accent-deep); }
.pager-pages { display: block; margin-top: 34px; text-align: center; }
.pager-pages .nav-links { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }

/* 常见问题 */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item { padding: 0 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 18px 0; font-size: 16px; font-weight: 600; color: var(--ink); cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--accent-deep); font-size: 20px; line-height: 1; }
.faq-item[open] summary::after { content: "−"; }
.faq-item p { margin: 0 0 18px; color: var(--ink-2); font-size: 14.5px; }

/* 卷长计算器 */
.calc-form { display: flex; flex-direction: column; gap: 14px; margin-top: 22px; }
.calc-form label { display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; color: var(--muted); }
.calc-form input, .calc-form select {
	background: var(--panel);
	border: 1px solid var(--line-strong);
	border-radius: 10px;
	padding: 11px 13px;
	color: var(--ink);
	font: inherit;
	font-size: 15px;
}
.calc-form input:focus, .calc-form select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(31, 157, 85, .14); }
.calc-form button { align-self: flex-start; margin-top: 4px; }
#calc-out td { font-weight: 700; color: var(--accent-deep); font-size: 15.5px; }

/* 底部行动号召 */
.cta-band { padding: clamp(38px, 5vw, 62px) 0; background: linear-gradient(118deg, rgba(31, 157, 85, .10), rgba(18, 165, 148, .09)), var(--bg-soft); border-top: 1px solid var(--line); }
.cta-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-in h2 { max-width: 720px; font-size: clamp(19px, 2.3vw, 25px); margin-bottom: 6px; }
.cta-btns { display: flex; gap: 12px; flex-wrap: wrap; }

/* 其他 */
.narrow { max-width: 760px; }
.thumb { margin-bottom: 24px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.contact-nav { margin-top: 26px; }
.site-search { display: flex; gap: 10px; max-width: 520px; margin-top: 18px; }
.site-search input { flex: 1; padding: 11px 13px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--panel); color: var(--ink); font: inherit; }
.post-item .desc { color: var(--ink-2); font-size: 14.5px; }

/* 页脚四列 */
.footer-grid { grid-template-columns: 1.5fr 1fr 1.25fr .9fr; }
.footer-grid ul { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.footer-grid ul a { color: var(--deep-ink); font-size: 13.5px; }
.footer-grid ul a:hover { color: #fff; }
.f-brand { font-size: 18px; }
.footer-bar { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px; padding-top: 18px; font-size: 13px; color: rgba(215, 233, 220, .72); }

/* 英文排版微调 */
body.lang-en h1 { font-size: clamp(28px, 4.4vw, 46px); }

/* ---------- 参照站骨架组件 ---------- */

/* 顶部联系条（深绿窄条） */
.topline { background: var(--accent-deep); color: #eaf7ee; font-size: 13px; }
.topline-in { display: flex; align-items: center; gap: 18px; padding: 9px 24px; flex-wrap: wrap; }
.topline .tl { color: #d9efe1; white-space: nowrap; }
.topline a.tl:hover { color: #fff; }
.topline .tl-spacer { flex: 1; }
.topline .tl.chat { color: #fff; font-weight: 700; }

/* 首屏轮播 */
.slider { position: relative; border-bottom: 1px solid var(--line); }
.slides { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.slides::-webkit-scrollbar { display: none; }
.slide {
	position: relative; flex: 0 0 100%; min-height: clamp(360px, 46vw, 560px);
	display: flex; align-items: center; scroll-snap-align: start;
	background-size: cover; background-position: center;
}
.slide-bg {
	position: absolute; inset: 0;
	background:
		radial-gradient(760px 340px at 18% 8%, rgba(31, 157, 85, .14), transparent 62%),
		radial-gradient(620px 320px at 86% 92%, rgba(18, 165, 148, .12), transparent 60%),
		linear-gradient(160deg, #ffffff, var(--bg-soft));
}
.slide.has-img .slide-bg {
	background: linear-gradient(96deg, rgba(9, 34, 19, .88) 10%, rgba(9, 34, 19, .62) 46%, rgba(9, 34, 19, .22) 100%);
}
.slide.has-img .kicker { color: #8ff0b6; }
.slide.has-img h1 { color: #fff; }
.slide.has-img .lead { color: #e4f3e8; }
.slide-in { position: relative; z-index: 1; padding: clamp(44px, 6vw, 84px) 24px; }
.slide h1 { font-size: clamp(26px, 3.8vw, 44px); margin-bottom: 14px; max-width: 20ch; }
.slide .lead { max-width: 640px; color: var(--ink-2); margin-bottom: 22px; }
.dots { display: flex; justify-content: center; gap: 8px; padding: 14px 0; background: var(--bg-soft); border-top: 1px solid var(--line); }
.dots span { width: 26px; height: 4px; border-radius: 3px; background: var(--line-strong); cursor: pointer; }
.dots span.on { background: linear-gradient(100deg, var(--accent), var(--accent2)); }

/* 承诺条 */
.promise-band { background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.promise-band .promise { padding: 20px 0; }

/* 产品缩略图 */
.card.compact .desc { font-size: 13.5px; }
.card .thumb { display: grid; place-items: center; width: 96px; height: 72px; margin: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--panel-2); }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* 两栏：左侧分类树 + 右侧主体 */
.with-side { display: grid; grid-template-columns: 258px 1fr; gap: 32px; align-items: start; }
.side { position: sticky; top: 84px; display: flex; flex-direction: column; gap: 20px; }
.side-tree, .side-block { padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); box-shadow: 0 2px 10px rgba(20, 60, 35, .04); }
.side-title { margin: 0 0 12px; font-size: 15px; letter-spacing: .04em; text-transform: uppercase; color: var(--ink); }
.side-tree ul { list-style: none; margin: 0; padding: 0; }
.side-tree .cat { border-top: 1px solid var(--line); }
.side-tree .cat:first-child { border-top: none; }
.side-tree .cat > .cat-name { display: block; padding: 11px 0; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.side-tree .cat > .cat-name:hover { color: var(--accent-deep); }
.side-tree .cat-sub { padding: 0 0 10px 12px; border-left: 1px solid var(--line); margin-left: 2px; }
.side-tree .cat-sub li a { display: block; padding: 6px 8px; font-size: 13.5px; color: var(--muted); border-radius: 7px; }
.side-tree .cat-sub li a:hover { color: var(--accent-deep); background: var(--bg-soft); }
.side-tree .cat-sub li.active a { color: var(--accent-deep); font-weight: 700; }
.side-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.side-list a { display: flex; flex-direction: column; gap: 3px; font-size: 13.5px; color: var(--ink-2); }
.side-list a:hover { color: var(--accent-deep); }
.side-list em { font-style: normal; font-size: 12px; color: var(--muted); }
.side-cta p { font-size: 13px; color: var(--muted); line-height: 1.65; }
.side-cta .btn { margin: 4px 6px 0 0; }
.side-tel { margin: 12px 0 0; font-size: 15px; font-weight: 700; color: var(--accent-deep); }

/* 分类分组 */
.cat-group { margin-bottom: 40px; scroll-margin-top: 96px; }
.cat-head { display: flex; align-items: center; gap: 12px; font-size: clamp(18px, 2.2vw, 23px); margin-bottom: 18px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.cat-count { font-size: 12px; font-weight: 600; color: var(--muted); padding: 3px 9px; border: 1px solid var(--line-strong); border-radius: 999px; }

/* 产品详情页 */
.detail-top { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: start; margin-bottom: 36px; }
.detail-figure {
	position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
	min-height: 300px; border: 1px solid var(--line); border-radius: var(--radius);
	background: var(--panel-2); background-size: cover; background-position: center;
	overflow: hidden;
}
.detail-figure.has-img { border-color: var(--line-strong); }
.detail-figure img { width: 100%; height: 100%; min-height: 300px; object-fit: cover; position: absolute; inset: 0; }
.detail-figure .fig-icon svg { width: 96px; height: 96px; }
.detail-figure .fig-hint { font-size: 12.5px; color: var(--muted); }
.detail-info h1 { font-size: clamp(23px, 3vw, 34px); margin-bottom: 10px; }
.model-line { font-size: 14px; color: var(--muted); margin-bottom: 12px; }
.quick-specs { list-style: none; margin: 20px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.quick-specs li { padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); display: flex; flex-direction: column; gap: 5px; }
.quick-specs span { font-size: 12.5px; color: var(--muted); }
.quick-specs strong { font-size: 15px; color: var(--accent-deep); }
.detail-body { display: grid; grid-template-columns: 1.35fr 1fr; gap: 32px; align-items: start; }
.detail-body h2 { font-size: clamp(18px, 2.2vw, 23px); margin: 26px 0 10px; }
.detail-body h2:first-child { margin-top: 0; }
.btn.plain { border-color: transparent; color: var(--muted); }
.btn.plain:hover { color: var(--accent-deep); border-color: var(--line-strong); }

/* 相册 */
.gallery .shot {
	position: relative; min-height: 178px; margin: 0; padding: 16px;
	display: flex; flex-direction: column; justify-content: flex-end;
	border: 1px solid var(--line); border-radius: var(--radius);
	background: var(--panel-2);
	background-size: cover; background-position: center; overflow: hidden;
}
.gallery .shot.has-img { border-color: var(--line-strong); }
.gallery .shot.has-img::after {
	content: ""; position: absolute; inset: 0;
	background: linear-gradient(180deg, transparent 40%, rgba(9, 34, 19, .82));
}
.gallery .shot.has-img figcaption { color: #fff; }
.gallery .shot figcaption { position: relative; z-index: 1; font-size: 14px; font-weight: 600; color: var(--ink); }
.gallery .shot-hint { position: relative; z-index: 1; font-size: 12px; color: var(--muted); margin-bottom: auto; }

/* 详情页顶部大图 */
.figure-wide { margin: 0; padding: 0 24px; }
.figure-wide img {
	width: 100%; max-width: var(--maxw); margin: -34px auto 0; display: block;
	max-height: clamp(220px, 34vw, 420px); object-fit: cover;
	border: 1px solid var(--line-strong); border-radius: var(--radius);
	box-shadow: var(--shadow); background: var(--panel-2);
	position: relative; z-index: 2;
}

/* 场景 / 方案卡片配图 */
.card .card-shot { display: block; margin: -6px 0 14px; border-radius: 10px; overflow: hidden; aspect-ratio: 16 / 10; background: var(--panel-2); }
.card .card-shot img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* 关于页照片墙 */
.photo-wall { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 28px; }
.photo-wall figure { margin: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--panel-2); }
.photo-wall img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; display: block; }
.photo-wall figcaption { padding: 9px 12px; font-size: 12.5px; color: var(--muted); border-top: 1px solid var(--line); background: var(--panel); }

/* 关键词标签 */
.tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-top: 24px; }
.tags-label { font-size: 13px; font-weight: 600; color: var(--ink-2); margin-right: 4px; }
.tag { padding: 5px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: 12.5px; color: var(--muted); background: var(--panel); }
.tag:hover { color: var(--on-accent); background: linear-gradient(100deg, var(--accent), var(--accent2)); border-color: transparent; }

/* 社交与订阅 */
.social { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.social .so-label { font-size: 13px; color: var(--muted); }
.social a { padding: 5px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: 12.5px; color: var(--ink-2); }
.social a:hover { color: var(--on-accent); background: var(--accent-deep); border-color: transparent; }
.footer .social a { border-color: rgba(215, 233, 220, .28); color: var(--deep-ink); }
.footer .social a:hover { color: #fff; background: var(--accent); }
.social-panel { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }

/* 右侧浮动询盘条 */
.float-bar { position: fixed; right: 14px; top: 50%; transform: translateY(-50%); z-index: 70; display: flex; flex-direction: column; gap: 6px; }
.float-bar .fb {
	display: flex; align-items: center; justify-content: center;
	writing-mode: vertical-rl; padding: 14px 8px;
	background: var(--panel); border: 1px solid var(--line-strong); border-radius: 10px;
	color: var(--ink-2); font-size: 13px; letter-spacing: .08em; box-shadow: var(--shadow);
}
.float-bar .fb:hover { color: var(--on-accent); background: linear-gradient(160deg, var(--accent), var(--accent2)); border-color: transparent; }
.float-bar .fb.hot { color: var(--on-accent); background: linear-gradient(160deg, var(--accent), var(--accent2)); border-color: transparent; font-weight: 700; }

/* 三级下拉导航（分类与产品默认全部展开，方便直接点选） */
.nav .sub .sub-nested {
	display: block; position: static; box-shadow: none; background: transparent;
	border: none; border-top: 1px dashed var(--line); border-radius: 0;
	padding: 2px 0 6px 12px; min-width: 0; margin: 0 0 4px;
}
.nav .sub .sub-nested a { font-size: 13px; color: var(--muted); padding: 6px 10px; }
.nav .sub .cat-name { font-weight: 700; color: var(--ink-2); }
.nav .sub { min-width: 268px; max-height: 76vh; overflow-y: auto; }

/* ---------- 响应式 ---------- */
@media (max-width: 1020px) {
	.grid.c4 { grid-template-columns: repeat(2, 1fr); }
	.split { grid-template-columns: 1fr; gap: 30px; }
	.contact-grid { grid-template-columns: repeat(2, 1fr); }
	.promise { grid-template-columns: repeat(2, 1fr); gap: 16px; }
	.rel-grid { grid-template-columns: repeat(2, 1fr); }
	.spec-panel { position: static; }
	.footer-grid { grid-template-columns: 1fr 1fr; }
	.pager { grid-template-columns: 1fr; }
	.pager > div:last-child { text-align: left; }
	.with-side { grid-template-columns: 1fr; gap: 26px; }
	.side { position: static; }
	.detail-top { grid-template-columns: 1fr; }
	.detail-body { grid-template-columns: 1fr; }
	.float-bar { display: none; }
	.slide h1 { max-width: none; }
	.photo-wall { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
	.nav { display: none; }
	.topbar-tools { display: flex; gap: 10px; margin-left: auto; }
	.topbar-tools .btn, .topbar-tools .tel { display: none; }
	.menu-toggle { display: block; }
	.brand { margin-left: 0; }
	.site.menu-open .nav { display: block; position: absolute; left: 0; right: 0; top: 72px; background: var(--panel); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); padding: 12px 24px 18px; }
	.site.menu-open .nav-root { flex-direction: column; gap: 2px; }
	.site.menu-open .nav a { padding: 12px 0; }
	.site.menu-open .has-sub > .sub { display: block; position: static; box-shadow: none; background: transparent; border: none; padding: 0 0 8px 14px; }
	.site.menu-open .sub-nested { display: block; }
	.site.menu-open .sub a { font-size: 13.5px; color: var(--muted); }
	.topline .tl:not(.chat):first-child, .topline .tl-spacer { display: none; }
	.grid.c2, .grid.c3 { grid-template-columns: 1fr; }
	.stats-in { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 620px) {
	.wrap { padding: 0 18px; }
	body { font-size: 15.5px; }
	.grid.c4, .grid.c2, .contact-grid, .promise, .rel-grid { grid-template-columns: 1fr; }
	.hero { padding-top: 48px; }
	.hero-btns .btn, .sec-foot .btn { width: 100%; margin-right: 0; }
	.cta-in { flex-direction: column; align-items: flex-start; }
	.footer-grid { grid-template-columns: 1fr; gap: 24px; }
	.footer-bar { flex-direction: column; }
	.page-hero { padding-top: 34px; }
	.block-card { padding: 22px; }
	.photo-wall { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
	* { transition: none !important; animation: none !important; }
	html { scroll-behavior: auto; }
}

@media print {
	.topbar, .footer, .hero-bg, .btn, .float-bar, .topline { display: none !important; }
	body { background: #fff; color: #111; }
	.card, .panel, .contact-card { border-color: #ccc; background: #fff; }
	.section { padding: 18px 0; }
}
