/* =====================================================
   星链导航中心 · Preview UI
   黑暗科技 / 玻璃拟态 / 蓝紫渐变 / 星链发光
   ===================================================== */

:root {
  --bg-main: #020617;
  --bg-deep: #050b1f;
  --bg-card: rgba(15, 23, 42, 0.76);
  --bg-card-strong: rgba(30, 41, 59, 0.82);
  --border-glow: rgba(124, 58, 237, 0.45);
  --border-line: rgba(148, 163, 184, 0.18);

  --cyan: #22d3ee;
  --blue: #2563eb;
  --purple: #7c3aed;
  --green: #22c55e;
  --yellow: #facc15;
  --red: #ef4444;
  --pink: #ec4899;

  --text-main: #f8fafc;
  --text-sub: #94a3b8;
  --text-mute: #64748b;

  --gradient-brand: linear-gradient(135deg, #22d3ee 0%, #2563eb 45%, #7c3aed 100%);
  --gradient-cyan-purple: linear-gradient(135deg, #22d3ee 0%, #7c3aed 100%);

  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;

  --shadow-glow-cyan: 0 0 28px rgba(34, 211, 238, 0.35);
  --shadow-glow-purple: 0 0 36px rgba(124, 58, 237, 0.35);
  --shadow-card: 0 16px 40px rgba(2, 6, 23, 0.55);

  --page-width: 430px;
  --tabbar-h: 72px;
  --page-pad: 20px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft Yahei",
               "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: var(--text-main);
  min-height: 100vh;
  background: var(--bg-main);
  overflow-x: hidden;
}

button { font-family: inherit; cursor: pointer; }
button:active { transform: translateY(1px); }

/* ============================================================
   PC 端：背景星空 + 手机容器居中
   ============================================================ */
body {
  background:
    radial-gradient(ellipse at top, #0b1538 0%, var(--bg-main) 60%, #000 100%);
  position: relative;
  overflow-x: hidden;
}

.cosmos {
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.cosmos-stars {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(1px 1px at 20% 30%, rgba(255,255,255,.9), transparent 60%),
    radial-gradient(1px 1px at 60% 70%, rgba(255,255,255,.7), transparent 60%),
    radial-gradient(1px 1px at 80% 20%, rgba(255,255,255,.8), transparent 60%),
    radial-gradient(1px 1px at 35% 85%, rgba(255,255,255,.7), transparent 60%),
    radial-gradient(1px 1px at 5% 60%, rgba(255,255,255,.6), transparent 60%),
    radial-gradient(1px 1px at 90% 50%, rgba(255,255,255,.8), transparent 60%),
    radial-gradient(1px 1px at 50% 10%, rgba(255,255,255,.7), transparent 60%),
    radial-gradient(1px 1px at 15% 85%, rgba(255,255,255,.6), transparent 60%),
    radial-gradient(1px 1px at 70% 40%, rgba(255,255,255,.8), transparent 60%);
  background-size: 700px 700px;
  opacity: .8;
  animation: star-twinkle 6s ease-in-out infinite alternate;
}
@keyframes star-twinkle { from {opacity:.5} to {opacity:.95} }

.cosmos-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .55;
}
.cosmos-glow--cyan   { width: 480px; height: 480px; top: -120px; left: -120px;
  background: radial-gradient(circle, rgba(34,211,238,.5), transparent 60%); }
.cosmos-glow--purple { width: 560px; height: 560px; bottom: -180px; right: -160px;
  background: radial-gradient(circle, rgba(124,58,237,.45), transparent 60%); }
.cosmos-glow--blue   { width: 420px; height: 420px; top: 40%; left: 30%;
  background: radial-gradient(circle, rgba(37,99,235,.4), transparent 60%); }

.cosmos-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(124,58,237,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124,58,237,.06) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
}

/* 手机容器（PC 居中） */
.phone-frame {
  position: relative;
  z-index: 1;
  max-width: var(--page-width);
  margin: 0 auto;
  min-height: 100vh;
  padding: 24px var(--page-pad) 0;
  background: linear-gradient(180deg, #020617 0%, #050b1f 50%, #020617 100%);
  box-shadow:
    inset 0 0 0 1px rgba(124,58,237,.12),
    inset 0 0 80px rgba(34,211,238,.06),
    0 0 0 1px rgba(124,58,237,.08);
  overflow-x: hidden;
  overflow-wrap: break-word;
}

.phone-screen {
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 24px);
  padding-bottom: calc(var(--tabbar-h) + 36px + env(safe-area-inset-bottom));
  position: relative;
  overflow-x: hidden;
}

/* ============================================================
   顶部品牌栏
   ============================================================ */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 4px 18px;
}
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand__logo {
  position: relative;
  width: 44px; height: 44px;
  flex-shrink: 0;
  filter:
    drop-shadow(0 0 6px rgba(34,211,238,.7))
    drop-shadow(0 0 14px rgba(124,58,237,.45));
}
.brand__logo::before {
  content: "";
  position: absolute; inset: -6px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(34,211,238,.3), transparent 70%);
  z-index: -2;
  filter: blur(2px);
}
.brand__logo::after {
  content: "";
  position: absolute; inset: -2px;
  border-radius: 14px;
  background: linear-gradient(135deg,
              rgba(255,255,255,.4),
              rgba(255,255,255,0) 50%,
              rgba(124,58,237,.5));
  z-index: -1;
  filter: blur(.5px);
  opacity: .8;
}
.brand__text { min-width: 0; }
.brand__title {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .5px;
  background: var(--gradient-cyan-purple);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.brand__sub {
  font-size: 11px;
  color: var(--text-sub);
  margin-top: 2px;
  letter-spacing: .3px;
}

.cert-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  font-size: 12px;
  color: #4ade80;
  background: rgba(34,197,94,.1);
  border: 1px solid rgba(34,197,94,.45);
  border-radius: 999px;
  box-shadow: 0 0 14px rgba(34,197,94,.35), inset 0 0 12px rgba(34,197,94,.12);
  flex-shrink: 0;
}
.cert-btn__dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 8px #4ade80;
}

/* ============================================================
   页面容器 & 切换
   ============================================================ */
