/* ============================================
   PC 前台样式全面重构
   基于 UI/UX Pro Max 专业标准
   版本: 3.0
=========================================== */

/* ============================================
   设计令牌 (Design Tokens)
=========================================== */
:root {
  /* --- 容器尺寸 --- */
  --container-xs: 480px;
  --container-sm: 640px;
  --container-md: 768px;
  --container-lg: 1024px;
  --container-xl: 1160px;
  --container-2xl: 1320px;

  /* --- 间距系统 (8点栅格) --- */
  --space-0: 0;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;

  /* --- 字体大小 --- */
  --text-xs: 12px;
  --text-sm: 14px;
  --text-base: 16px;
  --text-lg: 18px;
  --text-xl: 20px;
  --text-2xl: 24px;
  --text-3xl: 30px;
  --text-4xl: 36px;
  --text-5xl: 48px;
  --text-6xl: 60px;

  /* --- 字重 --- */
  --font-normal: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;
  --font-extrabold: 800;

  /* --- 行高 --- */
  --leading-none: 1;
  --leading-tight: 1.25;
  --leading-snug: 1.375;
  --leading-normal: 1.5;
  --leading-relaxed: 1.625;
  --leading-loose: 2;

  /* --- 圆角 --- */
  --radius-none: 0;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 18px;
  --radius-2xl: 24px;
  --radius-full: 9999px;

  /* --- 阴影 --- */
  --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);

  /* --- 过渡时间 --- */
  --duration-75: 75ms;
  --duration-100: 100ms;
  --duration-150: 150ms;
  --duration-200: 200ms;
  --duration-300: 300ms;
  --duration-500: 500ms;

  /* --- 缓动函数 --- */
  --ease-linear: linear;
  --ease-in: cubic-bezier(0.4, 0, 1, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);

  /* --- Z-index --- */
  --z-dropdown: 1000;
  --z-sticky: 1020;
  --z-fixed: 1030;
  --z-modal-backdrop: 1040;
  --z-modal: 1050;
  --z-popover: 1060;
  --z-tooltip: 1070;

  /* --- 亮色主题 --- */
  --primary-50: #eff6ff;
  --primary-100: #dbeafe;
  --primary-200: #bfdbfe;
  --primary-300: #93c5fd;
  --primary-400: #60a5fa;
  --primary-500: #3b82f6;
  --primary-600: #2563eb;
  --primary-700: #1d4ed8;
  --primary-800: #1e40af;
  --primary-900: #1e3a8a;

  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;

  --bg-body: #ffffff;
  --bg-surface: #f9fafb;
  --bg-card: #ffffff;
  --bg-overlay: rgba(0, 0, 0, 0.5);

  --text-primary: #111827;
  --text-secondary: #6b7280;
  --text-tertiary: #9ca3af;
  --text-inverse: #ffffff;

  --border-light: #e5e7eb;
  --border-medium: #d1d5db;
  --border-dark: #9ca3af;

  --accent: #7c3aed;
  --accent-light: #a78bfa;
  --accent-dark: #6d28d9;

  --success: #10b981;
  --success-light: #34d399;
  --success-dark: #059669;

  --warning: #f59e0b;
  --warning-light: #fbbf24;
  --warning-dark: #d97706;

  --error: #ef4444;
  --error-light: #f87171;
  --error-dark: #dc2626;

  --info: #3b82f6;
  --info-light: #60a5fa;
  --info-dark: #2563eb;

  /* --- 组件特定 --- */
  --nav-height: 64px;
  --header-height: 80px;
}

/* ============================================
   暗色主题
=========================================== */
@media (prefers-color-scheme: dark) {
  :root {
    --bg-body: #0f172a;
    --bg-surface: #1e293b;
    --bg-card: #1e293b;
    --bg-overlay: rgba(0, 0, 0, 0.7);

    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-tertiary: #64748b;
    --text-inverse: #0f172a;

    --border-light: #334155;
    --border-medium: #475569;
    --border-dark: #64748b;

    --primary-500: #60a5fa;
    --primary-600: #3b82f6;
    --primary-700: #2563eb;

    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.4);
  }
}

/* ============================================
   基础重置
=========================================== */
*, *::before, *::after {
  box-sizing: border-box;
}

* {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", sans-serif;
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--text-primary);
  background-color: var(--bg-body);
  min-height: 100vh;
  position: relative;
}

