/**
 * 尘渊文化 - 视觉设计升级 v5.0
 * 基于 2024-2025 现代设计趋势
 */

/* ============================================================
   1. 扩展颜色系统
   ============================================================ */
:root {
  /* 现有颜色保留 */
  --brand-50: #eef2ff;
  --brand-100: #e0e7ff;
  --brand-200: #c7d2fe;
  --brand-300: #a5b4fc;
  --brand-400: #818cf8;
  --brand-500: #6366f1;
  --brand-600: #4f46e5;
  --brand-700: #4338ca;
  --brand-800: #3730a3;
  --brand-900: #312e81;

  /* 新增渐变色 */
  --gradient-hero: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #ec4899 100%);
  --gradient-card: linear-gradient(180deg, rgba(99, 102, 241, 0.1) 0%, transparent 100%);
  --gradient-glow-cyan: radial-gradient(ellipse 80% 60% at 50% 120%, rgba(34, 211, 238, 0.15), transparent);
  --gradient-glow-pink: radial-gradient(ellipse 60% 40% at 80% 20%, rgba(236, 72, 153, 0.1), transparent);
  --gradient-glow-purple: radial-gradient(ellipse 100% 80% at 20% 0%, rgba(139, 92, 246, 0.12), transparent);
  
  /* 动态渐变（用于动画） */
  --gradient-animated: linear-gradient(90deg, #6366f1, #8b5cf6, #ec4899, #6366f1);
  --gradient-shimmer: linear-gradient(120deg, transparent 0%, rgba(255,255,255,0.05) 50%, transparent 100%);
  
  /* 玻璃拟态颜色 */
  --glass-bg: rgba(20, 20, 22, 0.7);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-highlight: rgba(255, 255, 255, 0.03);
  
  /* 光晕颜色 */
  --glow-cyan: rgba(34, 211, 238, 0.4);
  --glow-pink: rgba(236, 72, 153, 0.4);
  --glow-purple: rgba(139, 92, 246, 0.4);
  --glow-brand: rgba(99, 102, 241, 0.5);
}

/* ============================================================
   2. 背景系统升级
   ============================================================ */

/* 基础背景 */
body {
  background: #000000;
  position: relative;
}

/* 动态光晕背景层 */
.ambient-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.ambient-glow::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: 
    radial-gradient(ellipse 80% 60% at 20% 0%, rgba(99, 102, 241, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse 60% 40% at 80% 20%, rgba(236, 72, 153, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse 50% 30% at 60% 80%, rgba(34, 211, 238, 0.06) 0%, transparent 50%);
  animation: ambientFloat 20s ease-in-out infinite;
}

@keyframes ambientFloat {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(2%, 2%) rotate(2deg); }
  50% { transform: translate(0, 4%) rotate(0deg); }
  75% { transform: translate(-2%, 2%) rotate(-2deg); }
}

/* 网格背景（增强版） */
.grid-bg {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: linear-gradient(to bottom, black 0%, transparent 70%);
  -webkit-mask-image: linear-gradient(to bottom, black 0%, transparent 70%);
}

/* 渐变遮罩 */
.gradient-mesh {
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(at 40% 20%, rgba(99, 102, 241, 0.08) 0px, transparent 50%),
    radial-gradient(at 80% 0%, rgba(139, 92, 246, 0.06) 0px, transparent 50%),
    radial-gradient(at 0% 50%, rgba(236, 72, 153, 0.04) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(34, 211, 238, 0.03) 0px, transparent 50%);
}

/* ============================================================
   3. 玻璃拟态组件
   ============================================================ */

.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--glass-border);
}

.glass-card {
  background: linear-gradient(180deg, rgba(20, 20, 22, 0.8) 0%, rgba(10, 10, 11, 0.9) 100%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  position: relative;
  overflow: hidden;
}

.glass-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 50%, rgba(255,255,255,0.05) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.glass-card:hover {
  border-color: rgba(99, 102, 241, 0.3);
  box-shadow: 0 0 40px rgba(99, 102, 241, 0.15);
}

/* 玻璃按钮 */
.glass-btn {
  background: rgba(99, 102, 241, 0.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: var(--radius-lg);
  color: #fff;
  padding: 12px 24px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.glass-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  transform: translateX(-100%);
  transition: transform 0.5s ease;
}

.glass-btn:hover::before {
  transform: translateX(100%);
}

.glass-btn:hover {
  background: rgba(99, 102, 241, 0.25);
  border-color: rgba(99, 102, 241, 0.5);
  box-shadow: 0 0 30px rgba(99, 102, 241, 0.3);
  transform: translateY(-2px);
}

/* ============================================================
   4. 卡片升级
   ============================================================ */

.card-modern {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-modern::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
}

.card-modern::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse 80% 50% at 50% -20%, rgba(99, 102, 241, 0.1), transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.card-modern:hover {
  border-color: rgba(99, 102, 241, 0.4);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 60px rgba(99, 102, 241, 0.1);
}

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

/* 渐变边框卡片 */
.card-gradient-border {
  position: relative;
  background: var(--bg-elevated);
  border-radius: var(--radius-xl);
  padding: 1px;
}

.card-gradient-border > .card-content {
  background: var(--bg-elevated);
  border-radius: calc(var(--radius-xl) - 1px);
  padding: var(--space-6);
}

.card-gradient-border::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.5), rgba(139, 92, 246, 0.3), rgba(236, 72, 153, 0.5));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

/* ============================================================
   5. 按钮升级
   ============================================================ */

.btn-primary {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  border: none;
  border-radius: var(--radius-lg);
  color: #fff;
  font-weight: 600;
  padding: 14px 28px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover::before {
  transform: translateX(100%);
}

.btn-secondary {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-lg);
  color: #fff;
  font-weight: 500;
  padding: 14px 28px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.05);
}