.pages {
  position: relative;
}
.page {
  display: none;
  animation: page-in .35s ease;
}
.page.active { display: block; }
@keyframes page-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Section title */
.section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
  margin: 22px 4px 12px;
  letter-spacing: 1px;
}
.section-title__bar {
  width: 4px; height: 16px;
  border-radius: 4px;
  background: var(--gradient-cyan-purple);
  box-shadow: 0 0 10px rgba(124,58,237,.5);
}

/* 通用卡片底色（可被复用：data-card） */
[data-card] {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-line);
  border-radius: var(--radius-md);
  box-shadow:
    var(--shadow-card),
    inset 0 1px 0 rgba(255,255,255,.06);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  overflow: hidden;
}
[data-card]::before {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg,
              rgba(34,211,238,.45),
              rgba(124,58,237,.35) 50%,
              transparent 80%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}

/* ============================================================
   Hero 主视觉
   ============================================================ */
.hero {
  position: relative;
  padding: 22px;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 0% 0%, rgba(34,211,238,.32), transparent 50%),
    radial-gradient(circle at 100% 100%, rgba(124,58,237,.4), transparent 55%),
    radial-gradient(circle at 50% 50%, rgba(37,99,235,.18), transparent 60%),
    linear-gradient(135deg, rgba(15,23,42,.88), rgba(30,41,59,.7));
  border: 1px solid rgba(124,58,237,.4);
  box-shadow:
    0 0 50px rgba(124,58,237,.22),
    0 0 40px rgba(34,211,238,.14),
    inset 0 1px 0 rgba(255,255,255,.1);
  display: flex;
  gap: 14px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(124,58,237,.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124,58,237,.12) 1px, transparent 1px),
    linear-gradient(rgba(34,211,238,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34,211,238,.06) 1px, transparent 1px);
  background-size: 24px 24px, 24px 24px, 96px 96px, 96px 96px;
  mask-image: radial-gradient(circle at 28% 50%, black 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(circle at 28% 50%, black 0%, transparent 75%);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  top: -40px; right: -60px;
  width: 180px; height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(34,211,238,.25), transparent 60%);
  filter: blur(28px);
  pointer-events: none;
}

.hero__art {
  position: relative;
  width: 96px; height: 96px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero__halo {
  position: absolute; inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(34,211,238,.45), transparent 60%);
  filter: blur(6px);
}
.hero__ring {
  position: absolute;
  border-radius: 50%;
  border: 1.5px solid rgba(124,58,237,.4);
  box-shadow:
    0 0 14px rgba(124,58,237,.45) inset,
    0 0 18px rgba(124,58,237,.35),
    0 0 2px rgba(34,211,238,.6);
}
.hero__ring--1 { width: 96px; height: 96px; animation: spin 12s linear infinite; }
.hero__ring--2 { width: 78px; height: 78px; border-color: rgba(34,211,238,.55); box-shadow:
    0 0 14px rgba(34,211,238,.45) inset,
    0 0 18px rgba(34,211,238,.4),
    0 0 2px rgba(124,58,237,.6);
  animation: spin-reverse 9s linear infinite; }
.hero__ring--3 { width: 60px; height: 60px; border-color: rgba(124,58,237,.65); box-shadow:
    0 0 14px rgba(124,58,237,.55) inset,
    0 0 20px rgba(124,58,237,.45);
  animation: spin 16s linear infinite; }
.hero__ring::before {
  content: "";
  position: absolute;
  width: 6px; height: 6px;
  background: #22d3ee;
  border-radius: 50%;
  top: -3px; left: 50%;
  transform: translateX(-50%);
  box-shadow: 0 0 8px #22d3ee, 0 0 14px #22d3ee;
}
.hero__ring--2::before { background: #7c3aed; box-shadow: 0 0 8px #7c3aed, 0 0 14px #7c3aed; }

@keyframes spin        { to { transform: rotate(360deg); } }
@keyframes spin-reverse{ to { transform: rotate(-360deg); } }

.hero__plane {
  position: relative;
  filter:
    drop-shadow(0 0 6px rgba(34,211,238,.85))
    drop-shadow(0 0 16px rgba(124,58,237,.65))
    drop-shadow(0 0 24px rgba(37,99,235,.4));
  z-index: 2;
  transform: rotate(-18deg);
  animation: plane-float 4s ease-in-out infinite alternate;
}
@keyframes plane-float {
  from { transform: rotate(-18deg) translate(0, 0); }
  to   { transform: rotate(-12deg) translate(4px, -3px); }
}
.hero__nodes {
  position: absolute; inset: 0;
  pointer-events: none;
}
.hero__nodes span {
  position: absolute;
  left: var(--x); top: var(--y);
  width: 4px; height: 4px;
  border-radius: 50%;
  background: #22d3ee;
  box-shadow: 0 0 6px #22d3ee, 0 0 12px #22d3ee;
}

.hero__body { flex: 1; min-width: 0; }
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  font-size: 11px;
  color: #67e8f9;
  background: rgba(34,211,238,.08);
  border: 1px solid rgba(34,211,238,.35);
  border-radius: 999px;
  letter-spacing: .3px;
}
.pulse {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #22d3ee;
  box-shadow: 0 0 0 0 rgba(34,211,238,.7);
  animation: pulse 1.4s ease infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(34,211,238,.7); }
  70%  { box-shadow: 0 0 0 8px rgba(34,211,238,0); }
  100% { box-shadow: 0 0 0 0 rgba(34,211,238,0); }
}

.hero__title {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.2;
  margin: 12px 0 6px;
  background: linear-gradient(120deg, #f8fafc 0%, #c4b5fd 80%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: .5px;
}
.hero__desc {
  font-size: 13px;
  color: var(--text-sub);
  margin-bottom: 16px;
  line-height: 1.5;
}

.hero__actions {
  display: flex; flex-direction: column; gap: 10px;
}
.hero__actions-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
}

