/* =========================================================
   黄山风景区古茶树保护 · 公共站点样式
   ========================================================= */
:root {
  --green: #1f3d2b;
  --green-deep: #14281d;
  --green-2: #2f5640;
  --moss: #7a8b6a;
  --gold: #b08d57;
  --gold-light: #dcc7a1;
  --paper: #f5f1e7;
  --paper-2: #fbf9f3;
  --ink: #1c2b22;
  --muted: #746e60;
  --line: rgba(31, 61, 43, .14);
  --line-strong: rgba(31, 61, 43, .24);
  --white: #fff;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 18px 50px rgba(20, 40, 29, .10);
  --shadow-sm: 0 8px 24px rgba(20, 40, 29, .08);
  --serif: "Noto Serif SC", "Songti SC", "STSong", "SimSun", "Source Han Serif SC", serif;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", sans-serif;
  --container: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper-2);
  line-height: 1.75;
  font-size: 15px;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.35; margin: 0; letter-spacing: .01em; }
p { margin: 0 0 1em; }
::selection { background: var(--gold-light); color: var(--green-deep); }

.container { width: min(var(--container), calc(100% - 48px)); margin: 0 auto; }
@media (max-width: 640px) { .container { width: calc(100% - 36px); } }

/* ---------- 顶部导航 ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  background: rgba(251, 249, 243, .92);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: background .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: 0 10px 30px rgba(20,40,29,.06); }
body.has-hero .site-header:not(.scrolled) {
  background: linear-gradient(180deg, rgba(12, 24, 17, .55), rgba(12, 24, 17, 0));
  color: #fff;
}
body.has-hero .site-header:not(.scrolled) .brand small { color: rgba(255,255,255,.7); }
body.has-hero .site-header:not(.scrolled) .site-nav a { color: rgba(255,255,255,.86); }
body.has-hero .site-header:not(.scrolled) .site-nav a.active,
body.has-hero .site-header:not(.scrolled) .site-nav a:hover { color: #fff; }
body.has-hero .site-header:not(.scrolled) .nav-toggle span { background: #fff; }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 78px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 13px; min-width: 0; }
.brand-seal {
  width: 42px; height: 42px; flex: none;
  display: grid; place-items: center;
  background: var(--green); color: var(--gold-light);
  font-family: var(--serif); font-size: 22px; font-weight: 700;
  border-radius: 6px; border: 1px solid rgba(220, 199, 161, .45);
  box-shadow: inset 0 0 0 2px rgba(220,199,161,.12);
}
body.has-hero .site-header:not(.scrolled) .brand-seal { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.4); }
.brand-text { display: flex; flex-direction: column; line-height: 1.3; }
.brand-text strong { font-family: var(--serif); font-size: 18px; letter-spacing: .04em; font-weight: 600; white-space: nowrap; }
.brand-text small { font-size: 11px; letter-spacing: .22em; color: var(--muted); margin-top: 3px; white-space: nowrap; }
.site-nav { display: flex; align-items: center; gap: 6px; }
.site-nav a {
  position: relative; padding: 10px 14px; font-size: 14.5px; color: #3d4a41;
  border-radius: 999px; transition: color .2s ease, background .2s ease;
}
.site-nav a:hover { color: var(--green); background: rgba(31,61,43,.06); }
.site-nav a.active { color: var(--green); font-weight: 600; }
.site-nav a.active::after {
  content: ""; position: absolute; left: 50%; bottom: 4px; transform: translateX(-50%);
  width: 16px; height: 2px; background: var(--gold); border-radius: 2px;
}
.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; padding: 10px; }
.nav-toggle span { display: block; height: 2px; margin: 5px 0; background: var(--green); border-radius: 2px; transition: transform .25s ease, opacity .25s ease; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 860px) {
  .header-inner { height: 66px; }
  .brand-text small { display: none; }
  .brand-text strong { font-size: 16px; }
  .brand-seal { width: 36px; height: 36px; font-size: 19px; }
  .nav-toggle { display: block; }
  .site-nav {
    position: fixed; inset: 66px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper-2); border-bottom: 1px solid var(--line);
    padding: 10px 18px 22px; transform: translateY(-12px); opacity: 0; visibility: hidden;
    transition: .25s ease; box-shadow: var(--shadow);
  }
  .nav-open .site-nav { transform: translateY(0); opacity: 1; visibility: visible; }
  .site-nav a { padding: 14px 10px; border-bottom: 1px solid var(--line); border-radius: 0; color: var(--ink) !important; }
  .site-nav a.active::after { display: none; }
}

/* ---------- 首页 Hero ---------- */
.hero {
  position: relative; min-height: 92vh; display: flex; align-items: flex-end;
  padding: 150px 0 84px; color: #fff; overflow: hidden;
  background: #14281d;
}
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 42%; transform: scale(1.02); }
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 20, 13, .78) 0%, rgba(8, 20, 13, .48) 36%, rgba(8, 20, 13, .06) 70%),
    linear-gradient(180deg, rgba(10, 22, 15, .62) 0%, rgba(10, 22, 15, .18) 34%, rgba(10, 22, 15, .55) 74%, rgba(10, 22, 15, .9) 100%),
    radial-gradient(120% 80% at 80% 10%, rgba(176, 141, 87, .18), transparent 60%);
}
.hero-inner { position: relative; z-index: 1; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 12.5px; letter-spacing: .34em; color: var(--gold-light); margin-bottom: 22px;
}
.hero-eyebrow::before { content: ""; width: 44px; height: 1px; background: var(--gold-light); opacity: .7; }
.hero h1 {
  font-size: clamp(38px, 6.4vw, 76px); font-weight: 600; letter-spacing: .06em;
  margin: 0 0 18px; text-shadow: 0 6px 40px rgba(0,0,0,.35);
}
.hero h1 em { font-style: normal; color: var(--gold-light); }
.hero-lead {
  max-width: 620px; font-size: clamp(15px, 1.6vw, 17px); line-height: 1.9;
  color: rgba(255,255,255,.82); margin-bottom: 34px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 54px; }
