/* =====================================================
   Aurora Design System — 现代 · 简洁 · 高级感
   全新重构 (保留组件类名以兼容既有页面)
   ===================================================== */

/* ---------- 设计令牌 (纯白科技主题) ---------- */
:root {
  /* 品牌主色：科技蓝 → 青 */
  --brand-1: #2563eb;
  --brand-2: #06b6d4;
  --brand-grad: linear-gradient(135deg, #2563eb 0%, #06b6d4 100%);
  --brand-grad-soft: linear-gradient(135deg, rgba(37,99,235,.1) 0%, rgba(6,182,212,.1) 100%);

  --md-sys-color-primary: #2563eb;
  --md-sys-color-on-primary: #ffffff;
  --md-sys-color-primary-container: #dbeafe;
  --md-sys-color-on-primary-container: #1e3a8a;

  --md-sys-color-secondary: #64748b;
  --md-sys-color-on-secondary: #ffffff;
  --md-sys-color-secondary-container: #f1f5f9;
  --md-sys-color-on-secondary-container: #1e293b;

  --md-sys-color-tertiary: #06b6d4;
  --md-sys-color-on-tertiary: #ffffff;
  --md-sys-color-tertiary-container: #cffafe;
  --md-sys-color-on-tertiary-container: #155e75;

  --md-sys-color-error: #ef4444;
  --md-sys-color-on-error: #ffffff;
  --md-sys-color-error-container: #fee2e2;
  --md-sys-color-on-error-container: #7f1d1d;

  --md-sys-color-success: #10b981;
  --md-sys-color-success-container: #d1fae5;
  --md-sys-color-on-success-container: #064e3b;

  --md-sys-color-warning: #f59e0b;
  --md-sys-color-warning-container: #fef3c7;
  --md-sys-color-on-warning-container: #78350f;

  /* 纯白表面 */
  --md-sys-color-surface: #ffffff;
  --md-sys-color-on-surface: #0f172a;
  --md-sys-color-surface-variant: #f1f5f9;
  --md-sys-color-on-surface-variant: #64748b;
  --md-sys-color-surface-container: #ffffff;
  --md-sys-color-surface-container-high: #ffffff;
  --md-sys-color-surface-container-low: #f8fafc;
  --md-sys-color-surface-container-lowest: #ffffff;
  --md-sys-color-outline: #94a3b8;
  --md-sys-color-outline-variant: #e2e8f0;
  --md-sys-color-inverse-surface: #0f172a;
  --md-sys-color-inverse-on-surface: #f8fafc;
  --md-sys-color-inverse-primary: #93c5fd;
  --md-sys-color-shadow: #0f172a;
  --md-sys-color-scrim: #0f172a;

  /* 柔和分层阴影 */
  --md-elevation-1: 0 1px 2px rgba(15,23,42,.04), 0 2px 8px rgba(15,23,42,.05);
  --md-elevation-2: 0 4px 16px rgba(15,23,42,.08), 0 2px 4px rgba(15,23,42,.04);
  --md-elevation-3: 0 16px 40px rgba(15,23,42,.12), 0 4px 12px rgba(15,23,42,.06);
  --md-elevation-brand: 0 8px 24px rgba(37,99,235,.3);

  --md-radius-small: 10px;
  --md-radius-medium: 16px;
  --md-radius-large: 22px;
  --md-radius-xl: 28px;
  --md-state-hover: rgba(37,99,235,.06);
  --md-state-press: rgba(37,99,235,.12);
}

/* ---------- 暗色模式 ---------- */
[data-theme="dark"] {
  --brand-grad: linear-gradient(135deg, #3b82f6 0%, #22d3ee 100%);
  --brand-grad-soft: linear-gradient(135deg, rgba(59,130,246,.16) 0%, rgba(34,211,238,.16) 100%);

  --md-sys-color-primary: #60a5fa;
  --md-sys-color-on-primary: #1e3a8a;
  --md-sys-color-primary-container: #1e3a8a;
  --md-sys-color-on-primary-container: #dbeafe;

  --md-sys-color-secondary: #94a3b8;
  --md-sys-color-on-secondary: #0f172a;
  --md-sys-color-secondary-container: #1e293b;
  --md-sys-color-on-secondary-container: #e2e8f0;

  --md-sys-color-tertiary: #22d3ee;
  --md-sys-color-on-tertiary: #155e75;
  --md-sys-color-tertiary-container: #155e75;
  --md-sys-color-on-tertiary-container: #cffafe;

  --md-sys-color-error: #f87171;
  --md-sys-color-on-error: #7f1d1d;
  --md-sys-color-error-container: #450a0a;
  --md-sys-color-on-error-container: #fecaca;

  --md-sys-color-success: #34d399;
  --md-sys-color-success-container: #064e3b;
  --md-sys-color-on-success-container: #d1fae5;

  --md-sys-color-warning: #fbbf24;
  --md-sys-color-warning-container: #78350f;
  --md-sys-color-on-warning-container: #fef3c7;

  --md-sys-color-surface: #0b1120;
  --md-sys-color-on-surface: #f1f5f9;
  --md-sys-color-surface-variant: #1e293b;
  --md-sys-color-on-surface-variant: #94a3b8;
  --md-sys-color-surface-container: #111a2e;
  --md-sys-color-surface-container-high: #16213a;
  --md-sys-color-surface-container-low: #0e1627;
  --md-sys-color-surface-container-lowest: #0b1120;
  --md-sys-color-outline: #475569;
  --md-sys-color-outline-variant: #1e293b;
  --md-sys-color-inverse-surface: #f1f5f9;
  --md-sys-color-inverse-on-surface: #0f172a;
  --md-sys-color-inverse-primary: #6366f1;

  --md-elevation-1: 0 1px 2px rgba(0,0,0,.4), 0 2px 8px rgba(0,0,0,.3);
  --md-elevation-2: 0 4px 16px rgba(0,0,0,.45), 0 2px 4px rgba(0,0,0,.3);
  --md-elevation-3: 0 16px 40px rgba(0,0,0,.55), 0 4px 12px rgba(0,0,0,.35);
  --md-elevation-brand: 0 8px 24px rgba(59,130,246,.35);

  --md-state-hover: rgba(96,165,250,.1);
  --md-state-press: rgba(96,165,250,.16);
}

/* ---------- 基础重置 ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", "Roboto", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  font-size: 14px;
  line-height: 1.65;
  color: var(--md-sys-color-on-surface);
  background: var(--md-sys-color-surface);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: var(--md-sys-color-primary); text-decoration: none; transition: color .15s; }
a:hover { color: var(--brand-2); }
img { max-width: 100%; display: block; }
h1,h2,h3,h4,h5,h6 { margin: 0; font-weight: 650; letter-spacing: -0.015em; }
p { margin: 0; }
button, input, select, textarea { font-family: inherit; font-size: inherit; }
::selection { background: rgba(99,102,241,.25); }

/* 排版 */
.m3-display { font-size: 46px; line-height: 1.15; font-weight: 700; letter-spacing: -0.03em; }
.m3-headline { font-size: 28px; line-height: 1.3; font-weight: 700; letter-spacing: -0.02em; }
.m3-title { font-size: 20px; line-height: 1.4; font-weight: 650; }
.m3-body-lg { font-size: 16px; }
.m3-label { font-size: 12px; letter-spacing: .5px; font-weight: 600; text-transform: uppercase; }

/* 渐变文字 */
.grad-text {
  background: var(--brand-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ---------- 图标字体(本地化) ---------- */
@font-face {
  font-family: 'Material Symbols Rounded';
  font-style: normal;
  font-weight: 100 700;
  font-display: block;
  src: url('../fonts/MaterialSymbolsRounded.woff2') format('woff2');
}
.material-symbols-rounded {
  font-family: 'Material Symbols Rounded';
  font-weight: normal;
  font-style: normal;
  font-size: 24px;
  display: inline-block;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  vertical-align: middle;
  font-variation-settings: 'FILL' 0, 'wght' 500, 'GRAD' 0, 'opsz' 24;
  -webkit-font-feature-settings: 'liga';
  -webkit-font-smoothing: antialiased;
}
.material-symbols-rounded.fill { font-variation-settings: 'FILL' 1, 'wght' 500, 'GRAD' 0, 'opsz' 24; }

/* ---------- 按钮 ---------- */
.m3-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  height: 44px;
  padding: 0 22px;
  border-radius: 14px;
  transition: transform .15s, box-shadow .2s, background .2s, filter .2s;
  white-space: nowrap;
  text-decoration: none;
  color: var(--md-sys-color-on-surface);
  background: transparent;
}
.m3-btn:hover { text-decoration: none; }
.m3-btn .material-symbols-rounded { font-size: 19px; }
.m3-btn:active { transform: scale(.97); }
.m3-btn:disabled { opacity: .55; cursor: not-allowed; }

.m3-btn-filled {
  background: var(--brand-grad);
  color: #fff;
  box-shadow: var(--md-elevation-brand);
}
.m3-btn-filled:hover { filter: brightness(1.06); box-shadow: 0 10px 28px rgba(99,102,241,.45); color: #fff; }

.m3-btn-tonal {
  background: var(--md-sys-color-primary-container);
  color: var(--md-sys-color-on-primary-container);
}
.m3-btn-tonal:hover { filter: brightness(.97); }

.m3-btn-outlined {
  border: 1.5px solid var(--md-sys-color-outline-variant);
  color: var(--md-sys-color-primary);
  background: var(--md-sys-color-surface-container-lowest);
}
.m3-btn-outlined:hover { border-color: var(--md-sys-color-primary); background: var(--md-state-hover); }

.m3-btn-text { color: var(--md-sys-color-primary); padding: 0 14px; }
.m3-btn-text:hover { background: var(--md-state-hover); }
.m3-btn-error { background: var(--md-sys-color-error); color: var(--md-sys-color-on-error); }
.m3-btn-block { width: 100%; }
.m3-btn-sm { height: 34px; padding: 0 14px; font-size: 13px; border-radius: 10px; }
.m3-btn-lg { height: 52px; padding: 0 30px; font-size: 16px; border-radius: 16px; }

.m3-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  border: none;
  background: transparent;
  color: var(--md-sys-color-on-surface-variant);
  cursor: pointer;
  transition: background .2s, color .2s;
  flex: none;
  text-decoration: none;
}
.m3-icon-btn:hover { background: var(--md-state-hover); color: var(--md-sys-color-primary); text-decoration: none; }
.m3-icon-btn .material-symbols-rounded { font-size: 22px; }

/* ---------- 文本输入 ---------- */
.m3-text-field {
  width: 100%;
  height: 50px;
  padding: 0 16px;
  border: 1.5px solid var(--md-sys-color-outline-variant);
  border-radius: 14px;
  background: var(--md-sys-color-surface-container-lowest);
  color: var(--md-sys-color-on-surface);
  transition: border-color .2s, box-shadow .2s;
}
.m3-text-field:focus {
  outline: none;
  border-color: var(--md-sys-color-primary);
  box-shadow: 0 0 0 4px rgba(99,102,241,.14);
}
textarea.m3-text-field {
  height: auto;
  padding: 13px 16px;
  resize: vertical;
  min-height: 100px;
}
select.m3-text-field { appearance: auto; }
.m3-text-field::placeholder { color: var(--md-sys-color-outline); }

/* 输入框组 */
.m3-field { margin-bottom: 18px; }
.m3-field > label {
  display: block;
  margin-bottom: 7px;
  font-size: 13px;
  font-weight: 600;
  color: var(--md-sys-color-on-surface);
}
.m3-field > label .req { color: var(--md-sys-color-error); }
.m3-field .hint { font-size: 12px; color: var(--md-sys-color-outline); margin-top: 5px; }
.m3-row { display: flex; gap: 16px; flex-wrap: wrap; }
.m3-row > .m3-field { flex: 1; min-width: 200px; }

/* ---------- 卡片 ---------- */
.m3-card {
  background: var(--md-sys-color-surface-container);
  border-radius: var(--md-radius-medium);
  padding: 20px;
}
.m3-card-filled { background: var(--md-sys-color-surface-container-low); }
.m3-card-outlined {
  background: var(--md-sys-color-surface-container);
  border: 1px solid var(--md-sys-color-outline-variant);
}
.m3-elevation-1 { box-shadow: var(--md-elevation-1); }
.m3-elevation-2 { box-shadow: var(--md-elevation-2); }
.m3-elevation-3 { box-shadow: var(--md-elevation-3); }

/* ---------- 徽章/芯片 ---------- */
.m3-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 13px;
  border-radius: 10px;
  background: var(--md-sys-color-surface-variant);
  color: var(--md-sys-color-on-surface-variant);
  font-size: 13px;
  font-weight: 600;
}
.m3-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 650;
  line-height: 20px;
}
.badge-primary { background: var(--md-sys-color-primary-container); color: var(--md-sys-color-on-primary-container); }
.badge-success { background: var(--md-sys-color-success-container); color: var(--md-sys-color-on-success-container); }
.badge-error { background: var(--md-sys-color-error-container); color: var(--md-sys-color-on-error-container); }
.badge-warning { background: var(--md-sys-color-warning-container); color: var(--md-sys-color-on-warning-container); }
.badge-neutral { background: var(--md-sys-color-surface-variant); color: var(--md-sys-color-on-surface-variant); }

/* 状态点徽章 */
.m3-badge .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* ---------- 顶部应用栏 ---------- */
.m3-topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 68px;
  padding: 0 20px;
  background: color-mix(in srgb, var(--md-sys-color-surface) 82%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--md-sys-color-outline-variant);
}
.m3-topbar .m3-topbar-title { font-size: 19px; font-weight: 700; flex: 1; letter-spacing: -0.01em; }
.m3-topbar .m3-logo {
  width: 40px; height: 40px;
  border-radius: 13px;
  background: var(--brand-grad);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  flex: none;
  box-shadow: var(--md-elevation-brand);
}