/* ============================================================
   通用按钮
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 48px;
  padding: 0 16px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid transparent;
  white-space: nowrap;
  letter-spacing: .5px;
}
.btn--primary {
  background: var(--gradient-cyan-purple);
  color: #fff;
  border-color: rgba(255,255,255,.18);
  box-shadow:
    0 0 0 1px rgba(124,58,237,.4),
    0 8px 24px rgba(34,211,238,.3),
    0 8px 24px rgba(124,58,237,.3),
    inset 0 1px 0 rgba(255,255,255,.25);
  text-shadow: 0 1px 2px rgba(0,0,0,.25);
}
.btn--primary:hover { filter: brightness(1.08); }
.btn--block { width: 100%; }
.btn--ghost {
  background: rgba(15,23,42,.6);
  color: var(--text-main);
  border-color: var(--border-line);
  height: 44px;
  font-size: 13px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
}
.btn--ghost:hover { border-color: rgba(124,58,237,.5); color: #fff; }

/* 旺商聊专属按钮：蓝色发光 */
.btn--ws {
  height: 38px;
  padding: 0 12px;
  font-size: 12px;
  border-radius: 11px;
  white-space: nowrap;
}
.btn--ws-open {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 50%, #1e40af 100%);
  color: #fff;
  border: 1px solid rgba(96,165,250,.5);
  box-shadow:
    0 0 16px rgba(37,99,235,.45),
    inset 0 1px 0 rgba(255,255,255,.25);
  text-shadow: 0 1px 2px rgba(0,0,0,.25);
}
.btn--ws-open:hover { filter: brightness(1.1); }
.btn--ws-copy {
  background: rgba(37,99,235,.12);
  color: #93c5fd;
  border: 1px solid rgba(37,99,235,.4);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
}
.btn--ws-copy:hover { background: rgba(37,99,235,.22); color: #fff; }

/* ============================================================
   旺商聊独立卡片（我的页面用）
   ============================================================ */
.ws-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: var(--radius-md);
  background:
    radial-gradient(circle at 0% 0%, rgba(37,99,235,.22), transparent 55%),
    linear-gradient(135deg, rgba(15,23,42,.85), rgba(30,41,59,.55));
  border: 1px solid rgba(37,99,235,.4);
  box-shadow:
    0 12px 36px rgba(2,6,23,.55),
    0 0 24px rgba(37,99,235,.18),
    inset 0 1px 0 rgba(255,255,255,.08);
  margin-top: 10px;
}
.ws-card__icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  flex-shrink: 0;
  overflow: hidden;
  background: linear-gradient(135deg, #2563eb 0%, #1e3a8a 100%);
  display: flex; align-items: center; justify-content: center;
  box-shadow:
    0 0 16px rgba(37,99,235,.5),
    inset 0 1px 0 rgba(255,255,255,.3),
    inset 0 -2px 4px rgba(0,0,0,.2);
}
.ws-card__icon-img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.ws-card__body { flex: 1; min-width: 0; }
.ws-card__title {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}
.ws-card__id {
  font-size: 12px;
  margin-top: 4px;
  color: var(--text-sub);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.ws-card__id-label {
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(37,99,235,.18);
  color: #93c5fd;
  border: 1px solid rgba(37,99,235,.35);
}
.ws-card__id-val {
  font-family: "SF Mono", Menlo, Consolas, monospace;
  color: #f8fafc;
  word-break: break-all;
}
.ws-card__actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-shrink: 0;
}
@media (max-width: 380px) {
  .ws-card { flex-wrap: wrap; }
  .ws-card__actions { flex-direction: row; width: 100%; }
  .btn--ws { flex: 1; }
}

/* ============================================================
   公告条
   ============================================================ */
.notice {
  margin-top: 16px;
  display: flex;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background:
    linear-gradient(90deg, rgba(250,204,21,.12), rgba(15,23,42,.65)),
    rgba(15,23,42,.7);
  border: 1px solid rgba(250,204,21,.5);
  box-shadow:
    0 0 24px rgba(250,204,21,.18),
    inset 0 1px 0 rgba(255,255,255,.06);
  position: relative;
  overflow: hidden;
}
.notice::after {
  content: "";
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, #facc15, #f59e0b);
  box-shadow: 0 0 8px #facc15;
}
.notice__icon {
  width: 36px; height: 36px;
  flex-shrink: 0;
  border-radius: 10px;
  background: rgba(250,204,21,.15);
  color: #facc15;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 12px rgba(250,204,21,.35), inset 0 0 8px rgba(250,204,21,.2);
}
.notice__body { min-width: 0; }
.notice__label {
  font-size: 11px;
  color: #facc15;
  letter-spacing: .4px;
}
.notice__text {
  font-size: 13px;
  color: var(--text-main);
  margin-top: 2px;
  line-height: 1.5;
}
.notice__text b { color: #facc15; font-weight: 700; }

/* ============================================================
   实时数据
   ============================================================ */
.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.stat-card {
  display: flex; gap: 12px; align-items: center;
  padding: 14px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(15,23,42,.82), rgba(30,41,59,.6));
  border: 1px solid var(--border-line);
  box-shadow: var(--shadow-card), inset 0 1px 0 rgba(255,255,255,.06), 0 0 0 1px rgba(124,58,237,.05);
  transition: transform .2s ease, box-shadow .2s ease;
}
.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 50px rgba(2,6,23,.7), 0 0 30px rgba(124,58,237,.25);
}
.stat-card__icon {
  width: 40px; height: 40px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.stat-card__icon--cyan   { background: rgba(34,211,238,.15); color: var(--cyan);
  box-shadow: 0 0 14px rgba(34,211,238,.3), inset 0 0 8px rgba(34,211,238,.18); }
.stat-card__icon--green  { background: rgba(34,197,94,.15);  color: var(--green);
  box-shadow: 0 0 14px rgba(34,197,94,.3),  inset 0 0 8px rgba(34,197,94,.18); }
.stat-card__icon--purple { background: rgba(124,58,237,.15); color: #c4b5fd;
  box-shadow: 0 0 14px rgba(124,58,237,.32),inset 0 0 8px rgba(124,58,237,.18); }
.stat-card__icon--blue   { background: rgba(37,99,235,.15);  color: #93c5fd;
  box-shadow: 0 0 14px rgba(37,99,235,.32), inset 0 0 8px rgba(37,99,235,.18); }
.stat-card__body { min-width: 0; }
.stat-card__num {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: .5px;
  line-height: 1.1;
  font-family: -apple-system, "SF Pro Display";
  background: linear-gradient(180deg, #fff, #cbd5e1);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat-card__unit {
  font-size: 12px;
  margin-left: 2px;
  color: var(--cyan);
  -webkit-text-fill-color: var(--cyan);
}
.stat-card__lbl {
  font-size: 11px;
  color: var(--text-sub);
  margin-top: 4px;
  letter-spacing: .5px;
}

/* ============================================================
   快捷入口
   ============================================================ */
.quick-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}
.quick-card {
  background: linear-gradient(180deg, rgba(30,41,59,.7), rgba(15,23,42,.7));
  border: 1px solid var(--border-line);
  border-radius: var(--radius-md);
  padding: 12px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-main);
  box-shadow: var(--shadow-card), inset 0 1px 0 rgba(255,255,255,.05);
  transition: all .25s ease;
}
.quick-card:hover {
  transform: translateY(-3px);
  border-color: rgba(124,58,237,.5);
  box-shadow: 0 16px 40px rgba(2,6,23,.7), 0 0 28px rgba(124,58,237,.3);
}
.quick-card__icon {
  width: 42px; height: 42px;
  border-radius: 13px;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  overflow: hidden;
}
.quick-card__icon-img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: inherit;
  display: block;
}
.quick-card__icon--cyan   { background: linear-gradient(135deg, rgba(34,211,238,.3), rgba(34,211,238,.12));
  box-shadow: 0 0 18px rgba(34,211,238,.4), inset 0 0 10px rgba(34,211,238,.2); }
