/* ==========================================================================
   VOLCANIC · DEEP SPACE — 全站设计系统（2026-09 彻底重做）
   深空底色 · 青/蓝霓虹 · 玻璃拟态 · 网格电路 · 渐变描边 · 数据感排版
   保留全部历史 class/id 契约（app.js / essay.js / jupas.js 注入引用）
   ========================================================================== */

:root {
  --bg: #03060e;
  --bg-2: #060d1c;
  --surface: rgba(12, 21, 40, 0.55);
  --surface-2: #0a1428;
  --line: rgba(125, 211, 252, 0.12);
  --line-2: rgba(125, 211, 252, 0.26);
  --text: #eaf3ff;
  --muted: #8296b6;
  --accent: #22d3ee;
  --accent-2: #3b82f6;
  --violet: #8b5cf6;
  --pink: #e879f9;
  --green: #34d399;
  --red: #fb7185;
  --amber: #fbbf24;
  --serif: "Segoe UI", "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif;
  --display: "Bahnschrift", "Segoe UI", "Noto Sans SC", system-ui, sans-serif;
  --sans: "Segoe UI", "Noto Sans SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --num: "Bahnschrift", "Segoe UI", "Microsoft YaHei", sans-serif;
  --glass: linear-gradient(165deg, rgba(18, 30, 56, 0.66), rgba(8, 14, 30, 0.72));
  --edge: linear-gradient(135deg, rgba(34, 211, 238, 0.55), rgba(59, 130, 246, 0.12) 38%, rgba(139, 92, 246, 0.45) 78%, rgba(232, 121, 249, 0.35));
  --edge-soft: linear-gradient(135deg, rgba(34, 211, 238, 0.28), rgba(59, 130, 246, 0.07) 45%, rgba(139, 92, 246, 0.22));
  --glow-cyan: 0 0 24px rgba(34, 211, 238, 0.35);
  --r-lg: 20px;
  --r-md: 14px;
  --r-sm: 10px;
}

@font-face {
  font-family: 'Noto Sans SC';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/fonts/NotoSansSC.ttf') format('truetype');
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
[hidden] { display: none !important; }

body {
  min-height: 100vh;
  background: radial-gradient(120% 90% at 50% -20%, #0a1730 0%, var(--bg) 46%, #02040a 100%);
  color: var(--text);
  font-family: var(--sans);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* 深空底：旧景图压至极暗 + 冷蓝色罩 */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(3, 6, 14, 0.90) 0%, rgba(4, 9, 20, 0.78) 36%, rgba(4, 9, 20, 0.82) 62%, rgba(2, 4, 10, 0.95) 100%),
    url('/bg.jpg') center / cover no-repeat;
  filter: saturate(0.72) hue-rotate(-8deg);
}
/* 电路网格 + 星云辉光 */
body::after {
  content: "";
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(720px 480px at 12% 6%, rgba(34, 211, 238, 0.10), transparent 62%),
    radial-gradient(860px 620px at 88% 92%, rgba(59, 130, 246, 0.11), transparent 62%),
    radial-gradient(560px 420px at 78% 12%, rgba(139, 92, 246, 0.08), transparent 60%),
    linear-gradient(rgba(125, 211, 252, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(125, 211, 252, 0.05) 1px, transparent 1px);
  background-size: auto, auto, auto, 44px 44px, 44px 44px;
  animation: gridDrift 30s linear infinite;
}
@keyframes gridDrift {
  from { background-position: 0 0, 0 0, 0 0, 0 0, 0 0; }
  to   { background-position: 0 0, 0 0, 0 0, 44px 44px, 44px 44px; }
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* 动效层画布 / 鼠标光晕（theme.js 注入） */
.fx-canvas { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.fx-glow {
  position: fixed; left: 0; top: 0; width: 560px; height: 560px; z-index: 1;
  pointer-events: none; border-radius: 50%; opacity: 0;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.10) 0%, rgba(59, 130, 246, 0.05) 42%, transparent 68%);
  transform: translate(-50%, -50%); transition: opacity 0.6s ease;
  mix-blend-mode: screen; will-change: transform;
}

.noise {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: 0.4;
  background-image: radial-gradient(rgba(180, 220, 255, 0.05) 1px, transparent 1px);
  background-size: 3px 3px; mix-blend-mode: overlay;
}
.vignette {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(120% 92% at 50% -12%, transparent 42%, rgba(1, 3, 8, 0.6) 100%);
}

/* 内容层压过动效背景 */
.navbar, main, .home-main, .home-contact, .home-footer, .auth-wrap, footer { position: relative; z-index: 2; }

/* ---------- 首屏加载 ---------- */
.intro {
  position: fixed; inset: 0; z-index: 50; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 26px;
  background: radial-gradient(90% 70% at 50% 40%, #081226 0%, #03060e 70%);
  transition: opacity 0.7s ease, visibility 0.7s;
}
.intro.hide { opacity: 0; visibility: hidden; pointer-events: none; }
.intro-mark {
  width: 64px; height: 64px; border-radius: 50%; object-fit: cover; display: block;
  border: 1px solid rgba(125, 211, 252, 0.4);
  box-shadow: 0 0 0 6px rgba(34, 211, 238, 0.06), 0 0 34px rgba(34, 211, 238, 0.4);
  animation: spinGlow 2.2s ease-in-out infinite;
}
@keyframes spinGlow {
  0%, 100% { box-shadow: 0 0 0 6px rgba(34, 211, 238, 0.05), 0 0 18px rgba(34, 211, 238, 0.25); }
  50% { box-shadow: 0 0 0 10px rgba(34, 211, 238, 0.1), 0 0 44px rgba(34, 211, 238, 0.6); }
}
.intro-line {
  width: 200px; height: 2px; border-radius: 2px; overflow: hidden; position: relative;
  background: rgba(125, 211, 252, 0.12);
}
.intro-line span {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--violet));
  box-shadow: 0 0 14px rgba(34, 211, 238, 0.8);
  transform: translateX(-100%); animation: loadline 1.15s cubic-bezier(0.6, 0, 0.3, 1) forwards;
}
@keyframes loadline { to { transform: translateX(0); } }
.intro-word {
  font-family: var(--display); letter-spacing: 0.44em; text-indent: 0.44em;
  font-size: 11px; color: var(--muted); text-transform: uppercase;
}

/* ---------- 导航 ---------- */
.navbar {
  position: sticky; top: 0; z-index: 20; display: grid; grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center; min-height: 66px; gap: 16px;
  padding: 10px clamp(20px, 3vw, 40px);
  backdrop-filter: blur(18px) saturate(1.5); -webkit-backdrop-filter: blur(18px) saturate(1.5);
  background: rgba(4, 9, 20, 0.66);
  border-bottom: 1px solid var(--line);
  transition: background 0.35s ease, box-shadow 0.35s ease;
}
.navbar::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, transparent 3%, rgba(34, 211, 238, 0.55) 28%, rgba(59, 130, 246, 0.55) 62%, rgba(139, 92, 246, 0.4) 84%, transparent 98%);
  opacity: 0.8;
}
.navbar.scrolled { background: rgba(3, 7, 16, 0.86); box-shadow: 0 14px 40px rgba(1, 3, 10, 0.6); }

