/* 现代简洁响应式样式 - 统一设计系统 */

/* CSS变量定义 - 设计令牌 */
:root {
  /* 颜色系统 */
  --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;
  
  --secondary-50: #f8fafc;
  --secondary-100: #f1f5f9;
  --secondary-200: #e2e8f0;
  --secondary-300: #cbd5e1;
  --secondary-400: #94a3b8;
  --secondary-500: #64748b;
  --secondary-600: #475569;
  --secondary-700: #334155;
  --secondary-800: #1e293b;
  --secondary-900: #0f172a;
  
  --success-500: #10b981;
  --warning-500: #f59e0b;
  --error-500: #ef4444;
  
  /* 渐变色 */
  --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --gradient-success: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  
  /* 间距系统 */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  
  /* 字体系统 */
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 1.875rem;
  --font-size-4xl: 2.25rem;
  
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  
  /* 圆角系统 */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-full: 9999px;
  
  /* 阴影系统 */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  
  /* 动画时长 */
  --duration-fast: 150ms;
  --duration-normal: 300ms;
  --duration-slow: 500ms;
  
  /* 断点 */
  --breakpoint-sm: 640px;
  --breakpoint-md: 768px;
  --breakpoint-lg: 1024px;
  --breakpoint-xl: 1280px;
}

/* 基础重置 */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--secondary-800);
  background-color: var(--secondary-50);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

@media (min-width: 768px) {
  .container {
    max-width: 768px;
    padding: 0 var(--space-8);
  }
}

@media (min-width: 1024px) {
  .container {
    max-width: 1024px;
  }
}

/* 移动端优先的响应式设计 */
.mobile-container {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  background: white;
  position: relative;
  overflow-x: hidden;
}

/* 现代卡片组件 */
.card {
  background: white;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: all var(--duration-normal) ease;
}

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

.card-header {
  padding: var(--space-6);
  border-bottom: 1px solid var(--secondary-200);
}

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

.card-footer {
  padding: var(--space-6);
  border-top: 1px solid var(--secondary-200);
  background: var(--secondary-50);
}

/* 现代按钮系统 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  border: none;
  border-radius: var(--radius-lg);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-medium);
  text-decoration: none;
  cursor: pointer;
  transition: all var(--duration-normal) ease;
  user-select: none;
  white-space: nowrap;
}

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

.btn-primary {
  background: var(--gradient-primary);
  color: white;
}

.btn-primary:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background: var(--secondary-100);
  color: var(--secondary-700);
  border: 1px solid var(--secondary-300);
}

.btn-secondary:hover:not(:disabled) {
  background: var(--secondary-200);
  border-color: var(--secondary-400);
}

.btn-success {
  background: var(--gradient-success);
  color: white;
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--primary-500);
  color: var(--primary-500);
}

.btn-outline:hover:not(:disabled) {
  background: var(--primary-500);
  color: white;
}

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

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

.btn-full {
  width: 100%;
}

/* 现代表单组件 */
.form-group {
  margin-bottom: var(--space-6);
}

.form-label {
  display: block;
  margin-bottom: var(--space-2);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  color: var(--secondary-700);
}

.form-input {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  border: 2px solid var(--secondary-300);
  border-radius: var(--radius-lg);
  font-size: var(--font-size-base);
  transition: all var(--duration-normal) ease;
  background: white;
}

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

.form-input::placeholder {
  color: var(--secondary-400);
}

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

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
  background-position: right var(--space-3) center;
  background-repeat: no-repeat;
  background-size: 16px 12px;
  padding-right: var(--space-10);
}

/* 现代导航组件 */
.navbar {
  background: white;
  border-bottom: 1px solid var(--secondary-200);
  padding: var(--space-4) 0;
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.95);
}

.navbar-brand {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  color: var(--primary-600);
  text-decoration: none;
}

.navbar-nav {
  display: flex;
  gap: var(--space-6);
  list-style: none;
}

.navbar-link {
  color: var(--secondary-600);
  text-decoration: none;
  font-weight: var(--font-weight-medium);
  transition: color var(--duration-normal) ease;
}

.navbar-link:hover,
.navbar-link.active {
  color: var(--primary-600);
}

/* 底部导航 */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  border-top: 1px solid var(--secondary-200);
  padding: var(--space-2) 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.95);
}

.bottom-nav-container {
  display: flex;
  justify-content: space-around;
  align-items: center;
  max-width: 480px;
  margin: 0 auto;
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-2);
  color: var(--secondary-500);
  text-decoration: none;
  font-size: var(--font-size-xs);
  transition: color var(--duration-normal) ease;
}

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

.bottom-nav-icon {
  font-size: var(--font-size-xl);
}

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

.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); }

@media (min-width: 640px) {
  .sm\:grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
  .sm\:grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
  .sm\:grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 768px) {
  .md\:grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
  .md\:grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
  .md\:grid-cols-6 { grid-template-columns: repeat(6, 1fr); }
}

/* Flexbox工具类 */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-around { justify-content: space-around; }
.flex-1 { flex: 1; }
.flex-shrink-0 { flex-shrink: 0; }

/* 间距工具类 */
.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-6 { padding: var(--space-6); }
.p-8 { padding: var(--space-8); }

.px-4 { padding-left: var(--space-4); padding-right: var(--space-4); }
.py-2 { padding-top: var(--space-2); padding-bottom: var(--space-2); }
.py-4 { padding-top: var(--space-4); padding-bottom: var(--space-4); }

.m-0 { margin: 0; }
.m-2 { margin: var(--space-2); }
.m-4 { margin: var(--space-4); }
.mb-2 { margin-bottom: var(--space-2); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }

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

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

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

