/* 世界杯竞猜DAPP - 精致版移动端设计 */

/* 引入Inter字体 - Figma标准字体 */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
  /* 主色调 - 荧光绿（足球草地色） */
  --primary: #00E676;
  --primary-dark: #00C853;
  --primary-light: #69F0AE;
  --primary-rgb: 0, 230, 118;

  /* FIFA品牌色 - 保留用于特殊场景 */
  --fifa-blue: #326295;
  --fifa-dark-blue: #1a3a52;
  --fifa-light-blue: #4a8bc2;

  /* 足球绿茵色 - 现在作为主色 */
  --grass-green: #00E676;
  --grass-dark: #00C853;
  --grass-light: #69F0AE;

  /* 强调色 - 荧光红/粉 */
  --accent: #FF1744;
  --accent-light: #FF5252;
  --accent-dark: #D50000;
  --accent-rgb: 255, 23, 68;

  /* 背景色系统 - 暗色主题（默认） */
  --bg-primary: #0f1419;
  --bg-secondary: #1a1f26;
  --bg-card: #1e2329;
  --bg-hover: #242a31;
  --bg-elevated: #2a3038;

  /* 文字色系统 */
  --text-primary: #e8eaed;
  --text-secondary: #9aa0a6;
  --text-muted: #6c7a8d;
  --text-disabled: #4a5568;

  /* 功能色 */
  --success: #00E676;
  --warning: #FFC107;
  --danger: #FF1744;
  --info: #00BCD4;

  /* 阴影系统 */
  --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);
  --shadow-inner: inset 0 2px 4px 0 rgba(0, 0, 0, 0.05);

  /* 发光效果 - 绿色 */
  --glow: 0 0 20px rgba(0, 230, 118, 0.3);
  --glow-strong: 0 0 30px rgba(0, 230, 118, 0.5);

  /* 圆角系统 */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-2xl: 20px;
  --radius-full: 9999px;

  /* 间距系统 - 8pt网格 */
  --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;

  /* 过渡 */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 200ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 300ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 500ms cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* 亮色主题 */
:root[data-theme="light"] {
  /* 背景色系统 - 亮色主题 */
  --bg-primary: #f8f9fa;
  --bg-secondary: #ffffff;
  --bg-card: #ffffff;
  --bg-hover: #e9ecef;
  --bg-elevated: #f1f3f5;

  /* 文字色系统 */
  --text-primary: #212529;
  --text-secondary: #495057;
  --text-muted: #6c757d;
  --text-disabled: #adb5bd;

  /* 阴影系统 - 亮色主题增强 */
  --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.1);
  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.15), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.15), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.15), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.15), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.3);
  --shadow-inner: inset 0 2px 4px 0 rgba(0, 0, 0, 0.1);
}

/* 全局重置 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

*:focus {
  outline: none;
}

*:focus-visible {
  outline: 2px solid var(--fifa-blue);
  outline-offset: 2px;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  min-height: -webkit-fill-available;
  overflow-x: hidden;
  font-size: 14px;
  font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
  text-rendering: optimizeLegibility;

  /* iOS安全区域 */
  padding-top: constant(safe-area-inset-top);
  padding-top: env(safe-area-inset-top);
  padding-bottom: constant(safe-area-inset-bottom);
  padding-bottom: env(safe-area-inset-bottom);
}

/* iOS滚动优化 */
html {
  height: -webkit-fill-available;
}

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

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  transition: background var(--transition-base);
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* 容器 */
.container {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding: 0 var(--space-4);
}

/* 头部 */
.header {
  background: linear-gradient(135deg, var(--fifa-dark-blue) 0%, var(--fifa-blue) 100%);
  padding: var(--space-4) 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-lg);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  text-decoration: none;
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.3px;
  transition: opacity var(--transition-base);
}

.logo:active {
  opacity: 0.7;
}

.logo-icon {
  width: 28px;
  height: 28px;
  fill: var(--accent);
  filter: drop-shadow(0 2px 8px rgba(255, 215, 0, 0.4));
  flex-shrink: 0;
}

.wallet-btn {
  background: var(--primary);
  color: #000;
  border: none;
  padding: var(--space-2) var(--space-5);
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  cursor: pointer;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-sm);
  white-space: nowrap;
  font-family: inherit;
  letter-spacing: 0.5px;
}