/* 渐变文字按钮 */
.btn-gradient-text {
  background: linear-gradient(135deg, #a5b4fc 0%, #c4b5fd 50%, #f0abfc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-gradient-text:hover {
  filter: brightness(1.2);
  transform: scale(1.02);
}

/* ============================================================
   6. 排版升级
   ============================================================ */

/* 渐变标题 */
.title-gradient {
  background: linear-gradient(135deg, #fff 0%, #a5b4fc 50%, #c4b5fd 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.title-gradient-lg {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.1;
  background: linear-gradient(135deg, #fff 0%, #a5b4fc 30%, #c4b5fd 60%, #f0abfc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* 大号强调文字 */
.text-display {
  font-size: 4rem;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.text-display-sm {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

/* 微强调文字 */
.text-subtle-highlight {
  color: #a5b4fc;
  font-weight: 500;
}

/* 代码块样式 */
code, pre {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  background: rgba(99, 102, 241, 0.1);
  border-radius: var(--radius-md);
}

pre {
  padding: var(--space-4);
  border: 1px solid rgba(99, 102, 241, 0.2);
}

/* ============================================================
   7. 导航升级
   ============================================================ */

.nav-glass {
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-item {
  position: relative;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 8px 16px;
  transition: color 0.3s ease;
}

.nav-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #6366f1, #8b5cf6);
  transition: all 0.3s ease;
  transform: translateX(-50%);
  border-radius: 2px;
}

.nav-item:hover, .nav-item.active {
  color: #fff;
}

.nav-item:hover::after, .nav-item.active::after {
  width: 100%;
}

/* 导航指示器 */
.nav-indicator {
  position: absolute;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, #6366f1, #8b5cf6);
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================================
   8. 动效系统
   ============================================================ */

/* 淡入上移动画 */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease forwards;
}

/* 渐显动画 */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.animate-fade-in {
  animation: fadeIn 0.8s ease forwards;
}

/* 缩放淡入 */
@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.animate-fade-in-scale {
  animation: fadeInScale 0.5s ease forwards;
}

/* 闪光效果 */
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.animate-shimmer {
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  background-size: 200% 100%;
  animation: shimmer 2s infinite;
}

/* 脉冲发光 */
@keyframes pulse-glow {
  0%, 100% { 
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
  }
  50% { 
    box-shadow: 0 0 40px rgba(99, 102, 241, 0.5);
  }
}

.animate-pulse-glow {
  animation: pulse-glow 2s ease-in-out infinite;
}

/* 浮动动画 */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.animate-float {
  animation: float 3s ease-in-out infinite;
}

/* 旋转渐变 */
@keyframes rotateGradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.animate-gradient {
  background-size: 200% 200%;
  animation: rotateGradient 4s ease infinite;
}

/* 交互动画延迟 */
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }

/* ============================================================
   9. 滚动动画 (Intersection Observer)
   ============================================================ */

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-left.active {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(30px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-right.active {
  opacity: 1;
  transform: translateX(0);
}

/* ============================================================
   10. 装饰元素
   ============================================================ */

/* 圆形光晕 */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}

.orb-cyan {
  background: rgba(34, 211, 238, 0.3);
  width: 300px;
  height: 300px;
}

.orb-pink {
  background: rgba(236, 72, 153, 0.3);
  width: 250px;
  height: 250px;
}

.orb-purple {
  background: rgba(139, 92, 246, 0.3);
  width: 200px;
  height: 200px;
}

/* 渐变线条 */
.gradient-line {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.5), transparent);
}

/* 装饰点 */
.dot-pattern {
  background-image: radial-gradient(rgba(99, 102, 241, 0.3) 1px, transparent 1px);
  background-size: 20px 20px;
}

/* ============================================================
   11. 响应式改进
   ============================================================ */

@media (max-width: 768px) {
  .text-display {
    font-size: 2.5rem;
  }
  
  .text-display-sm {
    font-size: 1.75rem;
  }
  
  .title-gradient-lg {
    font-size: 2.5rem;
  }
  
  .glass-card {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }
  
  .card-modern:hover {
    transform: translateY(-2px);
  }
}

/* ============================================================
   12. 标签和徽章
   ============================================================ */

.tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 500;
  color: #a5b4fc;
}

.tag-gradient {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(139, 92, 246, 0.2));
  border: none;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 600;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ============================================================
   13. 输入框升级
   ============================================================ */

.input-glass {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  color: #fff;
  padding: 14px 18px;
  font-size: 1rem;
  transition: all 0.3s ease;
  width: 100%;
}

.input-glass::placeholder {
  color: var(--text-tertiary);
}

.input-glass:focus {
  outline: none;
  border-color: rgba(99, 102, 241, 0.5);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.2);
}

/* ============================================================
   14. 列表样式
   ============================================================ */

.list-modern {
  list-style: none;
  padding: 0;
}

.list-modern li {
  position: relative;
  padding: 12px 0 12px 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.list-modern li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  border-radius: 50%;
}

.list-modern li:hover {
  background: rgba(255, 255, 255, 0.02);
}

/* ============================================================
   15. 分隔线
   ============================================================ */

.divider-gradient {
  height: 1px;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(99, 102, 241, 0.3) 20%, 
    rgba(139, 92, 246, 0.3) 50%, 
    rgba(236, 72, 153, 0.3) 80%, 
    transparent 100%
  );
}

.divider-glow {
  height: 1px;
  background: transparent;
  position: relative;
}

.divider-glow::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, #6366f1, transparent);
  filter: blur(2px);
}

/* ============================================================
   16. 容器和布局系统
   ============================================================ */

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.container-fluid {
  width: 100%;
  padding: 0 var(--space-6);
}

/* 网格系统 */
.grid {
  display: grid;
  gap: var(--space-6);
}

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