.text-primary { color: var(--primary-600); }
.text-secondary { color: var(--secondary-600); }
.text-success { color: var(--success-500); }
.text-warning { color: var(--warning-500); }
.text-error { color: var(--error-500); }

/* 背景工具类 */
.bg-white { background-color: white; }
.bg-primary { background: var(--gradient-primary); }
.bg-secondary { background-color: var(--secondary-100); }
.bg-success { background-color: var(--success-500); }

/* 圆角工具类 */
.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); }

/* 阴影工具类 */
.shadow { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }
.shadow-xl { box-shadow: var(--shadow-xl); }

/* 位置工具类 */
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.sticky { position: sticky; }

.top-0 { top: 0; }
.bottom-0 { bottom: 0; }
.left-0 { left: 0; }
.right-0 { right: 0; }

/* 显示工具类 */
.hidden { display: none; }
.block { display: block; }
.inline { display: inline; }
.inline-block { display: inline-block; }

/* 宽高工具类 */
.w-full { width: 100%; }
.h-full { height: 100%; }
.min-h-screen { min-height: 100vh; }

/* 现代加载动画 */
.loading-spinner {
  width: 24px;
  height: 24px;
  border: 2px solid var(--secondary-300);
  border-top: 2px solid var(--primary-500);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* 现代模态框 */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transition: all var(--duration-normal) ease;
  z-index: 100;
}

.sidebar-header {
  padding: var(--space-6);
  border-bottom: 1px solid var(--secondary-200);
}

.sidebar-content {
  padding: var(--space-4);
  height: calc(100vh - 80px);
  overflow-y: auto;
}

.sidebar-nav {
  list-style: none;
}

.sidebar-nav-item {
  margin-bottom: var(--space-2);
}

.sidebar-nav-link {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  color: var(--secondary-600);
  text-decoration: none;
  border-radius: var(--radius-lg);
  transition: all var(--duration-normal) ease;
}

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

/* 现代主内容区域 */
.main-content {
  min-height: 100vh;
  padding-bottom: 80px; /* 为底部导航留出空间 */
}

.content-header {
  padding: var(--space-6) 0;
  border-bottom: 1px solid var(--secondary-200);
  margin-bottom: var(--space-6);
}

.page-title {
  font-size: var(--font-size-3xl);
  font-weight: var(--font-weight-bold);
  color: var(--secondary-800);
  margin-bottom: var(--space-2);
}

.page-subtitle {
  color: var(--secondary-600);
  font-size: var(--font-size-lg);
}

/* 现代响应式图片 */
.responsive-img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
}

