html { overflow-x: hidden; }
/* ============================================================
 * 智净空间 SmartClean Space V4.5 — 统一 UI 设计系统
 * 2026-08-20 重设计 · 科技感深色主题 + 玻璃拟态 + 协调联动
 * 设计理念：科技守护 · 温馨陪伴 · 现代银发关怀
 * V4.0 Pro · 极光背景 + 光效卡片 + 沉浸交互
 * ============================================================ */

/* ---------- 1. 设计令牌 ---------- */
:root {
  /* 主色：森林青绿（生命/守护）+ 暖橙强调（关怀/陪伴） */
  --c-primary: #10b981;
  --c-primary-light: #34d399;
  --c-primary-glow: rgba(16, 185, 129, 0.35);
  --c-accent: #fb923c;
  --c-accent-glow: rgba(251, 146, 60, 0.35);
  --c-info: #38bdf8;
  --c-info-glow: rgba(56, 189, 248, 0.35);
  --c-warn: #f59e0b;
  --c-danger: #ef4444;
  --c-purple: #a78bfa;

  /* 深色背景层 */
  --bg-deep: #050d0a;
  --bg-mid: #0a1f17;
  --bg-soft: #0f2920;
  --bg-card: rgba(16, 36, 28, 0.55);
  --bg-card-hover: rgba(20, 50, 38, 0.7);
  --bg-line: rgba(255, 255, 255, 0.08);
  --bg-overlay: rgba(0, 0, 0, 0.55);

  /* 文字 */
  --text: #f0fdf4;
  --text-2: #a7d4be;
  --text-3: #6b9c83;
  --text-on-card: #ecfdf5;

  /* 半径 / 阴影 / 字号 */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --r-full: 999px;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.35);
  --shadow-glow: 0 0 32px var(--c-primary-glow);
  --shadow-deep: 0 20px 60px rgba(0, 0, 0, 0.5);

  --fs-base: 15px;
  --fs-lg: 18px;
  --fs-xl: 22px;
  --fs-2xl: 28px;
  --fs-3xl: 36px;
  --fs-4xl: 48px;

  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ---------- 2. 极光动态背景 ---------- */
@keyframes aurora-1 {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.6; }
  33% { transform: translate(30vw, -20vh) scale(1.3); opacity: 0.4; }
  66% { transform: translate(-20vw, 15vh) scale(0.8); opacity: 0.5; }
}
@keyframes aurora-2 {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.4; }
  50% { transform: translate(-25vw, 25vh) scale(1.4); opacity: 0.3; }
}
@keyframes aurora-3 {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.3; }
  50% { transform: translate(20vw, -15vh) scale(1.2); opacity: 0.5; }
}
@keyframes starfield {
  from { background-position: 0 0; }
  to { background-position: 0 1000px; }
}

/* ---------- 3. 基础重置 ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC",
               -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  background:
    radial-gradient(ellipse 80% 60% at 20% 0%, rgba(16, 185, 129, 0.18), transparent 60%),
    radial-gradient(ellipse 70% 60% at 100% 30%, rgba(56, 189, 248, 0.10), transparent 60%),
    linear-gradient(180deg, var(--bg-deep) 0%, var(--bg-mid) 50%, var(--bg-deep) 100%);
  background-attachment: fixed;
  color: var(--text);
  font-size: var(--fs-base);
  line-height: 1.65;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* 极光浮动球 */
body::before {
  content: '';
  position: fixed;
  top: -10%; left: -5%;
  width: 50vw; height: 50vw;
  max-width: 600px; max-height: 600px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(60px);
  animation: aurora-1 25s ease-in-out infinite;
  z-index: 0;
  pointer-events: none;
}
body::after {
  content: '';
  position: fixed;
  bottom: -15%; right: -10%;
  width: 60vw; height: 60vw;
  max-width: 700px; max-height: 700px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.10) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(80px);
  animation: aurora-2 30s ease-in-out infinite;
  z-index: 0;
  pointer-events: none;
}

/* 星点背景层 */
.aurora-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    radial-gradient(1px 1px at 25% 15%, rgba(255,255,255,0.5), transparent),
    radial-gradient(1px 1px at 75% 35%, rgba(52,211,153,0.4), transparent),
    radial-gradient(1px 1px at 50% 65%, rgba(56,189,248,0.3), transparent),
    radial-gradient(1px 1px at 85% 80%, rgba(255,255,255,0.3), transparent),
    radial-gradient(1px 1px at 15% 90%, rgba(251,146,60,0.3), transparent);
  background-size: 300px 300px;
  animation: starfield 60s linear infinite;
  opacity: 0.6;
}

a { color: var(--c-primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--c-primary-light); text-shadow: 0 0 12px var(--c-primary-glow); }
img, video { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; outline: none; }

/* 滚动条美化 */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track {
  background: rgba(5, 13, 10, 0.5);
  border-radius: 10px;
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--c-primary) 0%, var(--c-info) 100%);
  border-radius: 10px;
  border: 2px solid rgba(5, 13, 10, 0.5);
  box-shadow: 0 0 8px var(--c-primary-glow);
}
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--c-primary-light) 0%, var(--c-info) 100%);
  box-shadow: 0 0 12px var(--c-primary-glow);
}

/* ---------- 4. 顶部导航栏（统一 7 页通用） ---------- */
.site-navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 31, 23, 0.75);
  backdrop-filter: blur(24px) saturate(1.8);
  -webkit-backdrop-filter: blur(24px) saturate(1.8);
  border-bottom: 1px solid var(--bg-line);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

/* 导航栏底部光线 */
.site-navbar::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    var(--c-primary-glow) 20%,
    var(--c-info-glow) 50%,
    var(--c-primary-glow) 80%,
    transparent 100%);
}

.nav-inner {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  position: relative;
  z-index: 1;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--text);
  transition: var(--transition);
}
.nav-brand:hover { transform: scale(1.02); }
.nav-brand-logo {
  width: 40px; height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--c-primary) 0%, var(--c-info) 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 800; color: #fff;
  box-shadow: 0 4px 16px var(--c-primary-glow);
  position: relative;
  overflow: hidden;
}
/* Logo 内部闪光 */
.nav-brand-logo::after {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: linear-gradient(45deg, transparent 40%, rgba(255,255,255,0.3) 50%, transparent 60%);
  animation: logoShine 3s ease-in-out infinite;
}
@keyframes logoShine {
  0%, 100% { transform: translate(-100%, -100%) rotate(0deg); }
  50% { transform: translate(0%, 0%) rotate(45deg); }
}
.nav-brand-name {
  background: linear-gradient(90deg, #fff 0%, var(--c-primary-light) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
  justify-content: center;
}
.nav-link {
  position: relative;
  padding: 8px 16px;
  border-radius: var(--r-md);
  font-size: 14px;
  color: var(--text-2);
  font-weight: 500;
  transition: var(--transition);
  overflow: hidden;
}
.nav-link::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--c-primary-glow) 0%, transparent 70%);
  opacity: 0;
  transition: var(--transition);
  border-radius: var(--r-md);
}
.nav-link:hover::before { opacity: 0.5; }
.nav-link:hover { color: var(--text); }
.nav-link.active {
  color: var(--c-primary);
  background: rgba(16, 185, 129, 0.12);
}
.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 50%; transform: translateX(-50%);
  width: 28px; height: 2px;
  background: linear-gradient(90deg, var(--c-primary) 0%, var(--c-info) 100%);
  border-radius: 2px;
  box-shadow: 0 0 10px var(--c-primary-glow), 0 0 4px var(--c-primary);
}
.nav-actions { display: flex; align-items: center; gap: 8px; }
.nav-btn {
  background: transparent;
  border: 1px solid var(--bg-line);
  color: var(--text-2);
  padding: 7px 14px;
  border-radius: var(--r-md);
  cursor: pointer;
  font-size: 13px;
  display: inline-flex; align-items: center; gap: 6px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.nav-btn::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  transition: left 0.5s ease;
}
.nav-btn:hover::after { left: 100%; }
.nav-btn:hover { color: var(--text); border-color: var(--c-primary); background: rgba(16, 185, 129, 0.08); }
.nav-btn.primary {
  background: linear-gradient(135deg, var(--c-primary) 0%, var(--c-info) 100%);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 2px 12px var(--c-primary-glow);
}
.nav-btn.primary:hover { box-shadow: 0 4px 20px var(--c-primary-glow); transform: translateY(-1px); }
.nav-btn.danger:hover { color: var(--c-danger); border-color: var(--c-danger); background: rgba(239, 68, 68, 0.08); }
.nav-user {
  display: flex; align-items: center; gap: 8px;
  padding: 4px 12px 4px 4px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--bg-line);
  border-radius: var(--r-full);
  font-size: 13px; color: var(--text-2);
  transition: var(--transition);
}
.nav-user:hover { border-color: var(--c-primary); box-shadow: 0 0 12px var(--c-primary-glow); }
.nav-user-avatar {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--c-accent) 0%, var(--c-primary) 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700; color: #fff;
  box-shadow: 0 0 10px var(--c-accent-glow);
}