/* 背景装饰 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(ellipse 800px 600px at 20% 10%, rgba(59, 130, 246, 0.15), transparent 60%),
    radial-gradient(ellipse 600px 400px at 80% 20%, rgba(124, 58, 237, 0.12), transparent 55%),
    radial-gradient(ellipse 700px 500px at 40% 90%, rgba(6, 182, 212, 0.1), transparent 55%);
  opacity: 1;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(148, 163, 184, 0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(148, 163, 184, 0.06) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: 0.4;
  mask-image: radial-gradient(ellipse 80% 50% at 50% 0%, rgba(0, 0, 0, 1), transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 80% 50% at 50% 0%, rgba(0, 0, 0, 1), transparent 70%);
}

/* ============================================
   排版
=========================================== */
h1, h2, h3, h4, h5, h6 {
  font-weight: var(--font-bold);
  line-height: var(--leading-tight);
  color: var(--text-primary);
  margin-bottom: var(--space-4);
}

h1 { font-size: var(--text-5xl); letter-spacing: -0.02em; }
h2 { font-size: var(--text-4xl); letter-spacing: -0.01em; }
h3 { font-size: var(--text-3xl); }
h4 { font-size: var(--text-2xl); }
h5 { font-size: var(--text-xl); }
h6 { font-size: var(--text-lg); }

p {
  margin-bottom: var(--space-4);
  color: var(--text-secondary);
}

a {
  color: var(--primary-600);
  text-decoration: none;
  transition: color var(--duration-150) var(--ease-in-out);
}

a:hover {
  color: var(--primary-700);
}

a:focus {
  outline: 2px solid var(--primary-500);
  outline-offset: 2px;
}

/* ============================================
   工具类
=========================================== */
.container {
  width: 100%;
  max-width: var(--container-xl);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.container-md {
  max-width: var(--container-lg);
}

.container-sm {
  max-width: var(--container-md);
}

/* 间距工具 */
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: var(--space-1); }
.mt-2 { margin-top: var(--space-2); }
.mt-3 { margin-top: var(--space-3); }
.mt-4 { margin-top: var(--space-4); }
.mt-5 { margin-top: var(--space-5); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }
.mt-10 { margin-top: var(--space-10); }
.mt-12 { margin-top: var(--space-12); }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--space-1); }
.mb-2 { margin-bottom: var(--space-2); }
.mb-3 { margin-bottom: var(--space-3); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-5 { margin-bottom: var(--space-5); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }

.p-0 { padding: 0; }
.p-2 { padding: var(--space-2); }
.p-3 { padding: var(--space-3); }
.p-4 { padding: var(--space-4); }
.p-5 { padding: var(--space-5); }
.p-6 { padding: var(--space-6); }
.p-8 { padding: var(--space-8); }

/* 文本工具 */
.text-xs { font-size: var(--text-xs); }
.text-sm { font-size: var(--text-sm); }
.text-base { font-size: var(--text-base); }
.text-lg { font-size: var(--text-lg); }
.text-xl { font-size: var(--text-xl); }
.text-2xl { font-size: var(--text-2xl); }

.text-primary { color: var(--text-primary); }
.text-secondary { color: var(--text-secondary); }
.text-tertiary { color: var(--text-tertiary); }
.text-muted { color: var(--text-secondary); }

.font-normal { font-weight: var(--font-normal); }
.font-medium { font-weight: var(--font-medium); }
.font-semibold { font-weight: var(--font-semibold); }
.font-bold { font-weight: var(--font-bold); }

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

/* ============================================
   组件：按钮
=========================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-5);
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  line-height: 1;
  border-radius: var(--radius-lg);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--duration-200) var(--ease-in-out);
  text-decoration: none;
  white-space: nowrap;
  user-select: none;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.btn:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3);
}

.btn-sm {
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-xs);
}

.btn-lg {
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-base);
}

/* 主要按钮 */
.btn-primary {
  background: linear-gradient(135deg, var(--primary-600), var(--primary-700));
  color: var(--text-inverse);
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover:not(:disabled) {
  background: linear-gradient(135deg, var(--primary-700), var(--primary-800));
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.4);
  transform: translateY(-1px);
}

.btn-primary:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

/* 次要按钮 */
.btn-secondary {
  background: var(--bg-card);
  color: var(--text-primary);
  border-color: var(--border-light);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover:not(:disabled) {
  background: var(--gray-50);
  border-color: var(--border-medium);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

/* 幽灵按钮 */
.btn-ghost {
  background: transparent;
  color: var(--text-primary);
  border-color: transparent;
}

.btn-ghost:hover:not(:disabled) {
  background: var(--gray-100);
  border-color: transparent;
}

/* ============================================
   组件：卡片
=========================================== */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
  transition: all var(--duration-200) var(--ease-in-out);
}

.card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--border-medium);
}

