/* ============================================================
   爱上水果 · UI 升级包 upgrade.css
   设计方向：台州山海水果 + 科技驾驶舱
   纯原生 CSS，零外部依赖；支持 warm / cold 两套主题。
   ============================================================ */

/* ===== 全局流畅性优化 ===== */
* {
  -webkit-tap-highlight-color: transparent;
}

html {
  -webkit-text-size-adjust: 100%;
}

.card,
.tech-chart-card,
.cmd-trigger,
.back-to-top,
.hero,
.modal-box,
.sheet-box,
.toast,
.topbar,
.bottom-nav {
  will-change: transform;
}

@media (max-width: 768px) {
  .card,
  .modal-box,
  .sheet-box,
  .toast,
  .topbar,
  .bottom-nav {
    -webkit-backdrop-filter: blur(8px) !important;
    backdrop-filter: blur(8px) !important;
  }

  .hero::before,
  .hero::after {
    display: none;
  }
}

/* ---------- 1. 全局科技氛围 ---------- */
html {
  scroll-behavior: smooth;
}

body {
  background-attachment: fixed;
}

.topbar {
  box-shadow: 0 8px 28px rgba(0, 0, 0, .18);
}

.brand {
  letter-spacing: .04em;
}

/* ---------- 2. Hero 数据驾驶舱氛围 ---------- */
.hero {
  isolation: isolate;
}

