/* ============================================================
   GTABBS 互动地图 · 站内皮肤层
   作用：把镜像来的地图 UI 换成本站视觉（暗色 + 青色主色 + 粉色次色），
   并替换品牌 logo / 导航 / 输入框 / 弹窗 / 侧栏组件样式。
   依赖：assets/site.css（主题变量体系），本文件在其后加载。
   ============================================================ */

html[data-theme],
:root {
  /* 中性层（对齐论坛 style.css） */
  --bg: #070b12;
  --bg-elev: #0c1420;
  --bg-elev-2: #111c2b;
  --panel-a: rgba(12, 20, 32, .90);
  --panel-b: rgba(7, 11, 18, .95);
  --panel-rgb: 12, 20, 32;
  --surface: rgba(255, 255, 255, .045);
  --surface-hi: rgba(255, 255, 255, .085);
  --line-rgb: 130, 170, 220;
  --text: #e8eefb;
  --text-2: #b9c7dd;
  --text-3: #8ea0b8;

  /* 品牌层：青色主色 + 粉色次色（和站内一致） */
  --brand-1: #22e6d6;
  --brand-1-rgb: 34, 230, 214;
  --brand-2: #ff2d8f;
  --brand-2-rgb: 255, 45, 143;
  --brand-3: #fbbf24;
  --brand-3-rgb: 251, 191, 36;
  --brand-4: #7dd3fc;
  --brand-4-rgb: 125, 211, 252;
  --on-brand: #04121a;
  --input-fill: #0c1420;
  --grad-brand: linear-gradient(90deg, #22e6d6, #ff2d8f);

  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
}

html[data-theme] body {
  background: #070b12 !important;
  color: var(--text);
  font-family: -apple-system, "Segoe UI", "Microsoft YaHei", system-ui, sans-serif;
}

/* 去掉镜像站的网格背景，换成站内那层很淡的双色光晕 */
html[data-theme] body::before {
  background-image: none !important;
}
html[data-theme] body::after {
  background:
    radial-gradient(900px 520px at 12% -10%, rgba(34, 230, 214, .07), transparent 70%),
    radial-gradient(900px 520px at 92% 0%, rgba(255, 45, 143, .055), transparent 72%) !important;
}

/* ---------------- 顶栏 ---------------- */
html[data-theme] .site-header {
  background: rgba(8, 13, 21, .88) !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid #1e2b3d !important;
  box-shadow: none !important;
}
html[data-theme] .brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
}
html[data-theme] .brand-mark {
  width: 26px !important;
  height: 26px !important;
  background: url(/img/logo-32.png) center / contain no-repeat !important;
  border: 0 !important;
  border-radius: 0 !important;
  color: transparent !important;
  box-shadow: none !important;
}
html[data-theme] .brand-mark svg {
  display: none !important;
}
html[data-theme] .brand-name {
  color: #e8eefb !important;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .4px;
}
html[data-theme] .brand-name em {
  color: #22e6d6;
  font-style: normal;
}