/* 响应式网格 */
@media (max-width: 1024px) {
  .grid-cols-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-cols-5 { grid-template-columns: repeat(3, 1fr); }
  .grid-cols-6 { grid-template-columns: repeat(3, 1fr); }
  
  /* 旧版网格兼容 - 覆盖内联样式 */
  .advantages-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .services-grid { grid-template-columns: repeat(3, 1fr) !important; }
  .tech-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .tech-features { grid-template-columns: repeat(2, 1fr) !important; }
  
  /* 案例网格 */
  .case-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  
  /* Agent 网格 */
  .agent-types {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  
  /* 页脚网格 */
  .footer-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  
  /* Hero 统计 */
  .hero-stats {
    gap: 24px;
    bottom: 32px;
  }
  
  .stat-number {
    font-size: var(--text-3xl);
  }
  
  .stat-divider {
    height: 30px;
  }
}

@media (max-width: 768px) {
  .grid-cols-2,
  .grid-cols-3,
  .grid-cols-4,
  .grid-cols-5,
  .grid-cols-6 { grid-template-columns: 1fr; }
  
  /* 旧版网格兼容 - 移动端 */
  .advantages-grid,
  .services-grid,
  .tech-grid,
  .tech-features,
  .cases-grid,
  .contact-grid,
  .arch-grid,
  .case-grid,
  .agent-types,
  .footer-grid { 
    grid-template-columns: 1fr !important; 
  }
  
  /* 服务卡片移动端 */
  .service-card {
    padding: var(--space-4);
  }
  
  /* Hero区域 */
  .hero-section {
    padding: var(--space-16) 0 var(--space-12) !important;
  }
  
  .hero-title,
  .hero-title.title-gradient {
    font-size: var(--text-3xl) !important;
  }
  
  /* 卡片内边距 */
  .card,
  .card-glass,
  .feature-card,
  .feature-card-modern {
    padding: var(--space-4) !important;
  }
  
  /* 表格移动端 */
  .td-table {
    font-size: var(--text-sm);
  }
  
  .td-table th,
  .td-table td {
    padding: var(--space-2) var(--space-3);
  }
  
  /* 联系网格 */
  .contact-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ============================================================
   17. 间距系统
   ============================================================ */

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

.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-12 { margin-top: var(--space-12); }
.mt-16 { margin-top: var(--space-16); }
.mt-24 { margin-top: var(--space-24); }

.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); }
.mb-12 { margin-bottom: var(--space-12); }

.mx-auto { margin-left: auto; margin-right: auto; }

.p-0 { padding: 0; }
.p-1 { padding: var(--space-1); }
.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); }
.p-12 { padding: var(--space-12); }
.p-16 { padding: var(--space-16); }
.p-24 { padding: var(--space-24); }

.py-4 { padding-top: var(--space-4); padding-bottom: var(--space-4); }
.py-6 { padding-top: var(--space-6); padding-bottom: var(--space-6); }
.py-8 { padding-top: var(--space-8); padding-bottom: var(--space-8); }
.py-12 { padding-top: var(--space-12); padding-bottom: var(--space-12); }
.py-16 { padding-top: var(--space-16); padding-bottom: var(--space-16); }
.py-24 { padding-top: var(--space-24); padding-bottom: var(--space-24); }

.px-4 { padding-left: var(--space-4); padding-right: var(--space-4); }
.px-6 { padding-left: var(--space-6); padding-right: var(--space-6); }
.px-8 { padding-left: var(--space-8); padding-right: var(--space-8); }

/* ============================================================
   18. Flex 布局
   ============================================================ */

.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.flex-1 { flex: 1; }
.flex-auto { flex: auto; }
.flex-none { flex: none; }

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

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

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

/* ============================================================
   19. 文本排版
   ============================================================ */

.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-3xl { font-size: var(--text-3xl); }
.text-4xl { font-size: var(--text-4xl); }
.text-5xl { font-size: var(--text-5xl); }

.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

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

.leading-none { line-height: 1; }
.leading-tight { line-height: 1.25; }
.leading-snug { line-height: 1.375; }
.leading-normal { line-height: 1.5; }
.leading-relaxed { line-height: 1.625; }
.leading-loose { line-height: 2; }

.tracking-tight { letter-spacing: -0.025em; }
.tracking-normal { letter-spacing: 0; }
.tracking-wide { letter-spacing: 0.025em; }

/* ============================================================
   20. 组件增强
   ============================================================ */

/* Section 增强 */
.section {
  padding: var(--space-24) 0;
  position: relative;
}

.section--alt {
  background: var(--bg-surface);
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-12);
}

.section-tag {
  display: inline-block;
  padding: var(--space-2) var(--space-4);
  background: rgba(99, 102, 241, 0.1);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--brand-400);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-4);
}

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

.section-desc {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* 卡片增强 */
.card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  transition: all var(--duration-normal) var(--ease-out);
}

.card:hover {
  border-color: var(--border-default);
  box-shadow: var(--shadow-lg);
}