/* 汉堡菜单（移动端） */
.nav-hb {
  display: none;
  background: transparent;
  border: 1px solid var(--bg-line);
  color: var(--text);
  width: 42px; height: 42px;
  border-radius: var(--r-md);
  cursor: pointer;
  font-size: 22px;
  transition: var(--transition);
}
.nav-hb:hover { border-color: var(--c-primary); box-shadow: 0 0 12px var(--c-primary-glow); }
.nav-drawer {
  display: none;
  position: fixed;
  inset: 64px 0 0 0;
  background: rgba(5, 13, 10, 0.96);
  backdrop-filter: blur(24px);
  z-index: 99;
  padding: 20px;
  flex-direction: column;
  gap: 8px;
  animation: drawerIn 0.3s ease-out;
}
@keyframes drawerIn {
  from { opacity: 0; transform: translateX(100%); }
  to { opacity: 1; transform: translateX(0); }
}
.nav-drawer.open { display: flex; }
.nav-drawer .nav-link { font-size: 17px; padding: 14px 16px; }

/* ---------- 5. 主容器 / 通用布局 ---------- */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 32px 24px 80px;
  position: relative;
  z-index: 1;
}
.page-title {
  font-size: var(--fs-3xl);
  font-weight: 800;
  background: linear-gradient(90deg, #fff 0%, var(--c-primary-light) 50%, var(--c-info) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 8px;
  letter-spacing: 0.5px;
  animation: fadeUp 0.6s ease-out;
}
.page-sub {
  font-size: var(--fs-lg);
  color: var(--text-2);
  margin-bottom: 28px;
  animation: fadeUp 0.6s ease-out 0.1s both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 玻璃卡片 — 增强 */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border: 1px solid var(--bg-line);
  border-radius: var(--r-lg);
  padding: 24px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  animation: fadeUp 0.5s ease-out;
}
/* 卡片顶部光线 */
.glass-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--c-primary-glow), transparent);
  opacity: 0.6;
}
.glass-card::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(16,185,129,0.05), transparent);
  transition: left 0.6s ease;
  pointer-events: none;
}
.glass-card:hover {
  border-color: rgba(16, 185, 129, 0.35);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md), 0 0 40px var(--c-primary-glow);
}
.glass-card:hover::after { left: 100%; }

.glass-card-static {
  background: var(--bg-card);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border: 1px solid var(--bg-line);
  border-radius: var(--r-lg);
  padding: 24px;
  position: relative;
  overflow: hidden;
  animation: fadeUp 0.5s ease-out;
}
.glass-card-static::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--c-primary-glow), transparent);
  opacity: 0.4;
}

/* 章节标题 */
.section-h {
  font-size: var(--fs-xl);
  font-weight: 700;
  color: var(--text);
  margin: 32px 0 16px;
  display: flex; align-items: center; gap: 10px;
  animation: fadeUp 0.5s ease-out;
}
.section-h::before {
  content: '';
  width: 4px; height: 24px;
  background: linear-gradient(180deg, var(--c-primary) 0%, var(--c-info) 100%);
  border-radius: 2px;
  box-shadow: 0 0 8px var(--c-primary-glow);
}

/* 网格 */
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* 徽标 */
.badge {
  display: inline-block;
  padding: 3px 12px;
  border-radius: var(--r-full);
  font-size: 12px; font-weight: 600;
  background: rgba(16, 185, 129, 0.18);
  color: var(--c-primary-light);
  border: 1px solid rgba(16, 185, 129, 0.35);
  backdrop-filter: blur(10px);
}
.badge.warn { background: rgba(245, 158, 11, 0.18); color: var(--c-warn); border-color: rgba(245, 158, 11, 0.35); }
.badge.info { background: rgba(56, 189, 248, 0.18); color: var(--c-info); border-color: rgba(56, 189, 248, 0.35); }
.badge.accent { background: rgba(251, 146, 60, 0.18); color: var(--c-accent); border-color: rgba(251, 146, 60, 0.35); }
.badge.purple { background: rgba(167, 139, 250, 0.18); color: var(--c-purple); border-color: rgba(167, 139, 250, 0.35); }

/* 按钮 — 增强微交互 */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--r-full);
  font-size: 14px; font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}
/* 按钮闪光扫过 */
.btn::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 50%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s ease;
}
.btn:hover::after { left: 150%; }
.btn:active { transform: scale(0.96); }

.btn-primary {
  background: linear-gradient(135deg, var(--c-primary) 0%, var(--c-info) 100%);
  color: #fff;
  box-shadow: 0 4px 16px var(--c-primary-glow);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px var(--c-primary-glow), 0 0 20px var(--c-primary-glow);
  color: #fff;
}
.btn-accent {
  background: linear-gradient(135deg, var(--c-accent) 0%, var(--c-warn) 100%);
  color: #fff;
  box-shadow: 0 4px 16px var(--c-accent-glow);
}
.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px var(--c-accent-glow);
  color: #fff;
}
.btn-ghost {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-2);
  border-color: var(--bg-line);
}
.btn-ghost:hover {
  color: var(--text);
  border-color: var(--c-primary);
  background: rgba(16, 185, 129, 0.08);
  box-shadow: 0 0 16px var(--c-primary-glow);
}
.btn-block { display: flex; width: 100%; }

/* 返回顶部 + 浮动操作 */
.fab-stack {
  position: fixed;
  right: 20px; bottom: 80px;
  display: flex; flex-direction: column;
  gap: 10px;
  z-index: 90;
}
.fab {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(16, 36, 28, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid var(--bg-line);
  color: var(--text);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  box-shadow: var(--shadow-md);
  transition: var(--transition-bounce);
  position: relative;
  overflow: hidden;
}
.fab::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--c-primary-glow) 0%, var(--c-info-glow) 100%);
  opacity: 0;
  transition: var(--transition);
}
.fab:hover {
  transform: scale(1.15) rotate(5deg);
  box-shadow: 0 8px 32px var(--c-primary-glow);
  color: #fff;
}
.fab:hover::before { opacity: 1; }
.fab i, .fab span { position: relative; z-index: 1; }
.fab-show { display: none; }
.fab.show { display: flex; animation: fabIn 0.3s ease-out; }
@keyframes fabIn {
  from { opacity: 0; transform: scale(0); }
  to { opacity: 1; transform: scale(1); }
}

