:root {
  --green: #17634c;
  --green-dark: #10543f;
  --green-pale: #eef5ef;
  --ink: #26332e;
  --muted: #68736e;
  --line: #e2e7e2;
  --paper: #f6f8f5;
  --orange: #a9552e;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: #fff;
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", sans-serif;
  font-size: 14px;
}
button, input { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--green); }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.site-shell { min-height: 100vh; }

.utility-bar {
  height: 34px; display: flex; justify-content: space-between; align-items: center;
  padding: 0 max(24px, calc((100vw - 1180px)/2));
  color: #78817b; background: #f5f7f5; border-bottom: 1px solid #ebeeeb; font-size: 11px;
}
.utility-right { display: flex; gap: 12px; align-items: center; }
.utility-divider { color: #ccd5cd; }
.site-header {
  max-width: 1228px; min-height: 110px; margin: auto; padding: 20px 24px;
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
}
.identity { display: flex; align-items: center; gap: 14px; flex: none; }
.identity-mark {
  width: 55px; height: 55px; border: 3px solid var(--green); border-radius: 50%;
  display: grid; place-items: center; position: relative;
}
.identity-mark::after { content: ""; position: absolute; width: 25px; height: 5px; bottom: 9px; left: 10px; border-radius: 50%; background: var(--green); transform: rotate(-12deg); }
.identity-mark span { width: 19px; height: 29px; background: var(--green); border-radius: 90% 4% 70% 4%; transform: rotate(33deg) translate(1px, -3px); }
.identity strong { display: block; font: 700 29px/1.25 "SimSun", "Songti SC", serif; letter-spacing: .14em; color: var(--green-dark); }
.identity small { display: block; margin-top: 4px; font: 10px Georgia, serif; letter-spacing: .16em; color: #8b968e; }
.site-search { display: flex; width: min(300px, 33vw); height: 37px; border: 1px solid #d6ded7; }
.site-search input { min-width: 0; width: 100%; border: 0; background: white; padding: 0 12px; color: var(--ink); font-size: 12px; outline: 0; }
.site-search button { flex: none; border: 0; background: var(--green); color: white; padding: 0 15px; font-size: 12px; }
.nav-bar { background: var(--green); }
.main-nav { max-width: 1180px; margin: auto; display: flex; }
.main-nav a {
  min-width: 0; flex: 1 1 0; padding: 17px 8px; text-align: center; color: white;
  font-size: 14px; font-weight: 700; letter-spacing: .04em; white-space: nowrap;
}
.main-nav a:hover, .main-nav a.active { color: white; background: #0d4d3a; }
.menu-button { display: none; }

.hero { height: clamp(300px, 32vw, 455px); position: relative; overflow: hidden; background: #376a4a; }
.hero img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: center 45%; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11, 47, 34, .84), rgba(11, 47, 34, .44) 40%, transparent 75%); pointer-events: none; }
.hero-copy { position: absolute; z-index: 1; top: 50%; left: max(24px, calc((100vw - 1180px)/2)); max-width: 570px; transform: translateY(-50%); color: white; }
.hero-overline { font-size: 14px; letter-spacing: .36em; color: #dcebdc; }
.hero h1 { font: 600 clamp(36px, 4.6vw, 64px)/1.2 "SimSun", "Songti SC", serif; letter-spacing: .08em; margin: 17px 0; }
.hero p { font-size: 16px; letter-spacing: .09em; margin: 0 0 29px; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 8px; min-height: 38px; padding: 9px 16px; border: 1px solid var(--green); background: white; color: var(--green); font-size: 12px; font-weight: 700; }
.button:hover { background: var(--green-pale); }
.button-primary { background: var(--green); color: white; }
.button-primary:hover { background: var(--green-dark); color: white; }
.button-outline { background: white; color: var(--green); }
.button-light { color: white; border-color: #cce0d2; background: rgba(255,255,255,.09); font-size: 13px; }
.button-light:hover { color: var(--green-dark); background: white; }
.button-danger { border-color: var(--orange); background: var(--orange); color: white; }
.text-link { color: var(--green); text-decoration: underline; text-underline-offset: 4px; font-weight: 700; font-size: 12px; }
.text-link:hover { color: var(--orange); }

.visit-strip { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line); }
.visit-strip > div { display: flex; align-items: center; gap: 15px; padding: 25px 28px; border-right: 1px solid var(--line); }
.visit-strip > div:first-child { padding-left: 0; }
.visit-strip > div:last-child { border: 0; }
.visit-strip span { padding: 5px 8px; border: 1px solid #bdd6c6; color: var(--green); white-space: nowrap; font-size: 11px; }
.visit-strip strong { font-size: 15px; font-weight: 600; white-space: nowrap; }
.visit-strip a { color: var(--green); }
.visitor-message { max-width: 1180px; margin: 18px auto 0; padding: 14px 18px; display: flex; justify-content: space-between; align-items: center; gap: 16px; border: 1px solid #d9e3da; background: #f4f8f4; }
.visitor-message strong { color: var(--green-dark); font-size: 12px; }
.visitor-message p { margin: 5px 0 0; color: var(--muted); font-size: 11px; }
.visitor-message a { flex: none; color: var(--green); font-size: 12px; font-weight: 700; }
.home-content, .page-wrap { max-width: 1228px; margin: auto; padding: 36px 24px 85px; }
.home-columns { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 50px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; padding-bottom: 14px; border-bottom: 2px solid var(--green); }
.section-heading h2 { margin: 0; color: var(--green-dark); font-size: 23px; font-weight: 700; letter-spacing: .06em; }
.section-heading a { color: var(--muted); font-size: 12px; }
.news-list { margin-top: 4px; }
.news-row { min-height: 70px; display: grid; grid-template-columns: 74px 1fr auto; gap: 15px; align-items: center; border-bottom: 1px solid var(--line); font-size: 14px; }
.news-row:hover > span:nth-child(2) { color: var(--green); }
.news-row.important > span:nth-child(2) { color: var(--orange); font-weight: 700; }
.news-date { display: grid; border-right: 1px solid var(--line); padding-right: 10px; text-align: center; }
.news-date b { font-size: 17px; font-weight: 500; color: #5c7063; }
.news-date small { color: #9aa69d; font-size: 10px; }
.news-row em { font-size: 11px; font-style: normal; color: #98a69b; }
.home-side { border: 1px solid #dbe5dc; background: #f8fbf8; padding: 22px; }
.side-heading { font-size: 20px; font-weight: 700; color: var(--green-dark); padding-bottom: 15px; border-bottom: 2px solid var(--green); }
.home-side a { display: block; padding: 17px 3px; border-bottom: 1px solid var(--line); }
.home-side a:last-child { border-bottom: 0; }
.home-side strong { display: block; font-size: 15px; }
.home-side span { display: block; margin-top: 5px; font-size: 11px; color: #829087; }
.featured-heading { margin-top: 55px; }
.animal-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; padding-top: 22px; }
.animal-card { display: block; border: 1px solid var(--line); background: white; overflow: hidden; }
.animal-card:hover { border-color: #9bc2a4; box-shadow: 0 7px 20px #175f3420; }
.animal-card img { display: block; width: 100%; height: 175px; object-fit: cover; }
.animal-card:nth-child(4) img { object-position: 35% center; }
.animal-caption { display: block; padding: 13px 15px 16px; }
.animal-caption small { display: block; color: var(--muted); font-size: 11px; margin-bottom: 5px; }
.animal-caption strong { display: block; color: var(--green-dark); font-size: 17px; }
.listing-grid { padding-top: 0; }
.education-teasers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; padding-top: 22px; }
.education-teasers a { min-height: 142px; padding: 20px; border: 1px solid var(--line); background: #fafcf9; }
.education-teasers a:hover { border-color: #9bc2a4; }
.education-teasers span { display: block; color: var(--green); font-size: 11px; margin-bottom: 16px; }
.education-teasers strong { display: block; font-size: 16px; line-height: 1.45; }
.education-teasers small { display: block; margin-top: 13px; color: #8b968e; font-size: 10px; }
.education-articles { display: grid; gap: 17px; max-width: 880px; }
.education-articles .card { margin: 0; }

.breadcrumbs { color: #89948d; font-size: 11px; margin: 1px 0 25px; }
.breadcrumbs a:hover { color: var(--green); }
.page-intro { padding: 0 0 21px; border-bottom: 1px solid var(--line); margin-bottom: 25px; }
.page-intro h1 { display: inline-block; margin: 0 0 10px; padding-left: 13px; border-left: 4px solid var(--green); font-size: 30px; line-height: 1.2; color: var(--green-dark); }
.page-intro p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
.content-grid { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 32px; align-items: start; }
.content-grid > *, .card { min-width: 0; }
.card { background: #fff; border: 1px solid var(--line); padding: 22px 24px; }
.card + .card { margin-top: 18px; }
.card h2 { margin: 0 0 17px; font-size: 20px; color: var(--green-dark); }
.card h3 { margin: 0 0 13px; font-size: 16px; color: var(--green-dark); }
.card p { color: #5d6961; font-size: 13px; line-height: 1.9; margin: 0 0 14px; }
.card p:last-child { margin-bottom: 0; }
.meta { display: block; margin-bottom: 12px; color: #8a978d; font-size: 11px; }
.side-links { list-style: none; padding: 0; margin: 0; }
.side-links li { padding: 12px 0; border-top: 1px solid var(--line); font-size: 12px; }
.side-links li:first-child { border-top: 0; }
.side-links a:hover { color: var(--green); }
.article-card { padding: 27px 32px; }
.article-card p { font-size: 14px; }
.article-photo { height: 240px; margin: -27px -32px 27px; background: url("./assets/wetland-flamingo.jpg") center 46% / cover; }
.animal-detail-image { display: block; width: calc(100% + 64px); height: 360px; margin: -27px -32px 27px; object-fit: cover; }
.animal-record-id { display: inline-block; padding: 5px 8px; background: var(--green-pale); color: var(--green-dark) !important; font-size: 11px !important; }
.observation-note { margin: 22px 0 0; padding: 16px 18px; border: 1px solid #d5dfd5; background: #f8faf7; }
.observation-note strong { display: block; margin-bottom: 8px; color: var(--green-dark); font-size: 14px; }
.observation-note p { margin-bottom: 12px; }
.record-index { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 16px; }
.record-index span { padding: 10px 12px; border: 1px solid var(--line); font-size: 12px; }
.record-index .suspect { color: var(--orange); border-color: #e4c9b7; background: #fff9f3; }
.record-options { margin-top: 15px; }
.record-appendix { margin-top: 18px !important; }
.info-table { margin: 6px 0 18px; border-top: 1px solid var(--line); }
.info-table div { display: flex; justify-content: space-between; padding: 13px 2px; border-bottom: 1px solid var(--line); font-size: 13px; }
.info-table strong { color: var(--green-dark); }
.rule-list { list-style: none; padding: 0; margin: 7px 0 18px; border-top: 1px solid var(--line); }
.rule-list li { display: grid; grid-template-columns: 35px 1fr; gap: 10px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.rule-list li span { color: var(--green); font: 700 17px Georgia, serif; }
.rule-list li p { margin: 0; }
.rule-list li.rule-changed { background: #fff9f3; }
.rule-toolbar { display: flex; gap: 7px; flex-wrap: wrap; margin: 5px 0 13px; }
.rule-toolbar button { border: 1px solid #c6d8ca; padding: 8px 12px; background: white; color: var(--green-dark); font-size: 11px; }
.rule-toolbar button[aria-pressed="true"] { background: var(--green); border-color: var(--green); color: white; }
.rule-source { margin: 0 0 13px !important; color: #809086 !important; font-size: 11px !important; }
.rule-version { color: #8a978d !important; font-size: 11px !important; }
.callout { margin: 19px 0 0; padding: 13px 16px; background: #f0f6f1; border-left: 3px solid var(--green); color: #355c45; font-size: 12px; line-height: 1.7; }
.callout.warn { border-left-color: var(--orange); background: #fff6ef; color: #7c482e; }
.callout strong { display: block; margin-bottom: 3px; }
.callout p { color: inherit; margin: 0; font-size: 12px; }
.signal-record { margin: 23px 0 0; padding: 18px 0 20px; border-top: 1px solid var(--line); }
.signal-record h3 { margin-bottom: 7px; }
.signal-record .button { margin-top: 3px; }
.signal-filters { display: flex; gap: 7px; margin-top: 14px; }
.signal-filters button { padding: 7px 11px; border: 1px solid #c7d7ca; background: white; color: var(--green-dark); font-size: 11px; }
.signal-filters button[aria-pressed="true"] { background: var(--green); border-color: var(--green); color: white; }
.signal-list { list-style: none; padding: 0; margin: 15px 0 0; border-top: 1px solid var(--line); }
.signal-list li { display: flex; gap: 14px; padding: 10px 4px; border-bottom: 1px solid var(--line); font-size: 12px; }
.signal-list span { color: var(--green-dark); font-family: Georgia, serif; font-weight: 700; }
.signal-result { margin: 11px 0 0 !important; font-size: 11px !important; }
.camera-archive { margin: 22px 0; border: 1px solid #d7e1d9; background: #f8faf8; }
.camera-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 15px 18px 0; }
.camera-heading h3 { margin: 0; color: var(--green-dark); font-size: 15px; }
.camera-heading small { color: var(--muted); font-size: 11px; }
.camera-tabs { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; padding: 14px 18px; }
.camera-tabs button { border: 1px solid #c7d7ca; background: white; padding: 8px 12px; color: var(--green-dark); font-size: 11px; cursor: pointer; }
.camera-tabs button[aria-pressed="true"] { background: var(--green); color: white; border-color: var(--green); }
.camera-waiting { color: #879489; font-size: 11px; }
.new-mark { margin-left: 4px; font-size: 10px; color: var(--orange); font-weight: 700; }
.camera-tabs button[aria-pressed="true"] .new-mark { color: #ffe2c7; }
.camera-frame, .camera-pair figure { margin: 0; }
.camera-frame { padding: 0 18px; }
.camera-frame img, .camera-pair img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #c8cfca; }
.camera-frame figcaption, .camera-pair figcaption { padding: 9px 0; color: var(--muted); font-size: 11px; }
.camera-frame figcaption a, .camera-pair figcaption a { color: var(--green); text-decoration: underline; text-underline-offset: 3px; }
.camera-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 0 18px; }
.camera-compare-button { margin: 4px 18px 18px; }
.camera-service-link { margin-top: 15px !important; }
.image-description { margin: 0 18px 17px; padding: 11px 13px; border: 1px dashed #b9cbbd; background: white; }
.image-description summary { color: var(--green-dark); cursor: pointer; font-size: 11px; font-weight: 700; }
.image-description p { margin: 9px 0 0; }
.image-report { border-top: 1px solid #d7e1d9; margin-top: 4px; padding: 18px; background: white; }
.image-report h3 { margin-bottom: 6px; }
.image-report p { margin-bottom: 13px; }
.mark-options { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 13px; }
.mark-options button { border: 1px solid #c7d7ca; background: white; padding: 8px 12px; color: var(--green-dark); font-size: 11px; }
.mark-options button[aria-pressed="true"] { background: var(--green); border-color: var(--green); color: white; }
.image-report .callout { margin-bottom: 12px; }
.report-code { color: var(--green-dark) !important; }

.map-visual { width: 100%; max-width: 100%; border: 1px solid #d2dfd4; background: #e8eee4; margin: 15px 0 24px; overflow-x: auto; }
.map-visual svg { width: 100%; height: auto; display: block; }
.map-legend { display: flex; justify-content: flex-end; gap: 19px; padding: 7px 12px; border-top: 1px solid #d2dfd4; background: white; font-size: 10px; color: var(--muted); }
.map-legend span { display: inline-flex; align-items: center; gap: 5px; }
.map-legend i { display: inline-block; width: 10px; height: 10px; }
.legend-you { background: #16806a; border-radius: 50%; }
.legend-path { background: #fff; border: 1px solid #bdd1bd; }
.legend-water { background: #b7d9da; }
.route-list { border-top: 1px solid var(--line); }
.route-card { display: grid; grid-template-columns: minmax(0, 1fr) 152px; align-items: center; gap: 18px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.route-card strong { font-size: 14px; }
.route-card small { display: block; color: #849187; margin-top: 5px; font-size: 11px; }
.route-card .button { width: 100%; min-width: 0; }
.route-card.dim { background: #fbfcfa; }
.tag { display: inline-block; margin-left: 6px; padding: 3px 5px; color: var(--orange); background: #fff1e9; font-size: 10px; }
.search-form label, .claim-form label { display: block; font-size: 12px; font-weight: 700; margin: 0 0 9px; }
.input-row { display: flex; gap: 8px; }
.input-row input { min-width: 0; flex: 1; border: 1px solid #ccd7ce; border-radius: 0; padding: 9px 12px; font-size: 13px; }
.input-row .button { flex: none; }
.notices { border-top: 2px solid var(--green); }
.notice { padding: 20px 6px; border-bottom: 1px solid var(--line); }
.notice small { color: #9aa49b; font-size: 11px; }
.notice h2 { margin: 8px 0; color: var(--ink); font-size: 16px; }
.notice p { margin: 0; color: var(--muted); line-height: 1.75; font-size: 12px; }
.notice.new h2 { color: var(--orange); }
.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
.tile { display: block; padding: 25px; min-height: 185px; border: 1px solid var(--line); background: white; }
.tile:hover { border-color: #97be9f; box-shadow: 0 8px 22px #135c3010; }
.tile-icon { display: grid; place-items: center; width: 39px; height: 39px; color: var(--green); background: var(--green-pale); font-size: 23px; }
.tile h3 { margin: 17px 0 7px; font-size: 17px; }
.tile p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
.chat-line { max-width: 86%; padding: 11px 13px; margin: 9px 0; border: 1px solid #e4e9e3; background: white; font-size: 12px; line-height: 1.75; }
.chat-line small { display: block; color: var(--muted); font-size: 10px; margin-bottom: 4px; }
.chat-line.you { margin-left: auto; background: #e4f1e7; }
.chat-widget { position: fixed; right: 24px; bottom: 20px; z-index: 50; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.chat-scrim { display: none; }
.chat-launch { display: flex; align-items: center; gap: 8px; position: relative; min-height: 48px; padding: 7px 16px 7px 8px; border: 0; border-radius: 28px; background: var(--green); box-shadow: 0 7px 24px #103d2f45; color: white; font-size: 13px; font-weight: 700; }
.chat-launch:hover { background: var(--green-dark); }
.chat-launch-icon { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: #ffffff25; font-size: 22px; line-height: 1; }
.chat-unread { display: grid; place-items: center; width: 18px; height: 18px; position: absolute; top: -5px; right: -3px; border-radius: 50%; background: var(--orange); color: white; font-size: 10px; }
.chat-panel { width: min(360px, calc(100vw - 24px)); max-height: min(60dvh, 480px); display: flex; flex-direction: column; border: 1px solid #b4c9b9; border-radius: 9px; background: white; box-shadow: 0 17px 55px #193a2e40; overflow: hidden; }
.chat-widget-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 15px 17px; background: var(--green); color: white; }
.chat-widget-heading strong { display: block; font-size: 14px; }
.chat-widget-heading small { display: block; margin-top: 4px; font-size: 10px; color: #c7e0ce; }
.chat-widget-heading button { width: 26px; height: 26px; flex: none; border: 0; background: transparent; color: white; font-size: 25px; line-height: 1; }
.chat-widget-body { min-height: 0; flex: 1 1 auto; overflow-y: auto; padding: 15px; background: #f4f7f3; }
.chat-widget-body .chat-line { font-size: 11px; }
.chat-widget-actions { display: flex; gap: 7px; padding: 10px 14px; border-top: 1px solid var(--line); }
.chat-widget-actions button { flex: 1; padding: 8px 5px; border: 1px solid var(--green); background: white; color: var(--green); font-size: 11px; }
.chat-widget-actions button:first-child { background: var(--green); color: white; }
.chat-widget-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; padding: 10px 14px; border-top: 1px solid var(--line); }
.chat-widget-form input { min-width: 0; min-height: 40px; padding: 8px 10px; border: 1px solid #cbd9cd; font-size: 13px; }
.chat-widget-form button { min-width: 58px; min-height: 40px; border: 0; padding: 0 12px; background: var(--green); color: white; font-size: 12px; }
.chat-privacy { margin: 0; padding: 0 14px 12px; color: #819288; font-size: 10px; }
@media (min-width: 901px) {
  body[data-chat-open="1"] .site-shell { width: calc(100% - 400px); }
  body[data-chat-open="1"] .site-header { flex-wrap: wrap; }
  body[data-chat-open="1"] .nav-bar { padding: 0 24px; }
  body[data-chat-open="1"] .menu-button { display: block; width: 100%; padding: 13px 0; text-align: left; color: white; background: transparent; border: 0; font-size: 14px; font-weight: 700; }
  body[data-chat-open="1"] .menu-button span { float: right; }
  body[data-chat-open="1"] .main-nav { display: none; flex-wrap: wrap; padding-bottom: 9px; }
  body[data-chat-open="1"] .main-nav.open { display: flex; }
  body[data-chat-open="1"] .main-nav a { min-width: 25%; flex: 0 0 25%; padding: 10px 0; text-align: left; font-size: 13px; }
  body[data-chat-open="1"] .world-bar { flex-wrap: wrap; }
  body[data-chat-open="1"] .world-note { margin-left: 0; }
  body[data-chat-open="1"] .content-grid,
  body[data-chat-open="1"] .home-columns { grid-template-columns: minmax(0, 1fr); }
  body[data-chat-open="1"] .animal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body[data-chat-open="1"] .visit-strip { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); margin: 0 24px; }
  body[data-chat-open="1"] .visit-strip strong { white-space: normal; }
}
@media (max-width: 900px) {
  body[data-chat-open="1"] { overflow: hidden; }
  .chat-scrim { display: block; position: fixed; inset: 0; z-index: 0; background: #102c2266; }
  .chat-panel, .chat-launch { position: relative; z-index: 1; }
}
@media (max-height: 480px) {
  .chat-panel { max-height: calc(100dvh - 78px); }
  .chat-widget-heading { padding: 8px 12px; }
  .chat-widget-actions { padding: 6px 10px; }
  .chat-widget-form { padding: 7px 10px; }
  .chat-privacy { display: none; }
}
.service-contact { margin-top: 20px; }
.mini-list { margin: 0; padding: 0; list-style: none; }
.mini-list li { border-top: 1px solid var(--line); padding: 12px 0; font-size: 12px; }
.mini-list small { display: block; color: var(--muted); margin-top: 4px; }
.log-lock-card { border-style: dashed; border-color: #c3b8a4; background: #fbfaf6; }
.log-lock-card h2 { color: #6b5d45; }
.log-lock-card .button { margin-top: 6px; }
.card > .button + .text-link, .card > .button-outline + .text-link { display: inline-block; margin-left: 14px; }
.glitch { color: var(--orange); letter-spacing: .07em; }
.search-results { max-width: 780px; border-top: 2px solid var(--green); }
.search-results a, .search-results button { display: block; width: 100%; padding: 20px 8px; border: 0; border-bottom: 1px solid var(--line); background: white; color: var(--ink); text-align: left; cursor: pointer; }
.search-results a:hover, .search-results button:hover { background: #f5f9f5; color: var(--green); }
.search-results strong { display: block; font-size: 15px; margin-bottom: 6px; }
.search-results span { font-size: 12px; color: var(--muted); }
.search-empty { padding: 18px 8px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.8; }
.help-panel { background: #f9fbf8; }
.help-panel .button { margin-top: 2px; }
.help-answer { margin: 13px 0 0 !important; padding: 11px 12px; border-left: 2px solid var(--green); background: white; }
.record-card { border-top: 3px solid var(--green); }
.record-card.pending { border-top-color: var(--orange); }
.record-heading { display: flex; justify-content: space-between; align-items: center; gap: 15px; margin-bottom: 19px; }
.record-heading span { color: var(--muted); font-size: 12px; }
.record-heading strong { color: var(--green); font-size: 20px; }
.record-card.pending .record-heading strong { color: var(--orange); }
.record-card .info-table strong { text-align: right; }
.record-note { margin-top: 19px !important; font-size: 11px !important; color: #8a978d !important; }
.record-card .button { margin-top: 18px; }
.record-card .checkpoint-button { margin-left: 8px; }

/* 污染度分级视觉（由 render() 写入 body[data-corruption]） */
body[data-corruption="1"]::after, body[data-corruption="2"]::after, body[data-corruption="3"]::after {
  content: "未经人工核验"; position: fixed; left: 10px; bottom: 8px; z-index: 60;
  color: #b3402e; font-size: 10px; letter-spacing: .22em; opacity: .72; pointer-events: none;
}
body[data-corruption="2"] .hero img, body[data-corruption="3"] .hero img { filter: saturate(.5) hue-rotate(-22deg) contrast(1.06); }
body[data-corruption="2"] .animal-card img, body[data-corruption="3"] .animal-card img,
body[data-corruption="2"] .camera-frame img, body[data-corruption="3"] .camera-frame img,
body[data-corruption="2"] .camera-pair img, body[data-corruption="3"] .camera-pair img { filter: saturate(.62) hue-rotate(-10deg); }
body[data-corruption="3"] #app { text-shadow: 1px 0 rgba(196, 30, 58, .26), -1px 0 rgba(36, 138, 198, .26); }
.nav-ghost { color: #ffd9d0 !important; background: #3a1420; animation: ghost-flicker 2.6s infinite; }
.nav-ghost:hover { color: #fff !important; background: #571b28; }
@keyframes ghost-flicker {
  0%, 100% { opacity: 1; }
  7% { opacity: .3; }
  9% { opacity: .92; }
  44% { opacity: 1; }
  46% { opacity: .45; }
  50% { opacity: 1; }
}
.chat-line.glitch-line { border-color: #d8b3ac; background: #fdf3f0; color: #8a2f22; text-shadow: 1px 0 rgba(196, 30, 58, .35), -1px 0 rgba(36, 138, 198, .35); }

/* 闭园期间游客临时守则 */
.night-rules-card { border-left: 3px solid #9c2f2f; }
.night-rules li span { color: #9c2f2f; }
.night-rules li.rule-changed { background: #fdf0ea; }
.night-rules li.rule-changed p { text-decoration: underline wavy #c05a41; text-underline-offset: 4px; }
.rule-check { margin-top: 7px; display: flex; align-items: center; gap: 10px; }
.rule-check button { border: 1px solid #c9a79c; background: white; padding: 4px 9px; color: #8a4030; font-size: 10px; }
.rule-check button:hover { background: #fdf0ea; }
.rule-check-status { color: #8a978d; font-size: 10px; letter-spacing: .04em; }
.rule-tenth { background: #1c1215; }
.rule-tenth span { color: #e0604f !important; }
.rule-tenth p { color: #f3d7ce !important; animation: tenth-jitter 1.7s infinite; }
@keyframes tenth-jitter {
  0%, 100% { transform: translateX(0); }
  18% { transform: translateX(1px); }
  20% { transform: translateX(-1px); }
  58% { transform: translateX(0); }
  61% { transform: translateX(1px); }
  63% { transform: translateX(0); }
}

/* 退件登记簿 */
.stub-book { margin-top: 22px; padding-top: 17px; border-top: 1px solid var(--line); }
.stub-book h3 { margin-bottom: 7px; }
.stub-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 13px; }
.stub-options button { padding: 15px 17px; border: 1px solid #d3c9ae; background: #fbf8ee; text-align: left; }
.stub-options button:hover { border-color: var(--orange); background: #fffdf6; }
.stub-options strong { display: block; margin-bottom: 7px; color: #6b5326; font-size: 13px; }
.stub-options span { display: block; color: #7d7461; font-size: 11px; line-height: 1.75; }

/* 值班日志残页 */
.log-entries { display: grid; gap: 22px; max-width: 860px; }
.log-entry { padding: 24px 28px; border: 1px solid #d9cba4; background: #f4ecd7; box-shadow: 0 3px 0 #e3d6b4, 0 10px 26px #5a4a2014; font-family: "Courier New", "SimSun", monospace; }
.log-entry:nth-child(odd) { transform: rotate(-.35deg); }
.log-entry:nth-child(even) { transform: rotate(.3deg); }
.log-entry .meta { color: #97855c; }
.log-entry h2 { margin: 0 0 13px; color: #6b4a2a; font-size: 16px; letter-spacing: .06em; }
.log-entry p { color: #4a4132; font-size: 13px; line-height: 2; margin: 0 0 12px; }
.log-entry p:last-child { margin-bottom: 0; }
.log-entry strong { color: #8a2f22; }
.log-return { max-width: 860px; margin-top: 24px; }

/* claimed 结局登记卡 */
.record-card.claimed { border-top-color: #9c2f2f; background: #fbf5f1; }
.record-card.claimed .record-heading strong { color: #9c2f2f; }
.record-card.claimed .info-table strong { color: #6e2a20; }


.site-footer { background: #224f3e; color: #d8e4d9; padding: 36px max(24px, calc((100vw - 1180px)/2)); }
.footer-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.footer-head strong { display: block; font: 700 20px "SimSun", "Songti SC", serif; margin-bottom: 7px; }
.footer-head span, .site-footer small { color: #b2cbb8; font-size: 11px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 24px; padding: 22px 0; margin: 25px 0 18px; border-top: 1px solid #48735b; border-bottom: 1px solid #48735b; }
.footer-links a, .footer-links button { padding: 0; color: #d8e4d9; background: none; border: 0; font-size: 12px; }
.footer-links button { margin-left: auto; }
.site-footer small a { text-decoration: underline; text-underline-offset: 3px; }
.reset-dialog { width: min(420px, 90vw); border: 1px solid #bdd2bf; padding: 28px; color: var(--ink); }
.reset-dialog::backdrop { background: #173a2eb0; }
.reset-dialog .kicker { color: var(--green); font-size: 11px; }
.reset-dialog h2 { margin: 10px 0; font-size: 22px; }
.reset-dialog p { color: var(--muted); line-height: 1.8; font-size: 13px; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 22px; }

@media (max-width: 1080px) {
  .nav-bar { padding: 0 24px; }
  .menu-button { display: block; width: 100%; padding: 13px 0; text-align: left; color: white; background: transparent; border: 0; font-size: 14px; font-weight: 700; }
  .menu-button span { float: right; }
  .main-nav { display: none; flex-wrap: wrap; padding-bottom: 9px; }
  .main-nav.open { display: flex; }
  .main-nav a { min-width: 25%; flex: 0 0 25%; padding: 10px 0; text-align: left; font-size: 13px; }
}
@media (max-width: 900px) {
  .home-columns { grid-template-columns: minmax(0, 1fr) 260px; gap: 25px; }
  .visit-strip > div { padding: 20px 10px; gap: 8px; }
  .visit-strip > div:first-child { padding-left: 24px; }
  .animal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .education-teasers { grid-template-columns: 1fr; gap: 10px; }
  .education-teasers a { min-height: 0; }
}
@media (max-width: 720px) {
  .utility-bar { padding: 0 18px; }
  .site-header { min-height: 80px; padding: 14px 18px; }
  .identity strong { font-size: 20px; }
  .identity small { font-size: 8px; }
  .identity-mark { width: 41px; height: 41px; }
  .site-search { width: min(220px, 40vw); }
  .nav-bar { padding: 0 18px; }
  .menu-button { display: block; width: 100%; padding: 13px 0; text-align: left; color: white; background: transparent; border: 0; font-size: 14px; font-weight: 700; }
  .menu-button span { float: right; }
  .main-nav { display: none; flex-wrap: wrap; padding-bottom: 9px; }
  .main-nav.open { display: flex; }
  .main-nav a { min-width: 50%; flex: 0 0 50%; padding: 10px 0; text-align: left; font-size: 13px; }
  .hero { height: 320px; }
  .hero-copy { left: 25px; }
  .hero::after { background: linear-gradient(90deg, #113e32ca, #113e3250 70%, transparent); }
  .hero h1 { font-size: 38px; }
  .visit-strip { margin: 0 18px; }
  .visitor-message { margin: 16px 18px 0; }
  .visit-strip > div:first-child { padding-left: 0; }
  .visit-strip > div { flex-direction: column; align-items: flex-start; }
  .visit-strip strong { font-size: 12px; white-space: normal; }
  .home-content, .page-wrap { padding: 30px 18px 60px; }
  .home-columns, .content-grid { grid-template-columns: minmax(0, 1fr); }
  .home-side { margin-top: 10px; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 500px) {
  .utility-right { display: none; }
  .site-header { flex-wrap: wrap; gap: 13px; }
  .site-search { width: 100%; }
  .hero { height: 285px; }
  .hero-overline { font-size: 11px; }
  .hero h1 { font-size: 32px; }
  .hero p { font-size: 12px; }
  .visit-strip { grid-template-columns: 1fr; }
  .visit-strip > div { padding: 11px 0; flex-direction: row; border-right: 0; border-bottom: 1px solid var(--line); }
  .visit-strip > div:last-child { border: 0; }
  .visitor-message { display: block; }
  .visitor-message a { display: inline-block; margin-top: 9px; }
  .visit-strip span { min-width: 69px; text-align: center; }
  .news-row { grid-template-columns: 62px 1fr; gap: 10px; font-size: 12px; }
  .news-row em { display: none; }
  .service-grid { grid-template-columns: 1fr; }
  .animal-grid { gap: 10px; }
  .animal-card img { height: 125px; }
  .animal-caption { padding: 10px; }
  .animal-caption strong { font-size: 14px; }
  .animal-detail-image { height: 240px; }
  .record-index { grid-template-columns: 1fr; }
  .camera-heading { display: block; }
  .camera-heading small { display: block; margin-top: 4px; }
  .camera-pair { grid-template-columns: 1fr; }
  .route-card { grid-template-columns: minmax(0, 1fr); }
  .record-card .checkpoint-button { margin-left: 0; display: flex; }
  .chat-widget { right: 12px; left: 12px; bottom: 12px; }
  .chat-panel { width: 100%; max-height: min(70dvh, 520px); }
  .chat-widget-form input { font-size: 16px; }
  .map-visual svg { min-width: 560px; }
  .map-legend { gap: 8px; justify-content: center; }
  .input-row { flex-direction: column; }
  .footer-head { display: block; }
  .footer-head > span { display: block; margin-top: 14px; }
  .footer-links button { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .nav-ghost, .rule-tenth p { animation: none; }
}
@media (max-width: 720px) {
  .stub-options { grid-template-columns: 1fr; }
  .log-entry:nth-child(odd), .log-entry:nth-child(even) { transform: none; }
}

/* ── 读取模式：园方视图 / 观测视图 ───────────────── */
.w-obs { display: none; }
body[data-world="obs"] .w-park { display: none; }
body[data-world="obs"] .w-obs { display: inline; }
.ops-nav { display: none !important; }
body[data-world="obs"][data-observed="1"] .ops-nav { display: inline-flex !important; }
.world-bar {
  display: none; max-width: 1180px; margin: 0 auto; padding: 9px 24px;
  align-items: center; gap: 9px; border-bottom: 1px solid var(--line);
  background: #f7f9f7; font-size: 11px; color: var(--muted);
}
body[data-observed="1"] .world-bar { display: flex; }
.world-label { letter-spacing: .14em; color: #8a978d; }
.world-option { padding: 5px 12px; border: 1px solid #c7d7ca; background: #fff; color: var(--green-dark); font-size: 11px; }
.world-option[aria-pressed="true"] { background: var(--green); border-color: var(--green); color: #fff; }
.world-note { margin-left: auto; color: #9aa69d; }

/* 观测视图：去饱和的里世界读数 */
body[data-world="obs"] {
  --green: #5b6570; --green-dark: #39424c; --green-pale: #eef0f2;
  --line: #dfe3e6; --muted: #6b737b; --orange: #8a5040;
}
body[data-world="obs"] img { filter: grayscale(.5) contrast(1.06); }
body[data-world="obs"] .world-bar { background: #eef1f4; border-bottom-color: #c9d0d6; }
body[data-world="obs"] .world-option[aria-pressed="true"] { background: #4a5560; border-color: #4a5560; }
body[data-world="obs"]::before {
  content: "观测视图 · 内部档案"; position: fixed; right: 10px; bottom: 8px; z-index: 60;
  color: #7b858e; font-size: 10px; letter-spacing: .2em; opacity: .8; pointer-events: none;
}
body[data-world="obs"] .page-intro h1 { letter-spacing: .12em; }

/* ── 多出来的观察记录 / 条目索引 ─────────────────── */
.animal-card.sighting { position: relative; border-color: #e0bda9; }
.animal-card.sighting:hover { border-color: var(--orange); box-shadow: 0 7px 20px #a9552e26; }
.sighting-flag {
  position: absolute; top: 8px; left: 8px; padding: 3px 8px;
  background: var(--orange); color: #fff; font-size: 10px; letter-spacing: .06em;
}
.entry-table { margin: 0 0 22px; border-top: 1px solid var(--line); }
.entry-row { display: grid; grid-template-columns: 74px 92px minmax(0, 1fr); gap: 14px; padding: 13px 4px; border-bottom: 1px solid var(--line); font-size: 12px; color: #4c555d; }
.entry-row strong { color: var(--green-dark); font: 700 13px "Courier New", monospace; letter-spacing: .1em; }
.entry-row.active { background: #fdf1ea; }
.entry-row.active strong { color: #8a4030; }
.entry-row.unknown strong { color: #8a978d; }
.entry-row.unknown span:last-child { letter-spacing: .3em; }

@media (max-width: 720px) {
  .world-bar { padding: 8px 18px; flex-wrap: wrap; }
  .world-note { display: none; }
  .entry-row { grid-template-columns: 62px minmax(0, 1fr); row-gap: 2px; }
  .entry-row span:nth-child(2) { grid-column: 2; }
}

/* ── 调查笔记本 ───────────────────────────────── */
.clue-count { color: var(--muted); font-size: 12px; font-weight: 400; }
.clue-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.clue-card { position: relative; padding: 15px 17px; border: 1px solid var(--line); border-left: 3px solid var(--green); background: #fbfdfa; }
.clue-card strong { display: block; margin: 6px 0 6px; color: var(--green-dark); font-size: 14px; }
.clue-card p { margin: 0; color: #5d6961; font-size: 12px; line-height: 1.8; }
.clue-tag { display: inline-block; padding: 2px 7px; background: var(--green-pale); color: var(--green); font-size: 10px; letter-spacing: .08em; }
.cipher-note { display: inline-block; margin-left: 6px; color: #8a978d; font-size: 11px; }
.decode-readout { display: flex; align-items: center; gap: 16px; margin-top: 14px; padding: 14px 16px; border: 1px dashed #b9cbbd; background: #f4f8f4; }
.decode-readout span { color: var(--muted); font: 700 16px Georgia, serif; letter-spacing: .3em; }
.decode-readout strong { color: var(--green-dark); font-size: 26px; letter-spacing: .22em; }
.anomaly-card { border-color: #d8b3ac; background: #fdf3f0; }
.anomaly-card h3 { color: #8a2f22; }
.anomaly-card p { color: #7c482e; }

/* ── 编号对照与频段（密码破译） ─────────────────── */
.cipher-sheet { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 4px 0 16px; }
.cipher-sheet.single { grid-template-columns: minmax(0, 1fr); }
.cipher-half { padding: 14px 16px; border: 1px solid #d3c9ae; background: #fbf8ee; }
.signal-controls { margin-left: auto; display: inline-flex; gap: 4px; }
.signal-controls button { border: 1px solid var(--line); background: var(--paper); color: var(--green-dark); min-width: 30px; min-height: 30px; }
.signal-list li { display: flex; align-items: center; gap: 10px; }
.camera-zoom-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.camera-zoom-grid figure { margin: 0; min-width: 0; }
.camera-zoom-frame { height: 190px; overflow: hidden; background: var(--paper); }
.camera-zoom-frame img { display: block; width: 180%; max-width: none; height: auto; margin-left: -40%; }
.camera-zoom-grid figcaption { padding-top: 5px; color: var(--muted); font-size: 12px; }
.live-frame { margin: 18px 0; }
.live-frame img { display: block; max-width: 100%; max-height: 310px; object-fit: cover; }
.live-frame figcaption { color: var(--muted); font-size: 12px; padding-top: 6px; }
.ops-tabs { display: flex; gap: 7px; flex-wrap: wrap; margin: 0 0 16px; }
.ops-tabs button { padding: 9px 13px; border: 1px solid var(--line); background: var(--paper); color: var(--green-dark); }
.ops-tabs button[aria-pressed="true"] { background: var(--green-pale); border-color: var(--green); }
.ops-panel { max-width: 960px; }
.ops-panel h2:not(:first-child) { margin-top: 28px; }
.ops-login { max-width: 460px; }
.ops-login form { display: grid; gap: 9px; }
.ops-login input { padding: 10px; border: 1px solid var(--line); font: inherit; }
.ops-login form button { margin-top: 12px; justify-self: start; }
.animal-card.sixth img { filter: grayscale(1) contrast(1.08); }
.cipher-half strong { display: block; margin-bottom: 9px; color: #6b5326; font-size: 12px; letter-spacing: .06em; }
.cipher-map { margin: 0; color: #4a4132; font: 700 15px "Courier New", monospace; letter-spacing: .18em; }
.tag-code { display: inline-block; padding: 3px 9px; background: #efe6cd; color: #7a5a1f; font: 700 15px "Courier New", monospace; letter-spacing: .16em; }
.freq-box { margin-top: 16px; padding: 16px 17px; border: 1px dashed #c9a79c; background: #fdf7f4; }
.freq-box h3 { margin-bottom: 7px; color: #8a4030; }

/* ── 轻度跳吓层（Web Audio + CSS，无素材文件） ───── */
.scare-layer {
  position: fixed; inset: 0; z-index: 200; display: grid; place-items: center;
  background: radial-gradient(circle at 50% 42%, rgba(58, 6, 6, .86), rgba(4, 0, 0, .97) 72%);
  opacity: 0; visibility: hidden; pointer-events: none;
}
.scare-layer span {
  color: #f4d9cf; font: 700 clamp(26px, 7vw, 62px)/1.3 "SimSun", "Songti SC", serif;
  letter-spacing: .34em; text-shadow: 2px 0 rgba(196, 30, 58, .6), -2px 0 rgba(36, 138, 198, .5);
}
.scare-layer.on { visibility: visible; animation: scare-blink 0.9s steps(1, end) 1; }
@keyframes scare-blink {
  0% { opacity: 0; }
  10% { opacity: .72; }
  70% { opacity: .72; }
  100% { opacity: 0; }
}
.scare-layer[data-kind="denied"] { background: radial-gradient(circle at 50% 42%, rgba(6, 30, 58, .86), rgba(0, 2, 6, .97) 72%); }
body[data-attention="3"] .site-header .identity small::after { content: " · 071 在园"; color: #b3402e; }
body[data-attention="3"] .hero img { filter: saturate(.32) contrast(1.12) brightness(.86); }

@media (max-width: 720px) {
  .cipher-sheet { grid-template-columns: 1fr; }
  .camera-zoom-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .scare-layer.on { animation: none; opacity: 1; visibility: visible; }
  .scare-layer { background: rgba(6, 0, 0, .96); }
}