/* 现代视频容器 */
.video-container {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%; /* 16:9 宽高比 */
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.video-container iframe,
.video-container video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* 现代音频播放器 */
.audio-player {
  background: white;
  border-radius: var(--radius-xl);
  padding: var(--space-4);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.audio-controls {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.audio-progress {
  flex: 1;
  height: 4px;
  background: var(--secondary-200);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.audio-progress-bar {
  height: 100%;
  background: var(--primary-500);
  transition: width var(--duration-normal) ease;
}

/* 现代地图容器 */
.map-container {
  width: 100%;
  height: 300px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

/* 现代图表容器 */
.chart-container {
  background: white;
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  box-shadow: var(--shadow-md);
}

.chart-title {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
  color: var(--secondary-800);
  margin-bottom: var(--space-4);
}

/* 现代日历组件 */
.calendar {
  background: white;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.calendar-header {
  background: var(--primary-500);
  color: white;
  padding: var(--space-4);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}

.calendar-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--secondary-200);
  cursor: pointer;
  transition: all var(--duration-normal) ease;
}

.calendar-day:hover {
  background: var(--primary-50);
}

.calendar-day.today {
  background: var(--primary-500);
  color: white;
}

.calendar-day.selected {
  background: var(--primary-600);
  color: white;
}

/* 现代聊天界面 */
.chat-container {
  display: flex;
  flex-direction: column;
  height: 100vh;
  background: var(--secondary-50);
}

.chat-header {
  background: white;
  padding: var(--space-4);
  border-bottom: 1px solid var(--secondary-200);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.chat-messages {
  flex: 1;
  padding: var(--space-4);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.chat-message {
  max-width: 70%;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-lg);
  word-wrap: break-word;
}

.chat-message.sent {
  align-self: flex-end;
  background: var(--primary-500);
  color: white;
  border-bottom-right-radius: var(--radius-sm);
}

.chat-message.received {
  align-self: flex-start;
  background: white;
  color: var(--secondary-800);
  border-bottom-left-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}

.chat-input-container {
  background: white;
  padding: var(--space-4);
  border-top: 1px solid var(--secondary-200);
  display: flex;
  gap: var(--space-3);
  align-items: center;
}

.chat-input {
  flex: 1;
  border: none;
  outline: none;
  padding: var(--space-3);
  border-radius: var(--radius-lg);
  background: var(--secondary-100);
}

/* 现代通知中心 */
.notification-center {
  position: fixed;
  top: var(--space-4);
  right: var(--space-4);
  width: 320px;
  max-height: 80vh;
  overflow-y: auto;
  z-index: 200;
}

.notification {
  background: white;
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  margin-bottom: var(--space-3);
  box-shadow: var(--shadow-lg);
  border-left: 4px solid var(--primary-500);
  animation: slideInRight var(--duration-normal) ease;
}

.notification.success {
  border-left-color: var(--success-500);
}

.notification.warning {
  border-left-color: var(--warning-500);
}

.notification.error {
  border-left-color: var(--error-500);
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(100%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* 现代加载状态 */
.loading-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-16);
  color: var(--secondary-500);
}

.loading-text {
  margin-top: var(--space-4);
  font-size: var(--font-size-sm);
}

/* 现代错误状态 */
.error-container {
  text-align: center;
  padding: var(--space-16);
  color: var(--error-500);
}

.error-icon {
  font-size: var(--font-size-4xl);
  margin-bottom: var(--space-4);
}

.error-title {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--space-2);
}

.error-message {
  color: var(--secondary-600);
  margin-bottom: var(--space-6);
}

/* 现代成功状态 */
.success-container {
  text-align: center;
  padding: var(--space-16);
  color: var(--success-500);
}

.success-icon {
  font-size: var(--font-size-4xl);
  margin-bottom: var(--space-4);
}

/* 现代暗色主题支持 */
@media (prefers-color-scheme: dark) {
  :root {
    --secondary-50: #0f172a;
    --secondary-100: #1e293b;
    --secondary-200: #334155;
    --secondary-300: #475569;
    --secondary-400: #64748b;
    --secondary-500: #94a3b8;
    --secondary-600: #cbd5e1;
    --secondary-700: #e2e8f0;
    --secondary-800: #f1f5f9;
    --secondary-900: #f8fafc;
  }
  
  body {
    background-color: var(--secondary-50);
    color: var(--secondary-800);
  }
  
  .card,
  .modal-content,
  .navbar,
  .bottom-nav {
    background: var(--secondary-100);
    border-color: var(--secondary-300);
  }
  
  .form-input {
    background: var(--secondary-100);
    border-color: var(--secondary-300);
    color: var(--secondary-800);
  }
  
  .btn-secondary {
    background: var(--secondary-200);
    color: var(--secondary-800);
    border-color: var(--secondary-400);
  }
}

/* 现代打印样式 */
@media print {
  .navbar,
  .bottom-nav,
  .fab,
  .sidebar,
  .modal {
    display: none !important;
  }
  
  .main-content {
    padding-bottom: 0;
  }
  
  .card {
    box-shadow: none;
    border: 1px solid var(--secondary-300);
  }
  
  .btn {
    border: 1px solid var(--secondary-300);
  }
}

/* 现代高对比度支持 */
@media (prefers-contrast: high) {
  :root {
    --primary-500: #0000ff;
    --success-500: #008000;
    --warning-500: #ff8c00;
    --error-500: #ff0000;
  }
  
  .btn {
    border: 2px solid currentColor;
  }
  
  .form-input {
    border-width: 2px;
  }
}

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

/* 现代大字体支持 */
@media (min-resolution: 2dppx) {
  .text-sm {
    font-size: calc(var(--font-size-sm) * 1.1);
  }
  
  .text-base {
    font-size: calc(var(--font-size-base) * 1.1);
  }
}

/* 现代触摸设备优化 */
@media (hover: none) and (pointer: coarse) {
  .btn,
  .form-input,
  .navbar-link,
  .bottom-nav-item {
    min-height: 44px;
  }
  
  .icon-btn {
    width: 44px;
    height: 44px;
  }
}

/* 现代横屏优化 */
@media (orientation: landscape) and (max-height: 500px) {
  .mobile-container {
    max-width: none;
  }
  
  .bottom-nav {
    display: none;
  }
  
  .main-content {
    padding-bottom: 0;
  }
}

/* 现代工具类扩展 */
.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;
}

.not-sr-only {
  position: static;
  width: auto;
  height: auto;
  padding: 0;
  margin: 0;
  overflow: visible;
  clip: auto;
  white-space: normal;
}

/* 现代焦点管理 */
.focus-trap {
  position: fixed;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* 现代无障碍增强 */
[aria-hidden="true"] {
  display: none !important;
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--primary-500);
  color: white;
  padding: 8px;
  text-decoration: none;
  border-radius: var(--radius-md);
  z-index: 1000;
}

.skip-link:focus {
  top: 6px;
}

/* 现代性能优化 */
.will-change-transform {
  will-change: transform;
}

.will-change-opacity {
  will-change: opacity;
}

.contain-layout {
  contain: layout;
}

.contain-paint {
  contain: paint;
}

/* 现代浏览器兼容性 */
.backdrop-blur {
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.backdrop-saturate {
  backdrop-filter: saturate(180%);
  -webkit-backdrop-filter: saturate(180%);
}

/* 现代CSS Grid增强 */
.grid-auto-fit {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.grid-auto-fill {
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}

/* 现代Flexbox增强 */
.flex-basis-0 {
  flex-basis: 0;
}

.flex-grow-0 {
  flex-grow: 0;
}

.flex-shrink {
  flex-shrink: 1;
}

/* 现代变换工具类 */
.transform {
  transform: translateZ(0);
}

.scale-90 {
  transform: scale(0.9);
}

.scale-95 {
  transform: scale(0.95);
}

.scale-105 {
  transform: scale(1.05);
}

.scale-110 {
  transform: scale(1.1);
}

.rotate-45 {
  transform: rotate(45deg);
}

.rotate-90 {
  transform: rotate(90deg);
}

.rotate-180 {
  transform: rotate(180deg);
}

/* 现代滤镜工具类 */
.filter {
  filter: none;
}

.blur-sm {
  filter: blur(4px);
}

.blur {
  filter: blur(8px);
}

.brightness-50 {
  filter: brightness(0.5);
}

.brightness-75 {
  filter: brightness(0.75);
}

.brightness-125 {
  filter: brightness(1.25);
}

.contrast-50 {
  filter: contrast(0.5);
}

.contrast-125 {
  filter: contrast(1.25);
}

.grayscale {
  filter: grayscale(100%);
}

.sepia {
  filter: sepia(100%);
}

/* 现代混合模式 */
.mix-blend-multiply {
  mix-blend-mode: multiply;
}

.mix-blend-screen {
  mix-blend-mode: screen;
}

.mix-blend-overlay {
  mix-blend-mode: overlay;
}

/* 现代自定义属性动画 */
@property --gradient-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

.animated-gradient {
  background: linear-gradient(var(--gradient-angle), var(--primary-500), var(--primary-700));
  animation: rotateGradient 3s linear infinite;
}

@keyframes rotateGradient {
  to {
    --gradient-angle: 360deg;
  }
}

/* 现代容器查询支持 */
@container (min-width: 400px) {
  .container-lg\:text-lg {
    font-size: var(--font-size-lg);
  }
}

/* 现代层叠上下文管理 */
.z-0 { z-index: 0; }
.z-10 { z-index: 10; }
.z-20 { z-index: 20; }
.z-30 { z-index: 30; }
.z-40 { z-index: 40; }
.z-50 { z-index: 50; }
.z-auto { z-index: auto; }

/* 现代滚动行为 */
.scroll-smooth {
  scroll-behavior: smooth;
}

.scroll-auto {
  scroll-behavior: auto;
}

/* 现代用户选择 */
.select-all {
  user-select: all;
}

.select-auto {
  user-select: auto;
}

.select-text {
  user-select: text;
}

/* 现代调整大小 */
.resize-none {
  resize: none;
}

.resize-both {
  resize: both;
}

.resize-x {
  resize: horizontal;
}

.resize-y {
  resize: vertical;
}

/* 现代光标样式 */
.cursor-auto { cursor: auto; }
.cursor-default { cursor: default; }
.cursor-pointer { cursor: pointer; }
.cursor-wait { cursor: wait; }
.cursor-text { cursor: text; }
.cursor-move { cursor: move; }
.cursor-help { cursor: help; }
.cursor-not-allowed { cursor: not-allowed; }

/* 现代列表样式重置 */
.list-reset {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* 现代图像渲染 */
.image-render-auto {
  image-rendering: auto;
}

.image-render-crisp {
  image-rendering: crisp-edges;
}

.image-render-pixel {
  image-rendering: pixelated;
}

/* 现代对象适配 */
.object-contain {
  object-fit: contain;
}

.object-cover {
  object-fit: cover;
}

.object-fill {
  object-fit: fill;
}

.object-none {
  object-fit: none;
}

.object-scale-down {
  object-fit: scale-down;
}

/* 现代对象位置 */
.object-bottom {
  object-position: bottom;
}

.object-center {
  object-position: center;
}

.object-left {
  object-position: left;
}

.object-right {
  object-position: right;
}

.object-top {
  object-position: top;
}

/* 现代文本装饰 */
.decoration-slice {
  text-decoration-skip-ink: none;
}

.decoration-clone {
  text-decoration-skip-ink: auto;
}

/* 现代文本下划线偏移 */
.underline-offset-auto {
  text-underline-offset: auto;
}

.underline-offset-1 {
  text-underline-offset: 1px;
}

.underline-offset-2 {
  text-underline-offset: 2px;
}

.underline-offset-4 {
  text-underline-offset: 4px;
}

.underline-offset-8 {
  text-underline-offset: 8px;
}

/* 现代文本装饰厚度 */
.decoration-auto {
  text-decoration-thickness: auto;
}

.decoration-from-font {
  text-decoration-thickness: from-font;
}

.decoration-0 {
  text-decoration-thickness: 0px;
}

.decoration-1 {
  text-decoration-thickness: 1px;
}

.decoration-2 {
  text-decoration-thickness: 2px;
}

.decoration-4 {
  text-decoration-thickness: 4px;
}

.decoration-8 {
  text-decoration-thickness: 8px;
}

/* 现代文本缩进 */
.indent-0 {
  text-indent: 0px;
}

.indent-px {
  text-indent: 1px;
}

.indent-1 {
  text-indent: var(--space-1);
}

.indent-2 {
  text-indent: var(--space-2);
}

.indent-4 {
  text-indent: var(--space-4);
}

.indent-8 {
  text-indent: var(--space-8);
}

/* 现代垂直对齐 */
.align-baseline {
  vertical-align: baseline;
}

.align-top {
  vertical-align: top;
}

.align-middle {
  vertical-align: middle;
}

.align-bottom {
  vertical-align: bottom;
}

.align-text-top {
  vertical-align: text-top;
}

.align-text-bottom {
  vertical-align: text-bottom;
}

.align-sub {
  vertical-align: sub;
}

.align-super {
  vertical-align: super;
}

/* 现代空白处理 */
.whitespace-normal {
  white-space: normal;
}

.whitespace-nowrap {
  white-space: nowrap;
}

.whitespace-pre {
  white-space: pre;
}

.whitespace-pre-line {
  white-space: pre-line;
}

.whitespace-pre-wrap {
  white-space: pre-wrap;
}

/* 现代单词断行 */
.break-normal {
  overflow-wrap: normal;
  word-break: normal;
}

.break-words {
  overflow-wrap: break-word;
}

.break-all {
  word-break: break-all;
}

.break-keep {
  word-break: keep-all;
}

/* 现代连字符 */
.hyphens-none {
  hyphens: none;
}

.hyphens-manual {
  hyphens: manual;
}

.hyphens-auto {
  hyphens: auto;
}

/* 现代内容 */
.content-none {
  content: none;
}

.content-empty {
  content: "";
}

/* 现代列表计数器 */
.list-item {
  display: list-item;
}

/* 现代表格布局 */
.table-auto {
  table-layout: auto;
}

.table-fixed {
  table-layout: fixed;
}

/* 现代边框折叠 */
.border-collapse {
  border-collapse: collapse;
}

.border-separate {
  border-collapse: separate;
}

/* 现代标题显示 */
.caption-top {
  caption-side: top;
}

.caption-bottom {
  caption-side: bottom;
}

/* 现代浮动 */
.float-right {
  float: right;
}

.float-left {
  float: left;
}

.float-none {
  float: none;
}

/* 现代清除浮动 */
.clear-left {
  clear: left;
}

.clear-right {
  clear: right;
}

.clear-both {
  clear: both;
}

.clear-none {
  clear: none;
}

/* 现代孤立 */
.isolate {
  isolation: isolate;
}

.isolation-auto {
  isolation: auto;
}

/* 现代对象位置精确控制 */
.object-left-bottom {
  object-position: left bottom;
}

.object-left-top {
  object-position: left top;
}

.object-right-bottom {
  object-position: right bottom;
}

.object-right-top {
  object-position: right top;
}

/* 现代溢出锚点 */
.overflow-anchor-auto {
  overflow-anchor: auto;
}

.overflow-anchor-none {
  overflow-anchor: none;
}

/* 现代滚动边距 */
.scroll-m-0 {
  scroll-margin: 0px;
}

.scroll-m-1 {
  scroll-margin: var(--space-1);
}

.scroll-m-2 {
  scroll-margin: var(--space-2);
}

.scroll-m-4 {
  scroll-margin: var(--space-4);
}

.scroll-m-8 {
  scroll-margin: var(--space-8);
}

/* 现代滚动填充 */
.scroll-p-0 {
  scroll-padding: 0px;
}

.scroll-p-1 {
  scroll-padding: var(--space-1);
}

.scroll-p-2 {
  scroll-padding: var(--space-2);
}

.scroll-p-4 {
  scroll-padding: var(--space-4);
}

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

/* 现代滚动捕捉 */
.snap-none {
  scroll-snap-type: none;
}

.snap-x {
  scroll-snap-type: x mandatory;
}

.snap-y {
  scroll-snap-type: y mandatory;
}

.snap-both {
  scroll-snap-type: both mandatory;
}

.snap-start {
  scroll-snap-align: start;
}

.snap-end {
  scroll-snap-align: end;
}

.snap-center {
  scroll-snap-align: center;
}

.snap-always {
  scroll-snap-stop: always;
}

.snap-normal {
  scroll-snap-stop: normal;
}

/* 现代触摸动作 */
.touch-auto {
  touch-action: auto;
}

.touch-none {
  touch-action: none;
}

.touch-pan-x {
  touch-action: pan-x;
}

.touch-pan-left {
  touch-action: pan-left;
}

.touch-pan-right {
  touch-action: pan-right;
}

.touch-pan-y {
  touch-action: pan-y;
}

.touch-pan-up {
  touch-action: pan-up;
}

.touch-pan-down {
  touch-action: pan-down;
}

.touch-pinch-zoom {
  touch-action: pinch-zoom;
}

.touch-manipulation {
  touch-action: manipulation;
}

/* 现代用户拖拽 */
.select-none {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.select-text {
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
  user-select: text;
}

.select-all {
  -webkit-user-select: all;
  -moz-user-select: all;
  user-select: all;
}

.select-auto {
  -webkit-user-select: auto;
  -moz-user-select: auto;
  -ms-user-select: auto;
  user-select: auto;
}

/* 现代意志变化 */
.will-change-auto {
  will-change: auto;
}

.will-change-scroll {
  will-change: scroll-position;
}

.will-change-contents {
  will-change: contents;
}

/* 现代实用工具类结束标记 */
/* === 现代样式系统完成 === */

.modal {
  transition: all var(--duration-normal) ease;
}

.modal.show {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: white;
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  max-width: 90vw;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.9);
  transition: transform var(--duration-normal) ease;
}

.modal.show .modal-content {
  transform: scale(1);
}

/* 现代Toast通知 */
.toast {
  position: fixed;
  top: var(--space-4);
  left: 50%;
  transform: translateX(-50%);
  background: var(--secondary-800);
  color: white;
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-lg);
  z-index: 200;
  animation: slideInDown var(--duration-normal) ease;
}

@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

/* 现代进度条 */
.progress {
  width: 100%;
  height: 8px;
  background: var(--secondary-200);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background: var(--gradient-primary);
  border-radius: var(--radius-full);
  transition: width var(--duration-normal) ease;
}

/* 现代标签 */
.badge {
  display: inline-flex;
  align-items: center;
  padding: var(--space-1) var(--space-3);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-medium);
  border-radius: var(--radius-full);
}

.badge-primary {
  background: var(--primary-100);
  color: var(--primary-700);
}

.badge-success {
  background: #dcfce7;
  color: #166534;
}

.badge-warning {
  background: #fef3c7;
  color: #92400e;
}

.badge-error {
  background: #fee2e2;
  color: #991b1b;
}

/* 现代分割线 */
.divider {
  height: 1px;
  background: var(--secondary-200);
  margin: var(--space-6) 0;
}

/* 现代头像 */
.avatar {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  object-fit: cover;
  border: 2px solid var(--secondary-200);
}

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

/* 现代列表 */
.list {
  background: white;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.list-item {
  padding: var(--space-4);
  border-bottom: 1px solid var(--secondary-200);
  transition: background-color var(--duration-normal) ease;
}

.list-item:last-child {
  border-bottom: none;
}

.list-item:hover {
  background: var(--secondary-50);
}

/* 响应式工具类 */
@media (max-width: 639px) {
  .sm\:hidden { display: none; }
}

@media (min-width: 640px) {
  .sm\:block { display: block; }
  .sm\:flex { display: flex; }
  .sm\:text-lg { font-size: var(--font-size-lg); }
}

@media (min-width: 768px) {
  .md\:block { display: block; }
  .md\:flex { display: flex; }
  .md\:text-xl { font-size: var(--font-size-xl); }
}

/* 动画工具类 */
.animate-fade-in {
  animation: fadeIn var(--duration-normal) ease;
}

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

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

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

/* 现代滚动条 */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--secondary-100);
}

::-webkit-scrollbar-thumb {
  background: var(--secondary-400);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--secondary-500);
}

/* 现代焦点样式 */
.focus\:ring:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* 现代过渡效果 */
.transition {
  transition: all var(--duration-normal) ease;
}

.transition-fast {
  transition: all var(--duration-fast) ease;
}

.transition-slow {
  transition: all var(--duration-slow) ease;
}

/* 现代悬停效果 */
.hover\:scale-105:hover {
  transform: scale(1.05);
}

.hover\:shadow-lg:hover {
  box-shadow: var(--shadow-lg);
}

/* 现代激活状态 */
.active\:scale-95:active {
  transform: scale(0.95);
}

/* 现代禁用状态 */
.disabled\:opacity-50:disabled {
  opacity: 0.5;
}

.disabled\:cursor-not-allowed:disabled {
  cursor: not-allowed;
}

/* 现代选择状态 */
.select-none {
  user-select: none;
}

/* 现代指针事件 */
.pointer-events-none {
  pointer-events: none;
}

/* 现代溢出处理 */
.overflow-hidden {
  overflow: hidden;
}

.overflow-x-auto {
  overflow-x: auto;
}

.overflow-y-auto {
  overflow-y: auto;
}

/* 现代文本溢出 */
.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

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

/* 现代空状态 */
.empty-state {
  text-align: center;
  padding: var(--space-16) var(--space-4);
  color: var(--secondary-500);
}

.empty-state-icon {
  font-size: var(--font-size-4xl);
  margin-bottom: var(--space-4);
  opacity: 0.5;
}

/* 现代骨架屏 */
.skeleton {
  background: linear-gradient(90deg, var(--secondary-200) 25%, var(--secondary-100) 50%, var(--secondary-200) 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
}

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

/* 现代浮动按钮 */
.fab {
  position: fixed;
  bottom: var(--space-20);
  right: var(--space-4);
  width: 56px;
  height: 56px;
  border-radius: var(--radius-full);
  background: var(--gradient-primary);
  color: white;
  border: none;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  transition: all var(--duration-normal) ease;
  z-index: 50;
}

.fab:hover {
  transform: scale(1.1);
  box-shadow: var(--shadow-xl);
}

/* 现代搜索框 */
.search-container {
  position: relative;
}

.search-input {
  padding-left: var(--space-10);
}

.search-icon {
  position: absolute;
  left: var(--space-3);
  top: 50%;
  transform: translateY(-50%);
  color: var(--secondary-400);
  pointer-events: none;
}

/* 现代标签页 */
.tabs {
  display: flex;
  border-bottom: 1px solid var(--secondary-200);
  background: white;
}

.tab {
  padding: var(--space-4) var(--space-6);
  border: none;
  background: none;
  color: var(--secondary-600);
  cursor: pointer;
  transition: all var(--duration-normal) ease;
  border-bottom: 2px solid transparent;
}

.tab:hover {
  color: var(--primary-600);
  background: var(--primary-50);
}

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

.tab-content {
  padding: var(--space-6);
}

/* 现代手风琴 */
.accordion-item {
  border: 1px solid var(--secondary-200);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-2);
  overflow: hidden;
}

.accordion-header {
  padding: var(--space-4);
  background: var(--secondary-50);
  cursor: pointer;
  transition: background-color var(--duration-normal) ease;
}

.accordion-header:hover {
  background: var(--secondary-100);
}

.accordion-content {
  padding: var(--space-4);
  background: white;
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--duration-normal) ease;
}

.accordion-item.active .accordion-content {
  max-height: 500px;
}

/* 现代工具提示 */
.tooltip {
  position: relative;
  display: inline-block;
}

.tooltip-content {
  position: absolute;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--secondary-800);
  color: white;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  font-size: var(--font-size-sm);
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all var(--duration-normal) ease;
  z-index: 100;
}