/* Toast */
.toast-host {
  position: fixed; left: 50%; bottom: 30px;
  transform: translateX(-50%);
  z-index: 999;
  pointer-events: none;
  display: flex; flex-direction: column; gap: 8px; align-items: center;
}
.toast {
  background: rgba(16, 36, 28, 0.95);
  backdrop-filter: blur(20px);
  color: var(--text);
  padding: 12px 28px;
  border-radius: var(--r-full);
  font-size: 14px;
  border: 1px solid var(--c-primary);
  box-shadow: 0 8px 32px var(--c-primary-glow), 0 0 20px rgba(16,185,129,0.2);
  animation: toastIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), toastOut 0.35s ease-in 2.3s forwards;
}
@keyframes toastIn { from { opacity: 0; transform: translateY(30px) scale(0.8); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(-20px) scale(0.9); } }

/* ---------- 6. 登录页 ---------- */
/* 登录页返回产品矩阵按钮 */
.login-back {
  position: fixed;
  top: 20px; left: 20px;
  z-index: 95;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(16, 36, 28, 0.75);
  backdrop-filter: blur(12px);
  border: 1px solid var(--bg-line);
  color: var(--text);
  font-size: 14px;
  text-decoration: none;
  transition: var(--transition);
}
.login-back:hover {
  color: #fff;
  border-color: var(--c-primary);
  box-shadow: 0 4px 20px var(--c-primary-glow);
  transform: translateX(-2px);
}
.login-page {
  display: flex; align-items: center; justify-content: center;
  min-height: 100vh;
  padding: 24px;
  background:
    radial-gradient(ellipse 60% 50% at 30% 30%, var(--c-primary-glow), transparent),
    radial-gradient(ellipse 50% 50% at 70% 70%, var(--c-info-glow), transparent),
    var(--bg-deep);
  position: relative;
  overflow: hidden;
}

/* 登录页浮动光球 */
.login-page::before {
  content: '';
  position: absolute;
  top: 10%; left: 10%;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.2) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(40px);
  animation: aurora-1 20s ease-in-out infinite;
  pointer-events: none;
}
.login-page::after {
  content: '';
  position: absolute;
  bottom: 5%; right: 5%;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(50px);
  animation: aurora-2 25s ease-in-out infinite;
  pointer-events: none;
}

.login-wrap {
  width: 100%; max-width: 440px;
  background: rgba(15, 41, 32, 0.65);
  backdrop-filter: blur(28px) saturate(1.6);
  -webkit-backdrop-filter: blur(28px) saturate(1.6);
  border: 1px solid var(--bg-line);
  border-radius: var(--r-xl);
  padding: 40px 36px;
  box-shadow: var(--shadow-deep), 0 0 60px rgba(16, 185, 129, 0.1);
  position: relative;
  z-index: 1;
  animation: loginIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes loginIn {
  from { opacity: 0; transform: translateY(40px) scale(0.9); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
/* 登录卡片顶部光线 */
.login-wrap::before {
  content: '';
  position: absolute;
  top: 0; left: 10%; right: 10%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--c-primary), var(--c-info), transparent);
  border-radius: 2px;
  box-shadow: 0 0 16px var(--c-primary-glow);
}

.login-logo {
  width: 80px; height: 80px;
  border-radius: var(--r-lg);
  background: linear-gradient(135deg, var(--c-primary) 0%, var(--c-info) 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 40px;
  margin: 0 auto 16px;
  box-shadow: 0 8px 32px var(--c-primary-glow), 0 0 20px var(--c-info-glow);
  position: relative;
  overflow: hidden;
  animation: logoFloat 3s ease-in-out infinite;
}
@keyframes logoFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
.login-logo::after {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: linear-gradient(45deg, transparent 40%, rgba(255,255,255,0.3) 50%, transparent 60%);
  animation: logoShine 3s ease-in-out infinite;
}

.login-title {
  font-size: var(--fs-2xl); font-weight: 800;
  background: linear-gradient(90deg, #fff 0%, var(--c-primary-light) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  text-align: center;
  margin-bottom: 8px;
  text-shadow: 0 0 40px var(--c-primary-glow);
}
.login-sub {
  font-size: 14px; color: var(--text-2);
  text-align: center;
  margin-bottom: 28px;
}
.login-tabs {
  display: flex;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--bg-line);
  border-radius: var(--r-md);
  padding: 4px;
  margin-bottom: 24px;
  position: relative;
}
.login-tab {
  flex: 1;
  padding: 10px;
  text-align: center;
  font-size: 14px;
  color: var(--text-2);
  cursor: pointer;
  border-radius: var(--r-sm);
  transition: var(--transition);
  background: transparent; border: none;
  position: relative;
  z-index: 1;
}
.login-tab.active {
  background: linear-gradient(135deg, var(--c-primary) 0%, var(--c-info) 100%);
  color: #fff;
  box-shadow: 0 2px 12px var(--c-primary-glow);
}
.login-field {
  position: relative;
  margin-bottom: 14px;
}
.login-field-icon {
  position: absolute;
  left: 14px; top: 50%; transform: translateY(-50%);
  font-size: 17px;
  color: var(--text-3);
  transition: var(--transition);
  z-index: 1;
}
.login-input:focus + .login-field-icon,
.login-field:focus-within .login-field-icon {
  color: var(--c-primary);
  text-shadow: 0 0 8px var(--c-primary-glow);
}
.login-input {
  width: 100%;
  padding: 13px 14px 13px 44px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--bg-line);
  border-radius: var(--r-md);
  color: var(--text);
  font-size: 15px;
  transition: var(--transition);
}
.login-input:focus {
  border-color: var(--c-primary);
  background: rgba(16, 185, 129, 0.05);
  box-shadow: 0 0 0 4px var(--c-primary-glow), 0 0 16px var(--c-primary-glow);
}
.login-input::placeholder { color: var(--text-3); }
.login-toggle-pwd {
  position: absolute;
  right: 12px; top: 50%; transform: translateY(-50%);
  background: transparent;
  border: none;
  color: var(--text-3);
  cursor: pointer;
  font-size: 16px;
  padding: 4px 8px;
  transition: var(--transition);
  z-index: 1;
}
.login-toggle-pwd:hover { color: var(--c-primary); }
.login-options {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 13px;
  color: var(--text-2);
  margin-bottom: 18px;
}
.login-options label { display: flex; align-items: center; gap: 6px; cursor: pointer; transition: var(--transition); }
.login-options label:hover { color: var(--c-primary-light); }
.login-options input[type=checkbox] { accent-color: var(--c-primary); width: 14px; height: 14px; }
.login-submit {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, var(--c-primary) 0%, var(--c-info) 100%);
  color: #fff; border: none;
  border-radius: var(--r-md);
  font-size: 16px; font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 24px var(--c-primary-glow);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.login-submit::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 50%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.5s ease;
}
.login-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 40px var(--c-primary-glow);
}
.login-submit:hover::after { left: 150%; }
.login-submit:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.login-fb {
  width: 100%;
  padding: 12px;
  background: transparent;
  color: var(--text-2);
  border: 1px solid var(--bg-line);
  border-radius: var(--r-md);
  font-size: 14px;
  cursor: pointer;
  margin-top: 10px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: var(--transition);
}
.login-fb:hover { border-color: var(--c-primary); color: var(--text); box-shadow: 0 0 16px var(--c-primary-glow); }
.login-other {
  margin-top: 22px;
  text-align: center;
  font-size: 12px; color: var(--text-3);
}
.login-other a { color: var(--text-2); margin: 0 6px; transition: var(--transition); }
.login-other a:hover { color: var(--c-primary-light); text-shadow: 0 0 8px var(--c-primary-glow); }