.wallet-btn:hover {
  background: var(--primary-light);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.wallet-btn:active {
  transform: scale(0.96);
}

.wallet-btn.connected {
  background: var(--success);
  color: #000;
  box-shadow: var(--shadow-sm), var(--glow);
}

.wallet-btn.connected:hover {
  background: var(--grass-light);
}

/* 导航 */
.nav {
  background: rgba(20, 27, 38, 0.95);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  padding: var(--space-2) 0;
  position: sticky;
  top: 56px;
  z-index: 999;
  box-shadow: var(--shadow-sm);
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.nav::-webkit-scrollbar {
  display: none;
}

.nav-list {
  display: flex;
  gap: var(--space-2);
  list-style: none;
  padding: 0 var(--space-4);
  min-width: max-content;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  transition: all var(--transition-base);
  white-space: nowrap;
  display: block;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--accent);
  border-radius: var(--radius-full);
  transition: width var(--transition-base);
}

.nav-link:active {
  transform: scale(0.95);
}

.nav-link.active {
  background: transparent;
  color: white;
  box-shadow: none;
}

.nav-link.active::after {
  background: white;
  width: 40%;
}

/* 卡片 */
.card {
  background: linear-gradient(135deg, var(--bg-card) 0%, rgba(26, 35, 50, 0.8) 100%);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  margin-bottom: var(--space-4);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
  border: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: hidden;
}

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

.card:active {
  transform: translateY(-2px) scale(0.99);
  box-shadow: var(--shadow-lg);
}

.card-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-4);
  display: flex;
  align-items: center;
  gap: var(--space-2);
  letter-spacing: -0.3px;
}

.card-icon {
  width: 20px;
  height: 20px;
  fill: var(--accent);
  flex-shrink: 0;
}

/* 按钮系统 */
.btn {
  background: var(--accent);
  color: white;
  border: none;
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  text-decoration: none;
  font-family: inherit;
  position: relative;
  overflow: hidden;
}

.btn:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn:active {
  transform: translateY(0);
  box-shadow: var(--shadow-sm);
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn:active::before {
  width: 300px;
  height: 300px;
}

.btn:active {
  transform: scale(0.96);
}

.btn-primary {
  background: linear-gradient(135deg, var(--fifa-blue) 0%, var(--fifa-light-blue) 100%);
  box-shadow: var(--shadow-md), var(--glow);
}

.btn-success {
  background: linear-gradient(135deg, var(--grass-green) 0%, var(--grass-light) 100%);
  box-shadow: var(--shadow-md), var(--glow);
}

.btn-gold {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent) 100%);
  color: var(--bg-primary);
  box-shadow: var(--shadow-md), var(--glow);
}

.btn-danger {
  background: linear-gradient(135deg, #c0392b 0%, var(--danger) 100%);
}

.btn-secondary {
  background: var(--bg-hover);
  box-shadow: var(--shadow-sm);
}

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--fifa-blue);
  box-shadow: none;
}

.btn-small {
  padding: var(--space-2) var(--space-4);
  font-size: 13px;
}

.btn-large {
  padding: var(--space-4) var(--space-8);
  font-size: 16px;
}

.btn-block {
  width: 100%;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

/* 表单 */
.form-group {
  margin-bottom: var(--space-5);
}

.form-label {
  display: block;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
  margin-bottom: var(--space-2);
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.form-input,
.form-select {
  width: 100%;
  background: var(--bg-secondary);
  border: 1.5px solid transparent;
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  color: var(--text-primary);
  font-size: 15px;
  font-family: inherit;
  transition: all var(--transition-base);
  -webkit-appearance: none;
  appearance: none;
}

.form-input:focus,
.form-select:focus {
  outline: none;
  border-color: var(--fifa-blue);
  background: var(--bg-hover);
  box-shadow: 0 0 0 3px rgba(var(--fifa-blue-rgb), 0.1);
}

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

/* 徽章 */
.badge {
  display: inline-flex;
  align-items: center;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.badge-success {
  background: rgba(39, 174, 96, 0.15);
  color: var(--success-light);
  border: 1px solid rgba(39, 174, 96, 0.3);
}

.badge-warning {
  background: rgba(243, 156, 18, 0.15);
  color: var(--warning-light);
  border: 1px solid rgba(243, 156, 18, 0.3);
}

.badge-danger {
  background: rgba(231, 76, 60, 0.15);
  color: var(--danger-light);
  border: 1px solid rgba(231, 76, 60, 0.3);
}

.badge-info {
  background: rgba(52, 152, 219, 0.15);
  color: #5dade2;
  border: 1px solid rgba(52, 152, 219, 0.3);
}

.badge-gold {
  background: rgba(255, 215, 0, 0.15);
  color: var(--accent);
  border: 1px solid rgba(255, 215, 0, 0.3);
}

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

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

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

/* 统计框 */
.stat-box {
  text-align: center;
  padding: var(--space-4);
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all var(--transition-base);
}

.stat-box:active {
  transform: scale(0.98);
}

.stat-value {
  font-size: 24px;
  font-weight: 900;
  color: white;
  margin-bottom: var(--space-1);
  letter-spacing: -0.5px;
  font-feature-settings: 'tnum';
}

.stat-label {
  font-size: 10px;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* 模态框 */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  z-index: 2000;
  justify-content: center;
  align-items: flex-end;
  padding: 0;
}

.modal.active {
  display: flex;
  animation: modalFadeIn var(--transition-base);
}

.modal-content {
  background: var(--bg-card);
  border-radius: var(--radius-2xl) var(--radius-2xl) 0 0;
  padding: var(--space-8) var(--space-6);
  width: 100%;
  max-width: 480px;
  max-height: 85vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  box-shadow: var(--shadow-2xl);
  position: relative;
  animation: modalSlideUp var(--transition-slow);
}

.modal-close {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  background: var(--bg-hover);
  border: none;
  color: var(--text-secondary);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-base);
  font-family: inherit;
}

.modal-close:active {
  transform: scale(0.9);
  background: var(--bg-secondary);
}

.modal-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-6);
  text-align: center;
  letter-spacing: -0.3px;
}

