/* ============================================================
   海事综合信息智能平台 · 设计系统
   主色：深海蓝 #0A2540 / 海洋青 #00B4D8 / 纯白
   ============================================================ */
:root {
  --navy: #0a2540;
  --navy-2: #0e2f52;
  --navy-3: #12385f;
  --cyan: #00b4d8;
  --cyan-soft: #90e0ef;
  --bg: #f5f8fb;
  --card: #ffffff;
  --ink: #0f1f2e;
  --ink-2: #33475b;
  --muted: #64798c;
  --line: #e2eaf2;
  --line-2: #cfdbe8;
  --c-safety: #3b82f6;
  --c-regulation: #f59e0b;
  --c-navigation: #14b8a6;
  --c-green: #84cc16;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 2px rgba(10, 37, 64, 0.06);
  --shadow: 0 4px 16px rgba(10, 37, 64, 0.08);
  --shadow-lg: 0 12px 32px rgba(10, 37, 64, 0.14);
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --font: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", "Helvetica Neue", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--cyan); }
img, canvas, svg { max-width: 100%; }

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
  border-radius: 4px;
}

.container { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.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;
}

/* ── 顶部导航 ───────────────────────────────────────────── */
.header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(10, 37, 64, 0.92);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid rgba(144, 224, 239, 0.16);
}
.nav {
  display: flex; align-items: center; gap: 20px;
  height: 64px; max-width: 1240px; margin: 0 auto; padding: 0 24px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  color: #fff; font-weight: 700; font-size: 16px; letter-spacing: 0.3px;
  white-space: nowrap;
}
.brand .mark {
  width: 32px; height: 32px; border-radius: 9px;
  background: linear-gradient(135deg, var(--cyan), #0077a3);
  display: grid; place-items: center; flex: 0 0 auto;
}
.brand .mark svg { width: 18px; height: 18px; }
.brand:hover { color: #fff; }

.nav-links { display: flex; align-items: center; gap: 4px; margin-left: 12px; }
.nav-links a {
  color: #c9dcec; padding: 7px 12px; border-radius: 8px; font-size: 14px;
  transition: background 0.18s var(--ease), color 0.18s var(--ease);
  white-space: nowrap;
}
.nav-links a:hover { background: rgba(0, 180, 216, 0.14); color: #fff; }
.nav-links a.active { background: rgba(0, 180, 216, 0.2); color: #fff; font-weight: 600; }

.nav-search { margin-left: auto; position: relative; }
.nav-search input {
  width: 240px; height: 36px; border-radius: 18px;
  border: 1px solid rgba(144, 224, 239, 0.28);
  background: rgba(255, 255, 255, 0.08);
  color: #fff; padding: 0 14px 0 36px; font-size: 13px;
  transition: all 0.2s var(--ease);
}
.nav-search input::placeholder { color: #9fb6c9; }
.nav-search input:focus {
  background: rgba(255, 255, 255, 0.16); border-color: var(--cyan);
  outline: none; width: 280px;
}
.nav-search .icon {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  width: 16px; height: 16px; opacity: 0.7; pointer-events: none;
}
.nav-admin {
  color: #9fb6c9; font-size: 13px; padding: 7px 12px; border-radius: 8px;
  border: 1px solid rgba(144, 224, 239, 0.24); white-space: nowrap;
}
.nav-admin:hover { color: #fff; border-color: var(--cyan); }

.burger {
  display: none; margin-left: auto; width: 40px; height: 36px;
  border: 1px solid rgba(144, 224, 239, 0.3); border-radius: 8px;
  background: transparent; cursor: pointer; padding: 0;
}
.burger span { display: block; width: 18px; height: 2px; margin: 4px auto; background: #cfe3f2; transition: 0.2s; }

/* ── Hero ───────────────────────────────────────────────── */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1200px 420px at 78% -10%, rgba(0, 180, 216, 0.28), transparent 70%),
    linear-gradient(160deg, #0a2540 0%, #0d2f52 52%, #10406c 100%);
  color: #fff;
}
.hero-waves { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.5; }
.hero-inner {
  position: relative; max-width: 1240px; margin: 0 auto;
  padding: 56px 24px 0;
}
.hero-tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; letter-spacing: 1.4px; text-transform: uppercase;
  color: var(--cyan-soft); border: 1px solid rgba(144, 224, 239, 0.28);
  padding: 5px 12px; border-radius: 999px; margin: 0 0 18px;
}
.hero-tag i { width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }
.hero h1 {
  font-size: clamp(26px, 3.4vw, 42px); line-height: 1.25; margin: 0 0 12px;
  letter-spacing: 1px; font-weight: 700;
}
.hero-sub { color: #b6cde0; font-size: clamp(14px, 1.5vw, 17px); margin: 0 0 26px; letter-spacing: 2px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; padding-bottom: 44px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  height: 40px; padding: 0 18px; border-radius: 10px; font-size: 14px; font-weight: 600;
  border: 1px solid transparent; cursor: pointer; transition: all 0.18s var(--ease);
  font-family: inherit;
}
.btn-primary { background: var(--cyan); color: #fff; box-shadow: 0 6px 18px rgba(0, 180, 216, 0.28); }
.btn-primary:hover { background: #00c8ee; color: #fff; transform: translateY(-1px); }
.btn-ghost { background: rgba(255, 255, 255, 0.08); color: #e3f1fb; border-color: rgba(144, 224, 239, 0.3); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.16); color: #fff; }
.btn-sm { height: 32px; padding: 0 12px; font-size: 13px; border-radius: 8px; }
.btn-outline { background: #fff; color: var(--navy); border-color: var(--line-2); }
.btn-outline:hover { border-color: var(--cyan); color: var(--cyan); }
.btn-subtle { background: #eef4f9; color: var(--navy-2); }
.btn-subtle:hover { background: #e2edf6; }

.hero-stats {
  position: relative; max-width: 1240px; margin: 0 auto; padding: 0 24px 30px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(144, 224, 239, 0.14); border-radius: 14px;
  overflow: hidden;
}
.hero-stat { padding: 16px 20px; background: rgba(10, 37, 64, 0.35); }
.hero-stat .n { font-size: 26px; font-weight: 700; color: #fff; font-variant-numeric: tabular-nums; }
.hero-stat .l { font-size: 12px; color: #9fb6c9; letter-spacing: 0.6px; margin-top: 2px; }
.hero-stat .n small { font-size: 13px; font-weight: 500; color: var(--cyan-soft); margin-left: 3px; }

/* ── 通用区块标题 ─────────────────────────────────────── */
.section { padding: 40px 0 8px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.section-head h2 {
  margin: 0; font-size: 21px; font-weight: 700; letter-spacing: 0.4px;
  display: flex; align-items: center; gap: 10px; color: var(--navy);
}
.section-head h2::before {
  content: ""; width: 4px; height: 18px; border-radius: 2px;
  background: linear-gradient(180deg, var(--cyan), #0077a3);
}
.section-head .sub { color: var(--muted); font-size: 13px; margin: 4px 0 0 14px; }
.section-head .more { font-size: 13px; color: var(--cyan); font-weight: 600; }

/* ── 模块卡片 ─────────────────────────────────────────── */
.modules { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.module {
  position: relative; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px 20px 18px;
  box-shadow: var(--shadow-sm); transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease), border-color 0.22s;
  display: flex; flex-direction: column; cursor: pointer; overflow: hidden;
}
.module::after {
  content: ""; position: absolute; right: -30px; top: -30px; width: 90px; height: 90px;
  border-radius: 50%; background: radial-gradient(circle, rgba(0, 180, 216, 0.12), transparent 70%);
  transition: 0.3s var(--ease);
}
.module:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: #c8e4ef; }
.module:hover::after { transform: scale(1.5); }
.module .ic {
  width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center;
  background: linear-gradient(140deg, #e6f6fb, #d5ecfa); color: var(--navy-3); margin-bottom: 14px;
}
.module .ic svg { width: 20px; height: 20px; }
.module h3 { margin: 0 0 6px; font-size: 16px; color: var(--navy); letter-spacing: 0.2px; }
.module p { margin: 0 0 16px; color: var(--muted); font-size: 13px; line-height: 1.7; flex: 1; }
.module .go { font-size: 13px; font-weight: 600; color: var(--cyan); display: inline-flex; align-items: center; gap: 4px; }
.module .go svg { width: 14px; height: 14px; transition: transform 0.2s; }
.module:hover .go svg { transform: translateX(3px); }

/* ── 世界地图板块 ─────────────────────────────────────── */
.map-panel {
  background: linear-gradient(170deg, #0b2a48 0%, #0a2540 60%, #0c2d4d 100%);
  border-radius: 16px; padding: 0; overflow: hidden;
  box-shadow: 0 16px 40px rgba(10, 37, 64, 0.22);
  border: 1px solid rgba(144, 224, 239, 0.16);
}
.map-top {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px 20px; border-bottom: 1px solid rgba(144, 224, 239, 0.12);
  flex-wrap: wrap;
}
.map-top h3 {
  margin: 0; color: #fff; font-size: 16px; font-weight: 700; letter-spacing: 0.4px;
  display: flex; align-items: center; gap: 10px;
}
.map-top h3 .live {
  display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 500;
  color: var(--cyan-soft); letter-spacing: 0.6px; text-transform: uppercase;
}
.map-top h3 .live i {
  width: 6px; height: 6px; border-radius: 50%; background: var(--cyan);
  animation: pulse 2s infinite;
}
@keyframes pulse { 0%, 100% { opacity: 0.4; box-shadow: 0 0 0 0 rgba(0, 180, 216, 0.5); } 50% { opacity: 1; box-shadow: 0 0 0 6px rgba(0, 180, 216, 0); } }

.map-controls { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.seg {
  display: inline-flex; background: rgba(255, 255, 255, 0.07); border-radius: 999px; padding: 3px;
  border: 1px solid rgba(144, 224, 239, 0.16);
}
.seg button {
  border: 0; background: transparent; color: #a9c2d6; font-size: 12px; font-family: inherit;
  padding: 5px 12px; border-radius: 999px; cursor: pointer; transition: 0.16s;
}
.seg button.on { background: var(--cyan); color: #fff; font-weight: 600; }
.seg button:hover:not(.on) { color: #fff; }

.map-body { display: grid; grid-template-columns: 1fr 296px; }
.map-stage { position: relative; height: 420px; }
#worldmap { display: block; width: 100%; height: 100%; cursor: crosshair; }

.map-tip {
  position: absolute; z-index: 5; pointer-events: none; opacity: 0;
  transform: translate(-50%, -100%) translateY(-12px);
  width: 268px; background: rgba(255, 255, 255, 0.98); color: var(--ink);
  border-radius: 10px; padding: 12px 14px; box-shadow: 0 12px 30px rgba(3, 18, 33, 0.35);
  transition: opacity 0.14s;
}
.map-tip.show { opacity: 1; }
.map-tip .tip-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.map-tip .tip-loc { font-weight: 700; font-size: 13px; color: var(--navy); }
.map-tip .tip-count { font-size: 11px; color: var(--muted); margin-left: auto; white-space: nowrap; }
.map-tip .tip-title { font-size: 13px; font-weight: 600; line-height: 1.45; margin: 0 0 4px; color: var(--ink); }
.map-tip .tip-sum { font-size: 12px; color: var(--ink-2); line-height: 1.6; margin: 0 0 6px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.map-tip .tip-meta { font-size: 11px; color: var(--muted); display: flex; justify-content: space-between; gap: 8px; }
.map-tip .tip-caret {
  position: absolute; left: 50%; bottom: -6px; width: 12px; height: 12px;
  background: #fff; transform: translateX(-50%) rotate(45deg); border-radius: 2px;
}

.map-legend {
  position: absolute; left: 16px; bottom: 14px; display: flex; gap: 12px; flex-wrap: wrap;
  padding: 7px 12px; background: rgba(6, 24, 41, 0.6); border-radius: 8px;
  border: 1px solid rgba(144, 224, 239, 0.14); backdrop-filter: blur(6px);
}
.map-legend span { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; color: #cfe3f2; }
.map-legend i { width: 8px; height: 8px; border-radius: 50%; }

.map-side {
  border-left: 1px solid rgba(144, 224, 239, 0.12);
  padding: 16px; display: flex; flex-direction: column; gap: 14px;
  background: rgba(6, 24, 41, 0.35);
}
.map-side .m-title { color: #cfe3f2; font-size: 12px; letter-spacing: 0.6px; display: flex; align-items: center; justify-content: space-between; }
.map-side .m-title b { color: #fff; font-size: 12px; font-weight: 600; }
.hot-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.hot-list li {
  display: flex; align-items: center; gap: 8px; padding: 5px 6px; border-radius: 6px;
  cursor: pointer; transition: background 0.15s;
}
.hot-list li:hover { background: rgba(0, 180, 216, 0.14); }
.hot-list .rank { width: 16px; font-size: 11px; color: #7fa2bd; font-variant-numeric: tabular-nums; }
.hot-list .nm { color: #e3f1fb; font-size: 12px; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hot-list .bar { width: 46px; height: 3px; background: rgba(255, 255, 255, 0.12); border-radius: 2px; overflow: hidden; }
.hot-list .bar i { display: block; height: 100%; background: var(--cyan); }
.hot-list .n { font-size: 11px; color: var(--cyan-soft); width: 20px; text-align: right; font-variant-numeric: tabular-nums; }

.cat-bars { display: flex; flex-direction: column; gap: 7px; }
.cat-bars .row { display: flex; align-items: center; gap: 8px; font-size: 11px; color: #cfe3f2; }
.cat-bars .row .nm { width: 56px; }
.cat-bars .row .track { flex: 1; height: 6px; background: rgba(255, 255, 255, 0.1); border-radius: 3px; overflow: hidden; }
.cat-bars .row .track i { display: block; height: 100%; border-radius: 3px; transition: width 0.5s var(--ease); }
.cat-bars .row .n { width: 24px; text-align: right; color: #fff; font-variant-numeric: tabular-nums; }

.map-kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.map-kpi { background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(144, 224, 239, 0.12); border-radius: 8px; padding: 8px 10px; }
.map-kpi .n { color: #fff; font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; }
.map-kpi .l { color: #8fa9bf; font-size: 11px; }

.mini-trend { height: 54px; width: 100%; display: block; }

/* ── 三栏速览 ─────────────────────────────────────────── */
.overview { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.panel {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 18px 8px; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
}
.panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.panel-head h4 { margin: 0; font-size: 14px; color: var(--navy); display: flex; align-items: center; gap: 7px; }
.panel-head .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); }
.panel-head a { font-size: 12px; color: var(--cyan); }
.panel-list { list-style: none; margin: 0; padding: 0; }
.panel-list li { padding: 10px 0; border-bottom: 1px dashed var(--line); }
.panel-list li:last-child { border-bottom: 0; }
.panel-list .row { display: flex; align-items: flex-start; gap: 8px; }
.panel-list .ttl { font-size: 13px; line-height: 1.5; color: var(--ink); flex: 1; }
.panel-list .ttl:hover { color: var(--cyan); }
.panel-list .meta { font-size: 11px; color: var(--muted); margin-top: 4px; display: flex; gap: 8px; flex-wrap: wrap; }

/* ── 标签 / 徽标 ──────────────────────────────────────── */
.tag {
  display: inline-flex; align-items: center; gap: 4px; height: 20px; padding: 0 7px;
  border-radius: 5px; font-size: 11px; font-weight: 600; line-height: 1; white-space: nowrap;
  background: #eef4f9; color: var(--ink-2);
}
.tag.safety { background: rgba(59, 130, 246, 0.12); color: #1d4ed8; }
.tag.regulation { background: rgba(245, 158, 11, 0.14); color: #a16207; }
.tag.navigation { background: rgba(20, 184, 166, 0.13); color: #0f766e; }
.tag.green { background: rgba(132, 204, 22, 0.16); color: #4d7c0f; }
.tag.pending { background: #fef3c7; color: #92400e; }
.tag.in_force { background: #dcfce7; color: #166534; }
.tag.draft { background: #e2e8f0; color: #475569; }
.tag.new { background: rgba(239, 68, 68, 0.12); color: #dc2626; }
.tag.outline { background: transparent; border: 1px solid var(--line-2); color: var(--muted); }

.pill-new {
  display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #ef4444;
  margin-left: 6px; vertical-align: middle; animation: pulse 1.8s infinite;
}

/* ── 页面容器（内页）────────────────────────────────── */
.view { display: none; }
.view.on { display: block; }
.page { display: none; padding: 28px 0 60px; }
.page.on { display: block; }
.page-head { margin-bottom: 20px; }
.page-head h1 { font-size: 24px; margin: 0 0 6px; color: var(--navy); letter-spacing: 0.4px; }
.page-head p { margin: 0; color: var(--muted); font-size: 13px; }
.breadcrumb { font-size: 12px; color: var(--muted); margin-bottom: 10px; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--cyan); }

/* 法规页：左导航 + 右内容 */
.split { display: grid; grid-template-columns: 268px 1fr; gap: 20px; align-items: start; }
.side-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px; box-shadow: var(--shadow-sm); position: sticky; top: 80px;
}
.side-card h5 { margin: 0 0 10px; font-size: 13px; color: var(--navy); letter-spacing: 0.4px; }
.tree { list-style: none; margin: 0; padding: 0; }
.tree > li { margin-bottom: 2px; }
/* 目录/列表通用按钮（去掉浏览器默认描边）*/
.node {
  border: 0; background: transparent; width: 100%; text-align: left;
  font-family: inherit; font-size: inherit; cursor: pointer;
}
.tree .node {
  display: flex; align-items: center; gap: 6px; padding: 7px 9px; border-radius: 6px;
  font-size: 13px; color: var(--ink-2); transition: 0.15s;
}
.tree .node:hover { background: #eef6fb; color: var(--navy); }
.tree .node.on { background: rgba(0, 180, 216, 0.12); color: #0e7490; font-weight: 600; }
.tree .node .cnt { margin-left: auto; font-size: 11px; color: var(--muted); }
.tree .children { list-style: none; margin: 2px 0 6px 12px; padding: 0 0 0 8px; border-left: 1px dashed var(--line-2); }
.tree .children .node { font-size: 12.5px; padding: 5px 8px; }

/* 法规滚动提示条 */
.ticker {
  display: flex; align-items: center; gap: 12px; background: #0e2f52; color: #dbeaf6;
  border-radius: 10px; padding: 9px 14px; margin-bottom: 16px; overflow: hidden;
  border: 1px solid rgba(144, 224, 239, 0.18);
}
.ticker .lbl { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: #fff; background: rgba(0, 180, 216, 0.22); padding: 3px 9px; border-radius: 5px; white-space: nowrap; }
.ticker .items { flex: 1; overflow: hidden; white-space: nowrap; }
.ticker .item { display: inline-block; font-size: 13px; padding-right: 42px; animation: marquee 26s linear infinite; }
.ticker .item a { color: #dbeaf6; }
.ticker .item a:hover { color: var(--cyan-soft); }
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-100%); } }

/* 列表卡片 */
.card-list { display: flex; flex-direction: column; gap: 12px; }
.doc {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 18px; transition: 0.18s var(--ease); box-shadow: var(--shadow-sm);
}
.doc:hover { border-color: #c8e4ef; box-shadow: var(--shadow); transform: translateY(-1px); }
.doc .top { display: flex; gap: 10px; align-items: flex-start; }
.doc .titles { flex: 1; min-width: 0; }
.doc .t-zh { font-size: 15px; font-weight: 600; color: var(--navy); line-height: 1.5; }
.doc .t-en { font-size: 12px; color: var(--muted); margin-top: 3px; font-style: italic; }
.doc .tags { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; align-items: center; }
.doc .sum { font-size: 13px; color: var(--ink-2); line-height: 1.7; margin: 10px 0 0; }
.doc .foot { display: flex; align-items: center; gap: 10px; margin-top: 12px; font-size: 12px; color: var(--muted); flex-wrap: wrap; }
.doc .foot .spacer { flex: 1; }
.doc .actions { display: flex; gap: 8px; }

/* 要情列表（时间轴） */
.news-layout { display: grid; grid-template-columns: 1fr 268px; gap: 20px; align-items: start; }
.timeline { position: relative; padding-left: 22px; }
.timeline::before {
  content: ""; position: absolute; left: 6px; top: 6px; bottom: 6px; width: 1px;
  background: linear-gradient(180deg, var(--cyan), rgba(0, 180, 216, 0.08));
}
.news-item { position: relative; margin-bottom: 14px; }
.news-item::before {
  content: ""; position: absolute; left: -19px; top: 16px; width: 9px; height: 9px;
  border-radius: 50%; background: #fff; border: 2px solid var(--cyan);
}
.news-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 16px; transition: 0.18s var(--ease); box-shadow: var(--shadow-sm);
}
.news-card:hover { border-color: #c8e4ef; box-shadow: var(--shadow); }
.news-card .head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.news-card .time { font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.news-card .src { font-size: 11.5px; color: var(--muted); display: inline-flex; align-items: center; gap: 4px; }
.news-card .src .flag { width: 6px; height: 6px; border-radius: 50%; background: var(--line-2); }
.news-card h4 { margin: 0 0 6px; font-size: 15px; line-height: 1.5; color: var(--navy); font-weight: 600; }
.news-card .sum { font-size: 13px; color: var(--ink-2); line-height: 1.7; margin: 0; }
.news-card .trans {
  margin: 10px 0 0; padding: 10px 12px; background: #f3f8fc; border-left: 3px solid var(--cyan-soft);
  border-radius: 0 8px 8px 0; font-size: 13px; color: var(--ink-2); line-height: 1.75; display: none;
}
.news-card .trans.open { display: block; }
.news-card .foot { display: flex; align-items: center; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.news-card .kw { display: flex; gap: 6px; flex-wrap: wrap; }
.news-card .kw em { font-style: normal; font-size: 11px; color: #0e7490; background: rgba(0, 180, 216, 0.1); padding: 1px 6px; border-radius: 4px; }

/* 侧栏：热点、词云、订阅 */
.side-block { margin-bottom: 14px; }
.hot-item { display: flex; gap: 8px; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.hot-item:last-child { border-bottom: 0; }
.hot-item .rank {
  width: 18px; height: 18px; border-radius: 4px; display: grid; place-items: center;
  font-size: 11px; font-weight: 700; background: #eef4f9; color: var(--muted); flex: 0 0 auto;
}
.hot-item .rank.top { background: linear-gradient(135deg, var(--cyan), #0077a3); color: #fff; }
.hot-item .tx { font-size: 12.5px; line-height: 1.5; color: var(--ink); }
.hot-item .tx:hover { color: var(--cyan); }

.wordcloud { display: flex; flex-wrap: wrap; gap: 5px 10px; align-items: baseline; }
.wordcloud b {
  font-weight: 500; color: var(--navy-3); cursor: pointer; line-height: 1.3;
  transition: color 0.15s; opacity: 0.9;
}
.wordcloud b:hover { color: var(--cyan); }

.sub-form { display: flex; gap: 8px; flex-direction: column; }
.sub-form input {
  height: 34px; border-radius: 8px; border: 1px solid var(--line-2); padding: 0 10px;
  font-size: 13px; font-family: inherit; width: 100%;
}
.sub-form input:focus { outline: none; border-color: var(--cyan); }
.sub-form button { height: 34px; }

/* 筛选条 */
.filters {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 12px 14px; margin-bottom: 16px; box-shadow: var(--shadow-sm);
}
.filters label { font-size: 12px; color: var(--muted); }
.filters input[type="date"], .filters input[type="text"], .filters select {
  height: 32px; border: 1px solid var(--line-2); border-radius: 8px; padding: 0 9px;
  font-size: 13px; font-family: inherit; color: var(--ink); background: #fff;
}
.filters input:focus, .filters select:focus { outline: none; border-color: var(--cyan); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip {
  height: 30px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-2);
  background: #fff; color: var(--ink-2); font-size: 12.5px; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px; font-family: inherit; transition: 0.16s;
}
.chip:hover { border-color: var(--cyan); color: var(--navy); }
.chip.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.chip .b {
  font-size: 11px; background: rgba(255, 255, 255, 0.18); border-radius: 4px; padding: 0 5px;
  min-width: 18px; text-align: center;
}
.chip.on .b { background: rgba(0, 180, 216, 0.6); }

/* 分类 Tab */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 16px; overflow-x: auto; }
.tabs button {
  border: 0; background: transparent; font-family: inherit; font-size: 14px; color: var(--muted);
  padding: 10px 14px; cursor: pointer; border-bottom: 2px solid transparent; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 6px; transition: 0.16s;
}
.tabs button.on { color: var(--navy); border-bottom-color: var(--cyan); font-weight: 600; }
.tabs button .b { font-size: 11px; background: #eef4f9; color: var(--muted); border-radius: 4px; padding: 0 5px; }
.tabs button.on .b { background: rgba(0, 180, 216, 0.14); color: #0e7490; }

/* 法规详情 */
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
.doc-pane {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 20px; min-height: 120px;
}
.doc-pane h5 { margin: 0 0 10px; font-size: 13px; color: var(--muted); letter-spacing: 0.4px; display: flex; align-items: center; gap: 6px; }
.doc-pane .body { font-size: 14px; line-height: 1.9; color: var(--ink-2); white-space: pre-wrap; }
.doc-pane .body mark {
  background: linear-gradient(180deg, transparent 62%, rgba(0, 180, 216, 0.3) 62%);
  color: inherit; padding: 0 1px;
}
.clauses { margin-top: 16px; }
.clause {
  border-left: 3px solid var(--cyan-soft); background: #f4f9fd; border-radius: 0 8px 8px 0;
  padding: 10px 14px; margin-bottom: 10px;
}
.clause .c { font-size: 12px; font-weight: 700; color: #0e7490; letter-spacing: 0.4px; }
.clause .t { font-size: 13.5px; font-weight: 600; color: var(--navy); margin: 2px 0 4px; }
.clause .n { font-size: 12.5px; color: var(--ink-2); line-height: 1.65; }

/* 履约任务 */
.task-stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 18px; }
.stat-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 16px; box-shadow: var(--shadow-sm);
}
.stat-card .l { font-size: 12px; color: var(--muted); }
.stat-card .n { font-size: 24px; font-weight: 700; color: var(--navy); font-variant-numeric: tabular-nums; line-height: 1.3; }
.stat-card .n small { font-size: 13px; font-weight: 500; color: var(--muted); margin-left: 2px; }

.task {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 15px 18px; margin-bottom: 12px; box-shadow: var(--shadow-sm);
}
.task .head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.task h4 { margin: 0; font-size: 15px; color: var(--navy); flex: 1; min-width: 200px; }
.task .meta { font-size: 12px; color: var(--muted); display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 10px; }
.progress { height: 6px; background: #eaf1f7; border-radius: 4px; overflow: hidden; position: relative; }
.progress i { display: block; height: 100%; border-radius: 4px; transition: width 0.6s var(--ease); }
.progress i.pending { background: #94a3b8; }
.progress i.in_progress { background: linear-gradient(90deg, var(--cyan), #22a7c4); }
.progress i.completed { background: #10b981; }
.progress i.overdue { background: #ef4444; }
.task .line { display: flex; align-items: center; gap: 10px; margin-top: 8px; font-size: 12px; color: var(--muted); }

/* 简报 */
.report-layout { display: grid; grid-template-columns: 1fr 320px; gap: 20px; align-items: start; }
.chart-box { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow-sm); }
.chart-box h5 { margin: 0 0 12px; font-size: 13px; color: var(--navy); }
.pie-wrap { display: flex; align-items: center; gap: 16px; }
.legend-list { list-style: none; margin: 0; padding: 0; font-size: 12px; }
.legend-list li { display: flex; align-items: center; gap: 6px; padding: 3px 0; color: var(--ink-2); }
.legend-list i { width: 8px; height: 8px; border-radius: 2px; }
.report-doc { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 32px; box-shadow: var(--shadow-sm); }
.report-doc h3 { margin: 0 0 6px; font-size: 18px; color: var(--navy); text-align: center; }
.report-doc .sub { text-align: center; color: var(--muted); font-size: 12px; margin-bottom: 20px; }
.report-doc .content { font-size: 14px; line-height: 2; white-space: pre-wrap; color: var(--ink-2); }

/* 搜索结果 */
.search-sum { font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.search-sum b { color: var(--navy); }
.result {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 16px; margin-bottom: 10px; box-shadow: var(--shadow-sm); transition: 0.16s;
}
.result:hover { border-color: #c8e4ef; box-shadow: var(--shadow); }
.result .type { font-size: 11px; color: var(--muted); }
.result .ttl { font-size: 14.5px; font-weight: 600; color: var(--navy); margin: 3px 0 4px; }
.result .sum { font-size: 12.5px; color: var(--ink-2); line-height: 1.65; }
mark.hl { background: rgba(0, 180, 216, 0.22); color: inherit; padding: 0 1px; border-radius: 2px; }

/* 智能体助手 */
.ai-fab {
  position: fixed; right: 24px; bottom: 24px; z-index: 70;
  width: 56px; height: 56px; border-radius: 50%; border: 0; cursor: pointer;
  background: linear-gradient(140deg, var(--cyan), #0077a3);
  box-shadow: 0 10px 26px rgba(0, 120, 160, 0.4);
  display: grid; place-items: center; transition: transform 0.18s var(--ease);
}
.ai-fab:hover { transform: scale(1.06) rotate(4deg); }
.ai-fab svg { width: 26px; height: 26px; }
.ai-fab .badge {
  position: absolute; top: -2px; right: -2px; min-width: 18px; height: 18px; border-radius: 9px;
  background: #ef4444; color: #fff; font-size: 10px; font-weight: 700; display: none; place-items: center;
  padding: 0 4px;
}

.ai-panel {
  position: fixed; right: 24px; bottom: 92px; z-index: 71;
  width: 380px; height: 560px; max-height: calc(100vh - 130px);
  background: #fff; border-radius: 16px; box-shadow: 0 24px 60px rgba(10, 37, 64, 0.28);
  display: none; flex-direction: column; overflow: hidden;
  border: 1px solid rgba(144, 224, 239, 0.4);
}
.ai-panel.open { display: flex; animation: slideUp 0.24s var(--ease); }
@keyframes slideUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.ai-head {
  background: linear-gradient(140deg, #0e2f52, #0a2540); color: #fff; padding: 12px 14px;
  display: flex; align-items: center; gap: 10px;
}
.ai-head .avatar {
  width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(140deg, var(--cyan), #0077a3);
  display: grid; place-items: center; flex: 0 0 auto;
}
.ai-head .avatar svg { width: 18px; height: 18px; }
.ai-head .who { flex: 1; }
.ai-head .who b { font-size: 14px; display: block; }
.ai-head .who .st { font-size: 11px; color: #9fd7e6; display: flex; align-items: center; gap: 5px; }
.ai-head .who .st i { width: 6px; height: 6px; border-radius: 50%; background: #22d3a6; }
.ai-head button {
  background: transparent; border: 0; color: #cfe3f2; cursor: pointer; font-size: 18px;
  width: 28px; height: 28px; border-radius: 6px; line-height: 1;
}
.ai-head button:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }

.ai-body { flex: 1; overflow-y: auto; padding: 14px; background: #f6fafd; display: flex; flex-direction: column; gap: 12px; }
.ai-msg { display: flex; gap: 8px; align-items: flex-start; }
.ai-msg.me { flex-direction: row-reverse; }
.ai-msg .bub {
  max-width: 84%; padding: 9px 12px; border-radius: 12px; font-size: 13px; line-height: 1.7;
  white-space: pre-wrap; word-break: break-word;
}
.ai-msg.bot .bub { background: #fff; border: 1px solid var(--line); color: var(--ink); border-top-left-radius: 4px; }
.ai-msg.me .bub { background: linear-gradient(140deg, var(--cyan), #0e94b5); color: #fff; border-top-right-radius: 4px; }
.ai-msg .av {
  width: 26px; height: 26px; border-radius: 7px; flex: 0 0 auto; display: grid; place-items: center;
  background: #e6f6fb; color: #0e7490; font-size: 12px; font-weight: 700;
}
.ai-msg.me .av { background: #e2ecf5; color: var(--navy-2); }
.ai-cites { margin-top: 8px; display: flex; flex-direction: column; gap: 6px; white-space: normal; }
.ai-cite {
  display: block; background: #f4f9fd; border: 1px solid #d9ebf5; border-radius: 8px;
  padding: 7px 9px; cursor: pointer; transition: 0.15s;
}
.ai-cite:hover { background: #eaf5fb; border-color: var(--cyan-soft); }
.ai-cite .t { font-size: 12px; font-weight: 600; color: var(--navy); line-height: 1.4; }
.ai-cite .m { font-size: 10.5px; color: var(--muted); margin-top: 2px; }
.ai-rate { display: flex; gap: 10px; margin-top: 6px; font-size: 11px; color: var(--muted); }
.ai-rate button {
  background: transparent; border: 1px solid var(--line); border-radius: 6px; padding: 2px 8px;
  font-size: 11px; color: var(--muted); cursor: pointer; font-family: inherit;
}
.ai-rate button:hover { border-color: var(--cyan); color: #0e7490; }
.ai-rate button.on { background: rgba(0, 180, 216, 0.12); border-color: var(--cyan); color: #0e7490; }

.ai-foot { border-top: 1px solid var(--line); padding: 10px 12px; background: #fff; }
.ai-quick { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 8px; }
.ai-quick button {
  white-space: nowrap; border: 1px solid var(--line-2); background: #f7fafd; color: var(--ink-2);
  font-size: 11.5px; padding: 4px 9px; border-radius: 999px; cursor: pointer; font-family: inherit;
}
.ai-quick button:hover { border-color: var(--cyan); color: #0e7490; }
.ai-input { display: flex; gap: 8px; align-items: flex-end; }
.ai-input textarea {
  flex: 1; resize: none; border: 1px solid var(--line-2); border-radius: 10px; padding: 8px 10px;
  font-size: 13px; font-family: inherit; line-height: 1.5; max-height: 88px; min-height: 38px;
}
.ai-input textarea:focus { outline: none; border-color: var(--cyan); }
.ai-send {
  width: 40px; height: 38px; border-radius: 10px; border: 0; background: var(--cyan); color: #fff;
  cursor: pointer; display: grid; place-items: center; flex: 0 0 auto;
}
.ai-send:hover { background: #00c8ee; }
.ai-send:disabled { background: #b8d9e4; cursor: not-allowed; }
.ai-hint { font-size: 10.5px; color: #93a5b5; margin-top: 6px; text-align: right; }

/* 弹窗 */
.modal-mask {
  position: fixed; inset: 0; background: rgba(6, 22, 40, 0.5); backdrop-filter: blur(3px);
  z-index: 80; display: none; align-items: center; justify-content: center; padding: 24px;
}
.modal-mask.on { display: flex; }
.modal {
  background: #fff; border-radius: 14px; width: min(720px, 100%); max-height: 86vh;
  display: flex; flex-direction: column; box-shadow: 0 30px 70px rgba(4, 18, 33, 0.4);
  animation: slideUp 0.22s var(--ease);
}
.modal .m-head { display: flex; align-items: center; gap: 10px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.modal .m-head h4 { margin: 0; font-size: 15px; color: var(--navy); flex: 1; }
.modal .m-head button { background: transparent; border: 0; font-size: 20px; color: var(--muted); cursor: pointer; line-height: 1; }
.modal .m-body { padding: 16px 20px; overflow-y: auto; }
.modal .m-foot { padding: 12px 20px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 8px; }

/* 反馈表单 */
.fb-form { display: flex; flex-direction: column; gap: 10px; }
.fb-form textarea, .fb-form input {
  border: 1px solid var(--line-2); border-radius: 8px; padding: 8px 10px; font-size: 13px;
  font-family: inherit; resize: vertical;
}
.fb-form textarea:focus, .fb-form input:focus { outline: none; border-color: var(--cyan); }

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: 32px; transform: translate(-50%, 20px);
  background: rgba(10, 37, 64, 0.94); color: #fff; padding: 10px 18px; border-radius: 10px;
  font-size: 13px; z-index: 90; opacity: 0; pointer-events: none; transition: 0.24s var(--ease);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25); max-width: 80vw;
}
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* 页脚 */
.footer { background: var(--navy); color: #9fb6c9; margin-top: 56px; }
.footer-inner {
  max-width: 1240px; margin: 0 auto; padding: 36px 24px 20px;
  display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 28px;
}
.footer h5 { color: #fff; font-size: 13px; margin: 0 0 10px; letter-spacing: 0.6px; }
.footer p { font-size: 12.5px; line-height: 1.9; margin: 0; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer ul li { font-size: 12.5px; padding: 3px 0; }
.footer ul a { color: #9fb6c9; }
.footer ul a:hover { color: var(--cyan-soft); }
.footer-bottom {
  border-top: 1px solid rgba(144, 224, 239, 0.12); padding: 14px 24px; text-align: center;
  font-size: 12px; color: #7d95a9; max-width: 1240px; margin: 0 auto;
}

/* 空状态 / 加载 */
.empty { text-align: center; padding: 40px 20px; color: var(--muted); font-size: 13px; }
.empty .ic { width: 48px; height: 48px; margin: 0 auto 12px; opacity: 0.35; }
.skeleton {
  background: linear-gradient(90deg, #eef3f8 25%, #f7fafc 37%, #eef3f8 63%);
  background-size: 400% 100%; animation: shimmer 1.4s infinite; border-radius: 8px;
}
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }
.page-loading { display: flex; flex-direction: column; gap: 12px; }
.page-loading .skeleton { height: 88px; }

/* 分页 */
.pager { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 20px 0 4px; }
.pager button {
  min-width: 34px; height: 32px; border-radius: 8px; border: 1px solid var(--line-2);
  background: #fff; color: var(--ink-2); font-size: 12.5px; cursor: pointer; font-family: inherit;
  padding: 0 10px;
}
.pager button.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.pager button:disabled { opacity: 0.4; cursor: not-allowed; }
.pager .info { font-size: 12px; color: var(--muted); margin-left: 8px; }

/* 打印（PDF 导出）*/
@media print {
  .header, .footer, .ai-fab, .ai-panel, .hero, .map-panel, .modules, .overview,
  .ticker, .side-card, .filters, .tabs, .pager, .btn, .toast, .modal-mask { display: none !important; }
  body { background: #fff; font-size: 12pt; }
  .page, .page.on { padding: 0; }
  .report-doc { border: 0; box-shadow: none; padding: 0; }
  .report-doc .content { font-size: 11.5pt; line-height: 1.9; }
  .detail-grid { grid-template-columns: 1fr 1fr; }
  @page { margin: 18mm 16mm; }
}

/* 响应式 */
@media (max-width: 1080px) {
  .modules { grid-template-columns: repeat(2, 1fr); }
  .map-body { grid-template-columns: 1fr; }
  .map-side { border-left: 0; border-top: 1px solid rgba(144, 224, 239, 0.12); }
  .map-side { display: grid; grid-template-columns: repeat(2, 1fr); }
  .overview { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-search { display: none; }
  .burger { display: block; }
  .split { grid-template-columns: 1fr; }
  .side-card { position: static; }
  .news-layout { grid-template-columns: 1fr; }
  .report-layout { grid-template-columns: 1fr; }
  .detail-grid { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .overview { grid-template-columns: 1fr; }
  .task-stat-grid { grid-template-columns: 1fr 1fr; }
  .ai-panel { right: 12px; left: 12px; width: auto; bottom: 84px; height: 68vh; }
  .ai-fab { right: 16px; bottom: 16px; }
  .map-side { grid-template-columns: 1fr; }
  .map-stage { min-height: 300px; }
}
@media (max-width: 560px) {
  .modules { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .hero-inner { padding-top: 36px; }
  .map-top { padding: 12px 14px; }
  .doc .top { flex-direction: column; }
}

/* 移动端抽屉菜单 */
.drawer {
  position: fixed; inset: 0; z-index: 75; display: none;
}
.drawer.on { display: block; }
.drawer .mask { position: absolute; inset: 0; background: rgba(6, 22, 40, 0.5); }
.drawer .panel-x {
  position: absolute; right: 0; top: 0; bottom: 0; width: min(300px, 82vw);
  background: #0a2540; padding: 20px; display: flex; flex-direction: column; gap: 6px;
  animation: slideLeft 0.22s var(--ease);
}
@keyframes slideLeft { from { transform: translateX(100%); } to { transform: none; } }
.drawer a { color: #cfe3f2; padding: 10px 12px; border-radius: 8px; font-size: 14px; }
.drawer a:hover, .drawer a.active { background: rgba(0, 180, 216, 0.16); color: #fff; }
.drawer .close { align-self: flex-end; background: transparent; border: 0; color: #cfe3f2; font-size: 22px; cursor: pointer; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
  html { scroll-behavior: auto; }
}