.quick-card__icon--purple { background: linear-gradient(135deg, rgba(124,58,237,.3), rgba(124,58,237,.12));
  box-shadow: 0 0 18px rgba(124,58,237,.4), inset 0 0 10px rgba(124,58,237,.2); }
.quick-card__icon--yellow { background: linear-gradient(135deg, rgba(250,204,21,.3), rgba(250,204,21,.12));
  box-shadow: 0 0 18px rgba(250,204,21,.3), inset 0 0 10px rgba(250,204,21,.2); }
.quick-card__icon--green  { background: linear-gradient(135deg, rgba(34,197,94,.3), rgba(34,197,94,.12));
  box-shadow: 0 0 18px rgba(34,197,94,.3), inset 0 0 10px rgba(34,197,94,.2); }

/* 旺商聊专属：蓝色渐变图标块 */
.quick-card__icon--ws {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 60%, #1e3a8a 100%);
  box-shadow:
    0 0 18px rgba(37,99,235,.55),
    inset 0 1px 0 rgba(255,255,255,.3),
    inset 0 -2px 4px rgba(0,0,0,.18);
}
.quick-card--ws:hover {
  border-color: rgba(37,99,235,.65);
  box-shadow: 0 16px 40px rgba(2,6,23,.7), 0 0 28px rgba(37,99,235,.45);
}

.quick-card__name {
  font-size: 11px;
  color: var(--text-main);
  letter-spacing: .3px;
}

/* ============================================================
   线路页
   ============================================================ */
.page-head { padding: 4px 4px 14px; }
.page-head h2 {
  font-size: 20px;
  font-weight: 800;
  background: var(--gradient-cyan-purple);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: .5px;
}
.page-head p {
  font-size: 12px;
  color: var(--text-sub);
  margin-top: 4px;
  letter-spacing: .4px;
}

.route-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.route-feature {
  position: relative;
  padding: 14px;
  border-radius: var(--radius-md);
  background: linear-gradient(160deg, rgba(34,211,238,.12), rgba(124,58,237,.15) 60%, rgba(15,23,42,.75));
  border: 1px solid rgba(124,58,237,.35);
  box-shadow:
    0 12px 36px rgba(2,6,23,.55),
    inset 0 1px 0 rgba(255,255,255,.08);
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: hidden;
}
.route-feature::after {
  content: "";
  position: absolute;
  top: -40px; right: -40px;
  width: 120px; height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(34,211,238,.35), transparent 60%);
  filter: blur(20px);
  pointer-events: none;
}
.route-feature:nth-child(2)::after {
  background: radial-gradient(circle, rgba(124,58,237,.4), transparent 60%);
}
.route-feature__top { position: relative; }
.route-feature__tag {
  display: inline-block;
  padding: 3px 9px;
  font-size: 10px;
  font-weight: 600;
  border-radius: 999px;
  margin-bottom: 6px;
  letter-spacing: .3px;
}
.route-feature__tag--cyan {
  background: rgba(34,211,238,.18);
  color: #67e8f9;
  border: 1px solid rgba(34,211,238,.4);
  box-shadow: 0 0 10px rgba(34,211,238,.3);
}
.route-feature__tag--purple {
  background: rgba(124,58,237,.2);
  color: #c4b5fd;
  border: 1px solid rgba(124,58,237,.45);
  box-shadow: 0 0 10px rgba(124,58,237,.3);
}
.route-feature__title {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
}
.route-feature__desc {
  font-size: 11px;
  color: var(--text-sub);
  margin-top: 2px;
}
.route-feature__art {
  align-self: flex-end;
  margin-top: -8px;
  filter: drop-shadow(0 0 12px rgba(124,58,237,.45));
}
.route-feature__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-sub);
  padding: 2px 0 4px;
}
.route-feature__meta .dot {
  width: 3px; height: 3px; border-radius: 50%;
  background: var(--text-mute);
}
.route-feature__ping {
  margin-left: auto;
  color: var(--green);
  font-weight: 700;
  font-size: 13px;
  text-shadow: 0 0 8px rgba(34,197,94,.5);
}
.route-feature__ping span {
  font-size: 10px;
  margin-left: 1px;
  color: var(--green);
  text-shadow: 0 0 6px rgba(34,197,94,.4);
}