.tooltip:hover .tooltip-content {
  opacity: 1;
  visibility: visible;
}

/* 现代下拉菜单 */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-content {
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  border: 1px solid var(--secondary-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all var(--duration-normal) ease;
  z-index: 100;
}

.dropdown.active .dropdown-content {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  padding: var(--space-3) var(--space-4);
  cursor: pointer;
  transition: background-color var(--duration-normal) ease;
}

.dropdown-item:hover {
  background: var(--secondary-50);
}

/* 现代步骤条 */
.steps {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: var(--space-8) 0;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  position: relative;
}

.step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 16px;
  left: 60%;
  right: -40%;
  height: 2px;
  background: var(--secondary-200);
}

.step.completed:not(:last-child)::after {
  background: var(--primary-500);
}

.step-circle {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background: var(--secondary-200);
  color: var(--secondary-600);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--space-2);
}

.step.active .step-circle {
  background: var(--primary-500);
  color: white;
}

.step.completed .step-circle {
  background: var(--primary-500);
  color: white;
}

.step-label {
  font-size: var(--font-size-sm);
  color: var(--secondary-600);
  text-align: center;
}

.step.active .step-label {
  color: var(--primary-600);
  font-weight: var(--font-weight-medium);
}

/* 现代评分组件 */
.rating {
  display: flex;
  gap: var(--space-1);
}