/* ---------- 7. 主页 Hero + 场景卡片 + AI 卡片 ---------- */
.hero-wrap {
  text-align: center;
  padding: 56px 24px 40px;
  position: relative;
  animation: fadeUp 0.6s ease-out;
}
.hero-eyebrow {
  display: inline-block;
  padding: 6px 18px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--r-full);
  font-size: 13px;
  color: var(--c-primary-light);
  margin-bottom: 20px;
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}
.hero-eyebrow::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(16,185,129,0.2), transparent);
  animation: eyebrowShine 3s ease-in-out infinite;
}
@keyframes eyebrowShine {
  0%, 100% { left: -100%; }
  50% { left: 100%; }
}
.hero-title {
  font-size: var(--fs-4xl);
  font-weight: 900;
  letter-spacing: 1px;
  line-height: 1.2;
  background: linear-gradient(90deg, #fff 0%, var(--c-primary-light) 50%, var(--c-info) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: 16px;
  filter: drop-shadow(0 0 30px var(--c-primary-glow));
}
.hero-sub {
  font-size: var(--fs-lg);
  color: var(--text-2);
  max-width: 720px;
  margin: 0 auto 8px;
}
.hero-stats {
  display: flex; justify-content: center;
  gap: 36px;
  margin-top: 28px;
  flex-wrap: wrap;
}
.hero-stat {
  text-align: center;
  position: relative;
}
.hero-stat:not(:last-child)::after {
  content: '';
  position: absolute;
  right: -18px; top: 15%; bottom: 15%;
  width: 1px;
  background: var(--bg-line);
}
.hero-stat-num {
  font-size: var(--fs-2xl);
  font-weight: 800;
  background: linear-gradient(90deg, var(--c-primary-light) 0%, var(--c-info) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 12px var(--c-primary-glow));
}
.hero-stat-lbl { font-size: 13px; color: var(--text-3); margin-top: 2px; }

/* 场景卡：可交互、可联动切换 — 增强 3D 悬浮 */
.scene-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--bg-line);
  border-radius: var(--r-lg);
  padding: 22px 20px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
  animation: fadeUp 0.5s ease-out;
}
.scene-card::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--c-primary-glow) 0%, transparent 60%);
  opacity: 0;
  transition: var(--transition);
  pointer-events: none;
}
/* 场景卡顶部光线 */
.scene-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--c-primary), transparent);
  opacity: 0;
  transition: var(--transition);
}
.scene-card:hover {
  border-color: rgba(16, 185, 129, 0.4);
  transform: translateY(-6px) perspective(800px) rotateX(2deg);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4), 0 0 32px var(--c-primary-glow);
}
.scene-card:hover::before { opacity: 1; }
.scene-card:hover::after { opacity: 1; }
.scene-card.active {
  border-color: var(--c-primary);
  box-shadow: 0 8px 32px var(--c-primary-glow);
  transform: translateY(-4px);
}
.scene-card.active::before { opacity: 1; }
.scene-card.active::after { opacity: 1; }
.scene-card-icon {
  width: 56px; height: 56px;
  border-radius: var(--r-md);
  background: linear-gradient(135deg, var(--c-primary) 0%, var(--c-info) 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 28px;
  margin-bottom: 14px;
  position: relative; z-index: 1;
  box-shadow: 0 4px 16px var(--c-primary-glow);
  transition: var(--transition);
}
.scene-card:hover .scene-card-icon {
  transform: scale(1.1) rotate(-5deg);
  box-shadow: 0 8px 24px var(--c-primary-glow), 0 0 20px var(--c-info-glow);
}
.scene-card h3 {
  font-size: 18px;
  color: var(--text);
  margin-bottom: 6px;
  position: relative; z-index: 1;
}
.scene-card p {
  font-size: 13px;
  color: var(--text-2);
  position: relative; z-index: 1;
}
.scene-card-status {
  margin-top: 12px;
  display: flex; align-items: center; gap: 6px;
  font-size: 12px;
  color: var(--c-primary-light);
  position: relative; z-index: 1;
}
.scene-card-status::before {
  content: '';
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--c-primary);
  box-shadow: 0 0 10px var(--c-primary);
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 10px var(--c-primary); }
  50% { opacity: 0.5; transform: scale(0.7); box-shadow: 0 0 4px var(--c-primary); }
}

/* 详情抽屉（场景选中后底部弹出） */
.scene-detail {
  background: rgba(15, 41, 32, 0.85);
  backdrop-filter: blur(24px) saturate(1.4);
  border: 1px solid var(--c-primary);
  border-radius: var(--r-lg);
  padding: 22px;
  margin-top: 20px;
  display: none;
  animation: slideUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 8px 32px var(--c-primary-glow);
  position: relative;
  overflow: hidden;
}
.scene-detail::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--c-primary), var(--c-info), transparent);
  box-shadow: 0 0 10px var(--c-primary-glow);
}
.scene-detail.show { display: block; }
@keyframes slideUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
.scene-detail-h {
  font-size: var(--fs-xl);
  font-weight: 700;
  color: var(--c-primary-light);
  margin-bottom: 8px;
  display: flex; align-items: center; gap: 10px;
}
.scene-detail-p { font-size: 14px; color: var(--text-2); margin-bottom: 16px; line-height: 1.8; }
.scene-detail-actions {
  display: flex; gap: 10px; flex-wrap: wrap;
}

/* ---------- 8. AI 工具网格 — 增强发光效果 ---------- */
.ai-tool {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--bg-line);
  border-radius: var(--r-md);
  padding: 18px 16px;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  position: relative;
  overflow: hidden;
  animation: fadeUp 0.5s ease-out;
}
.ai-tool::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 0%, var(--c-info-glow) 0%, transparent 60%);
  opacity: 0;
  transition: var(--transition);
}
.ai-tool:hover {
  border-color: var(--c-info);
  transform: translateY(-6px);
  box-shadow: 0 8px 28px var(--c-info-glow), 0 0 20px rgba(56,189,248,0.2);
}
.ai-tool:hover::before { opacity: 1; }
.ai-tool-icon {
  font-size: 32px;
  margin-bottom: 8px;
  position: relative; z-index: 1;
  transition: var(--transition);
}
.ai-tool:hover .ai-tool-icon {
  transform: scale(1.2) rotate(5deg);
  filter: drop-shadow(0 0 12px var(--c-info-glow));
}
.ai-tool-name { font-size: 13px; color: var(--text); font-weight: 600; position: relative; z-index: 1; }
.ai-tool-cat { font-size: 11px; color: var(--text-3); margin-top: 2px; position: relative; z-index: 1; }