.card-glass {
  background: rgba(20, 20, 22, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  transition: all 0.3s ease;
}

.card-glass:hover {
  border-color: rgba(99, 102, 241, 0.3);
  box-shadow: 0 0 40px rgba(99, 102, 241, 0.1);
}

/* 功能卡片 */
.feature-card-modern {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card-modern::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
}

.feature-card-modern::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse 80% 50% at 50% -20%, rgba(99, 102, 241, 0.08), transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.feature-card-modern:hover {
  border-color: rgba(99, 102, 241, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.feature-card-modern:hover::after {
  opacity: 1;
}

/* 统计卡片 */
.stat-card {
  text-align: center;
  padding: var(--space-6);
}

.stat-number-lg {
  font-size: var(--text-4xl);
  font-weight: 800;
  background: linear-gradient(135deg, #fff 0%, #a5b4fc 50%, #c4b5fd 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: var(--space-2);
}

.stat-label-sm {
  font-size: var(--text-sm);
  color: var(--text-tertiary);
  font-weight: 500;
}

/* ============================================================
   21. 响应式工具类
   ============================================================ */

@media (max-width: 1024px) {
  .hide-tablet { display: none !important; }
  .text-5xl { font-size: 2.5rem; }
}

@media (max-width: 768px) {
  .hide-mobile { display: none !important; }
  .text-5xl { font-size: 2rem; }
  .text-4xl { font-size: 1.75rem; }
  .text-3xl { font-size: 1.5rem; }
  .section { padding: var(--space-16) 0; }
  .container { padding: 0 var(--space-4); }
}

@media (min-width: 1024px) {
  .hide-desktop { display: none !important; }
}

/* ============================================================
   22. 表格样式
   ============================================================ */

.table-container {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
}

table {
  width: 100%;
  border-collapse: collapse;
}

th, td {
  padding: var(--space-4);
  text-align: left;
  border-bottom: 1px solid var(--border-subtle);
}

th {
  background: var(--bg-elevated);
  font-weight: 600;
  color: var(--text-primary);
  font-size: var(--text-sm);
}

td {
  color: var(--text-secondary);
  font-size: var(--text-sm);
}

tr:hover td {
  background: var(--bg-surface);
}

tr:last-child td {
  border-bottom: none;
}

/* ============================================================
   23. 图片和媒体
   ============================================================ */

.img-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.img-contain {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
}

.avatar-lg {
  width: 64px;
  height: 64px;
}

.avatar-xl {
  width: 96px;
  height: 96px;
}

/* ============================================================
   24. 进度和加载
   ============================================================ */

.progress {
  height: 8px;
  background: var(--bg-subtle);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--brand-500), var(--brand-400));
  border-radius: var(--radius-full);
  transition: width 0.3s ease;
}

.skeleton {
  background: linear-gradient(90deg, var(--bg-elevated) 25%, var(--bg-subtle) 50%, var(--bg-elevated) 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s ease-in-out infinite;
  border-radius: var(--radius-md);
}

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

/* ============================================================
   25. 工具类增强
   ============================================================ */

.overflow-hidden { overflow: hidden; }
.overflow-auto { overflow: auto; }
.overflow-scroll { overflow: scroll; }

.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }

.z-0 { z-index: 0; }
.z-10 { z-index: 10; }
.z-20 { z-index: 20; }
.z-50 { z-index: 50; }
.z-100 { z-index: 100; }

.w-full { width: 100%; }
.h-full { height: 100%; }
.min-h-screen { min-height: 100vh; }

.opacity-0 { opacity: 0; }
.opacity-50 { opacity: 0.5; }
.opacity-75 { opacity: 0.75; }
.opacity-100 { opacity: 1; }

.cursor-pointer { cursor: pointer; }
.cursor-not-allowed { cursor: not-allowed; }

.pointer-events-none { pointer-events: none; }
.select-none { user-select: none; }

/* 阴影变体 */
.shadow-none { box-shadow: none; }
.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }
.shadow-xl { box-shadow: var(--shadow-xl); }
.shadow-glow { box-shadow: var(--shadow-glow); }
.shadow-brand { box-shadow: var(--shadow-brand); }

/* 圆角变体 */
.rounded-none { border-radius: 0; }
.rounded-sm { border-radius: var(--radius-sm); }
.rounded { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-xl { border-radius: var(--radius-xl); }
.rounded-2xl { border-radius: var(--radius-2xl); }
.rounded-full { border-radius: var(--radius-full); }

/* 边框变体 */
.border { border: 1px solid var(--border-subtle); }
.border-0 { border: none; }
.border-t { border-top: 1px solid var(--border-subtle); }
.border-b { border-bottom: 1px solid var(--border-subtle); }
.border-brand { border-color: var(--border-brand); }

/* ============================================================
   26. 页脚增强
   ============================================================ */

.footer-modern {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  padding: var(--space-16) 0 var(--space-8);
  position: relative;
}

.footer-modern::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.3), transparent);
}

.footer-grid-modern {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: var(--space-12);
  margin-bottom: var(--space-12);
}

@media (max-width: 1024px) {
  .footer-grid-modern {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-8);
  }
}

@media (max-width: 768px) {
  .footer-grid-modern {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }
}

.footer-brand-modern {
  max-width: 280px;
}

.footer-logo {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-brand);
  border-radius: var(--radius-lg);
  font-size: var(--text-xl);
  font-weight: 700;
  color: white;
  margin-bottom: var(--space-4);
}

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

.footer-tagline {
  font-size: var(--text-sm);
  color: var(--text-tertiary);
}

.footer-column-title {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-4);
}