/* ---------- 导航栏(底部) ---------- */
.m3-navbar {
  position: fixed;
  bottom: 0;
  left: 0; right: 0;
  z-index: 30;
  display: flex;
  height: 72px;
  background: var(--md-sys-color-surface-container);
  border-top: 1px solid var(--md-sys-color-outline-variant);
}
.m3-navbar a {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: var(--md-sys-color-on-surface-variant);
  font-size: 12px;
  text-decoration: none;
}
.m3-navbar a:hover { text-decoration: none; }
.m3-navbar a.active { color: var(--md-sys-color-primary); }
.m3-navbar a.active .material-symbols-rounded { font-variation-settings: 'FILL' 1, 'wght' 500, 'GRAD' 0, 'opsz' 24; }
.m3-navbar a .material-symbols-rounded { font-size: 24px; }

/* ---------- 侧边导航(桌面后台) ---------- */
.m3-drawer {
  width: 260px;
  background: var(--md-sys-color-surface-container);
  height: 100vh;
  position: fixed;
  left: 0; top: 0;
  z-index: 40;
  padding: 20px 14px;
  overflow-y: auto;
  transition: transform .25s;
  border-right: 1px solid var(--md-sys-color-outline-variant);
}
.m3-drawer .m3-nav-item {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 12px 16px;
  border-radius: 13px;
  color: var(--md-sys-color-on-surface-variant);
  margin-bottom: 4px;
  font-weight: 550;
  transition: background .18s, color .18s;
}
.m3-drawer .m3-nav-item:hover { background: var(--md-state-hover); text-decoration: none; color: var(--md-sys-color-primary); }
.m3-drawer .m3-nav-item.active {
  background: var(--brand-grad);
  color: #fff;
  box-shadow: var(--md-elevation-brand);
}
.m3-drawer .m3-nav-item.active .material-symbols-rounded { font-variation-settings: 'FILL' 1, 'wght' 500, 'GRAD' 0, 'opsz' 24; }