html[data-theme] .nav a {
  color: #8ea0b8 !important;
  font-size: 13.5px;
  padding: 7px 11px;
  border-radius: 8px;
  text-decoration: none;
  transition: color .15s, background .15s;
}
html[data-theme] .nav a:hover {
  color: #e8eefb !important;
  background: rgba(255, 255, 255, .05);
}
html[data-theme] .nav a[aria-current="page"] {
  color: #22e6d6 !important;
}
html[data-theme] .nav a[aria-current="page"]::after {
  background: linear-gradient(90deg, #22e6d6, #ff2d8f) !important;
  border-radius: 2px;
}
html[data-theme] .nav-caret {
  border-color: #8ea0b8 !important;
}

/* 顶栏搜索框 */
html[data-theme] .site-header input[type="search"] {
  background: #0c1420 !important;
  border: 1px solid #223148 !important;
  border-radius: 999px !important;
  color: #e8eefb !important;
  height: 34px;
  font-size: 13px;
}
html[data-theme] .site-header input[type="search"]::placeholder {
  color: #5f7189;
}
html[data-theme] .site-header input[type="search"]:focus {
  border-color: rgba(34, 230, 214, .6) !important;
  box-shadow: 0 0 0 3px rgba(34, 230, 214, .12) !important;
  outline: none;
}

/* 登录/注册按钮（镜像站的登录入口） */
html[data-theme] .nav-auth a,
html[data-theme] .nav-auth button {
  border-radius: 999px !important;
  font-size: 13px;
}

/* ---------------- 地图区 ---------------- */
html[data-theme] .leaflet-container,
html[data-theme] .sat-stage {
  background: #3593b4 !important;   /* 与卫星图海水一致，边界外不显黑 */
}
html[data-theme] .leaflet-bar a {
  background: #0c1420 !important;
  color: #e8eefb !important;
  border-color: #223148 !important;
}
html[data-theme] .leaflet-bar a:hover {
  background: #111c2b !important;
  color: #22e6d6 !important;
}
html[data-theme] .leaflet-control-attribution {
  display: none !important;
}

/* 地点详情弹窗 */
html[data-theme] .leaflet-popup-content-wrapper {
  background: #0c1420 !important;
  color: #e8eefb !important;
  border: 1px solid #223148 !important;
  border-radius: 14px !important;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .55) !important;
}
html[data-theme] .leaflet-popup-content {
  margin: 12px 14px !important;
  font-size: 13px;
}
html[data-theme] .leaflet-popup-tip {
  background: #0c1420 !important;
}
html[data-theme] .leaflet-popup-close-button {
  color: #8ea0b8 !important;
}
html[data-theme] .sat-pop-en {
  color: #8ea0b8 !important;
}
html[data-theme] .sat-pop-cat {
  color: #22e6d6 !important;
  background: rgba(34, 230, 214, .12);
  border: 1px solid rgba(34, 230, 214, .35);
  border-radius: 999px;
  padding: 1px 8px;
}
html[data-theme] .sat-pop-fav {
  border-radius: 8px !important;
}