.footer-links-modern {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links-modern li {
  margin-bottom: var(--space-2);
}

.footer-links-modern a {
  font-size: var(--text-sm);
  color: var(--text-tertiary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-links-modern a:hover {
  color: var(--brand-400);
}

.footer-bottom-modern {
  padding-top: var(--space-8);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.footer-copyright-modern {
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.footer-social-modern {
  display: flex;
  gap: var(--space-4);
}

.footer-social-modern a {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-tertiary);
  transition: all 0.2s ease;
}

.footer-social-modern a:hover {
  border-color: var(--brand-500);
  color: var(--brand-400);
  background: var(--bg-overlay);
}

/* ============================================================
   27. 导航栏增强
   ============================================================ */

.navbar-modern {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid var(--border-subtle);
  z-index: 1000;
  transition: all 0.3s ease;
}

.navbar-modern.scrolled {
  background: rgba(0, 0, 0, 0.95);
  border-bottom-color: var(--border-default);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.navbar-inner-modern {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--container-xl);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.navbar-brand-modern {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.navbar-brand-modern:hover {
  opacity: 0.9;
}

.navbar-brand-icon-modern {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-brand);
  border-radius: var(--radius-md);
  font-size: var(--text-base);
  font-weight: 700;
  color: white;
}

.navbar-nav-modern {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  list-style: none;
  margin: 0;
  padding: 0;
}

.navbar-nav-modern a {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
  position: relative;
}

.navbar-nav-modern a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--brand-500), var(--brand-400));
  transition: all 0.3s ease;
  transform: translateX(-50%);
  border-radius: 2px;
}

.navbar-nav-modern a:hover,
.navbar-nav-modern a.active {
  color: var(--text-primary);
  background: var(--bg-subtle);
}

.navbar-nav-modern a:hover::after,
.navbar-nav-modern a.active::after {
  width: 60%;
}

.navbar-actions-modern {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

@media (max-width: 768px) {
  .navbar-nav-modern {
    display: none;
  }
  
  .navbar-actions-modern {
    display: none;
  }
}

/* ============================================================
   28. 移动端导航抽屉
   ============================================================ */

.mobile-drawer-modern {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 300px;
  max-width: 85vw;
  background: var(--bg-surface);
  border-left: 1px solid var(--border-subtle);
  z-index: 1001;
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

.mobile-drawer-modern.open {
  transform: translateX(0);
}

.mobile-drawer-overlay-modern {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1000;
}

.mobile-drawer-overlay-modern.open {
  opacity: 1;
  visibility: visible;
}

.mobile-drawer-header-modern {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-4) var(--space-6);
  border-bottom: 1px solid var(--border-subtle);
}

.mobile-drawer-nav-modern {
  padding: var(--space-4) var(--space-6);
}

.mobile-drawer-nav-modern a {
  display: block;
  padding: var(--space-3) 0;
  font-size: var(--text-base);
  color: var(--text-secondary);
  text-decoration: none;
  border-bottom: 1px solid var(--border-subtle);
  transition: color 0.2s ease;
}

.mobile-drawer-nav-modern a:hover,
.mobile-drawer-nav-modern a.active {
  color: var(--brand-400);
}

/* ============================================================
   29. 返回顶部按钮
   ============================================================ */

.back-to-top-modern {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  color: var(--text-secondary);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
  z-index: 999;
}

.back-to-top-modern.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top-modern:hover {
  background: var(--brand-500);
  border-color: var(--brand-500);
  color: white;
  box-shadow: var(--shadow-brand);
}

/* ============================================================
   30. 滚动进度条
   ============================================================ */

.scroll-progress-modern {
  position: fixed;
  top: var(--header-height);
  left: 0;
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg, var(--brand-500), var(--brand-400));
  z-index: 1001;
  transition: width 0.1s ease;
}

/* ============================================================
   31. 底部导航栏（移动端）
   ============================================================ */

.bottom-nav-modern {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  padding: var(--space-2) 0;
  z-index: 999;
}

@media (max-width: 768px) {
  .bottom-nav-modern {
    display: flex;
    justify-content: space-around;
  }
}

.bottom-nav-item-modern {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: var(--space-2);
  color: var(--text-muted);
  text-decoration: none;
  font-size: var(--text-xs);
  transition: color 0.2s ease;
}

.bottom-nav-item-modern.active,
.bottom-nav-item-modern:hover {
  color: var(--brand-400);
}

.bottom-nav-icon-modern {
  width: 24px;
  height: 24px;
}

/* ============================================================
   32. 表单增强
   ============================================================ */

.form-group {
  margin-bottom: var(--space-4);
}

.form-label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: var(--space-2);
}

.form-input-modern {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: var(--text-base);
  transition: all 0.2s ease;
}

.form-input-modern::placeholder {
  color: var(--text-muted);
}

.form-input-modern:focus {
  outline: none;
  border-color: var(--brand-500);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.form-input-modern:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.form-textarea-modern {
  min-height: 120px;
  resize: vertical;
}

.form-select-modern {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2371717a' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 40px;
}

.form-checkbox-modern {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  cursor: pointer;
}

.form-checkbox-modern input {
  width: 18px;
  height: 18px;
  accent-color: var(--brand-500);
}

.form-error {
  color: var(--accent-red);
  font-size: var(--text-sm);
  margin-top: var(--space-1);
}

.form-help {
  color: var(--text-muted);
  font-size: var(--text-sm);
  margin-top: var(--space-1);
}

/* ============================================================
   33. 警告和提示
   ============================================================ */

.alert {
  padding: var(--space-4);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-4);
}

.alert-info {
  background: rgba(34, 211, 238, 0.1);
  border: 1px solid rgba(34, 211, 238, 0.3);
  color: #22d3ee;
}

.alert-success {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #10b981;
}

.alert-warning {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: #f59e0b;
}

.alert-error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #ef4444;
}

/* ============================================================
   34. 加载状态
   ============================================================ */

.spinner {
  width: 24px;
  height: 24px;
  border: 2px solid var(--border-subtle);
  border-top-color: var(--brand-500);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

.loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.loading-spinner {
  width: 48px;
  height: 48px;
  border: 3px solid var(--border-subtle);
  border-top-color: var(--brand-500);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* ============================================================
   35. 工具提示
   ============================================================ */

.tooltip {
  position: relative;
}

.tooltip::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  padding: var(--space-2) var(--space-3);
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  font-size: var(--text-xs);
  color: var(--text-secondary);
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  z-index: 1000;
}

.tooltip:hover::after {
  opacity: 1;
  visibility: visible;
}

/* ============================================================
   36. 打印样式
   ============================================================ */

@media print {
  .no-print { display: none !important; }
  
  body {
    background: white;
    color: black;
  }
  
  .container {
    max-width: 100%;
    padding: 0;
  }
  
  a {
    color: black;
    text-decoration: underline;
  }
}

/* ============================================================
   37. 视觉层次和深度
   ============================================================ */

/* 层级系统 */
.z-index-1 { z-index: 1; }
.z-index-10 { z-index: 10; }
.z-index-20 { z-index: 20; }
.z-index-30 { z-index: 30; }
.z-index-40 { z-index: 40; }
.z-index-50 { z-index: 50; }

/* ============================================================
   39. TD-前缀类兼容 (兼容现有的td-类名)
   ============================================================ */

/* 导航栏 */
.td-navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  z-index: 1000;
}

.td-navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--container-xl);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.td-navbar-brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
}

.td-navbar-brand-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-brand);
  border-radius: var(--radius-md);
  font-size: var(--text-base);
  font-weight: 700;
  color: white;
}

