/* ============================================================
 * 长沙地铁美食娱乐地图 · 样式（赛博夜宵风 · 移动端优先）
 * ============================================================ */
:root{
  --bg:#0b1026;
  --bg2:#121a3a;
  --panel:#161f44;
  --panel2:#1d2954;
  --line:#2a3766;
  --txt:#eaf0ff;
  --txt-dim:#9fb0d8;
  --chili:#ff3b30;      /* 辣椒红 */
  --gold:#ffd34e;       /* 剁椒金 */
  --neon:#37e0ff;
  --green:#34d399;
  --yellow:#fbbf24;
  --red:#f87171;
  --radius:16px;
  --shadow:0 10px 30px rgba(0,0,0,.45);
}
* { box-sizing:border-box; -webkit-tap-highlight-color:transparent; }
[hidden]{ display:none !important; }
html,body{ margin:0; padding:0; height:100%; }
body{
  font-family:system-ui,-apple-system,"Segoe UI",Roboto,"PingFang SC","Microsoft YaHei",sans-serif;
  background:radial-gradient(120% 80% at 50% 0%, #16204a 0%, var(--bg) 55%, #070b1c 100%);
  color:var(--txt); overflow-x:hidden;
}
/* ---------- 轻量筛选条（非挡门选择卡） ---------- */
.edition-strip{ display:flex; gap:10px; padding:8px 12px; background:rgba(11,16,38,.92);
  border-bottom:1px solid var(--line); }
.edition-strip .seg{ flex:1; }
.seg{ display:flex; gap:6px; background:var(--panel); border:1px solid var(--line); border-radius:12px; padding:4px; }
.seg-btn{ flex:1; border:0; background:transparent; color:var(--txt-dim); padding:9px 6px; border-radius:9px; font-size:13px; cursor:pointer; transition:.2s; }
.seg-btn.active{ background:linear-gradient(120deg,var(--chili),#ff7a45); color:#fff; font-weight:700; }

.btn-primary{ display:block; width:100%; max-width:380px; margin:14px auto 8px; padding:14px;
  border:0; border-radius:14px; font-size:16px; font-weight:800; color:#fff; cursor:pointer;
  background:linear-gradient(120deg,var(--chili),#ff7a45); box-shadow:0 8px 22px rgba(255,59,48,.35); }
.btn-primary.sm{ max-width:none; width:auto; margin:0; padding:10px 14px; font-size:13px; display:inline-block; }
.btn-ghost{ display:block; width:100%; max-width:380px; margin:6px auto; padding:11px;
  border:1px solid var(--line); border-radius:12px; background:var(--panel); color:var(--txt-dim);
  font-size:13px; cursor:pointer; }
.btn-ghost.sm{ max-width:none; width:auto; margin:0; padding:8px 12px; font-size:12px; display:inline-block; }

/* ---------- 推荐线路底部横滑卡 ---------- */
.routes-bar{ padding:12px 14px 18px; border-top:1px solid var(--line); background:rgba(11,16,38,.92); }
.rb-head{ display:flex; align-items:center; justify-content:space-between; margin-bottom:10px; }
.rb-title{ font-size:16px; font-weight:800; }
.rb-title small{ font-size:11px; color:var(--txt-dim); font-weight:400; margin-left:6px; }
.rb-collapse{ background:var(--panel); border:1px solid var(--line); color:var(--txt-dim);
  border-radius:8px; width:30px; height:30px; cursor:pointer; font-size:15px; }
.route-cards{ display:flex; gap:12px; overflow-x:auto; -webkit-overflow-scrolling:touch; padding-bottom:4px;
  scroll-snap-type:x proximity; }
.route-card{ flex:0 0 auto; width:252px; max-width:78vw; background:linear-gradient(160deg,var(--panel2),var(--panel));
  border:1px solid var(--line); border-radius:var(--radius); padding:14px; cursor:pointer; transition:.2s;
  position:relative; overflow:hidden; scroll-snap-align:start; }
.route-card:active{ transform:scale(.98); }
.route-card .bar{ position:absolute; left:0; top:0; bottom:0; width:6px; }
.route-card h3{ margin:0 0 4px; font-size:15px; }
.route-card .rc-sum{ font-size:12px; color:var(--txt-dim); margin:0 0 8px; }
.route-card .rc-meta{ display:flex; gap:8px; flex-wrap:wrap; font-size:11px; }
.rc-tag{ background:rgba(255,255,255,.07); padding:3px 8px; border-radius:20px; color:var(--txt-dim); }
.rc-tag.personal{ color:var(--neon); } .rc-tag.family{ color:var(--gold); }
.rc-stops{ margin-top:8px; font-size:11px; color:var(--txt-dim); line-height:1.6; }
.routes-bar.collapsed .route-cards{ display:none; }
.routes-bar.collapsed{ padding-bottom:8px; }

.home-foot{ text-align:center; color:var(--txt-dim); font-size:11px; padding:10px 20px 26px; }
.home-foot .tiny{ opacity:.6; margin-top:4px; }
.home-foot .disclaimer{ opacity:.85; color:var(--gold); font-weight:600; }

/* ---------- 地图页 ---------- */
.topbar{ position:sticky; top:0; z-index:20; display:flex; align-items:center; justify-content:space-between;
  gap:10px; padding:10px 14px; background:rgba(11,16,38,.94); backdrop-filter:blur(8px); border-bottom:1px solid var(--line); }
.top-brand{ font-size:14px; font-weight:800; color:#fff; display:flex; align-items:center; gap:6px;
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.top-actions{ display:flex; gap:6px; flex-shrink:0; }

/* 语言切换 */
.lang-toggle{ border:1px solid var(--line); background:var(--panel); color:var(--neon); border-radius:20px;
  padding:6px 12px; font-size:12px; font-weight:700; cursor:pointer; transition:.2s; }
.lang-toggle:active{ transform:scale(.94); }
.top-btn{ background:var(--panel); border:1px solid var(--line); color:var(--txt); border-radius:10px; padding:7px 12px; font-size:13px; cursor:pointer; }

.map-wrap{ position:relative; }
.map-toolbar{ display:flex; align-items:center; justify-content:space-between;
  gap:8px; padding:8px 12px; background:rgba(11,16,38,.9); border-bottom:1px solid var(--line); flex-wrap:wrap; }
.mt-seg{ display:flex; gap:5px; background:var(--panel); border:1px solid var(--line); border-radius:10px; padding:3px; flex-wrap:wrap; }
.mt-btn{ border:0; background:transparent; color:var(--txt-dim); padding:6px 9px; border-radius:8px; font-size:12px; cursor:pointer; }
.mt-btn.active{ background:var(--neon); color:#04222b; font-weight:700; }
.mt-toggle{ font-size:12px; color:var(--txt-dim); display:flex; align-items:center; gap:5px; }

.map-scroll{ width:100%; height:62vh; min-height:420px; overflow:auto; -webkit-overflow-scrolling:touch; background:
  radial-gradient(80% 60% at 50% 30%, rgba(55,224,255,.05), transparent 70%); }
#metro-svg{ width:100%; min-width:680px; height:auto; display:block; touch-action:manipulation; }

/* 三城区域标注 */
.city-label{ pointer-events:none; }
.city-label-en{ font-size:14px; font-weight:800; letter-spacing:2px; fill:var(--gold); opacity:.9; font-family:sans-serif; }
.city-label-zh{ font-size:13px; font-weight:700; fill:var(--txt-dim); opacity:.8; font-family:sans-serif; }

/* 城市地图水印底图（湘江/路网/片区环/斜印字） */
.wm-layer{ pointer-events:none; }
.wm-river{ fill:none; stroke:#7fd7ff; stroke-width:30; stroke-linecap:round; opacity:.10; }
.wm-road{ stroke:#9fb0d8; stroke-width:1.5; stroke-dasharray:6 14; opacity:.10; }
.wm-ring{ fill:none; stroke:#9fb0d8; stroke-width:1.5; stroke-dasharray:4 10; opacity:.16; }
.wm-ring-label{ fill:#9fb0d8; font-size:17px; font-weight:700; letter-spacing:6px; opacity:.16; font-family:sans-serif; }
.wm-big{ fill:#eaf0ff; font-weight:900; letter-spacing:18px; opacity:.05; font-family:sans-serif; }

/* SVG 元素 */
.line-path{ fill:none; stroke-linecap:round; stroke-linejoin:round; }
.station-dot{ fill:#0b1026; stroke:#fff; stroke-width:2; }
.station-dot.hub{ fill:#fff; }
.station-label{ fill:var(--txt-dim); font-size:11px; font-family:sans-serif; pointer-events:none; }
.station-label.big{ fill:#fff; font-size:12px; font-weight:700; }
.poi-g{ cursor:pointer; }
.poi-circle{ stroke:#0b1026; stroke-width:1.5; transition:.15s; }
.poi-g:hover .poi-circle{ stroke:var(--gold); stroke-width:2.5; }
.poi-g.dim{ opacity:.18; }
.poi-emoji{ font-size:13px; text-anchor:middle; dominant-baseline:central; pointer-events:none; }
.poi-name{ font-size:9px; fill:var(--txt-dim); text-anchor:middle; pointer-events:none; }
.rec-line{ fill:none; stroke-linecap:round; stroke-linejoin:round; opacity:.9; }
.rec-line-anim{ stroke-dasharray:8 8; animation:flow 1s linear infinite; }
@keyframes flow{ to{ stroke-dashoffset:-16; } }
.diy-line{ fill:none; stroke:var(--gold); stroke-width:4; stroke-linecap:round; stroke-linejoin:round; stroke-dasharray:2 7; }
.diy-seq{ fill:var(--gold); font-size:11px; font-weight:700; text-anchor:middle; dominant-baseline:central; }
.poi-g.diy-hit .poi-circle{ stroke:var(--gold); stroke-width:3; }

/* 图例（地图右上角浮层） */
.legend{ position:absolute; top:8px; right:8px; z-index:18; display:flex; flex-wrap:wrap; gap:6px; max-width:70%;
  background:rgba(11,16,38,.86); border:1px solid var(--line); border-radius:12px; padding:8px 10px; }
.legend .lg{ display:flex; align-items:center; gap:5px; font-size:11px; color:var(--txt-dim); }
.legend .sw{ width:14px; height:4px; border-radius:3px; }

/* DIY 面板 */
.diy-panel{ position:fixed; right:0; bottom:0; left:0; z-index:25; background:rgba(13,19,46,.97);
  border-top:2px solid var(--gold); border-radius:18px 18px 0 0; padding:12px 14px 16px; box-shadow:0 -10px 30px rgba(0,0,0,.5);
  max-height:56vh; overflow:auto; }
.diy-head{ display:flex; align-items:center; gap:8px; margin-bottom:8px; }
.diy-head b{ font-size:15px; }
.diy-head span{ font-size:12px; color:var(--gold); margin-left:auto; }
.diy-x{ margin-left:6px; background:var(--panel); border:1px solid var(--line); color:var(--txt); border-radius:50%; width:26px; height:26px; font-size:15px; cursor:pointer; }
.diy-list{ list-style:none; margin:0 0 8px; padding:0; }
.diy-list li{ display:flex; align-items:center; gap:8px; padding:7px 8px; background:var(--panel); border:1px solid var(--line);
  border-radius:10px; margin-bottom:6px; font-size:13px; }
.diy-list li .num{ background:var(--gold); color:#3a2a00; border-radius:50%; min-width:20px; height:20px; display:inline-flex; align-items:center; justify-content:center; font-size:11px; font-weight:700; }
.diy-list li .rm{ margin-left:auto; color:var(--red); background:transparent; border:0; font-size:14px; cursor:pointer; }
.diy-stats{ font-size:12px; color:var(--txt-dim); margin-bottom:8px; }
.diy-stats b{ color:var(--gold); }
.diy-actions{ display:flex; gap:6px; flex-wrap:wrap; }
.diy-tip{ font-size:11px; color:var(--txt-dim); margin:8px 0 0; }

/* 我的线路抽屉 */
.mine-drawer{ position:fixed; inset:0; z-index:30; background:rgba(7,11,28,.96); padding:18px; overflow:auto; }
.mine-head{ display:flex; align-items:center; margin-bottom:12px; }
.mine-head b{ font-size:17px; }
.mine-list{ display:grid; gap:10px; }
.mine-item{ background:var(--panel); border:1px solid var(--line); border-radius:12px; padding:12px; }
.mine-item h4{ margin:0 0 4px; font-size:14px; }
.mine-item .mi-meta{ font-size:11px; color:var(--txt-dim); margin-bottom:8px; }
.mine-item .mi-acts{ display:flex; gap:6px; }

/* ---------- 弹层 / 表单 ---------- */
.sheet-mask{ position:fixed; inset:0; z-index:40; background:rgba(0,0,0,.55); display:flex; align-items:flex-end; justify-content:center; }
.sheet{ position:relative; width:100%; max-width:460px; background:linear-gradient(160deg,var(--panel2),var(--panel));
  border:1px solid var(--line); border-radius:20px 20px 0 0; padding:20px 18px 22px; box-shadow:var(--shadow); }
.sheet-x{ position:absolute; right:14px; top:12px; width:36px; height:36px; border-radius:50%; border:1px solid var(--line);
  background:rgba(255,255,255,0.06); color:var(--txt); font-size:20px; line-height:1; cursor:pointer;
  display:flex; align-items:center; justify-content:center; z-index:2; transition:all .15s; }
.sheet-x:hover{ background:rgba(255,80,80,0.25); border-color:var(--red); color:#fff; transform:scale(1.05); }
.sheet-x:active{ transform:scale(0.95); }
.sheet-icon{ font-size:30px; }
.sheet h3{ margin:6px 0 8px; font-size:18px; }
.sheet-tags{ display:flex; gap:6px; flex-wrap:wrap; margin-bottom:8px; }
.sheet-tags span{ font-size:11px; background:rgba(255,211,78,.14); color:var(--gold); padding:3px 8px; border-radius:20px; }
.sheet-meta{ display:flex; gap:12px; font-size:12px; color:var(--txt-dim); margin-bottom:8px; flex-wrap:wrap; }
.sheet-meta .val-green{ color:var(--green); } .sheet-meta .val-yellow{ color:var(--yellow); } .sheet-meta .val-red{ color:var(--red); } .sheet-meta .val-none{ color:var(--txt-dim); }
.sheet-desc{ font-size:13px; color:var(--txt-dim); line-height:1.6; margin:0 0 12px; }
.sheet-actions{ display:flex; gap:8px; }

.reg-sheet, .share-sheet{ border-radius:20px; }
.reg-tip{ font-size:12px; color:var(--txt-dim); margin:0 0 12px; line-height:1.6; }
.reg-sheet label{ display:block; font-size:12px; color:var(--txt-dim); margin-bottom:12px; }
.reg-sheet input{ display:block; width:100%; margin-top:5px; padding:11px; border-radius:10px; border:1px solid var(--line);
  background:var(--bg); color:var(--txt); font-size:14px; }
.share-link-box{ display:flex; gap:6px; margin-bottom:12px; }
.share-link-box input{ flex:1; padding:9px; border-radius:9px; border:1px solid var(--line); background:var(--bg); color:var(--txt-dim); font-size:11px; }
#report-canvas{ width:100%; max-width:280px; display:block; margin:0 auto 12px; border-radius:12px; border:1px solid var(--line); background:#0b1026; }
.share-actions{ display:flex; gap:8px; justify-content:center; }

/* toast */
.toast{ position:fixed; left:50%; bottom:80px; transform:translateX(-50%); z-index:60; background:rgba(0,0,0,.85);
  color:#fff; padding:10px 16px; border-radius:10px; font-size:13px; border:1px solid var(--line); }