.rating-star {
  color: var(--secondary-300);
  cursor: pointer;
  transition: color var(--duration-fast) ease;
}

.rating-star.active {
  color: #fbbf24;
}

.rating-star:hover {
  color: #f59e0b;
}

/* 现代开关组件 */
.switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 24px;
}

.switch-input {
  opacity: 0;
  width: 0;
  height: 0;
}

.switch-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--secondary-300);
  transition: var(--duration-normal);
  border-radius: var(--radius-full);
}

.switch-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background: white;
  transition: var(--duration-normal);
  border-radius: var(--radius-full);
}

.switch-input:checked + .switch-slider {
  background: var(--primary-500);
}

.switch-input:checked + .switch-slider:before {
  transform: translateX(24px);
}

/* 现代滑块组件 */
.slider {
  width: 100%;
  height: 6px;
  border-radius: var(--radius-full);
  background: var(--secondary-200);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: var(--radius-full);
  background: var(--primary-500);
  cursor: pointer;
  box-shadow: var(--shadow-md);
}

.slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: var(--radius-full);
  background: var(--primary-500);
  cursor: pointer;
  border: none;
  box-shadow: var(--shadow-md);
}

/* 现代颜色选择器 */
.color-picker {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.color-option {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  border: 2px solid var(--secondary-200);
  cursor: pointer;
  transition: all var(--duration-normal) ease;
}

.color-option:hover {
  transform: scale(1.1);
}

.color-option.selected {
  border-color: var(--secondary-800);
  box-shadow: var(--shadow-md);
}

/* 现代文件上传 */
.file-upload {
  border: 2px dashed var(--secondary-300);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  text-align: center;
  cursor: pointer;
  transition: all var(--duration-normal) ease;
}

.file-upload:hover {
  border-color: var(--primary-500);
  background: var(--primary-50);
}

.file-upload.dragover {
  border-color: var(--primary-500);
  background: var(--primary-100);
}

.file-upload-icon {
  font-size: var(--font-size-3xl);
  color: var(--secondary-400);
  margin-bottom: var(--space-4);
}

.file-upload-text {
  color: var(--secondary-600);
  font-size: var(--font-size-sm);
}

/* 现代时间轴 */
.timeline {
  position: relative;
  padding-left: var(--space-8);
}

.timeline::before {
  content: '';
  position: absolute;
  left: var(--space-4);
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--secondary-200);
}