.td-navbar-brand-text {
  font-size: var(--text-lg);
  font-weight: 600;
}

.td-navbar-menu {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.td-navbar-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
}

.td-navbar-item:hover,
.td-navbar-item.active {
  color: var(--text-primary);
  background: var(--bg-subtle);
}

.td-navbar-mobile-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
}

@media (max-width: 768px) {
  .td-navbar-menu {
    display: none;
  }
  
  .td-navbar-mobile-toggle {
    display: flex;
  }
}

/* 按钮 */
.td-button {
  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: 500;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.td-button--primary {
  background: var(--brand-500);
  color: white;
}

.td-button--primary:hover {
  background: var(--brand-400);
  box-shadow: var(--shadow-brand);
}

.td-button--secondary {
  background: var(--bg-elevated);
  color: var(--text-primary);
  border: 1px solid var(--border-default);
}

.td-button--secondary:hover {
  background: var(--bg-overlay);
  border-color: var(--border-hover);
}

.td-button--outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-default);
}

.td-button--outline:hover {
  border-color: var(--brand-500);
  color: var(--brand-400);
}

.td-button--size-small {
  padding: var(--space-2) var(--space-3);
  font-size: var(--text-xs);
}

.td-button--size-large {
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-base);
}

/* 容器 */
.td-container {
  width: 100%;
  max-width: var(--container-xl);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

/* Hero */
.td-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: rgba(99, 102, 241, 0.15);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--brand-400);
}

.td-hero-title {
  font-size: var(--text-5xl);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.1;
  margin-bottom: var(--space-4);
}

.td-hero-subtitle {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Section */
.td-section {
  padding: var(--space-24) 0;
  position: relative;
}

.td-section--alt {
  background: var(--bg-surface);
}

.td-section-header {
  text-align: center;
  margin-bottom: var(--space-12);
}

.td-section-tag {
  display: inline-block;
  padding: var(--space-2) var(--space-4);
  background: rgba(99, 102, 241, 0.1);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--brand-400);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-4);
}

.td-section-title {
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-4);
}

.td-section-desc {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* 页脚 */
.td-footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  padding: var(--space-16) 0 var(--space-8);
}

.td-footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-6);
}

.td-footer-brand {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-1);
}

.td-footer-tagline {
  font-size: var(--text-sm);
  color: var(--text-tertiary);
}

.td-footer-copyright {
  font-size: var(--text-sm);
  color: var(--text-muted);
}

/* 抽屉 */
.td-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 300px;
  max-width: 85vw;
  z-index: 1200;
}

.td-drawer-content {
  position: fixed;
  right: 0;
  top: 0;
  bottom: 0;
  width: 300px;
  background: var(--bg-surface);
  border-left: 1px solid var(--border-subtle);
  padding: var(--space-6);
  transform: translateX(100%);
  transition: transform 0.3s ease;
  z-index: 1201;
}

.td-drawer.active .td-drawer-content {
  transform: translateX(0);
}

.td-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1200;
}

/* 底部导航 */
.bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  padding: var(--space-2) 0;
  z-index: 999;
}

@media (max-width: 768px) {
  .bottom-nav {
    display: flex;
    justify-content: space-around;
  }
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: var(--space-2);
  color: var(--text-muted);
  text-decoration: none;
  font-size: var(--text-xs);
  transition: color 0.2s ease;
}

.bottom-nav-item.active,
.bottom-nav-item:hover {
  color: var(--brand-400);
}

/* ============================================================
   50. 移动端UI/UX专业优化
   ============================================================ */

/* ---------- 触摸交互优化 ---------- */

/* 触摸目标最小尺寸 (Apple HIG建议44px) */
.touch-target {
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 触摸反馈 */
.touch-active:active {
  transform: scale(0.97);
  opacity: 0.9;
  transition: transform 0.1s ease, opacity 0.1s ease;
}

/* 点击高亮移除 (防止蓝色遮罩) */
.no-highlight {
  -webkit-tap-highlight-color: transparent;
  tap-highlight-color: transparent;
}

/* 防止触摸延迟 */
.touch-fast {
  touch-action: manipulation;
}

/* ---------- 移动端导航栏 ---------- */

.mobile-header {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 56px;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  z-index: 1000;
  padding: 0 var(--space-4);
}

@media (max-width: 768px) {
  .mobile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
}

.mobile-header-left,
.mobile-header-right {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.mobile-header-center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.mobile-header-logo {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-brand);
  border-radius: var(--radius-md);
  font-size: var(--text-base);
  font-weight: 700;
  color: white;
}

.mobile-header-title {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--text-primary);
}

.mobile-header-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  border-radius: var(--radius-md);
}

.mobile-header-btn:active {
  background: var(--bg-subtle);
}

/* ---------- 移动端底部导航 ---------- */

.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: rgba(10, 10, 11, 0.98);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-top: 1px solid var(--border-subtle);
  z-index: 999;
  padding: var(--space-2) var(--space-4);
  padding-bottom: calc(var(--space-2) + env(safe-area-inset-bottom, 0px));
}

@media (max-width: 768px) {
  .mobile-bottom-nav {
    display: flex;
    justify-content: space-around;
    align-items: center;
  }
}

.mobile-bottom-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: var(--space-2);
  color: var(--text-muted);
  text-decoration: none;
  font-size: 10px;
  font-weight: 500;
  transition: all 0.2s ease;
  position: relative;
  min-height: 48px;
}

.mobile-bottom-nav-item:active {
  transform: scale(0.95);
}

.mobile-bottom-nav-item.active {
  color: var(--brand-400);
}

.mobile-bottom-nav-item.active::before {
  content: '';
  position: absolute;
  top: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 3px;
  background: var(--brand-500);
  border-radius: 0 0 3px 3px;
}

.mobile-bottom-nav-icon {
  width: 24px;
  height: 24px;
  margin-bottom: 2px;
}

.mobile-bottom-nav-label {
  font-size: 10px;
  line-height: 1;
}