.hero-stats {
  display: flex; flex-wrap: wrap; gap: 0; border-top: 1px solid rgba(255,255,255,.2);
  padding-top: 26px; max-width: 760px;
}
.hero-stat { padding: 0 34px 0 0; margin-right: 34px; border-right: 1px solid rgba(255,255,255,.16); }
.hero-stat:last-child { border-right: 0; margin-right: 0; }
.hero-stat b { display: block; font-family: var(--serif); font-size: clamp(28px, 3.4vw, 40px); font-weight: 600; color: var(--gold-light); line-height: 1.1; }
.hero-stat span { font-size: 12px; letter-spacing: .18em; color: rgba(255,255,255,.68); }
.hero-scroll {
  position: absolute; right: 28px; bottom: 34px; z-index: 2;
  writing-mode: vertical-rl; font-size: 11px; letter-spacing: .32em; color: rgba(255,255,255,.55);
  display: flex; align-items: center; gap: 14px;
}
.hero-scroll::after { content: ""; width: 1px; height: 54px; background: rgba(255,255,255,.4); animation: scrollLine 2.2s infinite; }
@keyframes scrollLine { 0% { transform: scaleY(.2); transform-origin: top; opacity: .2; } 50% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(.2); transform-origin: bottom; opacity: .2; } }
@media (max-width: 720px) {
  .hero { min-height: 88vh; padding: 120px 0 54px; }
  .hero-stats { gap: 18px 0; }
  .hero-stat { padding-right: 20px; margin-right: 20px; }
  .hero-stat b { font-size: 26px; }
  .hero-scroll { display: none; }
}
@media (max-width: 560px) {
  .hero-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; padding-top: 20px; }
  .hero-stat { border-right: 0; margin: 0; padding: 0; }
  .hero-stat b { font-size: 25px; }
  .hero-stat span { font-size: 11px; letter-spacing: .12em; }
}
.map-mobile-hint { display: none; font-size: 11.5px; color: rgba(255,255,255,.55); margin-top: 8px; letter-spacing: .08em; }
@media (max-width: 980px) { .map-mobile-hint { display: block; } }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 26px; border-radius: 999px; border: 1px solid transparent;
  font-size: 14.5px; font-weight: 600; letter-spacing: .04em;
  transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--green); color: #fff; box-shadow: 0 12px 30px rgba(31,61,43,.22); }
