:root {
  --paper: #f3efe4;
  --paper-2: #e9e3d5;
  --card: #fbf8f0;
  --ink: #1b2a23;
  --ink-2: #3f4b45;
  --muted: #6b746f;
  --line: #d6cebb;
  --teal: #1b5c50;
  --teal-2: #14493f;
  --river: #2c6f8f;
  --amber: #b57a2e;
  --danger: #a33540;
  --green: #4a7350;
  --violet: #5e5378;
  --shadow: none;
  --radius: 4px;
  --nav-h: 80px;
  --serif: "Songti SC", "STSong", "SimSun", Georgia, serif;
  --sans: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; overflow-x: hidden; background: var(--paper); scrollbar-gutter: stable; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-size: 15px;
  min-height: 100vh;
  /* 不设 min-width：窄屏由下方媒体查询接管，否则布局按 1200px 排版会被视口裁掉右侧 */
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
img { display: block; max-width: 100%; }

.wrap { width: 100%; max-width: 1440px; margin: 0 auto; padding: 0 28px; }

/* 顶栏占位预留高度：导航异步注入时首屏不发生跳动 */
.topbar-slot { min-height: var(--nav-h); }

/* ---------------- 页面切换过渡（跨文档 View Transition 原地交叉淡变 + JS 降级） ---------------- */
/* 现代浏览器：新旧快照在同一时间轴上原地淡入/淡出，只变透明度，不做位移 */
@view-transition { navigation: auto; }

/* root 分组必须显式禁用 UA 默认动画：否则跨文档转场会带整页横向滑动 */
::view-transition-group(root) { animation: none; }

/* 顶部通栏独立快照，转场中保持稳定 */
::view-transition-old(site-header),
::view-transition-new(site-header),
::view-transition-group(site-header) { animation: none; }

/* 未标记方向的跳转（表单提交、脚本跳转等）保持瞬时切换 */
:root:not(.page-turn-left):not(.page-turn-right)::view-transition-old(root),
:root:not(.page-turn-left):not(.page-turn-right)::view-transition-new(root) { animation: none; }

@media (prefers-reduced-motion: no-preference) {
  /* View Transition：两页同帧交叉，总时长 0.34s；只做原地淡变，不做任何位移 */
  :root.page-turn-left::view-transition-old(root) { animation: vt-fade-out 0.34s ease both; }
  :root.page-turn-left::view-transition-new(root) { animation: vt-fade-in 0.34s ease both; }
  :root.page-turn-right::view-transition-old(root) { animation: vt-fade-out 0.34s ease both; }
  :root.page-turn-right::view-transition-new(root) { animation: vt-fade-in 0.34s ease both; }

  /* JS 降级：浏览器不支持跨文档转场时，旧页原地淡出 + 新页原地淡入 */
  .page-turn-left:not(.vt-ready) main { animation: page-fade-in 0.32s ease both; }
  .page-turn-right:not(.vt-ready) main { animation: page-fade-in 0.32s ease both; }
  .page-turn-left:not(.vt-ready) body.page-leaving main { animation: page-fade-out 0.18s ease both; }
  .page-turn-right:not(.vt-ready) body.page-leaving main { animation: page-fade-out 0.18s ease both; }
}

/* 降级动画期间提升为合成层，动画结束后由 JS 移除方向类 */
.page-turn-left:not(.vt-ready) main,
.page-turn-right:not(.vt-ready) main { will-change: opacity; }

@keyframes page-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes page-fade-out {
  from { opacity: 1; }
  to { opacity: 0; }
}

/* View Transition：纯透明度交叉，不位移 */
@keyframes vt-fade-out {
  from { opacity: 1; }
  to { opacity: 0; }
}

@keyframes vt-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* 降低动效偏好：转场瞬时完成，不产生位移动画 */
@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(root),
  ::view-transition-old(root), ::view-transition-new(root),
  ::view-transition-old(site-header), ::view-transition-new(site-header),
  ::view-transition-group(site-header) { animation: none !important; }
  .hero-slide { transition: none; }
  /* 页头背景图推近/呼吸动画一并关闭，只保留静态图 */
  .page-hero-bg { animation: none !important; transform: none; filter: none; }
}