/* ---------- 移动端抽屉菜单 ---------- */

.mobile-menu-drawer {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1001;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mobile-menu-drawer.open {
  pointer-events: auto;
  opacity: 1;
}

.mobile-menu-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
}

.mobile-menu-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 280px;
  max-width: 85vw;
  background: var(--bg-surface);
  border-left: 1px solid var(--border-subtle);
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}

.mobile-menu-drawer.open .mobile-menu-panel {
  transform: translateX(0);
}

.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--border-subtle);
}

.mobile-menu-title {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--text-primary);
}

.mobile-menu-close {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  border-radius: var(--radius-md);
}

.mobile-menu-close:active {
  background: var(--bg-subtle);
}

.mobile-menu-nav {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-4);
}

.mobile-menu-link {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  color: var(--text-secondary);
  text-decoration: none;
  font-size: var(--text-base);
  font-weight: 500;
  border-radius: var(--radius-lg);
  transition: all 0.2s ease;
  margin-bottom: var(--space-1);
}

.mobile-menu-link:active {
  background: var(--bg-subtle);
}

.mobile-menu-link.active {
  color: var(--brand-400);
  background: rgba(99, 102, 241, 0.1);
}

.mobile-menu-footer {
  padding: var(--space-4) var(--space-5);
  border-top: 1px solid var(--border-subtle);
}

/* ---------- 移动端内容区域 ---------- */

.mobile-content {
  padding-bottom: 80px;
}

@media (max-width: 768px) {
  .mobile-content {
    padding-top: 56px;
  }
  
  .mobile-content-no-nav {
    padding-bottom: var(--space-8);
  }
}

/* 安全的底部边距 (适配iPhone底部) */
.safe-area-bottom {
  padding-bottom: calc(var(--space-8) + env(safe-area-inset-bottom, 0px));
}

/* ---------- 移动端排版优化 ---------- */

@media (max-width: 768px) {
  html {
    font-size: 14px;
  }
  
  h1 {
    font-size: var(--text-3xl) !important;
    line-height: 1.2;
  }
  
  h2 {
    font-size: var(--text-2xl) !important;
    line-height: 1.25;
  }
  
  h3 {
    font-size: var(--text-xl) !important;
  }
  
  p {
    font-size: var(--text-base) !important;
    line-height: 1.6;
  }
}

/* ---------- 移动端卡片优化 ---------- */

@media (max-width: 768px) {
  .card,
  .feature-card,
  .glass-card,
  .service-card,
  .advantage-card {
    padding: var(--space-4) !important;
    border-radius: var(--radius-lg) !important;
  }
  
  .card-horizontal {
    flex-direction: column;
  }
  
  .card-horizontal .card-image {
    width: 100%;
    height: 160px;
  }
}

/* ---------- 移动端按钮优化 ---------- */

@media (max-width: 768px) {
  .btn,
  .td-button {
    min-height: 44px;
    padding: var(--space-3) var(--space-5);
    font-size: var(--text-base);
  }
  
  .btn-lg,
  .td-button--size-large {
    min-height: 52px;
    padding: var(--space-4) var(--space-6);
    font-size: var(--text-lg);
  }
  
  .btn-block-mobile {
    width: 100%;
    display: flex;
  }
}

/* ---------- 移动端表单优化 ---------- */

@media (max-width: 768px) {
  .form-input,
  .form-input-modern,
  input[type="text"],
  input[type="email"],
  input[type="password"],
  textarea {
    font-size: 16px !important;
    min-height: 48px;
    padding: var(--space-3) var(--space-4);
  }
  
  textarea {
    min-height: 120px;
  }
  
  .form-group {
    margin-bottom: var(--space-5);
  }
  
  .form-label {
    font-size: var(--text-base);
    margin-bottom: var(--space-2);
  }
}

/* ---------- 移动端网格优化 ---------- */

@media (max-width: 768px) {
  .grid,
  .advantages-grid,
  .services-grid,
  .tech-grid,
  .tech-features,
  .cases-grid,
  .contact-grid,
  .arch-grid,
  .case-grid,
  .agent-types,
  .footer-grid {
    gap: var(--space-4) !important;
  }
  
  .section {
    padding: var(--space-12) 0;
  }
  
  .container {
    padding: 0 var(--space-4);
  }
}

/* ---------- 移动端图片优化 ---------- */

@media (max-width: 768px) {
  img {
    max-width: 100%;
    height: auto;
  }
  
  .hero-image {
    width: 100%;
    max-width: 280px;
    margin: var(--space-6) auto;
    display: block;
  }
}

/* ---------- 移动端加载状态 ---------- */