.btn-primary:hover { background: var(--green-2); }
.btn-gold { background: var(--gold); color: #1d2b21; }
.btn-gold:hover { background: #c19c63; }
.btn-light { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.4); backdrop-filter: blur(6px); }
.btn-light:hover { background: rgba(255,255,255,.2); }
.btn-outline { border-color: var(--line-strong); color: var(--green); background: transparent; }
.btn-outline:hover { background: rgba(31,61,43,.06); }
.btn-sm { padding: 9px 18px; font-size: 13px; }
.btn-block { width: 100%; }
.btn svg { width: 17px; height: 17px; }

/* ---------- 通用区块 ---------- */
.section { padding: 92px 0; }
.section.tight { padding: 64px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 44px; }
.section-head .eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 11.5px; letter-spacing: .3em; color: var(--gold); text-transform: uppercase; margin-bottom: 12px;
}
.section-head .eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--gold); }
.section-head h2 { font-size: clamp(28px, 3.4vw, 38px); color: var(--green); }
.section-head p { color: var(--muted); max-width: 520px; margin: 10px 0 0; }
.section-head .head-link { flex: none; font-size: 14px; color: var(--green); display: inline-flex; align-items: center; gap: 8px; }
.section-head .head-link:hover { color: var(--gold); }
.section-head .head-link::after { content: "→"; transition: transform .2s ease; }
.section-head .head-link:hover::after { transform: translateX(4px); }
@media (max-width: 720px) {
  .section { padding: 64px 0; }
  .section-head { flex-direction: column; align-items: flex-start; margin-bottom: 30px; }
}

