/* ============================================================
 * TreasureFleet 宝船 — 深海夜航主题
 * 藏蓝海面 + 鎏金信标，呼应“点亮航路”的导航隐喻
 * ============================================================ */
:root {
  --ink: #0a1422;
  --ink2: #0d1a2e;
  --panel: rgba(18, 35, 59, .72);
  --panel-solid: #12233b;
  --line: rgba(148, 180, 220, .14);
  --gold: #e8b23a;
  --gold2: #f6d27c;
  --dim: #4a6584;
  --text: #e9eef6;
  --muted: #9db2cc;
  --serif: 'Noto Serif SC', 'Songti SC', 'STSong', 'SimSun', Georgia, serif;
  --sans: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 78% -10%, rgba(232, 178, 58, .07), transparent 60%),
    radial-gradient(900px 500px at 10% 15%, rgba(51, 96, 148, .18), transparent 55%),
    linear-gradient(180deg, #0b1524 0%, var(--ink) 45%, #081018 100%);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

/* ---------- 顶栏 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  display: flex; align-items: center; gap: 28px;
  padding: 14px 32px;
  background: rgba(10, 20, 34, .82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; margin-inline-end: auto; }
.brand svg { display: block; }
.brand-name { font-family: var(--serif); font-size: 20px; font-weight: 900; letter-spacing: 1px; color: var(--gold2); }
.brand-name small { font-family: var(--sans); font-size: 11px; font-weight: 500; color: var(--muted); letter-spacing: 2px; display: block; margin-top: 1px; }
.main-nav { display: flex; gap: 22px; }
.main-nav a { color: var(--muted); font-size: 14px; padding: 6px 2px; border-bottom: 2px solid transparent; transition: .2s; }
.main-nav a:hover { color: var(--text); border-color: var(--gold); }

.lang-switch { position: relative; }
.lang-btn {
  display: flex; align-items: center; gap: 8px;
  background: transparent; border: 1px solid var(--line); color: var(--muted);
  padding: 7px 14px; border-radius: 999px; font-size: 13px; cursor: pointer; transition: .2s;
}
.lang-btn:hover { color: var(--text); border-color: var(--gold); }
.lang-menu {
  position: absolute; top: calc(100% + 8px); inset-inline-end: 0; min-width: 130px;
  background: var(--panel-solid); border: 1px solid var(--line); border-radius: 12px;
  padding: 6px; display: none; box-shadow: 0 12px 32px rgba(0,0,0,.5);
}
.lang-menu.on { display: block; }
.lang-menu button {
  display: block; width: 100%; text-align: start; background: none; border: 0;
  color: var(--muted); font-size: 13px; padding: 9px 12px; border-radius: 8px; cursor: pointer;
}
.lang-menu button:hover { background: rgba(232,178,58,.1); color: var(--gold2); }

/* ---------- Hero（紧凑：保证首屏完整呈现地图） ---------- */
.hero { text-align: center; padding: 26px 20px 8px; position: relative; overflow: hidden; }
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(600px 220px at 50% 20%, rgba(232,178,58,.10), transparent 70%);
  pointer-events: none;
}
.hero-kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; letter-spacing: 2.5px; color: var(--gold);
  border: 1px solid rgba(232,178,58,.35); border-radius: 999px;
  padding: 5px 15px; margin-bottom: 12px; background: rgba(232,178,58,.06);
}
.hero h1 {
  font-family: var(--serif); font-weight: 900; font-size: clamp(24px, 3.2vw, 38px);
  line-height: 1.3; letter-spacing: 1.5px;
  background: linear-gradient(120deg, #f8e3ae 10%, var(--gold) 45%, #c98f22 90%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-cta { display: flex; gap: 14px; justify-content: center; margin-top: 13px; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 10px 26px; border-radius: 999px; font-size: 13.5px;
  cursor: pointer; border: 1px solid transparent; transition: .25s; letter-spacing: .5px;
}
.btn-gold { background: linear-gradient(120deg, var(--gold2), var(--gold)); color: #211a05; font-weight: 700; }
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(232,178,58,.35); }
.btn-ghost { border-color: var(--line); color: var(--text); background: rgba(255,255,255,.03); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold2); }