/* ---------------- 顶部导航 ---------------- */
.topbar {
  position: sticky; top: 0; z-index: 60;
  height: var(--nav-h);
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  view-transition-name: site-header;
}
.topbar .wrap { height: 100%; display: flex; align-items: center; gap: 26px; }
.brand { display: flex; align-items: center; gap: 12px; flex: none; }
.brand svg { width: 34px; height: 34px; }
.brand-name { font-family: var(--serif); font-size: 32px; line-height: 1.12; letter-spacing: 3px; font-weight: 700; color: var(--ink); }
.brand-sub { font-size: 14px; line-height: 1.3; color: var(--muted); letter-spacing: 1.2px; margin-top: 2px; }
.nav { display: flex; gap: 24px; margin-left: 22px; height: 100%; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a {
  display: flex; align-items: center; height: 100%; padding: 0;
  border-bottom: 2px solid transparent; color: var(--ink-2);
  font-size: 17px; white-space: nowrap; transition: 0.15s;
}
.nav a:hover { color: var(--ink); border-bottom-color: var(--line); }
.nav a.active { color: var(--ink); border-bottom-color: var(--teal); font-weight: 600; }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 14px; flex: none; flex-wrap: nowrap; }
.user-chip {
  display: flex; align-items: center; gap: 8px; padding: 6px 12px 6px 7px;
  border: 1px solid var(--line); background: transparent; border-radius: 2px;
  font-size: 15px; color: var(--ink-2); cursor: pointer;
}
.uname { max-width: 9em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-chip .chip { font-size: 13px; }
.topbar-right .btn-sm { font-size: 14px; padding: 7px 14px; }
.avatar {
  width: 30px; height: 30px; border-radius: 2px; background: var(--teal);
  color: #fff; display: grid; place-items: center; font-size: 13.5px; font-weight: 700;
}

/* ---------------- 通用按钮/标签 ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 9px 16px; border-radius: 2px; border: 1px solid transparent;
  font-size: 13.5px; font-weight: 600; letter-spacing: 0.3px; transition: 0.16s; white-space: nowrap;
}
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--teal-2); }
.btn-ghost { background: var(--card); border-color: #c9c1ac; color: var(--ink-2); }
.btn-ghost:hover { border-color: var(--teal); color: var(--teal); }
.btn-soft { background: var(--paper-2); color: var(--teal); border-color: var(--line); }
.btn-danger { background: rgba(163, 53, 64, 0.08); color: var(--danger); border-color: rgba(163, 53, 64, 0.25); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-sm { padding: 6px 11px; font-size: 12.5px; border-radius: 2px; }

.chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 8px; border-radius: 2px; font-size: 11.5px;
  background: transparent; color: var(--ink-2); border: 1px solid var(--line);
}
.chip.on { background: var(--teal); color: #fff; border-color: var(--teal); }
.chip-btn { cursor: pointer; transition: 0.15s; }
.chip-btn:hover { border-color: var(--teal); }
.chip i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; display: inline-block; }

.badge { display: inline-flex; align-items: center; padding: 1px 6px; border-radius: 2px; font-size: 11.5px; font-weight: 600; }
.badge.pending { background: rgba(181, 122, 46, 0.13); color: #8a5c1f; }
.badge.approved { background: rgba(27, 92, 80, 0.1); color: var(--teal); }
.badge.rejected { background: rgba(163, 53, 64, 0.1); color: var(--danger); }
.badge.flag { background: rgba(163, 53, 64, 0.08); color: var(--danger); }
.badge.issue { background: rgba(44, 111, 143, 0.1); color: var(--river); }

/* ---------------- 透明导航：首页首屏与所有带 page-hero 的页面共用 ---------------- */
.nav-overlay .topbar-slot { min-height: 0; }
.nav-overlay .topbar {
  position: absolute; top: 0; left: 0; right: 0; z-index: 60;
  background: transparent; border-bottom-color: rgba(255, 253, 247, 0.16);
}
.nav-overlay .topbar .brand-name { color: #fffdf7; }
.nav-overlay .topbar .brand-sub { color: rgba(255, 253, 247, 0.66); }
.nav-overlay .topbar .nav a { color: rgba(255, 253, 247, 0.82); }
.nav-overlay .topbar .nav a:hover { color: #fffdf7; border-bottom-color: rgba(255, 253, 247, 0.5); }
.nav-overlay .topbar .nav a.active { color: #fffdf7; border-bottom-color: #fffdf7; }
.nav-overlay .topbar .user-chip { border-color: rgba(255, 253, 247, 0.35); color: #fffdf7; }
.nav-overlay .topbar .btn-ghost { background: transparent; border-color: rgba(255, 253, 247, 0.5); color: #fffdf7; }
/* 有 hero 的页面从顶端开始排版，整幅图直接铺到导航下面 */
.nav-overlay .knowledge-page,
.nav-overlay .me-page,
.nav-overlay .obs-page,
.nav-overlay .upload-page,
.nav-overlay .map-page,
.nav-overlay .report-page,
.nav-overlay .legal-page,
.nav-overlay .admin-page { padding-top: 0; }

.hero {
  position: relative; min-height: 100vh; overflow: hidden; isolation: isolate;
  display: flex; align-items: center; justify-content: center;
  background: #14201c; text-align: center;
}
/* 首屏分两层：背景层只做图片交叉淡入，文字层固定不动 */
.hero-bg {
  position: absolute; inset: 0; z-index: 0; overflow: hidden;
  border: 0; background: #14201c;
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(ellipse 64% 56% at 50% 46%, rgba(8, 14, 12, 0.44) 0%, rgba(8, 14, 12, 0.2) 58%, rgba(8, 14, 12, 0) 80%),
    linear-gradient(180deg, rgba(8, 14, 12, 0.38) 0%, rgba(8, 14, 12, 0.04) 24%, rgba(8, 14, 12, 0.04) 70%, rgba(8, 14, 12, 0.48) 100%);
}
.hero-slides, .hero-slide { position: absolute; inset: 0; }
.hero-slide { opacity: 0; transition: opacity 0.55s ease; pointer-events: none; }
.hero-slide.is-active { opacity: 1; pointer-events: auto; }
.hero-slide svg, .hero-slide img { width: 100%; height: 100%; }
.hero-slide img { object-fit: cover; display: block; filter: none; }
/* <picture> 承载 WebP/JPEG 双格式，铺满与图片层一致 */
.hero-slide picture { position: absolute; inset: 0; display: block; }
.hero-copy {
  position: relative; z-index: 2; width: 100%; max-width: 900px;
  padding: 120px 28px 110px; display: flex; flex-direction: column; align-items: center;
  /* 文案固定一组：任何过渡都不作用于文字层 */
  transition: none; animation: none;
}
.hero-kicker { font-size: 12.5px; letter-spacing: 0.3em; text-indent: 0.3em; color: rgba(255, 253, 247, 0.78); margin-bottom: 20px; text-shadow: 0 1px 10px rgba(0, 0, 0, 0.3); }
.hero h1 {
  font-family: var(--serif); font-size: 56px; line-height: 1.18; letter-spacing: 3px;
  font-weight: 600; color: #fffdf7; text-shadow: 0 1px 18px rgba(0, 0, 0, 0.28);
  margin: 0;
}
.hero h1 span {
  display: block; margin-top: 12px; font-size: 21px; line-height: 1.5;
  letter-spacing: 5px; font-weight: 400; color: rgba(255, 253, 247, 0.86);
}
.hero p.lead { margin: 24px auto 0; max-width: 560px; font-size: 15px; line-height: 1.9; color: rgba(255, 253, 247, 0.86); text-shadow: 0 1px 10px rgba(0, 0, 0, 0.32); }
.hero-actions { display: flex; gap: 14px; justify-content: center; margin-top: 34px; }
.hero .btn { min-width: 148px; padding: 12px 28px; border-radius: 999px; font-size: 14px; letter-spacing: 0.08em; }
.hero .btn-primary { background: #fbf8f0; border-color: #fbf8f0; color: #14312a; }
.hero .btn-primary:hover { background: rgba(251, 248, 240, 0.88); border-color: rgba(251, 248, 240, 0.88); }
.hero .btn-ghost { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 253, 247, 0.55); color: #fffdf7; }
.hero .btn-ghost:hover { background: rgba(255, 255, 255, 0.16); border-color: rgba(255, 253, 247, 0.8); color: #fffdf7; }
.hero-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 46px; height: 46px; padding: 0; border-radius: 50%;
  border: 1px solid rgba(255, 253, 247, 0.4); background: rgba(10, 18, 15, 0.2);
  color: #fffdf7; display: grid; place-items: center; transition: 0.16s;
}
.hero-arrow:hover { background: rgba(10, 18, 15, 0.5); border-color: rgba(255, 253, 247, 0.7); }
.hero-arrow.prev { left: 30px; }
.hero-arrow.next { right: 30px; }
.hero-switch { position: absolute; left: 30px; bottom: 26px; z-index: 3; display: flex; gap: 6px; }
.hero-switch[hidden] { display: none; }
.hero-switch button {
  width: 24px; height: 3px; padding: 0; border: 0; border-radius: 0;
  background: rgba(255, 253, 247, 0.4); cursor: pointer;
}
.hero-switch button.on { background: #fffdf7; }

.section { padding: 38px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 20px; padding-bottom: 11px; border-bottom: 1px solid var(--line); gap: 12px; }
.section-head h2 { font-family: var(--serif); font-size: 21px; letter-spacing: 0.5px; }
.section-head .more { font-size: 13px; color: var(--teal); }
.section-head p { font-size: 13px; color: var(--muted); margin-top: 4px; }
/* 首页三个图文板块：图片位统一为 3:4 竖版卡片，列宽收窄，避免竖图被横向裁切 */
.feature-row {
  display: grid; grid-template-columns: minmax(280px, 33%) 1fr;
  gap: 44px; align-items: center; margin-bottom: 26px;
}
.feature-media { aspect-ratio: 3 / 4; overflow: hidden; background: var(--card); border: 1px solid var(--line); }
.feature-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.feature-media picture { display: block; width: 100%; height: 100%; }
.feature-copy h2 { font-family: var(--serif); font-size: 26px; line-height: 1.35; letter-spacing: 0.5px; }
.feature-copy p { margin-top: 10px; font-size: 14px; line-height: 1.85; color: var(--ink-2); }
.feature-copy .more { display: inline-block; margin-top: 16px; font-size: 13px; color: var(--teal); }

.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--line); background: var(--card); border-radius: 2px; }
.stat {
  border: 0; border-left: 1px solid var(--line); border-radius: 0;
  padding: 22px 24px; background: transparent;
}
.stat:first-child { border-left: 0; }
.stat strong { display: block; font-family: var(--serif); font-size: 29px; color: var(--teal); letter-spacing: 0.5px; }
.stat strong small { font-size: 13px; color: var(--muted); margin-left: 3px; font-family: var(--sans); }
.stat span { font-size: 12.5px; color: var(--muted); }

.task-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.task-card {
  position: relative; background: var(--card); border: 1px solid var(--line);
  border-radius: 2px; padding: 20px 22px; transition: 0.18s; display: block; overflow: hidden;
}
.task-card:hover { border-color: var(--teal); background: #fdfbf5; }
.task-card .bar { position: absolute; left: 0; top: 0; bottom: 0; width: 3px; }
.task-card h3 { font-size: 16.5px; margin-bottom: 6px; display: flex; align-items: center; gap: 8px; }
.task-card h3 svg { width: 19px; height: 19px; }
.task-card p { font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.task-card .go { font-size: 12.5px; color: var(--teal); }

.feed { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.feed-item {
  background: var(--card); border: 1px solid var(--line); border-radius: 2px;
  overflow: hidden;
}
.feed-item img { width: 100%; height: 140px; object-fit: cover; }
.feed-item .body { padding: 14px 16px 16px; }
.feed-item .meta { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-bottom: 8px; }
.feed-item .meta .t { font-size: 13.5px; font-weight: 600; }
.feed-item .meta .d { font-size: 11.5px; color: var(--muted); }
.feed-item .place { font-size: 12.5px; color: var(--muted); }

.loop { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin: 8px 0 2px; }
.loop .step { padding: 18px 22px 16px; border-top: 1px solid var(--line); position: relative; }
.loop .step b { color: var(--muted); font-size: 12px; letter-spacing: 0.5px; font-weight: 600; }
.loop .step h4 { font-size: 14.5px; margin: 5px 0 4px; }
.loop .step p { font-size: 13px; color: var(--muted); }

.report-band {
  background: #173f38;
  color: #fff; border-radius: 2px; border-left: 4px solid var(--amber);
  padding: 34px 36px;
  display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap;
}
.report-band h3 { font-family: var(--serif); font-size: 22px; letter-spacing: 0.5px; margin-bottom: 8px; }
.report-band p { font-size: 13px; opacity: 0.82; max-width: 580px; }
.report-band .btn { background: var(--paper); color: #173f38; }

.footer { border-top: 1px solid var(--line); margin-top: 64px; padding: 26px 0 38px; }
.footer .wrap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); }
.footer-note { display: block; margin-top: 4px; font-size: 11.5px; }
.footer-links { display: flex; gap: 16px; flex-wrap: wrap; align-items: flex-start; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--teal); }

/* 合规信息页 */
.legal-page { padding: 32px 0 56px; }
.legal-nav { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.legal-section {
  background: var(--card); border: 1px solid var(--line); border-radius: 2px;
  padding: 22px 24px; margin-bottom: 16px; scroll-margin-top: 110px;
}
.legal-section h2 {
  font-family: var(--serif); font-size: 19px; letter-spacing: 0.5px;
  padding-left: 10px; border-left: 3px solid var(--teal); margin-bottom: 12px;
}
.legal-section p { font-size: 14px; line-height: 1.95; color: var(--ink-2); margin-bottom: 8px; }
.legal-section ul { margin: 4px 0 8px 20px; }
.legal-section li { font-size: 14px; line-height: 1.95; color: var(--ink-2); list-style: disc; }
.legal-section a { color: var(--teal); word-break: break-all; }

/* ---------------- 地图页 ---------------- */
.map-page { padding: 32px 0 46px; }
.map-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.map-head h1 { font-family: var(--serif); font-size: 28px; letter-spacing: 2px; }
.map-head p { font-size: 13px; color: var(--muted); }
.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.filter-group { display: flex; gap: 2px; padding: 2px; background: var(--paper-2); border: 1px solid var(--line); border-radius: 2px; }
.filter-group button {
  border: 0; background: transparent; padding: 6px 12px; border-radius: 2px;
  font-size: 13px; color: var(--ink-2);
}
.filter-group button.on { background: var(--card); color: var(--teal); font-weight: 600; }

.map-shell {
  position: relative; border: 1px solid var(--line); border-radius: 2px; overflow: hidden;
  background: #f2ecdc;
  height: min(72vh, 640px);
}
#river-map { width: 100%; height: 100%; display: block; touch-action: none; cursor: grab; position: relative; z-index: 1; }
#river-map[hidden] { display: none; }
#river-map.dragging { cursor: grabbing; }
.tile-map { position: absolute; inset: 0; z-index: 1; background: #e9e3d5; }
.tile-map[hidden] { display: none; }
.tile-map .leaflet-container { font-family: var(--sans); background: #e9e3d5; }
.leaflet-control-attribution {
  background: rgba(251, 248, 240, 0.88) !important; color: var(--ink-2) !important;
  font-size: 10.5px !important; border-radius: 0 !important;
}
.leaflet-control-attribution a { color: var(--teal); }
.leaflet-control-scale-line {
  background: rgba(251, 248, 240, 0.9); border-color: rgba(23, 37, 31, 0.45);
  color: var(--ink-2); font-size: 10.5px; border-radius: 0;
}
.map-ctrl { position: absolute; right: 14px; top: 14px; display: flex; flex-direction: column; gap: 6px; z-index: 5; }
.map-ctrl button {
  width: 32px; height: 32px; border-radius: 2px; border: 1px solid var(--line);
  background: var(--card); color: var(--ink-2); font-size: 15px; font-weight: 700;
}
.map-ctrl button:hover { color: var(--teal); border-color: var(--teal); }
.legend {
  position: absolute; right: 14px; bottom: 28px; z-index: 5;
  background: var(--card); border: 1px solid var(--line);
  border-radius: 2px; padding: 10px 12px; font-size: 12px; min-width: 154px;
}
.legend .row { display: flex; align-items: center; gap: 7px; margin-bottom: 4px; color: var(--ink-2); }
.legend .sw { width: 10px; height: 10px; border-radius: 1px; flex: none; }
.legend .title { font-weight: 700; margin-bottom: 6px; color: var(--ink); }
.map-summary {
  position: absolute; left: 50%; top: 14px; z-index: 5;
  transform: translateX(-50%);
  background: var(--card); border: 1px solid var(--line);
  border-radius: 2px; padding: 7px 11px; font-size: 12.5px; color: var(--ink-2);
}
.map-summary b { color: var(--teal); font-family: var(--serif); font-size: 16px; }
.coord-readout {
  position: absolute; right: 56px; top: 14px; z-index: 5;
  background: var(--card); border: 1px solid var(--line); border-radius: 2px;
  padding: 4px 8px; font-size: 11.5px; color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.tile-note {
  position: absolute; left: 50%; top: 50%; z-index: 9; transform: translate(-50%, -50%);
  background: var(--card); border: 1px solid var(--line); border-radius: 2px;
  padding: 10px 14px; font-size: 12.5px; color: var(--danger); max-width: 380px;
}
.tile-note[hidden] { display: none; }

.tooltip {
  position: absolute; left: 0; top: 0; pointer-events: none; z-index: 8; display: none;
  min-width: 172px; max-width: 280px;
  background: var(--card); color: var(--ink);
  border: 1px solid var(--line); border-radius: 2px;
  padding: 9px 11px; font-size: 12.5px; line-height: 1.5;
  transform: translate(-50%, -100%);
}
.tooltip.below { transform: translate(-50%, 0); }
.tooltip .tip-title {
  font-family: var(--serif); font-size: 15px; letter-spacing: 0.4px;
  color: var(--ink); line-height: 1.35; margin-bottom: 4px;
}
.tooltip .tip-line { color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tooltip .tip-line b { color: var(--teal); font-family: var(--serif); font-size: 14px; }
.tooltip .tip-line.tip-muted { color: var(--muted); font-size: 11.5px; }
.tooltip .status-dot {
  display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: var(--green); margin-right: 5px; vertical-align: 1px;
}
.tooltip .tip-more {
  margin-top: 5px; padding-top: 5px; border-top: 1px solid var(--line);
  color: var(--muted); font-size: 11.5px; white-space: nowrap;
}

.drawer {
  position: absolute; top: 0; right: 0; bottom: 0; width: 340px; max-width: 88%;
  background: var(--card); border-left: 1px solid var(--line);
  transform: translateX(102%); transition: transform 0.24s ease; z-index: 20;
  display: flex; flex-direction: column;
}
.drawer.open { transform: none; }
.drawer-head { padding: 14px 16px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: flex-start; }
.drawer-head h3 { font-size: 15px; }
.drawer-head small { color: var(--muted); font-size: 12px; }
.drawer-close { border: 0; background: transparent; font-size: 18px; color: var(--muted); line-height: 1; padding: 4px; }
.drawer-body { overflow-y: auto; padding: 14px 16px 20px; flex: 1; }
.drawer-empty { color: var(--muted); font-size: 13px; padding: 18px 0; }
.detail-obs { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.detail-obs img { width: 74px; height: 58px; border-radius: 2px; object-fit: cover; flex: none; background: var(--paper-2); }
.detail-obs .txt { font-size: 12.5px; }
.detail-obs .txt b { display: block; font-size: 13px; }
.detail-obs .txt span { color: var(--muted); }
.type-bars { margin: 10px 0 4px; }
.type-bars .bar-row { display: flex; align-items: center; gap: 8px; font-size: 12px; margin-bottom: 5px; }
.type-bars .bar-row i { height: 6px; border-radius: 2px; display: block; }

/* 记录详情弹窗：点击网格时由 JS 动态创建，关闭即销毁 */
body.modal-open { overflow: hidden; }
.obs-modal-mask {
  position: fixed; inset: 0; z-index: 80;
  display: grid; place-items: center; padding: 24px;
  background: rgba(20, 32, 27, 0.46);
}
.obs-modal {
  position: relative; display: grid; grid-template-columns: 46% 1fr;
  width: min(880px, 88vw); max-height: min(82vh, 720px);
  background: var(--card); border: 1px solid var(--line); border-radius: 2px;
  overflow: hidden; animation: obs-modal-in 0.16s ease-out both;
}
@keyframes obs-modal-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) { .obs-modal { animation: none; } }
.obs-modal-media { background: var(--paper-2); min-height: 260px; overflow: hidden; }
.obs-modal-media img { width: 100%; height: 100%; object-fit: cover; }
.obs-modal-noimg { height: 100%; display: grid; place-items: center; color: var(--muted); font-size: 13px; }
.obs-modal-body {
  position: relative; padding: 24px 28px 22px; overflow-y: auto;
  display: flex; flex-direction: column;
}
.obs-modal-close {
  position: absolute; right: 10px; top: 8px; z-index: 2;
  width: 32px; height: 32px; border: 0; background: transparent;
  color: var(--muted); font-size: 20px; line-height: 1;
}
.obs-modal-close:hover { color: var(--ink); }
.obs-modal-kicker { font-size: 12px; color: var(--muted); margin-bottom: 5px; }
.obs-modal-body h3 {
  font-family: var(--serif); font-size: 22px; letter-spacing: 1px;
  line-height: 1.35; margin-bottom: 14px; padding-right: 32px;
}
.obs-modal-kv {
  display: grid; grid-template-columns: 86px 1fr; gap: 7px 12px;
  font-size: 13px; margin-bottom: 14px;
}
.obs-modal-kv span { color: var(--muted); }
.obs-modal-kv b { font-weight: 500; color: var(--ink-2); }
.obs-modal-note {
  font-size: 12.5px; color: var(--ink-2); background: var(--paper);
  border-left: 2px solid var(--line); padding: 8px 11px; margin-bottom: 16px;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.obs-modal-note-empty { color: var(--muted); }
.obs-modal-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: auto; }
.obs-modal-actions .btn { font-size: 13px; padding: 8px 16px; }
.obs-modal-loading, .obs-modal-empty { color: var(--muted); font-size: 13px; padding: 30px 0; }

/* ---------------- 观测页 ---------------- */
.upload-page { padding: 34px 0 54px; }
.upload-layout { display: grid; grid-template-columns: 1.45fr 0.85fr; gap: 28px; align-items: start; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: 2px; }
.panel-head { padding: 16px 22px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; }
.panel-head h2 { font-family: var(--serif); font-size: 18px; letter-spacing: 0.5px; }
.panel-head .step { font-size: 12.5px; color: var(--muted); }
.panel-body { padding: 24px; }

.form-step { margin-bottom: 28px; }
.form-step .label { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; font-size: 13.5px; color: var(--muted); }
.form-step .label b { color: var(--teal); font-family: var(--serif); font-size: 15px; }
.task-pick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.task-pick label {
  border: 1px solid var(--line); border-radius: 2px; padding: 11px 13px; cursor: pointer;
  display: flex; align-items: center; gap: 8px; font-size: 13.5px; background: var(--card); transition: 0.15s;
}
.task-pick label input { display: none; }
.task-pick label .dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.task-pick label.on { border-color: var(--teal); background: rgba(27, 92, 80, 0.05); }

.dropzone {
  border: 1px dashed #c3baa4; border-radius: 2px; background: var(--card);
  padding: 26px; text-align: center; cursor: pointer; position: relative; transition: 0.15s;
}
.dropzone:hover { border-color: var(--teal); }
.dropzone input { display: none; }
.dropzone .hint { font-size: 13px; color: var(--muted); }
.dropzone .hint b { color: var(--teal); }
.dropzone img { max-height: 220px; width: auto; margin: 0 auto; border-radius: 2px; }
.dropzone.has-img { padding: 8px; }

.location-row { display: flex; gap: 8px; flex-wrap: wrap; }
select, input[type="text"], input[type="number"], input[type="password"], textarea {
  font-family: inherit; font-size: 13.5px; color: var(--ink);
  border: 1px solid var(--line); border-radius: 2px; padding: 9px 11px; background: var(--card);
  outline: none; transition: 0.15s; width: 100%;
}
select:focus, input:focus, textarea:focus { border-color: var(--teal); }
textarea { resize: vertical; min-height: 70px; }
.field-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.field label { font-size: 12.5px; color: var(--muted); display: block; margin-bottom: 4px; }
.field { min-width: 0; }
.multi-opts { display: flex; flex-wrap: wrap; gap: 6px; }
.multi-opts label {
  font-size: 12.5px; padding: 5px 10px; border: 1px solid var(--line); border-radius: 2px;
  cursor: pointer; background: var(--card); color: var(--ink-2);
}
.multi-opts label.on { border-color: var(--teal); color: var(--teal); background: rgba(27, 92, 80, 0.05); }
.multi-opts input { display: none; }
.coord-line { font-size: 12px; color: var(--muted); margin-top: 6px; }
.form-actions { display: flex; gap: 10px; align-items: center; margin-top: 6px; }
.form-actions .tip { font-size: 12px; color: var(--muted); }

.mine-list .mine-item { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.mine-item img { width: 62px; height: 50px; border-radius: 2px; object-fit: cover; background: var(--paper-2); }
.mine-item .txt { font-size: 12.5px; flex: 1; }
.mine-item .txt b { font-size: 13px; }
.mine-item .txt span { color: var(--muted); display: block; }
.points-card { padding: 16px 20px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.points-card .num { font-family: var(--serif); font-size: 27px; color: var(--amber); }
.points-card small { color: var(--muted); font-size: 12px; display: block; }

.result-card { border-radius: 2px; padding: 18px; margin-top: 4px; border: 1px solid var(--line); background: var(--card); }
.result-card h3 { display: flex; align-items: center; gap: 8px; font-size: 16px; margin-bottom: 6px; }
.result-card ul { margin: 8px 0 0 18px; font-size: 13px; color: var(--ink-2); }
.result-card .conf { font-size: 12px; color: var(--muted); margin-top: 8px; }
.result-card img { border-radius: 2px; max-height: 200px; margin-top: 10px; }

.login-hint { background: var(--paper-2); border: 1px solid var(--line); border-radius: 2px; padding: 13px 15px; font-size: 13px; color: var(--ink-2); }
.login-hint a { color: var(--teal); font-weight: 600; }

/* ---------------- 报告页 ---------------- */
.report-page { padding: 38px 0 64px; }
.report-header { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.report-header h1 { font-family: var(--serif); font-size: 30px; letter-spacing: 1px; }
.report-header .sub { font-size: 13px; color: var(--muted); margin-top: 6px; }
.report-card { background: var(--card); border: 1px solid var(--line); border-radius: 2px; padding: 32px 36px; }
.report-metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 28px; }
.report-metric { border: 1px solid var(--line); border-radius: 2px; padding: 16px 18px; background: transparent; }
.report-metric strong { display: block; font-family: var(--serif); font-size: 25px; color: var(--teal); }
.report-metric span { font-size: 12.5px; color: var(--muted); }
.report-block { margin-top: 32px; }
.report-block h2 {
  font-family: var(--serif); font-size: 19px; letter-spacing: 0.5px; margin-bottom: 12px;
  padding-left: 10px; border-left: 3px solid var(--teal);
}
.report-block h2 small { font-size: 11px; color: var(--muted); font-weight: 400; letter-spacing: 0; margin-left: 8px; }
.finding-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.finding { border: 1px solid var(--line); border-radius: 2px; padding: 18px; background: transparent; }
.finding b { font-family: var(--serif); font-size: 22px; color: var(--amber); display: block; }
.finding h3 { font-size: 13.5px; margin: 2px 0 4px; }
.finding p { font-size: 12.5px; color: var(--muted); line-height: 1.55; }
.hotspot-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.hotspot-table th { text-align: left; font-weight: 600; color: var(--muted); border-bottom: 1px solid var(--line); padding: 8px 6px; font-size: 12px; }
.hotspot-table td { padding: 9px 6px; border-bottom: 1px dashed var(--line); }
.hotspot-table .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 5px; }
.report-list { margin-left: 18px; font-size: 13.5px; color: var(--ink-2); }
.report-list li { margin-bottom: 6px; }
.report-map { border: 1px solid var(--line); border-radius: 2px; overflow: hidden; background: #f2ecdc; height: 360px; }
#report-map { width: 100%; height: 100%; display: block; }
.report-foot { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

/* ---------------- 审核后台 ---------------- */
.admin-page { padding: 32px 0 54px; }
.admin-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.queue-item {
  background: var(--card); border: 1px solid var(--line); border-radius: 2px;
  padding: 18px; margin-bottom: 16px;
}
.queue-item .top { display: flex; gap: 12px; }
.queue-item img { width: 108px; height: 84px; border-radius: 2px; object-fit: cover; background: var(--paper-2); flex: none; }
.queue-item .info { flex: 1; min-width: 0; }
.queue-item .info h3 { font-size: 14.5px; margin-bottom: 3px; }
.queue-item .info .meta { font-size: 12px; color: var(--muted); }
.queue-item .flags { display: flex; gap: 5px; flex-wrap: wrap; margin: 8px 0 4px; }
.queue-item .fields { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.queue-item .fields span { font-size: 11.5px; background: var(--paper-2); border-radius: 2px; padding: 2px 7px; color: var(--ink-2); }
.queue-item .actions { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.queue-item .actions input { flex: 1; min-width: 150px; }
.queue-item .actions .btn-danger { background: transparent; border-color: rgba(163, 53, 64, 0.4); }
.queue-item .actions .btn-danger:hover { background: rgba(163, 53, 64, 0.08); }
.queue-item .issue-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line); font-size: 12px; color: var(--muted); }
.queue-item .issue-row select { font-size: 12px; padding: 3px 6px; }
.queue-item .issue-row .btn { font-size: 12px; padding: 3px 10px; }
.small-stat { display: flex; gap: 12px; flex-wrap: wrap; }

.admin-tabs { display: flex; gap: 0; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.admin-tabs button { border: 1px solid var(--line); border-bottom: 0; background: var(--paper-2); padding: 9px 16px; border-radius: 2px 2px 0 0; font-size: 13px; color: var(--ink-2); margin-right: 4px; }
.admin-tabs button.on { background: var(--card); color: var(--teal); font-weight: 600; }

/* ---------------- 登录页 ---------------- */
.auth-page { min-height: calc(100vh - var(--nav-h)); display: grid; place-items: center; padding: 56px 0; }
.auth-card { width: 100%; max-width: 400px; background: var(--card); border: 1px solid var(--line); border-top: 3px solid var(--teal); border-radius: 2px; padding: 36px 32px; }
.auth-card h1 { font-family: var(--serif); font-size: 25px; letter-spacing: 1.5px; text-align: center; margin-bottom: 6px; }
.auth-card p.sub { text-align: center; font-size: 13px; color: var(--muted); margin-bottom: 24px; }
.auth-tabs { display: flex; background: var(--paper-2); border: 1px solid var(--line); border-radius: 2px; padding: 3px; margin-bottom: 22px; }
.auth-tabs button { flex: 1; border: 0; background: transparent; padding: 8px; border-radius: 2px; font-size: 13px; color: var(--ink-2); }
.auth-tabs button.on { background: var(--card); color: var(--teal); font-weight: 600; }
.auth-form .field { margin-bottom: 16px; }
.auth-card .btn { width: 100%; margin-top: 6px; }
.auth-code-row { display: flex; gap: 8px; align-items: center; }
.auth-code-row input { flex: 1; min-width: 0; }
.auth-code-row .btn { flex: none; width: auto; margin-top: 0; white-space: nowrap; }
.auth-account { background: var(--paper-2); border: 1px solid var(--line); border-radius: 2px; padding: 10px 12px; margin-bottom: 14px; text-align: center; font-size: 12px; color: var(--muted); line-height: 1.6; }
.auth-account b { display: block; font-size: 22px; letter-spacing: 3px; color: var(--teal); font-family: ui-monospace, Consolas, monospace; margin: 2px 0; }
.auth-note { font-size: 12px; color: var(--muted); text-align: center; margin-top: 14px; line-height: 1.7; }
.auth-note code { background: var(--paper-2); padding: 1px 5px; border-radius: 2px; }

/* ---------------- Toast ---------------- */
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px);
  background: rgba(23, 37, 31, 0.94); color: #fff; padding: 10px 16px; border-radius: 2px;
  font-size: 13px; z-index: 200; opacity: 0; pointer-events: none; transition: 0.2s; max-width: 90vw;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------------- 页头：整幅背景图 + 文字叠加（沿用首页首屏的视觉语言） ---------------- */
.page-hero {
  --bleed-w: calc(100vw - var(--sbw, 0px));
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; align-items: flex-end;
  width: var(--bleed-w); margin-left: calc(50% - var(--bleed-w) / 2);
  min-height: 252px; margin-bottom: 22px;
  background: #14201c; border: 1px solid var(--line); border-radius: 2px;
}
.page-hero-bg {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 52%;
  transform-origin: 50% 52%;
  /* 与首页首屏同节奏的缓慢推近 + 明暗呼吸：只动图片层，文字层不参与任何动画 */
  animation: page-hero-drift 20s ease-in-out infinite;
}

@keyframes page-hero-drift {
  0% { transform: scale(1.03) translate3d(0, 0, 0); filter: brightness(0.97); }
  50% { transform: scale(1.085) translate3d(0, -0.8%, 0); filter: brightness(1.05); }
  100% { transform: scale(1.03) translate3d(0, 0, 0); filter: brightness(0.97); }
}
/* 极淡的暗角与左侧渐变：只压文字区域，图片本身不做模糊 */
.page-hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(8, 14, 12, 0.56) 0%, rgba(8, 14, 12, 0.28) 50%, rgba(8, 14, 12, 0.03) 100%),
    linear-gradient(180deg, rgba(8, 14, 12, 0.1) 0%, rgba(8, 14, 12, 0) 36%, rgba(8, 14, 12, 0.4) 100%);
}
.page-hero-inner {
  position: relative; z-index: 2; width: 100%;
  padding: 42px 44px 36px;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 26px; flex-wrap: wrap;
}
/* 背景通栏后，文字仍对齐 1440 栅格：宽屏时按容器居中后的左边界内缩 44px */
.page-hero-inner {
  padding-left: max(44px, calc((100vw - var(--sbw, 0px) - 1440px) / 2 + 44px));
  padding-right: max(44px, calc((100vw - var(--sbw, 0px) - 1440px) / 2 + 44px));
}
.page-hero .kicker {
  font-size: 12px; letter-spacing: 0.24em; margin-bottom: 9px;
  color: rgba(255, 253, 247, 0.74); text-shadow: 0 1px 8px rgba(0, 0, 0, 0.3);
}
.page-hero h1 {
  font-family: var(--serif); font-size: 34px; line-height: 1.3; letter-spacing: 2px; font-weight: 600;
  color: #fffdf7; text-shadow: 0 1px 18px rgba(0, 0, 0, 0.34);
}
.page-hero .sub {
  margin-top: 7px; font-size: 13.5px; line-height: 1.7;
  color: rgba(255, 253, 247, 0.86); text-shadow: 0 1px 10px rgba(0, 0, 0, 0.34);
}
/* 副标题下的区间行：独立一行，字号略小、颜色略淡，与副标题同时常驻 */
.page-hero .sub-range {
  margin-top: 3px; font-size: 12.5px; line-height: 1.65;
  color: rgba(255, 253, 247, 0.72); text-shadow: 0 1px 10px rgba(0, 0, 0, 0.34);
}
.page-hero .back { display: inline-block; margin-bottom: 12px; font-size: 13px; color: rgba(255, 253, 247, 0.86); }
.page-hero .back:hover { color: #fffdf7; }
.page-hero .meta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 12px; font-size: 12.5px; color: rgba(255, 253, 247, 0.78); }
.page-hero .copy { max-width: 820px; }
.page-hero .chip { background: rgba(10, 18, 15, 0.3); border-color: rgba(255, 253, 247, 0.36); color: rgba(255, 253, 247, 0.92); }
.page-hero .badge { background: rgba(255, 253, 247, 0.18); color: #fffdf7; }
.page-hero .btn-ghost { background: rgba(255, 253, 247, 0.08); border-color: rgba(255, 253, 247, 0.5); color: #fffdf7; }
.page-hero .btn-ghost:hover { background: rgba(255, 253, 247, 0.18); border-color: #fffdf7; color: #fffdf7; }
.page-hero .btn-primary { background: #fbf8f0; border-color: #fbf8f0; color: #14312a; }
.page-hero .btn-primary:hover { background: rgba(251, 248, 240, 0.88); border-color: rgba(251, 248, 240, 0.88); }
.page-hero .who {
  display: flex; align-items: center; gap: 8px; padding: 8px 14px;
  background: rgba(10, 18, 15, 0.3); border: 1px solid rgba(255, 253, 247, 0.3); border-radius: 2px;
}
.page-hero .who b { display: block; font-size: 13.5px; color: #fffdf7; }
.page-hero .who span { font-size: 12px; color: rgba(255, 253, 247, 0.74); }
.page-hero .who .avatar { background: rgba(251, 248, 240, 0.92); color: #14312a; }

/* river-10 是 4.36:1 的超宽全景：不做固定高度裁切，容器高度随宽度按原图比例推导
   （1280 视口约 293px、1440 视口约 330px，夹到 320px 上限后仅上下裁掉约 3%），整幅基本完整可见 */
.page-hero.panorama { aspect-ratio: 1200 / 275; min-height: 0; max-height: 320px; }
.page-hero-actions { display: flex; gap: 8px; flex-wrap: wrap; }
/* 导航浮在图上：给页头文字留出避让空间，内容较高时容器随之撑高（不超过 320px 的常规区间） */
.nav-overlay .page-hero-inner { padding-top: 104px; }

.knowledge-page { padding: 32px 0 54px; }
.article-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.article-card {
  display: flex; flex-direction: column; gap: 8px;
  background: var(--card); border: 1px solid var(--line); border-radius: 2px;
  padding: 20px 22px 18px; transition: 0.18s;
}
.article-card:hover { border-color: var(--teal); background: #fdfbf5; }
.article-card .cat { font-size: 12px; color: var(--muted); letter-spacing: 0.5px; }
.article-card h3 { font-family: var(--serif); font-size: 17.5px; line-height: 1.45; letter-spacing: 0.5px; }
.article-card p { font-size: 13px; color: var(--muted); line-height: 1.7; flex: 1; }
.article-card .foot { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--muted); border-top: 1px dashed var(--line); padding-top: 10px; }
.article-card .cover {
  display: block; margin: -20px -22px 4px; aspect-ratio: 16 / 9;
  overflow: hidden; background: var(--paper-2); border-bottom: 1px solid var(--line);
}
.article-card .cover img { display: block; width: 100%; height: 100%; object-fit: cover; }

.article-detail { max-width: 780px; margin: 0 auto; }
.article-detail .body { padding: 12px 0 4px; }
.article-detail .body p { font-size: 15px; line-height: 2; color: var(--ink-2); margin-bottom: 18px; text-align: justify; }
.article-detail .body p:first-child { font-size: 15.5px; color: var(--ink); }
.article-detail .body ul { margin: 0 0 14px 22px; }
.article-detail .body li { font-size: 14px; line-height: 1.85; color: var(--ink-2); list-style: disc; }
.article-cta {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin-top: 20px; padding: 18px 20px; border-radius: 2px;
  background: var(--paper-2);
  border: 1px solid var(--line); border-left: 3px solid var(--amber);
}
.article-cta b { font-size: 14.5px; }
.article-cta p { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.related { margin-top: 52px; }
.related h2 { font-family: var(--serif); font-size: 18px; letter-spacing: 0.5px; margin-bottom: 14px; padding-left: 10px; border-left: 3px solid var(--teal); }

/* ---------------- 我的观测 ---------------- */
.me-page { padding: 32px 0 54px; }
.me-stats { margin-bottom: 26px; }
.me-layout { display: grid; grid-template-columns: 1.5fr 0.85fr; gap: 28px; align-items: start; }
/* 网格子项默认 min-width:auto，窄屏会被内容撑破，这里允许收缩 */
.me-layout > * { min-width: 0; }
.notice-list { display: flex; flex-direction: column; gap: 10px; }
.notice {
  display: flex; gap: 10px; align-items: flex-start;
  background: var(--card); border: 1px solid var(--line); border-left: 3px solid var(--teal);
  border-radius: 2px; padding: 12px 14px; transition: 0.15s;
}
.notice.reject { border-left-color: var(--danger); }
.notice:hover { border-color: var(--teal); }
.notice img { width: 54px; height: 44px; border-radius: 2px; object-fit: cover; background: var(--paper-2); flex: none; }
.notice div { font-size: 12.5px; min-width: 0; }
.notice b { font-size: 13px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.notice p { color: var(--ink-2); margin: 1px 0 2px; }
.notice span { color: var(--muted); font-size: 11.5px; }
.notice.empty {
  display: block; border-left-color: var(--line); color: var(--muted); font-size: 12.5px;
  padding: 16px; text-align: center; box-shadow: none;
}
.me-list { display: flex; flex-direction: column; gap: 10px; }
.me-obs {
  display: flex; gap: 12px; align-items: center;
  background: var(--card); border: 1px solid var(--line); border-radius: 2px;
  padding: 12px 14px; transition: 0.15s;
}
.me-obs:hover { border-color: var(--teal); }
.me-obs img { width: 76px; height: 60px; border-radius: 2px; object-fit: cover; background: var(--paper-2); flex: none; }
.me-obs .txt { flex: 1; min-width: 0; font-size: 12px; color: var(--muted); display: flex; flex-direction: column; gap: 2px; }
.me-obs .line1 { display: flex; align-items: center; gap: 8px; font-size: 13.5px; }
.me-obs .txt > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.me-obs .reject { color: var(--danger); }
.me-obs .issue-line { display: flex; align-items: center; gap: 6px; }
.me-obs .go { font-size: 12px; color: var(--teal); flex: none; }

.rule-row { display: flex; gap: 10px; align-items: flex-start; padding: 11px 0; border-bottom: 1px dashed var(--line); }
.rule-row:last-child { border-bottom: 0; }
.rule-row .p {
  flex: none; min-width: 44px; text-align: center; font-family: var(--serif); font-size: 15px;
  color: var(--teal); background: var(--paper-2); border-radius: 2px; padding: 3px 6px;
}
.rule-row b { font-size: 13px; }
.rule-row p { font-size: 12px; color: var(--muted); line-height: 1.55; }
.point-row { display: flex; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.point-row:last-child { border-bottom: 0; }
.point-row .d {
  flex: none; min-width: 42px; text-align: center; font-family: var(--serif); font-size: 15px;
  color: var(--muted); background: var(--paper-2); border-radius: 2px; padding: 3px 5px;
}
.point-row .d.up { color: var(--amber); background: rgba(200, 138, 61, 0.12); }
.point-row b { display: block; font-size: 12.5px; }
.point-row span { font-size: 11.5px; color: var(--muted); }

/* ---------------- 观测详情 ---------------- */
.obs-page { padding: 32px 0 54px; }
.obs-layout { display: grid; grid-template-columns: 1.35fr 0.85fr; gap: 24px; align-items: start; }
.obs-photo { padding: 10px; }
.obs-photo img { width: 100%; border-radius: 2px; background: var(--paper-2); }
.obs-photo .cap { font-size: 11.5px; color: var(--muted); text-align: center; padding: 8px 4px 2px; }
.kv { display: grid; grid-template-columns: 108px 1fr; gap: 10px 14px; font-size: 13.5px; }
.kv dt { color: var(--muted); }
.kv dd { color: var(--ink); }
.note-box { margin-top: 18px; padding: 12px 14px; border-radius: 2px; background: var(--paper-2); }
.note-box b { font-size: 12.5px; color: var(--teal); }
.note-box p { font-size: 12.5px; color: var(--ink-2); margin-top: 2px; }
.obs-map { border: 1px solid var(--line); border-radius: 2px; overflow: hidden; background: #f2ecdc; height: 200px; }
.obs-map canvas { width: 100%; height: 100%; display: block; }

.timeline { list-style: none; position: relative; padding-left: 22px; }
.timeline::before { content: ""; position: absolute; left: 5px; top: 4px; bottom: 8px; width: 2px; background: var(--line); }
.timeline li { position: relative; padding-bottom: 16px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: ""; position: absolute; left: -22px; top: 4px; width: 9px; height: 9px;
  border-radius: 50%; background: var(--paper-2); border: 2px solid var(--line);
}
.timeline li.done::before { background: var(--teal); border-color: var(--teal); }
.timeline li.reject::before { background: var(--danger); border-color: var(--danger); }
.timeline b { display: block; font-size: 13.5px; }
.timeline li.reject b { color: var(--danger); }
.timeline span { display: block; font-size: 11.5px; color: var(--muted); margin-top: 1px; }
.timeline em { display: block; font-style: normal; font-size: 11.5px; color: var(--amber); margin-top: 2px; }

.report-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------------- 移动端适配 ---------------- */
@media (max-width: 1080px) {
  .hero { grid-template-columns: 1fr; gap: 18px; }
  .hero-art { display: none; }
  /* 全景页头原按 1200/275 比例定高：窄屏下只剩 89px，会把标题压在导航下并裁掉，
     改为随文字内容撑高（宽屏仍保留原比例，视觉不变） */
  .page-hero.panorama { aspect-ratio: auto; min-height: 0; max-height: none; }
  .upload-layout, .me-layout, .obs-layout, .admin-layout { grid-template-columns: 1fr; }
  .article-grid { grid-template-columns: repeat(2, 1fr); }
  .task-grid, .feed, .loop { grid-template-columns: repeat(2, 1fr); }
  .report-metrics, .finding-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3), .stat:nth-child(4) { border-top: 1px solid var(--line); }
  .stat:nth-child(3) { border-left: 0; }
  .task-pick { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 820px) {
  .wrap { padding: 0 18px; }
  body { font-size: 14.5px; }
  :root { --nav-h: 102px; }
  .topbar { height: auto; }
  .topbar .wrap { height: auto; flex-wrap: wrap; column-gap: 12px; row-gap: 0; align-items: center; padding-top: 10px; }
  .brand svg { width: 30px; height: 30px; }
  .brand-name { font-size: 23px; letter-spacing: 2px; }
  .brand-sub { display: none; }
  .nav {
    order: 3; flex: 0 0 100%; width: 100%; height: 44px;
    margin: 8px 0 0; padding: 0; gap: 18px;
    justify-content: flex-start;
    border-top: 1px solid var(--line); overflow-x: auto; overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
  }
  .nav a { height: 44px; font-size: 15px; }
  .topbar-right { gap: 8px; }
  .user-chip { font-size: 12.5px; padding: 4px 7px 4px 5px; }
  .avatar { width: 26px; height: 26px; font-size: 12px; }
  .user-chip .uname, .user-chip .chip, .nav-exit { display: none; }
  .hero { padding: 34px 0 20px; }
  .hero h1 { font-size: 27px; margin-bottom: 12px; }
  .hero p.lead { font-size: 14.5px; }
  .hero p.sub { margin-bottom: 20px; }
  .hero-metric { margin-top: 28px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 16px; }
  .hero-metric div { padding: 10px 12px 0 0; margin: 0; }
  .hero-metric div:nth-child(odd) { border-right: 1px solid var(--line); }
  .hero-metric div:nth-child(even) { padding-left: 12px; border-right: 0; }
  .hero-metric div strong { font-size: 22px; }
  .section { padding: 26px 0; }
  .feature-row { grid-template-columns: 1fr; gap: 16px; }
  .feature-media { max-width: 420px; }
  .section-head { margin-bottom: 14px; }
  .section-head h2 { font-size: 19px; }
  .task-grid, .feed, .loop, .article-grid, .finding-grid { grid-template-columns: 1fr; }
  .task-pick { grid-template-columns: 1fr 1fr; gap: 8px; }
  .report-band { padding: 22px 18px; }
  .report-band h3 { font-size: 18px; }
  .footer { margin-top: 48px; }
  .footer .wrap { flex-direction: column; gap: 6px; }

  /* 地图页 */
  .map-page { padding: 20px 0 30px; }
  .map-head { flex-direction: column; align-items: stretch; gap: 10px; }
  .map-head h1 { font-size: 21px; letter-spacing: 1px; }
  .map-head p { font-size: 12px; }
  .filter-group { flex-wrap: wrap; }
  .filter-group button { padding: 6px 9px; font-size: 12px; min-height: 30px; }
  .map-shell { height: 62vh; min-height: 380px; }
  .map-summary {
    top: 8px; font-size: 11px; padding: 5px 8px; max-width: calc(100% - 60px);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  .map-summary b { font-size: 13px; }
  .coord-readout { display: none; }
  .map-ctrl { right: 8px; top: 8px; gap: 8px; }
  .map-ctrl button { width: 36px; height: 36px; }
  .legend { right: 8px; bottom: 24px; min-width: 0; padding: 7px 9px; font-size: 11px; }
  .legend .row { margin-bottom: 2px; }
  .drawer {
    width: 100%; max-width: 100%; top: auto; height: 70%;
    border-left: 0; border-top: 1px solid var(--line);
    transform: translateY(102%);
  }
  .drawer.open { transform: none; }
  .drawer-head { padding: 12px 14px; }
  .drawer-body { padding: 12px 14px 18px; }

  /* 上传 / 我的 / 详情 / 报告 */
  .upload-page, .me-page, .obs-page, .report-page, .admin-page, .knowledge-page { padding: 20px 0 34px; }
  .panel-head, .panel-body { padding-left: 18px; padding-right: 18px; }
  .form-step { margin-bottom: 22px; }
  .field-grid { grid-template-columns: 1fr; gap: 14px; }
  .location-row { flex-direction: column; align-items: stretch; }
  .location-row select { max-width: none !important; }
  .dropzone { padding: 18px; }
  .dropzone img { max-height: 180px; }
  .form-actions { flex-direction: column; align-items: stretch; gap: 8px; }
  .form-actions .btn { width: 100%; }
  .report-card { padding: 22px 18px; }
  .report-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .report-actions .btn { width: 100%; }
  .report-header h1 { font-size: 22px; }
  .report-map { height: 240px; }
  .hotspot-table { font-size: 11.5px; }
  .hotspot-table th { width: auto !important; }
  .hotspot-table th, .hotspot-table td { padding: 6px 2px; }
  .article-detail .body p { font-size: 14px; line-height: 1.85; }
  .page-hero { min-height: 200px; margin-bottom: 16px; }
  .page-hero-inner { padding: 28px 22px 24px; gap: 14px; }
  .page-hero h1 { font-size: 24px; letter-spacing: 1px; }
  .page-hero .sub { font-size: 12.5px; }
  .obs-photo img { max-height: 320px; object-fit: contain; }
  .kv { grid-template-columns: 82px 1fr; }
  .auth-page { padding: 28px 0; }
  .auth-card { padding: 26px 20px; }
  .queue-item .top { flex-direction: column; }
  .queue-item img { width: 100%; height: 150px; }
  .admin-tabs { overflow-x: auto; }
  .admin-tabs button { white-space: nowrap; }
}

/* 窄屏下导航均分整行，保证 390px 宽度内 7 个导航项完整可见 */
@media (max-width: 480px) {
  .nav { gap: 0; justify-content: space-between; }
}

@media print {
  .topbar, .footer, .report-header .btn, .report-actions, .map-ctrl, .legend, .map-summary { display: none !important; }
  body { background: #fff; }
  main { animation: none !important; }
  .report-card { box-shadow: none; border: 0; padding: 0; }
}

/* ---------------- 样本 / 演示标识 ---------------- */
.demo-tag {
  display: inline-flex; align-items: center;
  padding: 1px 6px; border-radius: 2px;
  background: rgba(181, 122, 46, 0.14); color: #8a5c1f;
  font-size: 11.5px; font-weight: 600; line-height: 1.6;
  letter-spacing: 0.2px; white-space: nowrap; flex: none;
  vertical-align: 2px;
}
.data-banner, .report-banner {
  display: flex; align-items: flex-start; flex-wrap: wrap; gap: 8px;
  border: 1px solid rgba(181, 122, 46, 0.32);
  background: rgba(181, 122, 46, 0.07);
  border-radius: 2px; padding: 10px 14px;
  font-size: 12.5px; line-height: 1.7; color: var(--ink-2);
  margin-bottom: 14px;
}
.data-banner > span:last-child, .report-banner > span:last-child { flex: 1 1 220px; min-width: 0; }
.report-banner { margin-bottom: 18px; }
.report-declare {
  font-size: 12.5px; line-height: 1.7; color: var(--ink-2);
  background: var(--paper-2); border-left: 3px solid rgba(181, 122, 46, 0.6);
  padding: 8px 12px; margin: 0 0 18px;
}
.report-snap-range { font-size: 12.5px; color: var(--muted); margin-bottom: 14px; }
.report-snap-hint { font-size: 12.5px; color: var(--muted); line-height: 1.8; margin-top: 14px; }

/* 科普文章：作者 / 审校 / 参考来源 */
.article-meta-block { margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line); }
.article-meta-block h2 { font-family: var(--serif); font-size: 17px; letter-spacing: 0.5px; margin-bottom: 10px; }
.article-meta-block dl { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 8px 12px; font-size: 13px; line-height: 1.8; }
.article-meta-block dt { color: var(--muted); }
.article-meta-block dd { margin: 0; color: var(--ink-2); word-break: break-word; }
.article-meta-block .pending { color: var(--amber); }
.legal-section .pending-note { font-size: 12.5px; color: var(--muted); }