/* 全部备用线路 */
.route-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.route-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(15,23,42,.85), rgba(30,41,59,.6));
  border: 1px solid var(--border-line);
  box-shadow: var(--shadow-card), inset 0 1px 0 rgba(255,255,255,.06);
  transition: all .25s ease;
}
.route-item:hover {
  border-color: rgba(124,58,237,.5);
  box-shadow: 0 0 30px rgba(124,58,237,.3), inset 0 1px 0 rgba(255,255,255,.05);
}
.route-item__icon {
  width: 42px; height: 42px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: #67e8f9;
  background: radial-gradient(circle, rgba(34,211,238,.25), rgba(15,23,42,.4) 70%);
  border: 1px solid rgba(34,211,238,.4);
  box-shadow: 0 0 14px rgba(34,211,238,.35), inset 0 0 8px rgba(34,211,238,.15);
}
.route-item__body { flex: 1; min-width: 0; }
.route-item__name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
}
.route-item__loc {
  font-size: 11px;
  color: var(--text-sub);
  margin-top: 2px;
}
.route-item__info {
  display: flex;
  gap: 12px;
  margin-top: 6px;
  font-size: 11px;
  color: var(--text-sub);
}
.route-item__ping { color: var(--green); font-weight: 700; }
.route-item__rate { color: var(--cyan); }
.route-item__enter {
  flex-shrink: 0;
  height: 36px;
  padding: 0 14px;
  font-size: 12px;
  border-radius: 10px;
  background: var(--gradient-cyan-purple);
  color: #fff;
  border: none;
  box-shadow: 0 0 16px rgba(124,58,237,.45);
}

/* ============================================================
   公告页
   ============================================================ */
.notice-feature {
  position: relative;
  padding: 18px;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 100% 0%, rgba(124,58,237,.3), transparent 55%),
    linear-gradient(135deg, rgba(34,211,238,.12), rgba(124,58,237,.12) 50%, rgba(15,23,42,.85));
  border: 1px solid rgba(124,58,237,.4);
  box-shadow:
    0 0 40px rgba(124,58,237,.2),
    0 0 30px rgba(34,211,238,.1),
    inset 0 1px 0 rgba(255,255,255,.08);
  overflow: hidden;
}
.notice-feature__tag {
  display: inline-block;
  padding: 4px 10px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .6px;
  border-radius: 6px;
  background: rgba(124,58,237,.35);
  color: #e9d5ff;
  border: 1px solid rgba(124,58,237,.5);
  box-shadow: 0 0 10px rgba(124,58,237,.4);
}
.notice-feature__title {
  font-size: 18px;
  font-weight: 800;
  margin: 10px 0 4px;
  color: #fff;
}
.notice-feature__meta {
  font-size: 11px;
  color: var(--text-sub);
  margin-bottom: 10px;
}
.notice-feature__summary {
  font-size: 13px;
  color: var(--text-sub);
  line-height: 1.6;
}
.notice-feature__more {
  margin-top: 12px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #67e8f9;
  font-size: 12px;
}

.notice-list {
  display: flex; flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}
.notice-item {
  display: flex;
  gap: 12px;
  padding: 14px;
  border-radius: var(--radius-md);
  background: rgba(15,23,42,.72);
  border: 1px solid var(--border-line);
  box-shadow: var(--shadow-card), inset 0 1px 0 rgba(255,255,255,.05);
  cursor: pointer;
  transition: all .25s ease;
}
.notice-item:hover {
  border-color: rgba(124,58,237,.5);
  box-shadow: 0 0 28px rgba(124,58,237,.25);
}
.notice-item__icon {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: rgba(124,58,237,.15);
  color: #c4b5fd;
  display: flex; align-items: center; justify-content: center;
  box-shadow: inset 0 0 8px rgba(124,58,237,.15);
  flex-shrink: 0;
}
.notice-item__body { flex: 1; min-width: 0; }
.notice-item__top {
  display: flex; align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}
.notice-item__tag {
  font-size: 10px;
  padding: 2px 7px;
  border-radius: 5px;
}
.tag-pin   { background: rgba(124,58,237,.18); color: #c4b5fd;
             border: 1px solid rgba(124,58,237,.4); }
.tag-warn  { background: rgba(250,204,21,.15); color: #facc15;
             border: 1px solid rgba(250,204,21,.35); }
.tag-info  { background: rgba(34,211,238,.15); color: #67e8f9;
             border: 1px solid rgba(34,211,238,.35); }
.tag-ok    { background: rgba(34,197,94,.15);  color: #4ade80;
             border: 1px solid rgba(34,197,94,.35); }
.tag-main  { background: rgba(248,113,113,.15);color: #fca5a5;
             border: 1px solid rgba(248,113,113,.35); }
.notice-item__time { font-size: 11px; color: var(--text-mute); margin-left: auto; }
.notice-item__title {
  font-size: 14px;
  color: var(--text-main);
  font-weight: 600;
  margin-bottom: 4px;
}
.notice-item__desc {
  font-size: 12px;
  color: var(--text-sub);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ============================================================
   我的页
   ============================================================ */
.me-user {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 0% 0%, rgba(34,211,238,.18), transparent 50%),
    radial-gradient(circle at 100% 100%, rgba(124,58,237,.22), transparent 55%),
    linear-gradient(135deg, rgba(15,23,42,.85), rgba(30,41,59,.55));
  border: 1px solid rgba(124,58,237,.35);
  box-shadow:
    0 12px 36px rgba(2,6,23,.6),
    inset 0 1px 0 rgba(255,255,255,.06);
}
.me-user__avatar {
  width: 56px; height: 56px;
  border-radius: 50%;
  flex-shrink: 0;
  position: relative;
  filter: drop-shadow(0 0 12px rgba(34,211,238,.45));
}
.me-user__avatar::after {
  content: "";
  position: absolute; inset: -4px;
  border-radius: 50%;
  border: 1px solid rgba(34,211,238,.35);
  box-shadow: 0 0 14px rgba(34,211,238,.3);
}
.me-user__body { flex: 1; min-width: 0; }
.me-user__name {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
}
.me-user__status {
  font-size: 11px;
  color: var(--text-sub);
  margin-top: 4px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.me-user__dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
}
.me-user__chip {
  font-size: 10px; font-weight: 700;
  padding: 4px 9px;
  border-radius: 6px;
  background: linear-gradient(135deg, rgba(250,204,21,.3), rgba(124,58,237,.3));
  color: #fde68a;
  border: 1px solid rgba(250,204,21,.4);
  box-shadow: 0 0 10px rgba(250,204,21,.25);
}