/* 底部 */
.footer {
  background: var(--bg-secondary);
  padding: var(--space-8) 0;
  margin-top: var(--space-12);
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-text {
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.8;
}

/* 加载动画 */
.loading {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  border-top-color: var(--text-primary);
  animation: spin 0.6s linear infinite;
}

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

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

@keyframes modalSlideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* 图标 */
.icon {
  width: 18px;
  height: 18px;
  fill: currentColor;
  flex-shrink: 0;
}

.icon-large {
  width: 28px;
  height: 28px;
}

/* 分隔线 */
.divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.05);
  margin: var(--space-5) 0;
}

/* 提示框 */
.alert {
  padding: var(--space-4);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-4);
  font-size: 13px;
  line-height: 1.6;
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
}

.alert-info {
  background: rgba(52, 152, 219, 0.1);
  border: 1px solid rgba(52, 152, 219, 0.2);
  color: var(--text-secondary);
}

.alert-warning {
  background: rgba(243, 156, 18, 0.1);
  border: 1px solid rgba(243, 156, 18, 0.2);
  color: var(--text-secondary);
}

.alert-success {
  background: rgba(39, 174, 96, 0.1);
  border: 1px solid rgba(39, 174, 96, 0.2);
  color: var(--text-secondary);
}

/* 空状态 */
.empty-state {
  text-align: center;
  padding: var(--space-12) var(--space-6);
  color: var(--text-muted);
}

.empty-state-icon {
  width: 48px;
  height: 48px;
  fill: var(--text-muted);
  margin: 0 auto var(--space-6);
  opacity: 0.3;
}

.empty-state-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: var(--space-2);
}

.empty-state-text {
  font-size: 13px;
  line-height: 1.6;
}

/* 图片 */
img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  display: block;
}

/* 工具类 */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

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

.text-primary { color: var(--text-primary); }
.text-secondary { color: var(--text-secondary); }
.text-muted { color: var(--text-muted); }
.text-gold { color: var(--accent); }
.text-success { color: var(--success); }
.text-warning { color: var(--warning); }
.text-danger { color: var(--danger); }

/* 移动端适配 */
@media (max-width: 639px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }

  /* 全球资金池移动端优化 */
  .card .grid-3 > div {
    padding: 15px 8px !important;
  }

  .card .grid-3 > div > div:first-child {
    font-size: 24px !important;
    color: var(--primary) !important;
  }

  .card .grid-3 > div > div:last-child {
    font-size: 10px !important;
  }
}
  .container {
    max-width: 640px;
    padding: 0 var(--space-6);
  }

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

  .modal {
    align-items: center;
    padding: var(--space-6);
  }

  .modal-content {
    border-radius: var(--radius-2xl);
    max-height: 90vh;
  }
}

/* 桌面适配 */
@media (min-width: 1024px) {
  .container {
    max-width: 768px;
  }
}

/* iOS特定优化 */
@supports (-webkit-touch-callout: none) {
  body {
    min-height: -webkit-fill-available;
  }
}

/* 触摸设备优化 */
@media (hover: none) and (pointer: coarse) {
  .btn,
  .nav-link,
  .card,
  .wallet-btn {
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
  }
}

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

/* 图片懒加载样式 */
img[loading="lazy"] {
  opacity: 0;
  transition: opacity var(--transition-slow);
}

img[loading="lazy"].loaded {
  opacity: 1;
}

.lazy-placeholder {
  position: relative;
  background: linear-gradient(90deg, var(--bg-card) 0%, var(--bg-hover) 50%, var(--bg-card) 100%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-md);
}

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

.lazy-placeholder::after {
  content: '⚽';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 2rem;
  opacity: 0.3;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 0.3;
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    opacity: 0.5;
    transform: translate(-50%, -50%) scale(1.1);
  }
}

/* 主题切换按钮 */
.theme-toggle {
  position: fixed;
  bottom: var(--space-6);
  right: var(--space-4);
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background: var(--primary);
  border: 1px solid rgba(0, 230, 118, 0.2);
  box-shadow: var(--shadow-md), var(--glow);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  transition: all var(--transition-base);
  z-index: 999;
  color: #000;
  -webkit-tap-highlight-color: transparent;
}

.theme-toggle:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg), var(--glow-strong);
  background: var(--primary-light);
}

.theme-toggle:active {
  transform: translateY(0) scale(0.95);
}

/* 主题切换动画 */
body {
  transition: background-color var(--transition-slow), color var(--transition-slow);
}

*,
*::before,
*::after {
  transition-property: background-color, border-color, color, box-shadow;
  transition-duration: var(--transition-slow);
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* 打印样式 */
@media print {
  .header,
  .nav,
  .footer {
    display: none;
  }
}