/* ---------- 9. 订阅方案 — 增强高级感 ---------- */
.plan-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--bg-line);
  border-radius: var(--r-lg);
  padding: 28px 24px;
  position: relative;
  transition: var(--transition);
  overflow: hidden;
  animation: fadeUp 0.5s ease-out;
}
.plan-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--c-primary), var(--c-info));
  opacity: 0;
  transition: var(--transition);
}
.plan-card:hover {
  transform: translateY(-6px);
  border-color: var(--c-primary);
  box-shadow: 0 12px 40px var(--c-primary-glow);
}
.plan-card:hover::before { opacity: 1; }
.plan-card.recommended {
  border-color: var(--c-accent);
  box-shadow: 0 8px 32px var(--c-accent-glow);
}
.plan-card.recommended::before {
  opacity: 1;
  background: linear-gradient(90deg, var(--c-accent), var(--c-warn));
}
.plan-card .tag {
  position: absolute;
  top: -12px; left: 24px;
  background: linear-gradient(135deg, var(--c-accent) 0%, var(--c-warn) 100%);
  color: #fff;
  padding: 4px 16px;
  border-radius: var(--r-full);
  font-size: 12px; font-weight: 700;
  box-shadow: 0 2px 12px var(--c-accent-glow);
  z-index: 1;
}
.plan-card h3 { font-size: var(--fs-xl); color: var(--text); margin-bottom: 8px; }
.plan-price {
  font-size: 42px;
  font-weight: 900;
  background: linear-gradient(90deg, var(--c-primary-light) 0%, var(--c-info) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  margin: 8px 0 12px;
  letter-spacing: -0.5px;
  filter: drop-shadow(0 0 12px var(--c-primary-glow));
}
.plan-price small { font-size: 16px; color: var(--text-3); font-weight: 400; }
.plan-feats { list-style: none; margin-bottom: 18px; }
.plan-feats li {
  padding: 7px 0 7px 28px;
  position: relative;
  font-size: 13.5px;
  color: var(--text-2);
  border-bottom: 1px solid var(--bg-line);
  transition: var(--transition);
}
.plan-feats li:last-child { border-bottom: none; }
.plan-feats li:hover { color: var(--text); padding-left: 32px; }
.plan-feats li::before {
  content: '\2713';
  position: absolute; left: 0;
  color: var(--c-primary);
  font-weight: 800;
  font-size: 16px;
  text-shadow: 0 0 8px var(--c-primary-glow);
}

/* ---------- 10. 子女端 / 个人中心列表 ---------- */
.list-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--bg-line);
  transition: var(--transition);
}
.list-item:last-child { border-bottom: none; }
.list-item:hover { padding-left: 8px; }
.list-item-l {
  display: flex; align-items: center; gap: 12px;
  font-size: 14px; color: var(--text);
}
.list-item-icon {
  width: 38px; height: 38px;
  border-radius: var(--r-md);
  background: rgba(16, 185, 129, 0.12);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  color: var(--c-primary-light);
  transition: var(--transition);
  border: 1px solid rgba(16, 185, 129, 0.15);
}
.list-item:hover .list-item-icon {
  background: rgba(16, 185, 129, 0.2);
  box-shadow: 0 0 12px var(--c-primary-glow);
  transform: scale(1.05);
}
.list-item-r { color: var(--text-3); font-size: 13px; transition: var(--transition); }
.list-item:hover .list-item-r { color: var(--c-primary-light); }

/* ---------- 11. 表单 (登录/设置/订阅) ---------- */
.form-grid { display: grid; gap: 14px; }
.form-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--r-md);
  border: 1px solid var(--bg-line);
  transition: var(--transition);
}
.form-row:hover {
  border-color: rgba(16, 185, 129, 0.25);
  background: rgba(16, 185, 129, 0.03);
}
.form-row-lbl { font-size: 13px; color: var(--text-2); }
.form-row-input {
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 14px;
  text-align: right;
  width: 60%;
}
.form-row-input:focus { color: var(--c-primary-light); }
.form-row select.form-row-input { padding-right: 8px; }

/* REV-3d：H14 家庭成员选择（与 flex 按钮行对齐） */
.share-select {
  max-width: 180px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid var(--border, rgba(255,255,255,.15));
  background: rgba(255,255,255,.06);
  color: inherit;
}

/* ---------- 12. 模态框 (确认/详情) — 增强过渡 ---------- */
.modal-mask {
  position: fixed; inset: 0;
  background: var(--bg-overlay);
  backdrop-filter: blur(12px);
  display: none;
  align-items: center; justify-content: center;
  z-index: 200;
}
.modal-mask.show {
  display: flex;
  animation: maskIn 0.25s ease-out;
}
@keyframes maskIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.modal {
  width: 90%; max-width: 460px;
  background: rgba(15, 41, 32, 0.95);
  backdrop-filter: blur(28px) saturate(1.6);
  border: 1px solid var(--bg-line);
  border-radius: var(--r-lg);
  padding: 28px;
  animation: modalIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: var(--shadow-deep);
  position: relative;
  overflow: hidden;
}
.modal::before {
  content: '';
  position: absolute;
  top: 0; left: 10%; right: 10%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--c-primary), var(--c-info), transparent);
  box-shadow: 0 0 12px var(--c-primary-glow);
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(30px) scale(0.9); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.modal-title {
  font-size: var(--fs-xl); font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
}
.modal-body { font-size: 14px; color: var(--text-2); margin-bottom: 22px; line-height: 1.8; }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; }

/* ---------- 13. 个人中心 资料卡 — 增强渐变 ---------- */
.profile-card {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.18) 0%, rgba(56, 189, 248, 0.08) 100%);
  border: 1px solid var(--bg-line);
  border-radius: var(--r-lg);
  padding: 28px 24px;
  display: flex; align-items: center; gap: 18px;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
  animation: fadeUp 0.5s ease-out;
}
.profile-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--c-primary), var(--c-info), transparent);
  opacity: 0.6;
}
.profile-avatar {
  width: 76px; height: 76px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--c-primary) 0%, var(--c-info) 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 32px;
  color: #fff;
  box-shadow: 0 6px 24px var(--c-primary-glow), 0 0 20px var(--c-info-glow);
  position: relative;
  overflow: hidden;
}
.profile-avatar::after {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: linear-gradient(45deg, transparent 40%, rgba(255,255,255,0.2) 50%, transparent 60%);
  animation: logoShine 4s ease-in-out infinite;
}
.profile-info h2 { font-size: var(--fs-xl); color: var(--text); font-weight: 700; margin-bottom: 4px; }
.profile-info p { font-size: 13px; color: var(--text-2); }
.profile-info .badge { margin-right: 6px; }