.card-header {
  margin-bottom: var(--space-4);
}

.card-title {
  font-size: var(--text-xl);
  font-weight: var(--font-bold);
  color: var(--text-primary);
  margin: 0;
}

.card-subtitle {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin-top: var(--space-1);
}

.card-body {
  margin-bottom: var(--space-4);
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid var(--border-light);
}

.card-glow {
  position: relative;
}

.card-glow::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(135deg,
    rgba(59, 130, 246, 0.3),
    rgba(124, 58, 237, 0.2));
  filter: blur(16px);
  opacity: 0;
  transition: opacity var(--duration-300) var(--ease-in-out);
  z-index: -1;
}

.card-glow:hover::before {
  opacity: 0.6;
}

/* ============================================
   组件：徽章与标签
=========================================== */
.badge {
  display: inline-flex;
  align-items: center;
  padding: var(--space-1) var(--space-3);
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  line-height: 1;
  border-radius: var(--radius-full);
  background: var(--primary-100);
  color: var(--primary-700);
}

.badge-sm {
  padding: 2px var(--space-2);
  font-size: 10px;
}

.badge-lg {
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: var(--space-2) var(--space-3);
  font-size: var(--text-xs);
  font-weight: var(--font-medium);
  line-height: 1;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  color: var(--text-secondary);
  border: 1px solid var(--border-light);
}

/* ============================================
   组件：分隔线
=========================================== */
.divider {
  height: 1px;
  background: var(--border-light);
  border: none;
  margin: var(--space-8) 0;
}

.divider-vertical {
  width: 1px;
  height: 100%;
  background: var(--border-light);
  border: none;
  margin: 0 var(--space-4);
}

/* ============================================
   布局
=========================================== */
.grid {
  display: grid;
}

.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }
.gap-8 { gap: var(--space-8); }

.flex { display: flex; }
.inline-flex { display: inline-flex; }
.flex-col { flex-direction: column; }
.flex-row { flex-direction: row; }

.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }

.justify-center { justify-content: center; }
.justify-start { justify-content: flex-start; }
.justify-end { justify-content: flex-end; }
.justify-between { justify-content: space-between; }

.flex-wrap { flex-wrap: wrap; }
.flex-1 { flex: 1 1 0%; }
.flex-shrink-0 { flex-shrink: 0; }
.flex-grow-0 { flex-grow: 0; }

/* ============================================
   响应式
=========================================== */
@media (max-width: 1024px) {
  .container {
    padding: 0 var(--space-4);
  }

  .grid-cols-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grid-cols-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  :root {
    --space-6: 20px;
    --space-8: 28px;
  }

  .grid-cols-2,
  .grid-cols-3,
  .grid-cols-4 {
    grid-template-columns: 1fr;
  }

  .card {
    padding: var(--space-5);
  }
}

@media (max-width: 640px) {
  .container {
    padding: 0 var(--space-3);
  }

  h1 { font-size: var(--text-4xl); }
  h2 { font-size: var(--text-3xl); }
  h3 { font-size: var(--text-2xl); }
}

/* ============================================
   可访问性
=========================================== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

:focus-visible {
  outline: 2px solid var(--primary-500);
  outline-offset: 2px;
}

/* 减少动画偏好 */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}

/* ============================================
   过渡与动画
=========================================== */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

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

@keyframes scaleIn {
  from {
    transform: scale(0.95);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.animate-fade-in {
  animation: fadeIn var(--duration-300) var(--ease-in-out);
}

.animate-slide-up {
  animation: slideUp var(--duration-300) var(--ease-out);
}

.animate-slide-down {
  animation: slideDown var(--duration-300) var(--ease-out);
}

/* ============================================
   工具：渐变背景
=========================================== */
.bg-gradient-primary {
  background: linear-gradient(135deg, var(--primary-600), var(--primary-700));
}

.bg-gradient-accent {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
}

.text-gradient {
  background: linear-gradient(135deg, var(--primary-600), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ============================================
   选择样式
=========================================== */
::selection {
  background-color: rgba(59, 130, 246, 0.3);
  color: inherit;
}

::-moz-selection {
  background-color: rgba(59, 130, 246, 0.3);
  color: inherit;
}

/* ============================================
   滚动条样式
=========================================== */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--gray-100);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb {
  background: var(--gray-300);
  border-radius: var(--radius-full);
  border: 2px solid var(--gray-100);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gray-400);
}

/* ============================================
   表单元素
=========================================== */
input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  color: inherit;
}

input::placeholder, textarea::placeholder {
  color: var(--text-tertiary);
}

/* 表单焦点样式 */
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--primary-500);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