.mobile-skeleton {
  background: linear-gradient(90deg, var(--bg-elevated) 25%, var(--bg-subtle) 50%, var(--bg-elevated) 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s ease-in-out infinite;
  border-radius: var(--radius-md);
}

.mobile-skeleton-text {
  height: 16px;
  margin-bottom: var(--space-2);
}

.mobile-skeleton-title {
  height: 24px;
  width: 60%;
  margin-bottom: var(--space-3);
}

.mobile-skeleton-image {
  width: 100%;
  height: 180px;
  border-radius: var(--radius-lg);
}

/* ---------- 移动端手势支持 ---------- */

/* 下拉刷新提示 */
.pull-to-refresh {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
  color: var(--text-muted);
  font-size: var(--text-sm);
}

.pull-to-refresh-icon {
  width: 24px;
  height: 24px;
  margin-bottom: var(--space-2);
  animation: pull-down 1s ease-in-out infinite;
}

@keyframes pull-down {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

/* 滑动返回提示 */
.swipe-back-indicator {
  position: fixed;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 60px;
  background: var(--brand-500);
  border-radius: 0 4px 4px 0;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 100;
}

.swipe-back-indicator.visible {
  opacity: 1;
}

/* ---------- 移动端工具类 ---------- */

@media (max-width: 768px) {
  .hide-tablet { display: none !important; }
  .hide-desktop { display: none !important; }
  
  .text-center-mobile { text-align: center !important; }
  .text-left-mobile { text-align: left !important; }
  .text-right-mobile { text-align: right !important; }
  
  .flex-col-mobile { flex-direction: column !important; }
  .flex-center-mobile { align-items: center; justify-content: center; }
  
  .w-full-mobile { width: 100% !important; }
  .h-auto-mobile { height: auto !important; }
  
  .p-0-mobile { padding: 0 !important; }
  .p-4-mobile { padding: var(--space-4) !important; }
  .m-0-mobile { margin: 0 !important; }
  .mt-4-mobile { margin-top: var(--space-4) !important; }
  .mb-4-mobile { margin-bottom: var(--space-4) !important; }
  
  .gap-2-mobile { gap: var(--space-2) !important; }
  .gap-4-mobile { gap: var(--space-4) !important; }
}

/* ---------- 移动端安全区域适配 ---------- */

@supports (padding: max(0px)) {
  .mobile-bottom-nav {
    padding-bottom: max(var(--space-2), env(safe-area-inset-bottom));
  }
  
  .mobile-header {
    padding-top: max(var(--space-2), env(safe-area-inset-top));
    padding-left: max(var(--space-4), env(safe-area-inset-left));
    padding-right: max(var(--space-4), env(safe-area-inset-right));
  }
}

/* ---------- 平板端优化 ---------- */

@media (min-width: 769px) and (max-width: 1024px) {
  .hide-mobile { display: none !important; }
  
  .tablet-grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .tablet-grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* 移动端默认隐藏，桌面端隐藏 */
.mobile-header,
.mobile-bottom-nav,
.mobile-menu-drawer {
  display: none !important;
}

@media (min-width: 769px) {
  .mobile-header,
  .mobile-bottom-nav,
  .mobile-menu-drawer {
    display: none !important;
  }
}

@media (max-width: 768px) {
  .mobile-header,
  .mobile-bottom-nav,
  .mobile-menu-drawer {
    display: flex !important;
  }
  
  /* 隐藏桌面端元素 */
  .td-navbar,
  .navbar,
  .bottom-nav,
  .desktop-only {
    display: none !important;
  }
}

@media (min-width: 769px) {
  /* 桌面端显示传统导航 */
  .td-navbar,
  .navbar {
    display: flex !important;
  }
}

/* 表格 */
.td-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-base);
}

.td-table th,
.td-table td {
  padding: var(--space-4);
  text-align: left;
  border-bottom: 1px solid var(--border-subtle);
}

.td-table th {
  background: var(--bg-elevated);
  font-weight: 600;
  color: var(--text-primary);
}

.td-table td {
  color: var(--text-secondary);
}

.td-table tr:hover td {
  background: var(--bg-surface);
}

/* 滚动进度条 */
.scroll-progress-bar {
  position: fixed;
  top: var(--header-height);
  left: 0;
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg, var(--brand-500), var(--brand-400));
  z-index: 1001;
  transition: width 0.1s ease;
}

/* 返回顶部 */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  color: var(--text-secondary);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
  z-index: 999;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--brand-500);
  border-color: var(--brand-500);
  color: white;
}

/* 深度效果 */
.depth-1 { box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1); }
.depth-2 { box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); }
.depth-3 { box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15); }
.depth-4 { box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2); }
.depth-5 { box-shadow: 0 16px 32px rgba(0, 0, 0, 0.25); }

/* 模糊效果 */
.blur-sm { filter: blur(4px); }
.blur-md { filter: blur(8px); }
.blur-lg { filter: blur(16px); }
.blur-xl { filter: blur(24px); }

/* 不透明度变体 */
.opacity-0 { opacity: 0; }
.opacity-10 { opacity: 0.1; }
.opacity-20 { opacity: 0.2; }
.opacity-30 { opacity: 0.3; }
.opacity-40 { opacity: 0.4; }
.opacity-50 { opacity: 0.5; }
.opacity-60 { opacity: 0.6; }
.opacity-70 { opacity: 0.7; }
.opacity-80 { opacity: 0.8; }
.opacity-90 { opacity: 0.9; }
.opacity-100 { opacity: 1; }

/* ============================================================
   38. 装饰性和视觉增强
   ============================================================ */

/* 渐变背景 */
.bg-gradient-brand { background: var(--gradient-brand); }
.bg-gradient-subtle { background: var(--gradient-subtle); }
.bg-gradient-mesh { background: var(--gradient-mesh); }

/* 光晕装饰 */
.glow-spot {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
  opacity: 0.5;
}

.glow-spot-sm { width: 100px; height: 100px; }
.glow-spot-md { width: 200px; height: 200px; }
.glow-spot-lg { width: 400px; height: 400px; }

.glow-spot-brand { background: var(--brand-500); }
.glow-spot-cyan { background: var(--accent-cyan); }
.glow-spot-pink { background: var(--accent-pink); }

/* 边框装饰 */
.border-gradient {
  border: 1px solid transparent;
  background: linear-gradient(var(--bg-elevated), var(--bg-elevated)) padding-box,
              linear-gradient(135deg, var(--brand-500), var(--brand-400), var(--accent-pink)) border-box;
}

.border-glow {
  position: relative;
}

.border-glow::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--brand-500), var(--accent-pink));
  z-index: -1;
  filter: blur(8px);
  opacity: 0.5;
}

/* ============================================================
   39. 视觉一致性工具类
   ============================================================ */

/* 文本截断 */
.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.line-clamp-1 {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

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

.focus-visible:focus:not(:focus-visible) {
  outline: none;
}

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

/* 高对比度模式 */
@media (prefers-contrast: high) {
  :root {
    --border-subtle: rgba(255, 255, 255, 0.15);
    --border-default: rgba(255, 255, 255, 0.2);
    --text-secondary: #e5e5e5;
  }
}

/* 暗色模式 (备用) */
@media (prefers-color-scheme: dark) {
  :root {
    /* 已经是暗色模式，无需调整 */
  }
}