/* ---------- 表格 ---------- */
.m3-table-wrap { overflow-x: auto; border-radius: var(--md-radius-medium); border: 1px solid var(--md-sys-color-outline-variant); background: var(--md-sys-color-surface-container); }
.m3-table { width: 100%; border-collapse: collapse; min-width: 640px; }
.m3-table th {
  text-align: left;
  padding: 14px 18px;
  font-size: 12px;
  color: var(--md-sys-color-on-surface-variant);
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: .4px;
  border-bottom: 1px solid var(--md-sys-color-outline-variant);
  white-space: nowrap;
  background: var(--md-sys-color-surface-container-low);
}
.m3-table td {
  padding: 15px 18px;
  border-bottom: 1px solid var(--md-sys-color-outline-variant);
  vertical-align: middle;
}
.m3-table tr:last-child td { border-bottom: none; }
.m3-table tbody tr { transition: background .15s; }
.m3-table tbody tr:hover { background: var(--md-state-hover); }

/* ---------- 对话框 ---------- */
.m3-overlay {
  position: fixed;
  inset: 0;
  background: var(--md-sys-color-scrim);
  opacity: .55;
  z-index: 90;
  display: none;
  backdrop-filter: blur(2px);
}
.m3-overlay.show { display: block; }
.m3-dialog {
  position: fixed;
  z-index: 100;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(480px, calc(100% - 32px));
  background: var(--md-sys-color-surface-container);
  border-radius: var(--md-radius-large);
  padding: 26px;
  box-shadow: var(--md-elevation-3);
  display: none;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
}
.m3-dialog.show { display: block; animation: dialogIn .22s ease; }
@keyframes dialogIn { from { opacity: 0; transform: translate(-50%, -48%) scale(.97); } to { opacity: 1; transform: translate(-50%, -50%) scale(1); } }
.m3-dialog h2 { font-size: 21px; margin-bottom: 8px; }
.m3-dialog .m3-dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 24px;
}