/* ============================================
   导航栏
=========================================== */
.topbar {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  box-shadow: var(--shadow-xs);
  transition: all var(--duration-200) var(--ease-in-out);
}

.topbar.scrolled {
  box-shadow: var(--shadow-md);
  background: rgba(255, 255, 255, 0.98);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
  gap: var(--space-8);
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  text-decoration: none;
  transition: all var(--duration-150) var(--ease-in-out);
  flex-shrink: 0;
}

.brand:hover {
  opacity: 0.9;
}

.brand-mark {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--primary-600), var(--accent));
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: var(--font-extrabold);
  font-size: var(--text-lg);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
  transition: all var(--duration-200) var(--ease-in-out);
}

.brand:hover .brand-mark {
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.4);
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.brand-name {
  font-size: var(--text-lg);
  font-weight: var(--font-bold);
  color: var(--text-primary);
  line-height: 1.2;
}

.brand-desc {
  font-size: var(--text-xs);
  color: var(--text-secondary);
  line-height: 1.3;
}

.brand-mark-sm {
  width: 32px;
  height: 32px;
  font-size: var(--text-sm);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  padding: var(--space-2);
  cursor: pointer;
  color: var(--text-primary);
  transition: all var(--duration-150) var(--ease-in-out);
}

.nav-toggle:hover {
  background: var(--gray-100);
  border-radius: var(--radius-md);
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  flex: 1;
  justify-content: center;
}

.nav-link {
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: var(--radius-md);
  transition: all var(--duration-150) var(--ease-in-out);
  position: relative;
}

.nav-link:hover {
  color: var(--text-primary);
  background: var(--gray-50);
}

.nav-link.active {
  color: var(--primary-600);
  background: var(--primary-50);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 2px;
  background: var(--primary-600);
  border-radius: 2px;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-shrink: 0;
}

.icon-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--duration-150) var(--ease-in-out);
}

.icon-btn:hover {
  background: var(--gray-100);
  color: var(--text-primary);
}

.icon-btn svg {
  width: 20px;
  height: 20px;
}

/* ============================================
   Hero 区域
=========================================== */
.hero {
  padding: var(--space-20) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120%;
  height: 100%;
  background: radial-gradient(ellipse 1200px 800px at 50% 50%, rgba(59, 130, 246, 0.1), transparent 60%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
  animation: slideUp var(--duration-500) var(--ease-out);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  padding: var(--space-2) var(--space-4);
  background: var(--primary-50);
  color: var(--primary-700);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  margin-bottom: var(--space-6);
  border: 1px solid var(--primary-200);
}

.hero-title {
  font-size: var(--text-6xl);
  font-weight: var(--font-extrabold);
  line-height: var(--leading-tight);
  margin-bottom: var(--space-6);
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--primary-600) 50%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: var(--text-xl);
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-8);
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  align-items: center;
}

/* ============================================
   Bento Grid
=========================================== */
.bento {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-6);
  margin-top: var(--space-12);
}

.bento-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  transition: all var(--duration-200) var(--ease-in-out);
  position: relative;
  overflow: hidden;
}

.bento-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-medium);
}

.bento-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.05), transparent 50%);
  opacity: 0;
  transition: opacity var(--duration-200) var(--ease-in-out);
  pointer-events: none;
}

.bento-card:hover::before {
  opacity: 1;
}

.bento-card.large {
  grid-column: span 2;
  grid-row: span 2;
}

.bento-card.wide {
  grid-column: span 2;
}

.bento-card.tall {
  grid-row: span 2;
}

.bento-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--primary-100), var(--primary-200));
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-5);
  font-size: var(--text-3xl);
  color: var(--primary-600);
}

.bento-title {
  font-size: var(--text-xl);
  font-weight: var(--font-bold);
  color: var(--text-primary);
  margin-bottom: var(--space-3);
}

.bento-desc {
  font-size: var(--text-base);
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
}

/* ============================================
   Metrics 统计
=========================================== */
.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-6);
  margin: var(--space-12) 0;
}