/* ---------- 14. 移动端适配 ---------- */
@media (max-width: 1023px) {
  .nav-links, .nav-user { display: none; }
  .nav-hb { display: flex; align-items: center; justify-content: center; }
}
@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .hero-title { font-size: var(--fs-3xl); }
  .hero-stat:not(:last-child)::after { display: none; }
}
@media (max-width: 640px) {
  .container { padding: 22px 16px 80px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .nav-inner { padding: 12px 16px; }
  .hero-title { font-size: var(--fs-2xl); }
  .hero-stats { gap: 20px; }
  .login-wrap { padding: 32px 24px; }
  .glass-card, .glass-card-static { padding: 18px; }
  .plan-price { font-size: 34px; }
  .hero-wrap { padding: 36px 16px 28px; }
  .fab-stack { right: 14px; bottom: 70px; }
  .fab { width: 44px; height: 44px; font-size: 18px; }
}

/* ---------- 15. 字号缩放（适老化） ---------- */
.fs-lg, .fs-lg body { font-size: 16px; }
.fs-xl, .fs-xl body { font-size: 18px; }
.fs-lg .page-title { font-size: 40px; }
.fs-xl .page-title { font-size: 44px; }
.fs-lg .hero-title { font-size: 52px; }
.fs-xl .hero-title { font-size: 56px; }

/* ---------- 16. 加载态 + 骨架屏 ---------- */
.spinner {
  display: inline-block;
  width: 20px; height: 20px;
  border: 2px solid rgba(16, 185, 129, 0.3);
  border-top-color: var(--c-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  box-shadow: 0 0 8px var(--c-primary-glow);
}
@keyframes spin { to { transform: rotate(360deg); } }

/* 骨架屏闪烁 */
.skeleton {
  background: linear-gradient(90deg,
    rgba(255,255,255,0.04) 0%,
    rgba(255,255,255,0.08) 50%,
    rgba(255,255,255,0.04) 100%);
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
  border-radius: var(--r-sm);
}
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* ---------- 17. 隐藏 / 显示 工具 ---------- */
.hidden { display: none !important; }
.empty {
  text-align: center;
  padding: 48px 20px;
  color: var(--text-3);
  font-size: 14px;
}
.empty-icon { font-size: 48px; opacity: 0.3; margin-bottom: 12px; }

/* ---------- 18. 入场动画工具类 ---------- */
.fade-up { animation: fadeUp 0.5s ease-out; }
.fade-up-1 { animation: fadeUp 0.5s ease-out 0.1s both; }
.fade-up-2 { animation: fadeUp 0.5s ease-out 0.2s both; }
.fade-up-3 { animation: fadeUp 0.5s ease-out 0.3s both; }
.fade-up-4 { animation: fadeUp 0.5s ease-out 0.4s both; }

/* ---------- 19. 健康状态指示器（family.html 用） ---------- */
.health-dot {
  display: inline-block;
  width: 10px; height: 10px;
  border-radius: 50%;
  margin-right: 6px;
}
.health-dot.good { background: var(--c-primary); box-shadow: 0 0 8px var(--c-primary); }
.health-dot.warn { background: var(--c-warn); box-shadow: 0 0 8px var(--c-warn); }
.health-dot.danger { background: var(--c-danger); box-shadow: 0 0 8px var(--c-danger); animation: pulse 1.2s ease-in-out infinite; }

/* ---------- 20. 统计卡片增强（family/profile 用） ---------- */
.stat-mini {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--bg-line);
  border-radius: var(--r-md);
  padding: 18px 16px;
  text-align: center;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.stat-mini::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--c-primary), transparent);
  opacity: 0;
  transition: var(--transition);
}
.stat-mini:hover {
  border-color: rgba(16, 185, 129, 0.3);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px var(--c-primary-glow);
}
.stat-mini:hover::before { opacity: 1; }
.stat-mini-num {
  font-size: var(--fs-xl);
  font-weight: 800;
  background: linear-gradient(90deg, var(--c-primary-light) 0%, var(--c-info) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat-mini-lbl { font-size: 12px; color: var(--text-3); margin-top: 4px; }

/* ---------- 21. 分隔线 + 装饰元素 ---------- */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--bg-line), transparent);
  margin: 24px 0;
}
.divider-glow {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--c-primary-glow), transparent);
  margin: 24px 0;
}

/* ---------- 22. 内容区 z-index 修正 ---------- */
.site-navbar > * { position: relative; z-index: 2; }
.login-page > * { position: relative; z-index: 2; }

/* ---------- 23. JS 动态内容专用类（CSP 合规：替代内联 style） ---------- */

/* 场景卡片放大版 */
.scene-card-full { padding: 28px 24px; }
.scene-card-icon-lg { width: 72px; height: 72px; font-size: 36px; }
.scene-card-title-lg { font-size: 22px; }
.scene-card-desc-full { font-size: 14px; line-height: 1.8; }
.scene-card-badges { display: flex; gap: 8px; margin-top: 18px; }
.scene-card-actions { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }

/* AI 网格分区间距 */
.ai-grid-section { margin-bottom: 24px; }

/* 支付结果 / 健康日报 / 订阅状态 通用 */
.info-h4 {
  color: var(--c-primary-light);
  margin-bottom: 10px;
  font-size: 16px;
  font-weight: 700;
}
.info-ul {
  list-style: none;
  font-size: 13px;
  line-height: 2;
  color: var(--text-2);
}
.info-p {
  font-size: 13px;
  line-height: 2;
  color: var(--text-2);
}
.info-note {
  margin-top: 10px;
  font-size: 12px;
  color: var(--text-3);
  display: block;
}
.info-highlight {
  color: var(--c-primary-light);
  font-weight: 700;
}
.info-amount {
  color: var(--c-accent);
  font-weight: 700;
}
.info-label {
  color: var(--text);
  font-weight: 600;
}
/* ============================================================
 * V4.1 硬件化模块样式（2026-08-20 追加）
 * T1 设备中心 / T2 告警 / T4 萤石 / T6 健康周报
 * ============================================================ */

/* ---------- 设备中心页 ---------- */
.page-title {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 4px;
}
.page-sub {
  font-size: 13px;
  color: var(--text-2);
  margin-bottom: 22px;
}
.section-h {
  font-size: 17px;
  font-weight: 700;
  margin: 28px 0 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-h-compact {
  margin: 0 0 10px;
}
.section-desc {
  font-size: 12px;
  color: var(--text-2);
  margin-bottom: 14px;
}

/* 告警汇总条 */
.banner {
  border-radius: 14px;
  padding: 16px 18px;
  margin-bottom: 8px;
}
.banner-red {
  border: 1px solid rgba(239, 68, 68, 0.35);
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.12), rgba(239, 68, 68, 0.03));
}
.flex-between-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.flex-gap8-wrap {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.alert-kpi {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--bg-line);
  border-radius: 10px;
  padding: 6px 14px;
  font-size: 12px;
  color: var(--text-2);
}
.alert-kpi b {
  color: var(--text);
  font-size: 18px;
  margin-left: 4px;
}
.alert-kpi.kpi-l1 { border-color: rgba(56, 189, 248, 0.4); }
.alert-kpi.kpi-l1 b { color: var(--c-info); }
.alert-kpi.kpi-l2 { border-color: rgba(245, 158, 11, 0.4); }
.alert-kpi.kpi-l2 b { color: var(--c-warn); }
.alert-kpi.kpi-l3 { border-color: rgba(239, 68, 68, 0.5); }
.alert-kpi.kpi-l3 b { color: var(--c-danger); }