.timeline-item {
  position: relative;
  margin-bottom: var(--space-6);
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -22px;
  top: var(--space-2);
  width: 12px;
  height: 12px;
  border-radius: var(--radius-full);
  background: var(--primary-500);
  border: 2px solid white;
  box-shadow: var(--shadow-sm);
}

.timeline-content {
  background: white;
  padding: var(--space-4);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.timeline-date {
  font-size: var(--font-size-sm);
  color: var(--secondary-500);
  margin-bottom: var(--space-2);
}

/* 现代统计卡片 */
.stat-card {
  background: white;
  padding: var(--space-6);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  text-align: center;
  transition: all var(--duration-normal) ease;
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.stat-number {
  font-size: var(--font-size-3xl);
  font-weight: var(--font-weight-bold);
  color: var(--primary-600);
  margin-bottom: var(--space-2);
}

.stat-label {
  font-size: var(--font-size-sm);
  color: var(--secondary-600);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.stat-change {
  font-size: var(--font-size-sm);
  margin-top: var(--space-2);
}

.stat-change.positive {
  color: var(--success-500);
}

.stat-change.negative {
  color: var(--error-500);
}

/* 现代价格标签 */
.price-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-2) var(--space-3);
  background: var(--gradient-secondary);
  color: white;
  border-radius: var(--radius-full);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-bold);
}