/* ---------- 提示条 ---------- */
.m3-snackbar {
  position: fixed;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%) translateY(120px);
  background: var(--md-sys-color-inverse-surface);
  color: var(--md-sys-color-inverse-on-surface);
  padding: 14px 22px;
  border-radius: 14px;
  box-shadow: var(--md-elevation-3);
  z-index: 120;
  transition: transform .3s cubic-bezier(.2,.8,.3,1);
  max-width: calc(100% - 32px);
  font-weight: 550;
}
.m3-snackbar.show { transform: translateX(-50%) translateY(0); }

/* ---------- 工具类 ---------- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 32px; }
.mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; }
.flex { display: flex; } .flex-center { display: flex; align-items: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; } .gap-1 { gap: 8px; } .gap-2 { gap: 16px; }
.text-center { text-align: center; }
.text-muted { color: var(--md-sys-color-on-surface-variant); }
.text-error { color: var(--md-sys-color-error); }
.text-success { color: var(--md-sys-color-success); }
.hidden { display: none !important; }
.w-full { width: 100%; }

/* 空状态 */
.m3-empty { text-align: center; padding: 52px 16px; color: var(--md-sys-color-on-surface-variant); }
.m3-empty .material-symbols-rounded { font-size: 56px; color: var(--md-sys-color-outline); margin-bottom: 14px; }