/* ---------- 介绍条 ---------- */
.intro-band { background: var(--paper); border-block: 1px solid var(--line); }
.intro-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 70px; align-items: center; }
.intro-copy .eyebrow { font-size: 11.5px; letter-spacing: .3em; color: var(--gold); margin-bottom: 14px; }
.intro-copy h2 { font-size: clamp(28px, 3.4vw, 40px); color: var(--green); margin-bottom: 20px; }
.intro-copy p { color: #4c564d; line-height: 2; }
.intro-quote {
  margin-top: 26px; padding: 18px 22px; border-left: 3px solid var(--gold);
  background: rgba(255,255,255,.6); font-family: var(--serif); font-size: 16.5px; color: var(--green);
  line-height: 1.9;
}
.intro-figures { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.intro-figures figure { margin: 0; position: relative; overflow: hidden; border-radius: var(--radius); }
.intro-figures figure:first-child { grid-row: span 2; }
.intro-figures img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 3/4; transition: transform .6s ease; }
.intro-figures figure:first-child img { aspect-ratio: 3/6.2; }
.intro-figures figure:hover img { transform: scale(1.04); }
.intro-figures figcaption {
  position: absolute; inset: auto 0 0 0; padding: 26px 16px 14px; color: #fff; font-size: 12.5px;
  background: linear-gradient(transparent, rgba(10,22,15,.78));
}
@media (max-width: 900px) {
  .intro-grid { grid-template-columns: 1fr; gap: 40px; }
  .intro-figures img, .intro-figures figure:first-child img { aspect-ratio: 4/3; }
  .intro-figures figure:first-child { grid-row: auto; }
}

/* ---------- 区域卡片 ---------- */
.region-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
@media (max-width: 1000px) { .region-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .region-grid { grid-template-columns: 1fr; } }
.region-card {
  position: relative; display: block; border-radius: var(--radius); overflow: hidden;
  background: var(--green-deep); min-height: 340px; box-shadow: var(--shadow-sm);
  transition: transform .35s ease, box-shadow .35s ease;
}
.region-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.region-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.6,.2,1); }
.region-card:hover img { transform: scale(1.06); }
.region-card::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,22,15,.05) 20%, rgba(10,22,15,.72) 76%, rgba(10,22,15,.92) 100%);
}
.region-card-body { position: absolute; inset: auto 0 0 0; z-index: 1; padding: 26px 24px 22px; color: #fff; }
.region-card-tag {
  display: inline-flex; align-items: center; gap: 8px; font-size: 11px; letter-spacing: .2em;
  color: var(--gold-light); margin-bottom: 10px;
}
.region-card-tag::before { content: ""; width: 18px; height: 1px; background: var(--gold-light); }
.region-card h3 { font-size: 23px; margin-bottom: 8px; }
.region-card-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12.5px; color: rgba(255,255,255,.72); }
.region-card-meta b { color: #fff; font-weight: 600; }
.region-card-arrow {
  position: absolute; right: 22px; top: 22px; z-index: 1;
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255,255,255,.45);
  display: grid; place-items: center; color: #fff; font-size: 16px;
  transition: background .25s ease, color .25s ease, transform .25s ease;
}
.region-card:hover .region-card-arrow { background: var(--gold); border-color: var(--gold); color: var(--green-deep); transform: rotate(45deg); }
.region-card.ancient .region-card-tag { color: #f0d9ad; }

/* ---------- 地图 ---------- */
.map-band { background: var(--green-deep); color: #fff; position: relative; overflow: hidden; }
.map-band::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(80% 60% at 20% 0%, rgba(176,141,87,.12), transparent 60%);
}
.map-band .section-head h2, .map-band .section-head .head-link { color: #fff; }
.map-band .section-head p { color: rgba(255,255,255,.62); }
.map-band .section-head .eyebrow { color: var(--gold-light); }
.map-layout { position: relative; display: grid; grid-template-columns: 1fr 330px; gap: 34px; align-items: start; }
.map-frame {
  position: relative; border-radius: var(--radius); overflow: hidden;
  background: #e9e4d6; box-shadow: 0 30px 80px rgba(0,0,0,.3);
  border: 1px solid rgba(255,255,255,.12);
}
.map-frame img.map-img { width: 100%; height: auto; display: block; }
.map-marker {
  position: absolute; transform: translate(-50%, -50%);
  width: 18px; height: 18px; border: 0; padding: 0; border-radius: 50%;
  background: var(--gold); box-shadow: 0 0 0 4px rgba(176,141,87,.28);
  z-index: 2; transition: transform .2s ease, background .2s ease;
}
.map-marker::after {
  content: ""; position: absolute; inset: -8px; border-radius: 50%;
  border: 1px solid rgba(176,141,87,.7); animation: pulse 2.6s infinite;
}
.map-marker:hover, .map-marker.active { background: #e7c98f; transform: translate(-50%, -50%) scale(1.25); z-index: 3; }
.map-marker .map-tip {
  position: absolute; left: 50%; bottom: calc(100% + 12px); transform: translateX(-50%);
  background: rgba(10,22,15,.92); color: #fff; font-size: 12px; padding: 6px 10px; border-radius: 6px;
  white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .2s ease;
}
.map-marker:hover .map-tip, .map-marker.active .map-tip { opacity: 1; }
@keyframes pulse { 0% { transform: scale(.7); opacity: .9; } 70% { transform: scale(1.8); opacity: 0; } 100% { opacity: 0; } }
.map-side { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius); padding: 22px; backdrop-filter: blur(8px); }
.map-side h3 { font-size: 18px; color: #fff; margin-bottom: 4px; }
.map-side .map-side-sub { font-size: 12px; color: rgba(255,255,255,.55); letter-spacing: .1em; margin-bottom: 16px; }
.map-region-list { max-height: 430px; overflow: auto; margin: 0 -6px; padding: 0 6px; }
.map-region-list::-webkit-scrollbar { width: 4px; }
.map-region-list::-webkit-scrollbar-thumb { background: rgba(255,255,255,.25); border-radius: 4px; }
.map-region-item {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 11px 8px; border-bottom: 1px solid rgba(255,255,255,.08); cursor: pointer;
  transition: background .2s ease; border-radius: 6px;
}
.map-region-item:hover, .map-region-item.active { background: rgba(255,255,255,.07); }
.map-region-item span { font-size: 13.5px; color: rgba(255,255,255,.86); }
.map-region-item small { font-size: 11.5px; color: var(--gold-light); white-space: nowrap; }
.map-detail { margin-top: 16px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.12); }
.map-detail h4 { font-size: 20px; color: #fff; margin-bottom: 8px; }
.map-detail p { font-size: 12.5px; color: rgba(255,255,255,.6); margin-bottom: 12px; }
.map-detail .map-stat { display: flex; gap: 20px; font-size: 12px; color: rgba(255,255,255,.7); margin-bottom: 14px; }
.map-detail .map-stat b { color: var(--gold-light); font-family: var(--serif); font-size: 17px; }
.map-detail .btn { width: 100%; }
@media (max-width: 980px) {
  .map-layout { grid-template-columns: 1fr; }
  .map-scroll { overflow-x: auto; border-radius: var(--radius); }
  .map-scroll .map-frame { min-width: 680px; }
  .map-side { order: 2; }
}

/* ---------- 建档树木卡片 ---------- */
.tree-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 1000px) { .tree-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .tree-grid { grid-template-columns: 1fr; } }
.tree-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column; transition: transform .3s ease, box-shadow .3s ease;
}
.tree-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.tree-card-photo { position: relative; aspect-ratio: 4/3; overflow: hidden; background: #dfe4da; }
.tree-card-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease; }
.tree-card:hover .tree-card-photo img { transform: scale(1.05); }
.tree-code {
  position: absolute; left: 14px; top: 14px; background: rgba(10,22,15,.72); color: #fff;
  font-size: 11px; letter-spacing: .12em; padding: 5px 10px; border-radius: 999px; backdrop-filter: blur(4px);
}
.tree-card-body { padding: 18px 18px 20px; display: flex; flex-direction: column; flex: 1; }
.tree-card-body h3 { font-size: 19px; color: var(--green); margin-bottom: 4px; }
.tree-card-region { font-size: 12px; color: var(--muted); margin-bottom: 12px; }
.tree-card-metrics { display: flex; gap: 18px; margin-top: auto; padding-top: 12px; border-top: 1px dashed var(--line); }
.tree-card-metrics div { font-size: 11.5px; color: var(--muted); }
.tree-card-metrics b { display: block; font-family: var(--serif); font-size: 16px; color: var(--green); font-weight: 600; }
.chip {
  display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; padding: 3px 9px;
  border-radius: 999px; background: rgba(31,61,43,.07); color: var(--green);
}
.chip.good { background: rgba(47,86,64,.1); color: #2f5640; }
.chip.warn { background: rgba(176,141,87,.16); color: #8a672f; }
.chip.danger { background: rgba(166,61,45,.1); color: #9d3b2c; }

/* ---------- 流程 ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: step; }
.step {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px 26px; overflow: hidden;
}
.step::before {
  counter-increment: step; content: "0" counter(step);
  position: absolute; right: 18px; top: 8px; font-family: var(--serif); font-size: 64px;
  color: rgba(31,61,43,.06); line-height: 1;
}
.step-icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: rgba(31,61,43,.07); color: var(--green); margin-bottom: 18px; }
.step-icon svg { width: 24px; height: 24px; }
.step h3 { font-size: 19px; color: var(--green); margin-bottom: 8px; }
.step p { font-size: 13.5px; color: var(--muted); margin: 0; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

/* ---------- 搜索 ---------- */
.search-hero { background: var(--paper); padding: 130px 0 48px; border-bottom: 1px solid var(--line); }
.search-hero h1 { font-size: clamp(30px, 4vw, 44px); color: var(--green); margin-bottom: 10px; }
.search-hero p { color: var(--muted); }
.search-bar { display: flex; gap: 10px; margin-top: 26px; max-width: 620px; }
.search-bar input {
  flex: 1; height: 52px; border: 1px solid var(--line-strong); border-radius: 999px;
  padding: 0 22px; font-size: 15px; background: #fff; color: var(--ink); outline: none;
}
.search-bar input:focus { border-color: var(--green); box-shadow: 0 0 0 4px rgba(31,61,43,.08); }
.search-bar button { flex: none; }

/* ---------- 面包屑 ---------- */
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); padding: 22px 0; }
.breadcrumb a:hover { color: var(--green); }
.breadcrumb span.sep { opacity: .5; }
.breadcrumb .current { color: var(--green); }

/* ---------- 区域详情 ---------- */
.region-hero { position: relative; min-height: 420px; display: flex; align-items: flex-end; color: #fff; overflow: hidden; padding: 130px 0 46px; }
.region-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.region-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,22,15,.5), rgba(10,22,15,.25) 40%, rgba(10,22,15,.88)); }
.region-hero .container { position: relative; z-index: 1; }
.region-hero .region-tag { font-size: 12px; letter-spacing: .28em; color: var(--gold-light); margin-bottom: 12px; }
.region-hero h1 { font-size: clamp(34px, 5vw, 56px); margin-bottom: 10px; }
.region-hero p { max-width: 640px; color: rgba(255,255,255,.78); margin: 0; }
.region-stats { display: flex; flex-wrap: wrap; gap: 14px 40px; margin-top: 26px; }
.region-stats div { font-size: 12px; color: rgba(255,255,255,.66); }
.region-stats b { display: block; font-family: var(--serif); font-size: 26px; color: #fff; font-weight: 600; }
.region-body { padding: 56px 0 90px; }
.region-layout { display: grid; grid-template-columns: 1fr 340px; gap: 48px; align-items: start; }
.region-desc h2, .region-map-card h2 { font-size: 24px; color: var(--green); margin-bottom: 16px; }
.region-desc p { color: #4c564d; line-height: 2; }
.region-map-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow-sm); }
.region-map-card .map-mini { position: relative; border-radius: var(--radius-sm); overflow: hidden; background: #e9e4d6; }
.region-map-card .map-mini img { width: 100%; display: block; }
.region-map-card .map-mini .map-marker { width: 14px; height: 14px; }
.region-map-card .coord { font-size: 12px; color: var(--muted); margin-top: 12px; display: flex; justify-content: space-between; gap: 10px; }
@media (max-width: 960px) { .region-layout { grid-template-columns: 1fr; } }

/* ---------- 古茶树详情 ---------- */
.tree-page { padding-top: 96px; }
.tree-hero { display: grid; grid-template-columns: 1.08fr .92fr; gap: 46px; align-items: center; padding: 26px 0 50px; }
.gallery-main { border-radius: var(--radius); overflow: hidden; background: #dfe4da; box-shadow: var(--shadow); position: relative; }
.gallery-main img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.gallery-main .gallery-count {
  position: absolute; right: 14px; bottom: 14px; background: rgba(10,22,15,.66); color: #fff;
  font-size: 11.5px; padding: 5px 11px; border-radius: 999px; backdrop-filter: blur(4px);
}
.gallery-thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; padding-bottom: 4px; }
.gallery-thumbs button { flex: none; width: 84px; height: 64px; border-radius: 10px; overflow: hidden; border: 2px solid transparent; padding: 0; background: none; opacity: .7; }
.gallery-thumbs button.active { border-color: var(--gold); opacity: 1; }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.tree-intro .code-badge {
  display: inline-flex; align-items: center; gap: 8px; font-size: 12px; letter-spacing: .16em;
  color: var(--gold); border: 1px solid rgba(176,141,87,.4); padding: 5px 12px; border-radius: 999px; margin-bottom: 16px;
}
.tree-intro h1 { font-size: clamp(30px, 4vw, 44px); color: var(--green); margin-bottom: 8px; }
.tree-intro .tree-region-link { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); margin-bottom: 18px; }
.tree-intro .tree-region-link:hover { color: var(--gold); }
.tree-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.tree-keyfacts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; margin-bottom: 26px; }
.tree-keyfacts div { background: #fff; padding: 16px 14px; }
.tree-keyfacts span { display: block; font-size: 11.5px; color: var(--muted); margin-bottom: 4px; }
.tree-keyfacts b { font-family: var(--serif); font-size: 22px; color: var(--green); font-weight: 600; }
.tree-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.tree-updated { font-size: 12px; color: var(--muted); margin-top: 16px; }

.tree-section { padding: 48px 0; border-top: 1px solid var(--line); }
.tree-section h2 { font-size: 25px; color: var(--green); margin-bottom: 8px; }
.tree-section .sub { color: var(--muted); font-size: 13px; margin-bottom: 26px; }
.data-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.data-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 18px; }
.data-item span { display: block; font-size: 11.5px; color: var(--muted); letter-spacing: .06em; margin-bottom: 6px; }
.data-item b { font-family: var(--serif); font-size: 21px; color: var(--green); font-weight: 600; }
.data-item small { font-size: 12px; color: var(--muted); margin-left: 3px; }
@media (max-width: 860px) {
  .tree-hero { grid-template-columns: 1fr; gap: 26px; padding-top: 12px; }
  .data-grid { grid-template-columns: repeat(2, 1fr); }
}
.tree-info-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
@media (max-width: 820px) { .tree-info-cols { grid-template-columns: 1fr; gap: 26px; } }
.info-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.info-row { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.info-row dt { color: var(--muted); }
.info-row dd { margin: 0; color: var(--ink); }
.tree-map-wrap { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #e9e4d6; }
.tree-map-wrap img { width: 100%; display: block; }
.tree-map-wrap .map-marker { width: 16px; height: 16px; }
.map-caption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: 12.5px; color: var(--muted); margin-top: 12px; }
.map-caption a { color: var(--green); border-bottom: 1px dashed var(--green); }

.timeline { position: relative; margin-top: 8px; padding-left: 30px; }
.timeline::before { content: ""; position: absolute; left: 8px; top: 6px; bottom: 6px; width: 1px; background: var(--line-strong); }
.timeline-item { position: relative; padding: 0 0 26px 0; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: ""; position: absolute; left: -26px; top: 8px; width: 9px; height: 9px; border-radius: 50%;
  background: var(--gold); box-shadow: 0 0 0 4px rgba(176,141,87,.18);
}
.timeline-year { font-family: var(--serif); font-size: 19px; color: var(--green); margin-bottom: 6px; display: flex; align-items: baseline; gap: 12px; }
.timeline-year small { font-family: var(--sans); font-size: 12px; color: var(--muted); }
.record-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 18px 20px; }
.record-metrics { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-bottom: 10px; }
.record-metrics div { font-size: 12px; color: var(--muted); }
.record-metrics b { color: var(--green); font-family: var(--serif); font-size: 16px; }
.record-card p { margin: 0; font-size: 13.5px; color: #4c564d; }
.record-card .record-meta { margin-top: 10px; font-size: 11.5px; color: var(--muted); }
.empty-state { padding: 40px 20px; text-align: center; color: var(--muted); background: #fff; border: 1px dashed var(--line-strong); border-radius: var(--radius); }

/* ---------- 档案说明 / 相邻 ---------- */
.prose { max-width: 780px; color: #4c564d; line-height: 2; }
.prose p { margin-bottom: 1.1em; }
.neighbor-list { display: flex; flex-wrap: wrap; gap: 10px; }
.neighbor-list a { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 9px 16px; font-size: 13px; color: var(--green); }
.neighbor-list a:hover { border-color: var(--gold); color: var(--gold); }

/* ---------- 底部操作条 ---------- */
.mobile-action {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(251,249,243,.94); backdrop-filter: blur(12px); border-top: 1px solid var(--line);
  gap: 10px;
}
.mobile-action .btn { flex: 1; }
@media (max-width: 760px) {
  .mobile-action { display: flex; }
  .tree-page { padding-bottom: 78px; }
}

/* ---------- 模态框 ---------- */
.modal { position: fixed; inset: 0; z-index: 90; display: none; }
.modal.open { display: block; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(10,22,15,.6); backdrop-filter: blur(3px); }
.modal-panel {
  position: relative; z-index: 1; width: min(420px, calc(100% - 32px)); margin: 12vh auto 0;
  background: var(--paper-2); border-radius: 20px; padding: 30px 28px 26px; box-shadow: 0 30px 80px rgba(0,0,0,.35);
  animation: modalIn .25s ease;
}
@keyframes modalIn { from { transform: translateY(14px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.modal-panel h3 { font-size: 22px; color: var(--green); margin-bottom: 6px; }
.modal-panel .modal-sub { font-size: 12.5px; color: var(--muted); margin-bottom: 20px; }
.modal-close { position: absolute; right: 14px; top: 12px; background: none; border: 0; font-size: 22px; color: var(--muted); line-height: 1; padding: 6px; }

/* ---------- 表单 ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .span-2 { grid-column: span 2; }
.field label { display: block; font-size: 12.5px; color: var(--muted); margin-bottom: 6px; }
.field label b { color: #a63d2d; font-weight: 600; }
.field input, .field select, .field textarea {
  width: 100%; border: 1px solid var(--line-strong); border-radius: 10px; background: #fff;
  padding: 11px 13px; font-size: 14.5px; color: var(--ink); outline: none; font-family: inherit;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field textarea { min-height: 100px; resize: vertical; line-height: 1.7; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(31,61,43,.08); }
.field .hint { font-size: 11.5px; color: var(--muted); margin-top: 5px; }
.form-section { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; margin-bottom: 20px; }
.form-section > h2 { font-size: 20px; color: var(--green); margin-bottom: 4px; }
.form-section > .sub { font-size: 12.5px; color: var(--muted); margin-bottom: 20px; }
.form-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 8px; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } .form-grid .span-2 { grid-column: auto; } }

/* ---------- 提示条 ---------- */
.flash-list { display: grid; gap: 10px; margin: 18px 0; }
.flash { padding: 12px 16px; border-radius: 10px; font-size: 13.5px; border: 1px solid; }
.flash.success { background: #edf5ee; border-color: #c6ddc9; color: #2f5c3a; }
.flash.error { background: #fbeeeb; border-color: #eccac3; color: #97392a; }
.flash.warning { background: #fbf3e5; border-color: #ead7b6; color: #8a672f; }
.flash.info { background: #eef3f7; border-color: #cddbe5; color: #315a73; }

/* ---------- 页脚 ---------- */
.site-footer { background: var(--green-deep); color: rgba(255,255,255,.72); padding: 64px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.5fr .8fr 1.1fr 1fr; gap: 40px; padding-bottom: 46px; }
.footer-brand .footer-seal {
  width: 44px; height: 44px; display: grid; place-items: center; border-radius: 8px;
  background: rgba(220,199,161,.12); border: 1px solid rgba(220,199,161,.35);
  color: var(--gold-light); font-family: var(--serif); font-size: 22px; margin-bottom: 16px;
}
.footer-brand h3 { color: #fff; font-size: 19px; margin-bottom: 12px; }
.footer-brand p { font-size: 13px; line-height: 1.9; color: rgba(255,255,255,.55); max-width: 340px; }
.site-footer h4 { font-family: var(--sans); font-size: 12px; letter-spacing: .18em; color: var(--gold-light); margin-bottom: 14px; }
.footer-links a { display: block; font-size: 13.5px; padding: 4px 0; color: rgba(255,255,255,.72); }
.footer-links a:hover { color: #fff; }
.footer-note { font-size: 12.5px; line-height: 1.9; color: rgba(255,255,255,.5); }
.footer-contact p { font-size: 13px; color: rgba(255,255,255,.65); }
.footer-admin { display: inline-flex; margin-top: 8px; font-size: 12.5px; color: var(--gold-light); border-bottom: 1px dashed rgba(220,199,161,.4); padding-bottom: 2px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 18px 0; }
.footer-bottom .container { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 11.5px; color: rgba(255,255,255,.4); letter-spacing: .06em; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- 其他 ---------- */
.page-hero { background: var(--paper); border-bottom: 1px solid var(--line); padding: 128px 0 42px; }
.page-hero h1 { font-size: clamp(30px, 4vw, 46px); color: var(--green); }
.page-hero p { color: var(--muted); max-width: 640px; margin-top: 8px; }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 40px; flex-wrap: wrap; }
.pagination a, .pagination span {
  min-width: 40px; height: 40px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: 10px; font-size: 13.5px; background: #fff; color: var(--ink);
}
.pagination a:hover { border-color: var(--gold); color: var(--gold); }
.pagination .current { background: var(--green); border-color: var(--green); color: #fff; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
