/* ============================================================
   平台经济案例地图 · 样式
   设计语言：温暖「纸感风」→ 米白暖纸底 + 陶铜强调 + 衬线标题
   意象：判例典藏 / 法律藏书阁，克制、人文、有质感
   ============================================================ */

:root {
  --bg: #FBF3E7;
  --bg-soft: #F3E7D3;
  --surface: #FFF9F1;
  --surface-solid: #FFFDF8;
  --border: rgba(49, 37, 27, 0.10);
  --border-strong: rgba(49, 37, 27, 0.20);

  --text: #31251B;
  --text-secondary: #8B7662;
  --text-faint: #9C8B76;

  --accent: #C96F3D;
  --accent-strong: #A8552C;
  --accent-soft: rgba(201, 111, 61, 0.12);

  --map-land: #EAD3B8;
  --map-land-empty: #EDE2CF;
  --map-stroke: rgba(49, 37, 27, 0.12);

  --font-sans: "Noto Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Noto Serif SC", "Songti SC", "STSong", "SimSun", Georgia, serif;
  --font-mono: "JetBrains Mono", "SF Mono", "Roboto Mono", Consolas, "Courier New", monospace;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow-lg: 0 24px 48px -20px rgba(49, 37, 27, 0.18);
  --shadow-mono: 0 4px 16px -4px rgba(49, 37, 27, 0.12);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  background:
    radial-gradient(1200px 600px at 50% -10%, rgba(201, 111, 61, 0.05), transparent 60%),
    radial-gradient(1000px 500px at 95% 10%, rgba(126, 159, 122, 0.06), transparent 55%),
    var(--bg);
  min-height: 100vh;
}

.page { position: relative; }

/* ===== 顶部导航 ===== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(251, 243, 231, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.navbar-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: linear-gradient(135deg, rgba(201, 111, 61, 0.18), rgba(201, 111, 61, 0.05));
  border: 1px solid rgba(201, 111, 61, 0.28);
  color: var(--accent-strong);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name { font-family: var(--font-serif); font-weight: 700; font-size: 16px; letter-spacing: 0.3px; }
.brand-sub {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--text-faint);
  text-transform: uppercase;
}

.view-toggle {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: rgba(255, 249, 241, 0.9);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.view-toggle-btn {
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 13px;
  padding: 7px 16px;
  border-radius: 9px;
  cursor: pointer;
  transition: all 0.18s ease;
}
.view-toggle-btn:hover { color: var(--text); }
.view-toggle-btn.active {
  background: linear-gradient(135deg, rgba(201, 111, 61, 0.16), rgba(201, 111, 61, 0.06));
  color: var(--accent-strong);
  border-color: rgba(201, 111, 61, 0.30);
}

/* ===== Hero ===== */
.hero {
  position: relative;
  padding: 56px 24px 40px;
  border-bottom: 1px solid var(--border);
}
.hero-inner { max-width: 1280px; margin: 0 auto; }
.hero-eyebrow {
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  color: var(--accent);
  text-transform: uppercase;
}
.site-title {
  margin: 0 0 18px;
  font-family: var(--font-serif);
  font-size: clamp(30px, 5vw, 46px);
  font-weight: 700;
  letter-spacing: 0.5px;
  line-height: 1.25;
}
.title-accent {
  margin-left: 12px;
  color: var(--accent-strong);
}
.lede {
  margin: 0 0 32px;
  max-width: 720px;
  color: var(--text-secondary);
  font-size: 16px;
}
.stats { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.stat { display: flex; flex-direction: column; gap: 2px; }
.stat-num {
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  color: var(--text);
}
.stat-label { font-size: 13px; color: var(--text-faint); }
.stat-divider { width: 1px; height: 40px; background: var(--border-strong); }

/* ===== 筛选区 ===== */
.filters {
  max-width: 1280px;
  margin: 24px auto 0;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.filter-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.filter-group { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.filter-label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--text-faint);
  text-transform: uppercase;
  min-width: 44px;
}
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  border: 1px solid var(--border);
  background: rgba(255, 249, 241, 0.7);
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 13px;
  padding: 6px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.16s ease;
}
.chip:hover { border-color: var(--border-strong); color: var(--text); }
.chip.active {
  background: var(--accent-soft);
  border-color: rgba(201, 111, 61, 0.45);
  color: var(--accent-strong);
}
.chip .dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: 1px;
}