/* 设备卡片 */
.device-card {
  background: var(--bg-card);
  border: 1px solid var(--bg-line);
  border-radius: 14px;
  padding: 16px;
  transition: transform 0.2s, border-color 0.2s;
  position: relative;
}
.device-card:hover {
  transform: translateY(-3px);
  border-color: rgba(16, 185, 129, 0.4);
}
.device-card .device-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.device-card .device-ico {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(16, 185, 129, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}
.device-card .device-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}
.device-card .device-loc {
  font-size: 12px;
  color: var(--text-2);
}
.device-card .device-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-2);
  padding: 3px 0;
}
.device-card .device-row b {
  color: var(--text);
  font-weight: 600;
}
.device-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 4px;
}
.dot-online { background: #22c55e; box-shadow: 0 0 6px rgba(34, 197, 94, 0.6); }
.dot-offline { background: #6b7280; }
.badge {
  display: inline-block;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 20px;
  font-weight: 600;
}
.badge-lv1 { background: rgba(56, 189, 248, 0.15); color: var(--c-info); }
.badge-lv2 { background: rgba(245, 158, 11, 0.15); color: var(--c-warn); }
.badge-lv3 { background: rgba(239, 68, 68, 0.2); color: #f87171; }
.badge-info { background: rgba(148, 163, 184, 0.15); color: #cbd5e1; }

/* 事件流 */
.event-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 4px;
  border-bottom: 1px solid var(--bg-line);
  font-size: 13px;
}
.event-item:last-child { border-bottom: none; }
.event-ico { font-size: 16px; line-height: 1.4; }
.event-body { flex: 1; }
.event-msg { color: var(--text); line-height: 1.5; }
.event-time { font-size: 11px; color: var(--text-3); margin-top: 2px; }
.event-tag {
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 10px;
  background: rgba(148, 163, 184, 0.12);
  color: var(--text-2);
  margin-left: 6px;
}

/* 告警卡片 */
.alert-card {
  border: 1px solid var(--bg-line);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 8px;
  background: rgba(255, 255, 255, 0.03);
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.alert-card.alert-l3 {
  border-color: rgba(239, 68, 68, 0.4);
  background: rgba(239, 68, 68, 0.06);
}
.alert-card .alert-body { flex: 1; min-width: 200px; }
.alert-card .alert-title { font-size: 13px; color: var(--text); font-weight: 600; }
.alert-card .alert-meta { font-size: 11px; color: var(--text-2); margin-top: 3px; }
.alert-status {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 10px;
  background: rgba(245, 158, 11, 0.15);
  color: var(--c-warn);
}
.alert-status.st-resolved {
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
}
.alert-status.st-confirmed {
  background: rgba(56, 189, 248, 0.15);
  color: var(--c-info);
}
.channel-chip {
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 8px;
  background: rgba(16, 185, 129, 0.12);
  color: var(--c-primary-light);
  margin-right: 4px;
}

/* 规则行 */
.rule-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 2px;
  border-bottom: 1px solid var(--bg-line);
  font-size: 13px;
  flex-wrap: wrap;
}
.rule-row:last-child { border-bottom: none; }
.rule-name { font-weight: 600; color: var(--text); min-width: 120px; }
.rule-desc { color: var(--text-2); font-size: 12px; flex: 1; min-width: 160px; }
.switch {
  position: relative;
  width: 40px;
  height: 22px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
  flex-shrink: 0;
}
.switch::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  background: #fff;
  border-radius: 50%;
  transition: left 0.2s;
}
.switch.on {
  background: var(--c-primary);
}
.switch.on::after { left: 21px; }

/* 周报 */
.report-card {
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: 14px;
  padding: 16px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.08), rgba(16, 185, 129, 0.02));
}
.report-card .report-title { font-size: 15px; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.report-card .report-summary { font-size: 13px; line-height: 1.8; color: var(--text-2); margin-bottom: 10px; }
.report-card .report-block { margin-top: 10px; }
.report-card .report-block h4 { font-size: 13px; color: var(--c-primary-light); margin-bottom: 4px; }
.report-card .report-block li { font-size: 12px; color: var(--text-2); line-height: 1.8; margin-left: 16px; }
.report-badge {
  display: inline-block;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 10px;
  background: rgba(167, 139, 250, 0.18);
  color: var(--c-purple);
  margin-left: 6px;
}

/* 子女端 V4.1 面板 */
.family-device-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 8px;
  margin-top: 8px;
}
.family-device-item {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--bg-line);
  border-radius: 10px;
  padding: 10px;
  font-size: 12px;
}
.family-device-item .fd-name { font-weight: 600; color: var(--text); margin-bottom: 4px; }
.family-device-item .fd-status { font-size: 11px; color: var(--text-2); }
.family-event-stream {
  max-height: 240px;
  overflow-y: auto;
  margin-top: 8px;
}
.family-alert-panel .alert-card { margin-top: 8px; }
.btn-xs {
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 8px;
}
.empty-tip {
  font-size: 12px;
  color: var(--text-3);
  text-align: center;
  padding: 18px 0;
}
.snapshot-preview {
  max-width: 100%;
  border-radius: 10px;
  border: 1px solid var(--bg-line);
  margin-top: 8px;
}

/* ---------- 响应式 ---------- */
@media (max-width: 768px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .flex-between-wrap { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 480px) {
  .grid-4 { grid-template-columns: 1fr; }
  .rule-name { min-width: 100%; }
}

/* ---------- T5 隐私合规文档 ---------- */
.legal-container {
  max-width: 860px;
}
.legal-section {
  margin-bottom: 14px;
  padding: 20px;
}
.legal-body {
  font-size: 13px;
  line-height: 2;
  color: var(--text-2);
}
.legal-body p { margin-bottom: 8px; }
.legal-body ul { list-style: none; }
.legal-body li {
  padding-left: 14px;
  position: relative;
  margin-bottom: 4px;
}
.legal-body li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--c-primary-light);
}
.legal-body b { color: var(--text); }
.legal-note {
  font-size: 12px;
  color: var(--text-3);
  margin-top: 8px;
}
.legal-agree-box {
  margin-top: 18px;
  padding: 18px;
  text-align: center;
  border: 1px solid rgba(16, 185, 129, 0.35);
}
.legal-agree-tip {
  font-size: 13px;
  color: var(--text);
  margin-bottom: 12px;
  font-weight: 600;
}

.info-error {
  color: var(--text-3);
}
.report-card-bg {
  background: rgba(16, 185, 129, 0.08);
}

/* code 标签美化 */
code {
  background: rgba(16, 185, 129, 0.1);
  color: var(--c-primary-light);
  padding: 2px 8px;
  border-radius: var(--r-sm);
  font-size: 12px;
  border: 1px solid rgba(16, 185, 129, 0.2);
}


/* ---------- CSP 合规工具类（替代内联 style） ---------- */
html { background: var(--bg-deep); min-height: 100%; }

.banner { margin-bottom: 24px; padding: 24px; }
.banner-green { background: linear-gradient(135deg, rgba(16,185,129,0.15) 0%, rgba(56,189,248,0.08) 100%); }
.banner-green-soft { background: linear-gradient(135deg, rgba(16,185,129,0.1) 0%, rgba(56,189,248,0.05) 100%); }
.banner-blue { background: linear-gradient(135deg, rgba(56,189,248,0.12) 0%, rgba(16,185,129,0.05) 100%); }
.banner-orange { background: linear-gradient(135deg, rgba(251,146,60,0.12) 0%, rgba(245,158,11,0.05) 100%); }

.notice-box { margin-top: 24px; font-size: 13px; color: var(--text-2); line-height: 1.8; }
.notice-box-accent { margin-top: 24px; border-left: 3px solid var(--c-accent); font-size: 13px; color: var(--text-2); line-height: 1.9; padding-left: 16px; }