.metric {
  text-align: center;
  padding: var(--space-6);
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  transition: all var(--duration-200) var(--ease-in-out);
}

.metric:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.metric-value {
  font-size: var(--text-4xl);
  font-weight: var(--font-extrabold);
  color: var(--primary-600);
  margin-bottom: var(--space-2);
}

.metric-label {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  font-weight: var(--font-medium);
}

/* ============================================
   Tabs 组件
=========================================== */
.tabs {
  width: 100%;
}

.tablist {
  display: flex;
  gap: var(--space-2);
  border-bottom: 1px solid var(--border-light);
  margin-bottom: var(--space-6);
}

.tab {
  padding: var(--space-3) var(--space-6);
  font-size: var(--text-base);
  font-weight: var(--font-medium);
  color: var(--text-secondary);
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: all var(--duration-150) var(--ease-in-out);
  position: relative;
}

.tab:hover {
  color: var(--text-primary);
}

.tab.active {
  color: var(--primary-600);
  border-bottom-color: var(--primary-600);
}

.tabpanel {
  display: none;
  animation: fadeIn var(--duration-200) var(--ease-in-out);
}

.tabpanel.active {
  display: block;
}

/* ============================================
   Timeline 时间线
=========================================== */
.timeline {
  position: relative;
  padding-left: var(--space-8);
}

.timeline::before {
  content: '';
  position: absolute;
  left: 23px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--primary-500), var(--accent));
}

.tl-item {
  position: relative;
  padding-bottom: var(--space-8);
}

.tl-item:last-child {
  padding-bottom: 0;
}

.tl-marker {
  position: absolute;
  left: -44px;
  top: 0;
  width: 48px;
  height: 48px;
  background: var(--bg-card);
  border: 3px solid var(--primary-500);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: var(--font-bold);
  font-size: var(--text-sm);
  color: var(--primary-600);
  box-shadow: var(--shadow-sm);
}

.tl-content {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  transition: all var(--duration-200) var(--ease-in-out);
}

.tl-content:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--border-medium);
}

.tl-title {
  font-size: var(--text-lg);
  font-weight: var(--font-bold);
  color: var(--text-primary);
  margin-bottom: var(--space-2);
}

.tl-desc {
  font-size: var(--text-base);
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
}

/* ============================================
   CTA 区域
=========================================== */
.cta {
  background: linear-gradient(135deg, var(--primary-600), var(--accent));
  border-radius: var(--radius-2xl);
  padding: var(--space-12);
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
  margin: var(--space-12) 0;
}

.cta::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  animation: rotate 20s linear infinite;
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.cta-content {
  position: relative;
  z-index: 1;
}

.cta-title {
  font-size: var(--text-4xl);
  font-weight: var(--font-extrabold);
  margin-bottom: var(--space-4);
}