/* —— 争议焦点 一级横排 + 二级展开 —— */
.issue-filter-group { align-items: flex-start; }
.focus-l1-chips { display: block; width: 100%; }

/* —— 一级：L 方案 —— 横条容器 + .nav 导航项 —— */
.L {
  display: flex; gap: 4px; flex-wrap: wrap;
  border: 1px solid rgba(49, 37, 27, 0.12);
  border-radius: 12px; padding: 8px; background: #fffdf8;
}
.L .nav {
  position: relative; display: inline-flex; align-items: center;
  padding: 8px 14px; border-radius: 8px; cursor: pointer;
  font-size: 13.5px; color: #8b7662; user-select: none;
  transition: background 0.12s ease;
}
.L .nav:hover { background: rgba(201, 111, 61, 0.08); }
.L .nav.on { color: #c96f3d; font-weight: 700; background: rgba(201, 111, 61, 0.1); }
.L .nav .cnt { margin-left: 7px; font-size: 11.5px; color: #bfae99; font-weight: 600; font-variant-numeric: tabular-nums; }
.L .nav.on .cnt { color: #c96f3d; }
/* —— 「争议焦点」标题行：标签 + 右侧「全选 / 反选」按钮（位于横条框外） —— */
.issue-filter-group .filter-head {
  display: flex; align-items: center; gap: 10px; margin-bottom: 8px;
}
.focus-actions { display: inline-flex; align-items: center; gap: 6px; }
.focus-btn {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 600; color: #8b7662; line-height: 1;
  background: rgba(255, 253, 248, 0.6);
  border: 1px dashed rgba(49, 37, 27, 0.25);
  border-radius: 999px; padding: 4px 11px; cursor: pointer;
  transition: all 0.15s;
}
.focus-btn:hover { border-color: rgba(201, 111, 61, 0.5); color: #31251b; }
.focus-btn .tick {
  display: inline-flex; align-items: center; justify-content: center;
  width: 15px; height: 15px; border: 1.5px solid #cfbfa6; border-radius: 4px;
  font-size: 11px; line-height: 1; color: #fff; background: #fff;
}
.focus-btn.on { color: #c96f3d; border-style: solid; border-color: rgba(201, 111, 61, 0.45); background: rgba(201, 111, 61, 0.08); }
.focus-btn.on .tick { background: #c96f3d; border-color: #c96f3d; }

/* —— 框选 checkbox（一级 + 浮层二级） —— */
.cbox {
  display: inline-flex; align-items: center; justify-content: center;
  width: 17px; height: 17px; flex: none;
  border: 1.5px solid #cfbfa6; border-radius: 4px; background: #fff;
  cursor: pointer; font-size: 12px; line-height: 1; user-select: none;
  transition: background 0.14s ease, border-color 0.14s ease, color 0.14s ease;
  box-sizing: border-box;
}
.cbox.on { background: #c96f3d; border-color: #c96f3d; color: #fff; }
.cbox.indet { background: rgba(201, 111, 61, 0.16); border-color: #c96f3d; color: #c96f3d; }
.cbox::after { content: ""; }
.cbox.on::after { content: "✓"; }
.cbox.indet::after { content: "–"; }

/* —— Mega 大面板浮层（L 方案 .pop） —— */
.pop {
  position: fixed; z-index: 1200;
  background: #fffdf8; border: 1px solid rgba(49, 37, 27, 0.12);
  border-radius: 12px; box-shadow: 0 14px 40px rgba(49, 37, 27, 0.16);
  padding: 9px 10px; min-width: 196px; animation: fadeUp 0.14s ease;
}
@keyframes fadeUp { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.pop .pl {
  font-weight: 700; font-size: 13px; margin-bottom: 6px; padding-bottom: 6px;
  border-bottom: 1px solid rgba(49, 37, 27, 0.12); color: #31251b;
}
.pop .il {
  display: flex; align-items: center; gap: 9px; padding: 5px 7px;
  border-radius: 8px; font-size: 13px; cursor: pointer; color: #31251b;
  transition: background 0.12s ease;
}
.pop .il:hover { background: rgba(201, 111, 61, 0.1); }
.pop .il .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pop .il .cnt { font-size: 11.5px; color: #bfae99; font-weight: 600; flex: none; font-variant-numeric: tabular-nums; margin-left: 6px; }
.pop .il.checked .cnt { color: #c96f3d; }
.pop .il.empty { color: #bfae99; cursor: default; }
.pop .pf {
  display: flex; align-items: center; justify-content: space-between; gap: 6px;
  margin-top: 7px; padding-top: 6px; border-top: 1px dashed rgba(49, 37, 27, 0.12);
  font-size: 12px; color: #8b7662;
}
.pop .pf .ph { line-height: 1.3; }
.pop .pf .pc {
  border: 1px solid rgba(49, 37, 27, 0.12); background: #fff;
  border-radius: 8px; padding: 3px 10px; font-size: 12px; cursor: pointer;
  color: #c96f3d; flex: none;
}
.pop .pf .pc:hover { background: rgba(201, 111, 61, 0.08); }

.issue-selected-tags { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.issue-tag {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--accent-soft); color: var(--accent-strong);
  font-size: 12px; padding: 3px 8px; border-radius: 999px;
}
.issue-tag .dot { width: 6px; height: 6px; border-radius: 50%; }
.issue-tag-x {
  border: none; background: transparent; color: var(--accent-strong);
  cursor: pointer; font-size: 15px; line-height: 1; padding: 0; margin-left: 2px;
}
.issue-tag-x:hover { opacity: 0.7; }

.search-group { flex: 1; justify-content: flex-end; }
.search-wrap { position: relative; flex: 1; max-width: 380px; }
.search-wrap input {
  width: 100%;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.75);
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  padding: 9px 40px 9px 16px;
  border-radius: 12px;
  outline: none;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}
.search-wrap input::placeholder { color: var(--text-faint); }
.search-wrap input:focus {
  border-color: rgba(201, 111, 61, 0.5);
  box-shadow: 0 0 0 3px rgba(201, 111, 61, 0.12);
}
.search-btn, .reset-btn {
  border: 1px solid var(--border-strong);
  font-family: inherit;
  font-size: 14px;
  padding: 9px 18px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.16s ease;
}
.search-btn {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
  font-weight: 600;
}
.search-btn:hover { background: var(--accent-strong); border-color: var(--accent-strong); }
.reset-btn { background: transparent; color: var(--text-secondary); }
.reset-btn:hover { color: var(--text); border-color: var(--border-strong); }

.suggestions {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 30;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: var(--surface-solid);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  display: none;
}
.suggestions.visible { display: block; }
.suggest-item {
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  color: var(--text-secondary);
  font-size: 14px;
}
.suggest-item:hover { background: var(--accent-soft); color: var(--text); }
.suggest-item mark { background: transparent; color: var(--accent-strong); font-weight: 600; }

.filter-status { min-height: 0; }

/* ===== 主体布局 ===== */
.viewport {
  max-width: 1280px;
  margin: 20px auto 0;
  padding: 0 24px;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(340px, 0.9fr);
  gap: 20px;
  align-items: start;
}

/* 列表视图：隐藏地图，面板全宽 */
body.layout-list .viewport { grid-template-columns: 1fr; }
body.layout-list .map-section { display: none; }

/* ===== 地图卡片 ===== */
.map-section { position: sticky; top: 76px; }
.map-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.map-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
}
.map-head-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 15px;
}
.map-head-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.map-head-hint { font-size: 12px; color: var(--text-faint); }
.map-wrapper {
  position: relative;
  padding: 12px;
}
.map-wrapper svg { display: block; width: 100%; height: auto; }

.province { cursor: pointer; transition: fill 0.2s ease, opacity 0.2s ease; }
.province.empty { fill: var(--map-land-empty); }
.province:hover { stroke: var(--accent); stroke-width: 1.4px; }
.province.active { stroke: var(--accent-strong); stroke-width: 1.6px; filter: drop-shadow(0 0 6px rgba(201, 111, 61, 0.35)); }
.province-label { font-size: 11px; fill: var(--text-secondary); font-weight: 500; }
.province-label.major { font-size: 12px; fill: var(--text); }

.map-tooltip {
  position: absolute;
  pointer-events: none;
  padding: 6px 12px;
  background: rgba(255, 253, 248, 0.96);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  font-size: 13px;
  color: var(--text);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.15s ease, transform 0.15s ease;
  white-space: nowrap;
  box-shadow: var(--shadow-mono);
}
.map-tooltip.visible { opacity: 1; transform: translateY(0); }
.map-tooltip .count {
  display: inline-block;
  margin-left: 8px;
  padding: 0 7px;
  background: var(--accent-soft);
  border-radius: 6px;
  color: var(--accent-strong);
  font-family: var(--font-mono);
  font-size: 12px;
}

/* 地图缩放控件 */
.map-zoom {
  position: absolute;
  top: 22px;
  right: 22px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  background: rgba(255, 253, 248, 0.96);
  box-shadow: var(--shadow-mono);
  z-index: 5;
}
.map-zoom-btn {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
}
.map-zoom-btn + .map-zoom-btn { border-top: 1px solid var(--border); }
.map-zoom-btn:hover { background: var(--bg-soft); color: var(--accent-strong); }
.map-zoom-btn:active { background: var(--accent-soft); }

/* ===== 面板 ===== */
.panel-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.panel-header {
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.panel-title { display: flex; align-items: baseline; gap: 12px; }
.panel-title h2 { margin: 0; font-family: var(--font-serif); font-size: 22px; font-weight: 700; }
.panel-count {
  font-family: var(--font-mono);
  color: var(--accent-strong);
  font-size: 14px;
}
.back-link, .clear-link {
  border: none;
  background: transparent;
  color: var(--accent);
  font-family: inherit;
  font-size: 13px;
  cursor: pointer;
  padding: 0;
  margin-bottom: 10px;
}
.back-link:hover, .clear-link:hover { color: var(--accent-strong); }
.panel-search-hint { font-size: 13px; color: var(--text-faint); margin-top: 8px; }

.cases-list { display: flex; flex-direction: column; gap: 12px; }
.case-card {
  display: flex;
  gap: 14px;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.18s ease;
}
.case-card:hover {
  border-color: rgba(201, 111, 61, 0.30);
  transform: translateY(-2px);
  box-shadow: var(--shadow-mono);
}
.case-headshot {
  flex: 0 0 46px;
  height: 46px;
  border-radius: 12px;
  overflow: hidden;
  display: grid;
  place-items: center;
}
.case-headshot-img { width: 100%; height: 100%; object-fit: cover; }
.case-headshot-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: #ffffff;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 18px;
}
.case-body { flex: 1; min-width: 0; }
.case-card-row1 { display: flex; gap: 10px; align-items: flex-start; }
.case-title {
  flex: 1;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 15px;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.case-year {
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--accent-strong);
}
.case-court-line { font-size: 12px; color: var(--text-faint); margin-top: 4px; }
.case-meta { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.case-tag {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  background: rgba(49, 37, 27, 0.06);
  color: var(--text-secondary);
}
.case-tag.status-pending { background: rgba(217, 164, 65, 0.16); color: #B07D1E; }
.case-note {
  margin-top: 8px;
  font-size: 13px;
  color: var(--text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 省份视图 */
.courts-list { display: flex; flex-direction: column; gap: 14px; }
.court-block {
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.court-block-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.court-name { font-family: var(--font-serif); font-weight: 600; font-size: 15px; }
.court-count-label { font-family: var(--font-mono); color: var(--text-faint); font-size: 13px; }
.ccl-num { color: var(--accent-strong); font-weight: 700; font-size: 15px; }
.court-case-peek {
  display: flex;
  gap: 12px;
  padding: 10px;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.15s ease;
}
.court-case-peek:hover { background: var(--accent-soft); }
.cc-peek-thumb { flex: 0 0 38px; height: 38px; border-radius: 9px; overflow: hidden; display: grid; place-items: center; }
.cc-peek-thumb .case-headshot-placeholder { font-size: 15px; }
.cc-peek-body { flex: 1; min-width: 0; }
.cc-peek-title {
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 500;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.cc-peek-meta { font-size: 12px; color: var(--text-faint); margin-top: 2px; }

.empty-state {
  padding: 40px 20px;
  text-align: center;
  color: var(--text-faint);
  background: var(--surface);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
}

/* ===== 页脚 ===== */
.footer {
  max-width: 1280px;
  margin: 40px auto 0;
  padding: 24px;
  border-top: 1px solid var(--border);
  color: var(--text-faint);
  font-size: 13px;
}
.footer .disclaimer { margin: 0 0 10px; }
.footer-credit { margin: 0; }

/* ===== 详情弹窗 ===== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(49, 37, 27, 0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.modal-backdrop.visible { opacity: 1; pointer-events: auto; }
.modal {
  position: relative;
  width: 100%;
  max-width: 680px;
  max-height: 88vh;
  background: var(--surface-solid);
  border: 1px solid var(--border-strong);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transform: scale(0.96) translateY(8px);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}
.modal-backdrop.visible .modal { transform: scale(1) translateY(0); }
.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 34px;
  height: 34px;
  border: 1px solid var(--border-strong);
  background: rgba(255, 249, 241, 0.9);
  border-radius: 10px;
  color: var(--text-secondary);
  font-size: 18px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.modal-close:hover { color: var(--text); border-color: var(--border-strong); }
.modal-body { padding: 28px 30px; overflow-y: auto; max-height: 88vh; }

.modal-eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 8px;
  text-transform: uppercase;
}
.modal-title { font-family: var(--font-serif); font-size: 21px; font-weight: 700; line-height: 1.4; margin-bottom: 12px; }
.modal-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }

.modal-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 24px;
}
.modal-meta-cell {
  background: var(--surface-solid);
  padding: 12px 14px;
}
.modal-meta-label {
  font-size: 12px;
  color: var(--text-faint);
  margin-bottom: 3px;
}
.modal-meta-value { font-size: 14px; color: var(--text); font-weight: 500; word-break: break-all; }
.mono { font-family: var(--font-mono); }

.modal-section { margin-bottom: 22px; }
.modal-section h4 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 700;
}
.modal-section h4::before {
  content: "";
  width: 4px;
  height: 16px;
  border-radius: 2px;
  background: var(--accent);
}
.modal-section p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.8;
  white-space: pre-wrap;
}
.modal-actions {
  display: flex;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.modal-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  background: var(--accent);
  color: #ffffff;
  border-radius: 12px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: background 0.16s ease;
}
.modal-link-btn:hover { background: var(--accent-strong); }

/* ===== 案例全文展示页 ===== */
.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  font-size: 13px;
  color: var(--text);
  background: var(--surface);
  text-decoration: none;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.back-btn:hover { color: var(--accent-strong); border-color: var(--accent); }

.fulltext-page {
  max-width: 900px;
  margin: 36px auto 0;
  padding: 0 24px;
}
.fulltext-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 40px 44px;
}
.fulltext-title {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 700;
  line-height: 1.45;
  margin: 0 0 20px;
}
.fulltext-body {
  color: var(--text);
  font-size: 15px;
  line-height: 1.95;
  word-break: break-word;
}
.fulltext-body.markdown { white-space: normal; }
.fulltext-body p { margin: 0 0 14px; }
.fulltext-body strong { color: var(--text); font-weight: 700; }
.fulltext-body h2, .fulltext-body h3, .fulltext-body h4 {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.45;
  margin: 26px 0 10px;
}
.fulltext-body .ft-ht1 { font-size: 20px; }
.fulltext-body .ft-ht2 { font-size: 18px; }
.fulltext-body .ft-ht3 { font-size: 16px; }
.fulltext-body .ft-tag {
  margin: 30px 0 14px;
  font-size: 16px;
  color: var(--accent-strong);
  border-left: 3px solid var(--accent);
  padding-left: 12px;
}
.fulltext-body .ft-inline-tag { color: var(--accent-strong); font-weight: 700; }
.fulltext-body ul { margin: 0 0 14px; padding-left: 22px; }
.fulltext-body li { margin: 4px 0; }
.fulltext-body blockquote {
  margin: 0 0 14px;
  padding: 8px 14px;
  border-left: 3px solid var(--border-strong);
  background: var(--bg-soft);
  color: var(--text-secondary);
  border-radius: 0 8px 8px 0;
}
.fulltext-body code {
  background: var(--bg-soft);
  padding: 2px 6px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.88em;
  color: var(--accent-strong);
}
.fulltext-body a { color: var(--accent); text-decoration: underline; }
.fulltext-body a:hover { color: var(--accent-strong); }
.fulltext-actions { margin-top: 32px; }
.back-link { display: inline-block; text-decoration: none; }
.fulltext-empty {
  color: var(--text-secondary);
  text-align: center;
  padding: 48px 16px;
}
.fulltext-empty h4 {
  margin: 0 0 8px;
  font-family: var(--font-serif);
  font-size: 18px;
  color: var(--text);
}
.fulltext-empty p { margin: 0 0 20px; }
.fulltext-empty .back-link { margin-top: 8px; }

@media (max-width: 640px) {
  .fulltext-page { margin-top: 20px; }
  .fulltext-card { padding: 24px 20px; }
  .fulltext-title { font-size: 21px; }
}

/* ===== 响应式 ===== */
@media (max-width: 900px) {
  .viewport { grid-template-columns: 1fr; }
  .map-section { position: static; }
  .filter-row { flex-direction: column; align-items: stretch; }
  .search-group { justify-content: stretch; }
  .search-wrap { max-width: none; }
  .navbar-inner { flex-wrap: wrap; }
  .modal-meta { grid-template-columns: 1fr; }
}

/* ===== 移动端优化（小屏） ===== */
@media (max-width: 900px) {
  /* 顶部导航压缩 */
  .navbar-inner { row-gap: 6px; }
  .brand-sub { display: none; }          /* 隐藏副标语，让主导航不换行 */
  .hero-inner { padding: 18px 16px; }
  .site-title { font-size: 26px; }
  .lede { font-size: 14px; }
  .stats { flex-wrap: wrap; gap: 10px 22px; }
  .stat-num { font-size: 24px; }

  /* 筛选区：chips 横向滚动（手指可滑，不换行挤压） */
  .filter-head { flex-wrap: wrap; gap: 8px 10px; align-items: center; }
  .filter-label { flex: 0 0 auto; }
  .focus-actions { margin-left: auto; flex: 0 0 auto; }
  .focus-btn { padding: 5px 11px; font-size: 12.5px; }
  .chips,
  .focus-l1-chips,
  .issue-selected-tags {
    overflow-x: auto; -webkit-overflow-scrolling: touch;
    flex-wrap: nowrap; scrollbar-width: none;
  }
  .chips::-webkit-scrollbar,
  .focus-l1-chips::-webkit-scrollbar,
  .issue-selected-tags::-webkit-scrollbar { display: none; }
  .chips .chip { flex: 0 0 auto; }
  .chips .chip.active { box-shadow: 0 0 0 1.5px var(--accent); }

  /* 争议焦点：一级横条改为单行横滚，导航项更高可点 */
  .focus-l1-chips .L {
    flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch;
    scrollbar-width: none; padding: 7px;
  }
  .focus-l1-chips .L::-webkit-scrollbar { display: none; }
  .focus-l1-chips .L .nav { flex: 0 0 auto; padding: 9px 12px; min-height: 38px; align-items: center; }

  /* 地图区 */
  .map-head-hint { font-size: 11px; }
  .map-zoom { transform: scale(.90); }

  /* 右下列表与弹窗 */
  .panel-section { margin-top: 16px; }
  .mobile-top { top: 8px; left: 10px; padding: 6px 10px; font-size: 12px; max-width: 68%; }
  .reduce-margin { margin-bottom: 8px; }
}

@media (max-width: 480px) {
  .site-title { font-size: 22px; }
  .lede { font-size: 13px; }
  .stat-num { font-size: 22px; }
  .section-title { font-size: 17px; }
  /* 手机端触屏下，二级浮层用底部操作单（bottom sheet），全宽贴底 */
}
@media (hover: none), (pointer: coarse) {
  /* 触屏：点外部即收起浮层（无需 hover 延迟）；避免误触多选行 */
  .pop .il { min-height: 42px; }
  .pop .il .nm { line-height: 1.35; }
}