.me-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}
.me-actions__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 42px;
  font-size: 13px;
  border-radius: var(--radius-sm);
  background: linear-gradient(180deg, rgba(30,41,59,.7), rgba(15,23,42,.65));
  color: var(--text-main);
  border: 1px solid var(--border-line);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
}
.me-actions__btn:hover { border-color: rgba(124,58,237,.5); }

.me-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.me-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 14px 6px;
  border-radius: var(--radius-md);
  background: rgba(15,23,42,.72);
  border: 1px solid var(--border-line);
  color: var(--text-main);
  font-size: 12px;
  box-shadow: var(--shadow-card), inset 0 1px 0 rgba(255,255,255,.05);
  transition: all .25s ease;
}
.me-tile:hover {
  transform: translateY(-2px);
  border-color: rgba(124,58,237,.5);
}
.me-tile__icon {
  width: 38px; height: 38px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
}
.me-tile__icon--cyan   { background: rgba(34,211,238,.18);  color: var(--cyan);
  box-shadow: 0 0 10px rgba(34,211,238,.3); }
.me-tile__icon--purple { background: rgba(124,58,237,.18); color: #c4b5fd;
  box-shadow: 0 0 10px rgba(124,58,237,.32); }
.me-tile__icon--green  { background: rgba(34,197,94,.18);  color: var(--green);
  box-shadow: 0 0 10px rgba(34,197,94,.3); }
.me-tile__icon--yellow { background: rgba(250,204,21,.18); color: var(--yellow);
  box-shadow: 0 0 10px rgba(250,204,21,.3); }
.me-tile__icon--blue   { background: rgba(37,99,235,.18);  color: #93c5fd;
  box-shadow: 0 0 10px rgba(37,99,235,.3); }
.me-tile__icon--pink   { background: rgba(236,72,153,.18); color: #f9a8d4;
  box-shadow: 0 0 10px rgba(236,72,153,.3); }

.contact-list {
  background: rgba(15,23,42,.72);
  border: 1px solid var(--border-line);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card), inset 0 1px 0 rgba(255,255,255,.06);
}
.contact-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-bottom: 1px solid rgba(148,163,184,.1);
}
.contact-row:last-child { border-bottom: none; }
.contact-row__icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: rgba(34,211,238,.15);
  color: var(--cyan);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 10px rgba(34,211,238,.25);
}
.contact-row__body { flex: 1; min-width: 0; }
.contact-row__label {
  font-size: 12px;
  color: var(--text-sub);
}
.contact-row__val {
  font-size: 13px;
  color: var(--text-main);
  margin-top: 2px;
  word-break: break-all;
}
.contact-row__copy {
  height: 30px;
  padding: 0 10px;
  font-size: 11px;
  border-radius: 8px;
  background: rgba(124,58,237,.18);
  color: #c4b5fd;
  border: 1px solid rgba(124,58,237,.35);
  flex-shrink: 0;
}
.contact-row__copy:hover { background: rgba(124,58,237,.3); }

.safety-card {
  background: rgba(15,23,42,.72);
  border: 1px solid var(--border-line);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card), inset 0 1px 0 rgba(255,255,255,.06);
}
.safety-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  font-size: 13px;
  color: var(--text-main);
  border-bottom: 1px solid rgba(148,163,184,.1);
}
.safety-row:last-child { border-bottom: none; }
.safety-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
}
.safety-dot--green { background: var(--green);  box-shadow: 0 0 8px var(--green); }
.safety-dot--cyan  { background: var(--cyan);   box-shadow: 0 0 8px var(--cyan); }
.safety-val {
  margin-left: auto;
  font-weight: 700;
  color: var(--green);
  font-size: 12px;
  text-shadow: 0 0 6px rgba(34,197,94,.3);
}
.safety-row:nth-child(3) .safety-val { color: var(--cyan); text-shadow: 0 0 6px rgba(34,211,238,.3); }

/* ============================================================
   底部悬浮导航
   ============================================================ */
.tabbar {
  /* 钉到视口最底部，移动端全宽，兼容 iPhone 安全区 */
  position: fixed !important;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 100%;
  height: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
  padding: 6px 0 calc(6px + env(safe-area-inset-bottom));
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: rgba(15,23,42,.92);
  border-top: 1px solid var(--border-line);
  box-shadow: 0 -8px 30px rgba(2,6,23,.55);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 999;
  overflow: hidden;
}
.tabbar::before {
  content: "";
  position: absolute;
  top: 0; left: 10%; right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(124,58,237,.7), rgba(34,211,238,.5), transparent);
  filter: blur(.5px);
}
.tabbar__item {
  position: relative;
  border: none;
  background: transparent;
  color: var(--text-mute);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  border-radius: 16px;
  transition: all .3s ease;
}
.tabbar__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 28px;
  border-radius: 12px;
  transition: all .3s ease;
}
.tabbar__label {
  font-size: 10px;
  letter-spacing: .3px;
}
.tabbar__item.active {
  color: #fff;
}
.tabbar__item.active .tabbar__icon {
  background: var(--gradient-cyan-purple);
  color: #fff;
  box-shadow:
    0 0 14px rgba(34,211,238,.5),
    0 0 22px rgba(124,58,237,.4),
    inset 0 1px 0 rgba(255,255,255,.3);
  border: 1px solid rgba(124,58,237,.45);
}

/* ============================================================
   公告详情弹窗（暗黑毛玻璃）
   ============================================================ */