/* ---------- 地图区（首屏主体：视口高度布局，地图自动占满剩余空间） ---------- */
#view-home { display: flex; flex-direction: column; min-height: calc(100vh - 64px); }
#view-home[hidden] { display: none; } /* 路由隐藏时必须覆盖上面的 flex 显示 */
.hero { flex: none; }
.map-section { flex: 1; display: flex; flex-direction: column; max-width: 1560px; margin: 0 auto; padding: 4px 16px 36px; width: 100%; }
.map-wrap { position: relative; flex: 1; min-height: 300px; display: flex; }
.map-frame { flex: 1; }
.tf-map-svg { display: block; width: 100%; height: 100%; }

/* 地图上方三栏信息条：左-航图说明 / 中-网站说明 / 右-关键指标 */
.map-bar {
  display: grid; grid-template-columns: minmax(200px, auto) 1fr auto;
  gap: 24px; align-items: center; padding: 2px 4px 12px;
}
.mb-left h2 { font-family: var(--serif); font-size: 19px; letter-spacing: 3px; color: var(--gold2); }
.mb-left h2::after { content: ''; display: block; width: 38px; height: 2.5px; margin-top: 5px; background: linear-gradient(90deg, var(--gold), transparent); }
.mb-left p { margin-top: 6px; color: var(--muted); font-size: 11.5px; letter-spacing: .5px; }
.mb-center { text-align: center; }
.mb-center p { color: var(--muted); font-size: 12.5px; line-height: 1.65; max-width: 620px; margin: 0 auto; }
.map-stats {
  display: flex; gap: 26px;
  background: rgba(10, 20, 34, .8); border: 1px solid rgba(232,178,58,.35); border-radius: 14px;
  padding: 10px 20px; backdrop-filter: blur(8px);
  box-shadow: 0 10px 26px rgba(0,0,0,.4);
}
.ms-item { text-align: center; }
.ms-item b { display: block; font-family: var(--serif); font-size: 20px; font-weight: 900; color: var(--gold2); line-height: 1.15; }
.ms-item span { font-size: 10.5px; color: var(--muted); letter-spacing: 1px; }
.map-frame {
  border: 1px solid var(--line); border-radius: 20px; overflow: hidden;
  background:
    radial-gradient(900px 380px at 50% 0%, rgba(58, 104, 156, .1), transparent 70%),
    linear-gradient(180deg, rgba(10, 20, 36, .62), rgba(5, 10, 20, .92));
  box-shadow: 0 24px 60px rgba(0,0,0,.45), inset 0 0 80px rgba(0,0,0,.35);
}
.map-legend {
  position: absolute; bottom: 14px; inset-inline-start: 16px; z-index: 5;
  display: flex; flex-direction: column; gap: 7px;
  background: rgba(10, 20, 34, .78); border: 1px solid var(--line); border-radius: 12px;
  padding: 10px 14px; font-size: 12px; color: var(--muted); backdrop-filter: blur(6px);
}
.map-legend i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-inline-end: 8px; vertical-align: -1px; }
.map-legend .lg-lit i { background: var(--gold); box-shadow: 0 0 8px var(--gold); }
.map-legend .lg-dim i { border: 1.5px solid var(--dim); }
.map-legend .lg-sea i { width: 22px; height: 2px; border-radius: 0; background: repeating-linear-gradient(90deg, var(--gold2) 0 5px, transparent 5px 9px); box-shadow: 0 0 4px rgba(246,210,124,.6); }
.map-legend .lg-land i { width: 22px; height: 2px; border-radius: 0; background: repeating-linear-gradient(90deg, #e07b4f 0 5px, transparent 5px 9px); box-shadow: 0 0 4px rgba(224,123,79,.6); }
.map-error { color: #ff9d9d; padding: 40px; text-align: center; }

/* --- SVG 地图 --- */
.tf-map-svg { display: block; width: 100%; height: auto; }
.tf-map-svg .grat { fill: none; stroke: rgba(120, 150, 190, .12); stroke-width: .6; }
.tf-map-svg .sphere { fill: rgba(28, 52, 84, .28); stroke: rgba(148, 180, 220, .2); stroke-width: .8; }
.tf-map-svg .ocean { fill: rgba(30, 56, 92, .38); }
.tf-map-svg .bgc { fill: #2d4367; stroke: rgba(168, 192, 222, .48); stroke-width: .9; }
.tf-map-svg .bgc.home { fill: #3a6090; }
.tf-map-svg .mc { stroke: rgba(10, 20, 34, .95); stroke-width: .7; transition: fill .3s, filter .3s; }
.tf-map-svg .mc.lit { filter: drop-shadow(0 0 5px rgba(232,178,58,.55)); }
.tf-map-svg .mc.dim { fill: #47699a; stroke: rgba(190, 210, 232, .5); stroke-width: .8; }
.tf-map-svg .mc:hover, .tf-map-svg .mc.rhi { fill: #f2c65e; filter: drop-shadow(0 0 8px rgba(246,210,124,.85)); cursor: pointer; }
.tf-map-svg .mk .hit { fill: transparent; cursor: pointer; }
.tf-map-svg .mk.lit .core { fill: #fff4d6; }
.tf-map-svg .mk.lit .halo { fill: none; stroke: var(--gold2); stroke-width: 1.4; opacity: .9; animation: pulse 2.6s ease-out infinite; transform-box: fill-box; transform-origin: center; }
.tf-map-svg .mk.dim .ring { fill: none; stroke: rgba(157, 178, 204, .55); stroke-width: 1.2; }
@keyframes pulse {
  0% { transform: scale(.45); opacity: .95; }
  70% { transform: scale(1.8); opacity: 0; }
  100% { transform: scale(1.8); opacity: 0; }
}
.tf-map-svg .route { fill: none; stroke: rgba(232,178,58,.5); stroke-width: 1.5; stroke-dasharray: 1 6; stroke-linecap: round; }
.tf-map-svg .route.land { stroke: rgba(224,123,79,.6); stroke-dasharray: 6 4; }
/* 航路上的动态元素为船/车图标（.mover），不再使用流动虚线 */
/* 流动的船队 / 车队（放大图标 + 增强光晕） */
.tf-map-svg .mover { filter: drop-shadow(0 0 5px rgba(246,210,124,.95)) drop-shadow(0 1px 3px rgba(0,0,0,.6)); }
.tf-map-svg .mover.ship path { fill: #f6d27c; stroke: #1a1206; stroke-width: .5; }
.tf-map-svg .mover.vehicle path { fill: #ffcf9e; stroke: #1a1206; stroke-width: .5; }
.tf-map-svg .mover.vehicle circle { fill: #2b1d0d; stroke: #f6d27c; stroke-width: .5; }
.tf-map-svg .homeport .core { fill: #ffdf8e; }
.tf-map-svg .homeport .halo { fill: none; stroke: #ffe6a3; stroke-width: 1.4; animation: pulse 3.2s ease-out infinite; transform-box: fill-box; transform-origin: center; }
.tf-map-svg .hometxt { fill: #d8c08a; font-size: 11px; letter-spacing: 1px; }
.tf-map-svg .rlabel { cursor: pointer; }
.tf-map-svg .rlabel rect { fill: rgba(13, 26, 46, .88); stroke: rgba(232,178,58,.45); stroke-width: 1; }
.tf-map-svg .rlabel:hover rect, .tf-map-svg .rlabel.active rect { fill: rgba(46, 38, 16, .92); stroke: var(--gold); }
.tf-map-svg .rl-txt { fill: var(--gold2); font-size: 12.5px; font-weight: 700; letter-spacing: 1px; text-anchor: middle; }
.tf-map-svg .rl-count { fill: #b9a06a; font-size: 11px; }

/* ---------- 区域条 ---------- */
.strip { margin-top: 22px; }
.strip-title { text-align: center; font-family: var(--serif); font-size: 21px; letter-spacing: 2px; }
.strip-sub { text-align: center; color: var(--muted); font-size: 13px; margin: 8px 0 22px; }
.region-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(185px, 1fr)); gap: 14px; }
.rcard {
  position: relative; display: flex; flex-direction: column; gap: 6px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 16px;
  padding: 18px 18px 16px; transition: .25s; overflow: hidden;
}
.rcard::after { content: ''; position: absolute; inset: 0; background: radial-gradient(140px 60px at 20% 0%, rgba(232,178,58,.1), transparent 70%); opacity: 0; transition: .25s; }
.rcard:hover { transform: translateY(-3px); border-color: rgba(232,178,58,.5); box-shadow: 0 14px 34px rgba(0,0,0,.4); }
.rcard:hover::after { opacity: 1; }
.rcard-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--rc, var(--gold)); box-shadow: 0 0 10px var(--rc, var(--gold)); }
.rcard-dot.big { width: 16px; height: 16px; }
.rcard-name { font-family: var(--serif); font-size: 17px; font-weight: 700; line-height: 1.25; }
.rcard-meta { color: var(--muted); font-size: 12.5px; }
.rcard-meta b { color: var(--gold2); }
.rcard-go { position: absolute; top: 16px; inset-inline-end: 16px; color: var(--gold); opacity: 0; transform: translateX(-6px); transition: .25s; }
.rcard:hover .rcard-go { opacity: 1; transform: none; }

/* ---------- 区域页（三栏头部：左-返回+区域名 / 中-区域说明 / 右-关键指标） ---------- */
#view-region { max-width: 1200px; margin: 0 auto; padding: 26px 24px 80px; }
.region-hero {
  display: grid; grid-template-columns: auto 1fr auto;
  gap: 22px; align-items: center; margin-bottom: 14px;
}
.rh-left { display: flex; align-items: center; gap: 18px; }
.back-btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 10px 20px; border-radius: 999px;
  border: 1px solid rgba(232,178,58,.55); color: var(--gold2);
  background: rgba(232,178,58,.1); font-size: 13px; font-weight: 700; letter-spacing: 1px;
  transition: .22s; white-space: nowrap;
}
.back-btn svg { flex: none; }
.back-btn:hover {
  background: linear-gradient(120deg, var(--gold2), var(--gold));
  color: #211a05; transform: translateX(-2px);
  box-shadow: 0 8px 22px rgba(232,178,58,.35);
}
.rh-title { display: flex; align-items: center; gap: 12px; }
.rh-title h2 { font-family: var(--serif); font-size: 27px; letter-spacing: 2px; }
.rh-desc { text-align: center; }
.rh-desc p { color: var(--muted); font-size: 12.5px; line-height: 1.65; max-width: 520px; margin: 0 auto; }
.rh-stats { display: flex; gap: 26px; }
.rh-stats b { font-family: var(--serif); font-size: 22px; color: var(--gold2); display: block; }
.rh-stats span { font-size: 11px; color: var(--muted); letter-spacing: 1.5px; }
.region-map { border: 1px solid var(--line); border-radius: 18px; overflow: hidden; margin-bottom: 34px;
  background: linear-gradient(180deg, rgba(16,32,54,.5), rgba(9,18,31,.8)); }

.group-title { font-family: var(--serif); font-size: 18px; color: var(--gold2); letter-spacing: 2px; margin: 34px 0 14px; }
.ccard-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }

.ccard {
  position: relative; display: grid; grid-template-columns: auto 1fr; gap: 4px 12px;
  align-items: center;
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px;
  padding: 15px 16px; cursor: pointer; transition: .22s;
}
.ccard:hover { transform: translateY(-2px); border-color: rgba(232,178,58,.55); box-shadow: 0 12px 26px rgba(0,0,0,.35); }
.ccard.lit { grid-template-columns: auto 1fr auto; }
.ccard .beacon-dot { grid-row: span 2; }
.beacon-dot { width: 12px; height: 12px; border-radius: 50%; flex: none; }
.beacon-dot.lit { background: var(--gold); box-shadow: 0 0 10px var(--gold), 0 0 22px rgba(232,178,58,.4); animation: blink 3s ease-in-out infinite; }
.beacon-dot.dim { background: transparent; border: 1.5px solid var(--dim); }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }
.ccard-names h3 { font-size: 15.5px; font-weight: 700; }
.ccard-names p { color: var(--muted); font-size: 12px; margin-top: 2px; }
.ccard-meta { grid-column: 2 / -1; display: flex; gap: 10px; flex-wrap: wrap; }
.ccard.lit .ccard-meta { grid-column: 2 / 3; }
.cm-mini { font-size: 11.5px; color: #c7b58a; background: rgba(232,178,58,.09); border-radius: 6px; padding: 2.5px 8px; }
.cm-mini.dim { color: var(--muted); background: rgba(148,180,220,.08); }
.ccard-go { grid-row: span 2; align-self: center; color: var(--gold2); font-size: 12.5px; white-space: nowrap; }

/* ---------- 悬停浮窗 ---------- */
#tooltip {
  position: fixed; z-index: 90; max-width: 262px; pointer-events: none;
  background: rgba(13, 26, 46, .96); border: 1px solid rgba(232,178,58,.4); border-radius: 14px;
  padding: 13px 15px; box-shadow: 0 18px 44px rgba(0,0,0,.55);
  opacity: 0; transform: translateY(4px); transition: opacity .16s, transform .16s;
}
#tooltip.on { opacity: 1; transform: none; }
.tt-names b { font-size: 15px; display: block; }
.tt-names span { color: var(--muted); font-size: 11px; display: block; margin-top: 2px; }
.tt-status { display: inline-block; font-size: 11px; border-radius: 6px; padding: 2.5px 8px; margin-top: 8px; }
.tt-status.lit { color: #ffd977; background: rgba(232,178,58,.14); border: 1px solid rgba(232,178,58,.4); }
.tt-status.dim { color: var(--muted); background: rgba(148,180,220,.1); border: 1px solid var(--line); }
.tt-stats { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; margin: 10px 0 0; }
.tt-stats div { min-width: 0; }
.tt-stats dt { font-size: 10.5px; color: var(--muted); }
.tt-stats dd { font-size: 13.5px; color: var(--gold2); font-weight: 700; margin-top: 2px; }
.tt-langs { margin-top: 9px; color: #b9c9de; font-size: 11.5px; }
.tt-topics { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 9px; }
.tt-topics span { font-size: 11px; color: #c7b58a; border: 1px solid rgba(232,178,58,.3); border-radius: 6px; padding: 2px 7px; }
.tt-cta { margin-top: 10px; color: var(--gold); font-size: 11.5px; letter-spacing: .5px; }

/* ---------- 弹窗 ---------- */
#modal-root { position: fixed; inset: 0; z-index: 100; display: none; }
#modal-root.on { display: block; }
.modal-backdrop {
  position: absolute; inset: 0; background: rgba(5, 10, 18, .72);
  backdrop-filter: blur(5px); display: flex; align-items: center; justify-content: center; padding: 20px;
}
.modal-card {
  position: relative; width: min(600px, 94vw); max-height: 88vh; overflow: auto;
  background: linear-gradient(180deg, #14243c, #0e1b2f);
  border: 1px solid rgba(232,178,58,.35); border-radius: 20px;
  padding: 30px 32px; box-shadow: 0 30px 80px rgba(0,0,0,.6);
  animation: rise .25s ease;
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.modal-x {
  position: absolute; top: 14px; inset-inline-end: 16px; width: 32px; height: 32px;
  border-radius: 50%; border: 1px solid var(--line); background: none; color: var(--muted);
  font-size: 18px; cursor: pointer; line-height: 1;
}
.modal-x:hover { color: var(--gold2); border-color: var(--gold); }

.cm-head { display: flex; align-items: center; gap: 14px; padding-inline-end: 36px; flex-wrap: wrap; }
.cm-head .beacon-dot { width: 15px; height: 15px; }
.cm-head h3 { font-family: var(--serif); font-size: 23px; }
.cm-head p { color: var(--muted); font-size: 12.5px; margin-top: 3px; }
.chip { margin-inline-start: auto; font-size: 11.5px; border-radius: 999px; padding: 4px 11px; white-space: nowrap; }
.chip-lit { color: #ffd977; background: rgba(232,178,58,.14); border: 1px solid rgba(232,178,58,.45); }
.chip-dim { color: var(--muted); background: rgba(148,180,220,.1); border: 1px solid var(--line); }
.cm-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 22px 0 6px; }
.cm-stats > div { background: rgba(255,255,255,.03); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; min-width: 0; }
.cm-stats dt { font-size: 11px; color: var(--muted); }
.cm-stats dd { font-size: 14px; font-weight: 700; color: var(--gold2); margin-top: 3px; }
.cm-topics { display: flex; gap: 7px; flex-wrap: wrap; margin: 10px 0 4px; }
.cm-topics span { font-size: 12px; color: #c7b58a; border: 1px solid rgba(232,178,58,.3); border-radius: 8px; padding: 3.5px 10px; }
.cm-svc-title { margin: 20px 0 12px; font-size: 14px; letter-spacing: 1px; color: var(--text); }
.cm-svcs { display: grid; gap: 10px; }
.svc {
  display: flex; align-items: center; gap: 14px;
  background: rgba(255,255,255,.03); border: 1px solid var(--line); border-radius: 14px;
  padding: 13px 16px; transition: .2s;
}
.svc:hover { border-color: rgba(232,178,58,.55); background: rgba(232,178,58,.06); }
.svc-ico { width: 38px; height: 38px; border-radius: 11px; flex: none; font-size: 17px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(232,178,58,.12); border: 1px solid rgba(232,178,58,.35); }
.svc-body b { display: block; font-size: 14.5px; }
.svc-body i { font-style: normal; color: var(--muted); font-size: 12px; margin-top: 2px; display: block; }
.svc-go { margin-inline-start: auto; color: var(--gold); font-size: 13px; white-space: nowrap; }
.cm-note { margin-top: 16px; color: var(--muted); font-size: 12px; }
.cm-empty { text-align: center; padding: 26px 0 14px; }
.cm-empty p { color: var(--muted); font-size: 13.5px; line-height: 1.8; margin-bottom: 18px; }

.req-modal h3 { font-family: var(--serif); font-size: 21px; margin-bottom: 6px; }
.req-sub { color: var(--muted); font-size: 13px; margin-bottom: 20px; }
.req-modal label { display: block; font-size: 12.5px; color: var(--muted); margin-bottom: 14px; }
.req-modal input, .req-modal select, .req-modal textarea {
  display: block; width: 100%; margin-top: 6px;
  background: rgba(255,255,255,.04); border: 1px solid var(--line); border-radius: 10px;
  color: var(--text); font-size: 14px; padding: 11px 13px; outline: none; font-family: inherit;
}
.req-modal input:focus, .req-modal select:focus, .req-modal textarea:focus { border-color: var(--gold); }
.req-modal .btn { width: 100%; margin-top: 6px; }
.req-ok { text-align: center; padding: 46px 0; }
.req-ok span { display: inline-flex; width: 54px; height: 54px; border-radius: 50%; align-items: center; justify-content: center;
  background: rgba(232,178,58,.14); border: 1px solid var(--gold); color: var(--gold2); font-size: 24px; }
.req-ok p { margin-top: 16px; color: var(--text); }

/* ---------- Toast ---------- */
#toast {
  position: fixed; bottom: 34px; left: 50%; transform: translate(-50%, 16px); z-index: 120;
  background: rgba(13,26,46,.96); border: 1px solid rgba(232,178,58,.5); color: var(--gold2);
  border-radius: 999px; padding: 12px 24px; font-size: 13.5px;
  opacity: 0; pointer-events: none; transition: .3s; box-shadow: 0 14px 34px rgba(0,0,0,.5);
}
#toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- 页脚 ---------- */
.site-footer { border-top: 1px solid var(--line); background: rgba(8, 15, 26, .8); }
.footer-inner { max-width: 1200px; margin: 0 auto; padding: 46px 24px 26px;
  display: grid; grid-template-columns: 2fr 1fr 1.3fr; gap: 40px; }
.footer-inner h4 { font-size: 14px; letter-spacing: 2px; color: var(--gold2); margin-bottom: 14px; }
.footer-inner p, .footer-inner a { color: var(--muted); font-size: 13px; line-height: 2; }
.footer-links a { display: block; }
.footer-links a:hover { color: var(--gold2); }
.footer-sub { display: flex; gap: 8px; margin-top: 12px; }
.footer-sub input {
  flex: 1; min-width: 0; background: rgba(255,255,255,.04); border: 1px solid var(--line); border-radius: 10px;
  color: var(--text); padding: 10px 13px; font-size: 13px; outline: none;
}
.footer-sub button { border: 0; border-radius: 10px; padding: 10px 18px; cursor: pointer;
  background: linear-gradient(120deg, var(--gold2), var(--gold)); color: #211a05; font-weight: 700; font-size: 13px; }
.footer-mail { color: var(--gold2) !important; }
.footer-bottom { border-top: 1px solid var(--line); }
.footer-bottom-inner { max-width: 1200px; margin: 0 auto; padding: 16px 24px;
  display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap;
  color: #6d819b; font-size: 12px; }

/* ---------- RTL 阿拉伯语 ---------- */
[dir="rtl"] .brand { margin-inline-end: auto; }
[dir="rtl"] .back-btn svg { transform: scaleX(-1); }
[dir="rtl"] .back-btn:hover { transform: translateX(2px); }

/* ---------- 响应式 ---------- */
@media (max-width: 860px) {
  .site-header { padding: 12px 16px; gap: 14px; flex-wrap: wrap; }
  .main-nav { order: 3; width: 100%; justify-content: center; }
  .hero { padding: 18px 14px 4px; }
  #view-home { min-height: 0; }
  .map-section { padding: 4px 12px 30px; }
  .map-wrap { min-height: 0; }
  .map-frame { flex: none; }
  .tf-map-svg { height: auto; }
  .map-bar { grid-template-columns: 1fr; gap: 10px; padding-bottom: 10px; text-align: center; }
  .mb-left h2::after { margin: 5px auto 0; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
  .mb-center p { max-width: none; }
  .map-stats { justify-content: center; flex-wrap: wrap; gap: 12px 22px; }
  .region-hero { grid-template-columns: 1fr; gap: 12px; text-align: center; }
  .rh-left { flex-direction: column; gap: 10px; }
  .rh-desc p { max-width: none; }
  .rh-stats { justify-content: center; }
  .footer-inner { grid-template-columns: 1fr; gap: 26px; }
  .cm-stats { grid-template-columns: repeat(2, 1fr); }
  .rh-stats { gap: 20px; }
  .map-legend { font-size: 11px; padding: 8px 10px; }
  .ccard-grid { grid-template-columns: 1fr; }
}