/* ---------------- 左侧面板 ---------------- */
html[data-theme] .sat-side {
  background: rgba(9, 14, 22, .94) !important;
  border-right: 1px solid #1e2b3d !important;
}
html[data-theme] .sat-side-head h2,
html[data-theme] .sat-side-head .sat-title {
  color: #e8eefb !important;
}
html[data-theme] .sat-sub,
html[data-theme] .sat-hint {
  color: #8ea0b8 !important;
}
html[data-theme] .sat-tabs {
  border-bottom: 1px solid #1e2b3d !important;
}
html[data-theme] .sat-tab {
  color: #8ea0b8 !important;
  border-radius: 8px 8px 0 0;
}
html[data-theme] .sat-tab.active {
  color: #22e6d6 !important;
}
html[data-theme] .sat-tab.active::after {
  background: linear-gradient(90deg, #22e6d6, #ff2d8f) !important;
}

/* 筛选按钮 / 类型按钮 */
html[data-theme] .sat-tool,
html[data-theme] .sat-type {
  background: #0c1420 !important;
  border: 1px solid #223148 !important;
  color: #b9c7dd !important;
  border-radius: 999px !important;
  font-size: 12.5px;
}
html[data-theme] .sat-tool:hover,
html[data-theme] .sat-type:hover {
  border-color: rgba(34, 230, 214, .55) !important;
  color: #22e6d6 !important;
}
html[data-theme] .sat-tool.active,
html[data-theme] .sat-type.active,
html[data-theme] .sat-type[aria-pressed="true"] {
  background: rgba(34, 230, 214, .14) !important;
  border-color: rgba(34, 230, 214, .55) !important;
  color: #22e6d6 !important;
}

/* 分组与列表行 */
html[data-theme] .sat-group {
  border-top: 1px solid rgba(130, 170, 220, .12) !important;
}
html[data-theme] .sat-group summary:hover,
html[data-theme] .sat-list a:hover {
  background: rgba(255, 255, 255, .04) !important;
  border-radius: 8px;
}
html[data-theme] .sat-list a[aria-current="true"],
html[data-theme] .sat-list .active {
  color: #22e6d6 !important;
}

/* 进度条 */
html[data-theme] .sat-progress {
  background: rgba(255, 255, 255, .06) !important;
  border-radius: 999px;
}
html[data-theme] .sat-progress > i,
html[data-theme] .sat-progress-bar {
  background: linear-gradient(90deg, #22e6d6, #ff2d8f) !important;
  border-radius: 999px;
}

/* 全屏按钮 */
html[data-theme] .sat-full-btn,
html[data-theme] .sat-drawer-btn {
  background: #0c1420 !important;
  border: 1px solid #223148 !important;
  color: #e8eefb !important;
  border-radius: 10px !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .35);
}
html[data-theme] .sat-full-btn:hover,
html[data-theme] .sat-drawer-btn:hover {
  border-color: rgba(34, 230, 214, .6) !important;
  color: #22e6d6 !important;
}

/* 底部计数条 */
html[data-theme] .sat-credit,
html[data-theme] .sat-scale-note {
  color: #8ea0b8 !important;
  background: rgba(9, 15, 24, .82) !important;
  border: 1px solid #1e2b3d !important;
  border-radius: 999px !important;
  padding: 3px 10px;
}

/* 滚动条 */
html[data-theme] .sat-side::-webkit-scrollbar {
  width: 8px;
}
html[data-theme] .sat-side::-webkit-scrollbar-thumb {
  background: #223148;
  border-radius: 8px;
}
html[data-theme] ::selection {
  background: rgba(34, 230, 214, .3);
}

/* 镜像站的预览主题切换器（不需要） */
html[data-theme] .theme-switch {
  display: none !important;
}

/* 品牌字：站内是白字 + 青色符号，不要镜像站的粉紫渐变 */
html[data-theme] .brand-name {
  background: none !important;
  -webkit-text-fill-color: #e8eefb !important;
  color: #e8eefb !important;
  font-weight: 700;
}
html[data-theme] .site-header {
  background: rgba(8, 13, 21, .92) !important;
}
html[data-theme] .site-header .wrap {
  max-width: 100%;
  padding: 0 18px;
}
html[data-theme] .nav {
  gap: 2px;
}
html[data-theme] .sat-side-head {
  border-bottom: 1px solid #1e2b3d;
}

/* 站内只有中文，隐藏镜像站的语言切换 */
html[data-theme] .lang-switch{display:none !important;}


/* ===== 主站同款调色板（优先） ===== */
html[data-theme] {
  --bg: #0a0612;
  --bg-elev: #170e24;
  --bg-elev-2: #1e132e;
  --panel-a: rgba(23, 14, 36, .90);
  --panel-b: rgba(17, 10, 27, .95);
  --panel-rgb: 23, 14, 36;
  --surface: rgba(255, 255, 255, .045);
  --surface-hi: rgba(255, 255, 255, .085);
  --text: #f4ecff;
  --text-2: #d8c9ea;
  --text-3: #a494c0;
  --brand-1: #ff2d8f;
  --brand-1-rgb: 255, 45, 143;
  --brand-2: #8b5cf6;
  --brand-2-rgb: 139, 92, 246;
  --brand-3: #ff8a3d;
  --brand-3-rgb: 255, 138, 61;
  --brand-4: #22e6d6;
  --brand-4-rgb: 34, 230, 214;
  --on-brand: #0b0d10;
  --input-fill: #1e132e;
  --line: #2c1d40 !important;
  --line-strong: #3d2a58 !important;
  --grad-brand: linear-gradient(120deg, #ff2d8f, #8b5cf6);
  --header-h: 64px;
}
html[data-theme] body { background: #0a0612 !important; color: #f4ecff; }

/* ===== 顶栏（复制主站视觉） ===== */
.gt-topbar {
  position: sticky; top: 0; z-index: 60;
  display: flex; align-items: center; gap: 28px;
  padding: 0 28px; height: 64px;
  background: linear-gradient(120deg, rgba(20, 8, 30, .92), rgba(14, 8, 24, .88));
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid #2c1d40;
}
.gt-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.gt-logo { width: 34px; height: 34px; display: block; filter: drop-shadow(0 2px 5px rgba(255, 45, 143, .28)); transition: transform .2s ease; }
.gt-brand:hover .gt-logo { transform: scale(1.06) rotate(-2deg); }
.gt-brand-text { font-weight: 800; letter-spacing: .5px; font-size: 17px; color: #f4ecff; }
.gt-brand-text em { font-style: normal; color: #ff2d8f; }
.gt-nav { display: flex; gap: 4px; margin-left: 8px; overflow: auto; }
.gt-nav a { padding: 8px 14px; border-radius: 9px; color: #a494c0; font-weight: 600; font-size: 14px; text-decoration: none; transition: .15s; white-space: nowrap; }
.gt-nav a:hover { color: #f4ecff; background: #170e24; }
.gt-nav a.on { color: #ff2d8f; background: rgba(255, 45, 143, .14); }
.gt-right { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.gt-searchbox { display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 10px 0 11px; border-radius: 10px; border: 1px solid #2c1d40; background: rgba(23, 14, 36, .72); width: 210px; transition: .16s; }
.gt-searchbox:hover { border-color: rgba(255, 45, 143, .45); background: rgba(30, 19, 46, .8); }
.gt-searchbox input { flex: 1; min-width: 0; width: auto !important; background: transparent !important; border: 0 !important; padding: 0 !important; box-shadow: none !important; color: #f4ecff; font-size: 13px; outline: none; }
.gt-searchbox input::placeholder { color: #a494c0; }
.gt-sicon { font-size: 15px; opacity: .7; flex: 0 0 auto; }
.gt-bell { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; border: 1px solid #2c1d40; color: #a494c0; text-decoration: none; font-size: 14px; }
.gt-bell:hover { border-color: #ff2d8f; color: #ff2d8f; background: rgba(255, 45, 143, .14); }
.gt-userchip { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px 5px 5px; border: 1px solid #2c1d40; border-radius: 999px; font-size: 13.5px; font-weight: 600; color: #f4ecff; text-decoration: none; }
.gt-userchip:hover { border-color: #ff2d8f; color: #ff2d8f; }
.gt-av { width: 22px; height: 22px; border-radius: 8px; background: linear-gradient(145deg, #ff2d8f, #8b5cf6); display: grid; place-items: center; font-size: 11px; color: #0b0d10; font-weight: 800; }
@media (max-width: 820px) {
  html[data-theme] { --header-h: 58px; }
  .gt-topbar { padding: 0 16px; gap: 12px; height: 58px; }
  .gt-brand-text { font-size: 15px; }
  .gt-searchbox { display: none; }
  .gt-nav { gap: 2px; }
  .gt-nav a { padding: 7px 9px; font-size: 13px; }
}

.gt-status { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #a494c0; padding: 7px 13px; border: 1px solid #2c1d40; border-radius: 999px; white-space: nowrap; }
.gt-status .dot { width: 6px; height: 6px; border-radius: 50%; background: #22e6d6; box-shadow: 0 0 8px #22e6d6; }
@media (max-width: 1000px) { .gt-status { display: none; } }

/* ===== 设置按钮 / 弹层 / Ctrl K（对齐主站） ===== */
.gt-kbd { flex: 0 0 auto; font: 11px/1 ui-monospace, monospace; color: #a494c0; border: 1px solid #3d2a58; border-radius: 5px; padding: 3px 5px; background: rgba(0, 0, 0, .25); display: none; }
@media (min-width: 1200px) { .gt-kbd { display: inline-block; } }
.gt-settings { position: relative; }
.gt-ghost { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 10px; border: 1px solid #2c1d40; background: transparent; color: #a494c0; font-size: 13px; font-weight: 600; cursor: pointer; transition: .16s; }
.gt-ghost:hover { border-color: #ff2d8f; color: #ff2d8f; background: rgba(255, 45, 143, .14); }
.gt-pop { position: absolute; top: calc(100% + 10px); right: 0; z-index: 80; width: min(300px, 86vw); padding: 16px; border-radius: 14px; border: 1px solid #3d2a58; background: rgba(20, 12, 32, .98); box-shadow: 0 20px 50px rgba(0, 0, 0, .6); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.gt-pop[hidden] { display: none; }
.gt-pop-title { font-size: 11px; letter-spacing: 1.5px; color: #a494c0; text-transform: uppercase; font-weight: 800; margin-bottom: 14px; }
.gt-set-row { display: flex; align-items: flex-start; gap: 14px; cursor: pointer; }
.gt-set-text { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.gt-set-text b { font-size: 14px; font-weight: 700; color: #f4ecff; }
.gt-hint { font-size: 12px; color: #a494c0; line-height: 1.55; }
.gt-note { margin-top: 14px; padding-top: 12px; border-top: 1px solid #2c1d40; font-size: 11.5px; color: #a494c0; }
.gt-switch { position: relative; flex: 0 0 auto; width: 44px; height: 26px; margin-top: 2px; }
.gt-switch input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 2; }
.gt-knob { position: absolute; inset: 0; border-radius: 999px; background: rgba(255, 255, 255, .12); border: 1px solid #3d2a58; transition: .18s; }
.gt-knob::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #cfd6e0; transition: .18s; }
.gt-switch input:checked + .gt-knob { background: linear-gradient(135deg, #ff2d8f, #8b5cf6); border-color: transparent; box-shadow: 0 0 14px rgba(255, 45, 143, .45); }
.gt-switch input:checked + .gt-knob::after { left: 21px; }
@media (max-width: 1200px) { .gt-ghost span { display: none; } .gt-ghost { padding: 0 9px; } }

/* 通知铃与红点徽章（主站样式） */
.gt-bell { position: relative; }
.gt-bell svg { display: block; }
.gt-bell .gt-badge { position: absolute; top: -5px; right: -5px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 99px; background: linear-gradient(135deg, #ff2d8f, #8b5cf6); color: #fff; font-size: 10px; font-weight: 800; line-height: 17px; text-align: center; box-shadow: 0 0 0 2px #0a0612; }

/* ================= Cookie 提示（简约亚克力细条 · 加大版） ================= */
.gt-cookie{
  position:fixed;left:0;right:0;bottom:0;z-index:120;
  display:flex;align-items:center;gap:26px;
  padding:20px 30px;
  background:rgba(10,15,24,.80);
  -webkit-backdrop-filter:blur(24px) saturate(150%);backdrop-filter:blur(24px) saturate(150%);
  border-top:1px solid rgba(255,255,255,.10);
  box-shadow:0 -14px 40px rgba(0,0,0,.30);
  color:#e8eefb;font-size:14.5px;
}
.gt-cookie[hidden]{display:none}
.gt-cookie-txt{flex:1;min-width:0;color:#b9c7dd;line-height:1.75}
.gt-cookie-txt b{display:inline-block;color:#f4ecff;font-weight:700;font-size:15.5px;margin-right:8px}
.gt-cookie-act{display:flex;align-items:center;gap:12px;flex:0 0 auto}
.gt-cookie-btn{
  cursor:pointer;font:600 14px/1 inherit;padding:11px 20px;border-radius:10px;
  border:1px solid rgba(255,255,255,.14);background:rgba(255,255,255,.04);color:#c9d4e4;
  transition:.16s;white-space:nowrap;
}
.gt-cookie-btn:hover{border-color:rgba(255,255,255,.28);color:#fff;background:rgba(255,255,255,.08)}
.gt-cookie-btn.primary{
  color:#ff5ba3;border-color:rgba(255,45,143,.42);background:rgba(255,45,143,.12);
  font-weight:700;padding:11px 22px;
}
.gt-cookie-btn.primary:hover{color:#fff;background:rgba(255,45,143,.22);border-color:rgba(255,45,143,.7)}
.gt-cookie-btn.primary::after{content:" →";font-weight:400}
.gt-cookie-x{
  flex:0 0 auto;border:0;background:none;color:#6b7a90;font-size:22px;line-height:1;cursor:pointer;
  padding:4px 8px;margin-left:-8px;border-radius:8px;transition:.15s;
}
.gt-cookie-x:hover{color:#e8eefb;background:rgba(255,255,255,.08)}
@media (max-width:820px){
  .gt-cookie{padding:16px 18px;gap:14px;flex-wrap:wrap;font-size:14px}
  .gt-cookie-txt{flex:1 1 100%}
  .gt-cookie-act{flex:1 1 100%;justify-content:flex-end;gap:10px}
  .gt-cookie-btn{padding:12px 18px}
}
