/* ============================================================
   v2.1.0 —— 商业软件风格应用壳层（顶部导航 + 卡片式页面）
   LCD 模拟屏本体样式（v2.0.7 大屏导乘屏）保持不变
   ============================================================ */
:root {
  --line-color: #edc10c;
  --red: #d32f2f;
  --bg-color: #eef1f6;
  --text-color: #1f2b38;
  --primary: #0956a8;
  --primary-dark: #044a94;
  --card-bg: #ffffff;
  --card-border: #e3e8ef;
  --muted: #6b7a8c;
  --font: "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: var(--font); background-color: var(--bg-color); height: 100vh; overflow: hidden; color: var(--text-color); background-size: cover; background-position: center; background-attachment: fixed; }
body.with-bg-image::before { content: ''; position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: -1; }
.hidden { display: none !important; }

.app-wrapper { width: 100%; height: 100vh; display: flex; flex-direction: column; }

/* ---------- 顶部导航栏 ---------- */
.topbar { flex-shrink: 0; height: 64px; display: flex; align-items: center; gap: 20px; padding: 0 22px;
  background: var(--card-bg); border-bottom: 1px solid var(--card-border); box-shadow: 0 2px 12px rgba(20,40,70,0.06); z-index: 50; }
.brand { display: flex; align-items: center; gap: 10px; cursor: pointer; user-select: none; }
/* v2.1.1：官方 logo 三笔飘带比例约 3.84:1 */
.brand-mark { width: 106px; height: 28px; display: flex; align-items: center; flex-shrink: 0; }
.brand-mark svg { width: 100%; height: 100%; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text b { font-size: 16px; color: var(--text-color); letter-spacing: .5px; }
.brand-text small { font-size: 10px; color: var(--muted); letter-spacing: .5px; }
.version-chip { font-size: 11px; font-weight: 700; color: var(--primary); background: rgba(9,86,168,0.08);
  border: 1px solid rgba(9,86,168,0.25); border-radius: 999px; padding: 2px 10px; margin-left: 6px; }
.topbar-nav { display: flex; gap: 6px; margin-left: 26px; }
.nav-tab { padding: 8px 18px; font-size: 14px; font-weight: 600; color: var(--muted); background: transparent;
  border: 1px solid transparent; border-radius: 9px; cursor: pointer; transition: all 0.2s; font-family: var(--font); }
.nav-tab:hover { color: var(--primary); background: rgba(9,86,168,0.06); }
.nav-tab.active { color: #fff; background: var(--primary); box-shadow: 0 4px 12px rgba(9,86,168,0.28); }
.topbar-actions { margin-left: auto; display: flex; gap: 8px; }
.icon-btn { width: 38px; height: 38px; border-radius: 9px; border: 1px solid var(--card-border); cursor: pointer;
  font-size: 16px; background: var(--card-bg); color: var(--muted); transition: all 0.2s;
  display: flex; align-items: center; justify-content: center; }
.icon-btn:hover { background: #fee2e2; color: #c0392b; border-color: #f5b7b1; transform: translateY(-1px); }
.icon-btn.active { background: var(--line-color); color: #111; }
/* V3.0.1：顶栏「返回选择城市」文字按钮（替代原 ✕ 图标） */
.icon-btn.text-btn { width: auto; height: 38px; padding: 0 16px; border-radius: 999px;
  font-size: 13px; font-weight: 700; letter-spacing: .5px; white-space: nowrap; }

/* ---------- 主内容区 ---------- */
.main-content { flex: 1; display: flex; align-items: center; justify-content: center; position: relative; padding: 22px; min-height: 0; }
/* v2.2.1 修复：flex 居中 + overflow 组合在内容超高时会裁掉顶部且滚不上去，改为 flex-start + margin:auto 安全居中 */
.view-page { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; overflow-y: auto; }
.view-page > .welcome-container, .view-page > .panel-card { margin: auto; }
.view-page.hidden { display: none !important; }

/* ---------- 欢迎页 ---------- */
.welcome-container { display: flex; flex-direction: column; gap: 24px; width: 100%; max-width: 960px; }
.hero-card { background: linear-gradient(135deg, #0656a8 0%, #0a6fc0 55%, #1094d6 100%); border-radius: 20px;
  padding: 44px 48px 36px; color: #fff; box-shadow: 0 18px 44px rgba(9,86,168,0.30); position: relative; overflow: hidden; }
.hero-card::after { content: ''; position: absolute; right: -80px; top: -80px; width: 300px; height: 300px;
  border-radius: 50%; background: rgba(255,255,255,0.08); pointer-events: none; }
.hero-card h1 { font-size: 30px; font-weight: 800; letter-spacing: 1px; }
.hero-card h1 em { font-style: normal; font-weight: 900; opacity: .95; }
.hero-sub { font-size: 14px; opacity: .88; margin-top: 10px; letter-spacing: .5px; }
.hero-actions { display: flex; gap: 12px; margin-top: 24px; flex-wrap: wrap; position: relative; z-index: 1; }
.hero-stats { display: flex; gap: 0; margin-top: 26px; background: rgba(255,255,255,0.12); border-radius: 14px;
  overflow: hidden; position: relative; z-index: 1; }
.hero-stats .stat { flex: 1; text-align: center; padding: 14px 8px; border-right: 1px solid rgba(255,255,255,0.16); }
.hero-stats .stat:last-child { border-right: none; }
.hero-stats .stat b { display: block; font-size: 24px; font-weight: 900; }
.hero-stats .stat span { font-size: 12px; opacity: .85; }

.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.info-card { background: var(--card-bg); border: 1px solid var(--card-border); border-radius: 16px;
  padding: 24px; box-shadow: 0 6px 18px rgba(20,40,70,0.06); }
.info-card h3 { font-size: 16px; color: var(--primary); margin-bottom: 16px; padding-bottom: 12px;
  border-bottom: 1px solid var(--card-border); }
.info-list { padding-left: 20px; font-size: 13px; color: #46586b; line-height: 1.8; }
.info-list li { margin-bottom: 8px; }
.info-note { margin-top: 10px; padding: 8px 12px; font-size: 12px; color: #5a7d96; background: #f0f6fb; border: 1px dashed #b9cfdf; border-radius: 8px; }
.info-list strong { color: var(--text-color); }
.info-list kbd { background: #f1f4f8; border: 1px solid #d7dee7; border-bottom-width: 2px; border-radius: 4px;
  padding: 1px 6px; font-family: monospace; font-size: 12px; color: var(--text-color); }

/* ---------- 通用面板卡片（设置 / 编辑） ---------- */
.panel-card { width: 100%; max-width: 760px; background: var(--card-bg); border: 1px solid var(--card-border);
  border-radius: 18px; box-shadow: 0 10px 30px rgba(20,40,70,0.08); display: flex; flex-direction: column;
  overflow: hidden; max-height: 100%; }
.panel-header { padding: 22px 28px 16px; border-bottom: 1px solid var(--card-border); }
.panel-header h2 { font-size: 20px; font-weight: 800; color: var(--text-color); }
.panel-desc { font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.panel-body { padding: 22px 28px 26px; overflow-y: auto; flex: 1; }
.panel-section { margin-bottom: 20px; }
.panel-section:last-child { margin-bottom: 0; }
.section-title { font-size: 13px; font-weight: 700; color: var(--primary); letter-spacing: 1px; margin-bottom: 12px; }
.form-row { display: flex; gap: 14px; flex-wrap: wrap; }
.inline-row { display: flex; gap: 10px; align-items: center; }
.grow { flex: 1 1 auto; min-width: 0; }
.nowrap { white-space: nowrap; flex-shrink: 0; }

/* ---------- 表单控件 ---------- */
.settings-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.settings-group label { font-size: 13px; color: var(--muted); font-weight: 600; }
.settings-group select, .settings-group input[type="text"], .settings-group textarea, .settings-group input[type="file"] {
  width: 100%; padding: 10px 12px; font-size: 14px; border-radius: 9px; border: 1px solid #d7dee7;
  background: #fbfcfe; color: var(--text-color); outline: none; font-family: var(--font); transition: border-color .2s, box-shadow .2s; }
.settings-group select:focus, .settings-group input:focus, .settings-group textarea:focus {
  border-color: var(--primary); box-shadow: 0 0 0 3px rgba(9,86,168,0.12); }
.settings-group input[type="color"] { width: 100%; height: 40px; border: 1px solid #d7dee7; border-radius: 9px;
  background: #fbfcfe; cursor: pointer; padding: 4px; }
.divider { border: none; border-top: 1px solid var(--card-border); margin: 16px 0; }

.btn-primary { padding: 12px; font-size: 15px; font-weight: 700; border: none; border-radius: 9px; cursor: pointer;
  background: var(--primary); color: #fff; transition: all 0.2s; font-family: var(--font); box-shadow: 0 4px 12px rgba(9,86,168,0.25); }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); }
.btn-secondary { padding: 10px; font-size: 13px; font-weight: 600; border: 1px solid #d7dee7; border-radius: 9px;
  cursor: pointer; background: #f6f8fb; color: var(--text-color); transition: all 0.2s; margin-bottom: 8px; font-family: var(--font); }
.btn-secondary:hover { background: #eaeff5; border-color: #c3cedb; }
.btn-danger { background: #fdecec; color: #c0392b; border-color: #f5c6c0; }
.btn-danger:hover { background: #f9d8d5; }
.btn-lg { padding: 13px 28px; font-size: 15px; border-radius: 11px; }
.hero-card .btn-primary { background: #fff; color: var(--primary); box-shadow: 0 6px 16px rgba(0,0,0,0.22); }
.hero-card .btn-primary:hover { background: #eef6ff; }
.hero-card .btn-secondary { background: rgba(255,255,255,0.14); color: #fff; border-color: rgba(255,255,255,0.4); margin-bottom: 0; }
.hero-card .btn-secondary:hover { background: rgba(255,255,255,0.24); }

/* ---------- 数据库编辑页 ---------- */
.editor-card { max-width: 980px; }
.editor-actions { display: flex; gap: 10px; }
.editor-actions .btn-secondary, .editor-actions .btn-primary { margin-bottom: 0; padding: 9px 20px; }
.editor-body { display: flex; flex: 1; overflow: hidden; }
.editor-sidebar { width: 250px; padding: 20px; border-right: 1px solid var(--card-border); display: flex;
  flex-direction: column; gap: 10px; background: #f8fafc; }
.editor-sidebar label { font-size: 13px; color: var(--muted); font-weight: 600; }
.editor-sidebar select { flex: 1; width: 100%; padding: 10px; border-radius: 9px; background: #fbfcfe;
  border: 1px solid #d7dee7; color: var(--text-color); outline: none; font-size: 14px; font-family: var(--font); }
.editor-sidebar select option { padding: 6px; }
.editor-main { flex: 1; padding: 24px 28px; display: flex; flex-direction: column; overflow-y: auto; }
.editor-top { display: flex; gap: 20px; margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--card-border); }
.editor-split { display: flex; gap: 20px; flex: 1; overflow: hidden; }
.editor-list-col { width: 205px; display: flex; flex-direction: column; gap: 10px; height: 100%; }
.editor-list-grow { flex: 1; margin-bottom: 0; min-height: 0; }
.editor-detail-col { flex: 1; background: #f8fafc; padding: 20px; border-radius: 12px; border: 1px solid var(--card-border); overflow-y: auto; }
.editor-detail-actions { margin-top: 14px; }
.editor-detail-actions .btn-primary, .editor-detail-actions .btn-secondary { margin-bottom: 0; }

.station-list-box { flex: 1; overflow-y: auto; background: #fbfcfe; border: 1px solid #d7dee7; border-radius: 9px;
  padding: 6px; height: 350px; display: block; min-height: 280px; }
.station-list-box::-webkit-scrollbar { width: 6px; }
.station-list-box::-webkit-scrollbar-thumb { background: #c3cedb; border-radius: 3px; }
.station-list-item { padding: 8px 12px; border-radius: 6px; cursor: pointer; color: #46586b; font-size: 14px;
  transition: all 0.15s; user-select: none; }
.station-list-item:hover { background: #eef2f7; }
.station-list-item.active { background: var(--primary); color: #fff; font-weight: bold; }

/* ---------- 控制条（模拟页，LCD 屏外） ---------- */
#simulationPanel { justify-content: space-between; }
.control-bar { display: flex; justify-content: center; align-items: center; gap: 12px; padding: 12px 16px;
  background: var(--card-bg); border: 1px solid var(--card-border); border-radius: 14px; width: 100%; flex-wrap: wrap; }
.ctl-btn { padding: 10px 24px; font-size: 14px; font-weight: 700; border: 1px solid #d7dee7; border-radius: 10px;
  cursor: pointer; background: #f6f8fb; color: var(--text-color); transition: all 0.2s; font-family: var(--font); }
.ctl-btn:hover { background: #eaeff5; transform: translateY(-2px); }
.ctl-btn.primary { background: var(--primary); border-color: var(--primary); color: #fff; box-shadow: 0 4px 12px rgba(9,86,168,0.25); }
.ctl-btn.primary:hover { background: var(--primary-dark); }
.ctl-btn.danger { background: #d32f2f; border-color: #d32f2f; color: #fff; }

/* ---------- 车厢选择器（v2.1.0） ---------- */
.car-picker { display: flex; align-items: center; gap: 10px; margin-right: auto; flex-wrap: wrap; }
.car-picker-label { font-size: 13px; font-weight: 700; color: var(--muted); }
.car-picker-btns { display: flex; gap: 5px; flex-wrap: wrap; }
.car-btn { min-width: 34px; height: 34px; padding: 0 10px; border-radius: 8px; border: 1px solid #d7dee7;
  background: #f6f8fb; color: #46586b; font-size: 13px; font-weight: 700; cursor: pointer; transition: all 0.15s; font-family: var(--font); }
.car-btn:hover { background: #eaeff5; }
.car-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; box-shadow: 0 3px 10px rgba(9,86,168,0.3); }
.car-picker-info { font-size: 12px; color: var(--muted); font-weight: 600; }

/* ---------- Modal（浅色重制） ---------- */
.modal-overlay { position: fixed; inset: 0; background: rgba(15,30,50,0.55); backdrop-filter: blur(6px);
  z-index: 1000; display: flex; justify-content: center; align-items: center; padding: 20px; }
.modal-box { background: var(--card-bg); border: 1px solid var(--card-border); border-radius: 18px;
  width: 100%; max-width: 820px; max-height: 85vh; display: flex; flex-direction: column;
  box-shadow: 0 30px 80px rgba(15,30,50,0.35); }
.modal-box.modal-lg { max-width: 640px; }
.modal-header { padding: 18px 26px; display: flex; justify-content: space-between; align-items: center;
  border-bottom: 1px solid var(--card-border); }
.modal-header h3 { font-size: 17px; color: var(--text-color); font-weight: 700; }
.modal-close { background: transparent; color: var(--muted); border: none; font-size: 26px; cursor: pointer;
  width: 34px; height: 34px; border-radius: 8px; }
.modal-close:hover { background: #f1f4f8; color: var(--text-color); }
.modal-body { padding: 18px 26px; overflow-y: auto; flex: 1; }
.modal-tip { font-size: 12px; color: #46586b; margin-bottom: 14px; background: #eef6ff; padding: 10px 14px;
  border-radius: 10px; border-left: 3px solid var(--primary); }
.modal-extra { margin: 0 26px; padding: 14px 0 4px; border-top: 1px dashed var(--card-border); }
.modal-inline-label { font-size: 12px; color: var(--muted); display: block; margin-bottom: 8px; }
.modal-extra input[type="text"] { padding: 9px 12px; border-radius: 8px; border: 1px solid #d7dee7;
  background: #fbfcfe; color: var(--text-color); font-size: 13px; outline: none; font-family: var(--font); }
.modal-footer { padding: 14px 26px 20px; display: flex; gap: 10px; border-top: 1px solid var(--card-border); margin-top: 14px; }
.modal-footer .btn-secondary, .modal-footer .btn-primary { flex: 1; padding: 12px; font-size: 14px; margin-bottom: 0; }
.station-checklist { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 8px; }
.station-check { display: flex; align-items: center; gap: 8px; padding: 8px 12px; background: #f8fafc;
  border: 1px solid var(--card-border); border-radius: 8px; cursor: pointer; }
.station-check:hover { background: #eef2f7; }
.station-check input[type="checkbox"] { width: 15px; height: 15px; accent-color: #d32f2f; }
.station-check .check-name { font-size: 13px; color: #46586b; font-weight: 600; }
.station-check .check-num { font-size: 10px; color: #9aa8b6; font-family: monospace; margin-left: auto; }
.station-check.is-checked { background: #fdecec; border-color: #f5c6c0; }
.station-check.is-checked .check-name { color: #c0392b; }
.station-check.is-checked .check-num { color: #c0392b; }
.xfer-picker-group { margin-bottom: 20px; }
.xfer-picker-group h4 { font-size: 13px; color: var(--muted); margin-bottom: 10px; font-weight: 600;
  border-left: 3px solid var(--primary); padding-left: 8px; }
.xfer-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.xfer-tag { padding: 6px 12px; border-radius: 7px; background: #f6f8fb; border: 1px solid #d7dee7; color: #46586b;
  font-size: 13px; cursor: pointer; transition: all 0.2s; user-select: none; }
.xfer-tag:hover { background: #eaeff5; }
.xfer-tag.active { background: var(--primary); color: #fff; border-color: var(--primary); font-weight: bold; }

/* ---------- 全屏 ---------- */
body.fullscreen-mode { background: #000 !important; background-image: none !important; }
body.fullscreen-mode::before { display: none !important; }
body.fullscreen-mode .topbar { display: none !important; }
body.fullscreen-mode .app-wrapper { padding: 0 !important; }
body.fullscreen-mode .main-content { padding: 0 !important; align-items: center !important; justify-content: center !important; }
body.fullscreen-mode .view-page { padding: 0 !important; }
body.fullscreen-mode #simulationPanel { padding: 0 !important; justify-content: center !important; align-items: center !important; background: #000 !important; }
body.fullscreen-mode .control-bar { display: none !important; }
body.fullscreen-mode .lcd-screen { width: min(100vw, calc(100vh * 2.6)) !important; height: min(100vh, calc(100vw / 2.6)) !important; aspect-ratio: auto !important; border-radius: 0 !important; box-shadow: none !important; border: none !important; outline: none !important; }

/* ============================================================
   v2.0.7 —— 成都地铁 3.0 大屏导乘屏 1:1 还原（LCD 屏本体）
   长条屏比例 3.6:1、蓝白渐变底、线路色飘带、胶囊线路牌、
   横向圆点线路图、到站画面（车门 / 站台结构 / 到站站名）
   ============================================================ */
#simulationPanel { justify-content: space-between; }

.lcd-screen {
  position: relative;
  background: linear-gradient(180deg, #eaf3fc 0%, #f8fbff 42%, #f2f8fe 78%, #e6f0fb 100%);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 26px 70px rgba(0,0,0,.85), 0 0 0 2px #101418, 0 0 0 9px #262b31;
  aspect-ratio: 3.6 / 1;
  width: 100%;
  margin-block: auto;          /* 在模拟页中垂直居中 */
  display: flex;
  flex-direction: column;
  color: #17293a;
  font-family: var(--font);
}
.lcd-screen::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background:
    radial-gradient(ellipse 40% 55% at 18% 100%, rgba(120,170,215,.16), transparent 70%),
    radial-gradient(ellipse 45% 60% at 82% 100%, rgba(120,170,215,.14), transparent 70%);
}
.screen-overlay {
  position: absolute; inset: 0; z-index: 10; pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(20,50,80,.025) 0 1px, transparent 1px 4px);
}

/* 顶部飘带与四角 */
.lcd-ribbon { position: absolute; top: 0; height: 21%; width: 27%; z-index: 0; opacity: .34;
  background: linear-gradient(180deg, var(--line-color) 0%, var(--line-color) 55%, rgba(255,255,255,0) 100%); }
.lcd-ribbon-left  { left: 0;  border-bottom-right-radius: 100% 100%; }
.lcd-ribbon-right { right: 0; border-bottom-left-radius: 100% 100%; }
.lcd-ribbon::after { content: ''; position: absolute; inset: 0; opacity: .5;
  background: linear-gradient(180deg, rgba(255,255,255,.8), transparent 70%); }
.lcd-thread { position: absolute; top: 0; left: 0; width: 100%; height: 22%; z-index: 0; }
.lcd-thread path { stroke: var(--line-color); opacity: .3; }
.lcd-corner { position: absolute; width: 3.2%; height: 13%; background: rgba(74,144,217,.22); z-index: 1; }
.lcd-corner.tl { top: 0; left: 0; clip-path: polygon(0 0, 100% 0, 0 100%); }
.lcd-corner.tr { top: 0; right: 0; clip-path: polygon(0 0, 100% 0, 100% 100%); }
.lcd-corner.bl { bottom: 0; left: 0; clip-path: polygon(0 0, 100% 100%, 0 100%); }
.lcd-corner.br { bottom: 0; right: 0; clip-path: polygon(100% 0, 100% 100%, 0 100%); }

/* ---------- 顶部信息栏 ---------- */
.top-bar { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between;
  gap: 1.5%; padding: 1.1% 2%; min-height: 20%; border-bottom: 1px solid rgba(70,120,170,.14); }
.brand-group { display: flex; align-items: center; gap: 10px; flex: 0 0 25%; }
.cd-logo { flex-shrink: 0; line-height: 0; }
.cd-logo text { fill: #0b63b5; }
.line-badge { background: var(--line-color); color: #fff; padding: 5px 14px; border-radius: 999px;
  display: flex; align-items: center; gap: 7px; white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0,0,0,.14), inset 0 0 0 1.5px rgba(0,0,0,.1); }
.line-num { font-size: clamp(20px, 2.3vw, 34px); font-weight: 900; line-height: 1; color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,.28); }
.line-label { font-size: clamp(9px, .85vw, 13px); font-weight: 800; line-height: 1.15; color: #fff; }
.line-label small { font-size: .8em; font-weight: 600; opacity: .9; }
/* 浅色线路（13 号线藤黄、30 号线粉、27 号线霁青等）改用深色字，保证可读 */
.line-badge.on-light, .line-badge.on-light .line-num, .line-badge.on-light .line-label { color: #16273a; }
.line-badge.on-light .line-num { text-shadow: none; }
.clock { font-size: clamp(13px, 1.25vw, 19px); font-weight: 800; color: #fff; background: rgba(20,45,75,.82);
  padding: 4px 9px; border-radius: 6px; font-family: Arial, sans-serif; letter-spacing: 1px; white-space: nowrap; }

.center-info { flex: 1 1 auto; text-align: center; min-width: 0; }
.info-label { display: flex; align-items: baseline; justify-content: center; gap: 8px;
  font-size: clamp(10px, .95vw, 14px); font-weight: 700; color: #33475b; letter-spacing: 1px; }
.info-label small { font-size: .82em; font-weight: 600; color: #7b8b9b; letter-spacing: 0; }
.info-row { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 2px; min-width: 0; max-width: 100%; }
.station-name { font-size: clamp(22px, 2.7vw, 40px); font-weight: 900; color: #16273a; line-height: 1.1; white-space: nowrap;
  min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.station-en { font-size: clamp(12px, 1.25vw, 19px); font-weight: 600; color: #33475b; white-space: nowrap;
  min-width: 0; overflow: hidden; text-overflow: ellipsis; flex-shrink: 1; }
.station-num-badge { font-size: clamp(9px, .8vw, 12px); font-weight: 800; color: #2b6ca8;
  border: 1.5px solid rgba(43,108,168,.55); border-radius: 5px; padding: 1px 6px; background: rgba(255,255,255,.65);
  font-family: Arial, sans-serif; white-space: nowrap; }
.top-transfer { display: flex; justify-content: center; gap: 4px; flex-wrap: wrap; margin-top: 3px; }

.right-info { display: flex; align-items: center; gap: 12px; flex: 0 0 26%; justify-content: flex-end; }
.door-indicator { display: flex; align-items: center; gap: 7px; }
.mini-door { display: flex; align-items: center; gap: 2px; background: rgba(255,255,255,.75);
  border: 1.5px solid rgba(70,110,150,.3); border-radius: 4px; padding: 3px 5px; }
.door-frame { width: 10px; height: 17px; border: 2px solid #3b6ea5; border-radius: 2px; }
.door-icon { font-size: clamp(11px, 1vw, 15px); color: #c2cdd8; font-weight: 900; }
.door-icon.active { color: var(--line-color); }
.door-cn { font-size: clamp(11px, 1.05vw, 16px); font-weight: 800; color: #16273a; white-space: nowrap; }
.door-en { font-size: clamp(7px, .62vw, 10px); color: #6c7d8e; white-space: nowrap; }
.car-no { font-size: clamp(10px, .95vw, 14px); font-weight: 700; color: #8a9bab; white-space: nowrap; }
.terminal-info { text-align: center; border-left: 1.5px solid rgba(70,120,170,.22); padding-left: 12px; min-width: 78px; }
.terminal-label { font-size: clamp(9px, .8vw, 12px); color: #5a6b7c; font-weight: 700; display: flex; gap: 5px;
  justify-content: center; align-items: baseline; white-space: nowrap; }
.terminal-label small { font-size: .82em; color: #8a9bab; font-weight: 600; }
.terminal-name { font-size: clamp(15px, 1.65vw, 25px); font-weight: 900; color: #16273a; line-height: 1.15; white-space: nowrap; }
.terminal-en { font-size: clamp(8px, .72vw, 11px); color: #5a6b7c; font-weight: 600; }
.terminal-segment { font-size: clamp(7px, .65vw, 10px); color: #d1495b; font-weight: 700; }

/* ---------- 通用视图 ---------- */
.view { position: relative; z-index: 2; flex: 1; min-height: 0; display: flex; align-items: center; }

/* ---------- 到站画面 ---------- */
.arrival-view { justify-content: space-between; padding: 0 2.2%; gap: 1.5%; }
.arrival-left { width: 16%; display: flex; flex-direction: column; align-items: center; flex-shrink: 0; }
.door-graphic { display: flex; align-items: center; justify-content: center; gap: 6px;
  background: rgba(255,255,255,.72); border: 1.5px solid rgba(70,110,150,.3); border-radius: 5px; padding: 9px 11px; }
.door-panel { width: 25%; min-width: 26px; height: clamp(52px, 7vw, 92px); background: #e9eef4;
  border: 1.5px solid #b7c5d2; border-radius: 3px; display: flex; align-items: center; justify-content: center; }
.door-panel .window { width: 55%; height: 48%; background: #2b3b4b; border-radius: 2px; }
.door-arrows { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; color: #c2cdd8; font-size: clamp(13px, 1.4vw, 20px); }
.door-arrows .active { color: #4caf50; text-shadow: 0 0 6px rgba(76,175,80,.45); }
.door-caption { margin-top: 8px; text-align: center; }
.door-caption .cn { font-size: clamp(12px, 1.2vw, 18px); font-weight: 800; color: #16273a; }
.door-caption .en { font-size: clamp(7px, .65vw, 10px); color: #6c7d8e; margin-top: 2px; }
.arrival-center { flex: 1; display: flex; align-items: center; justify-content: center; min-width: 0; }
.platform-svg { width: 100%; height: 88%; max-height: 190px; }
.arrival-right { width: 20%; display: flex; flex-direction: column; align-items: center; text-align: center; flex-shrink: 0; }
.big-arrival { font-size: clamp(18px, 2.05vw, 31px); font-weight: 900; color: #16273a; line-height: 1.2; white-space: nowrap; }
.big-arrival .arrived { font-size: .78em; margin-left: 4px; font-weight: 800; }
.big-arrival.terminal { font-size: clamp(15px, 1.6vw, 24px); }
.big-arrival .terminal-red { color: #d1495b; }
.arrival-num { margin-top: 4px; font-size: clamp(11px, 1.1vw, 16px); font-weight: 800; color: #2b6ca8;
  border: 2px solid #2b6ca8; border-radius: 999px; padding: 1px 14px; font-family: Arial, sans-serif; }
.now-line { font-size: clamp(9px, .9vw, 13px); font-weight: 700; color: #33475b; margin-top: 5px; }
.now-line .red { color: #d1495b; }
.arrival-transfer { margin-top: 7px; display: flex; gap: 4px; flex-wrap: wrap; justify-content: center; }

/* 车站形式徽章（v2.1.0：地下 / 地面 / 高架） */
.station-form-badge { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px;
  font-size: clamp(10px, .95vw, 14px); font-weight: 800; color: #33475b; white-space: nowrap;
  background: rgba(255,255,255,.72); border: 1.5px solid rgba(70,110,150,.3); border-radius: 999px; padding: 2px 12px; }
.station-form-badge small { font-size: .7em; font-weight: 600; color: #7b8b9b; letter-spacing: 0; }
.sf-dot { width: 8px; height: 8px; border-radius: 50%; background: #5a6b7c; flex-shrink: 0; }
.station-form-badge.form-underground .sf-dot { background: #4a6fa5; }
.station-form-badge.form-ground .sf-dot { background: #2e9e5b; }
.station-form-badge.form-elevated .sf-dot { background: #e67e22; }
.station-form-badge.form-ground { color: #1f7a45; border-color: rgba(46,158,91,.45); }
.station-form-badge.form-elevated { color: #b06010; border-color: rgba(230,126,34,.5); }

/* v2.2.0 出入口信息：真实出口编号 + 去向 */
.exit-info { margin-top: 6px; width: 100%; text-align: left; }
.exit-info:not(.has-data) { display: none; }
.exit-info-title { font-size: 10px; font-weight: 700; color: #5a6b7c; letter-spacing: .3px; margin-bottom: 3px; }
.exit-info-title b { color: #d1495b; font-size: 11.5px; }
.exit-chips { display: flex; gap: 4px; flex-wrap: wrap; }
.exit-chip { display: inline-flex; align-items: center; gap: 4px; max-width: 100%;
  padding: 1.5px 6px 1.5px 2px; border-radius: 4px; background: #eef3f8; border: 1px solid #d5dfe8;
  font-size: 10px; font-weight: 600; color: #33475a; white-space: nowrap; overflow: hidden; }
.exit-chip i { font-style: normal; font-size: 9.5px; font-weight: 800; color: #3a2f00;
  background: #f2c230; border-radius: 3px; padding: 1px 4px; flex-shrink: 0; }
.exit-more { display: inline-flex; align-items: center; font-size: 10px; font-weight: 700; color: #7b8b9b; padding: 1px 3px; }

/* 换乘徽章：线路色底 + 白字线路号（与真实屏幕一致） */
.xfer-chip { display: inline-flex; align-items: center; justify-content: center; min-width: 19px; height: 18px;
  padding: 0 4px; border-radius: 3px; color: #fff; font-size: 11px; font-weight: 800;
  box-shadow: 0 1px 2px rgba(0,0,0,.16); font-family: Arial, "Microsoft YaHei", sans-serif; }
.xfer-chip-small { display: inline-flex; align-items: center; justify-content: center; min-width: 15px; height: 15px;
  padding: 0 3px; border-radius: 2px; color: #fff; font-size: 9px; font-weight: 800; line-height: 1;
  font-family: Arial, "Microsoft YaHei", sans-serif; }
.top-transfer .xfer-chip, .arrival-transfer .xfer-chip { min-width: 21px; height: 19px; }
.station-transfer .xfer-chip-small, .loop-xfer .xfer-chip-small { font-size: 8px; min-width: 13px; height: 14px; }
.station-transfer { display: flex; gap: 3px; flex-wrap: wrap; justify-content: center; margin-top: 4px; max-width: 118px; }

/* ---------- 全览视图（overview）：容器定位三要素（v2.1.0 曾丢失致布局塌陷，v2.1.3 补回） ---------- */
.overview-view { overflow: hidden; }
.overview-grid { position: relative; width: 100%; height: 100%; min-height: 200px; background: transparent; }
.overview-wrapper { position: absolute; top: 50%; left: 50%; transform-origin: center center; }
.overview-svg { position: absolute; top: 0; left: 0; pointer-events: none; overflow: visible; }
.overview-item .station-transfer { margin-top: 3px; max-width: 118px; gap: 2px; }
.overview-item.closed .ov-cn, .loop-label-inner.closed .ov-cn { color: #e08a8a; }
.overview-item.closed .ov-num, .loop-label-inner.closed .ov-num { color: #e6b0b0; }
.overview-item.planning .ov-cn, .loop-label-inner.planning .ov-cn { color: #e9a33c; }
.overview-item.planning .ov-num, .loop-label-inner.planning .ov-num { color: #f0c58a; }

/* ---------- 横向圆点线路图 ---------- */
.timeline-view, .overview-view, .endpoints-view { padding: 0 2.2%; }
.map-frame { position: relative; width: 100%; height: 84%; border: 1.5px solid rgba(74,144,217,.35);
  border-radius: 5px; background: rgba(255,255,255,.28); }
.single-line-container { position: relative; width: 100%; height: 100%; }
.map-track { position: absolute; left: 3%; right: 3%; top: 50%; height: 12px; transform: translateY(-50%);
  background: linear-gradient(90deg, #b9c4cf 0%, #b9c4cf 38%, var(--line-color) 38%, var(--line-color) 100%);
  border-radius: 6px; box-shadow: inset 0 0 0 2px rgba(255,255,255,.55); }
/* 真屏为深蓝色连续人字箭头带，已过/未到区间均可见 */
.map-arrows { position: absolute; left: 3%; right: 3%; top: 50%; transform: translateY(-50%);
  display: flex; align-items: center; justify-content: space-between;
  color: rgba(28,62,100,.58); font-size: clamp(11px, 1.15vw, 17px); font-weight: 900;
  line-height: 1; pointer-events: none; z-index: 1; }
.map-arrows span { flex: 0 0 auto; }
.map-station { position: absolute; top: 50%; width: 9%; transform: translateX(-50%); z-index: 2; }
.map-node { position: absolute; left: 50%; top: 0; transform: translate(-50%, -50%); width: 19px; height: 19px;
  border-radius: 50%; background: #f7fbff; border: 4px solid #aebbc8; box-sizing: border-box; }
.map-station.passed .map-node { border-color: #aebbc8; background: #c9d3dd; }
.map-station.current .map-node { border-color: var(--line-color); background: #fff;
  width: 27px; height: 27px; box-shadow: 0 0 0 4px rgba(74,144,217,.18); }
.map-station.closed .map-node { border-style: dashed; border-color: #e08a8a; }
.map-station.planning .map-node { border-style: dashed; border-color: #e9a33c; }
.map-label { position: absolute; left: 50%; transform: translateX(-50%); width: 150px; text-align: center; }
.map-station.above .map-label { bottom: 18px; }
.map-station.below .map-label { top: 18px; }
.map-cn { font-size: clamp(10px, 1vw, 15px); font-weight: 800; color: #233648; line-height: 1.15; white-space: nowrap; }
.map-station.current .map-cn { color: var(--line-color); font-size: clamp(12px, 1.2vw, 18px); }
.map-station.passed .map-cn, .map-station.passed .map-en, .map-station.passed .map-num { color: #a4b0bd; }
.map-station.closed .map-cn { color: #e08a8a; }
.map-station.planning .map-cn { color: #e9a33c; }
.map-en { font-size: clamp(7px, .62vw, 10px); color: #7b8b9b; line-height: 1.15; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; }
.map-num { font-size: clamp(7px, .62vw, 10px); color: #8a9bab; font-family: Arial, sans-serif; margin-top: 1px; }
.map-xfer { display: flex; gap: 2px; flex-wrap: wrap; justify-content: center; margin-top: 2px; }
.map-station.above .map-xfer, .map-station.below .map-xfer { position: static; margin-top: 2px; }
.map-footnote { position: absolute; left: 1.2%; bottom: 2%; font-size: clamp(7px, .62vw, 10px); color: #8a9bab; }
.map-legend { position: absolute; right: 1.2%; bottom: 4%; display: flex; flex-direction: column; gap: 1px;
  font-size: clamp(7px, .62vw, 10px); color: #5a6b7c; text-align: right; }

/* ---------- 全览 / 起终点：统一浅色风格 ---------- */
.overview-item { position: absolute; width: 120px; display: flex; flex-direction: column; align-items: center; text-align: center; z-index: 1; pointer-events: none; transform: translateX(-50%); }
.overview-item .ov-node { width: 22px; height: 22px; border-radius: 50%; background: #f7fbff; border: 5px solid var(--line-color); box-sizing: border-box; margin-bottom: 6px; position: relative; z-index: 2; }
.overview-item.current .ov-node { background: #fff; border-color: var(--line-color); transform: scale(1.25); box-shadow: 0 0 0 4px rgba(74,144,217,.18); }
.overview-item.passed .ov-node { border-color: #aebbc8; background: #d6dee6; }
.overview-item.closed .ov-node { border-style: dashed; border-color: #e08a8a; background: #fff; }
.overview-item.planning .ov-node { border-style: dashed; border-color: #e9a33c; background: #fff8e1; }
.overview-item .ov-cn, .loop-label-inner .ov-cn { color: #233648; }
.overview-item .ov-num { background: rgba(255,255,255,.7); color: #8a9bab; }
.overview-item.current .ov-cn, .loop-label-inner.current .ov-cn { color: var(--line-color); }
.loop-node-overlay { position: absolute; width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 5px solid var(--line-color); box-sizing: border-box; transform: translate(-50%, -50%); pointer-events: none; z-index: 3; }
.loop-node-overlay.current { background: #fff; border-color: var(--line-color); transform: translate(-50%, -50%) scale(1.35); box-shadow: 0 0 0 5px rgba(74,144,217,.18); z-index: 4; }
.loop-node-overlay.passed { border-color: #aebbc8; background: #d6dee6; }
.loop-node-overlay.closed { border-style: dashed; border-color: #e08a8a; background: #fff; }
.loop-node-overlay.planning { border-style: dashed; border-color: #e9a33c; background: #fff8e1; }
.loop-label-inner { position: absolute; transform: translate(-50%, -50%); text-align: center; pointer-events: none; z-index: 2; max-width: 120px; line-height: 1.15; }
.loop-label-inner .ov-cn { font-size: 13px; font-weight: 800; white-space: nowrap; margin: 0; }
.loop-label-inner .ov-num { font-size: 10px; color: #8a9bab; font-family: monospace; background: transparent; padding: 0; margin: 1px 0 0 0; line-height: 1.1; }
.loop-label-inner.current .ov-cn { color: var(--line-color); font-size: 15px; }
.loop-label-inner.current .ov-num { color: var(--line-color); font-weight: bold; }
.loop-label-inner.passed { opacity: 0.45; }
.loop-label-inner .loop-xfer { display: flex; gap: 2px; justify-content: center; margin-top: 2px; flex-wrap: wrap; }
/* v2.1.6：环线真屏逻辑配套样式 */
.loop-label-inner.align-left { text-align: left; }
.loop-label-inner.align-right { text-align: right; }
.loop-center-cap { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); text-align: center;
  pointer-events: none; z-index: 1; display: flex; flex-direction: column; gap: 4px; align-items: center; max-width: 420px; }
.loop-center-cap b { font-size: 20px; font-weight: 800; color: #233648; letter-spacing: 1px; }
.loop-center-cap .cap-dir { font-size: 15px; font-weight: 700; color: var(--line-color); }
.loop-center-cap > span:not(.cap-dir):not(.cap-note) { font-size: 11px; color: #8a9bab; white-space: normal; }
.loop-center-cap .cap-note { font-size: 11px; color: #6c7f91; padding: 2px 12px; border: 1px solid #c9d4de;
  border-radius: 999px; background: rgba(255,255,255,.7); }
.terminal-toward { font-size: 10px; color: #33566f; font-weight: 700; letter-spacing: .3px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 150px; }
.endpoint-sub { font-size: 12px; font-weight: 700; color: var(--line-color); margin-top: 4px; }

/* ============================================================
   v2.1.7 环线全览：官方 37 寸 LCD 动态地图长条直带样式（真屏实拍核对）
   全部站点沿一条水平轨道带排布，已过段灰 / 未到段线路色，
   未到站上方蓝色圆圈预计到站分钟数，右端「内环运行 / 外环运行」徽章
   ============================================================ */
.loop-strip { position: absolute; left: 0; right: 0; top: 54%; height: 96%;
  transform: translateY(-50%); z-index: 1; }
.loop-strip .map-station { width: 5%; }
.loop-strip .map-label { width: 74px; }
.loop-strip .map-cn { font-size: 11px; }
.loop-strip .map-en { display: none; }
.loop-strip .map-num { font-size: 8.5px; margin-top: 0; }
.loop-strip .map-node { width: 13px; height: 13px; border-width: 4px; }
.loop-strip .map-station.current .map-cn { font-size: 13px; }
.loop-strip .xfer-chip-small { font-size: 7px; min-width: 11px; height: 12px; }
/* 未到站预计到站分钟数（真屏蓝色圆圈） */
.map-min { display: inline-flex; align-items: center; justify-content: center;
  min-width: 20px; height: 20px; padding: 0 3px; border-radius: 999px;
  background: #eaf3fb; border: 1.5px solid #4a90d9; color: #2b6cb0;
  font-size: 10.5px; font-weight: 800; font-family: Arial, sans-serif;
  margin-bottom: 2px; }
/* 右端「内环运行 / 外环运行」徽章（真屏同款圆角牌） */
.loop-run-badge { position: absolute; right: .4%; top: 50%; transform: translateY(-50%);
  background: var(--line-color); color: #fff; border-radius: 10px;
  padding: 7px 12px; text-align: center; font-size: 14px; font-weight: 800;
  letter-spacing: 1px; box-shadow: 0 2px 8px rgba(40,80,120,.25);
  pointer-events: none; z-index: 3; white-space: nowrap; }
.loop-run-badge span { display: block; font-size: 8.5px; font-weight: 600;
  opacity: .82; letter-spacing: .3px; margin-top: 1px; }
/* 顶部方向标注条（环线名 + 内/外环 + 前方重点站方向 + 顺逆时针） */
.loop-strip-cap { position: absolute; left: 50%; top: 3%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  text-align: center; pointer-events: none; z-index: 1; max-width: 90%; }
.loop-strip-cap b { font-size: 17px; font-weight: 800; color: #233648; letter-spacing: 1px; }
.loop-strip-cap .cap-dir { font-size: 14px; font-weight: 700; color: var(--line-color); }
.loop-strip-cap > span:not(.cap-dir) { font-size: 11px; color: #8a9bab; }
/* 底部脚注（真屏同款说明） */
.loop-strip-note { position: absolute; left: 1.2%; bottom: 2.5%; font-size: 10px;
  color: #8a9bab; pointer-events: none; z-index: 1; }

.endpoints-container { gap: 30px; display: flex; align-items: center; justify-content: center; width: 100%; }
.endpoint-card { flex: 1; max-width: 400px; background: rgba(255,255,255,.72); border: 3px solid var(--line-color);
  border-radius: 14px; box-shadow: 0 6px 20px rgba(40,80,120,.12); padding: 4% 2%; text-align: center; }
.endpoint-card.end { border-color: var(--line-color); }
.endpoint-label { color: #5a6b7c; font-size: clamp(10px, .95vw, 14px); font-weight: 700; letter-spacing: 3px; margin-bottom: 12px; }
.endpoint-label small { font-size: .8em; color: #8a9bab; }
.endpoint-name { color: #16273a; font-size: clamp(24px, 3vw, 44px); font-weight: 900; margin-bottom: 8px; }
.endpoint-card.end .endpoint-name { color: var(--line-color); }
.endpoint-en { color: #5a6b7c; font-size: 16px; font-weight: 600; }
.endpoint-arrow { color: var(--line-color); font-size: clamp(30px, 3.6vw, 54px); font-weight: 900; }
.endpoints-view { justify-content: center; align-items: center; flex-direction: column; }

/* ---------- v2.1.4：单行 / 运行模式卡片收敛（原尺寸占满整屏过于夸张） ---------- */
.endpoints-container { gap: 3.5%; }
.endpoint-card { max-width: 300px; padding: 2.2% 1.8%; border-width: 2.5px; border-radius: 12px;
  box-shadow: 0 4px 14px rgba(40,80,120,.10); }
.endpoint-label { letter-spacing: 2px; margin-bottom: 8px; }
.endpoint-name { font-size: clamp(20px, 2.3vw, 36px); margin-bottom: 6px; }
.endpoint-en { font-size: clamp(12px, 1.05vw, 16px); }
.endpoint-arrow { font-size: clamp(24px, 2.8vw, 42px); }
.endpoints-mode { margin-bottom: 1%; }
.endpoints-mode .mode-badge { padding: 4px 14px; }

/* ---------- v2.1.4：运行交路编辑 ---------- */
.section-note { font-size: clamp(10px, .8vw, 12px); font-weight: 500; color: #8a97a6; margin-left: 8px; letter-spacing: 0; }
.run-editor { display: flex; flex-direction: column; gap: 10px; }
.run-editor-list { display: flex; flex-direction: column; gap: 6px; max-height: 180px; overflow-y: auto; }
.run-editor-list:empty::after { content: '本线路暂无交路（可在下方添加自定义交路）'; display: block;
  padding: 10px 12px; color: #8a97a6; font-size: clamp(11px, .9vw, 13px); background: #f6f9fc;
  border: 1px dashed #c3cdd7; border-radius: 8px; }
.run-item { display: flex; align-items: center; gap: 10px; padding: 7px 12px; border-radius: 8px;
  background: #f6f9fc; border: 1px solid #e1e8f0; font-size: clamp(11px, .95vw, 14px); }
.run-item b { color: #233648; }
.run-item .run-range { color: #4a90d9; font-weight: 700; }
.run-item .run-note { color: #8a97a6; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.run-tag { flex: 0 0 auto; padding: 1px 8px; border-radius: 999px; font-size: 10px; font-weight: 800; letter-spacing: 1px; }
.run-tag.official { background: #e8f1fb; color: #2b6cb0; border: 1px solid #b9d4ee; }
.run-tag.custom { background: #e3f4e8; color: #1f7a3d; border: 1px solid #9fd8b0; }
.run-item .run-del { flex: 0 0 auto; padding: 2px 10px; border-radius: 6px; border: 1px solid #e3b6b6;
  background: #fdf1f1; color: #c0504d; font-size: 11px; cursor: pointer; }
.run-item .run-del:hover { background: #fbe4e4; }
.run-editor-form { flex-wrap: wrap; }
.run-editor-form .run-edit-arrow { color: #8a97a6; font-weight: 800; flex: 0 0 auto; }
.text-input { flex: 0 0 auto; padding: 8px 12px; border: 1.5px solid #c9d4e0; border-radius: 8px;
  font-size: clamp(12px, 1vw, 14px); color: #17293a; background: #fff; outline: none;
  font-family: var(--font); min-width: 150px; }
.text-input:focus { border-color: #4a90d9; box-shadow: 0 0 0 3px rgba(74,144,217,.12); }
.grow2 { flex: 1 1 160px !important; min-width: 120px !important; }
.run-editor-actions { margin-top: 2px; }
.run-editor-msg { font-size: clamp(11px, .9vw, 13px); color: #1f7a3d; }
.run-editor-msg.err { color: #c0504d; }

/* ---------- v2.1.2 运行模式 / 单行模式 徽章与运行信息条 ---------- */
.endpoints-mode { display: flex; align-items: center; gap: 14px; justify-content: center; margin-bottom: 1.8%; width: 100%; }
.endpoints-mode .mode-badge { padding: 5px 18px; border-radius: 999px; font-size: clamp(11px, 1vw, 15px);
  font-weight: 800; letter-spacing: 2px; background: #eef2f6; color: #5a6b7c; border: 1.5px solid #c3cdd7; }
.endpoints-mode.is-real-run .mode-badge { background: #e3f4e8; color: #1f7a3d; border-color: #9fd8b0; }
.endpoints-mode .mode-desc { font-size: clamp(10px, .85vw, 13px); color: #6b7d8f; }
.timeline-view { flex-direction: column; justify-content: center; gap: 8px; }
.timeline-view .map-frame { height: 68%; flex: 0 0 auto; }
.timeline-runinfo { position: static; width: 94%; margin: 0 auto; display: flex; align-items: center;
  justify-content: center; gap: 4%; padding: 8px 14px; border-radius: 8px; flex: 0 0 auto;
  background: rgba(255,255,255,.66); border: 1.5px solid rgba(74,144,217,.30); }
.timeline-runinfo .tri-mode { padding: 3px 12px; border-radius: 999px; background: #eef2f6; color: #5a6b7c;
  font-weight: 700; font-size: clamp(10px, .85vw, 13px); border: 1px solid #c3cdd7; white-space: nowrap; }
.timeline-runinfo .tri-mode.real { background: #e3f4e8; color: #1f7a3d; border-color: #9fd8b0; }
.timeline-runinfo .tri-seg { font-size: clamp(12px, 1.1vw, 17px); color: #33475a; font-weight: 600; white-space: nowrap; }
.timeline-runinfo .tri-seg b { color: var(--line-color); font-weight: 900; }
.timeline-runinfo .tri-cars { font-size: clamp(10px, .85vw, 13px); color: #6b7d8f; white-space: nowrap; }
/* 设置页：运行交路提示 */
.run-hint { margin-top: 7px; font-size: 12px; color: #5a6b7c; line-height: 1.6;
  background: #f2f7fb; border-left: 3px solid var(--line-color, #0e63b5); padding: 8px 12px; border-radius: 4px; }

/* ---------- 全屏 ---------- */
body.fullscreen-mode .lcd-screen {
  width: min(100vw, calc(100vh * 3.6)) !important;
  height: min(100vh, calc(100vw / 3.6)) !important;
  aspect-ratio: auto !important;
  border-radius: 0 !important; box-shadow: none !important; border: none !important; outline: none !important;
}

/* ============================================================
   v2.0.8 —— 远期规划线路显示逻辑
   ============================================================ */
.planning-tag { position: absolute; right: 2.2%; top: 21.5%; z-index: 3;
  font-size: clamp(9px, .85vw, 13px); font-weight: 800; letter-spacing: .5px;
  color: #a46100; background: rgba(255,243,214,.94);
  border: 1px solid rgba(210,150,40,.55); border-radius: 4px; padding: 2px 8px; }
.planning-tag.hidden { display: none; }
.lcd-screen.is-planning::after { content: '远期规划线路模拟';
  position: absolute; inset: 20% 0 0; z-index: 1; pointer-events: none;
  display: flex; align-items: center; justify-content: center;
  font-size: clamp(26px, 5vw, 78px); font-weight: 900; letter-spacing: 8px;
  color: rgba(180,110,20,.075); }
.lcd-screen.is-planning .map-node,
.lcd-screen.is-planning .ov-node,
.lcd-screen.is-planning .station-node { border-style: dashed; }
.xfer-planning { box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.95) !important; }

/* ---------- v2.2.1 品牌启动动画 ---------- */
.splash { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(150deg, #053f78 0%, #08579f 40%, #0b74c6 75%, #1298dd 100%);
  opacity: 1; transition: opacity .55s ease, visibility .55s ease; }
.splash.splash-out { opacity: 0; visibility: hidden; pointer-events: none; }
.splash-card { display: flex; flex-direction: column; align-items: center; gap: 10px; color: #fff;
  animation: splash-up .8s cubic-bezier(.2,.8,.25,1) both; }
.splash-icon { width: 108px; height: 108px; filter: drop-shadow(0 10px 26px rgba(0,0,0,.35));
  animation: splash-icon-pop .9s cubic-bezier(.2,.9,.3,1.4) both; }
.splash-title { font-size: 26px; font-weight: 900; letter-spacing: 2px; animation: splash-up .8s .18s cubic-bezier(.2,.8,.25,1) both; }
.splash-sub { font-size: 12.5px; opacity: .82; letter-spacing: 1.5px; animation: splash-up .8s .3s cubic-bezier(.2,.8,.25,1) both; }
.splash-bar { width: 240px; height: 4px; border-radius: 999px; background: rgba(255,255,255,.22); overflow: hidden; margin-top: 14px;
  animation: splash-up .8s .4s cubic-bezier(.2,.8,.25,1) both; }
.splash-bar i { display: block; width: 0; height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, #bfe3f7, #ffffff); animation: splash-load 1.5s .35s cubic-bezier(.3,.6,.4,1) forwards; }
.splash-ver { font-size: 10.5px; opacity: .6; letter-spacing: 1px; font-family: Arial, sans-serif;
  animation: splash-up .8s .5s cubic-bezier(.2,.8,.25,1) both; }
@keyframes splash-up { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: translateY(0); } }
@keyframes splash-icon-pop { from { opacity: 0; transform: scale(.55) rotate(-8deg); } to { opacity: 1; transform: scale(1) rotate(0); } }
@keyframes splash-load { from { width: 0; } to { width: 100%; } }

/* ---------- v2.2.1 全新主页 ---------- */
.hero-brand { display: flex; align-items: center; gap: 22px; position: relative; z-index: 1; }
.hero-app-icon { width: 84px; height: 84px; flex-shrink: 0; filter: drop-shadow(0 8px 20px rgba(0,0,0,.28)); }
.hero-brand h1 { margin: 0; }
.hero-brand .hero-sub { margin-top: 6px; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.feature-card { background: var(--card-bg); border: 1px solid var(--card-border); border-radius: 14px; padding: 16px 18px;
  display: flex; flex-direction: column; gap: 6px; transition: transform .18s, box-shadow .18s; }
.feature-card:hover { transform: translateY(-3px); box-shadow: 0 10px 26px rgba(9,86,168,.12); }
.feature-card .fc-icon { width: 38px; height: 38px; border-radius: 10px; display: flex; align-items: center; justify-content: center;
  font-size: 19px; font-style: normal; }
.feature-card b { font-size: 15px; color: var(--text, #16273a); }
.feature-card span { font-size: 12px; color: var(--muted, #6b7c8d); line-height: 1.5; }

/* ---------- v2.2.1 列车进站动画 ---------- */
@keyframes train-enter-left { 0% { transform: translateX(-1000px); opacity: 1; } 72% { opacity: 1; } 100% { transform: translateX(0); opacity: 1; } }
@keyframes train-enter-right { 0% { transform: translateX(1000px); opacity: 1; } 72% { opacity: 1; } 100% { transform: translateX(0); opacity: 1; } }
#trainAnimG.anim-left { animation: train-enter-left 2.35s cubic-bezier(.1,.86,.24,1) both; }
#trainAnimG.anim-right { animation: train-enter-right 2.35s cubic-bezier(.1,.86,.24,1) both; }

/* ============================================================
   v2.2.2 —— 编辑中心（所有编辑功能统一）+ 音效与报站
   ============================================================ */
/* 编辑中心左侧分类导航 */
.ed-tabs { width: 172px; flex: 0 0 172px; border-right: 1px solid var(--card-border); background: #f8fafc;
  display: flex; flex-direction: column; gap: 6px; padding: 16px 12px; }
.ed-tab { padding: 11px 14px; font-size: 14px; font-weight: 700; color: var(--muted); background: transparent;
  border: 1px solid transparent; border-radius: 9px; cursor: pointer; text-align: left; transition: all .18s; font-family: var(--font); }
.ed-tab:hover { color: var(--primary); background: rgba(9,86,168,.07); }
.ed-tab.active { color: #fff; background: var(--primary); box-shadow: 0 4px 12px rgba(9,86,168,.25); }
.ed-content { flex: 1; min-width: 0; overflow-y: auto; display: flex; }
.ed-tabpane { flex: 1; min-width: 0; }
.ed-tabpane.ed-pane-flex { display: flex; align-items: stretch; }
.ed-pane-pad { padding: 22px 28px; width: 100%; }

/* 音效开关（拟物拨杆） */
.audio-switches { display: flex; gap: 26px; flex-wrap: wrap; margin-bottom: 14px; }
.audio-switch { display: flex; align-items: center; gap: 9px; font-size: 14px; font-weight: 600;
  color: var(--text-color); cursor: pointer; user-select: none; }
.audio-switch input { display: none; }
.audio-switch i { width: 42px; height: 23px; border-radius: 999px; background: #cdd7e1; position: relative;
  transition: background .2s; flex-shrink: 0; }
.audio-switch i::after { content: ''; position: absolute; left: 3px; top: 3px; width: 17px; height: 17px;
  border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 1px 3px rgba(0,0,0,.25); }
.audio-switch input:checked + i { background: #2e9e5b; }
.audio-switch input:checked + i::after { transform: translateX(19px); }
.settings-group.au-vol { max-width: 420px; }
.settings-group.au-vol label { display: flex; justify-content: space-between; }
.au-vol input[type="range"] { width: 100%; accent-color: var(--primary); cursor: pointer; }

/* 报站词编辑 */
.tpl-legend { font-size: 12px; color: var(--muted); margin-bottom: 12px; line-height: 2.1; }
.tpl-legend code { background: #eef3f8; border: 1px solid #d7e1ea; border-radius: 4px; padding: 1px 6px;
  font-size: 11px; color: #2b6ca8; margin: 0 2px; white-space: nowrap; }
.tpl-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tpl-item { display: flex; flex-direction: column; gap: 5px; }
.tpl-item label { font-size: 12.5px; font-weight: 700; color: #46586b; }
.tpl-item textarea { width: 100%; padding: 9px 12px; font-size: 13px; line-height: 1.6; border-radius: 8px;
  border: 1px solid #d7dee7; background: #fbfcfe; color: var(--text-color); outline: none; resize: vertical;
  font-family: var(--font); transition: border-color .2s, box-shadow .2s; }
.tpl-item textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(9,86,168,.12); }
.tpl-actions { margin-top: 14px; flex-wrap: wrap; }
.tpl-actions .btn-primary, .tpl-actions .btn-secondary { margin-bottom: 0; }

/* 模拟控制条：报站静音态 */
.ctl-btn.muted { background: #fdecec; border-color: #f5c6c0; color: #c0392b; }
.ctl-btn.muted:hover { background: #f9d8d5; }

/* ============ v2.2.3 新增样式 ============ */

/* 编辑中心：详情区双列表单网格（解决竖排拥挤） */
.editor-detail-col { flex: 1; display: flex; flex-direction: column; gap: 12px; height: 100%; min-width: 0; overflow-y: auto; overflow-x: hidden; }
.editor-detail-col .inline-row input { min-width: 0; }
.ed-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 14px; }
.ed-form-grid input, .ed-form-grid select { width: 100%; min-width: 0; }
.ed-form-grid .settings-group { margin: 0; }
.editor-detail-actions { display: flex; flex-direction: row; gap: 8px; margin-top: 4px; flex-wrap: wrap; }
.editor-detail-actions .btn-primary, .editor-detail-actions .btn-secondary { margin-bottom: 0; white-space: nowrap; }
.editor-top .settings-group.grow { flex: 1; }

/* 线网线路图模块 */
.map-panel-card { display: flex; flex-direction: column; height: 100%; min-height: 0; }
.map-switch { display: inline-flex; align-items: center; gap: 8px; }
.map-tab { padding: 7px 16px; font-size: 13px; font-weight: 700; color: #46586b; background: #eef3f8;
  border: 1px solid #d7e1ea; border-radius: 8px; cursor: pointer; transition: all .18s; font-family: var(--font); }
.map-tab:hover { border-color: var(--primary); color: var(--primary); }
.map-tab.active { background: var(--primary); border-color: var(--primary); color: #fff; box-shadow: 0 2px 6px rgba(9,86,168,.25); }
.map-zoom-gap { display: inline-block; width: 14px; }
.map-zoom { width: 34px; height: 32px; font-size: 15px; font-weight: 700; color: #46586b; background: #fff;
  border: 1px solid #d7e1ea; border-radius: 8px; cursor: pointer; transition: all .18s; line-height: 1;
  font-family: var(--font); }
.map-zoom:hover { border-color: var(--primary); color: var(--primary); background: #f2f7fc; }
.map-view-box { flex: 1; min-height: 0; overflow: auto; background: #f8fbfd; border: 1px solid #d7e1ea;
  border-radius: 10px; padding: 0; cursor: grab; user-select: none; -webkit-user-select: none; }
.map-view-box.map-grabbing { cursor: grabbing; }
.map-holder { transform-origin: 0 0; width: 100%; }
.map-holder svg { display: block; width: 100%; height: auto; }

/* ============================================================
   V3.0.0 —— 多城市 UI（城市选择器 / 城市徽标 / 线网示意图）
   ============================================================ */
.city-picker { margin-top: 18px; background: #ffffff; border: 1px solid #e3e8ef; border-radius: 14px; padding: 16px 18px 14px; box-shadow: 0 1px 4px rgba(30,50,80,.05); }
.cp-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.cp-head h3 { margin: 0; font-size: 16px; color: #243244; }
.cp-head h3 small { color: #8a97a8; font-weight: 400; margin-left: 6px; font-size: 12px; }
.cp-head input { flex: 0 1 340px; padding: 8px 12px; border: 1px solid #d7dfe9; border-radius: 9px; font-size: 13px; outline: none; font-family: inherit; }
.cp-head input:focus { border-color: var(--city-accent, #0b74c6); box-shadow: 0 0 0 3px rgba(11,116,198,.12); }
.city-grid { margin-top: 12px; display: grid; grid-template-columns: repeat(auto-fill, minmax(172px, 1fr)); gap: 10px; max-height: 360px; overflow-y: auto; padding: 2px 6px 8px 2px; }
.city-card { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 10px 12px 10px 16px; background: #f7f9fc; border: 1.5px solid #e3e8ef; border-radius: 11px; cursor: pointer; text-align: left; transition: all .15s ease; font-family: inherit; }
.city-card:hover { border-color: var(--city-accent, #0b74c6); background: #eef4fb; transform: translateY(-1px); }
.city-card.active { border-color: var(--city-accent, #0b74c6); box-shadow: inset 0 0 0 1px var(--city-accent, #0b74c6); background: #eef4fb; }
.cc-dot { position: absolute; left: 0; top: 0; bottom: 0; width: 5px; border-radius: 11px 0 0 11px; }
.cc-name { font-size: 14.5px; font-weight: 700; color: #243244; }
.cc-en { font-size: 10.5px; color: #8a97a8; letter-spacing: .3px; }
.cc-meta { font-size: 11px; color: #67788c; margin-top: 1px; }
.cc-cur { position: absolute; right: 9px; top: 9px; font-size: 10px; color: #fff; background: var(--city-accent, #0b74c6); border-radius: 6px; padding: 1.5px 7px; }
.cp-note { margin: 10px 0 0; font-size: 12px; color: #8a97a8; line-height: 1.6; }
.city-logo-text { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.18; padding-left: 12px; border-left: 4px solid #0b74c6; }
.city-logo-text b { font-size: 20px; font-weight: 800; letter-spacing: 2px; }
.city-logo-text small { font-size: 9.5px; color: #6c7a8a; letter-spacing: 1px; text-transform: uppercase; }
.net-schema { display: block; width: 100%; height: auto; }
.brand-mark-text { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px; color: #fff; font-size: 22px; font-weight: 800; }

/* ============================================================
   V3.0.1 —— 城市选择页（启动闸门）
   ============================================================ */
body.gate-mode .topbar { display: none; }
.city-gate { justify-content: flex-start; padding: 24px 4% 18px; }
.gate-wrap { width: min(1200px, 100%); margin: 0 auto; background: var(--card-bg, #fff);
  border: 1px solid var(--card-border, #e3e8ef); border-radius: 18px; padding: 18px 22px 16px;
  box-shadow: 0 10px 34px rgba(20, 40, 70, .08); }
.gate-head { display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding-bottom: 14px; border-bottom: 1px solid #eef2f7; }
.gate-brand { display: flex; align-items: center; gap: 14px; }
.gate-icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; font-size: 25px;
  background: linear-gradient(135deg, #0656a8, #1094d6); box-shadow: 0 6px 16px rgba(10, 111, 192, .28); }
.gate-title h1 { margin: 0; font-size: 22px; font-weight: 800; color: #1f2b38; letter-spacing: .5px; }
.gate-title h1 small { font-size: 11px; font-weight: 600; color: #8a97a8; letter-spacing: 1.5px; margin-left: 8px; }
.gate-title p { margin: 4px 0 0; font-size: 12.5px; color: #67788c; }
.gate-title p span { color: var(--city-accent, #0b74c6); font-weight: 800; }
.gate-exit { height: 38px; flex-shrink: 0; padding: 0 16px; border-radius: 999px; cursor: pointer;
  border: 1px solid #e3e8ef; background: #f7f9fc; color: #7a8898; font-size: 13px; font-weight: 700;
  font-family: inherit; letter-spacing: 1px; line-height: 1; transition: all .18s ease; }
.gate-exit:hover { background: #ffecec; border-color: #f3bdbd; color: #d1495b; }
.city-gate .city-picker { margin-top: 14px; background: transparent; border: none; box-shadow: none; padding: 0; }
.city-gate .city-grid { max-height: calc(100vh - 250px); grid-template-columns: repeat(auto-fill, minmax(178px, 1fr)); }
.city-gate .cp-note { margin-top: 8px; }

/* ============================================================
   V3.0.1 —— LCD 屏皮肤（按城市真实车载屏风格）
   ------------------------------------------------------------
   默认（chengdu3）= 原有浅蓝白大屏，颜色与改造前逐项对齐；
   其余皮肤通过调色板变量 + 少量结构覆盖实现。
   ============================================================ */
.lcd-screen[data-lcdstyle] {
  --lcd-fg: #16273a;
  --lcd-fg2: #33475b;
  --lcd-fg3: #7b8b9b;
  --lcd-panel: rgba(255, 255, 255, .72);
  --lcd-panel-solid: #ffffff;
  --lcd-border: rgba(70, 110, 150, .28);
  --lcd-node-bg: #f7fbff;
  --lcd-bg: linear-gradient(180deg, #eaf3fc 0%, #f8fbff 42%, #f2f8fe 78%, #e6f0fb 100%);
  background: var(--lcd-bg);
}
/* 主文字 */
.lcd-screen[data-lcdstyle] .station-name,
.lcd-screen[data-lcdstyle] .terminal-name,
.lcd-screen[data-lcdstyle] .door-cn,
.lcd-screen[data-lcdstyle] .door-caption .cn,
.lcd-screen[data-lcdstyle] .big-arrival,
.lcd-screen[data-lcdstyle] .loop-center-cap b { color: var(--lcd-fg); }
/* 次级文字 */
.lcd-screen[data-lcdstyle] .info-label,
.lcd-screen[data-lcdstyle] .station-en,
.lcd-screen[data-lcdstyle] .now-line,
.lcd-screen[data-lcdstyle] .station-form-badge,
.lcd-screen[data-lcdstyle] .exit-chip,
.lcd-screen[data-lcdstyle] .map-cn,
.lcd-screen[data-lcdstyle] .overview-item .ov-cn,
.lcd-screen[data-lcdstyle] .loop-label-inner .ov-cn { color: var(--lcd-fg2); }
/* 弱文字 */
.lcd-screen[data-lcdstyle] .info-label small,
.lcd-screen[data-lcdstyle] .terminal-label,
.lcd-screen[data-lcdstyle] .terminal-label small,
.lcd-screen[data-lcdstyle] .terminal-en,
.lcd-screen[data-lcdstyle] .car-no,
.lcd-screen[data-lcdstyle] .door-en,
.lcd-screen[data-lcdstyle] .door-caption .en,
.lcd-screen[data-lcdstyle] .map-en,
.lcd-screen[data-lcdstyle] .map-num,
.lcd-screen[data-lcdstyle] .map-footnote,
.lcd-screen[data-lcdstyle] .map-legend,
.lcd-screen[data-lcdstyle] .overview-item .ov-num,
.lcd-screen[data-lcdstyle] .loop-label-inner .ov-num,
.lcd-screen[data-lcdstyle] .exit-info-title { color: var(--lcd-fg3); }
/* 卡片 / 描边 */
.lcd-screen[data-lcdstyle] .door-graphic,
.lcd-screen[data-lcdstyle] .mini-door,
.lcd-screen[data-lcdstyle] .station-form-badge,
.lcd-screen[data-lcdstyle] .station-num-badge { background: var(--lcd-panel); border-color: var(--lcd-border); }
.lcd-screen[data-lcdstyle] .map-frame { background: var(--lcd-panel); border-color: var(--lcd-border); }
.lcd-screen[data-lcdstyle] .door-panel { background: var(--lcd-panel-solid); border-color: var(--lcd-border); }
.lcd-screen[data-lcdstyle] .top-bar { border-bottom-color: var(--lcd-border); }
.lcd-screen[data-lcdstyle] .terminal-info { border-left-color: var(--lcd-border); }
.lcd-screen[data-lcdstyle] .map-node,
.lcd-screen[data-lcdstyle] .overview-item .ov-node,
.lcd-screen[data-lcdstyle] .loop-node-overlay { background: var(--lcd-node-bg); }
.lcd-screen[data-lcdstyle] .map-station.current .map-node,
.lcd-screen[data-lcdstyle] .overview-item.current .ov-node,
.lcd-screen[data-lcdstyle] .loop-node-overlay.current { background: var(--lcd-node-bg); }
.lcd-screen[data-lcdstyle] .exit-chip { background: var(--lcd-panel); border-color: var(--lcd-border); }
.lcd-screen[data-lcdstyle] .screen-overlay { background: repeating-linear-gradient(0deg, rgba(20, 50, 80, .022) 0 1px, transparent 1px 4px); }

/* ---------- 重庆：暗青色底 + 浅葱蓝点缀（对应 18 号线实拍「背景暗青色」） ---------- */
.lcd-screen[data-lcdstyle="cq"] {
  --lcd-fg: #f3f9ff;
  --lcd-fg2: #c6dcef;
  --lcd-fg3: #7f9ab0;
  --lcd-panel: rgba(120, 200, 235, .10);
  --lcd-panel-solid: #0d1a24;
  --lcd-border: rgba(120, 200, 235, .24);
  --lcd-node-bg: #0a141c;
  --lcd-bg: radial-gradient(ellipse 70% 95% at 50% 0%, #16323c 0%, #0c2129 55%, #06141a 100%);
  color: var(--lcd-fg);
}
.lcd-screen[data-lcdstyle="cq"] .lcd-ribbon,
.lcd-screen[data-lcdstyle="cq"] .lcd-thread,
.lcd-screen[data-lcdstyle="cq"] .lcd-corner { display: none; }
.lcd-screen[data-lcdstyle="cq"] .top-bar { background: linear-gradient(180deg, rgba(0, 196, 180, .12), transparent); }
.lcd-screen[data-lcdstyle="cq"] .clock { background: rgba(0, 196, 180, .16); color: #c8fbf4; }
/* 重庆各线显示屏字体「又大又醒目」（2 号线实拍反馈） */
.lcd-screen[data-lcdstyle="cq"] .station-name { text-shadow: 0 0 20px rgba(0, 220, 200, .32); font-size: 1.22em; letter-spacing: 1px; }
.lcd-screen[data-lcdstyle="cq"] .door-cn { font-size: 1.12em; }
.lcd-screen[data-lcdstyle="cq"] .line-badge { box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .22), 0 4px 16px rgba(0, 0, 0, .45); }
.lcd-screen[data-lcdstyle="cq"] .screen-overlay { background: repeating-linear-gradient(0deg, rgba(180, 230, 255, .022) 0 1px, transparent 1px 3px); }
.lcd-screen[data-lcdstyle="cq"] .map-track { background: linear-gradient(90deg, #1d3242 0%, #1d3242 38%, var(--line-color) 38%, var(--line-color) 100%); }

/* ---------- 北京：浅色分屏 + 蓝色信息条 + 底部横幅 ---------- */
.lcd-screen[data-lcdstyle="bj"] {
  --lcd-fg: #0f2740;
  --lcd-fg2: #2b4a68;
  --lcd-fg3: #6f8299;
  --lcd-panel: rgba(10, 77, 140, .06);
  --lcd-panel-solid: #ffffff;
  --lcd-border: rgba(10, 77, 140, .20);
  --lcd-node-bg: #ffffff;
  --lcd-bg: linear-gradient(180deg, #ffffff 0%, #f5f9fd 62%, #e9f1fa 100%);
}
.lcd-screen[data-lcdstyle="bj"] .lcd-ribbon,
.lcd-screen[data-lcdstyle="bj"] .lcd-thread { opacity: .12; }
.lcd-screen[data-lcdstyle="bj"] .top-bar { background: linear-gradient(180deg, #0a4d8c, #0b5fa8); border-bottom: none; }
.lcd-screen[data-lcdstyle="bj"] .info-label,
.lcd-screen[data-lcdstyle="bj"] .info-label small,
.lcd-screen[data-lcdstyle="bj"] .station-name,
.lcd-screen[data-lcdstyle="bj"] .station-en,
.lcd-screen[data-lcdstyle="bj"] .door-cn,
.lcd-screen[data-lcdstyle="bj"] .door-en,
.lcd-screen[data-lcdstyle="bj"] .terminal-name,
.lcd-screen[data-lcdstyle="bj"] .terminal-label,
.lcd-screen[data-lcdstyle="bj"] .terminal-label small,
.lcd-screen[data-lcdstyle="bj"] .terminal-en,
.lcd-screen[data-lcdstyle="bj"] .car-no { color: #ffffff; }
.lcd-screen[data-lcdstyle="bj"] .info-label small,
.lcd-screen[data-lcdstyle="bj"] .door-en,
.lcd-screen[data-lcdstyle="bj"] .terminal-en { opacity: .8; }
.lcd-screen[data-lcdstyle="bj"] .clock { background: rgba(255, 255, 255, .18); }
.lcd-screen[data-lcdstyle="bj"] .terminal-info { border-left-color: rgba(255, 255, 255, .28); }
.lcd-screen[data-lcdstyle="bj"] .mini-door { background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .35); }
.lcd-screen[data-lcdstyle="bj"] .door-frame { border-color: #ffffff; }
.lcd-screen[data-lcdstyle="bj"] .door-icon { color: rgba(255, 255, 255, .55); }
.lcd-screen[data-lcdstyle="bj"] .station-num-badge { color: #0a4d8c; border-color: rgba(10, 77, 140, .45); background: rgba(255, 255, 255, .8); }
.lcd-screen[data-lcdstyle="bj"] .brand-group .cd-logo text { fill: #ffffff; }
.lcd-screen[data-lcdstyle="bj"] .screen-overlay::after {
  content: attr(data-lcdwelcome);
  position: absolute; left: 0; right: 0; bottom: 0; height: 9%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font); font-size: clamp(10px, .95vw, 14px); font-weight: 800; letter-spacing: 2px;
  color: #0a4d8c; background: linear-gradient(180deg, rgba(10, 77, 140, .05), rgba(10, 77, 140, .16));
  border-top: 1px solid rgba(10, 77, 140, .16);
}
.lcd-screen[data-lcdstyle="bj"] .map-track { background: linear-gradient(90deg, #cfd9e3 0%, #cfd9e3 38%, var(--line-color) 38%, var(--line-color) 100%); }

/* ---------- 上海：官方 LCD 动态地图屏（据 2 号线 2025 年改造实拍 + 官方披露重做） ----------
   浅青绿底 + 城市天际线水印 · 白色信息块 · 红色上海地铁标志 · 站点编号圈用线路识别色
   汉字黑体 / 英文与数字 Arial（上海地铁导向系统官方规范） */
.lcd-screen[data-lcdstyle="sh"] {
  --lcd-fg: #0d3a57;
  --lcd-fg2: #2c6084;
  --lcd-fg3: #7c9cb1;
  --lcd-accent: #e60012;
  --lcd-panel: rgba(255, 255, 255, .82);
  --lcd-panel-solid: #ffffff;
  --lcd-border: rgba(23, 96, 134, .22);
  --lcd-node-bg: #ffffff;
  --lcd-bg: linear-gradient(180deg, #eef8f4 0%, #dff2ec 46%, #cfe9e2 100%);
  color: var(--lcd-fg);
  font-family: "Microsoft YaHei", "PingFang SC", "SimHei", Arial, sans-serif;
}
.lcd-screen[data-lcdstyle="sh"] .lcd-ribbon,
.lcd-screen[data-lcdstyle="sh"] .lcd-thread,
.lcd-screen[data-lcdstyle="sh"] .lcd-corner { display: none; }
.lcd-screen[data-lcdstyle="sh"] .top-bar { background: rgba(255, 255, 255, .62); border-bottom: 2px solid rgba(23, 96, 134, .14); }
/* 城市徽标 → 红色圆角标志块（上海地铁 red block，覆盖内联样式） */
.lcd-screen[data-lcdstyle="sh"] .city-logo-text {
  border: none !important; padding: 7px 13px 6px !important; border-radius: 9px;
  background: linear-gradient(160deg, #f01423, #cf0010) !important;
  box-shadow: 0 4px 14px rgba(230, 0, 18, .28);
}
.lcd-screen[data-lcdstyle="sh"] .city-logo-text b { color: #ffffff !important; font-size: 16px; letter-spacing: 2.5px; }
.lcd-screen[data-lcdstyle="sh"] .city-logo-text small { color: rgba(255, 255, 255, .88) !important; letter-spacing: 1px; }
/* 「下一站 / 到达」状态字 → 深蓝灰（红色只用于标志与到站强调） */
.lcd-screen[data-lcdstyle="sh"] .info-label span:first-child { color: var(--lcd-fg); font-weight: 800; }
/* 站序徽章 → 线路识别色底白字（与站点编号圈一致） */
.lcd-screen[data-lcdstyle="sh"] .station-num-badge { background: var(--line-color, #2aa198); border-color: transparent; color: #ffffff; font-weight: 800; }
.lcd-screen[data-lcdstyle="sh"] .arrival-num { background: var(--line-color, #2aa198); color: #ffffff; border-radius: 999px; padding: 3px 10px; width: fit-content; }
.lcd-screen[data-lcdstyle="sh"] .line-badge { border-radius: 4px; padding: 5px 12px; }
.lcd-screen[data-lcdstyle="sh"] .clock { background: rgba(23, 96, 134, .10); }
.lcd-screen[data-lcdstyle="sh"] .station-name { letter-spacing: 1.5px; }
.lcd-screen[data-lcdstyle="sh"] .arrived { color: var(--lcd-accent); }
.lcd-screen[data-lcdstyle="sh"] .map-track { background: linear-gradient(90deg, #c5ddd6 0%, #c5ddd6 38%, var(--line-color) 38%, var(--line-color) 100%); }
/* 屏底城市天际线水印（陆家嘴剪影，极淡） */
.lcd-screen[data-lcdstyle="sh"] .screen-overlay {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 160' preserveAspectRatio='none'%3E%3Cg fill='%239ec9bd' opacity='.38'%3E%3Crect x='0' y='92' width='90' height='68'/%3E%3Crect x='100' y='62' width='66' height='98'/%3E%3Crect x='176' y='34' width='16' height='126'/%3E%3Crect x='196' y='76' width='104' height='84'/%3E%3Crect x='312' y='48' width='70' height='112'/%3E%3Crect x='392' y='86' width='128' height='74'/%3E%3Crect x='532' y='58' width='54' height='102'/%3E%3Crect x='596' y='96' width='86' height='64'/%3E%3Crect x='692' y='40' width='34' height='120'/%3E%3Crect x='694' y='24' width='30' height='14'/%3E%3Crect x='742' y='82' width='120' height='78'/%3E%3Crect x='874' y='66' width='126' height='94'/%3E%3C/g%3E%3C/svg%3E") no-repeat left bottom / 100% 46%,
    repeating-linear-gradient(0deg, rgba(13, 58, 87, .018) 0 1px, transparent 1px 4px);
  opacity: 1;
}

/* ---------- 广州：线路色主题屏（广州地铁标准 LCD 设计：版面跟随线路主题色） ---------- */
.lcd-screen[data-lcdstyle="gz"] {
  --lcd-fg: #17222b;
  --lcd-fg2: #3c5261;
  --lcd-fg3: #7c8d99;
  --lcd-panel: rgba(0, 0, 0, .04);
  --lcd-panel-solid: #ffffff;
  --lcd-border: rgba(0, 0, 0, .12);
  --lcd-node-bg: #ffffff;
  --lcd-bg: linear-gradient(180deg, #fdfeff 0%, #f0f3f6 100%);
}
.lcd-screen[data-lcdstyle="gz"] .lcd-ribbon,
.lcd-screen[data-lcdstyle="gz"] .lcd-thread { opacity: .10; }
/* 顶栏 = 线路色横带，整条白字（广州标准 LCD：顶栏随线路色） */
.lcd-screen[data-lcdstyle="gz"] .top-bar {
  background: linear-gradient(180deg, var(--line-color), var(--line-color));
  border-bottom: none;
  box-shadow: 0 3px 12px rgba(0, 0, 0, .18);
}
.lcd-screen[data-lcdstyle="gz"] .top-bar .info-label,
.lcd-screen[data-lcdstyle="gz"] .top-bar .info-label small,
.lcd-screen[data-lcdstyle="gz"] .top-bar .station-name,
.lcd-screen[data-lcdstyle="gz"] .top-bar .station-en,
.lcd-screen[data-lcdstyle="gz"] .top-bar .door-cn,
.lcd-screen[data-lcdstyle="gz"] .top-bar .door-en,
.lcd-screen[data-lcdstyle="gz"] .top-bar .terminal-name,
.lcd-screen[data-lcdstyle="gz"] .top-bar .terminal-label,
.lcd-screen[data-lcdstyle="gz"] .top-bar .terminal-label small,
.lcd-screen[data-lcdstyle="gz"] .top-bar .terminal-en,
.lcd-screen[data-lcdstyle="gz"] .top-bar .car-no { color: #ffffff; }
.lcd-screen[data-lcdstyle="gz"] .top-bar .info-label small,
.lcd-screen[data-lcdstyle="gz"] .top-bar .door-en,
.lcd-screen[data-lcdstyle="gz"] .top-bar .terminal-en { opacity: .82; }
.lcd-screen[data-lcdstyle="gz"] .top-bar .clock { background: rgba(255, 255, 255, .20); color: #fff; }
.lcd-screen[data-lcdstyle="gz"] .top-bar .mini-door { background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .4); }
.lcd-screen[data-lcdstyle="gz"] .top-bar .door-frame { border-color: #fff; }
.lcd-screen[data-lcdstyle="gz"] .top-bar .door-icon { color: rgba(255, 255, 255, .6); }
.lcd-screen[data-lcdstyle="gz"] .top-bar .terminal-info { border-left-color: rgba(255, 255, 255, .3); }
.lcd-screen[data-lcdstyle="gz"] .top-bar .station-num-badge { background: rgba(255, 255, 255, .85); border-color: rgba(255, 255, 255, .5); color: var(--line-color); font-weight: 800; }
.lcd-screen[data-lcdstyle="gz"] .top-bar .brand-group .cd-logo text { fill: #ffffff; }
/* 屏身点缀跟随线路色 */
.lcd-screen[data-lcdstyle="gz"] .arrival-num { background: var(--line-color); color: #fff; border-radius: 6px; padding: 3px 10px; width: fit-content; }
.lcd-screen[data-lcdstyle="gz"] .arrived { color: var(--line-color); }
.lcd-screen[data-lcdstyle="gz"] .terminal-segment { color: var(--line-color); }
.lcd-screen[data-lcdstyle="gz"] .station-form-badge { border-left: 3px solid var(--line-color); }
.lcd-screen[data-lcdstyle="gz"] .map-track { background: linear-gradient(90deg, #cfd9e3 0%, #cfd9e3 38%, var(--line-color) 38%, var(--line-color) 100%); }

/* ============================================================
   V3.0.3 —— 城市专属版式（不只是换色：结构 / 信息模块各不相同）
   ------------------------------------------------------------
   上海：顶栏拆成两层 + 底部红色行车信息条
   广州：线路色顶栏 + 三站图（上一站 / 当前站 / 下一站）
   北京：蓝色分屏顶栏 + 站序条 + 底部「欢迎您乘坐」横幅
   重庆：暗青底 + 大字号 + 底部车厢拥挤度条
   ============================================================ */
.cx { position: relative; z-index: 2; }

/* ---------- 上海：官方动态地图版式（顶部信息栏 + 底部主信息区，浅青底白卡） ---------- */
.lcd-screen[data-lcdstyle="sh"] .top-bar { flex-wrap: wrap; align-content: center; row-gap: .4%; overflow: hidden; flex-shrink: 0; padding: .6% 2%; height: 28%; min-height: 28%; max-height: 28%; }
.lcd-screen[data-lcdstyle="sh"] .brand-group { order: 1; flex: 0 0 auto; gap: 7px; }
.lcd-screen[data-lcdstyle="sh"] .brand-group .cd-logo svg { height: 2.2vw; min-height: 22px; max-height: 32px; width: auto; }
.lcd-screen[data-lcdstyle="sh"] .right-info { order: 2; flex: 1 1 40%; gap: 8px; }
.lcd-screen[data-lcdstyle="sh"] .right-info .terminal-info { padding-left: 9px; min-width: 64px; }
.lcd-screen[data-lcdstyle="sh"] .center-info { order: 3; flex: 1 0 100%; text-align: left; mix-blend-mode: normal; }
.lcd-screen[data-lcdstyle="sh"] .info-label { justify-content: flex-start; }
.lcd-screen[data-lcdstyle="sh"] .info-label span:first-child { font-size: clamp(10px, .95vw, 14px); letter-spacing: 1px; }
.lcd-screen[data-lcdstyle="sh"] .info-label small { font-size: .78em; }
.lcd-screen[data-lcdstyle="sh"] .info-row { justify-content: flex-start; gap: 8px; margin-top: 1px; }
.lcd-screen[data-lcdstyle="sh"] .info-row .station-num-badge { font-size: clamp(8px, .7vw, 11px); padding: 0 5px; }
.lcd-screen[data-lcdstyle="sh"] .info-row .station-en { font-size: clamp(10px, 1vw, 15px); }
.lcd-screen[data-lcdstyle="sh"] .top-transfer { justify-content: flex-start; margin-top: 1px; row-gap: 1px; max-height: 2.6em; overflow: hidden; }
.lcd-screen[data-lcdstyle="sh"] .top-transfer .xfer-chip { font-size: .72em; }
.lcd-screen[data-lcdstyle="sh"] .station-name { font-size: clamp(13px, 1.45vw, 21px); }
.lcd-screen[data-lcdstyle="sh"] .center-info,
.lcd-screen[data-lcdstyle="sh"] .right-info,
.lcd-screen[data-lcdstyle="sh"] .brand-group { min-width: 0; }
.lcd-screen[data-lcdstyle="sh"] .info-row,
.lcd-screen[data-lcdstyle="sh"] .station-name { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lcd-screen[data-lcdstyle="sh"] .top-transfer { max-width: 100%; overflow: hidden; }
.lcd-screen[data-lcdstyle="sh"] .view { padding-bottom: 15%; }
.lcd-screen[data-lcdstyle="sh"] .door-panel { height: clamp(44px, 5.4vw, 74px); }
.lcd-screen[data-lcdstyle="sh"] .door-caption .cn { font-size: clamp(11px, 1vw, 15px); }
.lcd-screen[data-lcdstyle="sh"] .door-caption .en { font-size: clamp(6px, .58vw, 9px); }
.lcd-screen[data-lcdstyle="sh"] .cx-sh { position: absolute; left: 0; right: 0; bottom: 0; z-index: 6; padding: 0 1.4% 1.2%; }
.cx-sh-wrap {
  display: flex; align-items: stretch; gap: 1%;
  padding: .8% 1.1%;
  background: rgba(255, 255, 255, .70);
  border: 1px solid rgba(23, 96, 134, .18);
  border-radius: 10px;
  box-shadow: 0 -2px 14px rgba(13, 58, 87, .10);
  font-size: clamp(8px, .92vw, 14px);
  color: #0d3a57;
}
.cx-sh-wrap .sh-col { display: flex; min-width: 0; }
.cx-sh-wrap .sh-col-brand {
  flex: 0 0 auto; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  padding: 0 1.1%; border-right: 1px dashed rgba(23, 96, 134, .28);
}
.cx-sh-wrap .sh-logo-dot {
  width: 2.3em; height: 2.3em; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(160deg, #f01423, #cf0010); color: #fff;
  font-family: Arial, sans-serif; font-weight: 700; font-size: 1em; letter-spacing: 0;
  box-shadow: 0 2px 8px rgba(230, 0, 18, .28);
}
.cx-sh-wrap .sh-col-brand b { font-size: 1em; font-weight: 800; letter-spacing: 1.5px; white-space: nowrap; }
.cx-sh-wrap .sh-col-brand em { font-style: normal; font-size: .62em; font-weight: 700; color: #7c9cb1; letter-spacing: .6px; white-space: nowrap; }
.cx-sh-wrap .sh-line-tag { margin-top: 2px; padding: .12em .7em; border-radius: 3px; color: #fff; font-weight: 800; font-size: .82em; white-space: nowrap; }

.cx-sh-wrap .sh-col-main { flex: 1 1 auto; align-items: center; padding: 0 1%; }
/* 运行：下一站界面（前后各两站 + 编号圈） */
.sh-strip { display: flex; align-items: center; gap: .5%; width: 100%; min-width: 0; }
.sh-strip .sh-dash { flex: 1 1 6px; min-width: 4px; height: 2px; background: rgba(23, 96, 134, .26); border-radius: 1px; }
.sh-stop { display: flex; flex-direction: column; align-items: center; gap: 1px; flex: 0 0 auto; }
.sh-stop i {
  font-style: normal; font-family: Arial, sans-serif; font-weight: 700; font-size: .78em;
  width: 2.1em; height: 2.1em; line-height: calc(2.1em - 4px);
  display: inline-block; text-align: center;
  border: 2px solid var(--sh-line, #2aa198); border-radius: 50%;
  background: #fff; color: var(--sh-line, #2aa198);
}
.sh-stop b { font-weight: 700; font-size: .98em; color: #0d3a57; white-space: nowrap; max-width: 7.2em; overflow: hidden; text-overflow: ellipsis; }
.sh-stop em { font-style: normal; font-family: Arial, sans-serif; font-size: .72em; color: #7c9cb1; white-space: nowrap; max-width: 8.5em; overflow: hidden; text-overflow: ellipsis; }
.sh-stop small { order: 3; font-size: .68em; font-weight: 800; color: #fff; background: var(--sh-line, #2aa198); border-radius: 999px; padding: 0 .6em; white-space: nowrap; }
.sh-stop.past { opacity: .42; }
.sh-stop.cur i { border-style: dashed; }
.sh-stop.sh-next-stop i { background: var(--sh-line, #2aa198); color: #fff; box-shadow: 0 2px 8px rgba(13, 58, 87, .22); }
.sh-stop.sh-next-stop b { font-size: 1.3em; font-weight: 800; letter-spacing: .5px; }

/* 到站：到站界面（大站名 + 开门方向 + 换乘） */
.sh-arr { display: flex; align-items: center; gap: 2%; width: 100%; min-width: 0; }
.sh-arr .sh-arr-tag { flex: 0 0 auto; background: var(--sh-line, #2aa198); color: #fff; font-weight: 800; font-size: .88em; padding: .2em .85em; border-radius: 999px; white-space: nowrap; }
.sh-arr .sh-arr-name { display: flex; align-items: baseline; gap: .5em; min-width: 0; flex: 1 1 auto; overflow: hidden; }
.sh-arr .sh-arr-name b { font-size: 1.55em; font-weight: 800; color: #0d3a57; letter-spacing: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sh-arr .sh-arr-name em { font-style: normal; font-family: Arial, sans-serif; font-size: .84em; color: #7c9cb1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sh-arr .sh-arr-door { flex: 0 0 auto; }
.sh-arr .sh-arr-door {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: .35em;
  background: #fff; border: 1px solid rgba(23, 96, 134, .22); border-radius: 8px;
  padding: .18em .7em; font-weight: 700; font-size: .88em; color: #1565a8; white-space: nowrap;
}
.sh-arr .sh-door-ic { width: .62em; height: .95em; border: 2px solid #1565a8; border-radius: 1px; display: inline-block; animation: shDoor 1.8s ease-in-out infinite; }
.sh-arr .sh-door-ic + .sh-door-ic { margin-left: -.18em; animation-delay: .4s; }
@keyframes shDoor { 0%, 100% { opacity: .5; } 50% { opacity: 1; } }
.sh-arr .sh-arr-xfer { display: inline-flex; align-items: center; gap: .28em; margin-left: auto; min-width: 0; overflow: hidden; }
.sh-arr .sh-arr-xfer .xfer-chip { font-size: .74em; margin: 0; }

.cx-sh-wrap .sh-col-term {
  flex: 0 0 auto; flex-direction: column; justify-content: center; gap: 1px;
  padding: 0 1.1%; border-left: 1px dashed rgba(23, 96, 134, .28); max-width: 30%;
}
.cx-sh-wrap .sh-col-term small { font-size: .66em; font-weight: 700; color: #7c9cb1; letter-spacing: .5px; }
.cx-sh-wrap .sh-col-term b { font-size: .95em; font-weight: 800; color: #0d3a57; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- 广州：三站图 ---------- */
.lcd-screen[data-lcdstyle="gz"] .cx-gz { padding: 0 2% 0; }
.lcd-screen[data-lcdstyle="gz"] .cx-gz .cx-gz-tri { display: flex; align-items: stretch; gap: 1%; }
.gz-cell {
  position: relative; flex: 1 1 0; min-width: 0; background: #fff; border-radius: 9px;
  border: 1px solid rgba(0, 0, 0, .09); border-left: 4px solid var(--line-color);
  padding: .55% 1%; display: flex; flex-direction: column; justify-content: center; gap: 1px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .06);
}
.gz-cell.gz-prev, .gz-cell.gz-next { flex: 0 0 21%; }
.gz-cell small { font-size: clamp(7px, .68vw, 10px); font-weight: 800; color: #7c8d99; letter-spacing: 1.2px; }
.gz-cell b { font-size: clamp(11px, 1.25vw, 19px); font-weight: 800; color: #17222b; line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gz-cell em { font-style: normal; font-size: clamp(7px, .62vw, 9px); color: #8b98a5; letter-spacing: .3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gz-cell.gz-cur { background: var(--line-color); border-color: var(--line-color); box-shadow: 0 4px 14px rgba(0, 0, 0, .16); }
.gz-cell.gz-cur small, .gz-cell.gz-cur b, .gz-cell.gz-cur em { color: #fff; }
.lcd-screen[data-lcdstyle="gz"] .gz-cell.gz-cur b { font-size: clamp(12px, 1.45vw, 22px); }
.gz-door {
  position: absolute; right: 6px; top: 6px; font-size: clamp(6px, .58vw, 9px); font-weight: 800;
  color: #fff; background: rgba(255, 255, 255, .22); border-radius: 999px; padding: 1px 6px; letter-spacing: .5px;
}
.gz-line-tag {
  position: absolute; left: 2.1%; top: -.9em; color: #fff; font-size: clamp(7px, .62vw, 9px);
  font-weight: 800; letter-spacing: 1px; padding: 1px 9px; border-radius: 999px; display: none;
}
.lcd-screen[data-lcdstyle="gz"] .cx-gz { position: relative; }

/* ---------- 北京：站序条 ---------- */
.lcd-screen[data-lcdstyle="bj"] .cx-bj { padding: 0 2%; }
.lcd-screen[data-lcdstyle="bj"] .cx-bj-strip {
  display: flex; align-items: center; gap: .5%; white-space: nowrap; overflow: hidden;
  background: rgba(10, 77, 140, .055); border: 1px solid rgba(10, 77, 140, .16);
  border-radius: 8px; padding: .5% 1%; font-size: clamp(7px, .74vw, 11px); color: #2b4a68;
}
.cx-bj-strip .bj-cap { font-size: .88em; color: #6f8299; font-weight: 700; margin-right: 3px; }
.cx-bj-strip .bj-term { font-weight: 800; color: #0a4d8c; margin-right: 2px; }
.cx-bj-strip .bj-sep { width: 1px; height: 12px; background: rgba(10, 77, 140, .22); margin: 0 .6%; }
.cx-bj-strip .bj-stop { color: #5b7085; }
.cx-bj-strip .bj-stop.bj-past { opacity: .42; }
.cx-bj-strip .bj-stop.bj-cur { background: #0a4d8c; color: #fff; font-weight: 800; border-radius: 999px; padding: 1.5px 9px; box-shadow: 0 2px 8px rgba(10, 77, 140, .3); }
.cx-bj-strip .bj-dash { flex: 1 1 8px; min-width: 5px; height: 2px; background: rgba(10, 77, 140, .22); border-radius: 1px; }

/* ---------- 重庆：底部车厢拥挤度条 ---------- */
.lcd-screen[data-lcdstyle="cq"] .cx-cq { position: absolute; left: 0; right: 0; bottom: 0; z-index: 6; }
.lcd-screen[data-lcdstyle="cq"] .view { padding-bottom: 7.5%; }
.cx-cq-crowd {
  display: flex; align-items: center; gap: 1.4%; height: 7vh; min-height: 20px; max-height: 44px;
  padding: 0 2%; background: linear-gradient(180deg, rgba(12, 33, 41, .92), rgba(6, 20, 26, .98));
  border-top: 1px solid rgba(94, 224, 208, .28); color: #c6dcef; font-size: clamp(8px, .8vw, 12px);
}
.cx-cq-crowd .cq-title { font-weight: 800; letter-spacing: 1px; color: #dedede; white-space: nowrap; }
.cx-cq-crowd .cq-title em { font-style: normal; font-size: .78em; color: #7f9ab0; margin-left: 4px; letter-spacing: .3px; }
.cx-cq-crowd .cq-bars { display: flex; align-items: flex-end; gap: 4px; height: 78%; width: 16%; min-width: 70px; }
.cx-cq-crowd .cq-bars i { flex: 1; border-radius: 2px 2px 0 0; background: linear-gradient(180deg, #6ff0e2, #0e8f86); box-shadow: 0 0 8px rgba(94, 224, 208, .28); }
.cx-cq-crowd .cq-foot { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.cx-cq-crowd .cq-lv { font-size: 1.02em; font-weight: 800; padding: 1px 10px; border-radius: 999px; }
.cx-cq-crowd .cq-lv.lv-拥挤 { background: #ff6b57; color: #2a0803; }
.cx-cq-crowd .cq-lv.lv-较拥挤 { background: #ffb340; color: #2a1a03; }
.cx-cq-crowd .cq-lv.lv-适中 { background: #6ff0e2; color: #06231f; }
.cx-cq-crowd .cq-lv.lv-较舒适 { background: #9fe870; color: #0d2a05; }

/* ============================================================
   V3.0.3 扩充 —— 深圳 / 杭州 / 天津 / 西安 / 武汉 / 苏州 / 宁波
   （七城专属 LCD 版式，结构与配色均按各城公开资料区分）
   ============================================================ */

/* ---------- 深圳：线路图 / 站内信息分布 双界面（绿色信息面板） ---------- */
.lcd-screen[data-lcdstyle="sz"] {
  --lcd-fg: #123a2c;
  --lcd-fg2: #2c5a49;
  --lcd-fg3: #6d9183;
  --lcd-panel: rgba(0, 150, 90, .07);
  --lcd-panel-solid: #ffffff;
  --lcd-border: rgba(0, 150, 90, .22);
  --lcd-node-bg: #ffffff;
  --lcd-bg: linear-gradient(180deg, #ffffff 0%, #f1f9f5 60%, #e3f2ea 100%);
}
.lcd-screen[data-lcdstyle="sz"] .lcd-ribbon,
.lcd-screen[data-lcdstyle="sz"] .lcd-thread { opacity: .10; }
.lcd-screen[data-lcdstyle="sz"] .top-bar { border-bottom: 3px solid #00965a; }
.lcd-screen[data-lcdstyle="sz"] .arrived { color: #00965a; }
.lcd-screen[data-lcdstyle="sz"] .arrival-num { background: #00965a; color: #fff; border-radius: 6px; padding: 3px 10px; width: fit-content; }
.lcd-screen[data-lcdstyle="sz"] .map-track { background: linear-gradient(90deg, #c9dcd3 0%, #c9dcd3 38%, var(--line-color) 38%, var(--line-color) 100%); }
.lcd-screen[data-lcdstyle="sz"] .view { padding-bottom: 13%; }
.lcd-screen[data-lcdstyle="sz"] .cx-sz { position: absolute; left: 0; right: 0; bottom: 0; z-index: 6; padding: 0 1.4% 1.1%; }
.cx-sz-strip {
  display: flex; align-items: center; gap: 1%; padding: .7% 1.2%;
  background: rgba(255, 255, 255, .82); border: 1px solid rgba(0, 150, 90, .22);
  border-radius: 10px; font-size: clamp(7px, .78vw, 12px); color: #123a2c;
  box-shadow: 0 -2px 12px rgba(0, 90, 55, .10);
}
.cx-sz-strip .sz-cap { font-weight: 800; color: #00965a; white-space: nowrap; }
.cx-sz-strip .sz-line-tag { color: #fff; font-weight: 800; border-radius: 4px; padding: 2px 9px; white-space: nowrap; }
.cx-sz-strip .sz-row { flex: 1; display: flex; align-items: center; overflow: hidden; white-space: nowrap; }
.sz-stop { flex: 0 0 auto; padding: 1px 6px; border-radius: 999px; color: #2c5a49; max-width: 6.5em; overflow: hidden; text-overflow: ellipsis; }
.sz-stop.sz-past { opacity: .4; }
.sz-stop.sz-cur { background: #00965a; color: #fff; font-weight: 800; box-shadow: 0 2px 8px rgba(0, 150, 90, .35); }
.sz-dash { flex: 1 1 6px; min-width: 3px; height: 2px; background: rgba(0, 150, 90, .3); }
.cx-sz-panel {
  background: linear-gradient(180deg, #067a49, #045c37); border-radius: 10px;
  padding: .9% 1.4%; color: #fff; font-size: clamp(8px, .85vw, 13px);
  box-shadow: 0 -3px 16px rgba(0, 90, 55, .3);
}
.cx-sz-panel .sz-head { display: flex; align-items: baseline; gap: 8px; margin-bottom: .5%; }
.cx-sz-panel .sz-head b { font-size: 1.2em; letter-spacing: 1.5px; }
.cx-sz-panel .sz-head em { font-style: normal; font-size: .72em; opacity: .75; }
.cx-sz-panel .sz-head .sz-door { margin-left: auto; font-weight: 800; background: rgba(255, 255, 255, .16); padding: 2px 12px; border-radius: 999px; }
.cx-sz-panel .sz-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: .8%; }
.sz-info-cell {
  display: inline-flex; align-items: center; gap: 5px; justify-content: center;
  background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 7px; padding: 4% 2%; white-space: nowrap; overflow: hidden;
}
.sz-info-cell i { font-style: normal; font-size: 1.15em; }
.sz-info-cell b { font-weight: 700; max-width: 6em; overflow: hidden; text-overflow: ellipsis; }

/* ---------- 杭州：本侧/对侧开门闪烁 + 设施 + 当前车厢闪烁 ---------- */
.lcd-screen[data-lcdstyle="hz"] {
  --lcd-fg: #14313d;
  --lcd-fg2: #33566a;
  --lcd-fg3: #718c9b;
  --lcd-panel: rgba(33, 90, 120, .07);
  --lcd-panel-solid: #ffffff;
  --lcd-border: rgba(33, 90, 120, .2);
  --lcd-node-bg: #ffffff;
  --lcd-bg: linear-gradient(180deg, #ffffff 0%, #f2f8fb 58%, #e4eff5 100%);
}
.lcd-screen[data-lcdstyle="hz"] .lcd-ribbon,
.lcd-screen[data-lcdstyle="hz"] .lcd-thread { opacity: .10; }
.lcd-screen[data-lcdstyle="hz"] .top-bar { border-bottom: 3px solid var(--line-color, #215a78); }
.lcd-screen[data-lcdstyle="hz"] .arrived { color: var(--line-color, #215a78); }
.lcd-screen[data-lcdstyle="hz"] .map-track { background: linear-gradient(90deg, #c8d8e0 0%, #c8d8e0 38%, var(--line-color) 38%, var(--line-color) 100%); }
.lcd-screen[data-lcdstyle="hz"] .view { padding-bottom: 12%; }
.lcd-screen[data-lcdstyle="hz"] .cx-hz { position: absolute; left: 0; right: 0; bottom: 0; z-index: 6; padding: 0 1.4% 1.1%; }
.cx-hz-panel {
  display: flex; align-items: center; gap: 1.6%;
  background: rgba(255, 255, 255, .85); border: 1px solid rgba(33, 90, 120, .2);
  border-radius: 10px; padding: .8% 1.3%; font-size: clamp(8px, .82vw, 12px); color: #14313d;
  box-shadow: 0 -2px 12px rgba(20, 60, 80, .12);
}
.cx-hz-panel .hz-doors { display: flex; gap: 1%; flex: 0 0 auto; }
.hz-door { display: inline-flex; align-items: center; gap: 5px; font-weight: 800; padding: 3px 11px; border-radius: 999px; white-space: nowrap; }
.hz-door.hz-this { background: #0a8f52; color: #fff; animation: hzBlink 1.4s ease-in-out infinite; }
.hz-door.hz-other { background: #e7eef2; color: #718c9b; }
@keyframes hzBlink { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }
.hz-door-ic { width: .7em; height: 1em; border: 2px solid currentColor; border-radius: 1px; }
.cx-hz-panel .hz-fac { display: inline-flex; gap: 12px; flex: 0 0 auto; color: #33566a; white-space: nowrap; }
.cx-hz-panel .hz-fac span { white-space: nowrap; }
.cx-hz-panel .hz-cars { margin-left: auto; display: flex; gap: 3px; flex: 0 0 auto; }
.cx-hz-panel .hz-cars i {
  font-style: normal; width: 1.7em; height: 1.7em; border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  background: #e7eef2; color: #33566a; font-weight: 700;
}
.cx-hz-panel .hz-cars i.hz-car-cur { background: #14313d; color: #fff; animation: hzBlink 1.1s ease-in-out infinite; box-shadow: 0 0 10px rgba(20, 49, 61, .4); }

/* ---------- 天津：极简车辆模型（拥挤度写在车厢里，当前车厢绿底） ---------- */
.lcd-screen[data-lcdstyle="tj"] {
  --lcd-fg: #1a2b3c;
  --lcd-fg2: #3c5266;
  --lcd-fg3: #7a8ea0;
  --lcd-panel: rgba(26, 43, 60, .06);
  --lcd-panel-solid: #ffffff;
  --lcd-border: rgba(26, 43, 60, .18);
  --lcd-node-bg: #ffffff;
  --lcd-bg: linear-gradient(180deg, #ffffff 0%, #f4f7fa 62%, #e8eef5 100%);
}
.lcd-screen[data-lcdstyle="tj"] .lcd-ribbon,
.lcd-screen[data-lcdstyle="tj"] .lcd-thread { opacity: .08; }
.lcd-screen[data-lcdstyle="tj"] .top-bar { border-bottom: 3px solid var(--line-color, #1a5ea8); }
.lcd-screen[data-lcdstyle="tj"] .arrived { color: #1f9e5f; }
.lcd-screen[data-lcdstyle="tj"] .map-track { background: linear-gradient(90deg, #ccd6e0 0%, #ccd6e0 38%, var(--line-color) 38%, var(--line-color) 100%); }
.lcd-screen[data-lcdstyle="tj"] .view { padding-bottom: 14%; }
.lcd-screen[data-lcdstyle="tj"] .cx-tj { position: absolute; left: 0; right: 0; bottom: 0; z-index: 6; padding: 0 1.4% 1.1%; }
.cx-tj-train {
  background: rgba(255, 255, 255, .9); border: 1px solid rgba(26, 43, 60, .18);
  border-radius: 12px; padding: .7% 1.2%; font-size: clamp(7px, .75vw, 11px); color: #1a2b3c;
  box-shadow: 0 -2px 12px rgba(20, 40, 60, .12);
}
.cx-tj-train .tj-cap { display: flex; align-items: baseline; gap: 10px; margin-bottom: .45%; }
.cx-tj-train .tj-cap b { font-weight: 800; letter-spacing: .5px; }
.cx-tj-train .tj-cap em { font-style: normal; color: #7a8ea0; }
.tj-body { display: flex; align-items: stretch; gap: 2px; height: 3.4em; }
.tj-nose { flex: 0 0 1.6em; border-radius: .8em 0 0 .8em; background: #3c5266; }
.tj-nose.tail { border-radius: 0 .8em .8em 0; }
.tj-car {
  flex: 1; min-width: 3em; border: 1px solid rgba(26, 43, 60, .22); border-radius: 5px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  background: #f4f7fa; position: relative;
}
.tj-car b { font-size: 1.15em; font-weight: 800; color: #1a2b3c; }
.tj-car em { font-style: normal; font-size: .82em; font-weight: 800; padding: 0 .6em; border-radius: 999px; }
.tj-car.tj-car-cur { background: #1f9e5f; border-color: #1f9e5f; box-shadow: 0 0 12px rgba(31, 158, 95, .4); }
.tj-car.tj-car-cur b { color: #fff; }

/* ---------- 西安：绿色逐站到站倒计时（中英双语） ---------- */
.lcd-screen[data-lcdstyle="xa"] {
  --lcd-fg: #2b2318;
  --lcd-fg2: #55492f;
  --lcd-fg3: #8a8168;
  --lcd-panel: rgba(120, 90, 20, .06);
  --lcd-panel-solid: #fffdf6;
  --lcd-border: rgba(120, 90, 20, .2);
  --lcd-node-bg: #fffdf6;
  --lcd-bg: linear-gradient(180deg, #fffdf6 0%, #faf5e8 62%, #f1ebdb 100%);
}
.lcd-screen[data-lcdstyle="xa"] .lcd-ribbon,
.lcd-screen[data-lcdstyle="xa"] .lcd-thread { opacity: .10; }
.lcd-screen[data-lcdstyle="xa"] .top-bar { border-bottom: 3px solid var(--line-color, #b07d3a); }
.lcd-screen[data-lcdstyle="xa"] .arrived { color: #0a8f4e; }
.lcd-screen[data-lcdstyle="xa"] .map-track { background: linear-gradient(90deg, #e0d8c4 0%, #e0d8c4 38%, var(--line-color) 38%, var(--line-color) 100%); }
.lcd-screen[data-lcdstyle="xa"] .view { padding-bottom: 13%; }
.lcd-screen[data-lcdstyle="xa"] .cx-xa { position: absolute; left: 0; right: 0; bottom: 0; z-index: 6; padding: 0 1.4% 1.1%; }
.cx-xa-strip {
  display: flex; align-items: center; gap: 1.2%;
  background: linear-gradient(180deg, #103b26, #0a2c1b); border-radius: 10px;
  padding: .8% 1.3%; color: #d9efe2; font-size: clamp(7px, .78vw, 12px);
  box-shadow: 0 -3px 14px rgba(10, 60, 35, .3);
}
.cx-xa-strip .xa-fac { display: flex; gap: 6px; flex: 0 0 auto; }
.cx-xa-strip .xa-fac i { font-style: normal; background: rgba(255, 255, 255, .1); border-radius: 5px; padding: 2px 7px; white-space: nowrap; }
.cx-xa-strip .xa-flow { flex: 1; display: flex; align-items: center; gap: .8%; overflow: hidden; white-space: nowrap; }
.xa-stop { display: inline-flex; align-items: baseline; gap: 6px; flex: 0 0 auto; min-width: 0; }
.xa-stop b { font-weight: 800; color: #ffffff; max-width: 6.5em; overflow: hidden; text-overflow: ellipsis; }
.xa-stop em { font-style: normal; font-size: .74em; color: #7ea892; max-width: 8em; overflow: hidden; text-overflow: ellipsis; }
.xa-stop u { text-decoration: none; font-weight: 800; color: #35d07f; padding: 0 8px; background: rgba(53, 208, 127, .14); border-radius: 999px; white-space: nowrap; }
.xa-stop u.xa-now { background: #35d07f; color: #06281a; }
.xa-arrow { color: #35d07f; font-style: normal; font-weight: 800; }
.cx-xa-strip .xa-line-tag { flex: 0 0 auto; color: #fff; font-weight: 800; border-radius: 4px; padding: 2px 9px; white-space: nowrap; }

/* ---------- 武汉：线路色定制横排大字条（一线一方案） ---------- */
.lcd-screen[data-lcdstyle="wh"] {
  --lcd-fg: #22262b;
  --lcd-fg2: #485059;
  --lcd-fg3: #838c96;
  --lcd-panel: rgba(30, 40, 55, .06);
  --lcd-panel-solid: #ffffff;
  --lcd-border: rgba(30, 40, 55, .18);
  --lcd-node-bg: #ffffff;
  --lcd-bg: linear-gradient(180deg, #ffffff 0%, #f5f6f8 62%, #eaeef2 100%);
}
.lcd-screen[data-lcdstyle="wh"] .lcd-ribbon,
.lcd-screen[data-lcdstyle="wh"] .lcd-thread { opacity: .08; }
.lcd-screen[data-lcdstyle="wh"] .top-bar { border-bottom: none; background: linear-gradient(180deg, var(--line-color), var(--line-color)); }
.lcd-screen[data-lcdstyle="wh"] .info-label,
.lcd-screen[data-lcdstyle="wh"] .info-label small,
.lcd-screen[data-lcdstyle="wh"] .station-name,
.lcd-screen[data-lcdstyle="wh"] .station-en,
.lcd-screen[data-lcdstyle="wh"] .door-cn,
.lcd-screen[data-lcdstyle="wh"] .door-en,
.lcd-screen[data-lcdstyle="wh"] .terminal-name,
.lcd-screen[data-lcdstyle="wh"] .terminal-label,
.lcd-screen[data-lcdstyle="wh"] .terminal-label small,
.lcd-screen[data-lcdstyle="wh"] .terminal-en,
.lcd-screen[data-lcdstyle="wh"] .car-no { color: #ffffff; }
.lcd-screen[data-lcdstyle="wh"] .info-label small,
.lcd-screen[data-lcdstyle="wh"] .door-en,
.lcd-screen[data-lcdstyle="wh"] .terminal-en { opacity: .8; }
.lcd-screen[data-lcdstyle="wh"] .clock { background: rgba(255, 255, 255, .18); }
.lcd-screen[data-lcdstyle="wh"] .station-num-badge { background: rgba(255, 255, 255, .85); color: var(--line-color); border-color: transparent; font-weight: 800; }
.lcd-screen[data-lcdstyle="wh"] .arrival-num { background: var(--line-color); color: #fff; border-radius: 6px; padding: 3px 10px; width: fit-content; }
.lcd-screen[data-lcdstyle="wh"] .brand-group .cd-logo text { fill: #ffffff; }
.lcd-screen[data-lcdstyle="wh"] .arrived { color: var(--line-color); }
.lcd-screen[data-lcdstyle="wh"] .view { padding-bottom: 13%; }
.lcd-screen[data-lcdstyle="wh"] .cx-wh { position: absolute; left: 0; right: 0; bottom: 0; z-index: 6; padding: 0 1.4% 1.1%; }
.cx-wh-bar {
  display: flex; align-items: center; gap: 1.6%;
  background: linear-gradient(90deg, var(--wh-line, #2a6fb8) 0%, var(--wh-line, #2a6fb8) 78%, rgba(0, 0, 0, .28) 100%);
  border-radius: 10px; padding: .8% 1.5%; color: #fff;
  font-size: clamp(8px, .85vw, 13px); box-shadow: 0 -3px 16px rgba(0, 40, 80, .28);
}
.cx-wh-bar .wh-now { display: flex; flex-direction: column; min-width: 0; flex: 1 1 auto; }
.cx-wh-bar .wh-now b { font-size: 1.5em; font-weight: 800; letter-spacing: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cx-wh-bar small { font-size: .72em; opacity: .8; white-space: nowrap; }
.cx-wh-bar em { font-style: normal; font-size: .8em; opacity: .85; font-family: Arial, sans-serif; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cx-wh-bar .wh-arrow { flex: 0 0 auto; width: 0; height: 0; border-left: .8em solid rgba(255, 255, 255, .85); border-top: .55em solid transparent; border-bottom: .55em solid transparent; }
.cx-wh-bar .wh-next { display: flex; flex-direction: column; min-width: 0; flex: 1 1 auto; }
.cx-wh-bar .wh-next b { font-size: 1.1em; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cx-wh-bar .wh-door { flex: 0 0 auto; font-weight: 800; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .3); padding: 3px 12px; border-radius: 999px; white-space: nowrap; }
.cx-wh-bar .wh-tag { flex: 0 0 auto; font-weight: 800; background: rgba(255, 255, 255, .92); color: var(--wh-line, #2a6fb8); padding: 2px 10px; border-radius: 4px; white-space: nowrap; }

/* ---------- 苏州：三站进度 + 拥挤度色点（简化版） ---------- */
.lcd-screen[data-lcdstyle="su"] {
  --lcd-fg: #16323a;
  --lcd-fg2: #355660;
  --lcd-fg3: #6e8d96;
  --lcd-panel: rgba(0, 130, 140, .07);
  --lcd-panel-solid: #ffffff;
  --lcd-border: rgba(0, 130, 140, .2);
  --lcd-node-bg: #ffffff;
  --lcd-bg: linear-gradient(180deg, #ffffff 0%, #f0f8f9 62%, #e1f0f2 100%);
}
.lcd-screen[data-lcdstyle="su"] .lcd-ribbon,
.lcd-screen[data-lcdstyle="su"] .lcd-thread { opacity: .10; }
.lcd-screen[data-lcdstyle="su"] .top-bar { border-bottom: 3px solid var(--line-color, #00828c); }
.lcd-screen[data-lcdstyle="su"] .arrived { color: var(--line-color, #00828c); }
.lcd-screen[data-lcdstyle="su"] .map-track { background: linear-gradient(90deg, #c5dcd8 0%, #c5dcd8 38%, var(--line-color) 38%, var(--line-color) 100%); }
.lcd-screen[data-lcdstyle="su"] .view { padding-bottom: 12%; }
.lcd-screen[data-lcdstyle="su"] .cx-su { position: absolute; left: 0; right: 0; bottom: 0; z-index: 6; padding: 0 1.4% 1.1%; }
.cx-su-bar {
  display: flex; align-items: center; gap: 1.5%;
  background: rgba(255, 255, 255, .88); border: 1px solid rgba(0, 130, 140, .2);
  border-radius: 10px; padding: .75% 1.3%; font-size: clamp(7px, .76vw, 12px); color: #16323a;
  box-shadow: 0 -2px 12px rgba(0, 90, 100, .12);
}
.cx-su-bar .su-tri { flex: 1 1 auto; display: grid; grid-template-columns: 1fr 1.3fr 1fr; gap: .8%; min-width: 0; }
.cx-su-bar .su-tri > span { display: flex; flex-direction: column; min-width: 0; background: rgba(0, 130, 140, .05); border-radius: 7px; padding: 3% 6%; }
.cx-su-bar .su-tri small { font-size: .72em; color: #6e8d96; white-space: nowrap; }
.cx-su-bar .su-tri b { font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cx-su-bar .su-tri .su-cur { background: var(--line-color, #00828c); color: #fff; }
.cx-su-bar .su-tri .su-cur small { color: rgba(255, 255, 255, .8); }
.cx-su-bar .su-occ { flex: 0 0 auto; display: flex; flex-direction: column; align-items: flex-end; gap: 3px; }
.cx-su-bar .su-occ small { font-size: .72em; color: #6e8d96; }
.cx-su-bar .su-dots { display: flex; gap: 3px; }
.cx-su-bar .su-dots i { width: 1.5em; height: .8em; border-radius: 999px; background: #6cc98a; }
.cx-su-bar .su-dots i.su-mid { background: #ffcf4d; }
.cx-su-bar .su-dots i.su-hot { background: #ff6b57; }
.cx-su-bar .su-occ b { font-weight: 800; }

/* ---------- 宁波：全线固定站点行（游标移动）+ 到站车站信息 ---------- */
.lcd-screen[data-lcdstyle="nb"] {
  --lcd-fg: #173042;
  --lcd-fg2: #35566c;
  --lcd-fg3: #708ea0;
  --lcd-panel: rgba(0, 120, 180, .07);
  --lcd-panel-solid: #ffffff;
  --lcd-border: rgba(0, 120, 180, .2);
  --lcd-node-bg: #ffffff;
  --lcd-bg: linear-gradient(180deg, #ffffff 0%, #f0f7fb 62%, #e2eef5 100%);
}
.lcd-screen[data-lcdstyle="nb"] .lcd-ribbon,
.lcd-screen[data-lcdstyle="nb"] .lcd-thread { opacity: .10; }
.lcd-screen[data-lcdstyle="nb"] .top-bar { border-bottom: 3px solid var(--line-color, #0078b4); }
.lcd-screen[data-lcdstyle="nb"] .arrived { color: #0a9e60; }
.lcd-screen[data-lcdstyle="nb"] .map-track { background: linear-gradient(90deg, #c6dce8 0%, #c6dce8 38%, var(--line-color) 38%, var(--line-color) 100%); }
.lcd-screen[data-lcdstyle="nb"] .view { padding-bottom: 12%; }
.lcd-screen[data-lcdstyle="nb"] .cx-nb { position: absolute; left: 0; right: 0; bottom: 0; z-index: 6; padding: 0 1.4% 1.1%; }
.cx-nb-bar {
  display: flex; align-items: center; gap: 1.2%;
  background: rgba(255, 255, 255, .88); border: 1px solid rgba(0, 120, 180, .2);
  border-radius: 10px; padding: .8% 1.3%; font-size: clamp(7px, .74vw, 12px); color: #173042;
  box-shadow: 0 -2px 12px rgba(0, 80, 120, .12);
}
.cx-nb-bar.nb-arrive { background: linear-gradient(180deg, #0a7ea6, #055e80); border-color: transparent; color: #fff; }
.cx-nb-bar .nb-line { flex: 0 0 auto; color: #fff; font-weight: 800; border-radius: 4px; padding: 2px 9px; white-space: nowrap; }
.cx-nb-bar .nb-full { flex: 1; display: flex; align-items: flex-start; overflow: hidden; padding-top: 2px; }
.nb-stop { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 2px; position: relative; }
.nb-stop i { width: .55em; height: .55em; border-radius: 50%; background: #b9ccd8; border: 1px solid rgba(0, 120, 180, .4); position: relative; z-index: 2; }
.nb-stop::before { content: ''; position: absolute; top: calc(2px + .27em); left: 0; right: 0; height: 2px; background: rgba(0, 120, 180, .25); }
.nb-stop b { font-weight: 600; color: #35566c; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .92em; }
.nb-stop.nb-past i { background: #dfe9f0; opacity: .6; }
.nb-stop.nb-past b { opacity: .45; }
.nb-stop.nb-cur i { width: .9em; height: .9em; background: #0a9e60; border-color: #0a9e60; box-shadow: 0 0 8px rgba(10, 158, 96, .5); }
.nb-stop.nb-cur b { color: #0a7a4d; font-weight: 800; }
.cx-nb-bar .nb-cap { flex: 0 0 auto; font-size: .8em; color: #708ea0; font-weight: 700; white-space: nowrap; }
.cx-nb-bar.nb-arrive .nb-st-name { flex: 0 0 auto; display: flex; flex-direction: column; min-width: 0; }
.cx-nb-bar.nb-arrive .nb-st-name b { font-size: 1.5em; font-weight: 800; letter-spacing: 1px; white-space: nowrap; }
.cx-nb-bar.nb-arrive .nb-st-name em { font-style: normal; font-size: .8em; opacity: .85; font-family: Arial, sans-serif; }
.cx-nb-bar.nb-arrive .nb-st-info { flex: 1; display: flex; gap: 7px; justify-content: center; flex-wrap: nowrap; overflow: hidden; }
.cx-nb-bar.nb-arrive .nb-st-info i { font-style: normal; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .2); border-radius: 6px; padding: 3px 9px; white-space: nowrap; }
.cx-nb-bar.nb-arrive .nb-door { flex: 0 0 auto; font-weight: 800; background: rgba(255, 255, 255, .16); border-radius: 999px; padding: 3px 12px; white-space: nowrap; }
.sz-stop.sz-dot i { display: block; width: .8em; height: .8em; border-radius: 50%; background: rgba(0, 150, 90, .35); border: 1px solid rgba(0, 150, 90, .5); }
.sz-stop.sz-dot.sz-past i { background: #cfe0d8; }
.sz-stop.sz-dot.sz-cur i { background: #fff; border-color: #fff; box-shadow: 0 0 0 2px rgba(255, 255, 255, .0); }
.sz-stop.sz-dot.sz-cur { background: #00965a; }
.sz-info-cell b { max-width: 8em; }

/* ============================================================
   V3.0.4 —— 城市专属「到站画面」（中部主显示区按城市重做）
   ============================================================ */
.lcd-screen[data-lcdstyle]:not([data-lcdstyle="chengdu3"]) .arrival-left,
.lcd-screen[data-lcdstyle]:not([data-lcdstyle="chengdu3"]) .arrival-center,
.lcd-screen[data-lcdstyle]:not([data-lcdstyle="chengdu3"]) .arrival-right { display: none; }
/* 到站时顶栏中栏与中部重复 → 隐藏（由引擎打 lcd-arriving 标） */
.lcd-screen.lcd-arriving:not([data-lcdstyle="chengdu3"]) .center-info { visibility: hidden; }
#cityArrival { flex: 1 1 auto; width: 100%; min-width: 0; display: flex; align-items: stretch; }
.ca { flex: 1 1 auto; width: 100%; height: 100%; display: flex; align-items: center; gap: 2.2%; padding: 0 2.6% 3.5%; box-sizing: border-box; min-height: 0; font-size: clamp(12px, 1.2vw, 18px); }
.ca-main { flex: 1 1 0; display: flex; flex-direction: column; gap: .5%; min-width: 0; }
.ca-tag {
  display: inline-flex; align-items: baseline; gap: 6px; width: fit-content;
  font-weight: 800; font-size: clamp(11px, 1vw, 15px); letter-spacing: 1px;
  padding: .12em 1em; border-radius: 999px;
  background: var(--lcd-panel); color: var(--lcd-accent, var(--lcd-fg)); border: 1px solid var(--lcd-border);
}
.ca-tag small { font-size: .72em; opacity: .72; font-weight: 600; }
.ca-name-row { display: flex; align-items: baseline; gap: .45em; min-width: 0; }
.ca-name-row b { font-size: clamp(24px, 3vw, 44px); font-weight: 900; letter-spacing: 1.5px; color: var(--lcd-fg); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ca-dao { font-style: normal; font-size: clamp(14px, 1.5vw, 22px); font-weight: 800; color: var(--lcd-accent, var(--line-color)); flex: 0 0 auto; }
.ca-en { font-size: clamp(12px, 1.15vw, 17px); color: var(--lcd-fg2); font-family: Arial, sans-serif; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ca-door { display: flex; align-items: center; gap: 14px; margin-top: .5%; min-width: 0; }
.ca-doorbig { display: inline-flex; align-items: center; gap: 6px; flex: 0 0 auto; }
.ca-doorbig .dp { width: .85em; height: 1.7em; border: 2.5px solid var(--lcd-fg2); border-radius: 2px; font-size: clamp(12px, 1.15vw, 18px); }
.ca-doorbig .da { font-size: clamp(12px, 1.15vw, 18px); font-weight: 900; color: var(--lcd-accent, var(--line-color)); animation: caBlink 1.6s ease-in-out infinite; }
@keyframes caBlink { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.ca-doortxt { font-weight: 800; font-size: clamp(12px, 1.1vw, 17px); color: var(--lcd-fg); white-space: nowrap; }
.ca-xfer { display: flex; gap: 5px; margin-top: .4%; flex-wrap: nowrap; overflow: hidden; }
.ca-xfer .xfer-chip { font-size: .82em; margin: 0; }
.ca-nextcard {
  flex: 0 0 auto; display: flex; flex-direction: column; gap: 2px; max-width: 17%;
  padding: 1% 1.7%; border-radius: 10px; background: var(--lcd-panel); border: 1px solid var(--lcd-border); min-width: 0;
}
.ca-nextcard small { font-size: .74em; color: var(--lcd-fg3); font-weight: 700; white-space: nowrap; }
.ca-nextcard b { font-size: clamp(13px, 1.3vw, 19px); font-weight: 800; color: var(--lcd-fg); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ca-nextcard em { font-style: normal; font-size: .82em; color: var(--lcd-fg3); font-family: Arial, sans-serif; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ca-struct-wrap { flex: 0 0 33%; min-width: 0; display: flex; align-items: center; }
.ca-struct { width: 100%; height: auto; display: block; }

/* 上海：红色标志卡 + 大字站名 + 白卡质感 */
.ca-sh .ca-sh-logo {
  flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; gap: 4px;
  background: rgba(255, 255, 255, .75); border: 1px solid rgba(23, 96, 134, .18);
  border-radius: 12px; padding: 1.2% 2%;
  box-shadow: 0 4px 16px rgba(13, 58, 87, .12);
}
.ca-sh .ca-sh-logo .m {
  width: 3em; height: 3em; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(160deg, #f01423, #cf0010); color: #fff; font-family: Arial, sans-serif;
  font-weight: 700; font-size: clamp(14px, 1.4vw, 20px); box-shadow: 0 3px 10px rgba(230, 0, 18, .3);
}
.ca-sh .ca-sh-logo b { font-size: clamp(11px, 1vw, 15px); font-weight: 800; color: #0d3a57; letter-spacing: 2px; }
.ca-sh .ca-sh-logo em { font-style: normal; font-size: .68em; color: #7c9cb1; letter-spacing: .5px; }
.ca-sh .ca-tag { background: #e60012; color: #fff; border-color: transparent; }
.ca-sh .ca-dao { color: #e60012; }

/* 广州：线路色标签 + 车站结构图 */
.ca-gz .ca-tag { background: var(--line-color); color: #fff; border-color: transparent; }
.ca-gz .ca-dao { color: var(--line-color); }

/* 北京：蓝色标签 + 站台简图 */
.ca-bj .ca-tag { background: #0a4d8c; color: #fff; border-color: transparent; }
.ca-bj .ca-dao { color: #0a4d8c; }

/* 深圳：绿色信息风 */
.ca-sz .ca-tag { background: #00965a; color: #fff; border-color: transparent; }
.ca-sz .ca-dao { color: #00965a; }

/* 杭州：开门行 + 超大站名 */
.ca-hz { flex-direction: column; align-items: flex-start; justify-content: center; gap: 1.6%; }
.ca-hz-doors { display: flex; gap: 1.2%; }
.ca-hz .ca-tag { background: var(--line-color, #215a78); color: #fff; border-color: transparent; }
.ca-hz .ca-dao { color: var(--line-color, #215a78); }

/* 天津：车厢徽章 + 极简大字 */
.ca-tj .ca-tj-car {
  flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; gap: 3px;
  background: #1f9e5f; color: #fff; border-radius: 12px; padding: 1.4% 2.4%;
  box-shadow: 0 4px 14px rgba(31, 158, 95, .35);
}
.ca-tj .ca-tj-car small { font-size: .74em; opacity: .85; font-weight: 700; }
.ca-tj .ca-tj-car b { font-size: clamp(15px, 1.5vw, 22px); font-weight: 900; letter-spacing: 1px; }
.ca-tj .ca-tag { background: rgba(26, 43, 60, .08); color: #1a2b3c; }
.ca-tj .ca-dao { color: #1f9e5f; }

/* 西安：绿色倒计时列 + 大字站名 */
.ca-xa .ca-xa-count {
  flex: 0 0 auto; display: flex; flex-direction: column; gap: 6px;
  background: linear-gradient(180deg, #103b26, #0a2c1b); border-radius: 12px;
  padding: 1.2% 1.8%; color: #d9efe2; box-shadow: 0 -3px 14px rgba(10, 60, 35, .25);
}
.ca-xa .ca-xa-count small { font-size: .72em; color: #7ea892; font-weight: 700; letter-spacing: .5px; }
.xa-arr-item { display: flex; align-items: baseline; gap: 8px; white-space: nowrap; }
.xa-arr-item b { font-weight: 800; color: #fff; font-size: clamp(10px, .95vw, 14px); }
.xa-arr-item u { text-decoration: none; font-weight: 800; color: #35d07f; background: rgba(53, 208, 127, .14); border-radius: 999px; padding: 0 9px; font-size: clamp(9px, .82vw, 12px); }
.ca-xa .ca-tag { background: #0a8f4e; color: #fff; border-color: transparent; }
.ca-xa .ca-dao { color: #0a8f4e; }

/* 武汉：线路色标签横排大字 */
.ca-wh .ca-tag { background: var(--line-color); color: #fff; border-color: transparent; }
.ca-wh .ca-dao { color: var(--line-color); }

/* 重庆：暗青霓虹 */
.ca-cq .ca-tag { background: rgba(0, 196, 180, .18); color: #6ff0e2; border-color: rgba(94, 224, 208, .35); }
.ca-cq .ca-name-row b { text-shadow: 0 0 22px rgba(0, 220, 200, .35); }
.ca-cq .ca-dao { color: #6ff0e2; }

/* 苏州 / 宁波：线路色标签 */
.ca-su .ca-tag, .ca-nb .ca-tag { background: var(--line-color); color: #fff; border-color: transparent; }
.ca-su .ca-dao, .ca-nb .ca-dao { color: var(--line-color); }
.sh-stop.past em { display: none; }


/* ---------- v2.2.7：环线 endpoints 视图——中间改为一根直线（无方向箭头） ---------- */
.endpoint-arrow.as-line {
  width: clamp(36px, 5vw, 80px); height: 0; flex: 0 0 auto;
  position: relative; font-size: 0; line-height: 0;
}
.endpoint-arrow.as-line::after {
  content: ''; position: absolute; left: 0; right: 0; top: -2px;
  border-top: 4px solid var(--line-color); border-radius: 2px;
}


/* ============================================================
   Ser.1.0.0 —— 视觉方案切换系统（继承 V2 v2.2.8）（A 版式 / B 主题 / C 质感 / D 密度）
   全部经 body[data-*] 覆盖，可插拔；默认态与 v2.2.7 完全一致
   ============================================================ */
.visual-groups { display: flex; flex-direction: column; gap: 14px; }
.visual-group-h { font-size: 12px; font-weight: 800; color: var(--primary); letter-spacing: .5px; margin-bottom: 7px; }
.visual-opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: 8px; }
.visual-opt { text-align: left; font-family: var(--font); color: var(--text-color); background: var(--card-bg);
  border: 1px solid var(--card-border); border-radius: 9px; padding: 8px 10px; cursor: pointer; transition: .18s; }
.visual-opt:hover { border-color: var(--primary); background: rgba(9,86,168,.06); }
.visual-opt b { display: block; font-size: 12px; font-weight: 800; line-height: 1.4; }
.visual-opt small { display: block; font-size: 11px; color: var(--muted); line-height: 1.45; margin-top: 2px; }
.visual-opt.active { border-color: var(--primary); box-shadow: 0 0 0 2px rgba(9,86,168,.18); background: rgba(9,86,168,.10); }
.visual-opt.active b::before { content: '● '; color: var(--primary); }

/* ---------- B · 界面主题 ---------- */
body[data-theme="night"] { --bg-color: #0d1117; --text-color: #e6edf3; --card-bg: #161b22;
  --card-border: #30363d; --muted: #8b949e; --primary: #4d9fff; --primary-dark: #2f7fd6; }
body[data-theme="night"] .lcd-screen { background: linear-gradient(180deg,#0a1420 0%,#122033 45%,#0d1a2a 100%); color: #eaf3ff; }
body[data-theme="night"] .lcd-screen::before { opacity: .16; }
body[data-theme="night"] .station-name, body[data-theme="night"] .station-en,
body[data-theme="night"] .terminal-name, body[data-theme="night"] .terminal-en,
body[data-theme="night"] .line-num, body[data-theme="night"] .line-label,
body[data-theme="night"] .info-label, body[data-theme="night"] .clock,
body[data-theme="night"] .arrival-num, body[data-theme="night"] .car-no,
body[data-theme="night"] .exit-info-title, body[data-theme="night"] .ov-cn {
  color: #eaf3ff !important; text-shadow: 0 0 12px rgba(90,180,255,.45); }
body[data-theme="brand"] { --primary: #0067ac; --primary-dark: #0181ca; }
body[data-theme="brand"] .version-chip { color: #0067ac; background: rgba(0,103,172,.10); border-color: rgba(0,103,172,.35); }
body[data-theme="brand"] .nav-tab.active { background: #0067ac; }
body[data-theme="contrast"] { --bg-color: #ffffff; --text-color: #000000; --card-bg: #ffffff;
  --card-border: #000000; --muted: #111111; }
body[data-theme="contrast"] .nav-tab, body[data-theme="contrast"] .ed-tab { font-size: 16px; }
body[data-theme="contrast"] .panel-card, body[data-theme="contrast"] .topbar { border-width: 2px; }
body[data-theme="contrast"] .lcd-screen { box-shadow: 0 0 0 3px #000, 0 0 0 12px #444; }
body[data-theme="night"] .platform-svg, body[data-theme="night"] .door-graphic { filter: brightness(.62); }
body[data-theme="night"] .door-caption .cn, body[data-theme="night"] .door-caption .en { color: #cfe2f7 !important; }

/* ---------- C · 屏幕质感 / 屏体形态 ---------- */
body[data-texture="crt"] .screen-overlay { opacity: .85; background:
  repeating-linear-gradient(0deg, rgba(0,0,0,.16) 0 1px, transparent 1px 3px),
  repeating-linear-gradient(90deg, rgba(255,0,0,.04) 0 1px, rgba(0,255,0,.04) 1px 2px, rgba(0,0,255,.04) 2px 3px); }
body[data-texture="crt"] .lcd-screen { filter: saturate(.88) contrast(1.07); }
body[data-texture="crt"] .lcd-screen:not(.is-planning)::after { content: ''; position: absolute; inset: 0;
  z-index: 11; pointer-events: none; background: radial-gradient(ellipse at 50% 50%, transparent 58%, rgba(0,0,0,.30) 100%); }
body[data-texture="glass"] .lcd-screen:not(.is-planning)::after { content: ''; position: absolute; inset: 0;
  z-index: 12; pointer-events: none; border-radius: 6px;
  background: linear-gradient(115deg, rgba(255,255,255,.14) 0%, rgba(255,255,255,.04) 22%, rgba(255,255,255,0) 42%),
              radial-gradient(ellipse at 50% 45%, transparent 52%, rgba(0,0,0,.30) 100%);
  box-shadow: inset 0 0 0 3px rgba(255,255,255,.28); }
body[data-texture="glass"] .lcd-screen { box-shadow: 0 26px 70px rgba(0,0,0,.85), 0 0 0 2px #101418, 0 0 0 13px #343a41; }
body[data-texture="long"] .lcd-screen { aspect-ratio: 4.4 / 1; }
body[data-texture="wide"] .lcd-screen { aspect-ratio: 21 / 9; }
body[data-texture="portrait"] .lcd-screen { aspect-ratio: 9 / 14; max-width: 46%; margin-inline: auto; }

/* ---------- A · 真屏版式 ---------- */
body[data-layout="loopstrip"] .lcd-screen { aspect-ratio: 4.2 / 1; }
body[data-layout="loopstrip"] .map-node, body[data-layout="loopstrip"] .ov-node { border-radius: 999px !important; }
body[data-layout="loopstrip"] .lcd-screen::before { opacity: .22; }
body:not([data-theme="night"])[data-layout="airport"] .lcd-screen { background: linear-gradient(180deg,#f2f8ff 0%,#ffffff 45%,#eef6ff 100%); }
body[data-layout="airport"] .station-name { font-size: clamp(28px, 3.4vw, 52px); }
body[data-layout="airport"] .station-en { font-size: clamp(14px, 1.5vw, 23px); }
body[data-layout="airport"] .arrival-view, body[data-layout="airport"] .timeline-view,
body[data-layout="airport"] .overview-view, body[data-layout="airport"] .endpoints-view { padding-inline: 4%; }
body:not([data-theme="night"])[data-layout="tram"] .lcd-screen { background: linear-gradient(180deg,#f4f1e6 0%,#fcfaf3 55%,#f0ece0 100%); }
body[data-layout="tram"] .lcd-ribbon { opacity: .10; }
body[data-layout="tram"] .station-name { font-size: clamp(19px, 2.2vw, 32px); }
body[data-layout="tram"] .station-en, body[data-layout="tram"] .terminal-en,
body[data-layout="tram"] .line-label small, body[data-layout="tram"] .info-label small { display: none !important; }

/* ---------- D · 信息密度 ---------- */
body[data-density="simple"] .station-en, body[data-density="simple"] .terminal-en,
body[data-density="simple"] .line-label small, body[data-density="simple"] .info-label small,
body[data-density="simple"] .car-no, body[data-density="simple"] .clock,
body[data-density="simple"] .exit-info, body[data-density="simple"] .terminal-toward { display: none !important; }
body[data-density="simple"] .station-name { font-size: clamp(27px, 3.3vw, 50px); }
body[data-density="detailed"] .station-en, body[data-density="detailed"] .terminal-en,
body[data-density="detailed"] .car-no, body[data-density="detailed"] .clock { display: block !important; }
body[data-density="detailed"] #lcdToward.hidden { display: block !important; }
body[data-density="detailed"] .station-en { font-size: clamp(14px, 1.4vw, 22px); }
body[data-density="detailed"] .lcd-screen { font-size: 1.08em; }


/* Ser.1.0.0 · 网页端窄屏适配 */
@media (max-width: 900px) {
  .topbar { flex-wrap: wrap; height: auto; gap: 8px; padding: 8px 12px; }
  .topbar-nav { order: 3; width: 100%; overflow-x: auto; }
  .brand-text small { display: none; }
  .main-content { padding: 12px; }
  .lcd-screen { width: 100%; }
}

/* 城市选择闸门打开时，才隐藏模拟屏；正常模拟时完全不受影响。 */
body.gate-mode #simulationPanel { display: none !important; }

/* 始终保留顶栏，确保任何模式下都能点“返回选择城市”。 */
body.fullscreen-mode .topbar { display: flex !important; }
