/* 杭州市 AI 创新主体导航图 —— 样式 */
:root {
  --bg: #f4f6fb;
  --card: #ffffff;
  --ink: #1a2233;
  --ink-soft: #55617a;
  --ink-faint: #8b94a8;
  --line: #e6eaf2;
  --line-soft: #eef1f7;
  --shadow: 0 2px 10px rgba(24, 39, 75, .06);
  --shadow-lg: 0 12px 40px rgba(24, 39, 75, .16);
  --radius: 14px;
  --maxw: 1400px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei",
               "Segoe UI", "Hiragino Sans GB", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img, video { max-width: 100%; display: block; }

/* ---------- Hero ---------- */
.hero {
  background: radial-gradient(1200px 400px at 80% -10%, #1c3a73 0%, transparent 60%),
              linear-gradient(120deg, #0d1b3a 0%, #14264f 55%, #0f213f 100%);
  color: #fff;
  padding: 34px 20px 26px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,.6), transparent 75%);
  pointer-events: none;
}
.hero-inner { max-width: var(--maxw); margin: 0 auto; position: relative; z-index: 1; }
.hero h1 { margin: 0; font-size: clamp(22px, 3.4vw, 34px); font-weight: 800; letter-spacing: 1px; }
.hero .sub { margin-top: 6px; color: #b9c8e8; font-size: clamp(13px, 1.6vw, 15px); }
.hero .metaline { margin-top: 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; font-size: 13px; color: #93a7d0; }
.hero .metaline .tag { white-space: nowrap; }
.hero .metaline .copyright { display: inline-flex; align-items: center; gap: 8px; }
.hero .metaline .emblem { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.hero .metaline .copyright-text { font-size: 13px; color: #93a7d0; font-weight: 400; letter-spacing: .5px; white-space: nowrap; }
.hero .metaline .divider { width: 1px; height: 14px; background: rgba(255,255,255,.18); flex-shrink: 0; }

/* ---------- View toggle ---------- */
.toolbar {
  position: sticky; top: 0; z-index: 20;
  background: rgba(244,246,251,.92); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.toolbar-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 10px 20px;
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
}
.switch { display: inline-flex; background: #e7ebf4; border-radius: 10px; padding: 4px; }
.switch button {
  border: 0; background: transparent; cursor: pointer;
  font: inherit; font-weight: 600; color: var(--ink-soft);
  padding: 7px 16px; border-radius: 7px; transition: .18s;
}
.switch button.active { background: #fff; color: var(--ink); box-shadow: var(--shadow); }
.switch button.coming-soon {
  position: relative;
  color: var(--ink-faint);
  cursor: not-allowed;
}
.switch button.coming-soon:hover { color: var(--ink-soft); }
.switch button.coming-soon::before {
  content: attr(data-tip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translateX(-50%) scale(.95);
  padding: 5px 10px;
  background: rgba(30, 40, 70, .92);
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s, transform .15s;
}
.switch button.coming-soon:hover::before {
  opacity: 1;
  transform: translateX(-50%) scale(1);
}
.switch button.coming-soon::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: calc(100% + 3px);
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: rgba(30, 40, 70, .92);
  opacity: 0;
  transition: opacity .15s;
}
.switch button.coming-soon:hover::after { opacity: 1; }
.count-note { margin-left: auto; color: var(--ink-faint); font-size: 13px; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 22px 20px 60px; }

/* ============ 导航图：侧栏 + 右侧列表 ============ */
.nav-layout { display: flex; gap: 20px; align-items: stretch; position: relative; }
.nav-sidebar {
  width: 280px; flex: none; background: var(--card); border-radius: var(--radius);
  box-shadow: var(--shadow); border: 1px solid var(--line); overflow: hidden;
}
.nav-sidebar-inner { padding: 6px 0; }
.nav-sidebar .cat-group { border-bottom: 1px solid var(--line-soft); }
.nav-sidebar .cat-group:last-child { border-bottom: 0; }
.nav-sidebar .cat-head {
  display: flex; align-items: center; gap: 8px; padding: 12px 16px;
  cursor: pointer; user-select: none; transition: background .12s;
  font-weight: 700; font-size: 15px; color: var(--ink);
}
.nav-sidebar .cat-head:hover { background: #f8f9fc; }
.nav-sidebar .cat-head .cat-arrow {
  font-size: 10px; margin-left: auto; color: var(--ink-faint); transition: transform .2s;
}
.nav-sidebar .cat-head .cat-arrow.open { transform: rotate(90deg); }
.nav-sidebar .cat-head .cat-dot {
  width: 8px; height: 8px; border-radius: 50%; flex: none;
}
.nav-sidebar .cat-sub-list { display: none; }
.nav-sidebar .cat-sub-list.open { display: block; }
.nav-sidebar .cat-sub {
  display: flex; align-items: center; gap: 6px; padding: 8px 16px 8px 36px;
  cursor: pointer; font-size: 13.5px; color: var(--ink-soft); transition: background .12s;
  border-left: 3px solid transparent; font-weight: 500;
}
.nav-sidebar .cat-sub:hover { background: #f4f6fb; color: var(--ink); }
.nav-sidebar .cat-sub.active { background: #eef1fa; color: var(--ink); font-weight: 700; border-left-color: currentColor; }
.nav-sidebar .cat-sub .sub-name { flex: 1; }
.nav-sidebar .cat-sub .sub-count { font-size: 12px; color: var(--ink-faint); }

.nav-content { flex: 1; min-width: 0; position: relative; display: flex; flex-direction: column; }
.nav-content .nav-panel-header {
  margin-bottom: 16px; padding-bottom: 10px; border-bottom: 2px solid var(--line);
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.nav-content .nav-panel-header h3 { margin: 0; font-size: 18px; font-weight: 800; }
.nav-content .nav-panel-header .n { font-size: 13px; color: var(--ink-faint); }

.nav-enterprise-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; overflow-y: auto; }
.nav-enterprise-cards .ecard {
  background: var(--card); border-radius: 12px; padding: 16px;
  box-shadow: var(--shadow); border: 1px solid var(--line);
  cursor: pointer; transition: .16s;
}
.nav-enterprise-cards .ecard:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.nav-enterprise-cards .ecard .ename { font-size: 15px; font-weight: 800; margin-bottom: 4px; }
.nav-enterprise-cards .ecard .eslogan { font-size: 12.5px; color: var(--ink-soft); margin-bottom: 8px; }
.nav-enterprise-cards .ecard .emeta { display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: var(--ink-faint); }
.nav-enterprise-cards .ecard .emeta .eslot {
  width: 20px; height: 20px; border-radius: 5px; display: grid; place-items: center;
  color: #fff; font-weight: 700; font-size: 11px; background: var(--ink-faint);
}

/* ============ 地图视图 ============ */
.map-container {
  width: 100%; flex: 1 1 auto; min-height: 0;
  border-radius: 12px; overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow);
}
.map-overview {
  display: flex; align-items: center; gap: 6px; padding: 10px 16px;
  cursor: pointer; font-size: 14px; font-weight: 700; color: var(--ink);
  border-left: 3px solid transparent; transition: background .12s;
}
.map-overview:hover { background: #f4f6fb; }
.map-overview.active { background: #eef1fa; border-left-color: #2f6fd6; }
.map-overview .sub-count { font-size: 12px; color: var(--ink-faint); }
.map-info-title {
  padding: 4px 10px; font-size: 13px; font-weight: 600;
  white-space: nowrap; color: #333;
}
.map-info-box { padding: 2px 0; }
.map-info-actions { display: flex; gap: 8px; margin-top: 6px; padding: 0 10px 4px; }
.map-info-btn {
  font-size: 12px; color: #4a6cf7; text-decoration: none; cursor: pointer;
  white-space: nowrap;
}
.map-info-btn:hover { text-decoration: underline; }

/* ============ 导航路线规划面板 ============ */
.nav-route-panel {
  position: absolute; top: 62px; left: 12px; z-index: 20;
  width: 320px; max-height: calc(100% - 74px); overflow-y: auto;
  background: #fff; border-radius: 10px; box-shadow: 0 4px 20px rgba(0,0,0,.15);
  font-size: 13px;
}
.nav-route-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 16px 8px; font-weight: 700; font-size: 14px; color: #333;
}
.nav-route-close { font-size: 16px; color: #999; text-decoration: none; cursor: pointer; line-height: 1; }
.nav-route-close:hover { color: #e74c3c; }
.nav-route-body { padding: 0 16px 12px; }
.nav-route-row { display: flex; align-items: center; gap: 10px; padding: 7px 0; }
.nav-route-row + .nav-route-row { border-top: 1px solid #f0f0f0; }
.nav-route-dot { flex-shrink: 0; width: 8px; height: 8px; border-radius: 50%; }
.nav-route-dot-start { background: #2f6fd6; }
.nav-route-dot-end { background: #e74c3c; }
.nav-route-input {
  flex: 1; border: 1px solid #e0e0e0; border-radius: 6px; padding: 7px 10px;
  font-size: 13px; outline: none; transition: border-color .2s;
}
.nav-route-input:focus { border-color: #2f6fd6; }
.nav-route-dest { flex: 1; font-weight: 600; color: #333; }
.nav-route-dest small { display: block; font-weight: 400; font-size: 11px; color: #999; margin-top: 2px; }
.nav-route-go {
  display: block; width: calc(100% - 32px); margin: 0 16px 12px;
  padding: 9px 0; border: none; border-radius: 8px;
  background: #2f6fd6; color: #fff; font-size: 14px; font-weight: 600;
  cursor: pointer; transition: background .2s;
}
.nav-route-go:hover { background: #2455b0; }
.nav-route-result { padding: 0 16px 8px; }
.nav-route-summary { color: #2f6fd6; font-weight: 600; }
.nav-route-steps { padding: 0 16px 12px; max-height: 240px; overflow-y: auto; }
.nav-route-steps:empty { display: none; }

/* 起点模糊搜索下拉 */
.nav-start-dropdown {
  position: absolute; top: 100%; left: 18px; right: 0; z-index: 30;
  background: #fff; border: 1px solid #e0e0e0; border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,.12); max-height: 240px; overflow-y: auto;
  margin-top: 4px;
}
.nav-start-item {
  display: flex; flex-direction: column; gap: 2px;
  padding: 8px 12px; cursor: pointer; border-bottom: 1px solid #f5f5f5;
}
.nav-start-item:last-child { border-bottom: none; }
.nav-start-item:hover { background: #f0f5ff; }
.nav-start-name { font-size: 13px; font-weight: 600; color: #333; }
.nav-start-addr { font-size: 11px; color: #999; }
/* 高德地图 logo/版权不挡视线 */
.amap-copyright, .amap-logo { opacity: .5; }

/* ============ 详情弹层 ============ */
.overlay {
  position: fixed; inset: 0; z-index: 50; display: none;
  background: rgba(12, 20, 40, .55); backdrop-filter: blur(3px);
  overflow-y: auto; padding: 30px 16px;
}
.overlay.open { display: block; }
.modal {
  max-width: 1150px; margin: 0 auto; background: var(--card); border-radius: 18px;
  box-shadow: var(--shadow-lg); overflow: hidden; animation: pop .22s ease;
}
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.99); } to { opacity: 1; } }
.modal-head { color: #fff; padding: 18px 26px; position: relative; }
.modal-head .close {
  position: absolute; top: 16px; right: 16px; width: 34px; height: 34px; border-radius: 50%;
  border: 0; background: rgba(255,255,255,.18); color: #fff; font-size: 20px; cursor: pointer; line-height: 1;
}
.modal-head .close:hover { background: rgba(255,255,255,.32); }
.modal-head .cat-chip { display: inline-block; font-size: 12.5px; font-weight: 700; background: rgba(255,255,255,.2); padding: 3px 11px; border-radius: 999px; margin-bottom: 10px; }
.modal-head h2 { margin: 0; font-size: clamp(20px, 3vw, 26px); font-weight: 800; }
.modal-head .slogan { margin-top: 10px; font-size: 15px; font-weight: 600; color: rgba(255,255,255,.95); }

.modal-body { padding: 6px 30px 28px; }
.kv-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 12px 0 0; }
.kv {
  flex: 1 1 220px; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: #fbfcfe;
}
.kv .k { font-size: 12px; color: var(--ink-faint); font-weight: 700; letter-spacing: .5px; }
.kv .v { font-size: 15px; font-weight: 700; margin-top: 3px; }
.kv .v.rank { font-size: 18px; }

.block { margin-top: 16px; }
.block > h3 {
  font-size: 15px; font-weight: 800; margin: 0 0 12px; padding-left: 11px; position: relative;
}
.block > h3::before { content: ""; position: absolute; left: 0; top: 2px; bottom: 2px; width: 4px; border-radius: 3px; background: var(--bar, #ccd3e0); }
.overview-text { color: var(--ink); font-size: 14.5px; line-height: 2.0; min-height: 120px; padding: 4px 0; }

.hl-textarea {
  width: 100%; min-height: 170px; padding: 14px 16px;
  border: 1px solid var(--line); border-radius: 12px;
  background: #fbfcfe; font: inherit; font-size: 14.5px;
  line-height: 2.0; color: var(--ink); resize: vertical; outline: none;
}
.hl-textarea:focus { border-color: #2f6fd6; }

.addr { display: flex; align-items: flex-start; gap: 8px; font-size: 14px; color: var(--ink-soft); }
.addr .pin { flex: none; margin-top: 2px; }
.addr a { color: #2f6fd6; font-weight: 600; white-space: nowrap; }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 14px; }
.gitem { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #f4f6fb; }
.gitem video, .gitem img { width: 100%; display: block; background: #fff; object-fit: contain; }
.gitem .cap { font-size: 12.5px; color: var(--ink-soft); padding: 8px 12px; background: var(--card); }
.gitem-img { position: relative; cursor: zoom-in; overflow: hidden; }
.gitem-img img { transition: transform .25s ease; }
.gitem-img:hover img { transform: scale(1.04); }
.gitem-img::after {
  content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.12);
  opacity: 0; transition: opacity .2s ease; pointer-events: none;
}
.gitem-img:hover::after { opacity: 1; }

.img-preview-overlay {
  position: fixed; inset: 0; z-index: 100; display: none;
  background: rgba(8, 14, 28, .92); backdrop-filter: blur(4px);
  align-items: center; justify-content: center; flex-direction: column;
  padding: 40px 16px; overflow: hidden;
}
.img-preview-overlay.open { display: flex; }
.img-preview-overlay .close {
  position: absolute; top: 18px; right: 18px; width: 44px; height: 44px; border-radius: 50%;
  border: 0; background: rgba(255,255,255,.15); color: #fff; font-size: 24px; cursor: pointer;
  display: flex; align-items: center; justify-content: center; z-index: 2;
}
.img-preview-overlay .close:hover { background: rgba(255,255,255,.28); }
.img-preview-overlay .img-wrap {
  flex: 1; display: flex; align-items: center; justify-content: center; width: 100%;
}
.img-preview-overlay img {
  max-width: 90vw; max-height: 82vh; object-fit: contain; border-radius: 8px;
  box-shadow: 0 16px 50px rgba(0,0,0,.35);
}
.img-preview-overlay .caption {
  margin-top: 14px; font-size: 14px; color: rgba(255,255,255,.85); text-align: center;
  max-width: 80vw; word-break: break-word;
}

.website-link { display: inline-flex; align-items: center; gap: 6px; color: #2f6fd6; font-weight: 600; font-size: 13.5px; margin-top: 8px; }
.detail-link-row { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 4px; }
.detail-link-row .website-link { margin-top: 8px; }
.research-link { color: #9c4dcc; }

/* 企业概况 | 核心看点 左右并排 */
.detail-two-col { display: flex; gap: 20px; margin-top: 16px; }
.detail-two-col .block { flex: 1; margin-top: 0; }
.detail-two-col .block:first-child { flex: 1; }
.hl-empty { min-height: 170px; }

/* 官网·一线问道 | 地址 同一行（与上方两列对齐） */
.detail-link-addr-row {
  display: flex; gap: 20px; margin-top: 12px;
}
.detail-links { flex: 1; display: flex; gap: 18px; align-items: center; }
.detail-link-addr-row .addr { flex: 1; }
.detail-links .website-link { margin-top: 0; }
.website-link.disabled { color: var(--ink-faint); cursor: default; }

/* 媒体区（无标题、无 caption） */
.detail-media { margin-top: 12px; }
.gallery-single { grid-template-columns: 1fr !important; }

/* ============ 企业管理 ============ */
.admin-layout { }

/* ---- 创新主体·结构式视图 ---- */
.innov-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
  align-items: start; margin-top: 2px;
}
@media (max-width: 1200px) { .innov-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .innov-grid { grid-template-columns: 1fr; } }
.innov-col { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.innov-col-head {
  color: #fff; font-size: 14px; font-weight: 700; letter-spacing: 1px;
  padding: 10px 14px; border-radius: 8px; white-space: nowrap;
  display: flex; align-items: center; justify-content: space-between;
}
.innov-col-count {
  font-size: 12px; font-weight: 600; opacity: .88; letter-spacing: 0;
  background: rgba(255,255,255,.18); border-radius: 10px; padding: 1px 8px;
}
.innov-sub-count {
  font-size: 12px; font-weight: 400; color: #98a2b3; margin-left: 2px;
}
.innov-sub-card {
  background: #fff; border: 1px solid #e5eaf1; border-radius: 10px;
  padding: 10px 12px 8px; box-shadow: 0 1px 3px rgba(30,50,80,.05);
}
.innov-sub-head {
  display: flex; align-items: center; gap: 7px;
  font-size: 13px; font-weight: 700; color: #2c3e50; margin-bottom: 8px;
}
.innov-dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.innov-empty { color: #b4bcc8; font-size: 12px; padding: 0 0 6px 16px; }
.innov-ent-row {
  display: flex; align-items: center; gap: 7px;
  padding: 4px 6px; border-radius: 6px; margin-left: 10px;
}
.innov-ent-row:hover { background: #f4f7fb; }
.innov-ent-badge {
  flex: none; min-width: 18px; height: 18px; padding: 0 3px;
  border-radius: 4px; background: #22a05a; color: #fff;
  font-size: 11px; font-weight: 700; display: grid; place-items: center;
}
.innov-ent-name {
  flex: 1; min-width: 0; font-size: 13px; color: #2f6fd6; cursor: pointer;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.innov-ent-name:hover { text-decoration: underline; }
.innov-ent-flag {
  flex: none; font-size: 10px; color: #98a2b3;
  border: 1px solid #dde3ea; border-radius: 3px; padding: 0 3px;
}
.innov-ent-edit {
  flex: none; color: #98a2b3; cursor: pointer; font-size: 13px;
  opacity: 0; transition: opacity .15s;
}
.innov-ent-row:hover .innov-ent-edit { opacity: 1; }
.innov-ent-edit:hover { color: #2f6fd6; }

.admin-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 18px; flex-wrap: wrap; gap: 10px;
}
.admin-toolbar .admin-title { font-size: 20px; font-weight: 800; }
.btn {
  display: inline-flex; align-items: center; gap: 6px; border: 0; cursor: pointer;
  font: inherit; font-weight: 600; padding: 8px 16px; border-radius: 8px; transition: .16s;
}
.btn-primary { background: #2f6fd6; color: #fff; }
.btn-primary:hover { background: #255cb5; }
.btn-success { background: #17a08a; color: #fff; }
.btn-success:hover { background: #138a76; }
.btn-outline { background: #fff; border: 1px solid var(--line); color: var(--ink-soft); }
.btn-outline:hover { border-color: var(--ink-faint); color: var(--ink); }
.btn-danger { background: #e45555; color: #fff; }
.btn-danger:hover { background: #c94444; }
.btn-danger-outline { background: #fff; border: 1px solid #e45555; color: #e45555; }
.btn-danger-outline:hover { background: #fff5f5; }
.btn-sm { padding: 4px 12px; font-size: 12.5px; border-radius: 6px; }
.btn-icon { width: 32px; height: 32px; padding: 0; display: grid; place-items: center; border-radius: 7px; }

.admin-filters {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
  margin-bottom: 16px; padding: 14px 16px; background: var(--card);
  border-radius: 12px; border: 1px solid var(--line);
}
.admin-filters input, .admin-filters select {
  border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px;
  font: inherit; font-size: 13.5px; color: var(--ink); background: #fff; outline: none;
  transition: border-color .15s;
}
.admin-filters input:focus, .admin-filters select:focus { border-color: #2f6fd6; }
.admin-filters input { flex: 1 1 200px; min-width: 160px; }
.admin-filters select { min-width: 130px; }

.admin-table-wrap { overflow-x: auto; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--line); }
.admin-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.admin-table th {
  text-align: left; padding: 13px 16px; background: #f8f9fc; border-bottom: 2px solid var(--line);
  font-weight: 700; color: var(--ink-soft); font-size: 13px; white-space: nowrap;
}
.admin-table td { padding: 12px 16px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.admin-table tbody tr { transition: background .1s; }
.admin-table tbody tr:hover { background: #fbfcfe; }
.admin-table tbody tr.row-hidden { opacity: .5; background: #fafafa; }
.admin-table .col-name { font-weight: 700; }
.admin-table .col-name .ent-link {
  color: var(--primary, #2f6fd6);
  cursor: pointer;
  transition: color .15s, text-decoration .15s;
}
.admin-table .col-name .ent-link:hover {
  color: #1a4db3;
  text-decoration: underline;
}
.admin-table .col-cat { font-size: 13px; }
.admin-table .col-status { }
.admin-table .col-date { font-size: 12.5px; color: var(--ink-faint); white-space: nowrap; }
.admin-table .col-actions { display: flex; gap: 6px; flex-wrap: nowrap; }
.admin-table .status-badge {
  display: inline-block; padding: 3px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 700;
}
.status-show { background: #e7f5ef; color: #17a08a; }
.status-hide { background: #fef0ef; color: #c94444; }

.admin-empty { text-align: center; padding: 60px 20px; color: var(--ink-faint); }

/* ============ 可复选下拉框（附加分类） ============ */
.multi-select-dropdown { position: relative; }
.multi-select-trigger {
  width: 100%; min-height: 38px; padding: 8px 12px;
  background: #fff; border: 1px solid var(--line); border-radius: 8px;
  display: flex; align-items: center; justify-content: space-between;
  cursor: pointer; font-size: 14px; color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
}
.multi-select-trigger:hover { border-color: #b0c4e0; }
.multi-select-dropdown.open .multi-select-trigger {
  border-color: #2f6fd6; box-shadow: 0 0 0 3px rgba(47,111,214,.12);
}
.multi-select-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.multi-select-arrow { font-size: 11px; color: var(--ink-faint); transition: transform .15s; }
.multi-select-dropdown.open .multi-select-arrow { transform: rotate(180deg); }
.multi-select-panel {
  position: absolute; top: calc(100% + 4px); left: 0; right: 0;
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,.12); z-index: 10;
  display: none; overflow: hidden;
}
.multi-select-dropdown.open .multi-select-panel { display: block; }
.multi-select-search {
  padding: 8px 10px; border-bottom: 1px solid var(--line-soft); background: #fafbfc;
}
.multi-select-search input {
  width: 100%; padding: 7px 10px; border: 1px solid var(--line); border-radius: 6px;
  font-size: 13px; outline: none;
}
.multi-select-search input:focus { border-color: #2f6fd6; }
.multi-select-options {
  max-height: 240px; overflow-y: auto; padding: 6px 0;
}
.multi-select-group { margin-bottom: 4px; }
.multi-select-group-title {
  padding: 6px 12px; font-size: 12px; font-weight: 700;
  color: var(--ink-soft); background: #f8f9fc;
  position: sticky; top: 0; z-index: 1;
}
.multi-select-item {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 12px; font-size: 13px; cursor: pointer;
  transition: background .1s; color: var(--ink);
}
.multi-select-item:hover { background: #f0f4fb; }
.multi-select-item input[type="checkbox"] {
  width: 15px; height: 15px; flex-shrink: 0; cursor: pointer;
}

/* ============ 企业管理 表单弹窗 ============ */
.admin-form-modal { max-width: 780px; }
.admin-form-modal .modal-head { padding: 18px 26px; }
.admin-form-modal .modal-head h2 { font-size: 20px; }
.admin-form-modal .modal-body { padding: 20px 26px 28px; }

/* ============ 分类管理 ============ */
.cat-admin-form-modal { max-width: 520px; }
.cat-admin-form-modal .modal-head { padding: 18px 26px; }
.cat-admin-form-modal .modal-head h2 { font-size: 20px; }
.cat-admin-form-modal .modal-body { padding: 20px 26px 28px; }

.cat-admin-list { display: flex; flex-direction: column; gap: 16px; }
.cat-admin-card {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  border: 1px solid var(--line); overflow: hidden;
}
.cat-admin-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px 18px; border-left: 5px solid #2f6fd6; flex-wrap: wrap;
  background: #fbfcfe;
}
.cat-admin-info { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cat-code {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 28px; height: 28px; padding: 0 8px; border-radius: 6px;
  color: #fff; font-size: 12px; font-weight: 700;
}
.cat-name { font-size: 17px; font-weight: 700; color: var(--ink); }
.cat-count { font-size: 12.5px; color: var(--ink-faint); background: #f1f3f8; padding: 3px 10px; border-radius: 999px; }
.cat-admin-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.sub-list { padding: 8px 18px 16px; }
.sub-item {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 11px 0; border-bottom: 1px solid var(--line-soft);
}
.sub-item:last-child { border-bottom: none; }
.sub-info { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.sub-code { font-size: 13px; color: var(--ink-faint); font-weight: 700; min-width: 38px; }
.sub-name { font-size: 14.5px; color: var(--ink); }
.sub-count { font-size: 12px; color: var(--ink-faint); }
.sub-actions { display: flex; gap: 6px; }
.sub-empty { font-size: 13px; color: var(--ink-faint); padding: 8px 0; }

.color-picker { display: flex; gap: 10px; flex-wrap: wrap; }
.color-dot {
  width: 28px; height: 28px; border-radius: 50%; cursor: pointer;
  border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line);
  transition: transform .12s;
}
.color-dot:hover { transform: scale(1.12); }
.color-dot.active { box-shadow: 0 0 0 2px var(--ink); }

.form-section { margin-bottom: 18px; }
.form-section-title {
  font-size: 13px; font-weight: 700; color: var(--ink-faint); text-transform: uppercase;
  letter-spacing: .5px; margin-bottom: 10px; padding-bottom: 6px; border-bottom: 1px solid var(--line-soft);
}
.form-row { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.form-row:last-child { margin-bottom: 0; }
.form-group { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 180px; }
.form-group.full { flex: 1 1 100%; }
.form-group label { font-size: 13px; font-weight: 700; color: var(--ink-soft); }
.form-group input, .form-group select, .form-group textarea {
  border: 1px solid var(--line); border-radius: 8px; padding: 9px 12px;
  font: inherit; font-size: 14px; color: var(--ink); outline: none;
  transition: border-color .15s; background: #fff;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: #2f6fd6; }
.form-group textarea { resize: vertical; min-height: 60px; font-size: 13.5px; line-height: 1.7; }
.form-group textarea.tall { min-height: 90px; }

/* 核心看点 */
.highlight-item {
  display: flex; gap: 8px; align-items: flex-start; margin-bottom: 8px;
  border: 1px solid var(--line-soft); border-radius: 10px; padding: 10px 12px; background: #fbfcfe;
}
.highlight-item .hl-num { flex: none; width: 26px; padding-top: 9px; font-weight: 800; font-size: 13px; color: var(--ink-faint); }
.highlight-item .hl-fields { display: flex; flex-direction: column; gap: 6px; flex: 1; }
.highlight-item input { width: 100%; padding: 7px 10px; font-size: 13.5px; border: 1px solid var(--line); border-radius: 7px; }
.highlight-item .btn-remove { flex: none; align-self: center; background: none; border: 0; cursor: pointer; font-size: 18px; color: var(--ink-faint); padding: 4px; }
.highlight-item .btn-remove:hover { color: #e45555; }
.no-items-hint { font-size: 13px; color: var(--ink-faint); padding: 10px 0; }

/* 文件上传 */
.file-upload-box {
  border: 2px dashed var(--line); border-radius: 10px; padding: 14px;
  text-align: center; cursor: pointer; transition: .15s; background: #fbfcfe;
}
.file-upload-box:hover { border-color: #2f6fd6; background: #f4f8ff; }
.file-upload-box.has-file { border-style: solid; border-color: #17a08a; }
.file-upload-box input[type="file"] { display: none; }
.file-upload-box .upload-placeholder { color: var(--ink-faint); font-size: 13px; }
.file-upload-box .upload-placeholder strong { color: #2f6fd6; }
.file-preview { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 8px; }
.file-preview .thumb {
  width: 80px; height: 60px; border-radius: 8px; overflow: hidden;
  border: 2px solid var(--line); position: relative; background: #dfe4ee;
}
.file-preview .thumb img { width: 100%; height: 100%; object-fit: cover; }
.file-preview .thumb .rm {
  position: absolute; top: 2px; right: 2px; width: 20px; height: 20px; border-radius: 50%;
  background: rgba(0,0,0,.55); color: #fff; border: 0; cursor: pointer; font-size: 12px;
  display: grid; place-items: center;
}
.file-preview .file-name { font-size: 11px; color: var(--ink-soft); word-break: break-all; margin-top: 2px; }
.video-url-input { flex: 1; }
.video-or { color: var(--ink-faint); font-size: 12px; text-align: center; padding: 4px 0; }

/* 激活开关 */
.form-toggle {
  display: flex; align-items: center; gap: 10px; padding: 12px 0;
}
.form-toggle .toggle-label { font-size: 14px; font-weight: 700; color: var(--ink-soft); }
.toggle-switch {
  position: relative; width: 46px; height: 26px; border-radius: 26px;
  background: #cfd4df; cursor: pointer; transition: background .2s; border: 0; flex: none;
}
.toggle-switch.active { background: #2f6fd6; }
.toggle-switch::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px;
  border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 1px 3px rgba(0,0,0,.15);
}
.toggle-switch.active::after { transform: translateX(20px); }

/* 弹窗底部按钮 */
.modal-footer {
  display: flex; justify-content: flex-end; gap: 10px;
  padding-top: 18px; margin-top: 6px; border-top: 1px solid var(--line-soft);
}

/* ============ 删除确认 ============ */
.confirm-content { padding: 30px 20px; text-align: center; }
.confirm-content .confirm-icon { font-size: 48px; margin-bottom: 12px; }
.confirm-content .confirm-text { font-size: 15px; color: var(--ink-soft); margin-bottom: 4px; }
.confirm-content .confirm-name { font-size: 18px; font-weight: 800; color: var(--ink); }
.confirm-actions { display: flex; justify-content: center; gap: 12px; margin-top: 20px; }

/* 导出 */
.export-bar { display: flex; align-items: center; gap: 10px; margin-top: 20px; justify-content: flex-end; }
.toast {
  position: fixed; bottom: 40px; left: 50%; transform: translateX(-50%);
  background: #1a2233; color: #fff; padding: 10px 24px; border-radius: 999px;
  font-size: 14px; font-weight: 600; z-index: 100; opacity: 0; transition: opacity .3s;
  pointer-events: none;
}
.toast.show { opacity: 1; }

/* 空态 */
.empty-note { color: var(--ink-faint); font-size: 13px; }

.site-foot { text-align: center; color: var(--ink-faint); font-size: 12.5px; padding: 24px 20px 40px; }

/* ---------- 地图图层切换 ---------- */
.map-layer-switch {
  position: absolute; top: 12px; right: 12px; z-index: 200;
  display: flex; gap: 0; background: #fff; border-radius: 8px;
  overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,.18);
}
.mls-btn {
  border: 0; background: #fff; color: var(--ink-soft); font: inherit;
  font-size: 13px; font-weight: 600; padding: 7px 14px; cursor: pointer;
  transition: .15s;
}
.mls-btn:hover { background: #f0f4ff; color: #2f6fd6; }
.mls-btn.active { background: #2f6fd6; color: #fff; }

/* 4色分类图钉过滤开关 */
.map-cat-filter {
  display: flex; align-items: center; gap: 4px 6px;
  background: transparent; padding: 0;
  flex-wrap: wrap; margin-left: auto;
}
.map-cat-filter .mcf-item {
  display: flex; align-items: center; gap: 4px; cursor: pointer;
  padding: 3px 8px; border-radius: 4px; transition: .15s;
  user-select: none; background: rgba(255,255,255,.9);
  box-shadow: 0 1px 4px rgba(0,0,0,.12);
}
.map-cat-filter .mcf-item:hover { background: #fff; }
.map-cat-filter .mcf-item.off { opacity: .45; }
.map-cat-filter .mcf-pin {
  width: 13px; height: 17px; flex: none;
}
.map-cat-filter .mcf-label {
  font-size: 12px; font-weight: 600; color: var(--ink-soft); white-space: nowrap;
}
.map-cat-filter .mcf-item.off .mcf-label { color: var(--ink-faint); }

/* 树形面板折叠 */
.nav-layout.nav-collapsed .nav-sidebar {
  width: 0; min-width: 0; border: 0; margin: 0; padding: 0;
  overflow: hidden; height: 0; max-height: 0;
}
.nav-layout.nav-collapsed { min-height: calc(100vh - 180px); }
.nav-toggle-btn {
  position: absolute; top: 50%; left: 280px; transform: translateY(-50%);
  width: 16px; height: 90px; border-radius: 0 5px 5px 0; background: #fff;
  border: 1px solid var(--line); border-left: 0;
  box-shadow: 2px 1px 6px rgba(0,0,0,.12);
  display: grid; place-items: center; cursor: pointer; z-index: 50;
  font-size: 13px; color: var(--ink-soft);
  transition: left .25s, background .2s, color .2s;
  flex: none; padding: 0;
}
.nav-toggle-btn:hover { background: #f0f4ff; color: #2f6fd6; }
.nav-layout.nav-collapsed .nav-toggle-btn { left: 0; border-radius: 0 5px 5px 0; }
.nav-toggle-btn .ntb-arrow { display: inline-block; transition: transform .25s; }
.nav-layout.nav-collapsed .nav-toggle-btn .ntb-arrow { transform: rotate(180deg); }

/* ---------- 响应式 ---------- */
@media (max-width: 980px) {
  .nav-layout { flex-direction: column; }
  .nav-sidebar { width: 100%; }
  .nav-enterprise-cards { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
  .map-container { height: 450px; flex: none; }
}
@media (max-width: 620px) {
  .nav-enterprise-cards { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
  .map-container { height: 350px; flex: none; }
  .wrap { padding: 16px 14px 50px; }
  .modal-body { padding: 6px 16px 22px; }
  .modal-head { padding: 20px 18px; }
  .toolbar-inner { padding: 8px 14px; }
  .count-note { display: none; }
  .admin-filters { flex-direction: column; align-items: stretch; }
  .admin-filters input, .admin-filters select { min-width: 0; }
}

/* ===================== 研途智伴 三栏布局 ===================== */
.wrap.research-active { height: calc(100vh - 110px); display: flex; flex-direction: column; }
.research-layout { display: flex; flex-direction: column; flex: 1; min-height: 0; }
/* ---- 顶部栏 ---- */
.res-topbar {
  height: 56px; display: flex; align-items: center; gap: 12px;
  padding: 0 18px; background: #fff; border-bottom: 1px solid #e2e8f0;
  flex: none;
}
.res-brand { display: flex; align-items: center; gap: 10px; }
.res-brand-badge {
  width: 40px; height: 40px; border-radius: 8px; flex: none;
  box-shadow: 0 2px 6px rgba(0,0,0,.28); overflow: hidden;
}
.res-brand-badge img, .res-brand-badge svg { width: 40px; height: 40px; display: block; }
.res-brand-name { font-size: 18px; font-weight: 700; color: #0f766e; line-height: 1.2; }
.res-brand-sub { font-size: 11px; color: #64748b; margin-top: 1px; }
.res-topbar-spacer { flex: 1; }
.res-template-select {
  padding: 5px 10px; height: 30px; border: 1px solid #d1d5db; border-radius: 7px;
  background: #fff; color: #334155; font-size: 12px; font-weight: 600; cursor: pointer;
  outline: none; transition: border-color .15s; margin-right: 8px;
}
.res-template-select:focus { border-color: #17a08a; }
.res-template-select option { font-size: 12px; }
.res-template-gear {
  margin-left: -4px; width: 30px; height: 30px; border-radius: 7px;
  border: 1px solid #d1d5db; background: #fff; display: grid; place-items: center;
  cursor: pointer; color: #64748b; transition: .15s; margin-right: 8px;
}
.res-template-gear:hover { background: #f8fafc; color: #17a08a; border-color: #17a08a; }
.res-template-gear svg { width: 14px; height: 14px; }

/* ---- 模板编辑模态框 ---- */
.tmpl-edit-overlay {
  position: fixed; inset: 0; z-index: 9999; background: rgba(0,0,0,.45);
  display: flex; align-items: center; justify-content: center; animation: tmplFadeIn .2s;
}
@keyframes tmplFadeIn { from { opacity: 0; } to { opacity: 1; } }
.tmpl-edit-modal {
  background: #fff; border-radius: 14px; width: 780px; max-height: 86vh;
  display: flex; flex-direction: column; box-shadow: 0 12px 48px rgba(0,0,0,.25);
  animation: tmplSlideIn .22s;
}
@keyframes tmplSlideIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
.tmpl-edit-hd {
  display: flex; align-items: center; gap: 12px; padding: 16px 20px;
  border-bottom: 1px solid #e2e8f0; flex: none;
}
.tmpl-edit-hd h3 { margin: 0; font-size: 16px; font-weight: 700; color: #1e293b; }
.tmpl-edit-hd .tmpl-edit-hd-spacer { flex: 1; }
.tmpl-edit-hd .tmpl-edit-close {
  width: 30px; height: 30px; border-radius: 7px; border: 1px solid #e2e8f0;
  background: #fff; cursor: pointer; color: #64748b; display: grid; place-items: center;
  font-size: 16px; transition: .12s;
}
.tmpl-edit-hd .tmpl-edit-close:hover { background: #fee2e2; color: #dc2626; border-color: #fecaca; }
.tmpl-edit-body {
  flex: 1; overflow-y: auto; padding: 16px 20px; display: flex; flex-direction: column; gap: 12px;
}
.tmpl-edit-sections {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
}
.tmpl-edit-section {
  border: 1px solid #e2e8f0; border-radius: 8px; overflow: hidden;
}
.tmpl-edit-section-hd {
  display: flex; align-items: center; gap: 6px; padding: 8px 12px;
  background: #f8fafc; cursor: pointer; user-select: none; font-size: 13px; font-weight: 600;
  color: #334155; transition: .12s;
}
.tmpl-edit-section-hd:hover { background: #f1f5f9; }
.tmpl-edit-section-hd .tes-arrow { font-size: 10px; color: #94a3b8; transition: transform .2s; }
.tmpl-edit-section.open .tes-arrow { transform: rotate(90deg); }
.tmpl-edit-section-body { display: none; padding: 8px 12px 12px; flex-direction: column; gap: 6px; }
.tmpl-edit-section.open .tmpl-edit-section-body { display: flex; }
.tmpl-edit-field { display: flex; flex-direction: column; gap: 2px; }
.tmpl-edit-field label { font-size: 11px; color: #64748b; font-weight: 600; }
.tmpl-edit-field input, .tmpl-edit-field textarea, .tmpl-edit-field select {
  padding: 5px 8px; border: 1px solid #d1d5db; border-radius: 5px; font-size: 12px;
  color: #334155; outline: none; font-family: inherit; transition: border-color .12s;
}
.tmpl-edit-field input:focus, .tmpl-edit-field textarea:focus, .tmpl-edit-field select:focus {
  border-color: #17a08a; box-shadow: 0 0 0 2px rgba(23,160,138,.1);
}
.tmpl-edit-field textarea { min-height: 80px; resize: vertical; font-family: "Consolas","Courier New",monospace; font-size: 11px; line-height: 1.5; }
.tmpl-edit-field textarea.json-tight { min-height: 60px; }
.tmpl-edit-field textarea.json-wide { grid-column: 1 / -1; min-height: 140px; }
.tmpl-edit-field .tmpl-field-hint { font-size: 10px; color: #94a3b8; }
.tmpl-edit-full-grid { grid-column: 1 / -1; }
.tmpl-edit-json-editor {
  display: flex; flex-direction: column; gap: 4px;
}
.tmpl-edit-json-editor textarea {
  font-family: "Consolas","Courier New",monospace; font-size: 11px; line-height: 1.55;
  min-height: 180px; resize: vertical; padding: 8px 10px;
  border: 1px solid #d1d5db; border-radius: 6px; color: #1e293b; outline: none;
  background: #fafbfc; tab-size: 2;
}
.tmpl-edit-json-editor textarea:focus { border-color: #17a08a; box-shadow: 0 0 0 2px rgba(23,160,138,.1); background: #fff; }
.tmpl-edit-ft {
  display: flex; align-items: center; gap: 10px; padding: 12px 20px;
  border-top: 1px solid #e2e8f0; flex: none;
}
.tmpl-edit-ft .tmpl-edit-msg { font-size: 12px; flex: 1; }
.tmpl-edit-ft .tmpl-edit-msg.ok { color: #17a08a; }
.tmpl-edit-ft .tmpl-edit-msg.err { color: #dc2626; }
.tmpl-edit-btn {
  padding: 7px 16px; border-radius: 7px; font-size: 13px; font-weight: 600;
  cursor: pointer; border: none; transition: .15s;
}
.tmpl-edit-btn-ghost { background: #f1f5f9; color: #475569; }
.tmpl-edit-btn-ghost:hover { background: #e2e8f0; }
.tmpl-edit-btn-primary { background: #17a08a; color: #fff; }
.tmpl-edit-btn-primary:hover { background: #149179; }
.tmpl-edit-btn-warn { background: #fef3c7; color: #92400e; }
.tmpl-edit-btn-warn:hover { background: #fde68a; }

/* ---- 主体三栏 ---- */
.research-body { display: flex; flex: 1; min-height: 0; }

/* ---- 左栏 ---- */
.rv-left {
  width: 240px; min-width: 240px; border-right: 1px solid #e2e8f0;
  background: #f8fafc; display: flex; flex-direction: column;
}
.rvl-new-btn {
  display: block; margin: 12px; height: 38px; border-radius: 9px;
  background: #17a08a; color: #fff; border: none; font-size: 13px; font-weight: 600;
  cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 6px;
  box-shadow: 0 2px 6px rgba(23,160,138,.3); transition: .15s;
}
.rvl-new-btn:hover { background: #149179; }
.rvl-history { flex: 1; overflow-y: auto; }
.rvlh-hd { padding: 8px 16px; font-size: 11px; color: #94a3b8; font-weight: 600; letter-spacing: .5px; }
.rvlh-list { display: flex; flex-direction: column; }
.rvh-item {
  display: flex; align-items: center; gap: 7px; padding: 8px 14px;
  cursor: pointer; font-size: 13px; color: #475569; transition: .12s;
  border-left: 3px solid transparent; line-height: 1.4;
}
.rvh-item:hover { background: #eef2f7; }
.rvh-item.active {
  background: #e6f7f4; border-left-color: #17a08a; color: #0f766e; font-weight: 600;
}
.rvh-item .rvh-title { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rvh-item .rvh-time { font-size: 10px; color: #94a3b8; margin-top: 2px; }
.rvh-item .rvh-del { font-size: 15px; color: #ccc; flex: none; cursor: pointer; padding: 0 3px; visibility: hidden; }
.rvh-item:hover .rvh-del { visibility: visible; }
.rvh-item .rvh-del:hover { color: #e74c3c; }
.rvh-empty { font-size: 12px; color: #94a3b8; text-align: center; padding: 20px 0; }
.rvl-eco {
  margin: 10px 12px 12px; padding: 8px 10px; border-radius: 8px;
  background: #fff; border: 1px solid #e2e8f0; cursor: pointer;
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; color: #0f766e; transition: .15s;
}
.rvl-eco:hover { background: #f0fdfa; }
.rvle-icon { width: 18px; height: 18px; flex: none; }

/* ---- 中栏 ---- */
.rv-mid {
  flex: 1; display: flex; flex-direction: column; background: #fff;
  border-left: 1px solid #e2e8f0; border-right: 1px solid #e2e8f0; min-width: 0;
}
.rvm-header {
  height: 48px; display: flex; align-items: center; gap: 8px;
  padding: 0 16px; border-bottom: 1px solid #e2e8f0; background: #fff; flex: none;
}
.rvmh-title { font-size: 14px; font-weight: 600; color: #1e293b; }
.rvmh-actions { margin-left: auto; display: flex; gap: 4px; }
.rvmha-btn {
  font-size: 12px; color: #64748b; cursor: pointer; padding: 4px 8px;
  border-radius: 6px; border: none; background: transparent; transition: .12s;
}
.rvmha-btn:hover { background: #f1f5f9; }
.rvm-msgs {
  flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column;
  gap: 14px; background: #fafbfc;
}
.rv-empty { text-align: center; padding: 60px 20px; color: #888; }
.rve-moon {
  width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 14px;
  box-shadow: 0 4px 16px rgba(15,23,42,.25); overflow: hidden;
}
.rve-moon img, .rve-moon svg { width: 64px; height: 64px; display: block; }
.rve-moon-large { width: 80px; height: 80px; }
.rve-moon-large img, .rve-moon-large svg { width: 80px; height: 80px; }
.rve-sub { font-size: 13px; color: #aaa; margin: 4px 0 0; }
.rve-hint { font-size: 13px; color: #bbb; margin-top: 12px; line-height: 1.7; }
/* 消息 */
.rv-msg { display: flex; animation: rvFadeIn .25s; max-width: 88%; }
@keyframes rvFadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
.rv-msg-user { justify-content: flex-end; align-self: flex-end; flex-direction: row-reverse; }
.rv-msg-bot { justify-content: flex-start; align-self: flex-start; gap: 8px; }
.rvmu-inner {
  max-width: 100%; background: #17a08a; color: #fff; padding: 10px 14px;
  border-radius: 10px 10px 3px 10px; font-size: 13px; line-height: 1.7;
  word-break: break-word;
}
.rv-msg-bot .rvmb-avatar {
  width: 30px; height: 30px; border-radius: 6px; flex: none; margin-top: 2px;
  overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,.2);
}
.rv-msg-bot .rvmb-avatar img, .rv-msg-bot .rvmb-avatar svg { width: 30px; height: 30px; display: block; }
.rvmb-body { max-width: 100%; min-width: 0; }
.rvmb-content {
  background: #fff; border: 1px solid #e2e8f0; border-radius: 3px 10px 10px 10px;
  padding: 10px 14px; font-size: 13px; line-height: 1.7; color: #444; word-break: break-word;
  max-height: 480px;
  overflow-y: auto;
}
.rvmb-content::-webkit-scrollbar { width: 6px; }
.rvmb-content::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }
.rvmb-content::-webkit-scrollbar-track { background: transparent; }
.rvmb-content strong { color: #0f766e; }
.rvmb-content table { width: 100%; border-collapse: collapse; margin: 8px 0; font-size: 12px; }
.rvmb-content th { background: #f1f5f9; padding: 6px 8px; text-align: left; font-weight: 600; color: #475569; border: 1px solid #e2e8f0; }
.rvmb-content td { padding: 6px 8px; border: 1px solid #e2e8f0; }
.rvmb-content tr:nth-child(even) td { background: #fafbfc; }
/* Word 导出按钮 */
.rv-export-wrap {
  display: flex; align-items: center; gap: 8px; margin-top: 10px; padding: 6px 0;
  border-top: 1px dashed #e2e8f0; flex-wrap: wrap;
}
.rv-export-btn {
  display: inline-flex; align-items: center; gap: 5px; padding: 6px 14px;
  border: 1px solid #2563eb; border-radius: 6px; background: #2563eb; color: #fff;
  font-size: 13px; cursor: pointer; white-space: nowrap; transition: opacity .2s;
}
.rv-export-btn:hover { opacity: 0.85; }
.rv-export-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.rv-export-status {
  font-size: 12px; color: #64748b; white-space: nowrap;
}
.rv-export-status a { color: #2563eb; text-decoration: underline; }
.rv-export-hint {
  font-size: 12px; color: #94a3b8; white-space: nowrap;
}
.tool-tag {
  display: inline-flex; align-items: center; gap: 4px; font-size: 11px; color: #64748b;
  background: #f1f5f9; padding: 2px 8px; border-radius: 4px; margin: 2px 0;
}
/* 输入栏 */
.rvm-input-bar {
  display: flex; align-items: flex-end; gap: 8px; padding: 12px 14px;
  border-top: 1px solid #e2e8f0; background: #fff; flex: none;
}
.rvmi-voice {
  width: 38px; height: 38px; border-radius: 9px; border: 1px solid #e2e8f0;
  background: #fff; cursor: pointer; display: grid; place-items: center;
  color: #17a08a; transition: .15s; flex: none;
}
.rvmi-voice:hover { background: #f0fdfa; }
.rvmi-voice.active { background: #17a08a; color: #fff; border-color: #17a08a; animation: rvPulse 1.2s infinite; }
.rvmi-voice .rv-voice-count {
  font-size: 13px; font-weight: 700; color: #fff; min-width: 20px; text-align: center;
}
@keyframes rvPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(23,160,138,.4); }
  50% { box-shadow: 0 0 0 6px rgba(23,160,138,0); }
}
.rv-thinking { margin: 4px 0; font-size: 12px; color: #94a3b8; }
.rv-thinking summary { cursor: pointer; font-weight: 600; color: #64748b; }
.rv-thinking summary:hover { color: #475569; }
.rv-thinking-body { padding: 6px 10px; margin-top: 4px; background: #f8fafc; border-radius: 6px; border-left: 3px solid #e2e8f0; line-height: 1.5; height: 120px; max-height: 120px; overflow-y: auto; }
.rv-status { display: flex; align-items: center; gap: 8px; padding: 6px 0; font-size: 13px; color: #64748b; }
.rv-status-dot { width: 8px; height: 8px; border-radius: 50%; background: #17a08a; flex: none; animation: rvStatusPulse 1.2s ease-in-out infinite; }
@keyframes rvStatusPulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.7); } }
.rvmi-model {
  height: 38px; padding: 0 26px 0 10px; border-radius: 9px; border: 1px solid #e2e8f0;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%2364748b' d='M0 1.5L5 6l5-4.5L9 0 5 4 1 0z'/%3E%3C/svg%3E") no-repeat right 9px center;
  color: #334155; font-size: 12px; font-weight: 600; cursor: pointer; outline: none;
  appearance: none; -webkit-appearance: none; flex: none;
  text-align: center; text-align-last: center; line-height: 38px;
}
.rvmi-model:hover { border-color: #cbd5e1; }
.rvmi-model:focus { border-color: #17a08a; box-shadow: 0 0 0 3px rgba(23,160,138,.12); }
.rvmi-input {
  flex: 1; border: 1px solid #e2e8f0; border-radius: 9px; padding: 10px 12px;
  font-size: 13px; outline: none; min-height: 58px; font-family: inherit; resize: none;
  line-height: 1.55;
}
.rvmi-input:focus { border-color: #17a08a; box-shadow: 0 0 0 3px rgba(23,160,138,.12); }
.rvmi-send {
  height: 38px; padding: 0 16px; border-radius: 9px; background: #17a08a;
  color: #fff; border: none; font-size: 13px; font-weight: 600; cursor: pointer;
  transition: .15s; flex: none;
}
.rvmi-send:hover { background: #149179; }
.rvmi-send:disabled { background: #b0cfc7; cursor: not-allowed; }

/* ---- 右栏 ---- */
.rv-right {
  width: 520px; min-width: 520px; border-left: 1px solid #e2e8f0;
  position: relative; background: #e8eef5; display: flex; flex-direction: column; overflow: hidden;
}
.rvr-map { flex: 1; position: relative; }
.rvr-map-overlay { position: absolute; right: 12px; bottom: 12px; z-index: 5; display: flex; flex-direction: column; gap: 4px; }
.rvr-zoom-btn {
  width: 30px; height: 30px; border-radius: 6px; background: #fff; border: 1px solid #cbd5e1;
  display: grid; place-items: center; cursor: pointer; font-size: 16px; color: #475569;
  box-shadow: 0 1px 3px rgba(0,0,0,.15);
}
.rvr-copyright { position: absolute; left: 8px; bottom: 6px; font-size: 10px; color: #94a3b8; }