.price-free {
  background: var(--gradient-success);
}

/* 现代特色标签 */
.feature-tag {
  position: absolute;
  top: var(--space-2);
  right: var(--space-2);
  padding: var(--space-1) var(--space-2);
  background: var(--error-500);
  color: white;
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-bold);
  border-radius: var(--radius-sm);
  text-transform: uppercase;
}

.feature-tag.new {
  background: var(--success-500);
}

.feature-tag.hot {
  background: var(--warning-500);
}

/* 现代图片容器 */
.image-container {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.7) 100%);
  opacity: 0;
  transition: opacity var(--duration-normal) ease;
}

.image-container:hover .image-overlay {
  opacity: 1;
}

.image-content {
  position: absolute;
  bottom: var(--space-4);
  left: var(--space-4);
  right: var(--space-4);
  color: white;
  transform: translateY(20px);
  transition: transform var(--duration-normal) ease;
}

.image-container:hover .image-content {
  transform: translateY(0);
}

/* 现代社交分享 */
.social-share {
  display: flex;
  gap: var(--space-2);
  justify-content: center;
}

.social-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  transition: all var(--duration-normal) ease;
}

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

.social-btn.facebook { background: #1877f2; }
.social-btn.twitter { background: #1da1f2; }
.social-btn.wechat { background: #07c160; }
.social-btn.weibo { background: #e6162d; }

/* 现代面包屑导航 */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--font-size-sm);
  color: var(--secondary-600);
  margin-bottom: var(--space-4);
}

.breadcrumb-item {
  color: var(--secondary-500);
  text-decoration: none;
  transition: color var(--duration-normal) ease;
}

.breadcrumb-item:hover {
  color: var(--primary-600);
}

.breadcrumb-item.active {
  color: var(--secondary-800);
  font-weight: var(--font-weight-medium);
}

.breadcrumb-separator {
  color: var(--secondary-400);
}

/* 现代分页 */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-2);
  margin: var(--space-8) 0;
}

.pagination-btn {
  padding: var(--space-2) var(--space-3);
  border: 1px solid var(--secondary-300);
  background: white;
  color: var(--secondary-600);
  text-decoration: none;
  border-radius: var(--radius-md);
  transition: all var(--duration-normal) ease;
}