.brand { display: flex; align-items: center; gap: 11px; min-width: 0; max-width: 270px; justify-self: start; }
.brand-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.15; }
.brand-name {
  font-family: var(--serif); font-size: 15px; font-weight: 700; letter-spacing: 0.06em;
  white-space: normal; overflow-wrap: break-word; line-height: 1.2;
  background: linear-gradient(92deg, #f2f9ff 30%, #9ee7fb 70%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.brand-sub {
  font-family: var(--display); font-size: 9px; letter-spacing: 0.22em;
  color: #5d7398; text-transform: uppercase; white-space: pre-line; line-height: 1.45;
}

.nav-links { display: flex; align-items: center; justify-content: center; gap: 3px; min-width: 0; margin: 0 auto; overflow: visible; }
.nav-links a {
  position: relative; flex: 0 0 auto; white-space: nowrap; text-align: center;
  color: var(--muted); font-size: 14px; padding: 8px 13px; border-radius: 10px;
  transition: color 0.25s, background 0.25s, transform 0.25s, text-shadow 0.25s;
}
.nav-links a::after {
  content: ""; position: absolute; left: 13px; right: 13px; bottom: 4px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 10px rgba(34, 211, 238, 0.7);
  transform: scaleX(0); transform-origin: left; transition: transform 0.3s cubic-bezier(0.5, 0, 0.2, 1);
}
.nav-links a:hover { color: var(--text); transform: translateY(-1px); background: rgba(34, 211, 238, 0.06); text-shadow: 0 0 16px rgba(34, 211, 238, 0.4); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-links a:active { transform: translateY(0) scale(0.96); }
.nav-links a.active { color: var(--text); background: rgba(34, 211, 238, 0.08); }
.nav-links a.active::after { transform: scaleX(1); }
.nav-backdrop { display: none; }

.nav-right { display: flex; align-items: center; justify-content: flex-end; gap: 9px; margin-left: 0; }

/* 圆形图标按钮：导航右侧一族 */
.win-download-btn, .lang-btn, .logout-btn, .passkey-btn, .admin-nav-btn, .auth-key, .home-lang-btn {
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--line-2); background: rgba(12, 21, 40, 0.4); color: var(--muted);
  display: grid; place-items: center; cursor: pointer; flex: 0 0 auto;
  transition: color 0.22s, border-color 0.22s, transform 0.22s, box-shadow 0.22s, background 0.22s;
}
.win-download-btn:hover, .lang-btn:hover, .passkey-btn:hover, .admin-nav-btn:hover, .home-lang-btn:hover {
  color: var(--accent); border-color: rgba(34, 211, 238, 0.6);
  background: rgba(34, 211, 238, 0.08); transform: scale(1.08);
  box-shadow: 0 0 18px rgba(34, 211, 238, 0.3);
}
.logout-btn:hover { color: var(--red); border-color: rgba(251, 113, 133, 0.55); background: rgba(251, 113, 133, 0.07); transform: scale(1.08); box-shadow: 0 0 18px rgba(251, 113, 133, 0.28); }
.admin-nav-btn:hover { transform: rotate(24deg) scale(1.05); }
.passkey-btn[disabled] { opacity: 0.45; cursor: not-allowed; transform: none; box-shadow: none; }

.win-download-wrap, .lang-wrap, .home-lang-wrap, .auth-lang-wrap, .admin-nav-wrap, .acct-wrap { position: relative; display: inline-flex; align-items: center; }

.win-download-pop, .admin-nav-menu, .lang-menu {
  position: absolute; top: calc(100% + 10px); right: 0; z-index: 70; min-width: 200px;
  padding: 7px; border-radius: 14px; border: 1px solid transparent;
  background: var(--glass) padding-box, var(--edge-soft) border-box;
  backdrop-filter: blur(22px) saturate(1.5); -webkit-backdrop-filter: blur(22px) saturate(1.5);
  box-shadow: 0 20px 46px rgba(1, 4, 12, 0.62), 0 0 30px rgba(34, 211, 238, 0.08);
  animation: popIn 0.24s cubic-bezier(0.3, 1.4, 0.5, 1);
}
@keyframes popIn { from { opacity: 0; transform: translateY(-7px) scale(0.97); } to { opacity: 1; transform: none; } }
.win-download-link {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px;
  color: var(--text); font-size: 13px; font-weight: 700; text-decoration: none; white-space: nowrap;
  transition: background 0.18s, color 0.18s;
}
.win-download-link:hover { background: linear-gradient(90deg, rgba(34, 211, 238, 0.16), rgba(59, 130, 246, 0.12)); color: #b5ecff; }
.admin-nav-menu { min-width: 190px; }
.admin-nav-menu a, .lang-menu button {
  display: block; width: 100%; text-align: left; padding: 9px 12px; border: 0; border-radius: 9px;
  background: transparent; color: var(--muted); font-size: 13px;
  transition: color 0.18s, background 0.18s, padding-left 0.18s;
}
.admin-nav-menu a:hover, .lang-menu button:hover { color: var(--text); background: rgba(34, 211, 238, 0.09); padding-left: 17px; }
.admin-nav-menu a.active, .lang-menu button.active { color: var(--accent); background: rgba(34, 211, 238, 0.12); }
.lang-menu { min-width: 132px; }

/* 账号弹出四宫格 */
.acct-pop {
  position: absolute; top: calc(100% + 10px); right: 0; z-index: 70; width: 300px;
  opacity: 0; visibility: hidden; transform: translateY(-8px) scale(0.97);
  transition: opacity 0.24s, transform 0.24s cubic-bezier(0.3, 1.4, 0.5, 1), visibility 0.24s;
}
.acct-wrap:hover .acct-pop, .acct-pop:hover { opacity: 1; visibility: visible; transform: none; }
.acct-pop-card {
  padding: 12px; border-radius: 16px; border: 1px solid transparent;
  background: var(--glass) padding-box, var(--edge-soft) border-box;
  backdrop-filter: blur(22px) saturate(1.5); -webkit-backdrop-filter: blur(22px) saturate(1.5);
  box-shadow: 0 22px 50px rgba(1, 4, 12, 0.65);
}
.acct-pop-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.acct-opt {
  display: flex; flex-direction: column; align-items: flex-start; gap: 8px;
  padding: 12px; border-radius: 12px; border: 1px solid var(--line);
  background: rgba(10, 18, 36, 0.5); color: var(--text); text-align: left;
  transition: border-color 0.2s, background 0.2s, transform 0.2s, box-shadow 0.2s;
}
.acct-opt:hover {
  border-color: rgba(34, 211, 238, 0.45); background: rgba(34, 211, 238, 0.07);
  transform: translateY(-2px); box-shadow: 0 8px 22px rgba(2, 6, 16, 0.5), 0 0 16px rgba(34, 211, 238, 0.12);
}
.acct-opt-icon {
  width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center;
  color: var(--accent); background: rgba(34, 211, 238, 0.1); border: 1px solid rgba(34, 211, 238, 0.22);
}
.acct-opt-label { font-size: 12.5px; font-weight: 600; }
.acct-opt-sub { font-size: 11px; color: var(--muted); }

.perm-light { width: 8px; height: 8px; border-radius: 50%; display: inline-block; margin-right: 6px; background: var(--muted); }
.perm-light.admin { background: var(--amber); box-shadow: 0 0 10px rgba(251, 191, 36, 0.8); }
.perm-light.user { background: var(--green); box-shadow: 0 0 10px rgba(52, 211, 153, 0.8); }
.perm-role { font-size: 11px; letter-spacing: 0.08em; }
.perm-role.admin { color: var(--amber); }
.perm-role.user { color: var(--green); }

/* ---------- 信息胶囊（30s 轮换） ---------- */
.info-pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 15px;
  border-radius: 999px; border: 1px solid var(--line-2);
  background: rgba(12, 21, 40, 0.5); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  font-size: 12px; color: var(--muted); cursor: default; white-space: nowrap;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.info-pill:hover { border-color: rgba(34, 211, 238, 0.4); box-shadow: 0 0 18px rgba(34, 211, 238, 0.14); }
.pill-label { transition: opacity 0.3s, transform 0.3s; }
.pill-value { color: var(--text); font-family: var(--num); font-weight: 600; letter-spacing: 0.03em; transition: opacity 0.3s, transform 0.3s; }
.info-pill.swap .pill-label, .info-pill.swap .pill-value { opacity: 0; transform: translateY(4px); }

.pill-wrap { position: relative; display: inline-flex; }
.info-pop {
  position: absolute; top: calc(100% + 10px); right: 0; z-index: 70; width: 300px;
  opacity: 0; visibility: hidden; transform: translateY(-8px) scale(0.97);
  transition: opacity 0.24s, transform 0.24s cubic-bezier(0.3, 1.4, 0.5, 1), visibility 0.24s;
}
.pill-wrap:hover .info-pop, .pill-wrap.active .info-pop { opacity: 1; visibility: visible; transform: none; }
.info-pop-card {
  padding: 14px; border-radius: 16px; border: 1px solid transparent;
  background: var(--glass) padding-box, var(--edge-soft) border-box;
  backdrop-filter: blur(22px) saturate(1.5); -webkit-backdrop-filter: blur(22px) saturate(1.5);
  box-shadow: 0 22px 50px rgba(1, 4, 12, 0.65);
}
.info-pop-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.info-pop-cell { padding: 10px 11px; border-radius: 11px; background: rgba(10, 18, 36, 0.5); border: 1px solid var(--line); }
.info-pop-label { font-size: 10.5px; color: var(--muted); letter-spacing: 0.08em; margin-bottom: 5px; }
.info-pop-value { font-size: 15px; font-weight: 700; font-family: var(--num); color: var(--text); }
.info-pop-value .cur { font-size: 11px; color: var(--muted); margin-right: 3px; }
.info-pop-sub { grid-column: 1 / -1; font-size: 11px; color: var(--muted); }

/* ---------- 主体布局 ---------- */
main { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 46px 0 90px; }
.hero { padding: clamp(30px, 6vh, 70px) 0 30px; }
.eyebrow {
  font-family: var(--display); font-size: 12px; letter-spacing: 0.34em; text-transform: uppercase;
  color: var(--accent); text-shadow: 0 0 18px rgba(34, 211, 238, 0.45); margin-bottom: 16px;
}
.eyebrow.zhtext { letter-spacing: 0.22em; }
h1 {
  font-size: clamp(34px, 5.4vw, 58px); line-height: 1.14; font-weight: 800; letter-spacing: 0.01em;
  background: linear-gradient(95deg, #f4faff 20%, #a5e9ff 58%, #c4b5fd 95%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 26px rgba(34, 211, 238, 0.18));
}
.greet-line { display: block; }
.bless-line { display: block; font-size: clamp(17px, 2.4vw, 24px); font-weight: 500; color: var(--muted); margin-top: 14px; -webkit-text-fill-color: var(--muted); }
.section-title {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--display); font-size: 13px; letter-spacing: 0.3em; text-transform: uppercase;
  color: #7d93b8; margin: 44px 0 18px;
}
.section-title::before { content: ""; width: 26px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--accent), transparent); box-shadow: 0 0 8px rgba(34, 211, 238, 0.6); }
.section-title::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--line-2), transparent); }