/* 网格/扫描线底纹 */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(420px 240px at 88% -10%, #000 0%, transparent 72%);
  mask-image: radial-gradient(420px 240px at 88% -10%, #000 0%, transparent 72%);
  pointer-events: none;
}

.hero-title {
  text-shadow: 0 0 22px var(--brand-glow, rgba(255, 107, 61, .35));
}

.hero-clock {
  display: inline-block;
  margin-top: 4px;
  padding: 2px 10px;
  border: 1px solid var(--line, rgba(255, 255, 255, .1));
  border-radius: 999px;
  background: var(--surface, rgba(255, 255, 255, .05));
  font-size: 13px;
  letter-spacing: .12em;
  font-variant-numeric: tabular-nums;
  color: var(--ink-2, #A8B0BE);
  box-shadow: 0 0 18px var(--brand-glow, rgba(255, 107, 61, .18));
}

/* ---------- 3. KPI 卡片：辉光 + 悬浮 ---------- */
.cards {
  gap: 14px;
}

.card {
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--brand, #FF6B3D), transparent);
  opacity: 0;
  transition: opacity .25s var(--ease, ease);
  pointer-events: none;
}

.card:hover {
  transform: translateY(-3px);
  border-color: var(--brand-glow, rgba(255, 107, 61, .45));
  box-shadow:
    0 18px 44px rgba(0, 0, 0, .28),
    0 0 0 1px var(--brand-glow, rgba(255, 107, 61, .18)),
    0 0 34px var(--brand-glow, rgba(255, 107, 61, .18));
}

.card:hover::after {
  opacity: 1;
}

.card .num {
  font-weight: 800;
  text-shadow: 0 0 24px var(--brand-glow, rgba(255, 107, 61, .35));
  font-variant-numeric: tabular-nums;
}

.card.yellow .num {
  text-shadow: 0 0 22px rgba(251, 191, 36, .4);
}

.card.red .num {
  text-shadow: 0 0 22px rgba(248, 113, 113, .45);
}

.card.blue .num {
  text-shadow: 0 0 22px rgba(96, 165, 250, .4);
}

/* 告警卡脉冲呼吸 */
.card.yellow.alert,
.card.red.alert {
  animation: uiPulse 2.2s ease-in-out infinite;
}

@keyframes uiPulse {
  0%, 100% { box-shadow: 0 0 0 0 var(--brand-glow, rgba(255, 107, 61, 0)); }
  50% { box-shadow: 0 0 22px 2px var(--brand-glow, rgba(255, 107, 61, .28)); }
}

/* ---------- 4. 顶部导航激活态 ---------- */
.tabs button.active {
  text-shadow: 0 0 12px var(--brand-glow, rgba(255, 107, 61, .55));
}

.bottom-nav button.active {
  text-shadow: 0 0 12px var(--brand-glow, rgba(255, 107, 61, .5));
}

/* ---------- 5. 分析页科技图表 ---------- */
.tech-charts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}

.tech-chart-card {
  position: relative;
  overflow: hidden;
  background: var(--surface, rgba(255, 255, 255, .05));
  border: 1px solid var(--line, rgba(255, 255, 255, .09));
  border-radius: var(--r-lg, 18px);
  padding: 16px;
  box-shadow: var(--shadow-sm, 0 1px 2px rgba(0, 0, 0, .4));
}

  .chart-clickable {
    cursor: pointer;
    transition: transform .2s var(--ease, ease), border-color .2s var(--ease, ease), box-shadow .2s var(--ease, ease);
  }

  .chart-clickable:hover {
    transform: translateY(-2px);
    border-color: var(--brand, #5B8DEF);
    box-shadow: 0 12px 32px rgba(0, 0, 0, .3), 0 0 22px var(--brand-glow, rgba(91, 141, 239, .2));
  }


.tech-chart-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--brand, #5B8DEF), transparent);
  opacity: .7;
}

.tech-chart-card h4 {
  margin: 0 0 12px;
  font-size: 14px;
  letter-spacing: .06em;
  color: var(--ink-2, #9AA7BA);
}

.bar-chart {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bar-row {
  display: grid;
  grid-template-columns: 72px 1fr 42px;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}

.bar-label {
  color: var(--ink-2, #9AA7BA);
  text-align: right;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bar-track {
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .07);
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand, #5B8DEF), var(--cyan, #22D3EE));
  box-shadow: 0 0 12px var(--brand-glow, rgba(91, 141, 239, .4));
  transition: width .6s var(--ease, ease);
}

.bar-value {
  color: var(--ink, #EAF1FB);
  font-variant-numeric: tabular-nums;
  text-align: right;
}

/* ---------- 5.2 环形图 / 趋势图 / 首页趋势 ---------- */
.donut-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.donut {
  position: relative;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  flex: 0 0 auto;
  box-shadow: 0 0 24px var(--brand-glow, rgba(91, 141, 239, .25));
}

.donut-hole {
  position: absolute;
  inset: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--bg, #0A0F1D);
  font-size: 18px;
  font-weight: 800;
  color: var(--ink, #EAF1FB);
  font-variant-numeric: tabular-nums;
}

.donut-legend {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 120px;
  flex: 1;
}

.donut-legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--ink-2, #9AA7BA);
}

.donut-legend-item i {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  flex: 0 0 auto;
}

.donut-legend-item span {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.donut-legend-item b {
  color: var(--ink, #EAF1FB);
  font-variant-numeric: tabular-nums;
}

.trend-chart {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 150px;
  padding-top: 18px;
}

.trend-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
  min-width: 0;
}

.trend-bar {
  position: relative;
  width: 70%;
  max-width: 34px;
  min-height: 2px;
  border-radius: 8px 8px 4px 4px;
  background: linear-gradient(180deg, var(--brand, #5B8DEF), var(--cyan, #22D3EE));
  box-shadow: 0 0 14px var(--brand-glow, rgba(91, 141, 239, .35));
  transition: height .6s var(--ease, ease);
}

.trend-bar i {
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  font-style: normal;
  color: var(--ink-2, #9AA7BA);
  white-space: nowrap;
}

.trend-label {
  margin-top: 6px;
  font-size: 11px;
  color: var(--ink-3, #5D6B82);
  white-space: nowrap;
}

.home-trend {
  grid-template-columns: 1fr;
}

/* ---------- 5.3 顶部加载进度条 ---------- */
.top-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  z-index: 9999;
  pointer-events: none;
  opacity: 0;
  background: transparent;
}

.top-progress::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 40%;
  background: linear-gradient(90deg, transparent, var(--brand, #5B8DEF), var(--cyan, #22D3EE), transparent);
  box-shadow: 0 0 12px var(--brand-glow, rgba(91, 141, 239, .6));
  animation: topProgressSlide 1s ease-in-out infinite;
}

.top-progress.active {
  opacity: 1;
}

@keyframes topProgressSlide {
  0% { left: -40%; }
  100% { left: 110%; }
}

/* ---------- 5.4 回到顶部按钮 ---------- */
.back-to-top {
  position: fixed;
  right: 18px;
  bottom: 96px;
  z-index: 999;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line, rgba(255, 255, 255, .12));
  background: var(--surface, rgba(17, 19, 26, .82));
  color: var(--ink, #EAF1FB);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .35), 0 0 18px var(--brand-glow, rgba(91, 141, 239, .2));
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  opacity: 0;
  transform: translateY(12px) scale(.9);
  pointer-events: none;
  transition: opacity .25s var(--ease, ease), transform .25s var(--ease, ease);
}

.back-to-top.show {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.back-to-top:hover {
  border-color: var(--brand, #5B8DEF);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .4), 0 0 26px var(--brand-glow, rgba(91, 141, 239, .4));
}


/* ---------- 5.5 全局命令面板 ---------- */
.cmd-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-right: 8px;
  padding: 0;
  border: 1px solid var(--line, rgba(255, 255, 255, .12));
  border-radius: 10px;
  background: var(--surface, rgba(255, 255, 255, .06));
  color: var(--ink-2, #9AA7BA);
  cursor: pointer;
  transition: all .2s var(--ease, ease);
}

.cmd-trigger:hover {
  color: var(--ink, #EAF1FB);
  border-color: var(--brand, #5B8DEF);
  box-shadow: 0 0 14px var(--brand-glow, rgba(91, 141, 239, .3));
}

.cmd-palette {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 12vh 16px 16px;
}

.cmd-palette.hidden {
  display: none;
}

.cmd-mask {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: cmdMaskIn .2s ease;
}

.cmd-box {
  position: relative;
  width: 100%;
  max-width: 560px;
  max-height: 70vh;
  overflow: hidden;
  border: 1px solid var(--line, rgba(255, 255, 255, .12));
  border-radius: 18px;
  background: var(--bg-2, #0C1220);
  box-shadow: 0 28px 80px rgba(0, 0, 0, .55), 0 0 40px var(--brand-glow, rgba(91, 141, 239, .12));
  animation: cmdBoxIn .22s var(--ease, ease);
}

.cmd-search {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line, rgba(255, 255, 255, .08));
  color: var(--ink-3, #5D6B82);
}

.cmd-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink, #EAF1FB);
  font-size: 15px;
  font-family: inherit;
}

.cmd-search input::placeholder {
  color: var(--ink-3, #5D6B82);
}

.cmd-search kbd {
  padding: 2px 7px;
  border: 1px solid var(--line, rgba(255, 255, 255, .12));
  border-radius: 6px;
  background: rgba(255, 255, 255, .05);
  color: var(--ink-3, #5D6B82);
  font-size: 11px;
}

.cmd-list {
  max-height: calc(70vh - 58px);
  overflow-y: auto;
  padding: 8px;
}

.cmd-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--ink, #EAF1FB);
  font-size: 14px;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  transition: background .15s ease;
}

.cmd-item:hover,
.cmd-item:focus-visible {
  background: var(--brand-soft, rgba(91, 141, 239, .14));
  outline: none;
}

.cmd-item-icon {
  width: 22px;
  text-align: center;
  font-size: 16px;
}

.cmd-item-label {
  flex: 1;
}

.cmd-item-type {
  font-size: 11px;
  color: var(--ink-3, #5D6B82);
  border: 1px solid var(--line, rgba(255, 255, 255, .1));
  padding: 1px 7px;
  border-radius: 999px;
}

.cmd-empty {
  padding: 24px;
  text-align: center;
  color: var(--ink-3, #5D6B82);
  font-size: 13px;
}

@keyframes cmdMaskIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes cmdBoxIn {
  from { opacity: 0; transform: translateY(-12px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}


/* ---------- 5.6 APP 启动屏 ---------- */
.app-boot {
  position: fixed;
  inset: 0;
  z-index: 20000;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(600px 360px at 50% 20%, rgba(255, 122, 61, .25), transparent 70%),
    linear-gradient(160deg, #1A1310 0%, #0F0A08 100%);
  color: #fff;
  transition: opacity .45s ease, visibility .45s ease;
}

.app-boot.hide {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.boot-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}

.boot-logo {
  width: 76px;
  height: 76px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, .18);
  box-shadow: 0 0 0 6px rgba(255, 255, 255, .04), 0 18px 44px rgba(0, 0, 0, .5), 0 0 44px rgba(255, 122, 61, .35);
  object-fit: cover;
}

.boot-title {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: .14em;
  background: linear-gradient(92deg, #fff 10%, #FFC0A6 60%, #FF835C 110%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.boot-sub {
  font-size: 13px;
  letter-spacing: .3em;
  color: rgba(255, 255, 255, .55);
}

.boot-bar {
  width: 168px;
  height: 3px;
  margin-top: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  overflow: hidden;
}

.boot-bar i {
  display: block;
  width: 40%;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, #FF7A3D, #FF3D7F, transparent);
  animation: bootBarSlide 1.1s ease-in-out infinite;
}

@keyframes bootBarSlide {
  0% { margin-left: -40%; }
  100% { margin-left: 110%; }
}

/* 登录页“爱上水果”水波纹浮现 */
.login-brand h1.water-ripple {
  animation: waterRipple 2s ease-out both;
}

@keyframes waterRipple {
  0% {
    opacity: 0;
    transform: scale(.94) translateY(6px);
  }
  35% {
    opacity: 1;
    transform: scale(1.02) translateY(0);
  }
  70% {
    transform: scale(1);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}


/* ---------- 5.7 表单 / 弹窗科技感打磨 ---------- */
.field input,
.field select,
.field textarea,
.modal-body input,
.modal-body select,
.modal-body textarea,
.toolbar input,
.toolbar select {
  border: 1px solid var(--line, rgba(255, 255, 255, .1));
  border-radius: 12px;
  background: var(--surface, rgba(255, 255, 255, .05));
  color: var(--ink, #EAF1FB);
  transition: border-color .2s var(--ease, ease), box-shadow .2s var(--ease, ease), background .2s var(--ease, ease);
}

.field input:focus,
.field select:focus,
.field textarea:focus,
.modal-body input:focus,
.modal-body select:focus,
.modal-body textarea:focus,
.toolbar input:focus,
.toolbar select:focus {
  outline: none;
  border-color: var(--brand, #5B8DEF);
  background: var(--surface-2, rgba(255, 255, 255, .08));
  box-shadow: 0 0 0 3px var(--brand-soft, rgba(91, 141, 239, .16)), 0 0 20px var(--brand-glow, rgba(91, 141, 239, .18));
}

.btn-primary,
.primary,
.modal-actions .primary {
  position: relative;
  overflow: hidden;
  transition: transform .15s var(--ease, ease), box-shadow .2s var(--ease, ease), filter .2s var(--ease, ease);
}

.btn-primary:hover,
.primary:hover,
.modal-actions .primary:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
}

.btn-primary:active,
.primary:active,
.modal-actions .primary:active {
  transform: scale(.97);
}

.btn-primary:focus-visible,
.primary:focus-visible,
.secondary:focus-visible,
.link:focus-visible,
.cmd-item:focus-visible,
.cmd-trigger:focus-visible,
.back-to-top:focus-visible {
  outline: 2px solid var(--brand, #5B8DEF);
  outline-offset: 2px;
}

.modal-box,
.confirm-box {
  border: 1px solid var(--line, rgba(255, 255, 255, .12));
  background: var(--bg-2, #0C1220);
  box-shadow: 0 28px 80px rgba(0, 0, 0, .55), 0 0 40px var(--brand-glow, rgba(91, 141, 239, .1));
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

.modal-title {
  position: relative;
  padding-bottom: 10px;
}

.modal-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 42px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--brand, #5B8DEF), var(--cyan, #22D3EE));
  box-shadow: 0 0 10px var(--brand-glow, rgba(91, 141, 239, .4));
}

.sheet-box {
  border: 1px solid var(--line, rgba(255, 255, 255, .12));
  background: var(--bg-2, #0C1220);
  box-shadow: 0 -20px 60px rgba(0, 0, 0, .5), 0 0 40px var(--brand-glow, rgba(91, 141, 239, .08));
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

.toast {
  background: rgba(17, 19, 26, .88);
  border: 1px solid var(--line, rgba(255, 255, 255, .12));
  box-shadow: 0 12px 36px rgba(0, 0, 0, .45), 0 0 22px var(--brand-glow, rgba(91, 141, 239, .15));
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}



/* ---------- 6. 移动端微调 ---------- */
@media (max-width: 768px) {
  .tech-charts {
    grid-template-columns: 1fr;
  }

  .card:hover {
    transform: none;
  }

  .hero::before {
    background-size: 20px 20px;
  }

  .bar-row {
    grid-template-columns: 58px 1fr 36px;
    gap: 6px;
  }

  /* 严重修复：移动端顶栏不能溢出屏幕 */
  .tabs {
    display: none !important;
  }

  .topbar {
    flex-wrap: nowrap;
    gap: 6px;
    padding: 10px 10px;
  }

  .topbar .brand {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 14px;
    letter-spacing: 0;
  }

  .topbar .brand .brand-logo-sm {
    width: 20px;
    height: 20px;
    margin-right: 4px;
    border-radius: 6px;
    flex: 0 0 auto;
  }

  .userbox {
    flex: 0 0 auto;
    gap: 6px;
    font-size: 13px;
  }

  .userbox #userName {
    display: none !important;
  }

  .cmd-trigger {
    width: 30px;
    height: 30px;
    margin-right: 2px;
  }

  /* 主题切换在手机上收进命令面板/底部抽屉，避免顶栏拥挤 */
  .theme-toggle {
    display: none !important;
  }

  #logoutBtn {
    min-height: 36px;
    padding: 6px 9px;
    font-size: 13px;
  }
}

/* ---------- 5.8 应用内更新弹窗 ---------- */
.update-box {
  padding: 22px;
  text-align: center;
}

.update-box .update-title {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 800;
  color: var(--ink, #EAF1FB);
}

.update-box .update-version {
  margin: 0 0 8px;
  font-size: 14px;
  color: var(--brand, #5B8DEF);
}

.update-box .update-msg {
  margin: 0 0 18px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-2, #9AA7BA);
}

  .update-box .update-tip {
    margin: -8px 0 16px;
    padding: 8px 12px;
    border: 1px solid var(--line, rgba(255, 255, 255, .1));
    border-radius: 10px;
    background: rgba(91, 141, 239, .08);
    font-size: 12px;
    line-height: 1.5;
    color: var(--ink-2, #9AA7BA);
  }


.update-box .update-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.update-box .update-actions .primary,
.update-box .update-actions .secondary {
  min-width: 110px;
}


/* ---------- 5.9 版本更新说明一次性弹窗 ---------- */
.whatsnew-overlay {
  position: fixed;
  inset: 0;
  z-index: 20001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, .6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  cursor: pointer;
  animation: cmdMaskIn .2s ease;
}

.whatsnew-card {
  width: 100%;
  max-width: 380px;
  max-height: 72vh;
  overflow-y: auto;
  padding: 24px 22px;
  border: 1px solid var(--line, rgba(255, 255, 255, .14));
  border-radius: 20px;
  background: var(--bg-2, #0C1220);
  box-shadow: 0 28px 80px rgba(0, 0, 0, .55), 0 0 40px var(--brand-glow, rgba(91, 141, 239, .15));
  text-align: center;
  animation: cmdBoxIn .25s var(--ease, ease);
}

.whatsnew-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--ink, #EAF1FB);
  margin-bottom: 6px;
}

.whatsnew-version {
  font-size: 14px;
  color: var(--brand, #5B8DEF);
  margin-bottom: 16px;
}

.whatsnew-card ul {
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
  text-align: left;
}

.whatsnew-card li {
  position: relative;
  padding: 7px 0 7px 20px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-2, #9AA7BA);
}

.whatsnew-card li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 7px;
  color: var(--brand, #5B8DEF);
  font-weight: 800;
}

.whatsnew-tip {
  font-size: 12px;
  color: var(--ink-3, #5D6B82);
  border-top: 1px solid var(--line, rgba(255, 255, 255, .08));
  padding-top: 12px;
}


  .download-app {
    margin-top: 14px;
    text-align: center;
  }

  .download-app a {
    display: inline-block;
    padding: 6px 16px;
    border: 1px solid var(--line, rgba(255, 255, 255, .14));
    border-radius: 999px;
    background: var(--surface, rgba(255, 255, 255, .05));
    color: var(--brand, #5B8DEF);
    font-size: 13px;
    text-decoration: none;
    transition: all .2s var(--ease, ease);
  }

  .download-app a:hover {
    border-color: var(--brand, #5B8DEF);
    box-shadow: 0 0 14px var(--brand-glow, rgba(91, 141, 239, .3));
  }


/* ---------- 5.10 新手引导 ---------- */
.onboarding-overlay {
  position: fixed;
  inset: 0;
  z-index: 21000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, .72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: cmdMaskIn .25s ease;
}

.onboarding-card {
  width: 100%;
  max-width: 400px;
  max-height: 80vh;
  overflow-y: auto;
  padding: 26px 22px 20px;
  border: 1px solid var(--line, rgba(255, 255, 255, .14));
  border-radius: 22px;
  background: var(--bg-2, #0C1220);
  box-shadow: 0 28px 80px rgba(0, 0, 0, .55), 0 0 40px var(--brand-glow, rgba(91, 141, 239, .15));
  text-align: center;
  animation: cmdBoxIn .25s var(--ease, ease);
}

.onboarding-icon {
  font-size: 42px;
  margin-bottom: 12px;
}

.onboarding-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--ink, #EAF1FB);
  margin-bottom: 8px;
}

.onboarding-desc {
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-2, #9AA7BA);
  margin-bottom: 18px;
}

.onboarding-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-bottom: 16px;
}

.onboarding-dots i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .18);
  transition: all .2s ease;
}

.onboarding-dots i.active {
  width: 20px;
  border-radius: 4px;
  background: var(--brand, #5B8DEF);
  box-shadow: 0 0 10px var(--brand-glow, rgba(91, 141, 239, .4));
}

.onboarding-actions {
  display: flex;
  gap: 10px;
}

.onboarding-actions .primary,
.onboarding-actions .secondary {
  flex: 1;
  min-height: 42px;
}

.icp-link {
  display: inline-block;
  margin-top: 4px;
  color: inherit;
  opacity: .65;
  text-decoration: none;
  transition: opacity .2s ease;
}
.icp-link:hover {
  opacity: 1;
  text-decoration: underline;
}

/* ---------- 7. 减弱动态效果 ---------- */
@media (prefers-reduced-motion: reduce) {
  .card,
  .card.yellow.alert,
  .card.red.alert,
  .hero,
  .bar-fill {
    animation: none !important;
    transition: none !important;
  }
}