.pagination-btn:hover {
  background: var(--primary-50);
  border-color: var(--primary-500);
  color: var(--primary-600);
}

.pagination-btn.active {
  background: var(--primary-500);
  border-color: var(--primary-500);
  color: white;
}

.pagination-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* 现代搜索结果高亮 */
.search-highlight {
  background: #fef08a;
  padding: 0 var(--space-1);
  border-radius: var(--radius-sm);
}

/* 现代代码块 */
.code-block {
  background: var(--secondary-900);
  color: var(--secondary-100);
  padding: var(--space-4);
  border-radius: var(--radius-lg);
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  font-size: var(--font-size-sm);
  line-height: 1.5;
  overflow-x: auto;
}

.code-inline {
  background: var(--secondary-100);
  color: var(--secondary-800);
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-sm);
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  font-size: 0.9em;
}

/* 现代引用块 */
.blockquote {
  border-left: 4px solid var(--primary-500);
  padding: var(--space-4) var(--space-6);
  background: var(--primary-50);
  margin: var(--space-6) 0;
  font-style: italic;
  color: var(--secondary-700);
}

.blockquote-author {
  margin-top: var(--space-2);
  font-size: var(--font-size-sm);
  color: var(--secondary-600);
  font-style: normal;
}

/* 现代警告框 */
.alert {
  padding: var(--space-4);
  border-radius: var(--radius-lg);
  margin: var(--space-4) 0;
  border-left: 4px solid;
}

.alert-info {
  background: #dbeafe;
  border-color: var(--primary-500);
  color: #1e40af;
}

.alert-success {
  background: #dcfce7;
  border-color: var(--success-500);
  color: #166534;
}

.alert-warning {
  background: #fef3c7;
  border-color: var(--warning-500);
  color: #92400e;
}

.alert-error {
  background: #fee2e2;
  border-color: var(--error-500);
  color: #991b1b;
}

/* 现代表格 */
.table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.table th {
  background: var(--secondary-50);
  padding: var(--space-4);
  text-align: left;
  font-weight: var(--font-weight-semibold);
  color: var(--secondary-700);
  border-bottom: 1px solid var(--secondary-200);
}

.table td {
  padding: var(--space-4);
  border-bottom: 1px solid var(--secondary-200);
}

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

.table tr:hover {
  background: var(--secondary-50);
}

/* 现代键盘快捷键 */
.kbd {
  display: inline-block;
  padding: var(--space-1) var(--space-2);
  background: var(--secondary-100);
  border: 1px solid var(--secondary-300);
  border-radius: var(--radius-sm);
  font-family: monospace;
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-bold);
  color: var(--secondary-700);
  box-shadow: 0 1px 0 var(--secondary-300);
}

/* 现代标记文本 */
.mark {
  background: #fef08a;
  padding: 0 var(--space-1);
  border-radius: var(--radius-sm);
}

/* 现代删除线文本 */
.strikethrough {
  text-decoration: line-through;
  color: var(--secondary-500);
}

/* 现代下划线文本 */
.underline {
  text-decoration: underline;
  text-decoration-color: var(--primary-500);
  text-decoration-thickness: 2px;
  text-underline-offset: 2px;
}

/* 现代链接样式 */
.link {
  color: var(--primary-600);
  text-decoration: none;
  transition: color var(--duration-normal) ease;
}

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

/* 现代列表样式 */
.list-disc {
  list-style-type: disc;
  padding-left: var(--space-6);
}

.list-decimal {
  list-style-type: decimal;
  padding-left: var(--space-6);
}

.list-none {
  list-style: none;
}

/* 现代分隔符 */
.separator {
  width: 100%;
  height: 1px;
  background: var(--secondary-200);
  margin: var(--space-6) 0;
}

.separator-vertical {
  width: 1px;
  height: 100%;
  background: var(--secondary-200);
  margin: 0 var(--space-4);
}

/* 现代图标按钮 */
.icon-btn {
  width: 40px;
  height: 40px;
  border: none;
  background: none;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--duration-normal) ease;
  color: var(--secondary-600);
}

.icon-btn:hover {
  background: var(--secondary-100);
  color: var(--secondary-800);
}

.icon-btn:active {
  transform: scale(0.95);
}

/* 现代状态指示器 */
.status-indicator {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--font-size-sm);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
}

.status-online .status-dot {
  background: var(--success-500);
}

.status-offline .status-dot {
  background: var(--secondary-400);
}

.status-busy .status-dot {
  background: var(--error-500);
}

.status-away .status-dot {
  background: var(--warning-500);
}

/* 现代进度环 */
.progress-circle {
  position: relative;
  width: 80px;
  height: 80px;
}

.progress-circle svg {
  transform: rotate(-90deg);
}

.progress-circle-bg {
  fill: none;
  stroke: var(--secondary-200);
  stroke-width: 8;
}

.progress-circle-fill {
  fill: none;
  stroke: var(--primary-500);
  stroke-width: 8;
  stroke-linecap: round;
  transition: stroke-dasharray var(--duration-slow) ease;
}

.progress-circle-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-bold);
  color: var(--secondary-700);
}

/* 现代卡片网格 */
.card-grid {
  display: grid;
  gap: var(--space-6);
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .card-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* 现代侧边栏 */
.sidebar {
  position: fixed;
  top: 0;
  left: -300px;
  width: 300px;
  height: 100vh;
  background: white;
  box-shadow: var(--shadow-xl);
  transition: left var(--duration-normal) ease;
  z-index: 100;
}

.sidebar.open {
  left: 0;
}

.sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: all var(--duration-normal) ease;
  z-index: 99;
}

.sidebar-overlay.show {
  opacity: 1;
  visibility: visible;
}