.cta-subtitle {
  font-size: var(--text-lg);
  opacity: 0.95;
  margin-bottom: var(--space-6);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================
   Footer 页脚
=========================================== */
.footer {
  background: var(--gray-900);
  color: var(--gray-300);
  padding: var(--space-16) 0 var(--space-8);
  margin-top: var(--space-20);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: var(--space-10);
}

.footer-brand {
  margin-bottom: var(--space-6);
}

.footer-brand .brand-mark {
  margin-bottom: var(--space-4);
}

.footer-logo {
  font-size: var(--text-xl);
  font-weight: var(--font-bold);
  color: white;
  margin-bottom: var(--space-4);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.footer-desc {
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
  color: var(--gray-400);
  max-width: 300px;
}

.footer-section-title {
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  color: white;
  margin-bottom: var(--space-4);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-link {
  font-size: var(--text-sm);
  color: var(--gray-400);
  text-decoration: none;
  transition: all var(--duration-150) var(--ease-in-out);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

.footer-link:hover {
  color: white;
  transform: translateX(4px);
}

.footer-link::before {
  content: '→';
  opacity: 0;
  transition: opacity var(--duration-150) var(--ease-in-out);
}

.footer-link:hover::before {
  opacity: 1;
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.footer-right {
  display: flex;
  gap: var(--space-6);
}

.footer-bottom {
  margin-top: var(--space-12);
  padding-top: var(--space-8);
  border-top: 1px solid var(--gray-800);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--text-sm);
  color: var(--gray-500);
}

.link {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--duration-150) var(--ease-in-out);
}

.link:hover {
  color: var(--text-primary);
}

/* ============================================
   错误页面
=========================================== */
.error-card {
  text-align: center;
  padding: var(--space-20) var(--space-8);
  max-width: 600px;
  margin: var(--space-16) auto;
}

.kicker {
  display: inline-block;
  font-size: 120px;
  font-weight: var(--font-extrabold);
  background: linear-gradient(135deg, var(--primary-600), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  margin-bottom: var(--space-6);
  animation: float 3s ease-in-out infinite;
}

.page-title {
  font-size: var(--text-4xl);
  font-weight: var(--font-bold);
  color: var(--text-primary);
  margin-bottom: var(--space-4);
}

.page-desc {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-8);
}

.page-desc code {
  display: inline-block;
  padding: var(--space-1) var(--space-3);
  background: var(--gray-100);
  border-radius: var(--radius-md);
  font-family: monospace;
  font-size: var(--text-base);
  color: var(--error-500);
  margin-top: var(--space-2);
}

.page .hero-actions {
  justify-content: center;
}

/* ============================================
   页面响应式优化
=========================================== */
@media (max-width: 1200px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
  }
}

@media (max-width: 1024px) {
  .bento {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bento-card.large,
  .bento-card.wide,
  .bento-card.tall {
    grid-column: span 1;
    grid-row: span 1;
  }

  .metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-title {
    font-size: var(--text-5xl);
  }

  .topbar-inner {
    gap: var(--space-4);
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .nav {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: white;
    flex-direction: column;
    padding: var(--space-6);
    gap: var(--space-2);
    transform: translateX(100%);
    transition: transform var(--duration-300) var(--ease-in-out);
    overflow-y: auto;
  }

  .nav.open {
    transform: translateX(0);
    box-shadow: var(--shadow-2xl);
  }

  .nav-link {
    width: 100%;
    padding: var(--space-4);
    font-size: var(--text-lg);
    justify-content: center;
  }

  .topbar-actions {
    gap: var(--space-2);
  }

  .topbar-actions .btn {
    display: none;
  }

  .bento,
  .metrics {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .footer-bottom {
    flex-direction: column;
    gap: var(--space-4);
    text-align: center;
  }

  .hero {
    padding: var(--space-12) 0;
  }

  .hero-title {
    font-size: var(--text-4xl);
  }

  .hero-subtitle {
    font-size: var(--text-lg);
  }

  .hero-actions {
    flex-direction: column;
  }

  .cta {
    padding: var(--space-8);
  }

  .cta-title {
    font-size: var(--text-3xl);
  }

  .error-card {
    padding: var(--space-12) var(--space-4);
  }

  .kicker {
    font-size: 80px;
  }
}

@media (max-width: 640px) {
  .brand-text {
    display: none;
  }

  .hero-title {
    font-size: var(--text-3xl);
  }

  .tablist {
    flex-wrap: wrap;
  }

  .timeline {
    padding-left: var(--space-6);
  }

  .kicker {
    font-size: 60px;
  }
}

/* ============================================
   交互动画增强
=========================================== */
@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.4);
  }
  50% {
    box-shadow: 0 0 40px rgba(59, 130, 246, 0.6);
  }
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

@keyframes bounce-soft {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

/* 悬浮动画 */
.animate-float {
  animation: float 3s ease-in-out infinite;
}

/* 脉冲发光 */
.animate-pulse-glow {
  animation: pulse-glow 2s ease-in-out infinite;
}

/* 闪光效果 */
.animate-shimmer {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  background-size: 200% 100%;
  animation: shimmer 2s infinite;
}

/* 柔和弹跳 */
.animate-bounce-soft {
  animation: bounce-soft 2s ease-in-out infinite;
}

/* 按钮悬停增强 */
.btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
}

.btn-primary:active {
  transform: translateY(0) scale(0.98);
}

/* 卡片进入动画 */
@keyframes stagger-in {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.bento-card {
  animation: stagger-in 0.5s ease-out backwards;
}

.bento-card:nth-child(1) { animation-delay: 0.1s; }
.bento-card:nth-child(2) { animation-delay: 0.2s; }
.bento-card:nth-child(3) { animation-delay: 0.3s; }
.bento-card:nth-child(4) { animation-delay: 0.4s; }
.bento-card:nth-child(5) { animation-delay: 0.5s; }
.bento-card:nth-child(6) { animation-delay: 0.6s; }

/* 统计数字计数动画 */
.metric-value {
  display: inline-block;
  transition: transform var(--duration-300) var(--ease-out);
}

.metric:hover .metric-value {
  transform: scale(1.1);
}

/* 时间线标记动画 */
.tl-marker {
  transition: all var(--duration-300) var(--ease-in-out);
}

.tl-item:hover .tl-marker {
  transform: scale(1.15);
  box-shadow: 0 0 0 6px rgba(59, 130, 246, 0.15);
}

/* 导航链接下划线动画 */
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--primary-600);
  transition: all var(--duration-200) var(--ease-in-out);
  transform: translateX(-50%);
}

.nav-link:hover::after {
  width: 60%;
}

/* Brand logo 旋转 */
.brand-logo:hover {
  transform: rotate(360deg);
  transition: transform var(--duration-500) var(--ease-in-out);
}

/* CTA 按钮光效 */
.cta .btn-primary {
  position: relative;
  overflow: hidden;
}

.cta .btn-primary::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width var(--duration-500) var(--ease-out), height var(--duration-500) var(--ease-out);
}

.cta .btn-primary:hover::before {
  width: 300px;
  height: 300px;
}

/* 表格行动画 */
.table-row {
  transition: all var(--duration-150) var(--ease-in-out);
}

.table-row:hover {
  background: var(--gray-50);
  transform: scale(1.01);
}

/* 骨架屏加载动画 */
@keyframes skeleton-pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.skeleton {
  background: linear-gradient(90deg, var(--gray-200) 25%, var(--gray-300) 50%, var(--gray-200) 75%);
  background-size: 200% 100%;
  animation: skeleton-pulse 1.5s ease-in-out infinite;
}

/* 输入框焦点动画 */
input:focus,
textarea:focus,
select:focus {
  transform: scale(1.01);
  transition: all var(--duration-200) var(--ease-in-out);
}

/* 徽章脉冲 */
.badge-pulse {
  animation: pulse-glow 2s ease-in-out infinite;
}

/* 进度条动画 */
@keyframes progress-fill {
  from {
    width: 0;
  }
}

.progress-bar {
  animation: progress-fill var(--duration-500) var(--ease-out);
}

/* 提示框滑入 */
@keyframes slide-in-right {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.toast {
  animation: slide-in-right var(--duration-300) var(--ease-out);
}

/* 模态框缩放 */
.modal-content {
  animation: scaleIn var(--duration-300) var(--ease-out);
}

/* 滚动显示动画 */
.scroll-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all var(--duration-500) var(--ease-out);
}

.scroll-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* 鼠标跟随效果 */
.mouse-glow {
  position: relative;
  overflow: hidden;
}

.mouse-glow::after {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: opacity var(--duration-300) var(--ease-in-out);
  opacity: 0;
}

.mouse-glow:hover::after {
  opacity: 1;
}

/* 图片懒加载占位 */
.img-loading {
  background: linear-gradient(90deg, var(--gray-100) 25%, var(--gray-200) 50%, var(--gray-100) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

/* 视差滚动效果 */
.parallax {
  transform: translateZ(0);
  transition: transform var(--duration-100) linear;
}

/* 加载状态 */
.btn-loading {
  position: relative;
  color: transparent !important;
  pointer-events: none;
}

.btn-loading::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  top: 50%;
  left: 50%;
  margin-left: -8px;
  margin-top: -8px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

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

/* 焦点陷阱 - 模态框打开时 */
body.modal-open {
  overflow: hidden;
}

/* 平滑滚动增强 */
html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}

/* 选择文本样式增强 */
::selection {
  background: rgba(59, 130, 246, 0.3);
  color: inherit;
}

::-moz-selection {
  background: rgba(59, 130, 246, 0.3);
  color: inherit;
}

/* 自定义滚动条 */
::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

::-webkit-scrollbar-track {
  background: var(--gray-100);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--gray-300), var(--gray-400));
  border-radius: var(--radius-full);
  border: 3px solid var(--gray-100);
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--gray-400), var(--gray-500));
}