/* ---------- 卡片（天气 / 假期 / 通用） ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.card, .monitor {
  position: relative; border-radius: var(--r-lg); padding: 24px;
  border: 1px solid transparent;
  background: var(--glass) padding-box, var(--edge-soft) border-box;
  backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4);
  box-shadow: 0 16px 40px rgba(1, 4, 12, 0.5);
  transition: transform 0.3s cubic-bezier(0.3, 1.2, 0.4, 1), box-shadow 0.3s;
  overflow: hidden;
}
.card::before, .monitor::before {
  content: ""; position: absolute; top: 0; left: 8%; right: 8%; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(34, 211, 238, 0.65), rgba(139, 92, 246, 0.5), transparent);
  opacity: 0.85;
}
.card::after, .monitor::after {
  content: ""; position: absolute; top: -60%; left: -80%; width: 55%; height: 220%; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(170, 230, 255, 0.07), transparent);
  transform: rotate(8deg); transition: left 0.9s cubic-bezier(0.4, 0, 0.2, 1);
}
.card:hover, .monitor:hover {
  transform: translateY(-4px);
  box-shadow: 0 26px 56px rgba(1, 4, 12, 0.62), 0 0 34px rgba(34, 211, 238, 0.1);
}
.card:hover::after, .monitor:hover::after { left: 130%; }
.card-label {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px;
}
.card-label::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 9px rgba(34, 211, 238, 0.9); }
.card-value { font-family: var(--num); font-size: clamp(30px, 3.6vw, 44px); font-weight: 700; letter-spacing: 0.01em; line-height: 1.05; }
.card-value.accent {
  background: linear-gradient(92deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 16px rgba(34, 211, 238, 0.35));
}
.card-value .unit { font-size: 0.45em; color: var(--muted); font-weight: 500; margin-left: 4px; -webkit-text-fill-color: var(--muted); }
.card-meta { margin-top: 10px; font-size: 13px; color: var(--muted); }
.card-note { margin-top: 6px; font-size: 12px; color: #5f7398; }

/* ---------- 左右分栏监测 ---------- */
.monitors { display: grid; grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); gap: 18px; }
.monitor-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.monitor-title { font-size: 15px; font-weight: 700; letter-spacing: 0.04em; }
#kmb-title { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
#kmb-title .kmb-stop { font-weight: 700; }
#kmb-title .kmb-route { font-size: 12px; color: var(--muted); }
.monitor-badge {
  font-family: var(--num); font-size: 11px; letter-spacing: 0.06em; padding: 4px 11px; border-radius: 999px;
  color: var(--accent); background: rgba(34, 211, 238, 0.09); border: 1px solid rgba(34, 211, 238, 0.28);
  box-shadow: inset 0 0 12px rgba(34, 211, 238, 0.06); white-space: nowrap;
}
.monitor.clickable { cursor: pointer; }
.balance-stack { display: flex; flex-direction: column; gap: 10px; }
.bal-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  font-size: 13px; color: var(--muted); padding: 9px 13px; border-radius: 10px;
  background: rgba(10, 18, 36, 0.42); border: 1px solid rgba(125, 211, 252, 0.08);
}
.bal-row strong { color: var(--text); font-family: var(--num); font-weight: 600; letter-spacing: 0.02em; }
.big-balance { display: flex; align-items: baseline; gap: 7px; margin-bottom: 6px; }
.big-balance .cur { font-size: 14px; color: var(--muted); }
.big-balance .amount, .big-balance {
  font-family: var(--num); font-size: clamp(34px, 4vw, 46px); font-weight: 700; line-height: 1;
  background: linear-gradient(92deg, #d9f6ff, var(--accent) 55%, var(--accent-2));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 18px rgba(34, 211, 238, 0.28));
}
.muted-line { margin-top: 8px; font-size: 11.5px; color: #5f7398; font-family: var(--num); letter-spacing: 0.04em; }

.kmb-etas { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.kmb-col .dir { font-size: 12px; color: var(--muted); margin-bottom: 8px; letter-spacing: 0.08em; }
.eta-list { display: flex; flex-direction: column; gap: 8px; }
.kmb-note { margin-top: 10px; font-size: 11.5px; color: #5f7398; }

/* ---------- 子页 hero ---------- */
.sub-hero { padding: clamp(18px, 4vh, 44px) 0 8px; }
.sub-hero .eyebrow { margin-bottom: 12px; }
.sub-hero h2 {
  font-size: clamp(26px, 3.6vw, 38px); font-weight: 800; letter-spacing: 0.01em; line-height: 1.15;
  background: linear-gradient(95deg, #f4faff 25%, #a5e9ff 65%, #c4b5fd);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.sub-hero p { margin-top: 10px; color: var(--muted); font-size: 14.5px; max-width: 640px; line-height: 1.7; }

/* ---------- 交通 / 到站 ---------- */
.locate-btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px; border-radius: 12px;
  border: 1px solid rgba(34, 211, 238, 0.4); background: rgba(34, 211, 238, 0.08); color: var(--accent);
  font-size: 13px; font-weight: 600; cursor: pointer;
  transition: background 0.22s, box-shadow 0.22s, transform 0.22s;
}
.locate-btn:hover { background: rgba(34, 211, 238, 0.16); box-shadow: 0 0 22px rgba(34, 211, 238, 0.25); transform: translateY(-1px); }
.locate-note { margin-top: 10px; font-size: 12px; color: var(--muted); }
.transit-search {
  display: flex; align-items: center; gap: 10px; margin-top: 22px; padding: 6px 6px 6px 18px;
  border-radius: 14px; border: 1px solid transparent;
  background: var(--glass) padding-box, var(--edge-soft) border-box;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  transition: box-shadow 0.25s;
}
.transit-search:focus-within { box-shadow: 0 0 0 1px rgba(34, 211, 238, 0.4), 0 0 30px rgba(34, 211, 238, 0.16); }
.transit-search input { flex: 1; min-width: 0; background: transparent; border: 0; outline: none; color: var(--text); font-size: 15px; padding: 10px 0; }
.transit-search input::placeholder { color: #5f7398; }
.search-btn {
  width: 44px; height: 44px; border-radius: 11px; border: 0; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #04121c; cursor: pointer;
  box-shadow: 0 6px 20px rgba(34, 211, 238, 0.35);
  transition: transform 0.2s, box-shadow 0.2s;
}
.search-btn:hover { transform: translateY(-1px) scale(1.04); box-shadow: 0 8px 26px rgba(34, 211, 238, 0.5); }
.search-btn:active { transform: scale(0.95); }
.result-section { margin-top: 26px; }
.stop-list { display: flex; flex-direction: column; gap: 14px; margin-top: 18px; }
.stop-card {
  border-radius: var(--r-md); padding: 18px 20px; border: 1px solid transparent;
  background: var(--glass) padding-box, var(--edge-soft) border-box;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 12px 30px rgba(1, 4, 12, 0.45);
}
.stop-name { font-size: 15px; font-weight: 700; }
.stop-code { font-family: var(--num); font-size: 11.5px; color: var(--accent); letter-spacing: 0.08em; margin-top: 3px; }
.stop-meta { font-size: 12px; color: var(--muted); margin-top: 6px; }
.arrive-list { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.arrive-row {
  display: flex; align-items: center; gap: 13px; padding: 10px 13px; border-radius: 10px;
  background: rgba(10, 18, 36, 0.42); border: 1px solid rgba(125, 211, 252, 0.08);
}
.route-badge {
  font-family: var(--num); font-weight: 700; font-size: 13px; padding: 4px 10px; border-radius: 8px;
  color: var(--accent); background: rgba(34, 211, 238, 0.1); border: 1px solid rgba(34, 211, 238, 0.3);
  letter-spacing: 0.04em; flex: 0 0 auto;
}
.arrive-dest { flex: 1; min-width: 0; font-size: 13.5px; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.arrive-min { font-family: var(--num); color: var(--accent); white-space: nowrap; }
.arrive-min .min-num, .eta-chip .min-num { font-size: 19px; font-weight: 700; }
.arrive-min .min-unit, .eta-chip .min-unit { font-size: 11px; color: var(--muted); margin-left: 3px; }
.eta-chip {
  display: inline-flex; align-items: baseline; padding: 5px 11px; border-radius: 9px;
  background: rgba(34, 211, 238, 0.07); border: 1px solid rgba(34, 211, 238, 0.2);
  font-family: var(--num); color: var(--accent);
}
.stop-etas { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.empty-note { padding: 26px; text-align: center; color: var(--muted); font-size: 13px; border: 1px dashed var(--line-2); border-radius: var(--r-md); }

/* ---------- 页脚 ---------- */
footer {
  width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 26px 0 34px;
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  border-top: 1px solid var(--line); color: var(--muted); font-size: 12.5px;
}
.footer-status { display: inline-flex; align-items: center; gap: 9px; font-family: var(--num); letter-spacing: 0.03em; }
.conn-light { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); transition: background 0.3s, box-shadow 0.3s; }
.conn-light.green { background: var(--green); box-shadow: 0 0 10px rgba(52, 211, 153, 0.9); animation: pulseDot 2.4s ease-in-out infinite; }
.conn-light.yellow { background: var(--amber); box-shadow: 0 0 10px rgba(251, 191, 36, 0.9); }
.conn-light.red { background: var(--red); box-shadow: 0 0 10px rgba(251, 113, 133, 0.9); }
.conn-light.maintenance { background: var(--violet); box-shadow: 0 0 10px rgba(139, 92, 246, 0.9); animation: pulseDot 1.6s ease-in-out infinite; }
@keyframes pulseDot { 0%, 100% { opacity: 1; } 50% { opacity: 0.45; } }
.conn-retry, .conn-toggle {
  width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--line-2);
  background: transparent; color: var(--muted); display: grid; place-items: center; cursor: pointer;
  transition: color 0.2s, border-color 0.2s, transform 0.2s;
}
.conn-retry:hover { color: var(--accent); border-color: rgba(34, 211, 238, 0.5); transform: rotate(80deg); }
.conn-toggle:hover { color: var(--violet); border-color: rgba(139, 92, 246, 0.5); }
.conn-toggle.on { color: var(--violet); border-color: rgba(139, 92, 246, 0.65); background: rgba(139, 92, 246, 0.12); box-shadow: 0 0 12px rgba(139, 92, 246, 0.3); }
.conn-toggle.on:hover { color: #d8b4fe; }

/* ---------- 滚动显现 ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.8s cubic-bezier(0.2, 0.6, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.6, 0.2, 1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- DeepSeek 圆形按钮 / 侧栏 ---------- */
.ds-btn {
  width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid rgba(34, 211, 238, 0.45); background: rgba(34, 211, 238, 0.1); color: var(--accent);
  cursor: pointer; box-shadow: 0 0 22px rgba(34, 211, 238, 0.22);
  transition: transform 0.25s, box-shadow 0.25s, background 0.25s;
}
.ds-btn:hover { transform: scale(1.08); background: rgba(34, 211, 238, 0.18); box-shadow: 0 0 34px rgba(34, 211, 238, 0.45); }

/* ---------- 天气动画 ---------- */
.weather-visual { position: relative; height: 6px; margin: 4px 0 16px; border-radius: 4px; background: rgba(125, 211, 252, 0.1); overflow: hidden; }
.weather-visual::after { content: ""; position: absolute; inset: 0; border-radius: 4px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); box-shadow: 0 0 14px rgba(34, 211, 238, 0.6); animation: weatherSweep 3.2s ease-in-out infinite; }
.wv-sun::after { background: linear-gradient(90deg, #fbbf24, #f59e0b); box-shadow: 0 0 14px rgba(251, 191, 36, 0.6); }
.wv-rain::after { background: linear-gradient(90deg, #38bdf8, #2563eb); animation-duration: 1.8s; }
.wv-cloud::after { background: linear-gradient(90deg, #94a3b8, #64748b); box-shadow: 0 0 12px rgba(148, 163, 184, 0.5); }
.wv-storm::after { background: linear-gradient(90deg, #a78bfa, #7c3aed); box-shadow: 0 0 16px rgba(139, 92, 246, 0.7); animation-duration: 1.2s; }
.wv-calm::after { background: linear-gradient(90deg, var(--accent), var(--green)); }
@keyframes weatherSweep { 0%, 100% { transform: translateX(-6%) scaleX(0.94); opacity: 0.85; } 50% { transform: translateX(6%) scaleX(1); opacity: 1; } }

/* ---------- 聊天页 ---------- */
.chat-main { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 18px; align-items: start; }
.chat-panel {
  border-radius: var(--r-lg); border: 1px solid transparent; overflow: hidden;
  background: var(--glass) padding-box, var(--edge-soft) border-box;
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 16px 40px rgba(1, 4, 12, 0.5);
}
.chat-head { padding: 16px 22px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 10px; }
.chat-title { font-size: 15px; font-weight: 700; }
.chat-messages { padding: 22px; display: flex; flex-direction: column; gap: 14px; min-height: 320px; max-height: 56vh; overflow-y: auto; }
.msg { max-width: 82%; padding: 12px 16px; border-radius: 15px; font-size: 14px; line-height: 1.65; white-space: pre-wrap; overflow-wrap: break-word; }
.msg-user { align-self: flex-end; color: #04121c; background: linear-gradient(135deg, var(--accent), var(--accent-2)); border-bottom-right-radius: 5px; box-shadow: 0 8px 22px rgba(34, 211, 238, 0.28); }
.msg-assistant { align-self: flex-start; background: rgba(12, 21, 40, 0.72); border: 1px solid var(--line); border-bottom-left-radius: 5px; }
.msg.thinking { color: var(--muted); font-style: italic; animation: pulseDot 1.6s ease-in-out infinite; }
.chat-input { display: flex; gap: 10px; padding: 16px 22px; border-top: 1px solid var(--line); }
.chat-input textarea {
  flex: 1; min-width: 0; resize: none; min-height: 46px; max-height: 140px; padding: 12px 14px;
  border-radius: 12px; border: 1px solid var(--line-2); background: rgba(8, 14, 30, 0.6); color: var(--text);
  font-family: inherit; font-size: 14px; outline: none; transition: border-color 0.22s, box-shadow 0.22s;
}
.chat-input textarea:focus { border-color: rgba(34, 211, 238, 0.55); box-shadow: 0 0 20px rgba(34, 211, 238, 0.14); }
.send-btn {
  align-self: flex-end; padding: 0 22px; height: 46px; border-radius: 12px; border: 0;
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #04121c; font-weight: 700; font-size: 14px;
  box-shadow: 0 8px 22px rgba(34, 211, 238, 0.3); transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
}
.send-btn:hover { transform: translateY(-1px); box-shadow: 0 10px 28px rgba(34, 211, 238, 0.45); }
.send-btn:active { transform: scale(0.96); }
.send-btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; box-shadow: none; }
.chat-aside {
  border-radius: var(--r-lg); padding: 18px; border: 1px solid transparent;
  background: var(--glass) padding-box, var(--edge-soft) border-box;
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  position: sticky; top: 86px;
}
.aside-title { font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.aside-search { margin-bottom: 12px; }
.aside-search input {
  width: 100%; padding: 9px 13px; border-radius: 10px; border: 1px solid var(--line-2);
  background: rgba(8, 14, 30, 0.6); color: var(--text); font-size: 13px; outline: none; transition: border-color 0.2s, box-shadow 0.2s;
}
.aside-search input:focus { border-color: rgba(34, 211, 238, 0.55); box-shadow: 0 0 16px rgba(34, 211, 238, 0.12); }
.aside-list { display: flex; flex-direction: column; gap: 7px; max-height: 46vh; overflow-y: auto; }
.ds-item { padding: 10px 12px; border-radius: 10px; border: 1px solid transparent; cursor: pointer; transition: background 0.2s, border-color 0.2s; }
.ds-item:hover { background: rgba(34, 211, 238, 0.06); border-color: rgba(34, 211, 238, 0.2); }
.ds-cat { font-size: 10.5px; color: var(--accent); letter-spacing: 0.1em; }
.ds-name { font-size: 13px; margin-top: 2px; }

*::-webkit-scrollbar { width: 9px; height: 9px; }
*::-webkit-scrollbar-thumb { background: rgba(125, 211, 252, 0.18); border-radius: 8px; border: 2px solid transparent; background-clip: content-box; }
*::-webkit-scrollbar-thumb:hover { background: rgba(125, 211, 252, 0.34); background-clip: content-box; border: 2px solid transparent; }
*::-webkit-scrollbar-track { background: transparent; }

/* ---------- 登录 / 注册 / 介绍 / 维护 / 404 ---------- */
.auth-body { display: flex; flex-direction: column; }
.auth-body::before {
  background:
    linear-gradient(180deg, rgba(3, 6, 14, 0.92) 0%, rgba(4, 9, 20, 0.8) 42%, rgba(4, 9, 20, 0.85) 66%, rgba(2, 4, 10, 0.96) 100%),
    url('/bg-login.jpg') center / cover no-repeat;
  filter: saturate(0.72) hue-rotate(-8deg);
}
/* logo 光环（login/register/intro/404） */
.logo-orbit { position: relative; display: grid; place-items: center; }
.logo-orbit::before {
  content: ""; position: absolute; inset: -14px; border-radius: 50%; pointer-events: none;
  background: conic-gradient(from 0deg, transparent 0 62%, rgba(34, 211, 238, 0.9) 82%, rgba(139, 92, 246, 0.7) 90%, transparent 100%);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px));
  animation: orbitRotate 3.8s linear infinite;
  filter: drop-shadow(0 0 8px rgba(34, 211, 238, 0.5));
}
.logo-orbit::after {
  content: ""; position: absolute; inset: -24px; border-radius: 50%; pointer-events: none;
  border: 1px dashed rgba(125, 211, 252, 0.18);
  animation: orbitRotate 22s linear infinite reverse;
}
@keyframes orbitRotate { from { transform: rotate(0); } to { transform: rotate(360deg); } }

.auth-wrap { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 48px 20px; width: 100%; }
.auth-logo {
  width: 78px; height: 78px; border-radius: 50%; object-fit: cover;
  border: 1px solid rgba(125, 211, 252, 0.45);
  box-shadow: 0 0 0 7px rgba(34, 211, 238, 0.07), 0 0 40px rgba(34, 211, 238, 0.45);
  animation: logoFloat 5s ease-in-out infinite;
}
@keyframes logoFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }

.auth-card {
  position: relative; width: min(430px, 100%); padding: 40px 38px 34px;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  border-radius: 24px; border: 1px solid transparent;
  background: var(--glass) padding-box, var(--edge) border-box;
  backdrop-filter: blur(24px) saturate(1.5); -webkit-backdrop-filter: blur(24px) saturate(1.5);
  box-shadow: 0 34px 90px rgba(1, 3, 10, 0.72), 0 0 60px rgba(34, 211, 238, 0.07);
  animation: cardEnter 0.9s cubic-bezier(0.2, 0.9, 0.25, 1) both;
}
@keyframes cardEnter { from { opacity: 0; transform: translateY(30px) scale(0.97); } to { opacity: 1; transform: none; } }
.auth-card::before {
  content: ""; position: absolute; top: 0; left: 12%; right: 12%; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(170, 235, 255, 0.9), transparent);
}
.auth-back {
  position: absolute; top: 16px; left: 16px; width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--line-2); background: rgba(12, 21, 40, 0.5); color: var(--muted);
  display: grid; place-items: center; cursor: pointer; z-index: 2;
  transition: color 0.22s, border-color 0.22s, transform 0.22s, box-shadow 0.22s;
}
.auth-back:hover { color: var(--accent); border-color: rgba(34, 211, 238, 0.6); transform: translateX(-2px); box-shadow: 0 0 16px rgba(34, 211, 238, 0.28); }
.auth-title {
  font-size: 27px; font-weight: 800; letter-spacing: 0.08em; margin-top: 4px;
  background: linear-gradient(95deg, #f4faff, #a5e9ff);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.auth-sub { font-size: 12.5px; color: var(--muted); letter-spacing: 0.22em; margin-top: -8px; margin-bottom: 8px; text-transform: uppercase; font-family: var(--display); }
.auth-input {
  width: 100%; padding: 14px 17px; border-radius: 13px; font-size: 14.5px; color: var(--text);
  border: 1px solid var(--line-2); background: rgba(6, 11, 24, 0.62); outline: none;
  transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
}
.auth-input::placeholder { color: #54688c; }
.auth-input:focus {
  border-color: rgba(34, 211, 238, 0.65); background: rgba(8, 15, 32, 0.78);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.12), 0 0 26px rgba(34, 211, 238, 0.16);
}
.auth-remember { display: flex; align-items: center; gap: 9px; align-self: flex-start; font-size: 13px; color: var(--muted); cursor: pointer; user-select: none; }
.auth-remember input[type="checkbox"] {
  appearance: none; -webkit-appearance: none; width: 17px; height: 17px; border-radius: 5px;
  border: 1px solid var(--line-2); background: rgba(8, 14, 30, 0.6); cursor: pointer; position: relative;
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s; flex: 0 0 auto;
}
.auth-remember:hover input[type="checkbox"] { border-color: rgba(34, 211, 238, 0.5); }
.auth-remember input[type="checkbox"]:checked { background: linear-gradient(135deg, var(--accent), var(--accent-2)); border-color: transparent; box-shadow: 0 0 12px rgba(34, 211, 238, 0.5); }
.auth-remember input[type="checkbox"]:checked::after {
  content: ""; position: absolute; left: 5px; top: 2px; width: 4px; height: 8px;
  border: solid #04121c; border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.auth-btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 14px 26px; border-radius: 13px; font-size: 14.5px; font-weight: 700; letter-spacing: 0.12em;
  border: 1px solid rgba(125, 211, 252, 0.3); background: rgba(12, 21, 40, 0.55); color: var(--text);
  cursor: pointer; overflow: hidden; text-decoration: none;
  transition: transform 0.22s, box-shadow 0.22s, border-color 0.22s, background 0.22s, color 0.22s;
}
.auth-btn::before {
  content: ""; position: absolute; top: 0; left: -90%; width: 55%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.16), transparent);
  transform: skewX(-18deg); transition: left 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.auth-btn:hover::before { left: 140%; }
.auth-btn:hover { transform: translateY(-2px); border-color: rgba(34, 211, 238, 0.6); box-shadow: 0 10px 28px rgba(2, 6, 16, 0.55), 0 0 24px rgba(34, 211, 238, 0.2); }
a.auth-btn { text-align: center; }
.auth-btn-warm {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%); color: #04121c; border-color: transparent;
  box-shadow: 0 10px 30px rgba(34, 211, 238, 0.35);
}
.auth-btn-warm:hover { box-shadow: 0 14px 38px rgba(34, 211, 238, 0.5); border-color: transparent; color: #020b12; }
.auth-btn[disabled] { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }
.auth-btn-ghost { background: transparent; border-color: var(--line-2); color: var(--muted); }
.auth-btn-ghost:hover { color: var(--text); }
.auth-error { min-height: 18px; font-size: 12.5px; color: var(--red); text-align: center; text-shadow: 0 0 14px rgba(251, 113, 133, 0.4); }
.auth-divider { display: flex; align-items: center; gap: 12px; width: 100%; color: #54688c; font-size: 11.5px; letter-spacing: 0.14em; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--line-2), transparent); }
.auth-link { color: var(--accent); font-size: 13.5px; text-decoration: none; transition: text-shadow 0.2s; }
.auth-link:hover { text-shadow: 0 0 16px rgba(34, 211, 238, 0.6); }
.auth-actions { display: flex; align-items: center; gap: 10px; width: 100%; margin-top: 4px; }
.auth-actions .auth-btn { flex: 1; padding-left: 12px; padding-right: 12px; }
.auth-actions .auth-key { width: 46px; height: 46px; border-radius: 13px; }
.auth-key:hover { color: var(--accent); border-color: rgba(34, 211, 238, 0.6); background: rgba(34, 211, 238, 0.08); box-shadow: 0 0 18px rgba(34, 211, 238, 0.3); }

.landing-title {
  font-size: clamp(40px, 7vw, 74px); font-weight: 800; letter-spacing: 0.04em; margin-top: 26px; text-align: center; line-height: 1.1;
  background: linear-gradient(95deg, #f4faff 15%, #a5e9ff 55%, #c4b5fd 90%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 34px rgba(34, 211, 238, 0.25));
}
.landing-en { font-family: var(--display); font-size: 13px; letter-spacing: 0.5em; text-indent: 0.5em; color: var(--accent); text-transform: uppercase; margin-top: 14px; text-align: center; text-shadow: 0 0 20px rgba(34, 211, 238, 0.5); }
.landing-desc { margin-top: 20px; color: var(--muted); font-size: 14.5px; line-height: 1.8; max-width: 520px; text-align: center; }
.landing-features { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 26px 0 30px; }
.landing-features span {
  padding: 8px 16px; border-radius: 999px; font-size: 12.5px; color: #a9c3e8;
  border: 1px solid var(--line-2); background: rgba(12, 21, 40, 0.45); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.err-code { font-family: var(--num); font-size: clamp(72px, 14vw, 132px); font-weight: 700; line-height: 1; letter-spacing: 0.04em;
  background: linear-gradient(180deg, #b5ecff, var(--accent-2));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 40px rgba(34, 211, 238, 0.35)); margin-top: 12px;
}

/* ---------- DSE 倒计时 ---------- */
.dse-countdown { text-align: center; }
.home-dse .dse-countdown { background: none; border: 0; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; padding: 0; }
.dse-title { font-size: 16px; font-weight: 700; letter-spacing: 0.1em; }
.dse-sub { font-size: 12.5px; color: var(--muted); margin-top: 8px; letter-spacing: 0.06em; }
.dse-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 24px; }
.dse-unit {
  position: relative; padding: 20px 8px 16px; border-radius: 16px; overflow: hidden;
  border: 1px solid transparent;
  background: linear-gradient(170deg, rgba(16, 27, 52, 0.7), rgba(7, 12, 26, 0.78)) padding-box, var(--edge-soft) border-box;
  box-shadow: inset 0 0 24px rgba(34, 211, 238, 0.04);
}
.dse-unit::before { content: ""; position: absolute; top: 0; left: 18%; right: 18%; height: 1px; background: linear-gradient(90deg, transparent, rgba(34, 211, 238, 0.7), transparent); }
.dse-unit b {
  display: block; font-family: var(--num); font-size: clamp(30px, 4.6vw, 48px); font-weight: 700; line-height: 1;
  background: linear-gradient(180deg, #e6f8ff, var(--accent) 70%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 16px rgba(34, 211, 238, 0.4)); font-variant-numeric: tabular-nums;
}
.dse-unit span { display: block; margin-top: 8px; font-size: 11.5px; color: var(--muted); letter-spacing: 0.28em; text-indent: 0.28em; }
.dse-note { margin-top: 18px; font-family: var(--num); font-size: 12px; color: #5f7398; letter-spacing: 0.1em; }

/* ---------- 全局 toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 34px; transform: translate(-50%, 20px); z-index: 90;
  padding: 12px 22px; border-radius: 13px; font-size: 13.5px; color: var(--text);
  border: 1px solid transparent; background: var(--glass) padding-box, var(--edge-soft) border-box;
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 18px 44px rgba(1, 4, 12, 0.6), 0 0 26px rgba(34, 211, 238, 0.12);
  opacity: 0; visibility: hidden; transition: opacity 0.3s, transform 0.3s cubic-bezier(0.3, 1.3, 0.4, 1), visibility 0.3s;
  max-width: min(480px, calc(100vw - 40px)); text-align: center;
}
.toast.show { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.toast.error { color: #fecdd3; box-shadow: 0 18px 44px rgba(1, 4, 12, 0.6), 0 0 26px rgba(251, 113, 133, 0.18); }

/* ---------- 个人主页（index / news / ask 家族） ---------- */
.home-body::before {
  background:
    linear-gradient(180deg, rgba(3, 6, 14, 0.88) 0%, rgba(4, 9, 20, 0.74) 34%, rgba(4, 9, 20, 0.8) 64%, rgba(2, 4, 10, 0.94) 100%),
    url('/bg.jpg') center / cover no-repeat;
}
.brand-mark {
  width: 38px; height: 38px; border-radius: 50%; object-fit: cover;
  border: 1px solid rgba(125, 211, 252, 0.4);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.08), 0 0 18px rgba(34, 211, 238, 0.35);
  transition: box-shadow 0.25s, transform 0.25s;
}
.brand:hover .brand-mark { transform: scale(1.06); box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.12), 0 0 28px rgba(34, 211, 238, 0.6); }

.home-register {
  padding: 8px 17px; border-radius: 11px; font-size: 13px; color: var(--muted);
  border: 1px solid var(--line-2); transition: color 0.22s, border-color 0.22s, box-shadow 0.22s;
}
.home-register:hover { color: var(--text); border-color: rgba(34, 211, 238, 0.5); box-shadow: 0 0 16px rgba(34, 211, 238, 0.16); }
.home-login {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 19px; border-radius: 12px;
  font-size: 13.5px; font-weight: 600; color: #c9efff;
  border: 1px solid rgba(34, 211, 238, 0.45); background: rgba(34, 211, 238, 0.08);
  box-shadow: inset 0 0 18px rgba(34, 211, 238, 0.05);
  transition: background 0.25s, box-shadow 0.25s, transform 0.25s, color 0.25s;
}
.home-login:hover {
  color: #031018; background: linear-gradient(92deg, var(--accent), var(--accent-2));
  box-shadow: 0 8px 26px rgba(34, 211, 238, 0.45); transform: translateY(-1px);
}
.home-login-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 9px rgba(52, 211, 153, 0.9); animation: pulseDot 2.2s ease-in-out infinite; }

.home-main { width: min(1080px, calc(100% - 40px)); margin: 0 auto; }
.home-hero { padding: clamp(56px, 11vh, 120px) 0 30px; text-align: center; }
.home-title {
  font-size: clamp(38px, 6.6vw, 68px); font-weight: 800; line-height: 1.16; letter-spacing: 0.02em;
  min-height: 1.2em;
  background: linear-gradient(95deg, #f4faff 18%, #a5e9ff 60%, #c4b5fd 95%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 30px rgba(34, 211, 238, 0.2));
}
.home-accent {
  background: linear-gradient(92deg, var(--accent) 10%, var(--accent-2) 60%, var(--violet));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 22px rgba(34, 211, 238, 0.5));
}
.typing-caret {
  display: inline-block; width: 3px; height: 0.92em; margin-left: 6px; vertical-align: -0.08em;
  background: linear-gradient(180deg, var(--accent), var(--accent-2)); border-radius: 2px;
  box-shadow: 0 0 14px rgba(34, 211, 238, 0.9); animation: caretBlink 0.95s steps(2, start) infinite;
}
@keyframes caretBlink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
.home-sub { margin: 22px auto 0; max-width: 620px; color: var(--muted); font-size: 15px; line-height: 1.85; }
.home-note { margin-top: 12px; font-size: 12px; color: #54688c; letter-spacing: 0.1em; }

.home-cta {
  position: relative; display: inline-flex; align-items: center; gap: 11px; margin-top: 36px;
  padding: 16px 36px; border-radius: 15px; font-size: 15.5px; font-weight: 700; letter-spacing: 0.1em;
  color: #04121c; background: linear-gradient(94deg, var(--accent) 0%, var(--accent-2) 55%, var(--violet) 130%);
  box-shadow: 0 14px 40px rgba(34, 211, 238, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  overflow: hidden; transition: transform 0.25s, box-shadow 0.25s;
}
.home-cta::before {
  content: ""; position: absolute; top: 0; left: -90%; width: 50%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transform: skewX(-18deg); animation: ctaSweep 3.4s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}
@keyframes ctaSweep { 0%, 55% { left: -90%; } 90%, 100% { left: 150%; } }
.home-cta:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 20px 54px rgba(34, 211, 238, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.35); }
.home-cta svg { transition: transform 0.25s; }
.home-cta:hover svg { transform: translateX(4px); }

.home-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 54px; }
.home-item {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 12px;
  padding: 24px 22px; border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid transparent;
  background: var(--glass) padding-box, var(--edge-soft) border-box;
  backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4);
  box-shadow: 0 14px 36px rgba(1, 4, 12, 0.48);
  transition: transform 0.3s cubic-bezier(0.3, 1.2, 0.4, 1), box-shadow 0.3s;
  transform-style: preserve-3d;
}
.home-item::before {
  content: ""; position: absolute; top: 0; left: 10%; right: 10%; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(34, 211, 238, 0.6), transparent);
}
.home-item:hover { transform: translateY(-5px); box-shadow: 0 24px 52px rgba(1, 4, 12, 0.6), 0 0 36px rgba(34, 211, 238, 0.13); }
.home-item-icon {
  width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; font-size: 21px;
  background: linear-gradient(140deg, rgba(34, 211, 238, 0.16), rgba(59, 130, 246, 0.1));
  border: 1px solid rgba(34, 211, 238, 0.3); box-shadow: 0 0 20px rgba(34, 211, 238, 0.14), inset 0 0 14px rgba(34, 211, 238, 0.08);
  transition: transform 0.3s, box-shadow 0.3s;
}
.home-item:hover .home-item-icon { transform: scale(1.1) rotate(-4deg); box-shadow: 0 0 30px rgba(34, 211, 238, 0.35), inset 0 0 14px rgba(34, 211, 238, 0.12); }
.home-item-title { font-size: 15.5px; font-weight: 700; letter-spacing: 0.03em; }
.home-item-sub { font-size: 12.5px; color: var(--muted); line-height: 1.6; }

.home-dse { margin-top: 58px; }
.home-dse .dse-countdown {
  padding: 34px 30px; border-radius: 24px; border: 1px solid transparent;
  background: var(--glass) padding-box, var(--edge) border-box;
  backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: 0 24px 60px rgba(1, 4, 12, 0.55), 0 0 50px rgba(34, 211, 238, 0.06);
  position: relative; overflow: hidden;
}
.home-dse .dse-countdown::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(60% 90% at 50% 130%, rgba(59, 130, 246, 0.14), transparent 65%);
}
.home-dse .dse-title { font-size: 18px; }
.home-dse .dse-sub { margin-top: 8px; }

.home-contact { margin: 66px auto 0; width: min(1080px, calc(100% - 40px)); text-align: center; }
.contact-title { font-family: var(--display); font-size: 12px; letter-spacing: 0.34em; text-indent: 0.34em; text-transform: uppercase; color: #7d93b8; }
.contact-buttons { display: flex; justify-content: center; gap: 13px; margin-top: 18px; }
.contact-btn {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--line-2); background: rgba(12, 21, 40, 0.45); color: var(--muted);
  transition: color 0.22s, border-color 0.22s, transform 0.22s, box-shadow 0.22s;
}
.contact-btn:hover {
  color: var(--accent); border-color: rgba(34, 211, 238, 0.6); transform: translateY(-3px) scale(1.06);
  box-shadow: 0 10px 24px rgba(1, 4, 12, 0.5), 0 0 22px rgba(34, 211, 238, 0.3);
}
.home-footer {
  margin-top: 66px; padding: 26px 0 34px; text-align: center;
  border-top: 1px solid var(--line); color: #54688c; font-size: 12.5px; letter-spacing: 0.08em;
}

/* ---------- 弹窗 ---------- */
.modal-mask {
  position: fixed; inset: 0; z-index: 80; display: flex; align-items: center; justify-content: center;
  padding: 20px; background: rgba(2, 4, 10, 0.68); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  animation: maskIn 0.25s ease;
}
.modal-mask[hidden] { display: none; }
@keyframes maskIn { from { opacity: 0; } to { opacity: 1; } }
.modal-card {
  position: relative; width: min(400px, 100%); padding: 30px 28px;
  display: flex; flex-direction: column; gap: 13px;
  border-radius: 20px; border: 1px solid transparent;
  background: var(--glass) padding-box, var(--edge) border-box;
  backdrop-filter: blur(24px) saturate(1.5); -webkit-backdrop-filter: blur(24px) saturate(1.5);
  box-shadow: 0 34px 80px rgba(1, 3, 10, 0.75), 0 0 50px rgba(34, 211, 238, 0.08);
  animation: cardEnter 0.4s cubic-bezier(0.2, 0.9, 0.25, 1) both;
}
.modal-back {
  position: absolute; top: 14px; left: 14px; width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid var(--line-2); background: rgba(12, 21, 40, 0.5); color: var(--muted);
  display: grid; place-items: center; cursor: pointer;
  transition: color 0.2s, border-color 0.2s, transform 0.2s;
}
.modal-back:hover { color: var(--accent); border-color: rgba(34, 211, 238, 0.6); transform: translateX(-2px); }
.modal-title { font-size: 17px; font-weight: 700; text-align: center; letter-spacing: 0.06em; margin-bottom: 4px; }
.modal-input {
  width: 100%; padding: 12px 15px; border-radius: 11px; font-size: 14px; color: var(--text);
  border: 1px solid var(--line-2); background: rgba(6, 11, 24, 0.62); outline: none;
  transition: border-color 0.22s, box-shadow 0.22s;
}
.modal-input::placeholder { color: #54688c; }
.modal-input:focus { border-color: rgba(34, 211, 238, 0.6); box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.1), 0 0 20px rgba(34, 211, 238, 0.14); }
.modal-error { min-height: 17px; font-size: 12.5px; color: var(--red); text-align: center; }
.modal-submit {
  padding: 13px 20px; border-radius: 12px; border: 0; font-size: 14px; font-weight: 700; letter-spacing: 0.1em;
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #04121c; cursor: pointer;
  box-shadow: 0 10px 26px rgba(34, 211, 238, 0.32); transition: transform 0.2s, box-shadow 0.2s;
}
.modal-submit:hover { transform: translateY(-1px); box-shadow: 0 12px 32px rgba(34, 211, 238, 0.46); }

/* ---------- 列表滚动容器 ---------- */
.record-list, .question-list, .admin-list, .news-list, .mail-list, .schedule-list, .transit-list {
  max-height: min(58vh, 720px); overflow-y: auto; scrollbar-width: thin; scrollbar-color: rgba(34, 211, 238, 0.35) transparent; padding-right: 4px;
}

/* ---------- 选区 / 焦点 ---------- */
::selection { background: rgba(34, 211, 238, 0.28); color: #eaf8ff; }
:focus-visible { outline: 2px solid rgba(34, 211, 238, 0.7); outline-offset: 2px; }
:where(a, button, input, select, textarea):focus-visible { outline: 2px solid rgba(34, 211, 238, 0.7); outline-offset: 2px; }
input, textarea, select { color-scheme: dark; }
input:-webkit-autofill { -webkit-box-shadow: 0 0 0 60px #0a1428 inset; -webkit-text-fill-color: var(--text); caret-color: var(--text); }

/* ---------- essay / jupas 组件配色同化（高特异性覆盖其注入变量） ---------- */
#essay-app.ve-root, #essay-app .ve-root { --ve-a: #22d3ee; --ve-b: #3b82f6; --ve-line: rgba(125, 211, 252, 0.14); --ve-surface: rgba(12, 21, 40, 0.72); --ve-text: #eaf3ff; --ve-muted: #8296b6; }
#jupas-app.vj-root, #jupas-app .vj-root { --vj-a: #22d3ee; --vj-b: #3b82f6; --vj-line: rgba(125, 211, 252, 0.14); --vj-surface: rgba(12, 21, 40, 0.72); --vj-text: #eaf3ff; --vj-muted: #8296b6; }
#essay-app .ve-submit { box-shadow: 0 8px 24px rgba(34, 211, 238, 0.28); }
#essay-app .ve-submit:hover { box-shadow: 0 10px 30px rgba(34, 211, 238, 0.42); }
#jupas-app .vj-primary { box-shadow: 0 6px 18px rgba(34, 211, 238, 0.26); }
#jupas-app .vj-primary:hover { box-shadow: 0 10px 28px rgba(34, 211, 238, 0.4); }

/* ---------- 适配：中等宽度 ---------- */
@media (max-width: 1280px) {
  .info-pill .pill-label { display: none; }
  .info-pill { padding: 7px 11px; }
}

/* ---------- 适配：平板 ---------- */
@media (max-width: 900px) {
  .home-grid { grid-template-columns: repeat(2, 1fr); }
  .chat-main { grid-template-columns: 1fr; }
  .chat-aside { position: static; }
}

/* ---------- 适配：手机 ---------- */
@media (max-width: 760px) {
  .cards, .monitors { grid-template-columns: 1fr; }
  main { padding: 30px 0 70px; }
  .home-hero { padding: 44px 0 22px; }
  .home-hero .home-title { font-size: clamp(32px, 9.4vw, 44px); }
  .home-sub { font-size: 14px; }
  .home-cta { padding: 14px 28px; font-size: 14.5px; }
  .home-contact { margin-top: 50px; }
  .auth-card { padding: 34px 24px 28px; }
  .auth-actions { flex-wrap: wrap; }
  .auth-actions .auth-key { width: 42px; height: 42px; }
  .modal-card { padding: 26px 20px; }
  .modal-mask { align-items: flex-end; padding: 12px; }
  .home-grid { gap: 12px; }
  .dse-grid { gap: 9px; }
  .kmb-etas { grid-template-columns: 1fr; }
}

/* ---------- 适配：小手机 ---------- */
@media (max-width: 480px) {
  .home-grid { grid-template-columns: 1fr; }
  #home-login-label { max-width: 96px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .home-item { padding: 20px 18px; }
  .brand-sub { display: none; }
}

/* ---------- 窄屏：汉堡 + 抽屉 ---------- */
.nav-hamburger {
  display: none; width: 38px; height: 38px; border-radius: 11px;
  border: 1px solid var(--line-2); background: rgba(12, 21, 40, 0.45); color: var(--muted);
  place-items: center; cursor: pointer; transition: color 0.2s, border-color 0.2s;
}
.nav-hamburger:hover { color: var(--accent); border-color: rgba(34, 211, 238, 0.5); }
@media (max-width: 1120px) {
  .navbar { grid-template-columns: auto auto minmax(0, 1fr) auto; }
  .nav-hamburger { display: grid; }
  .nav-links {
    position: fixed; top: 0; right: 0; bottom: 0; z-index: 65; width: min(320px, 84vw);
    flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 6px;
    padding: 88px 22px 30px; margin: 0;
    background: rgba(4, 8, 18, 0.92); backdrop-filter: blur(24px) saturate(1.5); -webkit-backdrop-filter: blur(24px) saturate(1.5);
    border-left: 1px solid var(--line-2); box-shadow: -24px 0 60px rgba(1, 3, 10, 0.6);
    transform: translateX(105%); transition: transform 0.38s cubic-bezier(0.3, 1, 0.4, 1);
  }
  .nav-links a { font-size: 15px; padding: 13px 16px; text-align: left; }
  .nav-links a::after { left: 16px; right: auto; width: 34px; }
  .nav-backdrop {
    display: block; position: fixed; inset: 0; z-index: 60; background: rgba(2, 4, 10, 0.55);
    backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
    opacity: 0; visibility: hidden; transition: opacity 0.3s, visibility 0.3s;
  }
  body.nav-open .nav-links { transform: translateX(0); }
  body.nav-open .nav-backdrop { opacity: 1; visibility: visible; }
  body.nav-open { overflow: hidden; }
}

/* ---------- 降级：减少动态 ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .fx-canvas, .fx-glow { display: none !important; }
}