/* 加载动画 */
.m3-spinner {
  width: 26px; height: 26px;
  border: 3px solid var(--md-sys-color-surface-variant);
  border-top-color: var(--md-sys-color-primary);
  border-radius: 50%;
  animation: m3spin .8s linear infinite;
}
@keyframes m3spin { to { transform: rotate(360deg); } }

/* 渐入动画 */
.fade-up { animation: fadeUp .5s ease both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }

/* ---------- 灯箱(前后台共享) ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(8,10,18,.94);
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  backdrop-filter: blur(6px);
}
.lightbox.show { display: flex; }
.lightbox img {
  max-width: 92%; max-height: 82vh; border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
  opacity: 0; transition: opacity .25s ease;
}
.lightbox img.loaded { opacity: 1; }
.lightbox.loading::after {
  content: '';
  position: absolute;
  left: 50%; top: 50%;
  width: 42px; height: 42px;
  margin: -21px 0 0 -21px;
  border: 3px solid rgba(255,255,255,.25);
  border-top-color: #fff;
  border-radius: 50%;
  animation: lbSpin .8s linear infinite;
}
@keyframes lbSpin { to { transform: rotate(360deg); } }
.lightbox .lb-close { position: absolute; top: 18px; right: 18px; color: #fff; }
.lightbox .lb-caption { color: rgba(255,255,255,.85); margin-top: 14px; font-size: 13px; font-weight: 600; }

/* =====================================================
   科技元素工具类
   ===================================================== */