.modal {
  position: fixed; inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 50;
  padding: 20px;
}
.modal.open { display: flex; }
.modal__back {
  position: absolute; inset: 0;
  background: rgba(2,6,23,.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: fade-in .25s ease;
}
@keyframes fade-in { from {opacity:0} to {opacity:1} }

.modal__card {
  position: relative;
  max-width: 380px;
  width: 100%;
  max-height: 80vh;
  overflow: auto;
  background:
    radial-gradient(circle at 0% 0%, rgba(34,211,238,.18), transparent 60%),
    radial-gradient(circle at 100% 100%, rgba(124,58,237,.22), transparent 60%),
    rgba(15,23,42,.92);
  border: 1px solid rgba(124,58,237,.45);
  border-radius: 22px;
  box-shadow:
    0 30px 80px rgba(2,6,23,.8),
    0 0 50px rgba(124,58,237,.25),
    inset 0 1px 0 rgba(255,255,255,.08);
  padding: 28px 22px 22px;
  color: var(--text-main);
  animation: pop-up .35s cubic-bezier(.18,.89,.32,1.28);
}
@keyframes pop-up { from {opacity:0; transform:translateY(20px) scale(.92);} to {opacity:1; transform:none;} }

.modal__close {
  position: absolute;
  top: 14px; right: 14px;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: rgba(15,23,42,.6);
  border: 1px solid var(--border-line);
  color: var(--text-sub);
  display: flex; align-items: center; justify-content: center;
}
.modal__close:hover { color: #fff; border-color: rgba(124,58,237,.5); }

.modal__tag {
  display: inline-block;
  padding: 3px 10px;
  font-size: 10px;
  font-weight: 700;
  border-radius: 6px;
  background: rgba(124,58,237,.25);
  color: #c4b5fd;
  border: 1px solid rgba(124,58,237,.45);
  margin-bottom: 10px;
}
.modal__title {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 6px;
  background: linear-gradient(120deg, #fff, #c4b5fd);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.modal__meta {
  font-size: 12px;
  color: var(--text-sub);
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px dashed rgba(148,163,184,.2);
}
.modal__content {
  font-size: 14px;
  color: var(--text-main);
  line-height: 1.8;
  white-space: pre-wrap;
  word-break: break-word;
}

/* 旺商聊弹窗特有样式 */
.modal__card--ws {
  max-width: 360px;
  text-align: center;
}
.ws-modal__hero {
  position: relative;
  width: 88px; height: 88px;
  margin: 4px auto 14px;
}
.ws-modal__halo {
  position: absolute; inset: -10px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37,99,235,.55), transparent 65%);
  filter: blur(12px);
}
.ws-modal__badge {
  position: relative;
  width: 88px; height: 88px;
  border-radius: 24px;
  overflow: hidden;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 50%, #1e3a8a 100%);
  display: flex; align-items: center; justify-content: center;
  box-shadow:
    0 0 30px rgba(37,99,235,.6),
    inset 0 1px 0 rgba(255,255,255,.3),
    inset 0 -4px 8px rgba(0,0,0,.2);
}
.ws-modal__badge img,
.ws-modal__badge svg {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.ws-modal__hint {
  font-size: 12px;
  color: var(--text-sub);
  line-height: 1.6;
  padding: 10px 12px;
  background: rgba(15,23,42,.6);
  border: 1px dashed rgba(37,99,235,.4);
  border-radius: 12px;
  margin-bottom: 14px;
}
.ws-modal__actions {
  display: flex; flex-direction: column; gap: 8px;
}
.ws-modal__actions .btn { height: 42px; font-size: 13px; }

/* ============================================================
   Toast
   ============================================================ */
.toast {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  padding: 10px 20px;
  background: rgba(15,23,42,.95);
  border: 1px solid rgba(124,58,237,.5);
  color: #fff;
  font-size: 13px;
  border-radius: 999px;
  box-shadow: 0 0 20px rgba(124,58,237,.4);
  opacity: 0;
  pointer-events: none;
  transition: all .3s ease;
  z-index: 100;
  white-space: nowrap;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ============================================================
   小屏适配
   ============================================================ */
@media (max-width: 480px) {
  .phone-frame {
    padding-left: 14px;
    padding-right: 14px;
    --page-pad: 14px;
  }
  .hero { flex-direction: column; }
  .hero__art { margin: 0 auto 8px; }
}

@media (min-width: 481px) {
  body::before {
    content: "";
    display: block;
    height: 12px;
  }
}

/* ============================================================
   明亮主题（前台 light 模式）—— 通过 body.light 切换
   覆盖 xinglink-ui.css 中所有硬编码深色 / 发光变量
   ============================================================ */
body.light {
  --bg-main: #f4f7ff;
  --bg-deep: #e9efff;
  --bg-card: rgba(255, 255, 255, 0.82);
  --bg-card-strong: rgba(255, 255, 255, 0.96);
  --border-glow: rgba(124, 58, 237, 0.28);
  --border-line: rgba(99, 102, 241, 0.16);

  --cyan: #0891b2;
  --blue: #2563eb;
  --purple: #7c3aed;
  --green: #16a34a;
  --yellow: #ca8a04;
  --red: #dc2626;
  --pink: #db2777;

  --text-main: #0f172a;
  --text-sub: #475569;
  --text-mute: #64748b;

  --gradient-brand: linear-gradient(135deg, #06b6d4 0%, #2563eb 45%, #7c3aed 100%);
  --gradient-cyan-purple: linear-gradient(135deg, #06b6d4 0%, #7c3aed 100%);

  --shadow-glow-cyan: 0 0 24px rgba(34, 211, 238, 0.20);
  --shadow-glow-purple: 0 0 28px rgba(124, 58, 237, 0.18);
  --shadow-card: 0 8px 22px rgba(99, 102, 241, 0.18);
}

/* html/body 主背景与外层星空 */
body.light {
  color: var(--text-main);
  background: var(--bg-main);
}
body.light {
  background:
    radial-gradient(ellipse at top, #ffffff 0%, #eef2ff 60%, #e9efff 100%);
}
/* 星空、星点等装饰元素淡出 */
body.light .cosmos-stars { opacity: 0.06; }
body.light .cosmos-grid  { opacity: 0.10; }
body.light .cosmos-glow--cyan   { opacity: 0.55; }
body.light .cosmos-glow--purple { opacity: 0.55; }
body.light .cosmos-glow--blue   { opacity: 0.55; }

/* 手机外框 */
body.light .phone-frame {
  background: linear-gradient(180deg, #f6f8ff 0%, #eef2ff 50%, #f6f8ff 100%);
  box-shadow:
    inset 0 0 0 1px rgba(124,58,237,.18),
    inset 0 0 80px rgba(34,211,238,.06),
    0 12px 40px rgba(99, 102, 241, 0.18);
}

/* 顶部品牌栏 */
body.light .topbar { color: var(--text-main); }
body.light .brand__title { color: transparent; }
body.light .brand__sub   { color: var(--text-sub); }
body.light .brand__logo::before { background: radial-gradient(circle, rgba(34,211,238,.18), transparent 70%); }

/* 官方认证徽章（绿色） */
body.light .cert-btn {
  color: #15803d;
  background: rgba(34, 197, 94, 0.10);
  border-color: rgba(34, 197, 94, 0.45);
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.20);
}
body.light .cert-btn:hover { background: rgba(34, 197, 94, 0.18); }

/* Hero 主区域（背景渐变压暗） */
body.light .hero {
  background:
    radial-gradient(circle at 0% 0%, rgba(34,211,238,.18), transparent 50%),
    radial-gradient(circle at 100% 100%, rgba(124,58,237,.20), transparent 55%),
    radial-gradient(circle at 50% 50%, rgba(37,99,235,.10), transparent 60%),
    linear-gradient(135deg, rgba(255,255,255,.96), rgba(241,245,255,.92));
  border: 1px solid rgba(124, 58, 237, 0.22);
  box-shadow:
    0 0 36px rgba(124, 58, 237, 0.14),
    0 0 24px rgba(34, 211, 238, 0.10),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
}
body.light .hero::before {
  background-image:
    linear-gradient(rgba(124,58,237,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124,58,237,.06) 1px, transparent 1px),
    linear-gradient(rgba(34,211,238,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34,211,238,.04) 1px, transparent 1px);
  opacity: .6;
}
body.light .hero__halo { opacity: .35; }
body.light .hero__ring { border-color: rgba(124, 58, 237, 0.25); }
body.light .hero__nodes span { background: var(--cyan); box-shadow: 0 0 10px rgba(34, 211, 238, 0.6); }
body.light .hero__eyebrow { color: #1e293b; }
body.light .hero__eyebrow .pulse { box-shadow: 0 0 0 0 rgba(34,197,94,.5); }
body.light .hero__title { color: transparent; -webkit-text-fill-color: transparent; }
body.light .hero__desc  { color: var(--text-sub); }

/* 按钮 - 用主题色而不是黑底 */
body.light .btn {
  background: rgba(255,255,255,.85);
  color: var(--text-main);
  border: 1px solid rgba(99, 102, 241, 0.22);
}
body.light .btn:hover {
  background: rgba(255,255,255,1);
  border-color: var(--border-glow);
}
body.light .btn--primary {
  background: var(--gradient-brand);
  color: #fff;
  border: none;
  box-shadow: 0 6px 18px rgba(124, 58, 237, 0.30);
}
body.light .btn--ghost {
  background: rgba(99, 102, 241, 0.06);
  border-color: rgba(99, 102, 241, 0.18);
}
body.light .btn--ghost:hover { background: rgba(99, 102, 241, 0.12); }
body.light .btn--success { background: linear-gradient(135deg, #16a34a 0%, #22c55e 100%); color: #fff; }

/* 线路卡 / 公告卡 / 通用卡片 */
body.light .line-card,
body.light .ann-card,
body.light .info-card,
body.light .stat-card,
body.light .empty-card {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(99, 102, 241, 0.20);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.12);
}
body.light .line-card__title,
body.light .ann-card__title { color: var(--text-main); }
body.light .line-card__desc,
body.light .ann-card__meta { color: var(--text-sub); }
body.light .line-card__url { color: var(--text-mute); }
body.light .line-card__rank { background: var(--gradient-cyan-purple); color: #fff; }
body.light .line-card__tag  { color: var(--text-sub); background: rgba(99, 102, 241, 0.08); }

/* 输入 / 表单 */
body.light .input,
body.light .textarea,
body.light .select {
  background: rgba(255, 255, 255, 0.96);
  color: var(--text-main);
  border: 1px solid rgba(99, 102, 241, 0.22);
}
body.light .input::placeholder { color: var(--text-mute); }
body.light .field label,
body.light .form-label { color: var(--text-main); }

/* 公告条 */
body.light .notice-bar,
body.light .top-notice {
  background: rgba(255, 255, 255, 0.92);
  color: var(--text-main);
  border: 1px solid rgba(99, 102, 241, 0.20);
}
body.light .notice-bar__text,
body.light .top-notice__text { color: var(--text-main); }

/* 底部分页 tab */
body.light .bottom-nav,
body.light .tab-bar {
  background: rgba(255, 255, 255, 0.92);
  border-top: 1px solid rgba(99, 102, 241, 0.18);
  box-shadow: 0 -8px 24px rgba(99, 102, 241, 0.10);
}
body.light .tab-item,
body.light .bottom-nav__item { color: var(--text-sub); }
body.light .tab-item.active,
body.light .bottom-nav__item.active { color: #0f172a; }
body.light .tab-item.active::before,
body.light .bottom-nav__item.active::before { background: var(--gradient-cyan-purple); }

/* 通用文字 */
body.light h1, body.light h2, body.light h3, body.light h4,
body.light .title { color: var(--text-main); }
body.light .muted, body.light .desc, body.light .small { color: var(--text-sub); }

/* Modal */
body.light .modal-mask,
body.light .ws-modal-mask {
  background: rgba(15, 23, 53, 0.40);
  backdrop-filter: blur(8px);
}
body.light .modal,
body.light .ws-modal {
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(99, 102, 241, 0.22);
  box-shadow: 0 20px 50px rgba(99, 102, 241, 0.18);
  color: var(--text-main);
}
body.light .modal__title,
body.light .ws-modal__title { color: var(--text-main); }
body.light .modal__meta,
body.light .ws-modal__meta { color: var(--text-sub); }

/* Toast */
body.light .toast {
  background: rgba(255, 255, 255, 0.96);
  color: var(--text-main);
  border: 1px solid var(--border-glow);
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.18);
}

/* 表格 */
body.light table { color: var(--text-main); }
body.light thead { background: rgba(99, 102, 241, 0.08); color: var(--text-main); }
body.light tbody tr { border-bottom: 1px solid rgba(99, 102, 241, 0.10); }
body.light tbody tr:hover { background: rgba(99, 102, 241, 0.06); }

/* 滚动条 */
body.light ::-webkit-scrollbar-thumb { background: rgba(124, 58, 237, 0.30); }
body.light ::-webkit-scrollbar-track { background: rgba(0, 0, 0, 0.04); }