/* 焦点可见性增强 */
:focus-visible {
  outline: 3px solid var(--primary-500);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* 高对比度模式支持 */
@media (prefers-contrast: high) {
  :root {
    --border-light: #000;
    --border-medium: #000;
    --text-secondary: #000;
  }

  .btn-primary {
    border: 2px solid currentColor;
  }
}

/* 减少动画偏好 */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}

/* ============================================
   全新创新组件系统
   版本: 4.0 - Next Gen Design
=========================================== */

/* ============================================
   玻璃态效果 (Glassmorphism)
=========================================== */
.glass {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.glass-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.4));
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius-2xl);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

/* ============================================
   渐变边框效果
=========================================== */
.gradient-border {
  position: relative;
  background: white;
  border-radius: var(--radius-xl);
}

.gradient-border::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(45deg, var(--primary-500), var(--accent), var(--primary-700));
  border-radius: inherit;
  z-index: -1;
  animation: border-rotate 3s linear infinite;
}

@keyframes border-rotate {
  0% { filter: hue-rotate(0deg); }
  100% { filter: hue-rotate(360deg); }
}

/* ============================================
   文字渐变动画
=========================================== */
.text-gradient-animate {
  background: linear-gradient(90deg, var(--primary-500), var(--accent), var(--primary-700), var(--primary-500));
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradient-shift 5s ease infinite;
}

