/* =========================================================
   叠翠景观 · 前台样式
   设计基调：绿 + 白，现代简约，留白，玻璃拟态
   ========================================================= */
:root {
  --bg: #fbfdfb;
  --surface: #ffffff;
  --surface-2: #f1f7f1;
  --ink: #1c2b22;
  --ink-2: #44544a;
  --muted: #7c8a81;
  --primary: #2f7d4f;
  --primary-d: #1f5d3a;
  --accent: #7fb069;
  --line: rgba(31, 93, 58, .12);
  --glass: rgba(255, 255, 255, .62);
  --glass-strong: rgba(255, 255, 255, .82);
  --shadow-sm: 0 2px 10px rgba(20, 50, 30, .06);
  --shadow: 0 14px 40px rgba(20, 50, 30, .10);
  --shadow-lg: 0 30px 70px rgba(20, 50, 30, .16);
  --radius: 18px;
  --radius-sm: 12px;
  --radius-lg: 28px;
  --maxw: 1200px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
[data-theme="dark"] {
  --bg: #0d1611;
  --surface: #142019;
  --surface-2: #1a2a21;
  --ink: #eaf3ec;
  --ink-2: #b6c7bb;
  --muted: #88a094;
  --primary: #5fce8e;
  --primary-d: #2f7d4f;
  --accent: #9bd17e;
  --line: rgba(255, 255, 255, .10);
  --glass: rgba(20, 33, 26, .55);
  --glass-strong: rgba(22, 36, 28, .8);
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, .3);
  --shadow: 0 14px 40px rgba(0, 0, 0, .45);
  --shadow-lg: 0 30px 70px rgba(0, 0, 0, .55);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  transition: background .4s var(--ease), color .4s var(--ease);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { line-height: 1.25; font-weight: 700; letter-spacing: -.01em; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }
.gradient-text {
  background: linear-gradient(120deg, var(--primary), var(--accent));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.skip-link { position: absolute; left: -999px; }
.skip-link:focus { left: 12px; top: 12px; z-index: 200; background: var(--primary); color: #fff; padding: 8px 14px; border-radius: 8px; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  padding: 12px 24px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: 15px; cursor: pointer; transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s var(--ease);
  will-change: transform;
}
.btn-primary { background: linear-gradient(120deg, var(--primary), var(--primary-d)); color: #fff; box-shadow: 0 10px 24px rgba(47, 125, 79, .35); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(47, 125, 79, .45); }
.btn-ghost { background: var(--glass); color: var(--ink); border-color: var(--line); backdrop-filter: blur(12px); }
.btn-ghost:hover { transform: translateY(-2px); border-color: var(--primary); color: var(--primary); }
.btn-outline { background: transparent; border-color: var(--primary); color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-lg { padding: 15px 32px; font-size: 16px; }

/* ---------- 顶部导航 ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: var(--glass); backdrop-filter: blur(16px) saturate(160%);
  border-bottom: 1px solid transparent; transition: all .35s var(--ease);
}
.site-header.scrolled { box-shadow: var(--shadow-sm); border-bottom-color: var(--line); background: var(--glass-strong); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; color: var(--ink); }
.brand-mark { color: var(--primary); display: inline-flex; }
.nav-links { display: flex; gap: 6px; }
.nav-link { padding: 8px 14px; border-radius: 999px; color: var(--ink-2); font-weight: 500; font-size: 15px; transition: color .25s, background .25s; }
.nav-link:hover { color: var(--primary); }
.nav-link.is-active { color: var(--primary); background: color-mix(in srgb, var(--primary) 12%, transparent); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.theme-toggle { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--glass); color: var(--ink); cursor: pointer; display: grid; place-items: center; transition: transform .3s var(--ease), border-color .3s; }
.theme-toggle:hover { transform: rotate(18deg); border-color: var(--primary); }
.theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-moon { display: block; }
.nav-cta { padding: 9px 18px; font-size: 14px; }
.nav-burger { display: none; flex-direction: column; gap: 5px; width: 42px; height: 42px; border: 1px solid var(--line); background: var(--glass); border-radius: 12px; cursor: pointer; padding: 11px; }
.nav-burger span { height: 2px; background: var(--ink); border-radius: 2px; transition: .3s var(--ease); }
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-menu { display: none; flex-direction: column; gap: 4px; padding: 12px 24px 20px; background: var(--glass-strong); backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); }
.mobile-link { padding: 12px 8px; border-radius: 10px; color: var(--ink-2); font-weight: 500; }
.mobile-link.is-active { color: var(--primary); }
.mobile-cta { margin-top: 8px; }

/* ---------- 区块通用 ---------- */
section { padding: 88px 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 52px; }
.section-head .eyebrow { display: inline-block; font-size: 13px; letter-spacing: .18em; text-transform: uppercase; color: var(--primary); font-weight: 700; margin-bottom: 14px; }
.section-head h2 { font-size: clamp(26px, 4vw, 40px); }
.section-head p { color: var(--muted); font-size: 17px; }

/* 进场动画 */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Hero / Banner ---------- */
.hero { position: relative; min-height: 92vh; display: flex; align-items: center; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s var(--ease); background-size: cover; background-position: center; }
.hero-slide.active { opacity: 1; }
.hero-slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, rgba(8,20,12,.72), rgba(8,20,12,.30) 55%, rgba(8,20,12,.15)); }
.hero-inner { position: relative; z-index: 2; color: #fff; }
.hero-content { max-width: 720px; }
.hero h1 { font-size: clamp(34px, 6vw, 66px); color: #fff; text-shadow: 0 2px 30px rgba(0,0,0,.35); }
.hero .lead { font-size: clamp(16px, 2.2vw, 21px); color: rgba(255,255,255,.92); max-width: 560px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.hero-scroll { position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); z-index: 3; color: #fff; font-size: 13px; letter-spacing: .1em; opacity: .85; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.hero-scroll .dot { width: 22px; height: 36px; border: 2px solid rgba(255,255,255,.6); border-radius: 14px; position: relative; }
.hero-scroll .dot::after { content: ""; position: absolute; top: 6px; left: 50%; transform: translateX(-50%); width: 4px; height: 7px; background: #fff; border-radius: 4px; animation: scrolldot 1.6s infinite; }
@keyframes scrolldot { 0% { top: 6px; opacity: 1; } 70% { top: 18px; opacity: 0; } 100% { opacity: 0; } }
.hero-dots { position: absolute; bottom: 28px; right: 7%; z-index: 3; display: flex; gap: 10px; }
.hero-dots button { width: 10px; height: 10px; border-radius: 50%; border: none; background: rgba(255,255,255,.45); cursor: pointer; transition: .3s; }
.hero-dots button.active { background: #fff; width: 26px; border-radius: 6px; }

/* 数据条 */
.stat-band { background: linear-gradient(120deg, var(--primary-d), var(--primary)); color: #fff; }
.stat-band .container { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat { text-align: center; padding: 14px; }
.stat .num { font-size: clamp(30px, 5vw, 48px); font-weight: 800; line-height: 1; }
.stat .label { opacity: .9; margin-top: 8px; font-size: 15px; }

/* 卡片网格 */
.grid { display: grid; gap: 28px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-auto { grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s; }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--primary) 30%, var(--line)); }

.case-card .media { position: relative; aspect-ratio: 4/3; overflow: hidden; }
.case-card .media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.case-card:hover .media img { transform: scale(1.08); }
.case-card .badge { position: absolute; top: 14px; left: 14px; background: var(--glass-strong); color: var(--primary-d); padding: 5px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; backdrop-filter: blur(8px); }
.case-card .body { padding: 20px 22px 24px; }
.case-card h3 { font-size: 20px; margin-bottom: 8px; }
.case-card .meta { display: flex; gap: 14px; color: var(--muted); font-size: 13px; margin-bottom: 10px; }
.case-card .summary { color: var(--ink-2); font-size: 15px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* 服务 */
.service-card { padding: 30px 26px; position: relative; }
.service-card .ic { width: 56px; height: 56px; border-radius: 16px; background: color-mix(in srgb, var(--primary) 14%, transparent); color: var(--primary); display: grid; place-items: center; font-size: 26px; margin-bottom: 18px; }
.service-card h3 { font-size: 21px; }
.service-card p { color: var(--ink-2); font-size: 15px; }

/* 流程 */
.process { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 22px; counter-reset: step; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px; position: relative; transition: transform .4s var(--ease), box-shadow .4s; }
.step:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.step .step-no { font-size: 40px; font-weight: 800; color: color-mix(in srgb, var(--primary) 26%, transparent); line-height: 1; }
.step h4 { margin: 10px 0 6px; font-size: 18px; }
.step p { color: var(--muted); font-size: 14px; margin: 0; }

/* 客户证言 */
.quote { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 26px; box-shadow: var(--shadow-sm); }
.quote p { font-size: 16px; color: var(--ink-2); }
.quote .who { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.quote .who img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; }
.quote .who .name { font-weight: 700; }
.quote .who .role { font-size: 13px; color: var(--muted); }
.stars { color: #f5b50a; letter-spacing: 2px; }

/* 团队 */
.member { text-align: center; }
.member .avatar { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; margin: 0 auto 16px; border: 3px solid var(--surface); box-shadow: var(--shadow); }
.member h4 { margin: 0 0 2px; font-size: 19px; }
.member .role { color: var(--primary); font-weight: 600; font-size: 14px; }
.member .bio { color: var(--muted); font-size: 14px; margin-top: 10px; }

/* 文章 */
.article-card .media { aspect-ratio: 16/10; overflow: hidden; }
.article-card .media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.article-card:hover .media img { transform: scale(1.06); }
.article-card .body { padding: 20px 22px 24px; }
.article-card .tag { font-size: 12px; color: var(--primary); font-weight: 700; letter-spacing: .04em; }
.article-card h3 { font-size: 19px; margin: 8px 0; }
.article-card .summary { color: var(--ink-2); font-size: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.article-card .date { color: var(--muted); font-size: 13px; margin-top: 12px; }

/* CTA 区 */
.cta-band { background: radial-gradient(120% 140% at 0% 0%, var(--primary-d), var(--primary)); color: #fff; border-radius: var(--radius-lg); padding: 60px; text-align: center; margin: 0 auto; max-width: var(--maxw); }
.cta-band h2 { color: #fff; font-size: clamp(26px, 4vw, 38px); }
.cta-band p { color: rgba(255,255,255,.9); max-width: 560px; margin: 0 auto 26px; }

/* ---------- 详情页 ---------- */
.page-hero { padding: 150px 0 60px; background: linear-gradient(180deg, var(--surface-2), var(--bg)); }
.page-hero h1 { font-size: clamp(30px, 5vw, 50px); }
.page-hero .crumb { color: var(--muted); font-size: 14px; margin-bottom: 14px; }
.page-hero .crumb a:hover { color: var(--primary); }
.detail-wrap { display: grid; grid-template-columns: 1fr; gap: 36px; }
.prose { font-size: 17px; color: var(--ink-2); }
.prose h2, .prose h3 { color: var(--ink); margin-top: 1.4em; }
.prose img { border-radius: var(--radius-sm); margin: 18px 0; }
.prose blockquote { border-left: 4px solid var(--primary); padding: 6px 18px; margin: 18px 0; color: var(--ink); background: var(--surface-2); border-radius: 0 12px 12px 0; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin-bottom: 6px; }

/* 画廊 */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 24px; }
.gallery img { width: 100%; border-radius: var(--radius-sm); aspect-ratio: 4/3; object-fit: cover; }

/* Before / After */
.ba { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16/9; user-select: none; margin-top: 24px; max-width: 760px; }
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba .after { clip-path: inset(0 0 0 50%); }
.ba .handle { position: absolute; top: 0; bottom: 0; left: 50%; width: 3px; background: #fff; cursor: ew-resize; transform: translateX(-50%); box-shadow: 0 0 0 1px rgba(0,0,0,.15); }
.ba .handle::after { content: "⇄"; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 40px; height: 40px; border-radius: 50%; background: #fff; color: var(--primary-d); display: grid; place-items: center; font-size: 18px; box-shadow: var(--shadow); }
.ba .lab { position: absolute; bottom: 12px; padding: 4px 12px; border-radius: 999px; background: rgba(0,0,0,.5); color: #fff; font-size: 12px; }
.ba .lab.l { left: 12px; } .ba .lab.r { right: 12px; }

/* 侧栏信息 */
.fact-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); }
.fact-card h4 { font-size: 16px; margin-bottom: 14px; }
.fact-list { list-style: none; padding: 0; margin: 0; }
.fact-list li { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: 15px; }
.fact-list li:last-child { border-bottom: none; }
.fact-list .k { color: var(--muted); }
.fact-list .v { font-weight: 600; }

/* ---------- 联系 ---------- */
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; }
.contact-info .item { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.contact-info .item .ic { width: 46px; height: 46px; border-radius: 12px; background: color-mix(in srgb, var(--primary) 14%, transparent); color: var(--primary); display: grid; place-items: center; font-size: 20px; flex: none; }
.contact-info .item h4 { margin: 0 0 2px; font-size: 16px; }
.contact-info .item p { margin: 0; color: var(--ink-2); }
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-sm); }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 7px; }
.field input, .field textarea, .field select { width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); font-family: inherit; font-size: 15px; transition: border-color .25s, box-shadow .25s; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 18%, transparent); }
.field textarea { min-height: 120px; resize: vertical; }
.field .err { color: #d9534f; font-size: 13px; margin-top: 5px; display: none; }
.field.invalid input, .field.invalid textarea { border-color: #d9534f; }
.field.invalid .err { display: block; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* 搜索 */
.search-box { display: flex; gap: 10px; max-width: 560px; margin: 0 auto; }
.search-box input { flex: 1; padding: 14px 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-size: 16px; }
.result-group { margin-bottom: 40px; }
.result-item { display: flex; gap: 16px; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 12px; transition: transform .3s, box-shadow .3s; }
.result-item:hover { transform: translateX(4px); box-shadow: var(--shadow-sm); }
.result-item img { width: 120px; height: 84px; border-radius: 10px; object-fit: cover; flex: none; }
.result-item h4 { margin: 0 0 4px; }
.result-item p { margin: 0; color: var(--muted); font-size: 14px; }

/* 筛选标签 */
.filters { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-bottom: 40px; }
.chip { padding: 9px 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); font-size: 14px; font-weight: 600; cursor: pointer; transition: .25s; }
.chip:hover { border-color: var(--primary); color: var(--primary); }
.chip.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* 分页 */
.pager { display: flex; gap: 8px; justify-content: center; margin-top: 44px; }
.pager a, .pager span { min-width: 42px; height: 42px; padding: 0 14px; display: inline-flex; align-items: center; justify-content: center; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); font-weight: 600; transition: .25s; }
.pager a:hover { border-color: var(--primary); color: var(--primary); }
.pager .current { background: var(--primary); color: #fff; border-color: var(--primary); }

/* 页脚 */
.site-footer { background: var(--surface-2); border-top: 1px solid var(--line); padding: 60px 0 26px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 30px; }
.footer-brand .brand { margin-bottom: 14px; }
.footer-desc { color: var(--muted); max-width: 320px; }
.footer-col h4 { font-size: 15px; margin-bottom: 14px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { padding: 5px 0; color: var(--ink-2); font-size: 14px; }
.footer-col a:hover { color: var(--primary); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13px; }

/* Toast */
.toast { position: fixed; bottom: 28px; left: 50%; transform: translate(-50%, 20px); background: var(--ink); color: #fff; padding: 13px 22px; border-radius: 12px; box-shadow: var(--shadow-lg); opacity: 0; pointer-events: none; transition: .35s var(--ease); z-index: 300; font-size: 15px; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.ok { background: var(--primary-d); }
.toast.err { background: #c0392b; }

/* 装饰 */
.section-soft { background: var(--surface-2); }

/* 响应式 */
@media (max-width: 980px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .stat-band .container { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cta-band { padding: 44px 26px; border-radius: var(--radius); }
}
@media (max-width: 760px) {
  .nav-links, .nav-cta { display: none; }
  .nav-burger { display: flex; }
  .mobile-menu.open { display: flex; }
  section { padding: 60px 0; }
  .grid-3, .grid-2, .grid-auto { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