/* 科技网格背景 */
.tech-grid {
  position: relative;
}
.tech-grid::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(37,99,235,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37,99,235,.06) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: radial-gradient(ellipse 75% 70% at 50% 30%, #000 20%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 75% 70% at 50% 30%, #000 20%, transparent 80%);
  pointer-events: none;
}
[data-theme="dark"] .tech-grid::before {
  background-image:
    linear-gradient(rgba(96,165,250,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(96,165,250,.08) 1px, transparent 1px);
}

/* 发光边框卡片 */
.glow-border {
  position: relative;
  border: 1px solid transparent;
  background:
    linear-gradient(var(--md-sys-color-surface-container), var(--md-sys-color-surface-container)) padding-box,
    linear-gradient(135deg, rgba(37,99,235,.35), rgba(6,182,212,.35)) border-box;
}
.glow-border:hover {
  box-shadow: 0 0 0 1px rgba(37,99,235,.15), 0 8px 32px rgba(37,99,235,.12);
}

/* 扫描线动画(用于 hero 区) */
.scan-line {
  position: absolute;
  left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(37,99,235,.5), rgba(6,182,212,.5), transparent);
  animation: scanMove 4s ease-in-out infinite;
  pointer-events: none;
}
@keyframes scanMove {
  0%, 100% { top: 10%; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  50% { top: 85%; }
}

/* 脉冲光点 */
.pulse-dot {
  position: relative;
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--brand-1);
}
.pulse-dot::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--brand-1);
  animation: pulseRing 2s ease-out infinite;
}
@keyframes pulseRing {
  0% { transform: scale(.6); opacity: 1; }
  100% { transform: scale(1.8); opacity: 0; }
}

/* 数字等宽字体 */
.digit {
  font-family: "JetBrains Mono", "SF Mono", "Cascadia Code", Consolas, monospace;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

/* 渐变流动文字 */
.grad-flow {
  background: linear-gradient(90deg, var(--brand-1), var(--brand-2), var(--brand-1));
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: gradFlow 3s linear infinite;
}
@keyframes gradFlow {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}

/* 悬浮微光卡片 */
.tech-card {
  position: relative;
  overflow: hidden;
  transition: transform .3s cubic-bezier(.2,.8,.3,1), box-shadow .3s;
}
.tech-card::after {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: conic-gradient(from 0deg, transparent 0%, rgba(37,99,235,.04) 10%, transparent 20%);
  animation: techRotate 8s linear infinite;
  pointer-events: none;
}
.tech-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(37,99,235,.12), 0 4px 12px rgba(15,23,42,.06);
}
@keyframes techRotate {
  100% { transform: rotate(360deg); }
}

/* 打字机光标 */
.type-cursor::after {
  content: '|';
  animation: blink 1s step-end infinite;
  color: var(--brand-1);
  font-weight: 300;
}
@keyframes blink { 50% { opacity: 0; } }

/* =====================================================
   滚动显现动画系统
   ===================================================== */
.reveal {
  transition: opacity .6s cubic-bezier(.2,.8,.3,1), transform .6s cubic-bezier(.2,.8,.3,1);
}
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-left {
  transition: opacity .6s cubic-bezier(.2,.8,.3,1), transform .6s cubic-bezier(.2,.8,.3,1);
}
.js .reveal-left {
  opacity: 0;
  transform: translateX(-30px);
}
.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}
.reveal-right {
  transition: opacity .6s cubic-bezier(.2,.8,.3,1), transform .6s cubic-bezier(.2,.8,.3,1);
}
.js .reveal-right {
  opacity: 0;
  transform: translateX(30px);
}
.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}
.reveal-scale {
  transition: opacity .5s cubic-bezier(.2,.8,.3,1), transform .5s cubic-bezier(.2,.8,.3,1);
}
.js .reveal-scale {
  opacity: 0;
  transform: scale(.92);
}
.reveal-scale.visible {
  opacity: 1;
  transform: scale(1);
}
/* 延迟工具 */
.reveal-d1 { transition-delay: .1s; }
.reveal-d2 { transition-delay: .2s; }
.reveal-d3 { transition-delay: .3s; }
.reveal-d4 { transition-delay: .4s; }

/* 减少动画偏好 */
@media (prefers-reduced-motion: reduce) {
  .js .reveal, .js .reveal-left, .js .reveal-right, .js .reveal-scale,
  .reveal, .reveal-left, .reveal-right, .reveal-scale {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .scan-line, .tech-card::after, .grad-flow, .pulse-dot::after {
    animation: none;
  }
}