@keyframes gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* ============================================
   特性网格
=========================================== */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-8);
}

.feature-card {
  padding: var(--space-8);
  background: white;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-light);
  transition: all var(--duration-300) var(--ease-in-out);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--primary-500), var(--accent));
  opacity: 0;
  transition: opacity var(--duration-300) var(--ease-in-out);
  z-index: 0;
}

.feature-card:hover::before {
  opacity: 0.05;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.feature-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--primary-100), var(--primary-200));
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-6);
  font-size: var(--text-3xl);
  color: var(--primary-600);
  position: relative;
  z-index: 1;
}

.feature-title {
  font-size: var(--text-xl);
  font-weight: var(--font-bold);
  color: var(--text-primary);
  margin-bottom: var(--space-3);
  position: relative;
  z-index: 1;
}

.feature-desc {
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
  position: relative;
  z-index: 1;
}

/* ============================================
   统计数字动画
=========================================== */
.stat-card {
  text-align: center;
  padding: var(--space-10);
  background: white;
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-md);
  transition: all var(--duration-300) var(--ease-in-out);
}

.stat-card:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-xl);
}

.stat-number {
  font-size: 72px;
  font-weight: var(--font-extrabold);
  background: linear-gradient(135deg, var(--primary-600), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: var(--space-4);
  line-height: 1;
}

.stat-label {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  font-weight: var(--font-medium);
}

/* ============================================
   分割卡片
=========================================== */
.split-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 500px;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.split-card-image {
  background: linear-gradient(135deg, var(--primary-500), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  padding: var(--space-12);
}

.split-card-content {
  padding: var(--space-12);
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: white;
}

/* ============================================
   波纹按钮
=========================================== */
.ripple-btn {
  position: relative;
  overflow: hidden;
}

.ripple-btn::after {
  content: '';
  position: absolute;
  width: 100px;
  height: 100px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.5), transparent 70%);
  border-radius: 50%;
  transform: scale(0);
  opacity: 0;
  pointer-events: none;
}

.ripple-btn:active::after {
  animation: ripple-effect var(--duration-500) var(--ease-out);
}

@keyframes ripple-effect {
  0% { transform: scale(0); opacity: 0.5; }
  100% { transform: scale(4); opacity: 0; }
}

/* ============================================
   加载动画
=========================================== */
.dots-loader {
  display: flex;
  gap: var(--space-2);
  justify-content: center;
}

.dots-loader span {
  width: 12px;
  height: 12px;
  background: var(--primary-500);
  border-radius: 50%;
  animation: bounce 1.4s infinite ease-in-out both;
}

.dots-loader span:nth-child(1) { animation-delay: -0.32s; }
.dots-loader span:nth-child(2) { animation-delay: -0.16s; }

@keyframes bounce {
  0%, 80%, 100% { transform: scale(0); }
  40% { transform: scale(1); }
}

/* ============================================
   搜索框
=========================================== */
.search-box {
  position: relative;
  max-width: 600px;
  margin: 0 auto;
}

.search-input {
  width: 100%;
  padding: var(--space-4) var(--space-12) var(--space-4) var(--space-4);
  border: 2px solid var(--border-light);
  border-radius: var(--radius-full);
  font-size: var(--text-base);
  transition: all var(--duration-200) var(--ease-in-out);
}

.search-input:focus {
  border-color: var(--primary-500);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
  outline: none;
}

.search-icon {
  position: absolute;
  right: var(--space-4);
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-tertiary);
  pointer-events: none;
}

/* ============================================
   响应式增强
=========================================== */
@media (max-width: 768px) {
  .split-card {
    grid-template-columns: 1fr;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .stat-number {
    font-size: 48px;
  }
}