.flex-between-wrap { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.flex-gap8 { display: flex; gap: 8px; }
.flex-gap8-wrap { display: flex; gap: 8px; flex-wrap: wrap; }
.flex-gap10 { display: flex; gap: 10px; }

.title-xl { font-size: 22px; color: var(--text); font-weight: 700; }
.title-lg { font-size: 18px; color: var(--text); font-weight: 700; }
.title-md { font-size: 16px; color: var(--text); font-weight: 700; margin-bottom: 6px; }
.card-title { font-size: 16px; color: var(--text); font-weight: 700; margin-bottom: 4px; }
.section-title { font-size: 16px; color: var(--text); margin-bottom: 10px; }
.section-desc { color: var(--text-2); font-size: 14px; margin-bottom: 16px; }
.text-sm-muted { font-size: 13px; color: var(--text-2); }
.text-sm-wide { font-size: 13px; color: var(--text-2); line-height: 1.8; }
.text-sm-mt4 { font-size: 13px; color: var(--text-2); margin-top: 4px; }
.text-xs-dim { font-size: 12px; color: var(--text-3); margin-top: 6px; }
.value-primary { font-size: 20px; color: var(--c-primary-light); font-weight: 700; }
.value-accent { font-size: 16px; color: var(--c-accent); font-weight: 700; }
.accent-text { color: var(--c-accent); }

.text-center { text-align: center; }
.icon-32 { font-size: 32px; margin-bottom: 8px; }
.list-none { list-style: none; }
.hidden { display: none !important; }
.mt-0 { margin-top: 0; }
.mt-4 { margin-top: 4px; }
.mt-6 { margin-top: 6px; }
.mt-8 { margin-top: 8px; }
.mt-10 { margin-top: 10px; }
.mt-16 { margin-top: 16px; }
.mt-18 { margin-top: 18px; }
.mt-24 { margin-top: 24px; }
.mb-24 { margin-bottom: 24px; }

.section-h-compact { font-size: 18px; margin-top: 0; }

/* remove text-decoration on cards/fabs */
a.glass-card, a.fab { text-decoration: none; }

.btn-logout { min-width: 200px; color: var(--c-danger) !important; border-color: rgba(239,68,68,0.4) !important; }

.gap-bottom { margin-bottom: 6px; }

.stream-head {
  font-size: 13px;
  color: #8a93a6;
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.stream-head b { color: #00c2ff; font-size: 15px; }

/* ===== V4.3 健康检测 ===== */
.vitals-ico { font-size: 34px; line-height: 1.2; margin-bottom: 8px; }
.vitals-val { font-size: 26px; font-weight: 800; color: var(--text); margin: 4px 0 6px; letter-spacing: .5px; }
.vitals-abnormal { border-color: rgba(239,68,68,0.5) !important; }
.vitals-abnormal .vitals-val { color: #f87171; }
.trend-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.trend-tab {
  padding: 8px 16px; border-radius: 12px; border: 1px solid rgba(148,163,184,0.25);
  background: rgba(148,163,184,0.08); color: #cbd5e1; font-size: 15px; cursor: pointer; transition: all .2s;
}
.trend-tab:hover { border-color: rgba(56,189,248,0.5); color: #fff; }
.trend-tab.active { background: rgba(56,189,248,0.15); border-color: rgba(56,189,248,0.55); color: #38bdf8; }
.trend-chart { background: rgba(15,23,42,0.35); border-radius: 14px; padding: 14px 10px 8px; min-height: 220px; }
.trend-chart svg, .trend-svg { display: block; width: 100%; height: auto; }
.ai-reply {
  font-size: 17px; line-height: 1.9; color: #e2e8f0; white-space: pre-wrap;
  background: rgba(56,189,248,0.07); border: 1px solid rgba(56,189,248,0.22);
  border-radius: 14px; padding: 18px 20px; margin-bottom: 12px;
}
.form-input {
  width: 100%; margin: 6px 0 12px; padding: 11px 14px; font-size: 16px;
  background: rgba(15,23,42,0.55); border: 1px solid rgba(148,163,184,0.3);
  border-radius: 10px; color: var(--text); outline: none; transition: border-color .2s;
}
.form-input:focus { border-color: rgba(56,189,248,0.6); }
.mb24 { margin-bottom: 24px; }
.mt14 { margin-top: 14px; }
.hero-badge {
  display: inline-block; vertical-align: middle; margin-left: 6px; padding: 2px 10px;
  font-size: 13px; font-weight: 700; color: #0f172a; background: linear-gradient(135deg,#38bdf8,#a78bfa);
  border-radius: 999px;
}
@media (max-width: 768px) {
  .vitals-val { font-size: 22px; }
  .ai-reply { font-size: 16px; }
}

/* ============================================================
 * V4.4 健康检测 AI 设备化升级 — 新增样式
 * ============================================================ */
/* 数据来源图例（health 页） */
.legend-row {
  display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center;
  margin: 6px 0 14px; padding: 8px 14px;
  background: rgba(15,23,42,0.4); border: 1px solid rgba(148,163,184,0.18);
  border-radius: 12px; font-size: 14px; color: #cbd5e1;
}
.legend-item { display: inline-flex; align-items: center; gap: 6px; }
.legend-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; }
.legend-dot-manual { background: #38bdf8; }
.legend-dot-device { background: #34d399; border-radius: 2px; }
.legend-dot-mock { background: #fbbf24; }

/* 健康卡片来源徽标 */
.vitals-src {
  display: inline-block; margin-top: 8px; padding: 2px 10px;
  font-size: 12px; font-weight: 600; border-radius: 999px;
}
.src-manual { color: #38bdf8; background: rgba(56,189,248,0.12); }
.src-device { color: #34d399; background: rgba(52,211,153,0.12); }
.src-mock { color: #fbbf24; background: rgba(251,191,36,0.12); }

/* F3c：演示数据角标（V4.5） */
.demo-badge {
  grid-column: 1 / -1;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px; margin-bottom: 6px;
  font-size: 13px; font-weight: 600;
  color: #fbbf24; background: rgba(251,191,36,0.12);
  border: 1px solid rgba(251,191,36,0.35);
  border-radius: 999px;
}
/* F3b：空态引导卡（V4.5） */
.vitals-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 32px 24px;
}
.vitals-empty .btn { margin-top: 14px; }


/* 设备接入中心（hub 页） */
.adapter-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
@media (max-width: 900px) { .adapter-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .adapter-cards { grid-template-columns: 1fr; } }
.adapter-card {
  background: rgba(15,23,42,0.5); border: 1px solid rgba(148,163,184,0.22);
  border-radius: 14px; padding: 16px;
}
.adapter-card .ad-name { font-size: 17px; font-weight: 700; margin-bottom: 6px; }
.adapter-card .ad-desc { font-size: 13px; color: #94a3b8; margin-bottom: 8px; }
.adapter-card .ad-badge {
  display: inline-block; padding: 2px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 700;
}
.ad-ok { color: #34d399; background: rgba(52,211,153,0.12); }
.ad-off { color: #94a3b8; background: rgba(148,163,184,0.12); }
.ad-pending { color: #fbbf24; background: rgba(251,191,36,0.12); }

/* 设备台账表格（hub 页） */
.hub-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.hub-table th, .hub-table td {
  padding: 9px 10px; text-align: left; border-bottom: 1px solid rgba(148,163,184,0.14);
}
.hub-table th { color: #94a3b8; font-weight: 600; font-size: 13px; }
.hub-table .st-online { color: #34d399; }
.hub-table .st-offline { color: #f87171; }
.hub-badge { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 12px; }
.hub-badge.mock { color: #fbbf24; background: rgba(251,191,36,0.12); }
.hub-badge.real { color: #34d399; background: rgba(52,211,153,0.12); }

/* 面板统计 */
.stat-cards { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
@media (max-width: 900px) { .stat-cards { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 520px) { .stat-cards { grid-template-columns: repeat(2, 1fr); } }
.stat-card {
  background: rgba(15,23,42,0.5); border: 1px solid rgba(148,163,184,0.2);
  border-radius: 14px; padding: 14px; text-align: center;
}
.stat-card .st-num { font-size: 26px; font-weight: 800; color: #38bdf8; }
.stat-card .st-label { font-size: 13px; color: #94a3b8; margin-top: 4px; }

/* 运维告警 */
.alert-item {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 10px 14px; margin-bottom: 8px; border-radius: 10px;
  background: rgba(248,113,113,0.08); border: 1px solid rgba(248,113,113,0.25);
  font-size: 14px; color: #fecaca;
}
.alert-item .al-lv {
  flex-shrink: 0; padding: 1px 8px; border-radius: 6px;
  background: rgba(248,113,113,0.2); font-size: 12px; font-weight: 700;
}

/* 规则清单折叠 */
details.rule-block {
  background: rgba(15,23,42,0.45); border: 1px solid rgba(148,163,184,0.18);
  border-radius: 12px; padding: 12px 16px; margin-bottom: 10px;
}
details.rule-block summary {
  font-size: 15px; font-weight: 700; cursor: pointer; color: #e2e8f0;
}
.rule-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 16px; margin-top: 10px; }
@media (max-width: 768px) { .rule-grid { grid-template-columns: 1fr; } }
.rule-row {
  padding: 8px 12px; border-radius: 8px; font-size: 13px;
  background: rgba(15,23,42,0.5); border: 1px solid rgba(148,163,184,0.14);
}
.rule-row .rl-id { font-weight: 700; color: #38bdf8; margin-right: 6px; }
.rule-row .rl-lv { float: right; font-size: 12px; font-weight: 700; }
.lv-L2 { color: #fbbf24; }
.lv-L3 { color: #f87171; }
.lv-PASS { color: #34d399; }
