@charset "UTF-8";

/**
 * 主样式文件 * 包含全局样式、布局、组件样式 */

/* ==================== 变量定义 - 温暖疗愈配色系统 ==================== */
:root {
  /* ==================== 温暖疗愈配色系统 ==================== */
  /* 主色系 - 中性灰 */
  --primary-50: #fafafa;
  --primary-100: #f4f4f5;
  --primary-200: #e4e4e7;
  --primary-300: #d4d4d8;
  --primary-400: #a1a1aa;
  --primary-500: #71717a;
  --primary-600: #52525b;
  --primary-700: #3f3f46;
  --primary-800: #27272a;
  --primary-900: #18181b;
  
  /* 辅助色 - 温馨自然色*/
  --success-50: #f0fdf4;
  --success-100: #dcfce7;
  --success-200: #bbf7d0;
  --success-300: #86efac;
  --success-400: #4ade80;
  --success-500: #22c55e;
  --success-600: #16a34a;
  --success-700: #15803d;
  
  /* 温暖色 - 阳光橙色 */
  --warm-50: #fff7ed;
  --warm-100: #ffedd5;
  --warm-200: #fed7aa;
  --warm-300: #fdba74;
  --warm-400: #fb923c;
  --warm-500: #f97316;
  --warm-600: #ea580c;
  --warm-700: #c2410c;
  
  /* 新增 - 温柔粉色系*/
  --pink-50: #fdf2f8;
  --pink-100: #fce7f3;
  --pink-200: #fbcfe8;
  --pink-300: #f9a8d4;
  --pink-400: #f472b6;
  --pink-500: #ec4899;
  
  /* 新增 - 阳光黄色系*/
  --sun-50: #fefce8;
  --sun-100: #fef9c3;
  --sun-200: #fef08a;
  --sun-300: #fde047;
  --sun-400: #facc15;
  --sun-500: #eab308;
  
  /* 新增 - 柔和紫色系*/
  --purple-50: #faf5ff;
  --purple-100: #f3e8ff;
  --purple-200: #e9d5ff;
  --purple-300: #d8b4fe;
  --purple-400: #c084fc;
  --purple-500: #a855f7;
  
  /* 高级灰系统*/
  --gray-50: #fafafa;
  --gray-100: #f4f4f5;
  --gray-200: #e4e4e7;
  --gray-300: #d4d4d8;
  --gray-400: #a1a1aa;
  --gray-500: #71717a;
  --gray-600: #52525b;
  --gray-700: #3f3f46;
  --gray-800: #27272a;
  --gray-900: #18181b;
  
  /* 保留兼容性变量*/
  --primary-color: var(--primary-600);
  --primary-dark: var(--primary-700);
  --secondary-color: var(--success-500);
  --success-color: var(--success-500);
  --danger-color: #ef4444;
  --warning-color: #f59e0b;
  --info-color: var(--primary-500);
  --light-color: var(--gray-50);
  --dark-color: var(--gray-900);
  
  /* 情绪象限颜色 */
  --quadrant-1: #f87171;
  --quadrant-2: #fbbf24;
  --quadrant-3: #4ade80;
  --quadrant-4: #38bdf8;
  --quadrant-5: #2dd4bf;
  --quadrant-6: #fda4af;
  --quadrant-7: #86efac;
  --quadrant-8: #7dd3fc;
  
  /* ==================== 高级感字体系列==================== */
  --font-display: 'Inter', 'PingFang SC', 'Microsoft YaHei', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', 'PingFang SC', 'Microsoft YaHei', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  /* 标题字号（高级感大字号） */
  --text-5xl: 3.5rem;    /* 56px - Hero主标题*/
  --text-4xl: 2.75rem;   /* 44px - 大标题*/
  --text-3xl: 2.25rem;   /* 36px - 主要标题 */
  --text-2xl: 1.875rem;  /* 30px - 次级标题 */
  --text-xl: 1.5rem;     /* 24px - 小标题*/
  --text-lg: 1.125rem;   /* 18px - 正文大号 */
  --text-base: 1rem;     /* 16px - 正文 */
  --text-sm: 0.875rem;   /* 14px - 辅助文字 */
  --text-xs: 0.75rem;    /* 12px - 小字 */
  
  /* 字重 */
  --font-light: 300;
  --font-normal: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;
  --font-extrabold: 800;
  
  /* 行高 */
  --leading-tight: 1.1;
  --leading-snug: 1.25;
  --leading-normal: 1.5;
  --leading-relaxed: 1.625;
  
  /* 字间距*/
  --tracking-tighter: -0.05em;
  --tracking-tight: -0.025em;
  --tracking-normal: 0em;
  --tracking-wide: 0.025em;
  --tracking-wider: 0.05em;
  
  /* 间距 */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 3rem;
  --spacing-2xl: 4rem;
  --spacing-3xl: 6rem;
  
  /* 圆角系统 */
  --radius-none: 0px;
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-3xl: 2rem;
  --radius-full: 9999px;
  
  /* ==================== 高级阴影层次系统 ==================== */
  --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  
  /* 彩色阴影 */
  --shadow-primary: 0 10px 25px -5px rgba(161, 161, 170, 0.25);
  --shadow-success: 0 10px 25px -5px rgba(34, 197, 94, 0.25);
  --shadow-warm: 0 10px 25px -5px rgba(249, 115, 22, 0.25);
  
  /* 内阴影*/
  --shadow-inner: inset 0 2px 4px 0 rgba(0, 0, 0, 0.05);
  
  /* ==================== 动画曲线系统 ==================== */
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-elastic: cubic-bezier(0.68, -0.55, 0.265, 1.55);
  
  /* 过渡时间 */
  --duration-75: 75ms;
  --duration-100: 100ms;
  --duration-150: 150ms;
  --duration-200: 200ms;
  --duration-300: 300ms;
  --duration-500: 500ms;
  --duration-700: 700ms;
  --duration-1000: 1000ms;
  
  /* 兼容性变量*/
  --transition-fast: var(--duration-150) var(--ease-out);
  --transition-normal: var(--duration-300) var(--ease-in-out);
  --transition-slow: var(--duration-500) var(--ease-in-out);
  
  /* ==================== 统一主题变量系统 - 日间模式 ==================== */
  --bg-primary: var(--gray-50);
  --bg-secondary: var(--gray-100);
  --bg-tertiary: var(--gray-200);
  --bg-card: #ffffff;
  --bg-hover: var(--gray-100);
  --bg-active: var(--gray-200);
  
  --text-primary: var(--gray-900);
  --text-secondary: var(--gray-700);
  --text-tertiary: var(--gray-500);
  --text-muted: var(--gray-400);
  --text-inverse: #ffffff;
  
  --border-light: var(--gray-200);
  --border-medium: var(--gray-300);
  --border-dark: var(--gray-400);
  
  --transition-theme: var(--duration-300) var(--ease-in-out);

  /* 层级系统 */
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-fixed: 300;
  --z-modal-backdrop: 400;
  --z-modal: 500;
  --z-popover: 600;
  --z-tooltip: 700;
  --z-toast: 800;

  /* ==================== Workspace SaaS 设计系统 ==================== */
  --ws-radius-sm: 8px;
  --ws-radius-md: 12px;
  --ws-radius-lg: 16px;
  --ws-radius-full: 9999px;

  --ws-border-color: rgba(0, 0, 0, 0.06);
  --ws-border-color-hover: rgba(0, 0, 0, 0.12);

  --ws-bg-page: #fafbfc;
  --ws-bg-card: #ffffff;
  --ws-bg-hover: #f5f5f5;

  --ws-text-primary: #111827;
  --ws-text-secondary: #6b7280;
  --ws-text-tertiary: #9ca3af;
  --ws-text-muted: #9e9e9e;

  --ws-font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --ws-font-mono: 'SF Mono', 'Fira Code', monospace;

  --ws-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02);
  --ws-shadow-md: 0 4px 6px rgba(0, 0, 0, 0.04), 0 2px 4px rgba(0, 0, 0, 0.02);
  --ws-shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.06), 0 4px 6px rgba(0, 0, 0, 0.02);

  --ws-transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);

  --ease-out: cubic-bezier(0.4, 0, 0.2, 1);

  --ws-status-success: #16a34a;
  --ws-status-success-bg: #f0fdf4;
  --ws-status-warning: #c2410c;
  --ws-status-warning-bg: #fff7ed;
  --ws-status-error: #ef4444;
  --ws-status-error-bg: #fef2f2;
  --ws-status-info: #2563eb;
  --ws-status-info-bg: #eff6ff;
  --ws-status-neutral: #52525b;
  --ws-status-neutral-bg: #f4f4f5;

  --ws-usage-bar-bg: #e5e7eb;
  --ws-usage-bar-fill: #3b82f6;
  --ws-usage-bar-warning: #f59e0b;
  --ws-usage-bar-danger: #ef4444;
}

/* ==================== 基础样式 - 高级感设计==================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--text-secondary);
  background-color: var(--bg-primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  text-rendering: auto;
  transition: background-color var(--transition-theme), color var(--transition-theme);
}

/* ==================== 高级感排版工具类 ==================== */
.text-display {
  font-family: var(--font-display);
  font-size: var(--text-5xl);
  font-weight: var(--font-bold);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tighter);
  color: var(--text-primary);
  transition: color var(--transition-theme);
}

.text-h1 {
  font-size: var(--text-4xl);
  font-weight: var(--font-bold);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--text-primary);
  transition: color var(--transition-theme);
}

.text-h2 {
  font-size: var(--text-3xl);
  font-weight: var(--font-semibold);
  line-height: var(--leading-snug);
  color: var(--text-primary);
  transition: color var(--transition-theme);
}

.text-h3 {
  font-size: var(--text-2xl);
  font-weight: var(--font-semibold);
  line-height: var(--leading-snug);
  color: var(--text-primary);
  transition: color var(--transition-theme);
}

.text-body-lg {
  font-size: var(--text-lg);
  line-height: var(--leading-relaxed);
  color: var(--text-secondary);
  transition: color var(--transition-theme);
}

.text-body {
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--text-secondary);
  transition: color var(--transition-theme);
}

.text-small {
  font-size: var(--text-sm);
  line-height: var(--leading-normal);
  color: var(--text-tertiary);
  transition: color var(--transition-theme);
}

.text-xs {
  font-size: var(--text-xs);
  line-height: var(--leading-normal);
  color: var(--text-tertiary);
  transition: color var(--transition-theme);
}

/* 渐变文字 */
.gradient-text-primary {
  background: linear-gradient(135deg, var(--primary-600) 0%, var(--primary-400) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-text-success {
  background: linear-gradient(135deg, var(--success-600) 0%, var(--success-400) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ==================== 加载动画 ==================== */
.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.3s ease;
}

.loading-content {
  text-align: center;
  color: white;
}

.loading-spinner {
  width: 60px;
  height: 60px;
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 1.5rem;
}

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

.loading-content h2 {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}

.loading-content p {
  opacity: 0.8;
}

/* ==================== 布局 ==================== */
.app-container {
  flex: 1;
  padding: 2rem 0;
}

/* ==================== 导航栏 - Pentagram风格 ==================== */
.navbar {
  background: rgba(255, 255, 255, 0.78) !important;
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  padding: 20px 0;
  transition: all 0.35s cubic-bezier(0.25, 0.1, 0.25, 1);
  z-index: 100;
}

.navbar.hero-transparent {
  background: transparent !important;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: 1px solid transparent;
}

.navbar.hero-transparent .navbar-brand,
.navbar.hero-transparent .brand-logo-icon,
.navbar.hero-transparent .brand-logo-text {
  color: rgba(255, 255, 255, 0.9) !important;
}

.navbar.hero-transparent .navbar-nav .nav-link {
  color: rgba(255, 255, 255, 0.6) !important;
}

.navbar.hero-transparent .navbar-nav .nav-link:hover {
  color: rgba(255, 255, 255, 0.95) !important;
}

.navbar.hero-transparent .nav-action-item {
  border-left-color: rgba(255, 255, 255, 0.15) !important;
}

.navbar.hero-transparent .nav-icon-btn {
  color: rgba(255, 255, 255, 0.6);
}

.navbar.hero-transparent .nav-icon-btn:hover {
  color: rgba(255, 255, 255, 0.9);
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
}

.navbar.hero-transparent .nav-dropdown-arrow {
  color: rgba(255, 255, 255, 0.4);
}

.navbar.hero-transparent .navbar-toggler {
  color: rgba(255, 255, 255, 0.7);
}

.navbar.hero-transparent .navbar-toggler svg path {
  stroke: rgba(255, 255, 255, 0.7);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* 导航菜单整体靠右 */
.navbar-nav {
  margin-left: auto !important;
}

.navbar-collapse {
  flex-grow: 0;
  flex-basis: auto;
}

@media (min-width: 992px) {
  .navbar.navbar-expand-lg .navbar-collapse {
    display: flex !important;
    flex-basis: auto !important;
    align-items: center;
    visibility: visible !important;
    opacity: 1 !important;
  }

  .navbar.navbar-expand-lg .navbar-toggler {
    display: none !important;
  }

  .navbar.navbar-expand-lg .navbar-nav {
    display: flex !important;
    flex-direction: row;
    align-items: center;
  }
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.92) !important;
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  padding: 14px 0;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
}

.navbar.hero-transparent.scrolled {
  background: rgba(0, 0, 0, 0.4) !important;
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04);
}

.navbar-brand {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'PingFang SC', sans-serif;
  font-weight: 600;
  font-size: 15px;
  color: #1d1d1f !important;
  display: flex;
  align-items: center;
  gap: 9px;
  letter-spacing: -0.02em;
  padding: 0;
  text-decoration: none;
  transition: opacity 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.navbar-brand:hover {
  opacity: 0.7;
}

.brand-logo-icon {
  width: 26px;
  height: 26px;
  color: #1d1d1f;
  transition: transform 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
  animation: logo-breath 5s ease-in-out infinite;
}

.navbar-brand:hover .brand-logo-icon {
  transform: scale(1.06);
  animation-play-state: paused;
}

.brand-logo-text {
  font-size: 15px;
  font-weight: 600;
  color: #1d1d1f;
}

@keyframes logo-breath {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.025); }
}

/* 导航链接 - Linear极简风格 */
.navbar-nav {
  gap: 32px;
  align-items: center;
}

.navbar-nav .nav-link {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'PingFang SC', sans-serif;
  color: rgba(29, 29, 31, 0.55) !important;
  font-weight: 450;
  font-size: 13.5px;
  padding: 0 !important;
  border-radius: 0;
  transition: color 0.25s cubic-bezier(0.25, 0.1, 0.25, 1);
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  position: relative;
  letter-spacing: 0.005em;
}

.navbar-nav .nav-link svg {
  display: none;
}

.navbar-nav .nav-link:hover {
  color: #1d1d1f !important;
  background: transparent;
}

.navbar-nav .nav-link::after {
  display: none;
}

.navbar-nav .nav-link.active {
  color: #1d1d1f !important;
  font-weight: 500;
}

/* 用户菜单按钮 - Pentagram简约风格*/
.navbar-nav .btn {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'PingFang SC', sans-serif;
  font-weight: 400;
  padding: 6px 16px;
  font-size: 14px;
  border-radius: 980px;
  border: none;
}

.theme-toggle-btn,
.sound-toggle-btn {
  width: 34px;
  height: 34px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: rgba(29, 29, 31, 0.55);
  border: none;
  border-radius: 50%;
  transition: all 0.25s cubic-bezier(0.25, 0.1, 0.25, 1);
  cursor: pointer;
}

.theme-toggle-btn:hover,
.sound-toggle-btn:hover {
  background: rgba(0, 0, 0, 0.05);
  color: #1d1d1f;
}

.theme-toggle-btn svg,
.sound-toggle-btn svg {
  width: 17px;
  height: 17px;
  display: block;
}

/* 导航栏图标按钮 - ghost风格：默认只显示图标，悬停显示轮廓 */
.nav-icon-btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: #71717a;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.25, 0.1, 0.25, 1);
  position: relative;
  padding: 0;
}

.nav-icon-btn:hover {
  border-color: #e4e4e7;
  background: rgba(0, 0, 0, 0.03);
  color: #52525b;
}

.nav-icon-btn svg {
  width: 18px;
  height: 18px;
  display: block;
}

/* 主题切换按钮：根据当前模式显示对应图标 */
[data-theme="light"] .nav-icon-btn .nav-icon-moon,
[data-theme="dark"] .nav-icon-btn .nav-icon-sun {
  display: none;
}

[data-theme="light"] .nav-icon-btn .nav-icon-sun,
[data-theme="dark"] .nav-icon-btn .nav-icon-moon {
  display: block;
}

/* 暗色模式适配 */
[data-theme="dark"] .nav-icon-btn {
  color: rgba(255, 255, 255, 0.5);
}

[data-theme="dark"] .nav-icon-btn:hover {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.8);
}

.dropdown-toggle {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'PingFang SC', sans-serif;
  font-size: 13.5px;
  font-weight: 450;
  color: rgba(29, 29, 31, 0.55);
  padding: 6px 12px;
  border-radius: 980px;
  transition: all 0.25s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.dropdown-toggle:hover {
  color: #1d1d1f;
  background: rgba(0, 0, 0, 0.05);
}

.dropdown-menu {
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 13px;
  box-shadow:
    0 1px 3px rgba(0, 0, 0, 0.04),
    0 8px 24px rgba(0, 0, 0, 0.08),
    0 0 0 0.5px rgba(0, 0, 0, 0.04);
  padding: 6px;
  margin-top: 10px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
}

.dropdown-item {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'PingFang SC', sans-serif;
  font-size: 13.5px;
  color: rgba(29, 29, 31, 0.75);
  padding: 9px 12px;
  border-radius: 8px;
  transition: all 0.2s cubic-bezier(0.25, 0.1, 0.25, 1);
  font-weight: 450;
}

.dropdown-item:hover {
  background: rgba(0, 0, 0, 0.04);
  color: #1d1d1f;
}

.dropdown-divider {
  margin: 6px 0;
  border-color: rgba(0, 0, 0, 0.06);
}

/* 移动端导航- 简约风格*/
.navbar-toggler {
  border: none;
  padding: 6px;
  border-radius: 8px;
  background: transparent;
  color: rgba(29, 29, 31, 0.65);
  transition: all 0.25s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.navbar-toggler:focus {
  box-shadow: none;
  background: rgba(0, 0, 0, 0.05);
}

@media (max-width: 991px) {
  .navbar-collapse {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-radius: 16px;
    margin-top: 10px;
    padding: 12px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow:
      0 1px 3px rgba(0, 0, 0, 0.03),
      0 12px 32px rgba(0, 0, 0, 0.08);
  }
}

/* ==================== 底部 - Pentagram简约风格==================== */
.footer-glass {
  background: #fafaf9;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  padding: 88px 0 40px;
}

.footer-divider {
  display: block;
  width: 28px;
  height: 1.5px;
  background: #d4d4d4;
  margin: 0 auto 48px;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 64px;
  margin-bottom: 64px;
}

/* 品牌区域 - Pentagram简约风格*/
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #1d1d1f;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'PingFang SC', sans-serif;
  font-size: 17px;
  font-weight: 550;
  letter-spacing: -0.02em;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-logo:hover {
  opacity: 0.75;
}

.footer-logo:hover .brand-logo-icon {
  transform: scale(1.06);
}

.footer-logo svg {
  width: 30px;
  height: 30px;
  color: #1d1d1f;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-tagline {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'PingFang SC', sans-serif;
  font-size: 14px;
  color: #86868b;
  font-weight: 450;
  margin: 0;
  line-height: 1.5;
  letter-spacing: 0.02em;
}

.footer-description {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'PingFang SC', sans-serif;
  font-size: 13px;
  color: #9a9a9e;
  line-height: 1.7;
  margin: 0;
  max-width: 320px;
  font-weight: 400;
  letter-spacing: 0.01em;
}

/* 链接区域 - Pentagram简约排版*/
.footer-links h6,
.footer-contact h6 {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'PingFang SC', sans-serif;
  font-size: 11px;
  font-weight: 600;
  color: #1d1d1f;
  margin-bottom: 20px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.footer-links ul,
.footer-contact ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links a {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'PingFang SC', sans-serif;
  font-size: 13px;
  color: #6e6e73;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  font-weight: 400;
  letter-spacing: 0.01em;
  display: inline-block;
}

.footer-links a:hover {
  color: #1d1d1f;
  transform: translateX(2px);
}

/* 联系信息 - Pentagram简约风格*/
.footer-contact li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'PingFang SC', sans-serif;
  font-size: 13px;
  color: #6e6e73;
  font-weight: 400;
  letter-spacing: 0.01em;
}

.footer-contact svg {
  width: 20px;
  height: 20px;
  color: #9a9a9e;
  flex-shrink: 0;
  transition: color 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-contact li:hover svg {
  color: #6e6e73;
}

/* 底部版权区- Pentagram简约风格*/
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.footer-copyright {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'PingFang SC', sans-serif;
  font-size: 12px;
  color: #9a9a9e;
  margin: 0;
  font-weight: 400;
  letter-spacing: 0.02em;
}

.footer-legal {
  display: flex;
  align-items: center;
  gap: 18px;
}

.footer-legal a {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'PingFang SC', sans-serif;
  font-size: 12px;
  color: #9a9a9e;
  text-decoration: none;
  transition: color 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  font-weight: 400;
  letter-spacing: 0.02em;
}

.footer-legal a:hover {
  color: #1d1d1f;
}

.footer-legal .divider {
  color: #d4d4d4;
  font-size: 11px;
}

/* 响应式适配 */
@media (max-width: 992px) {
  .footer-content {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
  
  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 576px) {
  .footer-glass {
    padding: 64px 0 32px;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 28px;
    margin-bottom: 36px;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 14px;
    text-align: center;
  }

  .footer-legal {
    justify-content: center;
  }
}

/* ==================== 通知 ==================== */
.notification-container {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 1050;
  max-width: 400px;
}

.notification-container .alert {
  margin-bottom: 0.5rem;
  animation: slideIn 0.3s ease;
}

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

/* ==================== 高级感卡片系统==================== */
.card {
  border: none;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: var(--shadow-md);
  transition: transform var(--duration-300) var(--ease-out), 
              box-shadow var(--duration-300) var(--ease-out),
              background var(--duration-300) var(--ease-out);
  border: 1px solid rgba(255, 255, 255, 0.6);
}

.card:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: var(--shadow-xl);
  background: rgba(255, 255, 255, 0.95);
}

.card-header {
  background-color: transparent;
  border-bottom: 1px solid var(--gray-200);
  padding: 1.5rem;
}

.card-body {
  padding: 1.5rem;
}

/* 玻璃拟态卡片*/
.glass-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-lg);
  transition: all var(--duration-300) var(--ease-out);
  position: relative;
  overflow: hidden;
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(180deg, rgba(255,255,255,0.4) 0%, transparent 100%);
  pointer-events: none;
}

.glass-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  background: rgba(255, 255, 255, 0.85);
}

/* 光效扫过动画 */
.glass-card-shine {
  position: relative;
  overflow: hidden;
}

.glass-card-shine::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  transition: left var(--duration-500) var(--ease-out);
  pointer-events: none;
}

.glass-card-shine:hover::after {
  left: 100%;
}

/* ==================== 高级感按钮系统==================== */
.btn {
  border-radius: var(--radius-lg);
  padding: 0.75rem 1.5rem;
  font-weight: var(--font-semibold);
  font-size: var(--text-base);
  transition: all var(--duration-200) var(--ease-out);
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

/* 主按钮 - 渐变 + 高级阴影 */
.btn-primary {
  background: linear-gradient(135deg, var(--primary-600) 0%, var(--primary-500) 100%);
  border: none;
  color: white;
  box-shadow: var(--shadow-md),
              var(--shadow-primary);
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(180deg, rgba(255,255,255,0.2) 0%, transparent 100%);
  pointer-events: none;
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-500) 0%, var(--primary-400) 100%);
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl),
              var(--shadow-primary);
}

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

/* 成功按钮 */
.btn-success {
  background: linear-gradient(135deg, var(--success-600) 0%, var(--success-500) 100%);
  border: none;
  color: white;
  box-shadow: var(--shadow-md),
              var(--shadow-success);
}

.btn-success::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(180deg, rgba(255,255,255,0.2) 0%, transparent 100%);
  pointer-events: none;
}

.btn-success:hover {
  background: linear-gradient(135deg, var(--success-500) 0%, var(--success-400) 100%);
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl),
              var(--shadow-success);
}

/* 边框按钮 - 玻璃拟态风格*/
.btn-outline-primary {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1.5px solid var(--primary-300);
  color: var(--primary-700);
  box-shadow: var(--shadow-sm);
}

.btn-outline-primary:hover {
  background: rgba(255, 255, 255, 0.9);
  border-color: var(--primary-500);
  color: var(--primary-600);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* 按钮尺寸 */
.btn-sm {
  padding: 0.5rem 1rem;
  font-size: var(--text-sm);
  border-radius: var(--radius-md);
}

.btn-lg {
  padding: 1rem 2.25rem;
  font-size: var(--text-lg);
  border-radius: var(--radius-xl);
}

.btn-xl {
  padding: 1.25rem 2.75rem;
  font-size: var(--text-xl);
  border-radius: var(--radius-2xl);
  font-weight: var(--font-bold);
}

/* 光效扫过按钮 */
.btn-shine {
  position: relative;
  overflow: hidden;
}

.btn-shine::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transition: left var(--duration-500) var(--ease-out);
}

.btn-shine:hover::after {
  left: 100%;
}

/* ==================== 表单 ==================== */
.form-control {
  border-radius: var(--border-radius-md);
  border: 1px solid var(--gray-300);
  padding: 0.625rem 1rem;
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(77, 150, 255, 0.25);
}

.form-check-input:checked {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

/* ==================== 页面标题 ==================== */
.page-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.page-header h1 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--gray-800);
  margin-bottom: 0.5rem;
}

.page-header p {
  color: var(--gray-600);
  font-size: 1.1rem;
}

/* ==================== 步骤指示器==================== */
.steps-indicator {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
}

.step {
  display: flex;
  align-items: center;
  padding: 0.5rem 1rem;
  color: var(--gray-500);
  font-weight: 500;
}

.step.active {
  color: var(--primary-color);
}

.step.completed {
  color: var(--success-color);
}

.step-number {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-color: var(--gray-300);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  margin-right: 0.5rem;
}

.step.active .step-number {
  background-color: var(--primary-color);
}

.step.completed .step-number {
  background-color: var(--success-color);
}

.step-divider {
  width: 40px;
  height: 2px;
  background-color: var(--gray-300);
  margin: 0 0.5rem;
}

.step-divider.completed {
  background-color: var(--success-color);
}

/* ==================== 场景卡片 ==================== */
.scene-card {
  cursor: pointer;
  overflow: hidden;
}

.scene-card .card-img-top {
  height: 180px;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

.scene-card:hover .card-img-top {
  transform: scale(1.05);
}

.scene-card.selected {
  border: 2px solid var(--primary-color);
}

.scene-card.selected .card-body {
  background-color: rgba(77, 150, 255, 0.05);
}

/* ==================== 痛点选项 ==================== */
.pain-option {
  cursor: pointer;
  border: 2px solid var(--gray-200);
  border-radius: var(--border-radius-lg);
  padding: 1.25rem;
  transition: all var(--transition-fast);
  margin-bottom: 1rem;
}

.pain-option:hover {
  border-color: var(--primary-color);
  background-color: rgba(77, 150, 255, 0.02);
}

.pain-option.selected {
  border-color: var(--primary-color);
  background-color: rgba(77, 150, 255, 0.05);
}

.pain-option .pain-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--border-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

/* ==================== 工具包卡片==================== */
.toolkit-card {
  display: flex;
  align-items: center;
  padding: 1rem;
  border: 1px solid var(--gray-200);
  border-radius: var(--border-radius-md);
  margin-bottom: 1rem;
}

.toolkit-image {
  width: 80px;
  height: 80px;
  border-radius: var(--border-radius-md);
  object-fit: cover;
  margin-right: 1rem;
}

.toolkit-info {
  flex: 1;
}

.toolkit-name {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.toolkit-desc {
  color: var(--gray-600);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.toolkit-price {
  color: var(--primary-color);
  font-weight: 600;
}

/* ==================== 响应式==================== */
@media (max-width: 768px) {
  .app-container {
    padding: 1rem 0;
  }
  
  .page-header h1 {
    font-size: 1.5rem;
  }
  
  .steps-indicator {
    flex-wrap: wrap;
  }
  
  .step-divider {
    display: none;
  }
  
  .notification-container {
    left: 1rem;
    right: 1rem;
    max-width: none;
  }
}

/* ==================== 工具包==================== */
.text-primary { color: var(--primary-color) !important; }
.text-secondary { color: var(--secondary-color) !important; }
.text-success { color: var(--success-color) !important; }
.text-danger { color: var(--danger-color) !important; }
.text-warning { color: var(--warning-color) !important; }

.bg-primary { background-color: var(--primary-color) !important; }
.bg-secondary { background-color: var(--secondary-color) !important; }
.bg-light { background-color: var(--light-color) !important; }

.shadow-sm { box-shadow: var(--shadow-sm) !important; }
.shadow-md { box-shadow: var(--shadow-md) !important; }
.shadow-lg { box-shadow: var(--shadow-lg) !important; }

.rounded-lg { border-radius: var(--border-radius-lg) !important; }
.rounded-xl { border-radius: var(--border-radius-xl) !important; }

/* ==================== 动画 ==================== */
.fade-in {
  animation: fadeIn 0.5s ease;
}

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

.slide-up {
  animation: slideUp 0.5s ease;
}

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

/* ==================== 首页模块样式 ==================== */
.home-module {
  animation: fadeIn 0.5s ease;
}

.hero-section {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  position: relative;
  overflow: hidden;
}

.hero-content {
  padding: 3rem 0;
}

.hero-title {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  color: #343a40;
}

.hero-title .text-primary {
  color: var(--primary-color) !important;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: #6c757d;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.hero-features {
  display: flex;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #495057;
  font-weight: 500;
}

.feature-item i {
  color: var(--primary-color);
  font-size: 1.25rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
}

.hero-image {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-illustration {
  width: 400px;
  height: 400px;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 20px 60px rgba(77, 150, 255, 0.3);
}

.hero-illustration i {
  font-size: 10rem;
  color: white;
}

.features-section {
  background: white;
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.feature-card {
  text-align: center;
  padding: 2.5rem 1.5rem;
  border-radius: 1rem;
  background: white;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.feature-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.feature-icon i {
  font-size: 2rem;
  color: white;
}

.feature-card h4 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #343a40;
}

.feature-card p {
  color: #6c757d;
  line-height: 1.6;
}

.process-section {
  background: #f8f9fa;
}

.process-step {
  text-align: center;
  padding: 2rem 1rem;
}

.process-step .step-number {
  width: 60px;
  height: 60px;
  background: var(--primary-color);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 auto 1.5rem;
}

.process-step h5 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.process-step p {
  color: #6c757d;
}

.stats-section {
  background: white;
}

.stat-item {
  padding: 2rem 1rem;
}

.stat-number {
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 1.1rem;
  color: #6c757d;
  font-weight: 500;
}

.cta-section {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark)) !important;
}

.cta-section h2 {
  font-size: 2.5rem;
  font-weight: 700;
}

.cta-section .btn-light {
  color: var(--primary-color);
  font-weight: 600;
  padding: 1rem 2.5rem;
}

.cta-section .btn-light:hover {
  background: white;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* ==================== 场景选择模块样式 ==================== */
/* 旧的scene-module样式已禁用，新样式在modules/scene/style.css中*/
/*
.scene-module {
  padding: 2rem 0;
  animation: fadeIn 0.5s ease;
}

.scene-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.scene-card {
  background: white;
  border: 2px solid #e9ecef;
  border-radius: 1rem;
  padding: 2rem;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.scene-card:hover {
  border-color: var(--primary-color);
  box-shadow: 0 8px 25px rgba(77, 150, 255, 0.15);
  transform: translateY(-4px);
}

.scene-card.selected {
  border-color: var(--primary-color);
  background-color: rgba(77, 150, 255, 0.05);
}

.scene-icon-wrapper {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  transition: transform 0.3s ease;
}

.scene-card:hover .scene-icon-wrapper {
  transform: scale(1.1);
}

.scene-icon-wrapper i {
  font-size: 2rem;
  color: white;
}

.scene-info h4 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #343a40;
  margin-bottom: 0.75rem;
}

.scene-info p {
  color: #6c757d;
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0;
}

.scene-check {
  position: absolute;
  top: 1rem;
  right: 1rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.scene-card.selected .scene-check {
  opacity: 1;
}

.scene-check i {
  font-size: 1.5rem;
  color: var(--primary-color);
}
*/

/* ==================== 痛点选择模块样式（已注释，使用新样式）==================== */
/*
.pain-module {
  padding: 2rem 0;
  animation: fadeIn 0.5s ease;
}

.scene-info-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: white;
  border: 1px solid #e9ecef;
  border-radius: 0.75rem;
  padding: 1rem 1.5rem;
  margin-bottom: 2rem;
}

.selected-scene {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #495057;
  font-weight: 500;
}

.selected-scene i {
  color: var(--primary-color);
  font-size: 1.25rem;
}

.pain-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.pain-card {
  display: flex;
  align-items: center;
  background: white;
  border: 2px solid #e9ecef;
  border-radius: 1rem;
  padding: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.pain-card:hover {
  border-color: var(--primary-color);
  box-shadow: 0 4px 15px rgba(77, 150, 255, 0.1);
}

.pain-card.selected {
  border-color: var(--primary-color);
  background-color: rgba(77, 150, 255, 0.05);
}

.pain-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #ff6b6b, #ee5a5a);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1.5rem;
  flex-shrink: 0;
}

.pain-icon i {
  font-size: 1.5rem;
  color: white;
}

.pain-content {
  flex: 1;
}

.pain-content h4 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #343a40;
  margin-bottom: 0.5rem;
}

.pain-tag {
  display: inline-block;
  background: #e9ecef;
  color: #6c757d;
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.875rem;
}

.pain-check {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.pain-card.selected .pain-check {
  opacity: 1;
}

.pain-check i {
  font-size: 1.5rem;
  color: var(--primary-color);
}
*/

/* ==================== 方案结果模块样式 ==================== */
.result-module {
  padding: 2rem 0;
  animation: fadeIn 0.5s ease;
}

.plan-header {
  text-align: center;
  margin-bottom: 2rem;
}

.plan-badge {
  display: inline-flex;
  align-items: center;
  background: rgba(107, 203, 119, 0.1);
  color: var(--success-color);
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.plan-badge i {
  margin-right: 0.5rem;
  font-size: 1.25rem;
}

.plan-header h1 {
  font-size: 2rem;
  font-weight: 700;
  color: #343a40;
  margin-bottom: 0.75rem;
}

.plan-subtitle {
  color: #6c757d;
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

.plan-overview {
  margin-bottom: 2rem;
}

.overview-card {
  background: white;
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.overview-item {
  display: flex;
  flex-direction: column;
}

.overview-label {
  color: #6c757d;
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}

.overview-value {
  font-size: 1.1rem;
  font-weight: 600;
  color: #343a40;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.overview-value i {
  color: var(--primary-color);
}

.overview-value.price {
  color: var(--primary-color);
  font-size: 1.5rem;
}

.tools-section {
  margin-bottom: 2rem;
}

.tools-section h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #343a40;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.tools-section h2 i {
  color: var(--primary-color);
}

.tools-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.tool-item {
  display: flex;
  align-items: flex-start;
  background: white;
  border: 1px solid #e9ecef;
  border-radius: 1rem;
  padding: 1.5rem;
  transition: box-shadow 0.3s ease;
}

.tool-item:hover {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.tool-number {
  width: 40px;
  height: 40px;
  background: var(--primary-color);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin-right: 1rem;
  flex-shrink: 0;
}

.tool-content {
  flex: 1;
}

.tool-content h4 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #343a40;
  margin-bottom: 0.5rem;
}

.tool-content p {
  color: #6c757d;
  margin-bottom: 0.75rem;
}

.tool-items {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tool-tag {
  background: #e9ecef;
  color: #495057;
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.875rem;
}

.tool-price {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-left: 1rem;
  white-space: nowrap;
}

.steps-section {
  margin-bottom: 2rem;
}

.steps-section h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #343a40;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.steps-section h2 i {
  color: var(--primary-color);
}

.steps-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.step-item {
  display: flex;
  align-items: center;
  background: white;
  border: 1px solid #e9ecef;
  border-radius: 0.75rem;
  padding: 1rem 1.5rem;
}

.step-num {
  width: 32px;
  height: 32px;
  background: var(--primary-color);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  margin-right: 1rem;
  flex-shrink: 0;
}

.step-text {
  color: #495057;
  font-size: 1rem;
}

.effect-section {
  margin-bottom: 2rem;
}

.effect-section h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #343a40;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.effect-section h2 i {
  color: var(--primary-color);
}

.effect-card {
  display: flex;
  align-items: flex-start;
  background: linear-gradient(135deg, rgba(107, 203, 119, 0.1), rgba(77, 150, 255, 0.1));
  border: 1px solid rgba(107, 203, 119, 0.3);
  border-radius: 1rem;
  padding: 1.5rem;
}

.effect-card i {
  font-size: 2rem;
  color: var(--success-color);
  margin-right: 1rem;
  flex-shrink: 0;
}

.effect-card p {
  color: #495057;
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.6;
}

.action-group {
  display: flex;
  gap: 0.5rem;
}

/* ==================== 操作按钮通用样式 ==================== */
.action-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid #e9ecef;
}

.action-bar .btn {
  padding: 0.875rem 2rem;
}

.action-bar .btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ==================== 响应式样式==================== */
@media (max-width: 991px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-illustration {
    width: 300px;
    height: 300px;
  }
  
  .hero-illustration i {
    font-size: 7rem;
  }
  
  .hero-features {
    flex-direction: column;
    gap: 1rem;
  }
}

@media (max-width: 767px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
  
  .hero-actions {
    flex-direction: column;
  }
  
  .hero-actions .btn {
    width: 100%;
    margin-bottom: 0.5rem;
  }
  
  .hero-illustration {
    width: 250px;
    height: 250px;
    margin-top: 2rem;
  }
  
  .hero-illustration i {
    font-size: 5rem;
  }
  
  .section-header h2 {
    font-size: 2rem;
  }
  
  .stat-number {
    font-size: 2.5rem;
  }

  .scene-grid,
  .budget-options {
    grid-template-columns: 1fr;
  }

  .scene-card {
    padding: 1.5rem;
    flex-direction: row;
    text-align: left;
  }

  .scene-icon-wrapper {
    width: 60px;
    height: 60px;
    margin-bottom: 0;
    margin-right: 1rem;
  }

  .scene-icon-wrapper i {
    font-size: 1.5rem;
  }

  .scene-info {
    flex: 1;
  }

  .pain-card {
    padding: 1rem;
  }

  .pain-icon {
    width: 50px;
    height: 50px;
    margin-right: 1rem;
  }

  .pain-icon i {
    font-size: 1.25rem;
  }

  .pain-content h4 {
    font-size: 1.1rem;
  }

  .tool-item {
    flex-direction: column;
  }

  .tool-number {
    margin-bottom: 1rem;
  }

  .tool-price {
    margin-left: 0;
    margin-top: 1rem;
  }

  .effect-card {
    flex-direction: column;
    text-align: center;
  }

  .effect-card i {
    margin-right: 0;
    margin-bottom: 1rem;
  }

  .action-bar {
    flex-direction: column;
    gap: 1rem;
  }

  .action-bar .btn,
  .action-group {
    width: 100%;
  }

  .action-group .btn {
    flex: 1;
  }

  .plan-header h1 {
    font-size: 1.5rem;
  }

  .overview-card {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

/* ==================== 热力图模块==================== */
.heatmap-module {
  min-height: 100vh;
  background: linear-gradient(135deg, #f5f7fa 0%, #e4e8ec 100%);
}

.heatmap-module .page-header {
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a5a 100%);
  color: white;
  padding: 2rem 0;
}

.heatmap-module .page-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.heatmap-module .page-subtitle {
  opacity: 0.9;
  margin: 0;
}

.scene-selector .form-label,
.mode-switcher .form-label {
  font-weight: 600;
  color: #495057;
  margin-bottom: 0.75rem;
}

.scene-tabs,
.mode-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.scene-tab,
.mode-tab {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: white;
  border: 2px solid #e9ecef;
  border-radius: 0.75rem;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
}

.scene-tab:hover,
.mode-tab:hover {
  border-color: #4d96ff;
  transform: translateY(-2px);
}

.scene-tab.active,
.mode-tab.active {
  background: linear-gradient(135deg, #4d96ff 0%, #357abd 100%);
  color: white;
  border-color: #4d96ff;
}

.scene-tab i,
.mode-tab i {
  font-size: 1.1rem;
}

.heatmap-chart-wrapper {
  position: relative;
}

.heatmap-chart {
  width: 100%;
  height: 500px;
  border-radius: 0.75rem;
  background: #f8f9fa;
}

.mock-heatmap {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 2px;
  width: 100%;
  height: 100%;
  padding: 1rem;
}

.heatmap-cell {
  aspect-ratio: 1;
  border-radius: 4px;
  transition: transform 0.2s ease;
}

.heatmap-cell:hover {
  transform: scale(1.2);
  z-index: 10;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.heatmap-legend {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: #6c757d;
}

.legend-color {
  width: 100px;
  height: 12px;
  border-radius: 6px;
}

.time-control .form-label {
  font-weight: 600;
  color: #495057;
}

.time-slider-container {
  background: white;
  padding: 1rem;
  border-radius: 0.75rem;
  border: 2px solid #e9ecef;
}

.time-slider {
  width: 100%;
  height: 8px;
  -webkit-appearance: none;
  appearance: none;
  background: linear-gradient(to right, #4d96ff, #6bcb77);
  border-radius: 4px;
  outline: none;
}

.time-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  background: white;
  border: 3px solid #4d96ff;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.time-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: #6c757d;
}

.lesions-panel,
.stats-panel {
  background: white;
  border-radius: 0.75rem;
  padding: 1.25rem;
  border: 2px solid #e9ecef;
}

.panel-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #343a40;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
}

.lesions-list {
  max-height: 300px;
  overflow-y: auto;
}

.lesion-item {
  padding: 0.875rem;
  border: 1px solid #e9ecef;
  border-radius: 0.5rem;
  margin-bottom: 0.75rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.lesion-item:hover {
  border-color: #4d96ff;
  background: rgba(77, 150, 255, 0.05);
}

.lesion-item.active {
  border-color: #4d96ff;
  background: rgba(77, 150, 255, 0.1);
}

.lesion-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.25rem;
}

.lesion-priority {
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.75rem;
  font-weight: 600;
}

.lesion-priority.priority-1 {
  background: #ff6b6b;
  color: white;
}

.lesion-priority.priority-2 {
  background: #ffe66d;
  color: #333;
}

.lesion-priority.priority-3 {
  background: #a8e6cf;
  color: #333;
}

.lesion-name {
  font-weight: 600;
  color: #343a40;
  flex: 1;
}

.lesion-intensity {
  font-size: 0.875rem;
  color: #ff6b6b;
  font-weight: 600;
}

.lesion-desc {
  font-size: 0.875rem;
  color: #6c757d;
}

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

.stat-item {
  text-align: center;
  padding: 1rem;
  background: #f8f9fa;
  border-radius: 0.5rem;
}

.stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: #4d96ff;
}

.stat-label {
  font-size: 0.875rem;
  color: #6c757d;
  margin-top: 0.25rem;
}

/* ==================== 3D空间模块 ==================== */
.space3d-module {
  min-height: 100vh;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  color: white;
}

.space3d-module .page-header {
  background: rgba(255,255,255,0.05);
  padding: 1.5rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.space3d-module .page-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.space3d-module .page-subtitle {
  opacity: 0.7;
  margin: 0;
}

.space3d-canvas-wrapper {
  position: relative;
  background: rgba(0,0,0,0.3);
  border-radius: 1rem;
  overflow: hidden;
}



.space3d-canvas {
  width: 100%;
  height: 600px;
  position: relative;
}

.space3d-canvas canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
  outline: none;
}

.loading-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.8);
  z-index: 100;
}

.loading-overlay[style*="display: none"],
.loading-overlay[style*="display:none"] {
  pointer-events: none !important;
  visibility: hidden;
}

.loading-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid rgba(255,255,255,0.1);
  border-top-color: #4d96ff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 1rem;
}

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

.space3d-controls {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: flex;
  gap: 0.5rem;
  z-index: 10;
}

.control-btn {
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 0.5rem;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.control-btn:hover {
  background: rgba(255,255,255,0.2);
}

.control-btn.active {
  background: #4d96ff;
  border-color: #4d96ff;
}

.view-hint {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(0,0,0,0.6);
  border-radius: 2rem;
  pointer-events: none;
  z-index: 5;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.8);
}

.mock-3d-container {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1000px;
  overflow: hidden;
}

.mock-3d-scene {
  width: 300px;
  height: 300px;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.1s ease-out;
}

.mock-floor {
  position: absolute;
  width: 300px;
  height: 300px;
  background: linear-gradient(135deg, #2d3436 0%, #636e72 100%);
  transform: rotateX(90deg) translateZ(-100px);
  border-radius: 8px;
  box-shadow: 0 0 50px rgba(0,0,0,0.5);
}

.mock-zone {
  position: absolute;
  width: 80px;
  height: 80px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.mock-zone.hot-zone {
  background: rgba(255, 107, 107, 0.8);
  border: 2px solid #ff6b6b;
}

.mock-zone.calm-zone {
  background: rgba(78, 205, 196, 0.8);
  border: 2px solid #4ecdc4;
}

.mock-zone.safe-zone {
  background: rgba(168, 230, 207, 0.8);
  border: 2px solid #a8e6cf;
}

.zone-label {
  color: white;
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.mock-tool {
  position: absolute;
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #333;
  font-size: 1.25rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.panel-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 0.75rem;
  padding: 1.25rem;
  margin-bottom: 1rem;
}

.panel-card .panel-title {
  color: white;
  font-size: 1rem;
  margin-bottom: 1rem;
}

.scene-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.scene-option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.scene-option:hover {
  background: rgba(255,255,255,0.1);
}

.scene-option.active {
  background: rgba(77, 150, 255, 0.2);
  border-color: #4d96ff;
}

.scene-option i {
  width: 32px;
  height: 32px;
  background: rgba(77, 150, 255, 0.2);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #4d96ff;
}

.scene-info {
  display: flex;
  flex-direction: column;
}

.scene-name {
  font-weight: 600;
  color: white;
}

.scene-desc {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.6);
}

.dimension-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.dimension-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.dim-label {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.8);
}

.dim-bar {
  height: 8px;
  background: rgba(255,255,255,0.1);
  border-radius: 4px;
  overflow: hidden;
}

.dim-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.5s ease;
}

.dim-value {
  font-size: 0.875rem;
  color: #4d96ff;
  font-weight: 600;
}

.element-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* ==================== 3D预览面板样式 ==================== */
.plan-overview-3d {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.plan-overview-3d .overview-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background: rgba(255,255,255,0.05);
  border-radius: 0.5rem;
}

.plan-overview-3d .overview-item i {
  width: 36px;
  height: 36px;
  background: rgba(77, 150, 255, 0.2);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #4d96ff;
  font-size: 1rem;
}

.plan-overview-3d .overview-info {
  display: flex;
  flex-direction: column;
}

.plan-overview-3d .overview-label {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.6);
}

.plan-overview-3d .overview-value {
  font-size: 0.875rem;
  font-weight: 600;
  color: white;
}

.plan-overview-3d .overview-value.price {
  color: #4ecdc4;
}

.tool-list-3d {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.tool-item-3d {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background: rgba(255,255,255,0.05);
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.tool-item-3d:hover {
  background: rgba(255,255,255,0.1);
}

.tool-item-3d .tool-marker {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 0.875rem;
}

.tool-item-3d .tool-info {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.tool-item-3d .tool-name {
  font-size: 0.875rem;
  font-weight: 500;
  color: white;
}

.tool-item-3d .tool-price {
  font-size: 0.75rem;
  color: #4ecdc4;
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  text-align: center;
}

.empty-state i {
  font-size: 3rem;
  color: rgba(255,255,255,0.3);
  margin-bottom: 1rem;
}

.empty-state p {
  color: rgba(255,255,255,0.6);
  margin-bottom: 1rem;
}

.mock-tool .tool-label {
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.8);
  color: white;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  white-space: nowrap;
}

.element-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.element-color {
  width: 16px;
  height: 16px;
  border-radius: 4px;
}

.element-name {
  flex: 1;
  color: rgba(255,255,255,0.8);
  font-size: 0.875rem;
}

.element-count {
  color: #4d96ff;
  font-weight: 600;
  font-size: 0.875rem;
}

/* ==================== 热力图叠加层样式 ==================== */
.heatmap-overlay-container {
  position: relative;
  width: 100%;
  height: 400px;
  overflow: hidden;
  border-radius: 0.75rem;
  background: #f8f9fa;
}

.heatmap-base-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.heatmap-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  mix-blend-mode: overlay;
}

.view-panel .panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  background: #f8f9fa;
  border-bottom: 1px solid #e9ecef;
  font-weight: 600;
  color: #495057;
}

.view-panel .image-info {
  font-size: 0.75rem;
  color: #6c757d;
  font-weight: 400;
}

.view-panel .panel-content {
  padding: 1rem;
  background: white;
}

.original-image {
  width: 100%;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8f9fa;
  border-radius: 0.5rem;
  overflow: hidden;
}

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

/* 对比视图样式 */
.comparison-view {
  margin-top: 2rem;
}

.comparison-view .view-panel {
  border: 2px solid #e9ecef;
  border-radius: 0.75rem;
  overflow: hidden;
  height: 100%;
}

/* 诊断结果头部 */
.result-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
  border-radius: 0.75rem;
  margin-bottom: 2rem;
}

.result-badge {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
}

.result-badge.success {
  background: #28a745;
  color: white;
}

.result-info h3 {
  margin: 0;
  color: #155724;
  font-weight: 600;
}

.result-info p {
  margin: 0.25rem 0 0 0;
  color: #155724;
  opacity: 0.8;
}

/* 诊断维度标签 */
.diagnosis-dimensions {
  margin-top: 2rem;
}

.dimension-tabs {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.dimension-tab {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1rem;
  border: 2px solid #e9ecef;
  border-radius: 0.5rem;
  background: white;
  cursor: pointer;
  transition: all 0.3s ease;
}

.dimension-tab:hover {
  border-color: #4d96ff;
  background: rgba(77, 150, 255, 0.05);
}

.dimension-tab.active {
  border-color: #4d96ff;
  background: #4d96ff;
  color: white;
}

/* 病灶列表增强样式 */
.lesions-section {
  margin-top: 2rem;
}

.section-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #343a40;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
}

.lesion-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem;
  border: 2px solid #e9ecef;
  border-radius: 0.75rem;
  margin-bottom: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  background: white;
}

.lesion-item:hover {
  border-color: #4d96ff;
  box-shadow: 0 4px 12px rgba(77, 150, 255, 0.15);
}

.lesion-item.active {
  border-color: #4d96ff;
  background: rgba(77, 150, 255, 0.05);
}

.lesion-marker {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 0.875rem;
  flex-shrink: 0;
}

.lesion-content {
  flex: 1;
}

.lesion-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.lesion-name {
  font-weight: 600;
  color: #343a40;
  font-size: 1rem;
}

.lesion-desc {
  font-size: 0.875rem;
  color: #6c757d;
  margin-bottom: 0.75rem;
  line-height: 1.5;
}

.lesion-metrics {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.lesion-metrics .metric {
  font-size: 0.8125rem;
  color: #495057;
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.lesion-metrics .metric i {
  color: #4d96ff;
}

.lesion-confidence {
  text-align: center;
  flex-shrink: 0;
}

.confidence-ring {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: conic-gradient(#4d96ff calc(var(--progress) * 1%), #e9ecef 0);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.confidence-ring::before {
  content: '';
  position: absolute;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: white;
}

.confidence-ring span {
  position: relative;
  font-size: 0.75rem;
  font-weight: 700;
  color: #4d96ff;
}

.lesion-confidence small {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.6875rem;
  color: #6c757d;
}

/* 统计卡片样式 */
.stats-section {
  margin-top: 2rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.stat-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
  background: white;
  border: 2px solid #e9ecef;
  border-radius: 0.75rem;
  transition: all 0.3s ease;
}

.stat-card:hover {
  border-color: #4d96ff;
  box-shadow: 0 4px 12px rgba(77, 150, 255, 0.1);
}

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: white;
}

.stat-icon.bg-primary { background: #4d96ff; }
.stat-icon.bg-danger { background: #ff6b6b; }
.stat-icon.bg-warning { background: #ffd93d; color: #333; }
.stat-icon.bg-info { background: #6bcb77; }

.stat-info {
  flex: 1;
}

.stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: #343a40;
  line-height: 1;
}

.stat-label {
  font-size: 0.875rem;
  color: #6c757d;
  margin-top: 0.25rem;
}

/* AI建议卡片 */
.ai-suggestion {
  margin-top: 2rem;
}

.suggestion-card {
  background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
  border: 2px solid #ffc107;
  border-radius: 0.75rem;
  overflow: hidden;
}

.suggestion-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: rgba(255, 193, 7, 0.2);
  font-weight: 600;
  color: #856404;
}

.suggestion-header i {
  font-size: 1.25rem;
}

.suggestion-body {
  padding: 1.25rem;
}

.suggestion-body p {
  margin: 0 0 1rem 0;
  color: #856404;
  line-height: 1.6;
}

.suggestion-body .highlight {
  color: #d35400;
  font-weight: 600;
}

.action-recommendation {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  background: white;
  border-radius: 0.5rem;
  font-size: 0.9375rem;
  color: #495057;
}

.action-recommendation i {
  color: #ffc107;
  font-size: 1.125rem;
}

/* ==================== 案例库模块==================== */
.cases-module {
  min-height: 100vh;
  background: linear-gradient(135deg, #f5f7fa 0%, #e4e8ec 100%);
}

.cases-module .page-header {
  background: linear-gradient(135deg, #6bcb77 0%, #5ab868 100%);
  color: white;
  padding: 2rem 0;
}

.cases-module .page-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.cases-module .page-subtitle {
  opacity: 0.9;
  margin: 0;
}

.stats-overview {
  margin-bottom: 2rem;
}

.stat-card {
  background: white;
  border-radius: 1rem;
  padding: 1.5rem;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  transition: transform 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-4px);
}

.stat-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #4d96ff 0%, #357abd 100%);
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  color: white;
  font-size: 1.5rem;
}

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: #343a40;
  margin-bottom: 0.25rem;
}

.stat-label {
  color: #6c757d;
  font-size: 0.875rem;
}

.filter-bar {
  background: white;
  border-radius: 1rem;
  padding: 1.25rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.filter-group {
  margin-bottom: 1rem;
}

.filter-group:last-child {
  margin-bottom: 0;
}

.filter-group label {
  font-weight: 600;
  color: #495057;
  margin-bottom: 0.5rem;
  display: block;
}

.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.filter-tab {
  padding: 0.5rem 1rem;
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 2rem;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.875rem;
}

.filter-tab:hover {
  background: #e9ecef;
}

.filter-tab.active {
  background: linear-gradient(135deg, #4d96ff 0%, #357abd 100%);
  color: white;
  border-color: #4d96ff;
}

.cases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 1.5rem;
}

.case-card {
  background: white;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.case-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.case-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.case-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.case-card:hover .case-image img {
  transform: scale(1.05);
}

.case-budget {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.375rem 0.75rem;
  background: rgba(255,255,255,0.95);
  border-radius: 2rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #4d96ff;
}

.case-scene {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.75rem;
  background: rgba(0,0,0,0.7);
  border-radius: 2rem;
  font-size: 0.75rem;
  color: white;
}

.case-content {
  padding: 1.25rem;
}

.case-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #343a40;
  margin-bottom: 0.5rem;
}

.case-school {
  font-size: 0.875rem;
  color: #6c757d;
  margin-bottom: 0.75rem;
}

.case-summary {
  font-size: 0.875rem;
  color: #495057;
  line-height: 1.5;
  margin-bottom: 1rem;
}

.case-stats {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.case-stats .stat {
  font-size: 0.75rem;
  color: #6c757d;
}

.case-stats .stat i {
  color: #4d96ff;
  margin-right: 0.25rem;
}

.case-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.case-tags .tag {
  padding: 0.25rem 0.5rem;
  background: #f0f4f8;
  border-radius: 0.25rem;
  font-size: 0.75rem;
  color: #4d96ff;
}

.case-actions {
  padding: 0 1.25rem 1.25rem;
}

.case-detail .comparison-images {
  margin-bottom: 1.5rem;
}

.case-detail .image-box {
  position: relative;
  border-radius: 0.75rem;
  overflow: hidden;
}

.case-detail .image-box img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.case-detail .image-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.5rem;
  background: rgba(0,0,0,0.7);
  color: white;
  text-align: center;
  font-size: 0.875rem;
}

.case-detail .image-label.after {
  background: rgba(77, 150, 255, 0.9);
}

.detail-section {
  margin-bottom: 1.5rem;
}

.detail-section h6 {
  font-weight: 600;
  color: #343a40;
  margin-bottom: 0.75rem;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.detail-item {
  display: flex;
  gap: 0.5rem;
}

.detail-item .label {
  color: #6c757d;
  font-size: 0.875rem;
}

.detail-item .value {
  color: #343a40;
  font-weight: 500;
  font-size: 0.875rem;
}

.pain-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.pain-tag {
  padding: 0.375rem 0.75rem;
  background: #fff5f5;
  border: 1px solid #ffc9c9;
  border-radius: 2rem;
  font-size: 0.75rem;
  color: #e03131;
}

.solution-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.solution-item {
  padding: 0.625rem;
  background: #f0f9ff;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  color: #1971c2;
}

.solution-item i {
  color: #40c057;
}

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

.result-item {
  text-align: center;
  padding: 1rem;
  background: linear-gradient(135deg, #f0f9ff 0%, #e7f5ff 100%);
  border-radius: 0.75rem;
}

.result-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: #4d96ff;
}

.result-label {
  font-size: 0.75rem;
  color: #6c757d;
  margin-top: 0.25rem;
}

.testimonial {
  background: #f8f9fa;
  border-radius: 0.75rem;
  padding: 1.25rem;
}

.testimonial-content {
  font-style: italic;
  color: #495057;
  line-height: 1.6;
  margin-bottom: 1rem;
  border-left: 3px solid #4d96ff;
  padding-left: 1rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.testimonial-author .name {
  font-weight: 600;
  color: #343a40;
}

.testimonial-author .role {
  font-size: 0.875rem;
  color: #6c757d;
}

/* ==================== 高级功能卡片 ==================== */
.advanced-feature-card {
  display: block;
  background: white;
  border-radius: 1rem;
  padding: 2rem;
  text-align: center;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  height: 100%;
}

.advanced-feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.15);
  color: inherit;
}

.advanced-icon {
  width: 80px;
  height: 80px;
  border-radius: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: white;
  font-size: 2rem;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.advanced-feature-card h4 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #343a40;
  margin-bottom: 0.75rem;
}

.advanced-feature-card p {
  color: #6c757d;
  font-size: 0.9375rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.feature-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #4d96ff;
  font-weight: 600;
  font-size: 0.9375rem;
  transition: gap 0.3s ease;
}

.advanced-feature-card:hover .feature-link {
  gap: 0.75rem;
}

/* ==================== 图像处理信息样式 ==================== */
.image-processing-info {
  background: white;
  border-radius: 0.75rem;
  padding: 1.5rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.processing-stats {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.stat-item {
  display: flex;
  flex-direction: column;
  padding: 0.75rem;
  background: #f8f9fa;
  border-radius: 0.5rem;
}

.stat-item .stat-label {
  font-size: 0.75rem;
  color: #6c757d;
  margin-bottom: 0.25rem;
}

.stat-item .stat-value {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #343a40;
}

.processing-steps {
  margin-top: 0.5rem;
  padding-top: 1rem;
  border-top: 1px solid #e9ecef;
}

.processing-steps h6 {
  font-size: 0.875rem;
  font-weight: 600;
  color: #495057;
  margin-bottom: 0.75rem;
}

.steps-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.step-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.75rem;
  background: linear-gradient(135deg, #d3f9d8 0%, #b2f2bb 100%);
  border: 1px solid #69db7c;
  border-radius: 2rem;
  font-size: 0.75rem;
  color: #2b8a3e;
  font-weight: 500;
}

.step-tag i {
  font-size: 0.625rem;
}

@media (max-width: 768px) {
  .stat-row {
    grid-template-columns: 1fr;
  }
}

/* ==================== 空间布局分析样式 ==================== */
.space-analysis-section {
  background: white;
  border-radius: 0.75rem;
  padding: 1.5rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.space-layout-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.layout-image-wrapper {
  position: relative;
  width: 100%;
  min-height: 400px;
  background: #f8f9fa;
  border-radius: 0.75rem;
  overflow: hidden;
  border: 2px solid #e9ecef;
}

.layout-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.layout-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* 位置标记样式 */
.position-marker {
  position: absolute;
  transform: translate(-50%, -100%);
  z-index: 10;
  cursor: pointer;
}

.marker-pin {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a5a 100%);
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(255, 107, 107, 0.4);
  transition: all 0.3s ease;
  border: 3px solid white;
}

.marker-pin i {
  display: none;
}

.marker-pin span {
  transform: rotate(45deg);
  color: white;
  font-weight: 700;
  font-size: 0.875rem;
}

.position-marker:hover .marker-pin,
.position-marker.active .marker-pin {
  transform: rotate(-45deg) scale(1.2);
  background: linear-gradient(135deg, #4d96ff 0%, #357abd 100%);
  box-shadow: 0 6px 20px rgba(77, 150, 255, 0.5);
}

.marker-tooltip {
  position: absolute;
  bottom: 45px;
  left: 50%;
  transform: translateX(-50%) scale(0);
  background: white;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  min-width: 200px;
  opacity: 0;
  transition: all 0.3s ease;
  pointer-events: none;
  z-index: 20;
}

.position-marker:hover .marker-tooltip,
.position-marker.active .marker-tooltip {
  transform: translateX(-50%) scale(1);
  opacity: 1;
}

.marker-tooltip strong {
  display: block;
  color: #343a40;
  font-size: 0.9375rem;
  margin-bottom: 0.25rem;
}

.marker-tooltip p {
  color: #6c757d;
  font-size: 0.75rem;
  margin: 0 0 0.5rem 0;
  line-height: 1.4;
}

.marker-tooltip .suitable-tools {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  background: #e7f5ff;
  color: #1971c2;
  border-radius: 0.25rem;
  font-size: 0.75rem;
  font-weight: 500;
}

/* 图例样式 */
.layout-legend {
  background: #f8f9fa;
  border-radius: 0.5rem;
  padding: 1rem;
}

.layout-legend h5 {
  font-size: 0.875rem;
  font-weight: 600;
  color: #495057;
  margin-bottom: 0.75rem;
}

.legend-items {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: #6c757d;
}

.legend-marker {
  width: 16px;
  height: 16px;
  border-radius: 50%;
}

.legend-marker.position {
  background: #ff6b6b;
}

.legend-marker.wall {
  background: #adb5bd;
}

.legend-marker.passage {
  background: #ffd93d;
}

.legend-marker.corner {
  background: #6bcb77;
}

/* 推荐位置列表样式 */
.recommended-positions-section {
  background: white;
  border-radius: 0.75rem;
  padding: 1.5rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.positions-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.position-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem;
  background: #f8f9fa;
  border-radius: 0.5rem;
  border: 2px solid transparent;
  transition: all 0.3s ease;
  cursor: pointer;
}

.position-item:hover {
  background: #e7f5ff;
  border-color: #4d96ff;
}

.position-item.active {
  background: #e7f5ff;
  border-color: #4d96ff;
  box-shadow: 0 0 0 3px rgba(77, 150, 255, 0.2);
}

.position-number {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a5a 100%);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.875rem;
  flex-shrink: 0;
}

.position-item.active .position-number {
  background: linear-gradient(135deg, #4d96ff 0%, #357abd 100%);
}

.position-content {
  flex: 1;
  min-width: 0;
}

.position-content h6 {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #343a40;
  margin-bottom: 0.25rem;
}

.position-content p {
  font-size: 0.875rem;
  color: #6c757d;
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.position-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.position-tags .tag {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.625rem;
  border-radius: 2rem;
  font-size: 0.75rem;
  font-weight: 500;
}

.position-tags .tag-suitable {
  background: #e7f5ff;
  color: #1971c2;
}

.position-tags .tag-size {
  background: #fff3cd;
  color: #856404;
}

.position-tags .tag-score {
  background: #d3f9d8;
  color: #2b8a3e;
}

.select-position-btn {
  flex-shrink: 0;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
}

/* 空间测量数据样式 */
.space-metrics-section {
  background: white;
  border-radius: 0.75rem;
  padding: 1.5rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.metric-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 0.5rem;
  transition: all 0.3s ease;
}

.metric-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.metric-card i {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #4d96ff 0%, #357abd 100%);
  color: white;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.metric-info {
  display: flex;
  flex-direction: column;
}

.metric-value {
  font-size: 1.25rem;
  font-weight: 700;
  color: #343a40;
}

.metric-label {
  font-size: 0.75rem;
  color: #6c757d;
}

/* 响应式调整*/
@media (max-width: 768px) {
  .layout-image-wrapper {
    min-height: 250px;
  }
  
  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .position-item {
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .select-position-btn {
    width: 100%;
  }
}

/* 选择提示Toast样式 */
.selection-toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: linear-gradient(135deg, #4d96ff 0%, #357abd 100%);
  color: white;
  padding: 1rem 2rem;
  border-radius: 2rem;
  box-shadow: 0 8px 30px rgba(77, 150, 255, 0.4);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 500;
  z-index: 9999;
  opacity: 0;
  transition: all 0.3s ease;
}

.selection-toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.selection-toast i {
  font-size: 1.25rem;
}

/* ==================== 三种结果页面样式 ==================== */

/* AI结果页面通用样式 */
.result-image .plan-badge.ai,
.result-video .plan-badge.video {
  background: linear-gradient(135deg, #4d96ff 0%, #357abd 100%);
  color: white;
}

.result-image .plan-badge.ai i,
.result-video .plan-badge.video i {
  margin-right: 0.5rem;
}

/* 步骤指示器AI激活状态*/
.steps-indicator .step.ai-active .step-number {
  background: linear-gradient(135deg, #4d96ff 0%, #357abd 100%);
  color: white;
}

/* AI分析摘要样式 */
.ai-summary-section {
  margin-bottom: 2rem;
}

.ai-summary-section h2 {
  font-size: 1.25rem;
  color: #343a40;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.ai-summary-card {
  background: white;
  border-radius: 0.75rem;
  padding: 1.5rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.summary-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  background: #f8f9fa;
  border-radius: 0.5rem;
}

.summary-item i {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #4d96ff 0%, #357abd 100%);
  color: white;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.summary-info {
  display: flex;
  flex-direction: column;
}

.summary-label {
  font-size: 0.75rem;
  color: #6c757d;
}

.summary-value {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #343a40;
}

/* 位置详情样式 */
.position-detail-section {
  margin-bottom: 2rem;
}

.position-detail-section h2 {
  font-size: 1.25rem;
  color: #343a40;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.position-detail-card {
  background: white;
  border-radius: 0.75rem;
  padding: 1.5rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.position-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #e9ecef;
}

.position-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a5a 100%);
  color: white;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.position-title h3 {
  font-size: 1.125rem;
  color: #343a40;
  margin-bottom: 0.25rem;
}

.position-title p {
  font-size: 0.875rem;
  color: #6c757d;
  margin: 0;
}

.position-metrics {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.metric-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem;
  background: #f8f9fa;
  border-radius: 0.5rem;
}

.metric-label {
  font-size: 0.875rem;
  color: #6c757d;
}

.metric-value {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #343a40;
}

.metric-value.highlight {
  color: #4d96ff;
}

.metric-score {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.score-bar {
  width: 120px;
  height: 8px;
  background: #e9ecef;
  border-radius: 4px;
  overflow: hidden;
}

.score-fill {
  height: 100%;
  background: linear-gradient(90deg, #4d96ff 0%, #357abd 100%);
  border-radius: 4px;
  transition: width 0.5s ease;
}

.score-value {
  font-size: 0.875rem;
  font-weight: 600;
  color: #4d96ff;
}

/* 定制化方案样式*/
.custom-plan-section {
  margin-bottom: 2rem;
}

.custom-plan-section h2 {
  font-size: 1.25rem;
  color: #343a40;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.custom-plan-card {
  background: white;
  border-radius: 0.75rem;
  padding: 1.5rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.plan-intro {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem;
  background: #e7f5ff;
  border-radius: 0.5rem;
  margin-bottom: 1.5rem;
}

.plan-intro i {
  color: #4d96ff;
  font-size: 1.25rem;
}

.plan-intro p {
  margin: 0;
  font-size: 0.875rem;
  color: #495057;
  line-height: 1.5;
}

.installation-guide h4 {
  font-size: 1rem;
  color: #343a40;
  margin-bottom: 1rem;
}

.guide-steps {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.guide-step {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.guide-step .step-number {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, #4d96ff 0%, #357abd 100%);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.875rem;
  flex-shrink: 0;
}

.guide-step .step-content h5 {
  font-size: 0.9375rem;
  color: #343a40;
  margin-bottom: 0.25rem;
}

.guide-step .step-content p {
  font-size: 0.875rem;
  color: #6c757d;
  margin: 0;
}

/* 增强效果样式 */
.effect-section.enhanced .effect-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.effect-section.enhanced .effect-card {
  text-align: center;
  padding: 1.5rem;
}

.effect-section.enhanced .effect-card i {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #4d96ff 0%, #357abd 100%);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto 1rem;
}

.effect-section.enhanced .effect-card h4 {
  font-size: 1rem;
  color: #343a40;
  margin-bottom: 0.5rem;
}

.effect-section.enhanced .effect-card p {
  font-size: 0.875rem;
  color: #6c757d;
  margin: 0;
}

/* 深度分析样式 */
.deep-analysis-section {
  margin-bottom: 2rem;
}

.deep-analysis-section h2 {
  font-size: 1.25rem;
  color: #343a40;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.analysis-report-card {
  background: white;
  border-radius: 0.75rem;
  padding: 1.5rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.report-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.report-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a5a 100%);
  color: white;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.report-title h3 {
  font-size: 1.125rem;
  color: #343a40;
  margin-bottom: 0.25rem;
}

.report-title p {
  font-size: 0.875rem;
  color: #6c757d;
  margin: 0;
}

.lesion-detail {
  padding: 1rem;
  background: #fff5f5;
  border-radius: 0.5rem;
  border-left: 4px solid #ff6b6b;
}

.lesion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.lesion-name {
  font-size: 1rem;
  font-weight: 600;
  color: #343a40;
}

.lesion-priority {
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.75rem;
  font-weight: 600;
}

.lesion-priority.priority-1 {
  background: #ff6b6b;
  color: white;
}

.lesion-desc {
  font-size: 0.875rem;
  color: #495057;
  margin-bottom: 1rem;
}

.lesion-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.lesion-stats .stat {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.75rem;
  background: white;
  border-radius: 2rem;
  font-size: 0.75rem;
  color: #6c757d;
}

.lesion-stats .stat i {
  color: #ff6b6b;
}

/* 行为模式分析样式 */
.behavior-pattern-section {
  margin-bottom: 2rem;
}

.behavior-pattern-section h2 {
  font-size: 1.25rem;
  color: #343a40;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

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

.pattern-card {
  background: white;
  border-radius: 0.75rem;
  padding: 1.5rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  text-align: center;
}

.pattern-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, #6bcb77 0%, #4caf50 100%);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto 1rem;
}

.pattern-card h4 {
  font-size: 1rem;
  color: #343a40;
  margin-bottom: 0.5rem;
}

.pattern-card p {
  font-size: 0.875rem;
  color: #6c757d;
  margin: 0;
}

/* 精准干预方案样式 */
.intervention-section {
  margin-bottom: 2rem;
}

.intervention-section h2 {
  font-size: 1.25rem;
  color: #343a40;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.intervention-card {
  background: white;
  border-radius: 0.75rem;
  padding: 1.5rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.intervention-intro {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem;
  background: #fff3cd;
  border-radius: 0.5rem;
  margin-bottom: 1.5rem;
}

.intervention-intro i {
  color: #ffc107;
  font-size: 1.25rem;
}

.intervention-intro p {
  margin: 0;
  font-size: 0.875rem;
  color: #495057;
  line-height: 1.5;
}

.intervention-strategies {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.strategy-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem;
  background: #f8f9fa;
  border-radius: 0.5rem;
}

.strategy-num {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #4d96ff 0%, #357abd 100%);
  color: white;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.875rem;
  flex-shrink: 0;
}

.strategy-content h4 {
  font-size: 0.9375rem;
  color: #343a40;
  margin-bottom: 0.25rem;
}

.strategy-content p {
  font-size: 0.875rem;
  color: #6c757d;
  margin: 0;
}

/* 效果预测样式 */
.prediction-section {
  margin-bottom: 2rem;
}

.prediction-section h2 {
  font-size: 1.25rem;
  color: #343a40;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.prediction-card {
  background: white;
  border-radius: 0.75rem;
  padding: 1.5rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.prediction-intro {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e9ecef;
}

.prediction-intro i {
  color: #4d96ff;
  font-size: 1.25rem;
}

.prediction-intro p {
  margin: 0;
  font-size: 0.875rem;
  color: #495057;
}

.prediction-metrics {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.prediction-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.prediction-value {
  width: 60px;
  font-size: 1.5rem;
  font-weight: 700;
  color: #4d96ff;
  text-align: center;
}

.prediction-label {
  flex: 1;
  font-size: 0.9375rem;
  color: #343a40;
}

.prediction-bar {
  width: 200px;
  height: 10px;
  background: #e9ecef;
  border-radius: 5px;
  overflow: hidden;
}

.prediction-fill {
  height: 100%;
  background: linear-gradient(90deg, #4d96ff 0%, #6bcb77 100%);
  border-radius: 5px;
  transition: width 0.5s ease;
}

/* 优化后的效果预测样式 */
.prediction-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  border-radius: 2rem;
  font-size: 0.75rem;
  font-weight: 500;
  margin-left: 0.75rem;
}

.prediction-badge.standard {
  background: linear-gradient(135deg, #4d96ff 0%, #357abd 100%);
  color: white;
}

.prediction-badge.image {
  background: linear-gradient(135deg, #6bcb77 0%, #4caf50 100%);
  color: white;
}

.prediction-badge.video {
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a5a 100%);
  color: white;
}

/* 置信度指示器 */
.prediction-confidence {
  background: white;
  border-radius: 0.75rem;
  padding: 1.25rem;
  margin-bottom: 1rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.confidence-bar {
  flex: 1;
  height: 12px;
  background: #e9ecef;
  border-radius: 6px;
  overflow: hidden;
}

.confidence-fill {
  height: 100%;
  background: linear-gradient(90deg, #6bcb77 0%, #4d96ff 50%, #ff6b6b 100%);
  border-radius: 6px;
  transition: width 0.8s ease;
}

.confidence-text {
  font-size: 0.875rem;
  font-weight: 600;
  color: #495057;
  white-space: nowrap;
}

/* 预测指标布局 */
.prediction-metrics.primary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.prediction-metrics.secondary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e9ecef;
}

.prediction-item.highlight {
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.25rem;
  background: linear-gradient(135deg, #f8f9ff 0%, #ffffff 100%);
  border-radius: 0.75rem;
  border: 2px solid #e9ecef;
  transition: all 0.3s ease;
}

.prediction-item.highlight:hover {
  border-color: #4d96ff;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(77, 150, 255, 0.15);
}

.prediction-item.highlight .prediction-value {
  width: auto;
  font-size: 2.5rem;
  background: linear-gradient(135deg, #4d96ff 0%, #6bcb77 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}

.prediction-item.highlight .prediction-label {
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 0.75rem;
}

.prediction-item.highlight .prediction-bar {
  width: 100%;
  height: 12px;
}

.prediction-item.compact {
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1rem;
}

.prediction-item.compact .prediction-value.small {
  width: auto;
  font-size: 1.5rem;
  color: #6c757d;
}

.prediction-item.compact .prediction-label {
  font-size: 0.8125rem;
  color: #6c757d;
  margin: 0.25rem 0 0.5rem;
}

.prediction-bar.small {
  width: 100%;
  height: 6px;
}

/* 预测依据 */
.prediction-reasons {
  background: white;
  border-radius: 0.75rem;
  padding: 1.5rem;
  margin-top: 1rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.prediction-reasons h4 {
  font-size: 1rem;
  color: #343a40;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.prediction-reasons h4 i {
  color: #ffc107;
}

.reasons-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.reasons-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.625rem 0;
  font-size: 0.9375rem;
  color: #495057;
  border-bottom: 1px solid #f0f0f0;
}

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

.reasons-list li i {
  color: #6bcb77;
  margin-top: 0.125rem;
}

/* 效果时间线*/
.prediction-timeline {
  background: white;
  border-radius: 0.75rem;
  padding: 1.5rem;
  margin-top: 1rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.prediction-timeline h4 {
  font-size: 1rem;
  color: #343a40;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.prediction-timeline h4 i {
  color: #4d96ff;
}

.timeline-container {
  position: relative;
  padding-left: 2rem;
}

.timeline-container::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, #4d96ff 0%, #6bcb77 100%);
}

.timeline-item {
  position: relative;
  padding-bottom: 1.5rem;
}

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

.timeline-marker {
  position: absolute;
  left: -2rem;
  width: 18px;
  height: 18px;
  background: white;
  border: 3px solid #4d96ff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.timeline-marker.final {
  border-color: #6bcb77;
  background: #6bcb77;
}

.timeline-phase {
  position: absolute;
  left: -3.5rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.75rem;
  font-weight: 600;
  color: #6c757d;
  white-space: nowrap;
}

.timeline-content h5 {
  font-size: 0.9375rem;
  color: #343a40;
  margin-bottom: 0.25rem;
}

.timeline-content p {
  font-size: 0.8125rem;
  color: #6c757d;
  margin-bottom: 0.75rem;
}

.timeline-progress {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.timeline-progress .progress-bar {
  flex: 1;
  height: 8px;
  background: #e9ecef;
  border-radius: 4px;
  overflow: hidden;
}

.timeline-progress .progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #4d96ff 0%, #6bcb77 100%);
  border-radius: 4px;
  transition: width 0.5s ease;
}

.timeline-progress .progress-text {
  font-size: 0.75rem;
  font-weight: 600;
  color: #4d96ff;
  white-space: nowrap;
}

/* 对比图表 */
.prediction-chart {
  background: white;
  border-radius: 0.75rem;
  padding: 1.5rem;
  margin-top: 1rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.prediction-chart h4 {
  font-size: 1rem;
  color: #343a40;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.prediction-chart h4 i {
  color: #6bcb77;
}

.comparison-chart {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.chart-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.chart-label {
  width: 80px;
  font-size: 0.875rem;
  color: #495057;
  font-weight: 500;
}

.chart-bars {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.chart-bars .bar {
  height: 24px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  padding: 0 0.75rem;
  transition: width 0.5s ease;
}

.chart-bars .bar.before {
  background: #e9ecef;
  color: #6c757d;
}

.chart-bars .bar.after {
  background: linear-gradient(90deg, #4d96ff 0%, #6bcb77 100%);
  color: white;
}

.chart-bars .bar-label {
  font-size: 0.75rem;
  font-weight: 500;
}

/* AI推荐工具包样式*/
.tool-item.ai-recommended {
  border: 2px solid #4d96ff;
  background: linear-gradient(135deg, #f8f9ff 0%, #ffffff 100%);
}

.tool-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.ai-recommend-badge,
.video-recommend-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.5rem;
  border-radius: 2rem;
  font-size: 0.75rem;
  font-weight: 500;
}

.ai-recommend-badge {
  background: #e7f5ff;
  color: #1971c2;
}

.video-recommend-badge {
  background: #f3e5f5;
  color: #7b1fa2;
}

.tool-reason {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-top: 0.75rem;
  padding: 0.5rem 0.75rem;
  background: #e7f5ff;
  border-radius: 0.375rem;
  font-size: 0.75rem;
  color: #1971c2;
}

.tool-reason i {
  margin-top: 0.125rem;
}

/* ==================== 人员流动热力图样式==================== */
.heatmap-section {
  margin-bottom: 2rem;
}

.heatmap-section h2 {
  font-size: 1.25rem;
  color: #343a40;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.heatmap-card {
  background: white;
  border-radius: 0.75rem;
  padding: 1.5rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.heatmap-intro {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem;
  background: #fff3e0;
  border-radius: 0.5rem;
  margin-bottom: 1.5rem;
}

.heatmap-intro i {
  color: #ff9800;
  font-size: 1.25rem;
}

.heatmap-intro p {
  margin: 0;
  font-size: 0.875rem;
  color: #495057;
  line-height: 1.5;
}

.heatmap-container {
  background: #f8f9fa;
  border-radius: 0.5rem;
  padding: 1rem;
  margin-bottom: 1.5rem;
}

#flow-heatmap-canvas {
  width: 100%;
  height: auto;
  border-radius: 0.375rem;
  background: white;
}

/* 视频分析页面热力图容器*/
.flow-heatmap-container {
  position: relative;
  width: 100%;
  height: 300px;
  background: #f8f9fa;
  border-radius: 0.5rem;
  overflow: hidden;
}

.flow-heatmap-container .flow-base-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.flow-heatmap-container #flow-heatmap-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: transparent;
}

/* 热力图背景占位符 */
.heatmap-background-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f5f7fa 0%, #e4e8ec 100%);
  color: #6c757d;
  gap: 0.5rem;
}

.heatmap-background-placeholder i {
  font-size: 3rem;
  opacity: 0.5;
}

.heatmap-background-placeholder span {
  font-size: 0.875rem;
  opacity: 0.7;
}

.heatmap-legend {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #e9ecef;
}

.legend-label {
  font-size: 0.75rem;
  color: #6c757d;
}

.legend-gradient {
  width: 150px;
  height: 12px;
  background: linear-gradient(90deg, #ffff00 0%, #ff8000 50%, #ff0000 100%);
  border-radius: 6px;
}

.heatmap-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.heatmap-stat {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  background: #f8f9fa;
  border-radius: 0.5rem;
}

.heatmap-stat i {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a5a 100%);
  color: white;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.heatmap-stat .stat-info {
  display: flex;
  flex-direction: column;
}

.heatmap-stat .stat-value {
  font-size: 1.25rem;
  font-weight: 700;
  color: #343a40;
}

.heatmap-stat .stat-label {
  font-size: 0.75rem;
  color: #6c757d;
}

/* 响应式调整*/
@media (max-width: 768px) {
  .summary-grid,
  .pattern-grid,
  .effect-section.enhanced .effect-grid {
    grid-template-columns: 1fr;
  }
  
  .prediction-bar {
    width: 120px;
  }
  
  .lesion-stats {
    flex-direction: column;
  }
  
  .heatmap-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  
  #flow-heatmap-canvas {
    height: 250px;
  }
}

/* ==================== 文件预览样式 ==================== */
.file-preview {
  background: white;
  border-radius: 0.75rem;
  padding: 1.5rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.preview-media {
  width: 100%;
  min-height: 300px;
  background: #f8f9fa;
  border-radius: 0.5rem;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.preview-media video {
  width: 100%;
  max-height: 400px;
  border-radius: 0.5rem;
}

.preview-media img {
  max-width: 100%;
  max-height: 400px;
  border-radius: 0.5rem;
  object-fit: contain;
}

.file-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  background: #f8f9fa;
  border-radius: 0.5rem;
}

.file-name {
  font-weight: 500;
  color: #343a40;
}

.file-size {
  font-size: 0.875rem;
  color: #6c757d;
}

.remove-file-btn {
  padding: 0.375rem 0.75rem;
  font-size: 0.875rem;
}

/* ==================== 视频与热力图叠加样式 ==================== */
.video-heatmap-wrapper {
  position: relative;
  width: 100%;
  background: #1a1a2e;
  border-radius: 0.75rem;
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.video-preview-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.video-preview-container video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.video-overlay {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 10;
}

.overlay-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(77, 150, 255, 0.9);
  color: white;
  border-radius: 2rem;
  font-size: 0.875rem;
  font-weight: 500;
  backdrop-filter: blur(10px);
}

.overlay-badge i {
  animation: pulse 2s infinite;
}

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

.heatmap-overlay-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 5;
}

.heatmap-overlay-container canvas {
  width: 100%;
  height: 100%;
  opacity: 0.9;
  /* 移除mix-blend-mode，使用正常渲染*/
}

/* 热点详情样式 */
.hotspot-details {
  margin: 1.5rem 0;
  padding: 1rem;
  background: #f8f9fa;
  border-radius: 0.5rem;
}

.hotspot-details h4 {
  font-size: 1rem;
  color: #343a40;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hotspot-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hotspot-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0.75rem;
  background: white;
  border-radius: 0.5rem;
  border: 1px solid #e9ecef;
}

.hotspot-marker {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 0.875rem;
}

.hotspot-info {
  display: flex;
  flex-direction: column;
}

.hotspot-location {
  font-size: 0.875rem;
  font-weight: 500;
  color: #343a40;
}

.hotspot-intensity {
  font-size: 0.75rem;
  color: #6c757d;
}

/* 热力图控制按钮*/
.heatmap-controls {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin: 1rem 0;
  padding: 0.75rem;
  background: #f8f9fa;
  border-radius: 0.5rem;
}

.heatmap-controls .btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.heatmap-controls .btn i {
  font-size: 0.875rem;
}

/* ==================== 关于我们页面样式 ==================== */
.about-module .about-section {
  padding: 3rem 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.about-module .about-section:last-child {
  border-bottom: none;
}

/* 页面标题 */
.about-module .page-header-glass {
  background: linear-gradient(135deg, rgba(248, 250, 252, 0.9) 0%, rgba(241, 245, 249, 0.95) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.15);
  padding: 80px 0 60px;
}

.about-module .page-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  font-size: 2.5rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 1rem;
}

.about-module .title-icon {
  width: 48px;
  height: 48px;
  color: #a1a1aa;
  flex-shrink: 0;
}

.about-module .page-subtitle {
  font-size: 1.125rem;
  color: #64748b;
  text-align: center;
}

.about-image-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
}

.about-image-placeholder {
  width: 280px;
  height: 280px;
  background: linear-gradient(135deg, rgba(161, 161, 170, 0.1) 0%, rgba(16, 185, 129, 0.1) 100%);
  border: 2px solid rgba(161, 161, 170, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 32px rgba(161, 161, 170, 0.15);
}

.about-image-placeholder svg {
  width: 120px;
  height: 120px;
}

.about-module .section-title {
  font-size: 2rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 1.5rem;
}

.about-module .section-text {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #64748b;
  margin-bottom: 1rem;
}

.feature-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.feature-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(161, 161, 170, 0.08);
  border: 1px solid rgba(161, 161, 170, 0.2);
  border-radius: 2rem;
  color: #a1a1aa;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.feature-tag:hover {
  background: rgba(161, 161, 170, 0.15);
  transform: translateY(-2px);
}

.feature-tag svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.feature-card {
  text-align: center;
  padding: 2.5rem 2rem;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: 1.25rem;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
  height: 100%;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
  border-color: rgba(161, 161, 170, 0.25);
}

.feature-card .feature-icon {
  width: 72px;
  height: 72px;
  background: linear-gradient(135deg, rgba(161, 161, 170, 0.1) 0%, rgba(16, 185, 129, 0.1) 100%);
  border: 2px solid rgba(161, 161, 170, 0.15);
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.feature-card .feature-icon svg {
  width: 36px;
  height: 36px;
}

.feature-card h4 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 1rem;
}

.feature-card p {
  color: #64748b;
  line-height: 1.7;
  font-size: 0.9375rem;
}

.tech-stack {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.tech-category {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(148, 163, 184, 0.15);
  padding: 1.5rem 2rem;
  border-radius: 1rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.tech-category h5 {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 1rem;
}

.tech-category h5 svg {
  width: 22px;
  height: 22px;
  color: #a1a1aa;
  flex-shrink: 0;
}

.tech-items {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.tech-item {
  padding: 0.5rem 1rem;
  background: rgba(248, 250, 252, 0.8);
  border-radius: 0.5rem;
  font-size: 0.875rem;
  color: #475569;
  border: 1px solid rgba(148, 163, 184, 0.15);
  transition: all 0.2s ease;
}

.tech-item:hover {
  background: rgba(161, 161, 170, 0.08);
  border-color: rgba(161, 161, 170, 0.25);
  color: #a1a1aa;
}

.team-card {
  text-align: center;
  padding: 2rem 1.5rem;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: 1.25rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
}

.team-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
  border-color: rgba(161, 161, 170, 0.2);
}

.team-avatar {
  width: 88px;
  height: 88px;
  background: linear-gradient(135deg, rgba(161, 161, 170, 0.08) 0%, rgba(16, 185, 129, 0.08) 100%);
  border: 2px solid rgba(161, 161, 170, 0.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  transition: all 0.3s ease;
}

.team-card:hover .team-avatar {
  border-color: rgba(161, 161, 170, 0.25);
  transform: scale(1.05);
}

.team-avatar svg {
  width: 40px;
  height: 40px;
}

.team-card h5 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 0.5rem;
}

.team-card .text-muted {
  color: #64748b !important;
  font-size: 0.875rem;
}

.contact-section {
  background: linear-gradient(135deg, rgba(248, 250, 252, 0.9) 0%, rgba(241, 245, 249, 0.95) 100%);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(148, 163, 184, 0.15);
  padding: 3rem;
  border-radius: 1.25rem;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  font-size: 1rem;
  color: #475569;
  padding: 0.75rem 1.25rem;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 0.75rem;
  border: 1px solid rgba(148, 163, 184, 0.1);
  transition: all 0.3s ease;
}

.contact-item:hover {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(161, 161, 170, 0.2);
  transform: translateX(4px);
}

.contact-item svg {
  width: 22px;
  height: 22px;
  color: #a1a1aa;
  flex-shrink: 0;
}

/* ==================== 隐私政策页面样式 - Apple/Linear风格 ==================== */
.privacy-module .page-header-glass {
  background: linear-gradient(135deg, rgba(248, 250, 252, 0.9) 0%, rgba(241, 245, 249, 0.95) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.15);
  padding: 80px 0 60px;
}

.privacy-module .page-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1d1d1f;
  text-align: center;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.privacy-module .page-subtitle {
  font-size: 1.125rem;
  color: #86868b;
  text-align: center;
}

.privacy-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 3rem 1.5rem 5rem;
}

.privacy-content-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 24px;
  padding: 3rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.privacy-meta {
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.privacy-update-badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: rgba(0, 122, 255, 0.1);
  border-radius: 980px;
  color: #007aff;
  font-size: 0.875rem;
  font-weight: 500;
}

.privacy-sections {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.privacy-section {
  padding-bottom: 0;
}

.privacy-section h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1d1d1f;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.privacy-section h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: #1d1d1f;
  margin: 1.5rem 0 0.75rem;
}

.privacy-section p {
  color: #6e6e73;
  line-height: 1.7;
  margin-bottom: 1rem;
  font-size: 0.9375rem;
}

.privacy-section ul {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.privacy-section ul li {
  color: #6e6e73;
  line-height: 1.7;
  margin-bottom: 0.5rem;
  font-size: 0.9375rem;
}

.privacy-section ul li strong {
  color: #1d1d1f;
  font-weight: 600;
}

/* 保护措施卡片 */
.protection-measures {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.measure-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem;
  background: rgba(29, 29, 31, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.04);
  border-radius: 16px;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.measure-item:hover {
  background: rgba(0, 122, 255, 0.05);
  border-color: rgba(0, 122, 255, 0.15);
  transform: translateY(-2px);
}

.measure-item svg {
  width: 36px;
  height: 36px;
  color: #007aff;
  flex-shrink: 0;
}

.measure-item h5 {
  font-size: 1rem;
  font-weight: 600;
  color: #1d1d1f;
  margin-bottom: 0.375rem;
}

.measure-item p {
  font-size: 0.875rem;
  color: #86868b;
  margin: 0;
  line-height: 1.5;
}

/* 用户权利 */
.user-rights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.right-item {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 1.25rem;
  background: rgba(29, 29, 31, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.04);
  border-radius: 14px;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.right-item:hover {
  background: rgba(0, 122, 255, 0.05);
  border-color: rgba(0, 122, 255, 0.15);
  transform: translateY(-2px);
}

.right-item svg {
  width: 28px;
  height: 28px;
  color: #007aff;
  flex-shrink: 0;
}

.right-item span {
  font-size: 0.9rem;
  color: #1d1d1f;
  line-height: 1.4;
}

.right-item span strong {
  font-weight: 600;
}

/* 联系我们 */
.privacy-contact-box {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.5rem;
}

.privacy-contact-item {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 1.25rem;
  background: rgba(29, 29, 31, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.04);
  border-radius: 14px;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.privacy-contact-item:hover {
  background: rgba(0, 122, 255, 0.05);
  border-color: rgba(0, 122, 255, 0.15);
}

.privacy-contact-item svg {
  width: 28px;
  height: 28px;
  color: #007aff;
  flex-shrink: 0;
}

.privacy-contact-item span {
  font-size: 0.9375rem;
  color: #1d1d1f;
  font-weight: 500;
}

/* 返回按钮 */
.privacy-actions {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  display: flex;
  justify-content: center;
}

.privacy-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  background: #007aff;
  color: white;
  border-radius: 14px;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.privacy-back-btn:hover {
  background: #0056b3;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 122, 255, 0.35);
}

.privacy-back-btn svg {
  width: 18px;
  height: 18px;
}

/* 响应式适配 */
@media (max-width: 768px) {
  .privacy-module .page-title {
    font-size: 2rem;
  }
  
  .privacy-content-card {
    padding: 2rem 1.5rem;
  }
  
  .privacy-section h2 {
    font-size: 1.25rem;
  }
  
  .protection-measures {
    grid-template-columns: 1fr;
  }
  
  .user-rights {
    grid-template-columns: 1fr;
  }
}

/* ==================== 服务条款页面样式 - Apple/Linear风格 ==================== */
.terms-module .page-header-glass {
  background: linear-gradient(135deg, rgba(248, 250, 252, 0.9) 0%, rgba(241, 245, 249, 0.95) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.15);
  padding: 80px 0 60px;
}

.terms-module .page-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1d1d1f;
  text-align: center;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.terms-module .page-subtitle {
  font-size: 1.125rem;
  color: #86868b;
  text-align: center;
}

.terms-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 3rem 1.5rem 5rem;
}

.terms-content-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 24px;
  padding: 3rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.terms-meta {
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.terms-update-badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: rgba(0, 122, 255, 0.1);
  border-radius: 980px;
  color: #007aff;
  font-size: 0.875rem;
  font-weight: 500;
}

.terms-sections {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.terms-section {
  padding-bottom: 0;
}

.terms-section h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1d1d1f;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.terms-section h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: #1d1d1f;
  margin: 1.5rem 0 0.75rem;
}

.terms-section p {
  color: #6e6e73;
  line-height: 1.7;
  margin-bottom: 1rem;
  font-size: 0.9375rem;
}

.terms-section ul {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.terms-section ul li {
  color: #6e6e73;
  line-height: 1.7;
  margin-bottom: 0.5rem;
  font-size: 0.9375rem;
}

.terms-section a {
  color: #007aff;
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.2s ease;
}

.terms-section a:hover {
  opacity: 0.7;
  text-decoration: underline;
}

/* 联系我们 */
.terms-contact-box {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.5rem;
}

.terms-contact-item {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 1.25rem;
  background: rgba(29, 29, 31, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.04);
  border-radius: 14px;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.terms-contact-item:hover {
  background: rgba(0, 122, 255, 0.05);
  border-color: rgba(0, 122, 255, 0.15);
}

.terms-contact-item svg {
  width: 28px;
  height: 28px;
  color: #007aff;
  flex-shrink: 0;
}

.terms-contact-item span {
  font-size: 0.9375rem;
  color: #1d1d1f;
  font-weight: 500;
}

/* 返回按钮 */
.terms-actions {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  display: flex;
  justify-content: center;
}

.terms-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  background: #007aff;
  color: white;
  border-radius: 14px;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.terms-back-btn:hover {
  background: #0056b3;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 122, 255, 0.35);
}

.terms-back-btn svg {
  width: 18px;
  height: 18px;
}

/* 响应式适配 */
@media (max-width: 768px) {
  .terms-module .page-title {
    font-size: 2rem;
  }
  
  .terms-content-card {
    padding: 2rem 1.5rem;
  }
  
  .terms-section h2 {
    font-size: 1.25rem;
  }
}

/* ==================== 隐私政策页面 - 暗黑模式 ==================== */
[data-theme="dark"] .privacy-module {
  background-color: #000000 !important;
}
[data-theme="dark"] .privacy-module .page-header-glass {
  background: #000000 !important;
  border-bottom-color: rgba(255, 255, 255, 0.08) !important;
}
[data-theme="dark"] .privacy-module .page-title { color: #e4e4e7; }
[data-theme="dark"] .privacy-module .page-subtitle { color: #71717a; }
[data-theme="dark"] .privacy-container { background-color: #000000 !important; }
[data-theme="dark"] .privacy-content-card {
  background: rgba(0, 0, 0, 1) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5) !important;
}
[data-theme="dark"] .privacy-meta { border-bottom-color: rgba(255, 255, 255, 0.08) !important; }
[data-theme="dark"] .privacy-update-badge {
  background: rgba(161, 161, 170, 0.2) !important;
  color: #a1a1aa !important;
}
[data-theme="dark"] .privacy-section h2 { color: #e4e4e7; }
[data-theme="dark"] .privacy-section h3 { color: #a1a1aa; }
[data-theme="dark"] .privacy-section p,
[data-theme="dark"] .privacy-section li { color: #71717a; }
[data-theme="dark"] .privacy-section ul li strong { color: #a1a1aa; }
[data-theme="dark"] .measure-item {
  background: #111113 !important;
  border-color: rgba(255, 255, 255, 0.06) !important;
}
[data-theme="dark"] .measure-item:hover {
  background: rgba(161, 161, 170, 0.15) !important;
  border-color: rgba(161, 161, 170, 0.25) !important;
}
[data-theme="dark"] .measure-item svg { color: #a1a1aa; }
[data-theme="dark"] .measure-item h5 { color: #e4e4e7; }
[data-theme="dark"] .measure-item p { color: #71717a; }
[data-theme="dark"] .right-item {
  background: #111113 !important;
  border-color: rgba(255, 255, 255, 0.06) !important;
}
[data-theme="dark"] .right-item:hover {
  background: rgba(161, 161, 170, 0.15) !important;
  border-color: rgba(161, 161, 170, 0.25) !important;
}
[data-theme="dark"] .right-item svg { color: #a1a1aa; }
[data-theme="dark"] .right-item span { color: #a1a1aa; }
[data-theme="dark"] .privacy-contact-box { border-top-color: rgba(255, 255, 255, 0.08) !important; }
[data-theme="dark"] .privacy-contact-item {
  background: #111113 !important;
  border-color: rgba(255, 255, 255, 0.06) !important;
}
[data-theme="dark"] .privacy-contact-item:hover {
  background: rgba(161, 161, 170, 0.15) !important;
  border-color: rgba(161, 161, 170, 0.25) !important;
}
[data-theme="dark"] .privacy-contact-item svg { color: #a1a1aa; }
[data-theme="dark"] .privacy-contact-item span { color: #a1a1aa; }
[data-theme="dark"] .privacy-actions { border-top-color: rgba(255, 255, 255, 0.08) !important; }
[data-theme="dark"] .privacy-back-btn {
  background: #a1a1aa !important;
  box-shadow: 0 8px 20px rgba(161, 161, 170, 0.2) !important;
}
[data-theme="dark"] .privacy-back-btn:hover {
  background: #71717a !important;
  box-shadow: 0 8px 20px rgba(161, 161, 170, 0.3) !important;
}

/* ==================== 服务条款页面 - 暗黑模式 ==================== */
[data-theme="dark"] .terms-module {
  background-color: #000000 !important;
}
[data-theme="dark"] .terms-module .page-header-glass {
  background: #000000 !important;
  border-bottom-color: rgba(255, 255, 255, 0.08) !important;
}
[data-theme="dark"] .terms-module .page-title { color: #e4e4e7; }
[data-theme="dark"] .terms-module .page-subtitle { color: #71717a; }
[data-theme="dark"] .terms-container { background-color: #000000 !important; }
[data-theme="dark"] .terms-content-card {
  background: rgba(0, 0, 0, 1) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5) !important;
}
[data-theme="dark"] .terms-meta { border-bottom-color: rgba(255, 255, 255, 0.08) !important; }
[data-theme="dark"] .terms-update-badge {
  background: rgba(161, 161, 170, 0.2) !important;
  color: #a1a1aa !important;
}
[data-theme="dark"] .terms-section h2 { color: #e4e4e7; }
[data-theme="dark"] .terms-section h3 { color: #a1a1aa; }
[data-theme="dark"] .terms-section p,
[data-theme="dark"] .terms-section li { color: #71717a; }
[data-theme="dark"] .terms-section a { color: #a1a1aa; }
[data-theme="dark"] .terms-section a:hover { color: #a1a1aa; }
[data-theme="dark"] .terms-contact-item {
  background: #111113 !important;
  border-color: rgba(255, 255, 255, 0.06) !important;
}
[data-theme="dark"] .terms-contact-item:hover {
  background: rgba(161, 161, 170, 0.15) !important;
  border-color: rgba(161, 161, 170, 0.25) !important;
}
[data-theme="dark"] .terms-contact-item svg { color: #a1a1aa; }
[data-theme="dark"] .terms-contact-item span { color: #a1a1aa; }
[data-theme="dark"] .terms-actions { border-top-color: rgba(255, 255, 255, 0.08) !important; }
[data-theme="dark"] .terms-back-btn {
  background: #a1a1aa !important;
  box-shadow: 0 8px 20px rgba(161, 161, 170, 0.2) !important;
}
[data-theme="dark"] .terms-back-btn:hover {
  background: #71717a !important;
  box-shadow: 0 8px 20px rgba(161, 161, 170, 0.3) !important;
}

/* ==================== 用户认证页面样式 ==================== */
.auth-module {
  min-height: 100vh;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.auth-container {
  display: flex;
  max-width: 1000px;
  width: 100%;
  background: white;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.auth-card {
  flex: 1;
  padding: 3rem;
  max-width: 450px;
}

.auth-logo {
  text-align: center;
  margin-bottom: 2rem;
}

.auth-logo i {
  font-size: 4rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.auth-logo h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: #2c3e50;
  margin-top: 0.5rem;
}

.auth-logo p {
  color: #6c757d;
  font-size: 0.9rem;
}

.auth-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 1.5rem;
  text-align: center;
}

.auth-form .form-group {
  margin-bottom: 1.25rem;
}

.auth-form label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
  color: #495057;
  margin-bottom: 0.5rem;
}

.auth-form label i {
  color: #667eea;
}

.password-input-wrapper {
  position: relative;
}

.toggle-password {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #6c757d;
  cursor: pointer;
  padding: 0.25rem;
}

.toggle-password:hover {
  color: #667eea;
}

.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.remember-me {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  color: #495057;
  font-size: 0.875rem;
}

.forgot-link {
  color: #667eea;
  font-size: 0.875rem;
  text-decoration: none;
}

.forgot-link:hover {
  text-decoration: underline;
}

.error-message {
  display: none;
  padding: 0.75rem;
  background: #f8d7da;
  border: 1px solid #f5c6cb;
  border-radius: 0.5rem;
  color: #721c24;
  margin-bottom: 1rem;
  font-size: 0.875rem;
}

.auth-divider {
  display: flex;
  align-items: center;
  margin: 1.5rem 0;
  color: #6c757d;
  font-size: 0.875rem;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #dee2e6;
}

.auth-divider span {
  padding: 0 1rem;
}

.social-login {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.social-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  transition: all 0.3s ease;
}

.social-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.auth-footer {
  text-align: center;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #dee2e6;
}

.auth-link {
  color: #667eea;
  font-weight: 500;
  text-decoration: none;
}

.auth-link:hover {
  text-decoration: underline;
}

.back-home {
  text-align: center;
  margin-top: 1rem;
}

.auth-banner {
  flex: 1;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem;
  color: white;
  min-height: 600px;
}

.banner-content h3 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.banner-content p {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 2rem;
}

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

.feature-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  font-size: 1rem;
}

.feature-list li i {
  width: 24px;
  height: 24px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
}

/* 步骤指示器*/
.step-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.step-number {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #e9ecef;
  color: #6c757d;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.875rem;
}

.step.active .step-number {
  background: #667eea;
  color: white;
}

.step-label {
  font-size: 0.75rem;
  color: #6c757d;
}

.step.active .step-label {
  color: #667eea;
  font-weight: 500;
}

.step-line {
  flex: 1;
  height: 2px;
  background: #e9ecef;
  margin: 0 0.5rem;
  margin-bottom: 1.5rem;
  max-width: 60px;
}

/* 密码强度 */
.password-strength {
  margin-top: 0.5rem;
}

.strength-bar {
  height: 4px;
  background: #e9ecef;
  border-radius: 2px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.strength-text {
  font-size: 0.75rem;
  color: #6c757d;
  margin-top: 0.25rem;
}

.agreement-label {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: #495057;
  cursor: pointer;
}

.agreement-label input {
  margin-top: 0.25rem;
}

.agreement-label a {
  color: #667eea;
}

/* ==================== 个人中心样式 ==================== */
.profile-module .profile-sidebar {
  position: sticky;
  top: 2rem;
}

.profile-card {
  background: white;
  border-radius: 1rem;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  margin-bottom: 1.5rem;
}

.profile-avatar {
  width: 120px;
  height: 120px;
  margin: 0 auto 1rem;
  position: relative;
}

.profile-avatar img,
.profile-avatar i {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.profile-avatar i {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  color: white;
}

.avatar-edit {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 36px;
  height: 36px;
  background: #667eea;
  border: 3px solid white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
}

.avatar-edit:hover {
  background: #764ba2;
  transform: scale(1.1);
}

.profile-name {
  font-size: 1.25rem;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 0.25rem;
}

.profile-role {
  color: #667eea;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.profile-email {
  color: #6c757d;
  font-size: 0.875rem;
}

.profile-nav {
  background: white;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.profile-nav .nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #495057;
  font-size: 0.95rem;
}

.profile-nav .nav-item:hover {
  background: #f8f9fa;
  color: #667eea;
}

.profile-nav .nav-item.active {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.profile-nav .nav-item i {
  width: 24px;
  text-align: center;
}

.profile-nav .nav-item .badge {
  margin-left: auto;
  background: #667eea;
  color: white;
  padding: 0.25rem 0.5rem;
  border-radius: 1rem;
  font-size: 0.75rem;
}

.profile-nav .nav-item.active .badge {
  background: rgba(255, 255, 255, 0.3);
}

.profile-content .content-card {
  background: white;
  border-radius: 1rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.content-card .card-header {
  padding: 1.5rem;
  border-bottom: 1px solid #e9ecef;
  background: #f8f9fa;
}

.content-card .card-header h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #2c3e50;
  margin: 0;
}

.content-card .card-body {
  padding: 1.5rem;
}

.info-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.info-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background: #f8f9fa;
  border-radius: 0.5rem;
}

.info-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #6c757d;
  font-size: 0.9rem;
}

.info-value {
  color: #2c3e50;
  font-weight: 500;
}

.stat-card {
  background: white;
  border-radius: 1rem;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.stat-icon {
  width: 60px;
  height: 60px;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
}

.stat-info h5 {
  font-size: 1.75rem;
  font-weight: 700;
  color: #2c3e50;
  margin: 0;
}

.stat-info span {
  color: #6c757d;
  font-size: 0.875rem;
}

.plans-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.plan-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  background: #f8f9fa;
  border-radius: 0.75rem;
  transition: all 0.3s ease;
}

.plan-item:hover {
  background: #e9ecef;
}

.plan-info h5 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 0.5rem;
}

.plan-meta {
  display: flex;
  gap: 1rem;
  margin-top: 0.75rem;
  font-size: 0.875rem;
  color: #6c757d;
}

.status-badge {
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.75rem;
  font-weight: 500;
}

.status-pending {
  background: #fff3cd;
  color: #856404;
}

.status-completed {
  background: #d4edda;
  color: #155724;
}

.status-cancelled {
  background: #f8d7da;
  color: #721c24;
}

.setting-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 0;
  border-bottom: 1px solid #e9ecef;
}

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

.setting-item h6 {
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 0.25rem;
}

.setting-item p {
  color: #6c757d;
  font-size: 0.875rem;
  margin: 0;
}

/* 开关样式*/
.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 26px;
}

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

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: .4s;
  border-radius: 26px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

.switch input:checked + .slider {
  background-color: #667eea;
}

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

.danger-zone {
  padding: 1rem 0;
}

.danger-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.danger-item h6 {
  color: #dc3545;
}

.form-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  margin-top: 1.5rem;
}

/* 快捷链接 */
.quick-links {
  background: white;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.quick-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  color: #495057;
  text-decoration: none;
  transition: all 0.3s ease;
  border-bottom: 1px solid #f0f0f0;
}

.quick-link:last-child {
  border-bottom: none;
}

.quick-link:hover {
  background: #f8f9fa;
  color: #667eea;
}

.quick-link i:first-child {
  width: 32px;
  height: 32px;
  background: rgba(102, 126, 234, 0.1);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #667eea;
}

.quick-link i:last-child {
  font-size: 0.75rem;
  color: #adb5bd;
}

/* ==================== 收藏页面样式 ==================== */
.favorites-module .toolbar,
.history-module .toolbar {
  background: white;
  padding: 1rem 1.5rem;
  border-radius: 0.75rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.filter-group {
  display: flex;
  gap: 0.5rem;
}

.filter-btn {
  padding: 0.5rem 1rem;
  border: 1px solid #dee2e6;
  background: white;
  border-radius: 0.5rem;
  color: #495057;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-btn:hover {
  border-color: #667eea;
  color: #667eea;
}

.filter-btn.active {
  background: #667eea;
  border-color: #667eea;
  color: white;
}

.view-toggle {
  display: flex;
  gap: 0.5rem;
}

.view-btn {
  width: 36px;
  height: 36px;
  border: 1px solid #dee2e6;
  background: white;
  border-radius: 0.5rem;
  color: #6c757d;
  cursor: pointer;
  transition: all 0.3s ease;
}

.view-btn:hover {
  border-color: #667eea;
  color: #667eea;
}

.view-btn.active {
  background: #667eea;
  border-color: #667eea;
  color: white;
}

/* 收藏卡片 */
.favorites-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.favorite-card {
  background: white;
  border-radius: 1rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: all 0.3s ease;
  position: relative;
}

.favorite-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.favorite-card:hover .favorite-hover-actions {
  opacity: 1;
  visibility: visible;
}

.favorite-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.favorite-scene {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
}

.favorite-actions {
  display: flex;
  gap: 0.5rem;
}

.btn-icon {
  width: 32px;
  height: 32px;
  border: none;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 0.5rem;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-icon:hover {
  background: rgba(255, 255, 255, 0.3);
}

.btn-icon.favorite-btn {
  background: rgba(255, 255, 255, 0.9);
  color: #dc3545;
}

.favorite-body {
  padding: 1.5rem;
}

.favorite-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 0.5rem;
}

.favorite-desc {
  color: #6c757d;
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.favorite-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tool-tag {
  padding: 0.25rem 0.75rem;
  background: rgba(102, 126, 234, 0.1);
  border-radius: 1rem;
  font-size: 0.75rem;
  color: #667eea;
}

.tool-tag.more {
  background: #e9ecef;
  color: #6c757d;
}

.favorite-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  border-top: 1px solid #e9ecef;
}

.favorite-price {
  display: flex;
  flex-direction: column;
}

.price-label {
  font-size: 0.75rem;
  color: #6c757d;
}

.price-value {
  font-size: 1.25rem;
  font-weight: 700;
  color: #667eea;
}

.favorite-date {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #6c757d;
  font-size: 0.875rem;
}

.favorite-hover-actions {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  gap: 0.75rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.95);
  padding: 1rem;
  border-radius: 0.75rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

/* 历史记录样式 */
.stat-card-simple {
  background: white;
  border-radius: 1rem;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.stat-card-simple .stat-icon {
  width: 50px;
  height: 50px;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.25rem;
}

.stat-card-simple .stat-info h4 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #2c3e50;
  margin: 0;
}

.stat-card-simple .stat-info span {
  color: #6c757d;
  font-size: 0.875rem;
}

/* 历史列表 */
.history-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.history-item {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem;
  background: white;
  border-radius: 1rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.history-item:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.history-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.history-content {
  flex: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.history-main {
  flex: 1;
}

.history-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 0.25rem;
}

.history-desc {
  color: #6c757d;
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
}

.history-meta {
  display: flex;
  gap: 1.5rem;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #6c757d;
  font-size: 0.875rem;
}

.history-status {
  margin: 0 1.5rem;
}

.history-actions {
  display: flex;
  gap: 0.5rem;
}

/* 历史网格 */
.history-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.history-card {
  background: white;
  border-radius: 1rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.history-card .card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  background: #f8f9fa;
  border-bottom: 1px solid #e9ecef;
}

.history-card .scene-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #495057;
  font-weight: 500;
}

.history-card .card-body {
  padding: 1.5rem;
}

.history-card .card-body h4 {
  font-size: 1rem;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 1rem;
}

.tools-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.price-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid #e9ecef;
}

.price-info .price-label {
  color: #6c757d;
  font-size: 0.875rem;
}

.price-info .price-value {
  font-size: 1.25rem;
  font-weight: 700;
  color: #667eea;
}

.history-card .card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  background: #f8f9fa;
  border-top: 1px solid #e9ecef;
}

.history-card .date {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #6c757d;
  font-size: 0.875rem;
}

.history-card .actions {
  display: flex;
  gap: 0.5rem;
}

/* 空状态*/
.empty-state-card {
  text-align: center;
  padding: 4rem 2rem;
  background: white;
  border-radius: 1rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.empty-icon {
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.empty-icon i {
  font-size: 3rem;
  color: white;
}

.empty-state-card h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 0.5rem;
}

.empty-state-card p {
  color: #6c757d;
  margin-bottom: 1.5rem;
}

.empty-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.batch-actions,
.history-footer {
  display: flex;
  justify-content: flex-end;
  padding: 1rem 0;
}

/* 响应式*/
@media (max-width: 768px) {
  .auth-container {
    flex-direction: column;
  }
  
  .auth-banner {
    display: none;
  }
  
  .auth-card {
    max-width: 100%;
    padding: 2rem;
  }
  
  .profile-sidebar {
    position: static;
    margin-bottom: 2rem;
  }
  
  .favorites-grid,
  .history-grid {
    grid-template-columns: 1fr;
  }
  
  .history-item {
    flex-direction: column;
    text-align: center;
  }
  
  .history-content {
    flex-direction: column;
    gap: 1rem;
  }
  
  .history-meta {
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* ==================== 智能助手 ==================== */

.chatbot-widget {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9999;
}

/* 悬浮按钮：白色鹅卵石，与通知铃铛同款 */
.chatbot-toggle {
  width: 50px;
  height: 50px;
  border-radius: 9999px;
  background: #fff;
  border: 1px solid rgba(40, 39, 33, 0.10);
  box-shadow:
    0 8px 22px rgba(60, 40, 30, 0.10),
    0 2px 6px rgba(60, 40, 30, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s cubic-bezier(0.2, 0.7, 0.2, 1);
  position: relative;
  z-index: 1;
}

.chatbot-toggle::before {
  content: '';
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.9) 0%, transparent 60%);
  opacity: 0.7;
  pointer-events: none;
}

.chatbot-toggle:hover {
  transform: translateY(-2px) scale(1.04);
  border-color: rgba(197, 124, 120, 0.55);
  box-shadow:
    0 12px 28px rgba(60, 40, 30, 0.12),
    0 4px 10px rgba(60, 40, 30, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 0 0 3px rgba(197, 124, 120, 0.12);
}

.chatbot-toggle:active,
.chatbot-toggle.dragging {
  transform: scale(0.96);
  box-shadow: 0 4px 12px rgba(60, 40, 30, 0.08);
}

.chatbot-toggle-inner {
  display: flex;
  align-items: center;
  justify-content: center;
}

.chatbot-icon-logo {
  width: 28px;
  height: 28px;
  color: #282721;
  transition: transform 0.25s ease, color 0.25s ease;
}

.chatbot-toggle:hover .chatbot-icon-logo {
  transform: scale(1.06);
}

.chatbot-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  background: #ef4444;
  color: #fff;
  border-radius: 9px;
  font-size: 11px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  box-shadow: 0 1px 3px rgba(239,68,68,0.3);
  z-index: 4;
}

/* 聊天窗口 */
.chatbot-window {
  position: absolute;
  bottom: 68px;
  right: 0;
  width: 380px;
  max-width: calc(100vw - 32px);
  height: 540px;
  max-height: calc(100vh - 120px);
  background: #fff;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 18px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 8px 24px rgba(0,0,0,0.08), 0 20px 48px rgba(0,0,0,0.12);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: chatbotSlideUp 0.3s ease;
}

@keyframes chatbotSlideUp {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* 头部 */
.chatbot-header {
  padding: 14px 16px;
  border-bottom: 1px solid #f0f0f2;
  display: flex;
  align-items: center;
  gap: 10px;
}

.chatbot-avatar {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #f5f5f7;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.chatbot-avatar svg {
  width: 18px;
  height: 18px;
  color: #52525b;
}

.chatbot-info { flex: 1; }

.chatbot-info h4 {
  font-size: 14px;
  font-weight: 600;
  color: #18181b;
  margin: 0;
  letter-spacing: -0.01em;
}

.chatbot-status {
  font-size: 11px;
  color: #a1a1aa;
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 1px;
}

.chatbot-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  display: inline-block;
}

.chatbot-close {
  width: 28px;
  height: 28px;
  border: none;
  background: none;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #a1a1aa;
  transition: all 0.2s;
  flex-shrink: 0;
}

.chatbot-close:hover {
  background: #f4f4f5;
  color: #52525b;
}

.chatbot-close svg {
  width: 16px;
  height: 16px;
}

/* 消息区 */
.chatbot-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #fafbfc;
}

.chat-message {
  display: flex;
  gap: 8px;
  max-width: 88%;
  animation: msgIn 0.25s ease;
}

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

.chat-message.bot { align-self: flex-start; }
.chat-message.user { align-self: flex-end; flex-direction: row-reverse; }

.message-avatar {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.chat-message.bot .message-avatar {
  background: #f4f4f5;
}

.chat-message.user .message-avatar {
  background: #3f3f46;
}

.message-avatar svg {
  width: 14px;
  height: 14px;
  color: #71717a;
}

.chat-message.user .message-avatar svg {
  color: #d4d4d8;
}

.message-content {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.message-bubble {
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.55;
  word-wrap: break-word;
}

.chat-message.bot .message-bubble {
  background: #fff;
  color: #3f3f46;
  border: 1px solid #e4e4e7;
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}

.chat-message.user .message-bubble {
  background: linear-gradient(135deg, #3f3f46, #52525b);
  color: #fff;
}

.message-time {
  font-size: 10px;
  color: #a1a1aa;
  padding: 0 2px;
}

/* 正在输入 */
.typing-indicator {
  display: flex;
  gap: 4px;
  padding: 8px 0 4px;
}

.typing-indicator span {
  width: 6px;
  height: 6px;
  background: #a1a1aa;
  border-radius: 50%;
  animation: typing 1.2s ease-in-out infinite;
}

.typing-indicator span:nth-child(2) { animation-delay: 0.15s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.3s; }

@keyframes typing {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.35; }
  30% { transform: translateY(-5px); opacity: 0.75; }
}

/* 快捷问题 */
.chatbot-quick-questions {
  padding: 10px 14px;
  border-top: 1px solid #f0f0f2;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.quick-question-btn {
  padding: 5px 12px;
  background: #f4f4f5;
  border: 1px solid #e4e4e7;
  border-radius: 8px;
  font-size: 12px;
  color: #52525b;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  font-weight: 500;
}

.quick-question-btn:hover {
  background: #e8e8ed;
  color: #3f3f46;
  border-color: #d4d4d8;
}

/* 输入区 */
.chatbot-input-area {
  padding: 12px 16px;
  border-top: 1px solid #f0f0f2;
}

.chatbot-input-wrapper {
  display: flex;
  gap: 8px;
  align-items: center;
  background: #f4f4f5;
  border-radius: 12px;
  padding: 4px 4px 4px 14px;
  border: 1px solid transparent;
  transition: border-color 0.2s, background 0.2s;
}

.chatbot-input-wrapper:focus-within {
  border-color: #d4d4d8;
  background: #fff;
}

.chatbot-input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 8px 0;
  font-size: 13px;
  color: #3f3f46;
  outline: none;
}

.chatbot-input::placeholder {
  color: #a1a1aa;
}

.chatbot-send {
  width: 34px;
  height: 34px;
  border: none;
  background: #3f3f46;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
}

.chatbot-send:hover {
  background: #27272a;
  transform: scale(1.04);
}

.chatbot-send:active {
  transform: scale(0.96);
}

.chatbot-send svg {
  width: 16px;
  height: 16px;
  color: #fff;
}

/* 暗色模式 */
[data-theme="dark"] .chatbot-toggle {
  background: #23211d;
  border-color: rgba(244, 240, 230, 0.12);
  box-shadow:
    0 8px 22px rgba(0, 0, 0, 0.28),
    0 2px 6px rgba(0, 0, 0, 0.16),
    inset 0 1px 0 rgba(244, 240, 230, 0.08);
}

[data-theme="dark"] .chatbot-toggle::before {
  background: radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.35) 0%, transparent 60%);
  opacity: 0.5;
}

[data-theme="dark"] .chatbot-toggle:hover {
  background: #2b2823;
  border-color: rgba(197, 124, 120, 0.45);
  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.34),
    0 4px 10px rgba(0, 0, 0, 0.20),
    inset 0 1px 0 rgba(244, 240, 230, 0.10),
    0 0 0 3px rgba(197, 124, 120, 0.10);
}

[data-theme="dark"] .chatbot-icon-logo {
  color: #f4f0e6;
}

[data-theme="dark"] .chatbot-toggle:hover .chatbot-icon-logo {
  color: #f4f0e6;
}

[data-theme="dark"] .chatbot-window {
  background: #18181b;
  border-color: rgba(255,255,255,0.06);
}

[data-theme="dark"] .chatbot-header { border-bottom-color: rgba(255,255,255,0.06); }
[data-theme="dark"] .chatbot-avatar { background: rgba(255,255,255,0.06); }
[data-theme="dark"] .chatbot-avatar svg { color: #a1a1aa; }
[data-theme="dark"] .chatbot-info h4 { color: #a1a1aa; }
[data-theme="dark"] .chatbot-close:hover { background: rgba(255,255,255,0.06); color: #d4d4d8; }
[data-theme="dark"] .chatbot-messages { background: #0d0d10; }

[data-theme="dark"] .chat-message.bot .message-avatar { background: rgba(255,255,255,0.06); }
[data-theme="dark"] .chat-message.user .message-avatar { background: #52525b; }

[data-theme="dark"] .chat-message.bot .message-bubble {
  background: #1f1f23;
  color: #a1a1aa;
  border-color: rgba(255,255,255,0.06);
}

[data-theme="dark"] .chat-message.user .message-bubble {
  background: linear-gradient(135deg, #52525b, #71717a);
}

[data-theme="dark"] .quick-question-btn {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.06);
  color: #a1a1aa;
}

[data-theme="dark"] .quick-question-btn:hover {
  background: rgba(255,255,255,0.08);
  color: #d4d4d8;
  border-color: rgba(255,255,255,0.10);
}

[data-theme="dark"] .chatbot-input-area { border-top-color: rgba(255,255,255,0.06); }
[data-theme="dark"] .chatbot-input-wrapper { background: rgba(255,255,255,0.04); }
[data-theme="dark"] .chatbot-input-wrapper:focus-within { background: #1f1f23; border-color: rgba(255,255,255,0.10); }
[data-theme="dark"] .chatbot-input { color: #a1a1aa; }
[data-theme="dark"] .chatbot-send { background: #52525b; }
[data-theme="dark"] .chatbot-send:hover { background: #71717a; }
[data-theme="dark"] .chatbot-quick-questions { border-top-color: rgba(255,255,255,0.06); }

/* 响应式 */
@media (max-width: 480px) {
  .chatbot-widget { bottom: 16px; right: 16px; }
  .chatbot-toggle { width: 48px; height: 48px; border-radius: 9999px; }
  .chatbot-icon-robot { width: 22px; height: 22px; }
  .chatbot-window {
    width: calc(100vw - 32px);
    height: 460px;
    right: -8px;
  }
}

/* 滚动条 */
.chatbot-messages::-webkit-scrollbar { width: 4px; }
.chatbot-messages::-webkit-scrollbar-track { background: transparent; }
.chatbot-messages::-webkit-scrollbar-thumb { background: #e4e4e7; border-radius: 2px; }
.chatbot-messages::-webkit-scrollbar-thumb:hover { background: #d4d4d8; }
[data-theme="dark"] .chatbot-messages::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); }
[data-theme="dark"] .chatbot-messages::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.14); }


/* ==================== 新闻动态页面样式==================== */
.news-module .page-header-glass {
  background: linear-gradient(135deg, rgba(248, 250, 252, 0.9) 0%, rgba(241, 245, 249, 0.95) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.15);
  padding: 80px 0 60px;
}

.news-module .page-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1e293b;
  text-align: center;
  margin-bottom: 0.75rem;
}

.news-module .page-subtitle {
  font-size: 1.125rem;
  color: #64748b;
  text-align: center;
}

/* 分类筛选*/
.news-filter {
  display: flex;
  justify-content: center;
}

.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.filter-btn {
  padding: 0.625rem 1.25rem;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 2rem;
  color: #64748b;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-btn:hover {
  border-color: rgba(161, 161, 170, 0.4);
  color: #a1a1aa;
  transform: translateY(-2px);
}

.filter-btn.active {
  background: linear-gradient(135deg, #a1a1aa 0%, #71717a 100%);
  border-color: transparent;
  color: white;
  box-shadow: 0 4px 12px rgba(161, 161, 170, 0.3);
}

/* 新闻网格 */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 1.5rem;
}

.news-card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.news-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
  border-color: rgba(161, 161, 170, 0.25);
}

/* 新闻图片区域 */
.news-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.news-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.news-placeholder svg {
  width: 56px;
  height: 56px;
  color: white;
}

/* 不同类别的新闻图标背景色 */
.news-placeholder.award {
  background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
}

.news-placeholder.partnership {
  background: linear-gradient(135deg, #a1a1aa 0%, #71717a 100%);
}

.news-placeholder.report {
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
}

.news-placeholder.feature {
  background: linear-gradient(135deg, #8B5CF6 0%, #7C3AED 100%);
}

.news-placeholder.event {
  background: linear-gradient(135deg, #EC4899 0%, #DB2777 100%);
}

.news-placeholder.milestone {
  background: linear-gradient(135deg, #06B6D4 0%, #0891B2 100%);
}

/* 新闻分类标签 */
.news-category {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: 0.375rem 0.875rem;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 2rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #a1a1aa;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* 新闻内容 */
.news-content {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.news-date {
  font-size: 0.875rem;
  color: #94a3b8;
  margin-bottom: 0.75rem;
  display: block;
}

.news-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #1e293b;
  line-height: 1.5;
  margin-bottom: 0.75rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-summary {
  font-size: 0.9375rem;
  color: #64748b;
  line-height: 1.7;
  margin-bottom: 1.25rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.news-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #a1a1aa;
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
}

.news-link:hover {
  color: #71717a;
  gap: 0.75rem;
}

.news-link svg {
  width: 18px;
  height: 18px;
  transition: transform 0.3s ease;
}

.news-link:hover svg {
  transform: translateX(4px);
}

/* 订阅区域 */
.news-subscribe .subscribe-card {
  background: linear-gradient(135deg, rgba(161, 161, 170, 0.08) 0%, rgba(16, 185, 129, 0.08) 100%);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(161, 161, 170, 0.15);
  border-radius: 1.25rem;
  padding: 2.5rem;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.subscribe-card h4 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 0.5rem;
}

.subscribe-card p {
  color: #64748b;
  margin: 0;
}

.subscribe-form .input-group {
  display: flex;
  gap: 0.75rem;
}

.subscribe-form .form-control {
  flex: 1;
  padding: 0.875rem 1.25rem;
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 0.75rem;
  font-size: 0.9375rem;
  background: rgba(255, 255, 255, 0.9);
  transition: all 0.3s ease;
}

.subscribe-form .form-control:focus {
  outline: none;
  border-color: #a1a1aa;
  box-shadow: 0 0 0 3px rgba(161, 161, 170, 0.1);
}

.subscribe-form .btn-primary {
  padding: 0.875rem 1.75rem;
  background: linear-gradient(135deg, #a1a1aa 0%, #71717a 100%);
  border: none;
  border-radius: 0.75rem;
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(161, 161, 170, 0.3);
}

.subscribe-form .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(161, 161, 170, 0.4);
}

/* 加载更多按钮 */
#load-more-news svg {
  width: 18px;
  height: 18px;
  transition: transform 0.3s ease;
}

#load-more-news:hover svg {
  transform: translateY(2px);
}

/* 响应式*/
@media (max-width: 768px) {
  .news-grid {
    grid-template-columns: 1fr;
  }
  
  .filter-buttons {
    gap: 0.5rem;
  }
  
  .filter-btn {
    padding: 0.5rem 1rem;
    font-size: 0.8125rem;
  }
  
  .news-subscribe .subscribe-card {
    padding: 1.5rem;
  }
  
  .subscribe-form .input-group {
    flex-direction: column;
  }
}

/* ==================== 联系我们页面样式 ==================== */
.contact-module .page-header-glass {
  background: linear-gradient(135deg, rgba(248, 250, 252, 0.9) 0%, rgba(241, 245, 249, 0.95) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.15);
  padding: 80px 0 60px;
}

.contact-module .page-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1e293b;
  text-align: center;
  margin-bottom: 0.75rem;
}

.contact-module .page-subtitle {
  font-size: 1.125rem;
  color: #64748b;
  text-align: center;
}

/* 联系信息卡片 */
.contact-info-card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: 1.25rem;
  padding: 2.5rem;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  height: 100%;
}

.contact-info-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 1.5rem;
}

/* 联系项目 */
.contact-item-glass {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem;
  background: rgba(248, 250, 252, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.1);
  border-radius: 1rem;
  margin-bottom: 1rem;
  transition: all 0.3s ease;
}

.contact-item-glass:hover {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(161, 161, 170, 0.2);
  transform: translateX(4px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.contact-icon {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, rgba(161, 161, 170, 0.1) 0%, rgba(16, 185, 129, 0.1) 100%);
  border: 2px solid rgba(161, 161, 170, 0.15);
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.contact-item-glass:hover .contact-icon {
  border-color: rgba(161, 161, 170, 0.3);
  transform: scale(1.05);
}

.contact-icon svg {
  width: 26px;
  height: 26px;
  color: #a1a1aa;
}

.contact-detail h6 {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 0.375rem;
}

.contact-detail p {
  font-size: 1rem;
  color: #a1a1aa;
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.contact-detail small {
  font-size: 0.8125rem;
  color: #94a3b8;
}

/* 社交媒体 */
.contact-social h6 {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 0.75rem;
}

.social-links {
  display: flex;
  gap: 0.75rem;
}

.social-link {
  width: 44px;
  height: 44px;
  background: rgba(248, 250, 252, 0.8);
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  transition: all 0.3s ease;
}

.social-link:hover {
  background: linear-gradient(135deg, #a1a1aa 0%, #71717a 100%);
  border-color: transparent;
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(161, 161, 170, 0.3);
}

.social-link svg {
  width: 22px;
  height: 22px;
}

/* 联系表单卡片 */
.contact-form-card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: 1.25rem;
  padding: 2.5rem;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  height: 100%;
}

.contact-form-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 1.5rem;
}

.contact-form-card .form-label {
  font-size: 0.9375rem;
  font-weight: 500;
  color: #475569;
  margin-bottom: 0.5rem;
}

.contact-form-card .form-control,
.contact-form-card .form-select {
  padding: 0.875rem 1rem;
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 0.75rem;
  font-size: 0.9375rem;
  background: rgba(255, 255, 255, 0.8);
  transition: all 0.3s ease;
}

.contact-form-card .form-control:focus,
.contact-form-card .form-select:focus {
  outline: none;
  border-color: #a1a1aa;
  box-shadow: 0 0 0 3px rgba(161, 161, 170, 0.1);
  background: white;
}

.contact-form-card textarea.form-control {
  resize: vertical;
  min-height: 140px;
}

.contact-form-card .btn-primary {
  padding: 1rem;
  background: linear-gradient(135deg, #a1a1aa 0%, #71717a 100%);
  border: none;
  border-radius: 0.75rem;
  font-size: 1rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 4px 16px rgba(161, 161, 170, 0.3);
  transition: all 0.3s ease;
}

.contact-form-card .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(161, 161, 170, 0.4);
}

.contact-form-card .btn-primary svg {
  width: 20px;
  height: 20px;
}

/* 常见问题区域 */
.faq-section {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: 1.25rem;
  padding: 2.5rem;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.faq-section h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1e293b;
}

.faq-item {
  padding: 1.5rem;
  background: rgba(248, 250, 252, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.1);
  border-radius: 1rem;
  height: 100%;
  transition: all 0.3s ease;
}

.faq-item:hover {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(161, 161, 170, 0.2);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.faq-item h6 {
  font-size: 1rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 0.75rem;
}

.faq-item p {
  font-size: 0.9375rem;
  color: #64748b;
  line-height: 1.7;
  margin: 0;
}

/* 响应式*/
@media (max-width: 991px) {
  .contact-info-card,
  .contact-form-card,
  .faq-section {
    padding: 1.75rem;
  }
}

@media (max-width: 768px) {
  .contact-module .page-title {
    font-size: 2rem;
  }
  
  .contact-icon {
    width: 48px;
    height: 48px;
  }
  
  .contact-icon svg {
    width: 24px;
    height: 24px;
  }
  
  .social-link {
    width: 40px;
    height: 40px;
  }
  
  .social-link svg {
    width: 20px;
    height: 20px;
  }
}

/* ==================== 合作伙伴页面样式 ==================== */
.partners-module .page-header-glass {
  background: linear-gradient(135deg, rgba(248, 250, 252, 0.9) 0%, rgba(241, 245, 249, 0.95) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.15);
  padding: 80px 0 60px;
}

.partners-module .page-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1e293b;
  text-align: center;
  margin-bottom: 0.75rem;
}

.partners-module .page-subtitle {
  font-size: 1.125rem;
  color: #64748b;
  text-align: center;
}

/* 合作机构卡片 */
.partners-showcase .section-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 2rem;
}

.partner-card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: 1.25rem;
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
  height: 100%;
}

.partner-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
  border-color: rgba(161, 161, 170, 0.25);
}

.partner-logo {
  width: 88px;
  height: 88px;
  margin: 0 auto 1.5rem;
  border-radius: 1.25rem;
  overflow: hidden;
  transition: all 0.3s ease;
}

.partner-card:hover .partner-logo {
  transform: scale(1.05);
}

.partner-logo svg {
  width: 100%;
  height: 100%;
}

.partner-card h5 {
  font-size: 1.125rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 0.5rem;
}

.partner-card .text-muted {
  color: #64748b !important;
  font-size: 0.9375rem;
}

/* 合作方式卡片 */
.cooperation-methods .section-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 2rem;
}

.coop-card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: 1.25rem;
  padding: 2.5rem;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
  height: 100%;
}

.coop-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
  border-color: rgba(161, 161, 170, 0.2);
}

.coop-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, rgba(161, 161, 170, 0.1) 0%, rgba(16, 185, 129, 0.1) 100%);
  border: 2px solid rgba(161, 161, 170, 0.15);
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
}

.coop-card:hover .coop-icon {
  border-color: rgba(161, 161, 170, 0.3);
  transform: scale(1.05);
}

.coop-icon svg {
  width: 32px;
  height: 32px;
  color: #a1a1aa;
}

.coop-card h4 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 1rem;
}

.coop-card p {
  color: #64748b;
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.coop-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.coop-card ul li {
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
  color: #475569;
  font-size: 0.9375rem;
}

.coop-card ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  background: #a1a1aa;
  border-radius: 50%;
}

/* 合作申请区域 */
.cooperation-apply .apply-card {
  background: linear-gradient(135deg, rgba(161, 161, 170, 0.08) 0%, rgba(16, 185, 129, 0.08) 100%);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(161, 161, 170, 0.15);
  border-radius: 1.25rem;
  padding: 2.5rem;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.apply-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 0.75rem;
}

.apply-card p {
  color: #64748b;
  margin: 0;
}

.apply-card .btn-primary {
  padding: 0.875rem 2rem;
  background: linear-gradient(135deg, #a1a1aa 0%, #71717a 100%);
  border: none;
  border-radius: 0.75rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 4px 16px rgba(161, 161, 170, 0.3);
  transition: all 0.3s ease;
}

.apply-card .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(161, 161, 170, 0.4);
}

.apply-card .btn-primary svg {
  width: 20px;
  height: 20px;
}

/* 响应式*/
@media (max-width: 768px) {
  .partners-module .page-title {
    font-size: 2rem;
  }
  
  .partner-card,
  .coop-card,
  .apply-card {
    padding: 1.75rem;
  }
  
  .partner-logo {
    width: 72px;
    height: 72px;
  }
  
  .coop-icon {
    width: 56px;
    height: 56px;
  }
  
  .coop-icon svg {
    width: 28px;
    height: 28px;
  }
}

/* ==================== 联系我们页面 - 暗黑模式 ==================== */
[data-theme="dark"] .contact-module { background-color: #000000 !important; }
[data-theme="dark"] .contact-module .page-header-glass {
  background: #000000 !important;
  border-bottom-color: rgba(255, 255, 255, 0.08) !important;
}
[data-theme="dark"] .contact-module .page-title { color: #e4e4e7; }
[data-theme="dark"] .contact-module .page-subtitle { color: #71717a; }

[data-theme="dark"] .contact-info-card {
  background: rgba(17, 17, 19, 1) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3) !important;
}
[data-theme="dark"] .contact-info-card h3 { color: #e4e4e7; }

[data-theme="dark"] .contact-item-glass {
  background: rgba(29, 29, 31, 0.8) !important;
  border-color: rgba(255, 255, 255, 0.06) !important;
}
[data-theme="dark"] .contact-item-glass:hover {
  background: rgba(161, 161, 170, 0.15) !important;
  border-color: rgba(161, 161, 170, 0.25) !important;
}

[data-theme="dark"] .contact-icon {
  background: rgba(161, 161, 170, 0.15) !important;
  border-color: rgba(161, 161, 170, 0.2) !important;
}
[data-theme="dark"] .contact-icon svg { color: #a1a1aa; }

[data-theme="dark"] .contact-detail h6 { color: #e4e4e7; }
[data-theme="dark"] .contact-detail p { color: #a1a1aa; }
[data-theme="dark"] .contact-detail small { color: #71717a; }

[data-theme="dark"] .contact-social h6 { color: #e4e4e7; }

[data-theme="dark"] .social-link {
  background: rgba(29, 29, 31, 0.9) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  color: #a1a1aa !important;
}
[data-theme="dark"] .social-link:hover {
  background: linear-gradient(135deg, #a1a1aa 0%, #71717a 100%) !important;
  border-color: transparent !important;
  color: #000000 !important;
}

[data-theme="dark"] .contact-form-card {
  background: rgba(17, 17, 19, 1) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3) !important;
}
[data-theme="dark"] .contact-form-card h3 { color: #e4e4e7; }
[data-theme="dark"] .contact-form-card .form-label { color: #a1a1aa; }
[data-theme="dark"] .contact-form-card .form-control,
[data-theme="dark"] .contact-form-card .form-select {
  background: rgba(29, 29, 31, 1) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  color: #e4e4e7 !important;
}
[data-theme="dark"] .contact-form-card .form-control:focus,
[data-theme="dark"] .contact-form-card .form-select:focus {
  border-color: #a1a1aa !important;
  box-shadow: 0 0 0 3px rgba(161, 161, 170, 0.15) !important;
  background: rgba(17, 17, 19, 1) !important;
}
[data-theme="dark"] .contact-form-card .btn-primary {
  background: linear-gradient(135deg, #a1a1aa 0%, #71717a 100%) !important;
  box-shadow: 0 4px 16px rgba(161, 161, 170, 0.35) !important;
}

[data-theme="dark"] .faq-section {
  background: rgba(17, 17, 19, 1) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3) !important;
}
[data-theme="dark"] .faq-section h3 { color: #e4e4e7; }

[data-theme="dark"] .faq-item {
  background: rgba(29, 29, 31, 0.8) !important;
  border-color: rgba(255, 255, 255, 0.06) !important;
}
[data-theme="dark"] .faq-item:hover {
  background: rgba(161, 161, 170, 0.15) !important;
  border-color: rgba(161, 161, 170, 0.25) !important;
}
[data-theme="dark"] .faq-item h6 { color: #e4e4e7; }
[data-theme="dark"] .faq-item p { color: #71717a; }

/* ==================== 合作伙伴页面 - 暗黑模式 ==================== */
[data-theme="dark"] .partners-module { background-color: #000000 !important; }
[data-theme="dark"] .partners-module .page-header-glass {
  background: #000000 !important;
  border-bottom-color: rgba(255, 255, 255, 0.08) !important;
}
[data-theme="dark"] .partners-module .page-title { color: #e4e4e7; }
[data-theme="dark"] .partners-module .page-subtitle { color: #71717a; }

[data-theme="dark"] .partners-showcase .section-title,
[data-theme="dark"] .cooperation-methods .section-title { color: #e4e4e7; }

[data-theme="dark"] .partner-card {
  background: rgba(17, 17, 19, 1) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3) !important;
}
[data-theme="dark"] .partner-card:hover {
  border-color: rgba(161, 161, 170, 0.25) !important;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4) !important;
}
[data-theme="dark"] .partner-card h5 { color: #e4e4e7; }
[data-theme="dark"] .partner-card .text-muted { color: #71717a !important; }

[data-theme="dark"] .coop-card {
  background: rgba(17, 17, 19, 1) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3) !important;
}
[data-theme="dark"] .coop-card:hover {
  border-color: rgba(161, 161, 170, 0.2) !important;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4) !important;
}
[data-theme="dark"] .coop-icon {
  background: rgba(161, 161, 170, 0.15) !important;
  border-color: rgba(161, 161, 170, 0.2) !important;
}
[data-theme="dark"] .coop-icon svg { color: #a1a1aa; }
[data-theme="dark"] .coop-card h4 { color: #e4e4e7; }
[data-theme="dark"] .coop-card p { color: #71717a; }
[data-theme="dark"] .coop-card ul li { color: #a1a1aa; }
[data-theme="dark"] .coop-card ul li::before { background: #a1a1aa; }

[data-theme="dark"] .cooperation-apply .apply-card {
  background: rgba(161, 161, 170, 0.08) !important;
  border-color: rgba(161, 161, 170, 0.15) !important;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3) !important;
}
[data-theme="dark"] .apply-card h3 { color: #e4e4e7; }
[data-theme="dark"] .apply-card p { color: #71717a; }
[data-theme="dark"] .apply-card .btn-primary {
  background: linear-gradient(135deg, #a1a1aa 0%, #71717a 100%) !important;
  box-shadow: 0 4px 16px rgba(161, 161, 170, 0.35) !important;
}

/* ==================== 场景选择页面 - 玻璃拟态风格==================== */

/* 玻璃拟态步骤指示器 */
.steps-indicator-glass {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 3rem;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 1.5rem;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.step-glass {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  color: #94a3b8;
  transition: all 0.3s ease;
}

.step-glass.active {
  color: #a1a1aa;
}

.step-icon-glass {
  width: 44px;
  height: 44px;
  background: rgba(148, 163, 184, 0.15);
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.step-glass.active .step-icon-glass {
  background: linear-gradient(135deg, #a1a1aa 0%, #71717a 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(161, 161, 170, 0.3);
}

.step-icon-glass svg {
  width: 22px;
  height: 22px;
}

.step-label {
  font-size: 0.875rem;
  font-weight: 500;
}

.step-connector {
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, #e2e8f0 0%, #cbd5e1 100%);
  border-radius: 1px;
}

/* ==================== 导航下拉菜单 - Linear风格 ==================== */
.nav-dropdown-item {
  position: relative;
}

.nav-dropdown-arrow {
  width: 14px;
  height: 14px;
  margin-left: 4px;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-dropdown-item:hover .nav-dropdown-arrow {
  transform: rotate(180deg);
}

.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px) scale(0.96);
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  z-index: 1000;
  padding-top: 8px;
}

.nav-dropdown-item:hover .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0) scale(1);
  pointer-events: auto;
}

.nav-dropdown-content {
  background: rgba(255, 255, 255, 0.92);
  border-radius: 12px;
  padding: 6px;
  min-width: 260px;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.05),
    0 4px 16px rgba(0, 0, 0, 0.08),
    0 12px 40px rgba(0, 0, 0, 0.06);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
}

.nav-dropdown-item-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  text-decoration: none;
  color: #1d1d1f;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'PingFang SC', sans-serif;
  font-size: 13px;
  font-weight: 500;
  transition: background 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-dropdown-item-link:hover {
  background: rgba(0, 0, 0, 0.04);
}

.nav-dropdown-item-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6e6e73;
  background: rgba(0, 0, 0, 0.03);
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.04);
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-dropdown-item-icon svg {
  width: 18px;
  height: 18px;
}

.nav-dropdown-item-link:hover .nav-dropdown-item-icon {
  color: #1d1d1f;
  background: rgba(0, 0, 0, 0.06);
  border-color: rgba(0, 0, 0, 0.06);
}

.nav-dropdown-item-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.nav-dropdown-item-label {
  font-size: 13px;
  font-weight: 500;
  color: #1d1d1f;
  line-height: 1.3;
}

.nav-dropdown-item-desc {
  font-size: 11px;
  font-weight: 400;
  color: #86868b;
  line-height: 1.3;
  letter-spacing: 0.01em;
}

.nav-dropdown-item-link:hover .nav-dropdown-item-desc {
  color: #6e6e73;
}

.nav-dropdown-item-arrow {
  display: none;
}

.user-dropdown-content {
  min-width: 240px;
  padding: 6px;
}

.user-info-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 12px 14px;
  margin-bottom: 4px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.user-avatar {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.user-avatar svg {
  width: 36px;
  height: 36px;
  color: #6e6e73;
}

.user-avatar-img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.user-info-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.user-info-name {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'PingFang SC', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #1d1d1f;
  line-height: 1.2;
}

.user-info-email {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'PingFang SC', sans-serif;
  font-size: 11px;
  font-weight: 400;
  color: #86868b;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-role-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
  padding: 2px 8px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'PingFang SC', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.03em;
  line-height: 1;
  color: #6366f1;
  background: rgba(99,102,241,0.06);
  border: 1px solid rgba(99,102,241,0.1);
  border-radius: 4px;
  pointer-events: none;
  user-select: none;
}

.user-role-badge svg {
  width: 10px;
  height: 10px;
  flex-shrink: 0;
  opacity: 0.7;
}

.dropdown-divider {
  height: 1px;
  background: rgba(0, 0, 0, 0.06);
  margin: 4px 4px;
}

.dropdown-action-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border: none;
  border-radius: 8px;
  background: transparent;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'PingFang SC', sans-serif;
  font-size: 13px;
  font-weight: 400;
  color: #6e6e73;
  cursor: pointer;
  transition: background 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

.dropdown-action-btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.dropdown-action-btn:hover {
  background: rgba(0, 0, 0, 0.04);
  color: #1d1d1f;
}

.logout-link:hover {
  background: rgba(0, 0, 0, 0.06) !important;
  color: #1d1d1f !important;
}

.logout-link:hover .nav-dropdown-item-icon {
  color: #1d1d1f;
}

/* ==================== 新闻动态页面 - 全新设计 V2 ==================== */
.news-page {
  min-height: 100vh;
  background: #fafafa;
}

.news-header-bar {
  background: #ffffff;
  padding: 20px 0;
  border-bottom: 1px solid #f0f0f0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.news-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #6b7280;
  text-decoration: none;
  transition: all 0.25s ease;
  padding: 10px 18px;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  font-weight: 500;
}

.news-back-link:hover {
  color: #1f2937;
  background: #f9fafb;
  border-color: #d1d5db;
  transform: translateX(-4px);
}

.back-icon {
  font-size: 16px;
  line-height: 1;
  transition: transform 0.25s ease;
}

.news-back-link:hover .back-icon {
  transform: translateX(-3px);
}

.news-content {
  padding: 60px 0 80px;
}

/* 英雄区域 - 更简洁现代*/
.news-hero {
  text-align: center;
  margin-bottom: 48px;
}

.news-hero-badge {
  display: inline-block;
  padding: 8px 20px;
  background: #111827;
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border-radius: 100px;
  margin-bottom: 24px;
}

.news-hero-title {
  font-size: 52px;
  font-weight: 800;
  color: #111827;
  letter-spacing: -0.03em;
  margin: 0 0 12px 0;
  line-height: 1.1;
}

.news-hero-desc {
  font-size: 18px;
  color: #6b7280;
  margin: 0;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

/* 筛选按钮 - 更精致的设计 */
.news-filters {
  margin-bottom: 40px;
}

.news-filters-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  padding: 16px;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.news-filter-btn {
  padding: 10px 22px;
  font-size: 14px;
  font-weight: 600;
  border: none;
  border-radius: 100px;
  background: transparent;
  color: #6b7280;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.news-filter-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: #111827;
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: inherit;
}

.news-filter-btn span {
  position: relative;
  z-index: 1;
}

.news-filter-btn:hover {
  color: #374151;
  background: #f3f4f6;
}

.news-filter-btn.active {
  color: #ffffff;
}

.news-filter-btn.active::before {
  opacity: 1;
}

/* 新闻列表 */
.news-list {
  margin-bottom: 56px;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

/* 全新卡片设计 - 左图右文布局 */
.news-card-new {
  opacity: 0;
  transform: translateY(24px) scale(0.98);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  transition-delay: var(--delay, 0s);
  background: #ffffff;
  border-radius: 20px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 42% 58%;
  min-height: 280px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 4px 12px rgba(0, 0, 0, 0.03);
  border: 1px solid #f0f0f0;
}

.news-card-new.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.news-card-new:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12), 0 8px 24px rgba(0, 0, 0, 0.06);
  border-color: #e5e7eb;
}

/* 图片区域（左侧）*/
.news-card-img-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
}

.news-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.news-card-new:hover .news-card-img {
  transform: scale(1.08);
}

.news-card-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.15) 100%);
  pointer-events: none;
}

.news-card-tag {
  position: absolute;
  top: 16px;
  left: 16px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border: none;
  border-radius: 100px;
  color: #374151;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* 内容区域（右侧）*/
.news-card-body {
  padding: 28px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.news-card-meta {
  margin-bottom: 12px;
}

.news-card-time {
  font-size: 13px;
  font-weight: 600;
  color: #9ca3af;
  letter-spacing: 0.02em;
}

.news-card-heading {
  font-size: 19px;
  font-weight: 700;
  color: #111827;
  margin: 0 0 12px 0;
  line-height: 1.35;
  letter-spacing: -0.02em;
  transition: color 0.3s ease;
}

.news-card-new:hover .news-card-heading {
  color: #000000;
}

.news-card-text {
  font-size: 14px;
  color: #6b7280;
  margin: 0 0 20px 0;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #111827;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  width: fit-content;
}

.news-card-action:hover {
  gap: 12px;
  color: #000000;
}

.news-card-arrow-icon {
  stroke: currentColor;
  transition: transform 0.3s ease;
}

.news-card-action:hover .news-card-arrow-icon {
  transform: translateX(4px);
}

/* 加载更多按钮 */
.news-load-more {
  text-align: center;
  padding: 32px 0;
}

.news-load-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  font-size: 15px;
  font-weight: 600;
  border: 2px solid #e5e7eb;
  border-radius: 14px;
  background: #ffffff;
  color: #374151;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.news-load-more-btn:hover {
  border-color: #111827;
  color: #111827;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(17, 24, 39, 0.12);
}

/* 订阅区域 - 全新设计 */
.news-subscribe-section {
  margin-top: 64px;
}

.news-subscribe-box {
  background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
  border-radius: 24px;
  padding: 56px 48px;
  position: relative;
  overflow: hidden;
}

.news-subscribe-box::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.news-subscribe-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 32px;
}

.news-subscribe-icon {
  font-size: 42px;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.15));
}

.news-subscribe-info {
  flex: 1;
}

.news-subscribe-title {
  font-size: 30px;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 8px 0;
  letter-spacing: -0.02em;
}

.news-subscribe-text {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
  line-height: 1.6;
}

.news-subscribe-form {
  display: flex;
  gap: 12px;
  max-width: 520px;
}

.news-subscribe-input {
  flex: 1;
  padding: 16px 22px;
  font-size: 15px;
  border: none;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.95);
  color: #1f2937;
  outline: none;
  transition: all 0.3s ease;
  backdrop-filter: blur(8px);
}

.news-subscribe-input::placeholder {
  color: #9ca3af;
}

.news-subscribe-input:focus {
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

.news-subscribe-submit {
  padding: 16px 32px;
  font-size: 15px;
  font-weight: 700;
  border: none;
  border-radius: 12px;
  background: #1f2937;
  color: #ffffff;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  letter-spacing: 0.02em;
}

.news-subscribe-submit:hover {
  background: #111827;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.news-subscribe-submit.success {
  background: #10b981;
  animation: successPulse 0.5s ease;
}

@keyframes successPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

/* 滚动动画 */
.fade-in-up {
  opacity: 0;
  transform: translateY(24px);
  transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* 响应式设计*/
@media (max-width: 1024px) {
  .news-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .news-card-new {
    grid-template-columns: 1fr;
    grid-template-rows: 220px 1fr;
    min-height: auto;
  }
  
  .news-card-img-wrap {
    aspect-ratio: 16/9;
  }
}

@media (max-width: 768px) {
  .news-hero-title {
    font-size: 38px;
  }
  
  .news-hero-badge {
    font-size: 11px;
    padding: 6px 16px;
  }
  
  .news-filters-wrap {
    padding: 12px;
    gap: 8px;
  }
  
  .news-filter-btn {
    padding: 8px 16px;
    font-size: 13px;
  }
  
  .news-card-body {
    padding: 24px;
  }
  
  .news-card-heading {
    font-size: 17px;
  }
  
  .news-subscribe-box {
    padding: 36px 24px;
  }
  
  .news-subscribe-header {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }
  
  .news-subscribe-form {
    flex-direction: column;
    max-width: 100%;
  }
  
  .news-content {
    padding: 40px 0 60px;
  }
}

/* 页面标题 */
.scene-header-glass {
  text-align: center;
  margin-bottom: 3rem;
}

.scene-header-glass h1 {
  font-size: 2.25rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 0.75rem;
}

.scene-header-glass p {
  font-size: 1.125rem;
  color: #64748b;
  max-width: 500px;
  margin: 0 auto;
}

/* ==================== 3D空间预览 - Apple/Linear/Pentagram 高端设计 ==================== */
.space3d-premium {
  position: relative;
  width: 100%;
  min-height: 100vh;
  background: linear-gradient(180deg, #fafafa 0%, #f5f5f7 50%, #eeeeef 100%);
  overflow: hidden;
}

.space3d-viewport {
  position: relative;
  width: 100%;
  height: calc(100vh - 80px);
  display: flex;
}

.space3d-canvas {
  flex: 1;
  width: 100%;
  height: 100%;
  border-radius: 0;
}

/* 顶部导航 - 浮动玻璃栏*/
.space3d-header {
  position: absolute;
  top: 24px;
  left: 32px;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 12px 20px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow:
    0 4px 6px -1px rgba(0, 0, 0, 0.05),
    0 2px 4px -2px rgba(0, 0, 0, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  animation: space3d-fadeInDown 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes space3d-fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.space3d-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: transparent;
  color: #374151;
  font-size: 13px;
  font-weight: 500;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
}

.space3d-back:hover {
  background: rgba(17, 24, 39, 0.06);
  color: #111827;
}

.space3d-back svg {
  transition: transform 0.25s ease;
}

.space3d-back:hover svg {
  transform: translateX(-3px);
}

.space3d-title-group {
  padding-left: 18px;
  border-left: 1px solid rgba(0, 0, 0, 0.08);
}

.space3d-title {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: #111827;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.space3d-subtitle {
  margin: 2px 0 0;
  font-size: 12px;
  color: #9ca3af;
  font-weight: 400;
  letter-spacing: -0.005em;
}

/* 浮动控制面板 - 右下角玻璃态*/
.space3d-controls-float {
  position: absolute;
  bottom: 28px;
  left: 32px;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow:
    0 4px 6px -1px rgba(0, 0, 0, 0.05),
    0 2px 4px -2px rgba(0, 0, 0, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  animation: space3d-fadeInUp 0.5s 0.15s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes space3d-fadeInUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.space3d-control-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  background: transparent;
  color: #6b7280;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.space3d-control-btn:hover {
  background: rgba(17, 24, 39, 0.06);
  color: #111827;
}

.space3d-divider {
  width: 1px;
  height: 24px;
  background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.1), transparent);
  margin: 0 4px;
}

.space3d-hint {
  display: flex;
  align-items: center;
  gap: 6px;
  padding-left: 8px;
  font-size: 11px;
  color: #9ca3af;
  letter-spacing: 0.02em;
  font-weight: 400;
}

.space3d-hint svg {
  opacity: 0.6;
}

/* 右侧信息侧边栏- 玻璃态卡片*/
.space3d-sidebar {
  position: absolute;
  top: 24px;
  right: 24px;
  bottom: 24px;
  width: 320px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  z-index: 10;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: transparent transparent;
  padding-right: 4px;
}

.space3d-sidebar::-webkit-scrollbar {
  width: 4px;
}

.space3d-sidebar::-webkit-scrollbar-track {
  background: transparent;
}

.space3d-sidebar::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.1);
  border-radius: 4px;
}

/* 信息面板 - 统一风格 */
.space3d-panel {
  padding: 22px 24px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow:
    0 4px 6px -1px rgba(0, 0, 0, 0.04),
    0 2px 4px -2px rgba(0, 0, 0, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  animation: space3d-panelSlide 0.55s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.space3d-panel:nth-child(1) { animation-delay: 0.1s; }
.space3d-panel:nth-child(2) { animation-delay: 0.2s; }
.space3d-panel:nth-child(3) { animation-delay: 0.3s; }

@keyframes space3d-panelSlide {
  from {
    opacity: 0;
    transform: translateX(16px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.space3d-panel-label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #9ca3af;
  margin-bottom: 8px;
}

.space3d-panel-value {
  font-size: 19px;
  font-weight: 700;
  color: #111827;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 10px;
}

.space3d-panel-detail {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  font-size: 12px;
  color: #6b7280;
  line-height: 1.4;
}

.space3d-panel-detail svg {
  flex-shrink: 0;
  color: #d1d5db;
}

.space3d-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.space3d-panel-count {
  font-size: 11px;
  font-weight: 500;
  color: #9ca3af;
  background: rgba(0, 0, 0, 0.04);
  padding: 3px 8px;
  border-radius: 6px;
}

/* 工具包列表*/
.space3d-tools-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.space3d-tool-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: rgba(0, 0, 0, 0.02);
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.04);
  cursor: default;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.space3d-tool-item:hover {
  background: var(--tool-color, #667eea);
  border-color: var(--tool-color, #667eea);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
  transform: translateX(4px);
}

.space3d-tool-item:hover .space3d-tool-name,
.space3d-tool-item:hover .space3d-tool-price,
.space3d-tool-item:hover .space3d-tool-index {
  color: white;
}

.space3d-tool-index {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--tool-color, #667eea);
  color: white;
  font-size: 12px;
  font-weight: 700;
  border-radius: 10px;
  letter-spacing: -0.02em;
  transition: all 0.25s ease;
}

.space3d-tool-info {
  flex: 1;
  min-width: 0;
}

.space3d-tool-name {
  font-size: 13px;
  font-weight: 600;
  color: #111827;
  letter-spacing: -0.01em;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.25s ease;
}

.space3d-tool-price {
  font-size: 12px;
  font-weight: 500;
  color: #9ca3af;
  margin-top: 2px;
  transition: color 0.25s ease;
}

/* 价格卡片 - 黑色高端 */
.space3d-pricing-card {
  background: #111827 !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.2),
    0 4px 8px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
}

.space3d-pricing-top {
  margin-bottom: 18px;
}

.space3d-pricing-label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #6b7280;
  margin-bottom: 6px;
}

.space3d-pricing-amount {
  font-size: 30px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.space3d-export-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px 20px;
  background: #ffffff;
  color: #111827;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 12px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  letter-spacing: -0.01em;
}

.space3d-export-btn:hover {
  background: #f9fafb;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.15);
}

.space3d-export-btn svg {
  transition: transform 0.25s ease;
}

.space3d-export-btn:hover svg {
  transform: translateY(2px);
}

/* 响应式设计*/
@media (max-width: 1200px) {
  .space3d-sidebar {
    width: 280px;
  }

  .space3d-pricing-amount {
    font-size: 26px;
  }
}

@media (max-width: 900px) {
  .space3d-sidebar {
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    width: 100%;
    max-width: 480px;
    margin: 20px auto 40px;
    padding: 0 20px;
  }

  .space3d-viewport {
    height: calc(70vh - 60px);
  }

  .space3d-controls-float {
    bottom: 16px;
    left: 16px;
  }

  .space3d-header {
    top: 16px;
    left: 16px;
  }
}

/* 场景网格 */
.scene-grid-glass {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

/* 玻璃拟态场景卡片*/
.scene-card-glass {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 1.5rem;
  padding: 2rem;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.scene-card-glass::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--scene-color);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.scene-card-glass:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
  border-color: var(--scene-border);
}

.scene-card-glass:hover::before {
  opacity: 1;
}

.scene-card-glass.selected {
  background: rgba(255, 255, 255, 0.95);
  border: 2px solid var(--scene-color);
  box-shadow: 0 0 0 4px var(--scene-bg), 0 12px 40px rgba(0, 0, 0, 0.1);
}

.scene-card-glass.selected::before {
  opacity: 1;
}

/* 场景图标 */
.scene-icon-glass {
  width: 80px;
  height: 80px;
  background: var(--scene-bg);
  border: 2px solid var(--scene-border);
  border-radius: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--scene-color);
  transition: all 0.3s ease;
}

.scene-card-glass:hover .scene-icon-glass {
  transform: scale(1.1);
  box-shadow: 0 8px 24px var(--scene-bg);
}

.scene-icon-glass svg {
  width: 40px;
  height: 40px;
}

/* 场景信息 */
.scene-info-glass h4 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 0.75rem;
}

.scene-info-glass p {
  color: #64748b;
  font-size: 0.9375rem;
  line-height: 1.6;
  margin: 0;
}

/* 选中标记 */
.scene-check-glass {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 28px;
  height: 28px;
  background: var(--scene-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  opacity: 0;
  transform: scale(0);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.scene-card-glass.selected .scene-check-glass {
  opacity: 1;
  transform: scale(1);
}

.scene-check-glass svg {
  width: 16px;
  height: 16px;
}

/* 操作区*/
.action-bar-glass {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 1.25rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.action-group-glass {
  display: flex;
  gap: 1rem;
}

/* 玻璃拟态按钮*/
.btn-glass {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  font-size: 0.9375rem;
  font-weight: 500;
  border: none;
  border-radius: 0.75rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-glass svg {
  width: 18px;
  height: 18px;
}

.btn-glass-secondary {
  background: rgba(241, 245, 249, 0.8);
  color: #64748b;
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.btn-glass-secondary:hover {
  background: rgba(226, 232, 240, 0.9);
  color: #475569;
}

.btn-glass-outline {
  background: rgba(255, 255, 255, 0.8);
  color: #a1a1aa;
  border: 1px solid rgba(161, 161, 170, 0.3);
}

.btn-glass-outline:hover:not(:disabled) {
  background: rgba(161, 161, 170, 0.1);
  border-color: rgba(161, 161, 170, 0.5);
}

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

.btn-glass-primary {
  background: linear-gradient(135deg, #a1a1aa 0%, #71717a 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(161, 161, 170, 0.3);
}

.btn-glass-primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(161, 161, 170, 0.4);
}

.btn-glass-primary:disabled {
  background: linear-gradient(135deg, #94a3b8 0%, #64748b 100%);
  cursor: not-allowed;
}

/* 响应式*/
@media (max-width: 768px) {
  .steps-indicator-glass {
    padding: 1rem;
    gap: 0.25rem;
  }
  
  .step-glass {
    padding: 0.5rem;
  }
  
  .step-icon-glass {
    width: 36px;
    height: 36px;
  }
  
  .step-icon-glass svg {
    width: 18px;
    height: 18px;
  }
  
  .step-label {
    font-size: 0.75rem;
  }
  
  .step-connector {
    width: 20px;
  }
  
  .scene-header-glass h1 {
    font-size: 1.75rem;
  }
  
  .scene-grid-glass {
    grid-template-columns: 1fr;
  }
  
  .action-bar-glass {
    flex-direction: column;
    gap: 1rem;
  }
  
  .action-group-glass {
    width: 100%;
    flex-direction: column;
  }
  
  .btn-glass {
    width: 100%;
  }
}

/* ==================== AI情绪诊断页面 - 玻璃拟态风格==================== */

/* 页面头部 */
.heatmap-header-glass {
  text-align: center;
  margin-bottom: 3rem;
  padding: 2.5rem;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 1.5rem;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.heatmap-header-glass .header-icon {
  width: 72px;
  height: 72px;
  background: linear-gradient(135deg, rgba(161, 161, 170, 0.1) 0%, rgba(16, 185, 129, 0.1) 100%);
  border: 2px solid rgba(161, 161, 170, 0.2);
  border-radius: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: #a1a1aa;
}

.heatmap-header-glass .header-icon svg {
  width: 40px;
  height: 40px;
}

.heatmap-header-glass h1 {
  font-size: 2rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 0.75rem;
}

.heatmap-header-glass p {
  font-size: 1.125rem;
  color: #64748b;
  margin: 0;
}

/* 步骤指示器扩展样式*/
.step-glass.completed {
  color: #10B981;
}

.step-glass.completed .step-icon-glass {
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
  color: white;
}

.step-connector.completed {
  background: linear-gradient(90deg, #10B981 0%, #a1a1aa 100%);
}

/* 分析模式选择 */
.analysis-mode-glass {
  margin-bottom: 2rem;
}

.section-title-glass {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 1.5rem;
  text-align: center;
}

.mode-cards-glass {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.mode-card-glass {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 1.5rem;
  padding: 2rem;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.mode-card-glass::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mode-card-glass.mode-image::before {
  background: linear-gradient(90deg, #a1a1aa 0%, #a1a1aa 100%);
}

.mode-card-glass.mode-video::before {
  background: linear-gradient(90deg, #10B981 0%, #34D399 100%);
}

.mode-card-glass:hover::before,
.mode-card-glass.selected::before {
  opacity: 1;
}

.mode-card-glass:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

.mode-card-glass.mode-image:hover {
  border-color: rgba(161, 161, 170, 0.3);
}

.mode-card-glass.mode-video:hover {
  border-color: rgba(16, 185, 129, 0.3);
}

.mode-card-glass.selected {
  background: rgba(255, 255, 255, 0.95);
}

.mode-card-glass.mode-image.selected {
  border: 2px solid #a1a1aa;
  box-shadow: 0 0 0 4px rgba(161, 161, 170, 0.1), 0 12px 40px rgba(0, 0, 0, 0.1);
}

.mode-card-glass.mode-video.selected {
  border: 2px solid #10B981;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1), 0 12px 40px rgba(0, 0, 0, 0.1);
}

.mode-icon-glass {
  width: 64px;
  height: 64px;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  transition: all 0.3s ease;
}

.mode-image .mode-icon-glass {
  background: rgba(161, 161, 170, 0.1);
  color: #a1a1aa;
  border: 2px solid rgba(161, 161, 170, 0.2);
}

.mode-video .mode-icon-glass {
  background: rgba(16, 185, 129, 0.1);
  color: #10B981;
  border: 2px solid rgba(16, 185, 129, 0.2);
}

.mode-card-glass:hover .mode-icon-glass {
  transform: scale(1.1);
}

.mode-icon-glass svg {
  width: 32px;
  height: 32px;
}

.mode-content-glass h5 {
  font-size: 1.125rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 0.75rem;
}

.mode-content-glass p {
  color: #64748b;
  font-size: 0.9375rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.mode-content-glass p strong {
  color: #a1a1aa;
}

.mode-features-glass {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
}

.mode-features-glass li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: #475569;
}

.mode-features-glass li svg {
  width: 14px;
  height: 14px;
  color: #10B981;
  flex-shrink: 0;
}

/* 上传区域 */
.upload-section-glass {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 1.5rem;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.upload-type-indicator-glass {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.badge-glass {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: linear-gradient(135deg, #a1a1aa 0%, #71717a 100%);
  color: white;
  border-radius: 2rem;
  font-size: 0.875rem;
  font-weight: 500;
  box-shadow: 0 4px 12px rgba(161, 161, 170, 0.3);
}

.badge-glass svg {
  width: 16px;
  height: 16px;
}

.upload-description-glass {
  color: #64748b;
  font-size: 0.9375rem;
  margin: 0;
}

.upload-area-glass {
  border: 2px dashed rgba(148, 163, 184, 0.3);
  border-radius: 1.25rem;
  padding: 3rem 2rem;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
}

.upload-area-glass:hover {
  border-color: #a1a1aa;
  background: rgba(161, 161, 170, 0.02);
}

.upload-placeholder-glass {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.upload-icon-glass {
  width: 80px;
  height: 80px;
  background: rgba(161, 161, 170, 0.08);
  border: 2px solid rgba(161, 161, 170, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #a1a1aa;
  margin-bottom: 0.5rem;
  transition: all 0.3s ease;
}

.upload-area-glass:hover .upload-icon-glass {
  transform: scale(1.05);
  background: rgba(161, 161, 170, 0.12);
}

.upload-icon-glass svg {
  width: 40px;
  height: 40px;
}

.upload-placeholder-glass h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1e293b;
  margin: 0;
}

.upload-placeholder-glass p {
  color: #64748b;
  font-size: 0.9375rem;
  margin: 0;
}

.upload-hint-glass {
  color: #94a3b8;
  font-size: 0.8125rem;
  margin: 0;
}

/* 响应式*/
@media (max-width: 768px) {
  .mode-cards-glass {
    grid-template-columns: 1fr;
  }
  
  .heatmap-header-glass {
    padding: 1.5rem;
  }
  
  .heatmap-header-glass h1 {
    font-size: 1.5rem;
  }
  
  .mode-features-glass {
    grid-template-columns: 1fr;
  }
}

/* ==================== 3D预览页面 - 玻璃拟态风格==================== */

/* 页面模块 */
.space3d-module-glass {
  min-height: 100vh;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  padding-bottom: 2rem;
}

/* 玻璃拟态页面标题*/
.space3d-header-glass {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.9);
  padding: 2rem 0;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.header-content-glass {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.header-icon-glass {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, rgba(161, 161, 170, 0.1) 0%, rgba(16, 185, 129, 0.1) 100%);
  border: 2px solid rgba(161, 161, 170, 0.2);
  border-radius: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #a1a1aa;
  flex-shrink: 0;
}

.header-icon-glass svg {
  width: 36px;
  height: 36px;
}

.header-text-glass h1 {
  font-size: 1.75rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 0.375rem;
}

.header-text-glass p {
  font-size: 1rem;
  color: #64748b;
  margin: 0;
}

/* 3D画布区域 */
.space3d-canvas-wrapper-glass {
  position: relative;
  background: #f8fafc;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.space3d-canvas-glass {
  width: 100%;
  height: 520px;
  position: relative;
}

/* 加载动画 */
.loading-spinner-glass {
  width: 48px;
  height: 48px;
  border: 3px solid rgba(161, 161, 170, 0.1);
  border-top-color: #a1a1aa;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

/* 3D控制面板 */
.space3d-controls-glass {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  z-index: 10;
}

.control-btn-glass {
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.control-btn-glass:hover {
  background: white;
  color: #a1a1aa;
  border-color: rgba(161, 161, 170, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.control-btn-glass.active {
  background: linear-gradient(135deg, #a1a1aa 0%, #71717a 100%);
  border-color: transparent;
  color: white;
}

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

/* 视角提示 */
.view-hint-glass {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 2rem;
  font-size: 0.875rem;
  color: #64748b;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.view-hint-glass svg {
  width: 18px;
  height: 18px;
  color: #a1a1aa;
}

/* 侧边面板卡片 */
.panel-card-glass {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 1.25rem;
  padding: 1.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.panel-title-glass {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 1rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 1.25rem;
  padding-bottom: 0.875rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.15);
}

.panel-title-glass svg {
  width: 18px;
  height: 18px;
  color: #a1a1aa;
}

/* 方案概览 */
.plan-overview-glass {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.overview-item-glass {
  display: flex;
  align-items: center;
  gap: 0.875rem;
}

.overview-icon-glass {
  width: 40px;
  height: 40px;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

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

.overview-info-glass {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.overview-label {
  font-size: 0.75rem;
  color: #94a3b8;
}

.overview-value {
  font-size: 0.9375rem;
  font-weight: 500;
  color: #1e293b;
}

.overview-value.price {
  color: #10B981;
  font-weight: 600;
}

/* 紧凑模式方案概览（用于左侧下方） */
.plan-overview-glass.compact {
  gap: 0.75rem;
}

.plan-overview-glass.compact .overview-item-glass {
  gap: 0.625rem;
}

.plan-overview-glass.compact .overview-icon-glass {
  width: 36px;
  height: 36px;
}

.plan-overview-glass.compact .overview-icon-glass svg {
  width: 18px;
  height: 18px;
}

.plan-overview-glass.compact .overview-value {
  font-size: 0.875rem;
}

/* 工具包列表*/
.tool-list-glass {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.tool-item-glass {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem;
  background: rgba(248, 250, 252, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.1);
  border-radius: 0.875rem;
  transition: all 0.3s ease;
}

.tool-item-glass:hover {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(161, 161, 170, 0.2);
  transform: translateX(4px);
}

.tool-marker-glass {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
  flex-shrink: 0;
}

.tool-icon-glass {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tool-icon-glass svg {
  width: 24px;
  height: 24px;
}

.tool-info-glass {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  flex: 1;
}

.tool-name {
  font-size: 0.875rem;
  font-weight: 500;
  color: #1e293b;
}

.tool-price {
  font-size: 0.8125rem;
  color: #64748b;
}

/* 空间元素列表 */
.element-list-glass {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.element-item-glass {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 0;
}

.element-color {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}

.element-name {
  flex: 1;
  font-size: 0.875rem;
  color: #475569;
}

.element-count {
  font-size: 0.875rem;
  font-weight: 500;
  color: #a1a1aa;
}

/* 空状态*/
.empty-state-glass {
  text-align: center;
  padding: 2rem 1rem;
}

.empty-icon-glass {
  width: 80px;
  height: 80px;
  background: rgba(161, 161, 170, 0.08);
  border: 2px solid rgba(161, 161, 170, 0.15);
  border-radius: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  color: #a1a1aa;
}

.empty-icon-glass svg {
  width: 40px;
  height: 40px;
}

.empty-state-glass p {
  color: #64748b;
  margin-bottom: 1.25rem;
}

/* 响应式*/
@media (max-width: 991px) {
  .space3d-canvas-glass {
    height: 400px;
  }

  .header-content-glass {
    flex-direction: column;
    text-align: center;
  }

  .header-icon-glass {
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .space3d-canvas-glass {
    height: 320px;
  }

  .space3d-controls-glass {
    flex-direction: row;
    top: auto;
    bottom: 4rem;
    right: 50%;
    transform: translateX(50%);
  }

  .view-hint-glass {
    font-size: 0.75rem;
    padding: 0.5rem 1rem;
  }
}

/* ==================== 案例库页面 - 玻璃拟态风格==================== */

/* 页面模块 */
.cases-module-glass {
  min-height: 100vh;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  padding-bottom: 3rem;
}

/* 玻璃拟态页面标题*/
.cases-header-glass {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.9);
  padding: 2.5rem 0;
  margin-bottom: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

/* 统计卡片 - 玻璃拟态*/
.stats-overview-glass {
  margin-bottom: 2rem;
}

.stat-card-glass {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 1.25rem;
  padding: 1.5rem;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
}

.stat-card-glass:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.stat-icon-glass {
  width: 56px;
  height: 56px;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.stat-icon-glass svg {
  width: 28px;
  height: 28px;
}

.stat-number-glass {
  font-size: 2rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 0.25rem;
  background: linear-gradient(135deg, #a1a1aa 0%, #8B5CF6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label-glass {
  font-size: 0.875rem;
  color: #64748b;
}

/* 筛选栏 - 玻璃拟态*/
.filter-bar-glass {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 1rem;
  padding: 1.25rem 1.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.filter-group-glass {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.filter-group-glass:last-child {
  margin-bottom: 0;
}

.filter-group-glass label {
  font-size: 0.875rem;
  font-weight: 500;
  color: #475569;
  white-space: nowrap;
}

.filter-tabs-glass {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.filter-tab-glass {
  padding: 0.5rem 1rem;
  background: rgba(241, 245, 249, 0.8);
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: 2rem;
  font-size: 0.875rem;
  color: #64748b;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-tab-glass:hover {
  background: rgba(161, 161, 170, 0.1);
  border-color: rgba(161, 161, 170, 0.3);
  color: #a1a1aa;
}

.filter-tab-glass.active {
  background: linear-gradient(135deg, #a1a1aa 0%, #8B5CF6 100%);
  border-color: transparent;
  color: white;
  box-shadow: 0 4px 12px rgba(161, 161, 170, 0.3);
}

/* 案例网格 */
.cases-grid-glass {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

/* 案例卡片 - 玻璃拟态*/
.case-card-glass {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}

.case-card-glass:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

/* 案例图片区域 */
.case-image-glass {
  position: relative;
  height: 180px;
  overflow: hidden;
}

.case-image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.5s ease;
}

.case-card-glass:hover .case-image-placeholder {
  transform: scale(1.05);
}

.placeholder-text {
  font-size: 1.5rem;
  font-weight: 600;
  color: white;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.case-budget-glass {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  padding: 0.375rem 0.875rem;
  border-radius: 2rem;
  font-size: 0.75rem;
  font-weight: 600;
}

.case-scene-glass {
  position: absolute;
  bottom: 0.75rem;
  left: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.875rem;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  border-radius: 2rem;
  color: white;
  font-size: 0.8125rem;
  font-weight: 500;
}

.case-scene-glass svg {
  width: 16px;
  height: 16px;
}

/* 案例内容区域 */
.case-content-glass {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.case-title-glass {
  font-size: 1.125rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.case-school-glass {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.8125rem;
  color: #64748b;
  margin-bottom: 0.75rem;
}

.case-school-glass svg {
  width: 16px;
  height: 16px;
  color: #94a3b8;
}

.case-summary-glass {
  font-size: 0.875rem;
  color: #64748b;
  line-height: 1.6;
  margin-bottom: 1rem;
  flex: 1;
}

/* 案例统计 */
.case-stats-glass {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.15);
}

.stat-glass {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.8125rem;
  color: #64748b;
}

.stat-glass svg {
  width: 16px;
  height: 16px;
  color: #94a3b8;
}

/* 案例标签 */
.case-tags-glass {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag-glass {
  padding: 0.25rem 0.625rem;
  background: rgba(241, 245, 249, 0.8);
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: 1rem;
  font-size: 0.75rem;
  color: #64748b;
}

/* 案例操作 */
.case-actions-glass {
  padding: 0 1.25rem 1.25rem;
}

.case-actions-glass .btn-glass {
  width: 100%;
  justify-content: center;
}

/* 响应式适配 */
@media (max-width: 991px) {
  .cases-grid-glass {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
  }

  .stat-card-glass {
    padding: 1.25rem;
  }

  .stat-number-glass {
    font-size: 1.75rem;
  }
}

@media (max-width: 768px) {
  .cases-header-glass {
    padding: 1.5rem 0;
  }

  .filter-group-glass {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .cases-grid-glass {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .case-image-glass {
    height: 160px;
  }
}

/* ==================== iOS Safari 特定修复 ==================== */

/* iOS 设备检测*/
@supports (-webkit-touch-callout: none) {
  /* 修复 iOS 100vh 问题 - 使用 -webkit-fill-available */
  .portfolio-hero-section,
  .home-module,
  .space3d-premium,
  .space3d-viewport {
    min-height: -webkit-fill-available !important;
    height: -webkit-fill-available !important;
  }
  
  /* 修复 iOS 弹性滚动导致的布局问题 */
  body {
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: none;
  }
  
  /* 修复 iOS 的 flexbox 布局重叠问题 */
  .portfolio-features-grid,
  .scrollytelling-step,
  .portfolio-stats-row,
  .process-steps,
  .scene-grid-glass,
  .cases-grid-glass,
  .news-grid {
    display: -webkit-box !important;
    display: -webkit-flex !important;
    -webkit-box-orient: vertical !important;
    -webkit-box-direction: normal !important;
  }
  
  /* 修复 iOS 的 grid 布局问题 */
  .portfolio-features-grid,
  .scene-grid-glass,
  .cases-grid-glass,
  .news-grid,
  .favorites-grid,
  .history-grid {
    display: grid;
    grid-template-columns: 1fr;
  }
  
  /* 修复 iOS 上固定定位问题*/
  .chatbot-widget,
  .space3d-header,
  .space3d-controls-float,
  .space3d-sidebar {
    position: fixed;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
  }
  
  /* 修复 iOS 的 transform 动画性能 */
  .portfolio-feature-card,
  .scrollytelling-content,
  .scene-card-glass,
  .case-card-glass,
  .news-card-new {
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
  }
  
  /* 修复 iOS 的 backdrop-filter 性能问题 */
  .chatbot-toggle,
  .chatbot-window {
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    backdrop-filter: saturate(180%) blur(20px);
  }

  .space3d-panel,
  .panel-card-glass,
  .stat-card-glass,
  .filter-bar-glass {
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
  }
  
  /* 修复 iOS 的 sticky 定位问题 */
  .portfolio-sidebar,
  .profile-sidebar {
    position: -webkit-sticky;
    position: sticky;
  }
  
  /* 修复 iOS 上图片加载导致的布局跳动 */
  img {
    height: auto;
    max-width: 100%;
  }
  
  /* 修复 iOS 上按钮点击高亮*/
  button,
  .btn-glass,
  .filter-tab-glass,
  .scene-card-glass {
    -webkit-tap-highlight-color: transparent;
  }
  
  /* 修复 iOS 上输入框缩放问题 */
  input,
  textarea,
  select {
    font-size: 16px;
  }
  
  /* 修复 iOS 上滚动卡顿*/
  .chatbot-messages,
  .space3d-sidebar,
  .portfolio-scroll-container {
    -webkit-overflow-scrolling: touch;
    overflow-y: auto;
  }
  
  /* 修复 iOS 上动画导致的闪烁 */
  .hero-ambient-glow,
  .particle,
  .portfolio-hero-decoration {
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
  }
  
  /* 修复 iOS 的 z-index 堆叠问题 */
  .portfolio-hero-section {
    z-index: 1;
  }
  
  .portfolio-features-grid {
    position: relative;
    z-index: 2;
  }
  
  /* 修复 iOS 上视口画布元素 */
  canvas,
  video {
    display: block;
    max-width: 100%;
  }
}

/* iOS 横屏模式特定修复 */
@media screen and (max-width: 896px) and (-webkit-touch-callout: none) and (orientation: landscape) {
  .portfolio-hero-section {
    min-height: auto;
    padding: 60px 0;
  }
  
  .portfolio-hero-title {
    font-size: 2rem;
  }
}

/* iOS 低电量模式动画降级*/
@media (prefers-reduced-motion: reduce) {
  @supports (-webkit-touch-callout: none) {
    *,
    *::before,
    *::after {
      animation-duration: 0.01ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: 0.01ms !important;
    }
  }
}

/* ==================== CTA区域 - 高级质感设计 ==================== */
.cta-section-final {
  padding: 100px 0;
  background: #fafaf9;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.cta-content {
  text-align: center;
  max-width: 680px;
  margin: 0 auto;
}

.cta-decoration-line {
  width: 28px;
  height: 1.5px;
  background: #d4d4d4;
  margin: 0 auto 36px;
}

.cta-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 5px 16px;
  background: #f0f0f0;
  border: 1px solid #e6e6e6;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 500;
  color: #6e6e73;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 auto 24px auto;
  width: fit-content;
}

.cta-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  display: inline-block;
  flex-shrink: 0;
  animation: ctaDotPulse 2s ease-in-out infinite;
}

@keyframes ctaDotPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.cta-content h2 {
  font-size: clamp(32px, 4.5vw, 44px);
  font-weight: 500;
  color: #1d1d1f;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin: 0 auto 16px auto;
  text-align: center !important;
  width: 100%;
  text-indent: 0.35em;
}

.cta-subtitle {
  font-size: 17px;
  color: #86868b;
  margin: 0 auto 40px auto;
  line-height: 1.6;
  font-weight: 400;
  letter-spacing: 0.01em;
  text-align: center !important;
}

.cta-features {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-bottom: 44px;
}

.cta-feature {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #6e6e73;
  font-weight: 450;
}

.cta-feature svg {
  width: 20px;
  height: 20px;
  color: #999;
  flex-shrink: 0;
}

.cta-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.btn-primary-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 40px;
  background: #1d1d1f;
  color: #ffffff;
  border: 1px solid #1d1d1f;
  border-radius: 100px;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  text-align: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.btn-primary-cta svg {
  width: 20px;
  height: 20px;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary-cta:hover {
  background: #2d2d32;
  border-color: #2d2d32;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.14);
  color: #ffffff;
  text-decoration: none;
}

.btn-primary-cta:hover svg {
  transform: translateX(3px);
}

.btn-primary-cta:active {
  transform: translateY(0);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.cta-note {
  font-size: 12px;
  color: #9a9a9e;
  margin: 0;
  font-weight: 400;
  letter-spacing: 0.03em;
}

/* ==================== 滚动叙事区域（四步改造流程）- 高级质感设计 ==================== */
.scrollytelling-section {
  padding: 88px 0;
  background: #fafaf9;
  overflow: hidden;
}

.scrollytelling-header {
  text-align: center;
  margin-bottom: 60px;
}

.scrollytelling-header .container {
  max-width: 680px;
  margin: 0 auto;
}

.scrollytelling-title {
  font-size: 2.5rem;
  font-weight: 600;
  color: #1d1d1f;
  margin: 0 0 12px 0;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.scrollytelling-subtitle {
  font-size: 1.08rem;
  color: #86868b;
  margin: 0;
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.6;
}

.scrollytelling-header::after {
  content: '';
  display: block;
  width: 28px;
  height: 1.5px;
  background: #d4d4d4;
  margin: 20px auto 0;
}

.scrollytelling-steps {
  position: relative;
}

.scrollytelling-steps .container {
  max-width: 960px;
  margin: 0 auto;
}

/* 中轴线 */
.scrollytelling-steps::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(0, 0, 0, 0.06) 5%,
    rgba(0, 0, 0, 0.06) 95%,
    transparent 100%
  );
  transform: translateX(-50%);
}

.scrollytelling-step {
  display: flex;
  align-items: center;
  gap: 80px;
  padding: 52px 0;
  position: relative;
}

.scrollytelling-step[data-step="2"],
.scrollytelling-step[data-step="4"] {
  flex-direction: row-reverse;
}

/* 步骤时间轴圆点 */
.scrollytelling-step::before {
  content: attr(data-step);
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #fafaf9;
  border: 1px solid rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 500;
  color: #86868b;
  z-index: 2;
}

/* 步骤图片区域 */
.step-image {
  flex: 0 0 46%;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.04),
    0 4px 16px rgba(0, 0, 0, 0.04),
    0 8px 32px rgba(0, 0, 0, 0.03);
  aspect-ratio: 1 / 1;
}

.step-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.scrollytelling-step:hover .step-image img {
  transform: scale(1.03);
}

/* 装饰角标 */
.step-decor {
  position: absolute;
  width: 48px;
  height: 48px;
  border-radius: 0;
  z-index: 1;
  pointer-events: none;
}

.step-decor.top-left {
  top: -1px;
  left: -1px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  border-left: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 12px 0 0 0;
}

.step-decor.bottom-right {
  bottom: -1px;
  right: -1px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  border-right: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 0 0 12px 0;
}

/* 步骤图标（图片上的叠加 SVG） */
.step-icon {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  z-index: 2;
  color: rgba(0, 0, 0, 0.25);
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 10px;
  padding: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.step-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* 步骤文字区域 */
.step-text {
  flex: 1;
}

.scrollytelling-step .step-label {
  font-size: 0.78rem;
  font-weight: 500;
  color: #86868b;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.scrollytelling-step .step-number {
  width: auto;
  height: auto;
  border-radius: 0;
  display: block;
  background: transparent;
  font-size: 4rem;
  font-weight: 700;
  color: #1d1d1f;
  line-height: 1;
  letter-spacing: -0.03em;
  margin: 0 0 12px 0;
  opacity: 0.16;
}

.scrollytelling-step .step-title {
  font-size: 1.6rem;
  font-weight: 600;
  color: #1d1d1f;
  margin: 0 0 10px 0;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.scrollytelling-step .step-description {
  font-size: 1rem;
  color: #6e6e73;
  margin: 0;
  font-weight: 400;
  line-height: 1.7;
  letter-spacing: 0.01em;
  max-width: 420px;
}

/* 悬停时步骤文字微动 */
.scrollytelling-step:hover .step-title {
  color: #007aff;
  transition: color 0.3s ease;
}

.scrollytelling-step:hover .step-number {
  opacity: 0.22;
  transition: opacity 0.3s ease;
}

/* ==================== 产品管线展示 - B+C融合（从视频到洞察） ==================== */
.pipeline-showcase-section {
  padding: 100px 0 80px;
  background: #fafaf9;
}
.pipeline-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
}
.pipeline-decoration {
  text-align: center;
  margin-bottom: 40px;
}
.pipeline-line {
  display: inline-block;
  width: 28px;
  height: 1.5px;
  background: #d4d4d4;
}
.pipeline-header {
  text-align: center;
  margin-bottom: 64px;
}
.pipeline-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: #86868b;
  margin-bottom: 16px;
  text-transform: uppercase;
}
.pipeline-title {
  font-size: clamp(28px, 3.5vw, 38px);
  font-weight: 500;
  color: #1d1d1f;
  letter-spacing: -0.03em;
  line-height: 1.25;
  margin: 0 0 14px 0;
}
.pipeline-subtitle {
  font-size: 15px;
  color: #86868b;
  line-height: 1.6;
  max-width: 680px;
  margin: 0 auto;
}
.pipeline-br { display: none; }

.pipeline-steps {
  display: flex;
  gap: 0;
  align-items: stretch;
  margin-bottom: 56px;
}
.pipeline-step {
  flex: 1 1 0;
  display: flex;
  align-items: stretch;
  min-width: 0;
}
.pipeline-step-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 0 12px;
}
.pipeline-step-number {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: #002147;
  margin-bottom: 4px;
}
.pipeline-step-icon {
  width: 36px;
  height: 36px;
  color: #002147;
  margin-bottom: 12px;
}
.pipeline-step-title {
  font-size: 15px;
  font-weight: 550;
  color: #1d1d1f;
  margin: 0 0 6px 0;
  letter-spacing: -0.01em;
}
.pipeline-step-desc {
  font-size: 12px;
  color: #6e6e73;
  line-height: 1.5;
  margin: 0 0 14px 0;
}
.pipeline-preview {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.06);
  background: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
  transition: transform 0.3s cubic-bezier(0.4,0,0.2,1), box-shadow 0.3s;
  margin-top: auto;
}
.pipeline-preview:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}
.pipeline-preview img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 4/3;
  object-fit: cover;
}
.pipeline-preview-label {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 6px 10px;
  background: linear-gradient(transparent, rgba(0,0,0,0.5));
  color: #fff;
  font-size: 10px;
  letter-spacing: 0.04em;
  line-height: 1.3;
}

.pipeline-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  flex-shrink: 0;
  align-self: stretch;
  color: #c4c4c8;
  padding-bottom: 40px;
}
.pipeline-arrow svg { width: 18px; height: 18px; }

.pipeline-tech-stack { text-align: center; padding-top: 8px; }
.pipeline-tech-divider {
  width: 40px; height: 1px;
  background: #d4d4d4;
  margin: 0 auto 16px;
}
.pipeline-tech-items {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 4px 6px;
  max-width: 700px;
  margin: 0 auto;
}
.pipeline-tech-item {
  font-size: 11px;
  color: #86868b;
  letter-spacing: 0.02em;
}
.pipeline-tech-dot {
  font-size: 10px;
  color: #d4d4d4;
}

@media (max-width: 1100px) {
  .pipeline-steps { flex-wrap: wrap; gap: 36px 12px; }
  .pipeline-step { flex: 0 0 calc(50% - 20px); }
  .pipeline-arrow:nth-child(2) { display: none; }
}
@media (max-width: 991.98px) {
  .pipeline-showcase-section { padding: 72px 0 60px; }
  .pipeline-container { padding: 0 24px; }
  .pipeline-steps { flex-direction: column; gap: 32px; }
  .pipeline-step { flex: 1; }
  .pipeline-arrow { display: none; }
  .pipeline-br { display: inline; }
}
@media (max-width: 575.98px) {
  .pipeline-showcase-section { padding: 52px 0 44px; }
  .pipeline-container { padding: 0 16px; }
  .pipeline-header { margin-bottom: 36px; }
  .pipeline-step-title { font-size: 14px; }
  .pipeline-step-desc { font-size: 12px; }
  .pipeline-step-card { padding: 0 4px; }
}

/* ==================== 核心能力展示区域 - 高级质感设计 ==================== */
.portfolio-features-section {
  padding: 100px 0;
  background: #fafaf9;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.portfolio-features-header {
  text-align: center;
  margin-bottom: 60px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.portfolio-features-title {
  font-size: clamp(32px, 4vw, 42px);
  font-weight: 500;
  color: #1d1d1f;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin: 0 0 16px 0;
}

.portfolio-features-subtitle {
  font-size: 17px;
  color: #86868b;
  margin: 0;
  line-height: 1.6;
  font-weight: 400;
  letter-spacing: 0.01em;
}

.portfolio-features-wrapper {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.portfolio-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.portfolio-feature-item {
  display: flex;
  flex-direction: column;
  border: 1px solid #e6e6e6;
  border-radius: 16px;
  overflow: hidden;
  background: #ffffff;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.portfolio-feature-item:hover {
  transform: translateY(-4px);
  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.06),
    0 12px 32px rgba(0, 0, 0, 0.06);
}

.feature-image-wrapper {
  overflow: hidden;
  aspect-ratio: 16/10;
}

.feature-image {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.feature-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.portfolio-feature-item:hover .feature-image img {
  transform: scale(1.04);
}

.feature-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.feature-label {
  font-size: 11px;
  font-weight: 600;
  color: #6e6e73;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.feature-title {
  font-size: 18px;
  font-weight: 500;
  color: #1d1d1f;
  margin: 0;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.feature-description {
  font-size: 14px;
  color: #86868b;
  line-height: 1.65;
  margin: 0;
  font-weight: 400;
  letter-spacing: 0.01em;
}

.feature-learn-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: #6e6e73;
  text-decoration: none;
  letter-spacing: 0.02em;
  margin-top: auto;
  padding-top: 8px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-learn-more::after {
  content: '→';
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-learn-more:hover {
  color: #1d1d1f;
  text-decoration: none;
}

.feature-learn-more:hover::after {
  transform: translateX(4px);
}

.features-controls {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 36px;
}

.features-control-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid #e6e6e6;
  background: #ffffff;
  color: #6e6e73;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.features-control-btn:hover:not(:disabled) {
  background: #1d1d1f;
  border-color: #1d1d1f;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.features-control-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

/* ==================== 精选案例区域 - 高级质感设计 ==================== */
.pentagram-case-section {
  padding: 120px 0;
  background: #f7f4ed;
}

.pentagram-case-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 48px;
}

.pentagram-case-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 56px;
  gap: 40px;
}

.pentagram-case-text {
  max-width: 520px;
}

.pentagram-case-title {
  font-size: clamp(28px, 3.5vw, 38px);
  font-weight: 600;
  color: #1d1d1f;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0 0 12px 0;
}

.pentagram-case-description {
  font-size: 14px;
  color: #86868b;
  line-height: 1.75;
  margin: 0;
  font-weight: 400;
  letter-spacing: 0.01em;
}

.pentagram-case-count {
  font-size: 13px;
  font-weight: 500;
  color: #b0b0b4;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.pentagram-case-carousel {
  overflow: hidden;
  margin-bottom: 40px;
}

.pentagram-case-track {
  display: flex;
  gap: 16px;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.pentagram-case-slide {
  flex: 0 0 calc(33.333% - 11px);
  min-width: 300px;
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 0 0 1px rgba(0, 0, 0, 0.03);
  transition: box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1), transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.pentagram-case-image {
  width: 100%;
  aspect-ratio: 4/3;
  background-size: cover;
  background-position: center;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.pentagram-case-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 20px;
  background: linear-gradient(0deg, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0) 50%);
  opacity: 0;
  transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.pentagram-case-tag {
  font-size: 13px;
  font-weight: 500;
  color: #fff;
  letter-spacing: 0.02em;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transform: translateY(6px);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.pentagram-case-slide:hover {
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.03);
  transform: translateY(-6px);
}

.pentagram-case-slide:hover .pentagram-case-image {
  transform: scale(1.06);
}

.pentagram-case-slide:hover .pentagram-case-overlay {
  opacity: 1;
}

.pentagram-case-slide:hover .pentagram-case-tag {
  transform: translateY(0);
}

.pentagram-case-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
}

.pentagram-case-scrollbar {
  flex: 1;
  max-width: 360px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pentagram-case-scrollbar-track {
  width: 100%;
  height: 2px;
  background: #e8e8e8;
  border-radius: 100px;
  position: relative;
}

.pentagram-case-scrollbar-thumb {
  height: 2px;
  background: #1d1d1f;
  border-radius: 100px;
  width: 30%;
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.pentagram-case-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border: 1px solid #d4d4d4;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  color: #6e6e73;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.pentagram-case-more svg {
  width: 14px;
  height: 14px;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.pentagram-case-more:hover {
  background: #1d1d1f;
  color: #ffffff;
  border-color: #1d1d1f;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

.pentagram-case-more:hover svg {
  transform: translateX(3px);
}

.pentagram-case-more:active {
  transform: translateY(0);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}


/**
 * 统一按钮组件样式
 * 收敛各页面分散的按钮实现，提供一致的状态反馈
 * 
 * 设计原则：
 * - 使用 CSS 变量，与现有设计系统对齐
 * - 所有状态必须有明确的视觉反馈
 * - 支持主按钮、次要按钮、幽灵按钮、边框按钮四种变体
 * - 支持标准尺寸和大尺寸
 */

/* ==================== 基础按钮 ==================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
  padding: 12px 24px;
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--font-medium);
  line-height: var(--leading-snug);
  border-radius: var(--radius-lg);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all var(--duration-200) var(--ease-out);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  user-select: none;
}

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

/* ==================== 尺寸变体 ==================== */
.btn--sm {
  padding: 8px 16px;
  font-size: var(--text-sm);
  border-radius: var(--radius-md);
}

.btn--lg {
  padding: 16px 32px;
  font-size: var(--text-lg);
  border-radius: var(--radius-xl);
}

.btn--icon-only {
  padding: 10px;
  aspect-ratio: 1;
}

/* ==================== 主按钮 ==================== */
.btn--primary {
  background: var(--primary-600);
  color: white;
  border-color: var(--primary-600);
  box-shadow: var(--shadow-md), var(--shadow-primary);
}

.btn--primary:hover:not(:disabled) {
  background: var(--primary-500);
  border-color: var(--primary-500);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg), var(--shadow-primary);
}

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

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

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

.btn--secondary:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: var(--shadow-xs);
}

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

.btn--ghost:hover:not(:disabled) {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.btn--ghost:active:not(:disabled) {
  background: var(--bg-active);
}

/* ==================== 边框按钮 ==================== */
.btn--outline {
  background: transparent;
  color: var(--primary-700);
  border-color: var(--primary-300);
}

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

.btn--outline:active:not(:disabled) {
  background: var(--primary-100);
}

/* ==================== 危险按钮 ==================== */
.btn--danger {
  background: var(--danger-color);
  color: white;
  border-color: var(--danger-color);
  box-shadow: var(--shadow-md);
}

.btn--danger:hover:not(:disabled) {
  background: #dc2626;
  border-color: #dc2626;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

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

/* ==================== Disabled 状态 ==================== */
.btn:disabled,
.btn.is-disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
  pointer-events: none;
}

/* 更明显的 disabled 反馈 */
.btn--primary:disabled,
.btn--primary.is-disabled {
  background: var(--gray-300);
  border-color: var(--gray-300);
  color: var(--gray-500);
}

.btn--secondary:disabled,
.btn--secondary.is-disabled {
  background: var(--gray-100);
  border-color: var(--gray-200);
  color: var(--gray-400);
}

.btn--outline:disabled,
.btn--outline.is-disabled {
  border-color: var(--gray-200);
  color: var(--gray-400);
}

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

.btn.is-loading::after {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: var(--radius-full);
  animation: btnSpin 0.8s linear infinite;
}

.btn--primary.is-loading::after,
.btn--danger.is-loading::after {
  border-color: rgba(255, 255, 255, 0.3);
  border-right-color: white;
}

.btn--secondary.is-loading::after,
.btn--ghost.is-loading::after,
.btn--outline.is-loading::after {
  border-color: var(--gray-300);
  border-right-color: var(--primary-500);
}

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

/* ==================== 成功状态 ==================== */
.btn.is-success {
  pointer-events: none;
}

.btn.is-success::after {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: contain;
}

/* ==================== 按钮组 ==================== */
.btn-group {
  display: flex;
  gap: var(--spacing-md);
  flex-wrap: wrap;
  align-items: center;
}

.btn-group--center {
  justify-content: center;
}

.btn-group--right {
  justify-content: flex-end;
}

.btn-group--vertical {
  flex-direction: column;
  align-items: stretch;
}

/* ==================== 全宽按钮 ==================== */
.btn--block {
  width: 100%;
}

/* ==================== 响应式 ==================== */
@media (max-width: 640px) {
  .btn {
    padding: 10px 20px;
    font-size: var(--text-sm);
  }

  .btn--lg {
    padding: 14px 28px;
    font-size: var(--text-base);
  }

  .btn-group {
    gap: var(--spacing-sm);
  }
}

/* ==================== 减少动画偏好 ==================== */
@media (prefers-reduced-motion: reduce) {
  .btn,
  .btn::after {
    transition: none;
    animation: none;
  }
}

/* ==================== 暗黑模式 ==================== */
[data-theme='dark'] .btn--secondary {
  background: var(--gray-800);
  color: var(--gray-100);
  border-color: var(--gray-700);
}

[data-theme='dark'] .btn--secondary:hover:not(:disabled) {
  background: var(--gray-700);
  border-color: var(--gray-600);
}

[data-theme='dark'] .btn--ghost {
  color: var(--gray-300);
}

[data-theme='dark'] .btn--ghost:hover:not(:disabled) {
  background: var(--gray-800);
  color: var(--gray-100);
}

[data-theme='dark'] .btn--outline {
  color: var(--primary-400);
  border-color: var(--primary-700);
}

[data-theme='dark'] .btn--outline:hover:not(:disabled) {
  background: var(--primary-900);
  border-color: var(--primary-500);
}

[data-theme='dark'] .btn--primary:disabled,
[data-theme='dark'] .btn--secondary:disabled {
  background: var(--gray-800);
  border-color: var(--gray-700);
  color: var(--gray-600);
}


/**
 * 统一卡片组件样式
 * 收敛各页面分散的卡片实现，提供一致的视觉层级
 * 
 * 设计原则：
 * - 使用 CSS 变量，与现有设计系统对齐
 * - 三种层级：普通 / 强调 / 选中
 * - 统一的 hover 和选中反馈
 * - 支持图片、图标、内容等多种布局
 */

/* ==================== 基础卡片 ==================== */
.card {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  border: 1px solid var(--gray-100);
  box-shadow: var(--shadow-sm);
  transition: all var(--duration-300) var(--ease-out);
  overflow: hidden;
  position: relative;
}

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

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

/* ==================== 卡片层级变体 ==================== */

/* --- 普通卡片 --- */
.card--default {
  border-color: var(--gray-100);
}

.card--default:hover {
  border-color: var(--gray-200);
}

/* --- 强调卡片（用于推荐/精选） --- */
.card--featured {
  border-color: #e0e0e0;
  box-shadow: var(--shadow-md);
}

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

/* --- 选中卡片 --- */
.card--selected {
  border-color: #1d1d1f;
  box-shadow:
    0 0 0 2px rgba(0, 0, 0, 0.08),
    var(--shadow-md);
}

.card--selected:hover {
  border-color: #000000;
  box-shadow:
    0 0 0 2px rgba(0, 0, 0, 0.12),
    var(--shadow-lg);
}

/* --- 禁用卡片 --- */
.card--disabled {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
}

.card--disabled:hover {
  transform: none;
  box-shadow: var(--shadow-sm);
}

/* ==================== 卡片内容区域 ==================== */

.card__image {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.card__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-lg);
  background: #f5f5f7;
  color: #1d1d1f;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.card__body {
  padding: var(--spacing-lg);
}

.card__header {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-sm);
}

.card__title {
  font-size: var(--text-lg);
  font-weight: var(--font-semibold);
  color: var(--text-primary);
  margin: 0;
  line-height: var(--leading-snug);
}

.card__subtitle {
  font-size: var(--text-sm);
  color: var(--text-tertiary);
  margin: var(--spacing-xs) 0 0 0;
}

.card__text {
  font-size: var(--text-base);
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
  margin: 0;
}

.card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--spacing-md) var(--spacing-lg);
  border-top: 1px solid var(--gray-100);
  background: var(--gray-50);
}

.card__meta {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.card__badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: var(--font-medium);
}

.card__badge--primary {
  background: #f5f5f7;
  color: #1d1d1f;
}

.card__badge--success {
  background: var(--success-100);
  color: var(--success-700);
}

.card__badge--warning {
  background: var(--warm-100);
  color: var(--warm-700);
}

/* ==================== 卡片布局变体 ==================== */

/* --- 横向卡片 --- */
.card--horizontal {
  display: flex;
  flex-direction: row;
}

.card--horizontal .card__image {
  width: 40%;
  aspect-ratio: auto;
  border-radius: var(--radius-xl) 0 0 var(--radius-xl);
}

.card--horizontal .card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* --- 紧凑卡片 --- */
.card--compact {
  border-radius: var(--radius-lg);
}

.card--compact .card__body {
  padding: var(--spacing-md);
}

.card--compact .card__title {
  font-size: var(--text-base);
}

/* --- 可点击卡片 --- */
.card--clickable {
  cursor: pointer;
}

.card--clickable::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.06) 0%, transparent 100%);
  transition: opacity var(--duration-300) var(--ease-out);
  pointer-events: none;
}

.card--clickable:hover::after {
  opacity: 0.03;
}

/* ==================== 卡片组 ==================== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--spacing-lg);
}

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

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

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

/* ==================== 响应式 ==================== */
@media (max-width: 1024px) {
  .card-grid--4 {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .card-grid--3,
  .card-grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .card--horizontal {
    flex-direction: column;
  }

  .card--horizontal .card__image {
    width: 100%;
    aspect-ratio: 16 / 10;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  }
}

@media (max-width: 480px) {
  .card-grid,
  .card-grid--2,
  .card-grid--3,
  .card-grid--4 {
    grid-template-columns: 1fr;
  }

  .card__body {
    padding: var(--spacing-md);
  }
}

/* ==================== 暗色模式 ==================== */
[data-theme='dark'] .card {
  background: var(--gray-800);
  border-color: var(--gray-700);
}

[data-theme='dark'] .card:hover {
  border-color: var(--gray-600);
}

[data-theme='dark'] .card--featured {
  border-color: #3a3a3c;
}

[data-theme='dark'] .card--selected {
  border-color: #e4e4e7;
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, 0.08),
    var(--shadow-md);
}

[data-theme='dark'] .card__footer {
  border-top-color: var(--gray-700);
  background: var(--gray-900);
}

[data-theme='dark'] .card__icon {
  background: #2c2c2e;
  color: #e4e4e7;
}

[data-theme='dark'] .card__title {
  color: var(--gray-100);
}

[data-theme='dark'] .card__text {
  color: var(--gray-300);
}

/* ==================== 减少动画偏好 ==================== */
@media (prefers-reduced-motion: reduce) {
  .card,
  .card:hover,
  .card:active {
    transition: none;
    transform: none;
  }
}


.step-indicator {
  width: 100%;
  padding: 24px 0;
}

.step-indicator__track {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  max-width: 640px;
  margin: 0 auto;
}

.step-indicator__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  opacity: 0.3;
  transition: opacity 0.3s ease;
}

.step-indicator__item.active,
.step-indicator__item.completed {
  opacity: 1;
}

.step-indicator__num {
  font-family:
    'Inter',
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: #1d1d1f;
  letter-spacing: 0.08em;
  min-width: 24px;
  text-align: center;
  transition: color 0.3s ease;
}

.step-indicator__num svg {
  width: 14px;
  height: 14px;
}

.step-indicator__label {
  font-family:
    'Inter',
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: #86868b;
  letter-spacing: 0.02em;
  white-space: nowrap;
  transition: color 0.3s ease;
}

.step-indicator__connector {
  width: 40px;
  height: 1px;
  background: #d2d2d7;
  margin-top: 9px;
  flex-shrink: 0;
  transition: background 0.3s ease;
}

.step-indicator__item.completed .step-indicator__num {
  color: #1d1d1f;
}

.step-indicator__item.completed .step-indicator__label {
  color: #1d1d1f;
}

.step-indicator__connector.completed {
  background: #1d1d1f;
}

.step-indicator__item.active .step-indicator__num {
  color: #1d1d1f;
}

.step-indicator__item.active .step-indicator__label {
  color: #1d1d1f;
  font-weight: 600;
}

.step-indicator__item.pending .step-indicator__num {
  color: #86868b;
}

.step-indicator__item.pending .step-indicator__label {
  color: #86868b;
}

.step-indicator--compact .step-indicator__track {
  max-width: 100%;
  padding: 0 16px;
}

.step-indicator--compact .step-indicator__connector {
  width: 24px;
}

.step-indicator--compact .step-indicator__label {
  font-size: 10px;
}

@media (max-width: 640px) {
  .step-indicator__track {
    max-width: 100%;
    padding: 0 16px;
  }

  .step-indicator__connector {
    width: 24px;
  }

  .step-indicator__label {
    display: none;
  }
}

[data-theme='dark'] .step-indicator__item.completed .step-indicator__num {
  color: #f5f5f7;
}

[data-theme='dark'] .step-indicator__item.completed .step-indicator__label {
  color: #f5f5f7;
}

[data-theme='dark'] .step-indicator__connector.completed {
  background: #f5f5f7;
}

[data-theme='dark'] .step-indicator__item.active .step-indicator__num {
  color: #f5f5f7;
}

[data-theme='dark'] .step-indicator__item.active .step-indicator__label {
  color: #f5f5f7;
}

[data-theme='dark'] .step-indicator__item.pending .step-indicator__num {
  color: #6e6e73;
}

[data-theme='dark'] .step-indicator__item.pending .step-indicator__label {
  color: #6e6e73;
}

[data-theme='dark'] .step-indicator__connector:not(.completed) {
  background: #424245;
}


/**
 * 空状态组件样式
 * 与主设计系统变量完全对齐
 */

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-3xl) var(--spacing-lg);
  text-align: center;
  min-height: 400px;
}

.empty-state__icon {
  color: var(--gray-300);
  margin-bottom: var(--spacing-lg);
  transition: color var(--duration-300) var(--ease-out);
}

.empty-state:hover .empty-state__icon {
  color: var(--gray-400);
}

.empty-state__title {
  font-size: var(--text-xl);
  font-weight: var(--font-semibold);
  color: var(--text-primary);
  margin: 0 0 var(--spacing-sm) 0;
  line-height: var(--leading-snug);
}

.empty-state__description {
  font-size: var(--text-base);
  color: var(--text-tertiary);
  margin: 0 0 var(--spacing-xl) 0;
  line-height: var(--leading-relaxed);
  max-width: 360px;
}

.empty-state__action {
  margin-top: var(--spacing-md);
}

/* 紧凑模式 */
.empty-state--compact {
  min-height: auto;
  padding: var(--spacing-xl) var(--spacing-lg);
}

.empty-state--compact .empty-state__icon {
  transform: scale(0.75);
  margin-bottom: var(--spacing-md);
}

.empty-state--compact .empty-state__title {
  font-size: var(--text-lg);
}

.empty-state--compact .empty-state__description {
  font-size: var(--text-sm);
  margin-bottom: var(--spacing-lg);
}

/* 内联模式（用于卡片内部） */
.empty-state--inline {
  min-height: auto;
  padding: var(--spacing-xl);
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  border: 1px dashed var(--gray-200);
}

/* 暗色模式 */
[data-theme='dark'] .empty-state__icon {
  color: var(--gray-700);
}

[data-theme='dark'] .empty-state:hover .empty-state__icon {
  color: var(--gray-600);
}

[data-theme='dark'] .empty-state--inline {
  background: var(--gray-800);
  border-color: var(--gray-700);
}

/* 动画 */
@keyframes emptyStateFadeIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.empty-state {
  animation: emptyStateFadeIn var(--duration-500) var(--ease-out);
}

/* 减少动画偏好 */
@media (prefers-reduced-motion: reduce) {
  .empty-state {
    animation: none;
  }
}


/**
 * 移动端导航优化样式
 * 提升移动端导航和主流程的可用性
 */

/* ==================== 底部固定导航栏 ==================== */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--bg-card);
  border-top: 1px solid var(--gray-200);
  padding-bottom: env(safe-area-inset-bottom);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.mobile-bottom-nav__list {
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 8px 0;
  margin: 0;
  list-style: none;
}

.mobile-bottom-nav__item {
  flex: 1;
  text-align: center;
}

.mobile-bottom-nav__link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 4px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 10px;
  font-weight: var(--font-medium);
  transition: color var(--duration-200) var(--ease-out);
}

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

.mobile-bottom-nav__link.active {
  color: var(--primary-600);
}

.mobile-bottom-nav__icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ==================== 移动端步骤指示器优化 ==================== */
@media (max-width: 640px) {
  .step-indicator__track {
    padding: 0 var(--spacing-sm);
  }

  .step-indicator__connector {
    flex: 1;
    min-width: 12px;
    max-width: 32px;
  }

  .step-indicator__num {
    width: 28px;
    height: 28px;
    font-size: 10px;
  }

  .step-indicator__label {
    font-size: 9px;
    max-width: 60px;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

/* ==================== 移动端按钮优化 ==================== */
@media (max-width: 640px) {
  .btn {
    min-height: 44px;
    padding: 12px 20px;
  }

  .btn--lg {
    min-height: 52px;
    padding: 16px 24px;
    font-size: var(--text-lg);
  }

  .btn-group {
    flex-direction: column;
    width: 100%;
  }

  .btn-group .btn {
    width: 100%;
  }
}

/* ==================== 移动端卡片优化 ==================== */
@media (max-width: 640px) {
  .card-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
  }

  .card__body {
    padding: var(--spacing-md);
  }

  .card__title {
    font-size: var(--text-base);
  }
}

/* ==================== 主流程移动端优化 ==================== */
@media (max-width: 640px) {
  /* 场景选择页 */
  .scene-grid {
    grid-template-columns: 1fr !important;
  }

  .scene-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: var(--spacing-md);
  }

  .scene-card-image {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
  }

  .scene-card-image img {
    border-radius: var(--radius-lg);
  }

  .scene-card-content {
    flex: 1;
    padding: 0;
  }

  /* 预算选择页 */
  .budget-cards {
    flex-direction: column;
  }

  .budget-card {
    width: 100%;
  }

  /* 结果页 */
  .result-overview-grid {
    grid-template-columns: 1fr 1fr !important;
  }
}

/* ==================== 触摸反馈优化 ==================== */
@media (hover: none) {
  .card:active {
    transform: scale(0.98);
    transition: transform var(--duration-100) var(--ease-out);
  }

  .btn:active {
    transform: scale(0.96);
    transition: transform var(--duration-100) var(--ease-out);
  }

  .card:hover {
    transform: none;
  }
}

/* ==================== 安全区域适配 ==================== */
@supports (padding-top: env(safe-area-inset-top)) {
  .mobile-bottom-nav {
    padding-bottom: max(8px, env(safe-area-inset-bottom));
  }
}

/* ==================== 暗色模式 ==================== */
[data-theme='dark'] .mobile-bottom-nav {
  background: rgba(24, 24, 27, 0.95);
  border-top-color: var(--gray-800);
}

/* ==================== 显示/隐藏逻辑 ==================== */
@media (min-width: 769px) {
  .mobile-bottom-nav {
    display: none !important;
  }
}

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

  /* 为底部导航留出空间 */
  body {
    padding-bottom: 64px;
  }
}


/**
 * 模态框组件样式
 * 提供统一的弹窗视觉和交互反馈
 *
 * 设计原则：
 * - 使用 CSS 变量，与现有设计系统对齐
 * - 支持多种尺寸和变体
 * - 平滑的进入/退出动画
 * - 支持减少动画偏好
 * - 支持暗色模式
 */

/* ==================== 基础结构 ==================== */
.modal {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal, 1000);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-lg);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity var(--duration-200) var(--ease-out),
    visibility var(--duration-200) var(--ease-out);
}

.modal.is-visible {
  opacity: 1;
  visibility: visible;
}

/* 锁定 body 滚动 */
body.modal-open {
  overflow: hidden;
  padding-right: var(--scrollbar-width, 0px);
}

/* ==================== 背景遮罩 ==================== */
.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  transition: opacity var(--duration-200) var(--ease-out);
}

.modal.is-visible .modal__backdrop {
  opacity: 1;
}

/* ==================== 容器 ==================== */
.modal__container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-height: calc(100vh - var(--spacing-xl) * 2);
  display: flex;
  flex-direction: column;
  transform: scale(0.95) translateY(10px);
  transition: transform var(--duration-200) var(--ease-out);
}

.modal.is-visible .modal__container {
  transform: scale(1) translateY(0);
}

/* ==================== 内容区域 ==================== */
.modal__content {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

/* ==================== 关闭按钮 ==================== */
.modal__close {
  position: absolute;
  top: var(--spacing-md);
  right: var(--spacing-md);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--duration-150) var(--ease-out);
  z-index: 2;
}

.modal__close:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.modal__close:active {
  background: var(--bg-active);
}

/* ==================== 图标 ==================== */
.modal__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: var(--spacing-xl) auto var(--spacing-md);
  flex-shrink: 0;
}

.modal__icon--confirm,
.modal__icon--info {
  background: var(--primary-100);
  color: var(--primary-600);
}

.modal__icon--warning {
  background: var(--warm-100);
  color: var(--warm-600);
}

.modal__icon--danger {
  background: #fee2e2;
  color: var(--danger-color);
}

/* ==================== 标题 ==================== */
.modal__title {
  font-size: var(--text-xl);
  font-weight: var(--font-semibold);
  color: var(--text-primary);
  text-align: center;
  margin: 0 var(--spacing-xl);
  line-height: var(--leading-snug);
}

.modal__icon + .modal__title {
  margin-top: 0;
}

/* ==================== 正文 ==================== */
.modal__body {
  padding: var(--spacing-lg) var(--spacing-xl);
  overflow-y: auto;
  flex: 1;
}

.modal__text {
  font-size: var(--text-base);
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
  text-align: center;
  margin: 0;
}

.modal__title + .modal__body .modal__text {
  margin-top: var(--spacing-sm);
}

/* ==================== 底部操作区 ==================== */
.modal__footer {
  display: flex;
  gap: var(--spacing-md);
  padding: var(--spacing-md) var(--spacing-xl) var(--spacing-xl);
  justify-content: center;
  flex-shrink: 0;
}

.modal__footer .btn {
  min-width: 100px;
}

/* ==================== 尺寸变体 ==================== */
.modal--sm .modal__container {
  max-width: 360px;
}

.modal--md .modal__container {
  max-width: 480px;
}

.modal--lg .modal__container {
  max-width: 640px;
}

.modal--xl .modal__container {
  max-width: 800px;
}

.modal--full .modal__container {
  max-width: calc(100vw - var(--spacing-xl) * 2);
  max-height: calc(100vh - var(--spacing-xl) * 2);
}

/* ==================== 变体样式 ==================== */
.modal--danger .modal__footer .btn--primary {
  background: var(--danger-color);
  border-color: var(--danger-color);
}

.modal--danger .modal__footer .btn--primary:hover:not(:disabled) {
  background: #dc2626;
  border-color: #dc2626;
}

/* ==================== 响应式 ==================== */
@media (max-width: 640px) {
  .modal {
    padding: var(--spacing-md);
    align-items: flex-end;
  }

  .modal__container {
    max-height: calc(100vh - var(--spacing-md) * 2);
  }

  .modal__content {
    border-radius: var(--radius-lg);
  }

  .modal__body {
    padding: var(--spacing-md) var(--spacing-lg);
  }

  .modal__footer {
    padding: var(--spacing-md) var(--spacing-lg) var(--spacing-lg);
    flex-direction: column-reverse;
  }

  .modal__footer .btn {
    width: 100%;
  }

  .modal--lg .modal__container,
  .modal--xl .modal__container {
    max-width: 100%;
  }
}

/* ==================== 暗色模式 ==================== */
[data-theme='dark'] .modal__backdrop {
  background: rgba(0, 0, 0, 0.7);
}

[data-theme='dark'] .modal__content {
  background: var(--gray-800);
  box-shadow: var(--shadow-xl);
}

[data-theme='dark'] .modal__title {
  color: var(--gray-100);
}

[data-theme='dark'] .modal__text {
  color: var(--gray-300);
}

[data-theme='dark'] .modal__close {
  color: var(--gray-400);
}

[data-theme='dark'] .modal__close:hover {
  background: var(--gray-700);
  color: var(--gray-100);
}

[data-theme='dark'] .modal__icon--confirm,
[data-theme='dark'] .modal__icon--info {
  background: var(--primary-900);
  color: var(--primary-400);
}

[data-theme='dark'] .modal__icon--warning {
  background: rgba(245, 158, 11, 0.2);
  color: var(--warm-400);
}

[data-theme='dark'] .modal__icon--danger {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
}

/* ==================== 减少动画偏好 ==================== */
@media (prefers-reduced-motion: reduce) {
  .modal,
  .modal__backdrop,
  .modal__container {
    transition: none;
  }

  .modal__container {
    transform: none;
  }
}


/**
 * 轻提示组件样式（Toast）
 * 提供非阻塞式消息反馈
 *
 * 设计原则：
 * - 使用 CSS 变量，与现有设计系统对齐
 * - 堆叠展示，新消息在上
 * - 平滑的进入/退出动画
 * - 支持减少动画偏好
 * - 支持暗色模式
 */

/* ==================== 容器 ==================== */
.toast-container {
  position: fixed;
  top: var(--spacing-lg);
  right: var(--spacing-lg);
  z-index: var(--z-toast, 1100);
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
  max-width: 400px;
  width: calc(100% - var(--spacing-lg) * 2);
  pointer-events: none;
}

.toast-container > * {
  pointer-events: auto;
}

/* ==================== 基础 Toast ==================== */
.toast {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-md) var(--spacing-lg);
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-100);
  font-size: var(--text-sm);
  line-height: var(--leading-snug);
  color: var(--text-primary);
  transform: translateX(120%);
  opacity: 0;
  transition:
    transform var(--duration-300) var(--ease-out),
    opacity var(--duration-300) var(--ease-out);
  position: relative;
  overflow: hidden;
}

.toast.is-visible {
  transform: translateX(0);
  opacity: 1;
}

.toast.is-leaving {
  transform: translateX(120%);
  opacity: 0;
}

/* ==================== 图标 ==================== */
.toast__icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ==================== 消息文本 ==================== */
.toast__message {
  flex: 1;
  min-width: 0;
  word-wrap: break-word;
}

/* ==================== 关闭按钮 ==================== */
.toast__close {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  color: var(--text-muted);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--duration-150) var(--ease-out);
  margin-left: var(--spacing-xs);
}

.toast__close:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

/* ==================== 类型变体 ==================== */

/* --- Success --- */
.toast--success {
  border-color: var(--success-200);
}

.toast--success .toast__icon {
  color: var(--success-500);
}

/* --- Info --- */
.toast--info {
  border-color: var(--primary-200);
}

.toast--info .toast__icon {
  color: var(--primary-500);
}

/* --- Warning --- */
.toast--warning {
  border-color: var(--warm-200);
}

.toast--warning .toast__icon {
  color: var(--warm-500);
}

/* --- Error --- */
.toast--error {
  border-color: #fecaca;
}

.toast--error .toast__icon {
  color: var(--danger-color);
}

/* ==================== 进度条（可选） ==================== */
.toast::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: currentColor;
  opacity: 0.2;
  width: 100%;
  transform-origin: left;
}

/* ==================== 响应式 ==================== */
@media (max-width: 640px) {
  .toast-container {
    top: auto;
    bottom: var(--spacing-lg);
    right: var(--spacing-md);
    left: var(--spacing-md);
    width: auto;
    max-width: none;
  }

  .toast {
    transform: translateY(120%);
  }

  .toast.is-visible {
    transform: translateY(0);
  }

  .toast.is-leaving {
    transform: translateY(120%);
  }
}

/* ==================== 暗色模式 ==================== */
[data-theme='dark'] .toast {
  background: var(--gray-800);
  border-color: var(--gray-700);
  color: var(--gray-100);
  box-shadow: var(--shadow-xl);
}

[data-theme='dark'] .toast--success {
  border-color: var(--success-800);
}

[data-theme='dark'] .toast--info {
  border-color: var(--primary-800);
}

[data-theme='dark'] .toast--warning {
  border-color: rgba(245, 158, 11, 0.3);
}

[data-theme='dark'] .toast--error {
  border-color: rgba(239, 68, 68, 0.3);
}

[data-theme='dark'] .toast__close {
  color: var(--gray-400);
}

[data-theme='dark'] .toast__close:hover {
  background: var(--gray-700);
  color: var(--gray-100);
}

/* ==================== 减少动画偏好 ==================== */
@media (prefers-reduced-motion: reduce) {
  .toast,
  .toast.is-visible,
  .toast.is-leaving {
    transition: none;
    transform: none;
    opacity: 1;
  }
}


/**
 * 图标组件样式
 * 提供统一的图标尺寸和动画控制
 *
 * 设计原则：
 * - 使用 CSS 变量，与现有设计系统对齐
 * - 支持旋转动画（用于加载状态）
 * - 支持减少动画偏好
 */

/* ==================== 基础图标 ==================== */
.icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  vertical-align: middle;
  transition:
    transform var(--duration-150) var(--ease-out),
    color var(--duration-150) var(--ease-out);
}

.icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* ==================== 旋转动画 ==================== */
.icon--spin {
  animation: iconSpin 1s linear infinite;
}

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

/* ==================== 尺寸工具类 ==================== */
.icon--xs {
  width: 12px;
  height: 12px;
}

.icon--sm {
  width: 16px;
  height: 16px;
}

.icon--md {
  width: 20px;
  height: 20px;
}

.icon--lg {
  width: 24px;
  height: 24px;
}

.icon--xl {
  width: 32px;
  height: 32px;
}

.icon--2xl {
  width: 48px;
  height: 48px;
}

/* ==================== 颜色工具类 ==================== */
.icon--primary {
  color: var(--primary-500);
}

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

.icon--muted {
  color: var(--text-muted);
}

.icon--success {
  color: var(--success-500);
}

.icon--warning {
  color: var(--warm-500);
}

.icon--danger {
  color: var(--danger-color);
}

/* ==================== 按钮内的图标 ==================== */
.btn .icon {
  margin: 0;
}

.btn .icon + span,
.btn span + .icon {
  margin-left: var(--spacing-xs);
}

/* ==================== 减少动画偏好 ==================== */
@media (prefers-reduced-motion: reduce) {
  .icon {
    transition: none;
  }

  .icon--spin {
    animation: none;
  }
}


/**
 * 轮播组件样式
 * 提供统一的图片/内容轮播视觉
 *
 * 设计原则：
 * - 使用 CSS 变量，与现有设计系统对齐
 * - 平滑的切换动画
 * - 支持触摸滑动
 * - 支持减少动画偏好
 * - 支持暗色模式
 */

/* ==================== 基础结构 ==================== */
.carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: var(--radius-xl);
}

.carousel__track {
  display: flex;
  width: 100%;
  height: 100%;
  position: relative;
}

/* ==================== 轮播项 ==================== */
.carousel__slide {
  flex: 0 0 100%;
  width: 100%;
  position: absolute;
  inset: 0;
  opacity: 0;
  transition:
    opacity var(--duration-400) var(--ease-out),
    transform var(--duration-400) var(--ease-out);
  pointer-events: none;
}

.carousel__slide.is-active {
  opacity: 1;
  position: relative;
  pointer-events: auto;
  z-index: 1;
}

/* ==================== 图片 ==================== */
.carousel__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ==================== 内容 ==================== */
.carousel__content {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-xl);
  background: var(--bg-card);
}

/* ==================== 导航箭头 ==================== */
.carousel__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.9);
  color: var(--text-primary);
  cursor: pointer;
  z-index: 2;
  transition: all var(--duration-150) var(--ease-out);
  box-shadow: var(--shadow-md);
  opacity: 0;
}

.carousel:hover .carousel__arrow {
  opacity: 1;
}

.carousel__arrow:hover {
  background: white;
  transform: translateY(-50%) scale(1.1);
}

.carousel__arrow:active {
  transform: translateY(-50%) scale(0.95);
}

.carousel__arrow--prev {
  left: var(--spacing-md);
}

.carousel__arrow--next {
  right: var(--spacing-md);
}

/* ==================== 指示点 ==================== */
.carousel__dots {
  position: absolute;
  bottom: var(--spacing-md);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: var(--spacing-xs);
  z-index: 2;
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: var(--radius-full);
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(4px);
}

.carousel__dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  border: none;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all var(--duration-200) var(--ease-out);
  padding: 0;
}

.carousel__dot:hover {
  background: rgba(255, 255, 255, 0.8);
}

.carousel__dot.is-active {
  width: 24px;
  background: white;
  border-radius: var(--radius-full);
}

/* ==================== 单张模式 ==================== */
.carousel--single .carousel__arrow,
.carousel--single .carousel__dots {
  display: none;
}

/* ==================== 响应式 ==================== */
@media (max-width: 768px) {
  .carousel {
    border-radius: var(--radius-lg);
  }

  .carousel__arrow {
    width: 32px;
    height: 32px;
    opacity: 1;
  }

  .carousel__arrow--prev {
    left: var(--spacing-sm);
  }

  .carousel__arrow--next {
    right: var(--spacing-sm);
  }

  .carousel__dots {
    bottom: var(--spacing-sm);
  }
}

/* ==================== 暗色模式 ==================== */
[data-theme='dark'] .carousel__arrow {
  background: rgba(30, 30, 30, 0.9);
  color: var(--gray-100);
}

[data-theme='dark'] .carousel__arrow:hover {
  background: rgba(50, 50, 50, 0.95);
}

[data-theme='dark'] .carousel__dots {
  background: rgba(0, 0, 0, 0.5);
}

[data-theme='dark'] .carousel__content {
  background: var(--gray-800);
}

/* ==================== 减少动画偏好 ==================== */
@media (prefers-reduced-motion: reduce) {
  .carousel__slide {
    transition: none;
  }

  .carousel__arrow,
  .carousel__dot {
    transition: none;
  }
}


/**
 * 暗黑模式样式系统
 * 借鉴Linear的现代极简暗黑风格设计
 */

/* ==================== 暗黑模式CSS变量 ==================== */
:root {
  --transition-theme: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 暗黑模式变量 */
[data-theme="dark"] {
  /* 背景色系统 - 深黑色系统*/
  --bg-primary: #000000;
  --bg-secondary: #0a0a0b;
  --bg-tertiary: #111113;
  --bg-card: #18181b;
  --bg-hover: #1f1f23;
  --bg-active: #27272a;
  
  /* 文本色系统 - 柔和灰色，非亮眼 */
  --text-primary: #a1a1aa;
  --text-secondary: #71717a;
  --text-tertiary: #52525b;
  --text-muted: #3f3f46;
  --text-inverse: #0a0a0a;
  
  /* 主色调系统 - 中性灰 */
  --primary-50: #09090b;
  --primary-100: #18181b;
  --primary-200: #27272a;
  --primary-300: #3f3f46;
  --primary-400: #52525b;
  --primary-500: #71717a;
  --primary-600: #a1a1aa;
  --primary-700: #d4d4d8;
  --primary-800: #e4e4e7;
  --primary-900: #f4f4f5;
  
  /* 辅助色系统*/
  --success-50: #052e16;
  --success-100: #064e3b;
  --success-200: #065f46;
  --success-300: #047857;
  --success-400: #059669;
  --success-500: #10b981;
  --success-600: #34d399;
  --success-700: #6ee7b7;
  
  /* 温暖色系 */
  --warm-50: #431407;
  --warm-100: #7c2d12;
  --warm-200: #9a3412;
  --warm-300: #c2410c;
  --warm-400: #ea580c;
  --warm-500: #f97316;
  --warm-600: #fb923c;
  --warm-700: #fdba74;
  
  /* 粉色系统 */
  --pink-50: #500724;
  --pink-100: #831843;
  --pink-200: #9d174d;
  --pink-300: #be185d;
  --pink-400: #db2777;
  --pink-500: #ec4899;
  
  /* 阳光黄色系统 */
  --sun-50: #422006;
  --sun-100: #713f12;
  --sun-200: #854d0e;
  --sun-300: #a16207;
  --sun-400: #ca8a04;
  --sun-500: #eab308;
  
  /* 紫色系统 */
  --purple-50: #3b0764;
  --purple-100: #581c87;
  --purple-200: #7e22ce;
  --purple-300: #9333ea;
  --purple-400: #a855f7;
  --purple-500: #c084fc;
  
  /* 高级灰系统 - 全部深灰色*/
  --gray-50: #0a0a0b;
  --gray-100: #111113;
  --gray-200: #18181b;
  --gray-300: #27272a;
  --gray-400: #3f3f46;
  --gray-500: #52525b;
  --gray-600: #71717a;
  --gray-700: #86868b;
  --gray-800: #a1a1aa;
  --gray-900: #d4d4d8;
  
  /* 边框系统 - 微妙的深灰色边框 */
  --border-light: rgba(255, 255, 255, 0.08);
  --border-medium: rgba(255, 255, 255, 0.12);
  --border-dark: rgba(255, 255, 255, 0.18);
  
  /* 阴影系统 - 调整为暗黑模式*/
  --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.4), 0 1px 2px -1px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -2px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -4px rgba(0, 0, 0, 0.3);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.4), 0 8px 10px -6px rgba(0, 0, 0, 0.3);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  
  /* 彩色阴影 */
  --shadow-primary: 0 10px 25px -5px rgba(161, 161, 170, 0.15);
  --shadow-success: 0 10px 25px -5px rgba(16, 185, 129, 0.2);
  --shadow-warm: 0 10px 25px -5px rgba(249, 115, 22, 0.2);
  
  /* 兼容性变量*/
  --primary-color: var(--primary-600);
  --primary-dark: var(--primary-500);
  --secondary-color: var(--success-400);
  --success-color: var(--success-400);
  --danger-color: #f87171;
  --warning-color: #fbbf24;
  --info-color: var(--primary-600);
  --light-color: var(--bg-secondary);
  --dark-color: var(--text-primary);

  /* ==================== Workspace SaaS 暗色模式 ==================== */
  --ws-border-color: rgba(255, 255, 255, 0.08);
  --ws-border-color-hover: rgba(255, 255, 255, 0.15);
  --ws-bg-page: #09090b;
  --ws-bg-card: #18181b;
  --ws-bg-hover: #27272a;
  --ws-text-primary: #fafafa;
  --ws-text-secondary: #a1a1aa;
  --ws-text-tertiary: #71717a;
  --ws-text-muted: #71717a;
  --ws-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.2), 0 1px 2px rgba(0, 0, 0, 0.1);
  --ws-shadow-md: 0 4px 6px rgba(0, 0, 0, 0.25), 0 2px 4px rgba(0, 0, 0, 0.15);
  --ws-shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.3), 0 4px 6px rgba(0, 0, 0, 0.2);

  --ws-status-success: #00DC82;
  --ws-status-success-bg: rgba(0, 220, 130, 0.1);
  --ws-status-warning: #FFAA00;
  --ws-status-warning-bg: rgba(255, 170, 0, 0.1);
  --ws-status-error: #FF4444;
  --ws-status-error-bg: rgba(255, 68, 68, 0.1);
  --ws-status-info: #0070F3;
  --ws-status-info-bg: rgba(0, 112, 243, 0.1);
  --ws-status-neutral: #a1a1aa;
  --ws-status-neutral-bg: rgba(161, 161, 170, 0.1);

  --ws-usage-bar-bg: #27272a;
  --ws-usage-bar-fill: #3b82f6;
  --ws-usage-bar-warning: #f59e0b;
  --ws-usage-bar-danger: #ef4444;
}

/* ==================== 基础样式覆盖 ==================== */

/* 关键修复：确保html元素也有黑色背景（移动端滚动时不会露出白边） */
[data-theme="dark"] html {
  background-color: #000000 !important;
  background: #000000 !important;
}

[data-theme="dark"] body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  /* 移除transition，避免移动端突然位移问题 */
  /* transition: background-color var(--transition-theme),
              color var(--transition-theme); */
  /* 确保body至少占满整个视口 */
  min-height: 100vh;
  min-height: 100dvh; /* 移动端动态视口高度*/
}

/* ==================== 导航栏暗黑模式- Linear风格 ==================== */
[data-theme="dark"] .navbar {
  background: rgba(10, 10, 12, 0.72) !important;
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
}

[data-theme="dark"] .navbar.scrolled {
  background: rgba(10, 10, 12, 0.92) !important;
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04);
}

[data-theme="dark"] .navbar-brand {
  color: rgba(255, 255, 255, 0.85) !important;
}

[data-theme="dark"] .navbar.scrolled .navbar-brand {
  color: rgba(255, 255, 255, 0.85) !important;
}

[data-theme="dark"] .brand-logo-icon {
  color: rgba(255, 255, 255, 0.75);
}

[data-theme="dark"] .navbar.scrolled .brand-logo-icon {
  color: rgba(255, 255, 255, 0.75);
}

[data-theme="dark"] .brand-logo-text {
  color: rgba(255, 255, 255, 0.85);
}

/* 导航链接 - 暗黑模式 */
[data-theme="dark"] .navbar-nav .nav-link {
  color: rgba(255, 255, 255, 0.4) !important;
  transition: color 0.22s cubic-bezier(0.25, 0.1, 0.25, 1), transform 0.22s cubic-bezier(0.25, 0.1, 0.25, 1);
}

[data-theme="dark"] .navbar.scrolled .navbar-nav .nav-link {
  color: rgba(255, 255, 255, 0.45) !important;
}

[data-theme="dark"] .navbar-nav .nav-link:hover {
  color: rgba(255, 255, 255, 0.92) !important;
  transform: translateY(-1px);
}

[data-theme="dark"] .navbar.scrolled .navbar-nav .nav-link:hover {
  color: rgba(255, 255, 255, 0.92) !important;
}

[data-theme="dark"] .navbar-nav .nav-link.active {
  color: rgba(255, 255, 255, 0.85) !important;
  font-weight: 500;
}

[data-theme="dark"] .navbar.scrolled .navbar-nav .nav-link.active {
  color: rgba(255, 255, 255, 0.85) !important;
  font-weight: 500;
}

/* 用户菜单按钮 - 暗黑模式 */
[data-theme="dark"] .theme-toggle-btn,
[data-theme="dark"] .sound-toggle-btn {
  color: rgba(255, 255, 255, 0.4);
}

[data-theme="dark"] .theme-toggle-btn:hover,
[data-theme="dark"] .sound-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.85);
}

[data-theme="dark"] .dropdown-toggle {
  color: rgba(255, 255, 255, 0.4);
}

[data-theme="dark"] .dropdown-toggle:hover {
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .dropdown-menu {
  background: rgba(18, 18, 21, 0.95);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 1px 3px rgba(0, 0, 0, 0.3),
    0 8px 24px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .dropdown-item {
  color: rgba(255, 255, 255, 0.6);
}

[data-theme="dark"] .dropdown-item:hover {
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.92);
  transform: translateX(3px);
}

[data-theme="dark"] .dropdown-item {
  color: rgba(255, 255, 255, 0.6);
  transition: background 0.2s cubic-bezier(0.25, 0.1, 0.25, 1), color 0.2s cubic-bezier(0.25, 0.1, 0.25, 1), transform 0.2s cubic-bezier(0.25, 0.1, 0.25, 1);
}

[data-theme="dark"] .dropdown-divider {
  border-color: rgba(255, 255, 255, 0.06);
}

/* 移动端导航- 暗黑模式 */
[data-theme="dark"] .navbar-toggler {
  border: none;
  padding: 6px;
  border-radius: 8px;
  background: transparent;
  color: rgba(255, 255, 255, 0.55);
}

[data-theme="dark"] .navbar-toggler svg path {
  stroke: rgba(255, 255, 255, 0.65);
}

[data-theme="dark"] .navbar-toggler:focus {
  box-shadow: none;
  background: rgba(255, 255, 255, 0.06);
}

@media (max-width: 991px) {
  /* 移动端导航栏暗黑模式 */
  [data-theme="dark"] .navbar,
  [data-theme="dark"] .navbar.scrolled,
  [data-theme="dark"] .navbar.hero-transparent {
    background: #0e0e11 !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  [data-theme="dark"] .navbar-collapse,
  [data-theme="dark"] .navbar-collapse.show,
  [data-theme="dark"] .navbar-collapse.collapsing,
  [data-theme="dark"] .navbar.hero-transparent .navbar-collapse.show,
  [data-theme="dark"] .navbar.hero-transparent .navbar-collapse.collapsing {
    background: #121215 !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    filter: none !important;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow:
      0 1px 3px rgba(0, 0, 0, 0.3),
      0 12px 32px rgba(0, 0, 0, 0.4);
  }

  /* 禁用 Hero 区域内所有 backdrop-filter，防止创建合成层影响导航弹窗渲染 */
  [data-theme="dark"] .portfolio-hero-section .hero-tag,
  [data-theme="dark"] .portfolio-hero-section .hero-buttons .btn-outline-primary,
  [data-theme="dark"] .portfolio-hero-section [style*="backdrop-filter"] {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  /* 禁用 Hero 区域内所有 mix-blend-mode，防止创建合成层 */
  [data-theme="dark"] .portfolio-hero-section .texture-overlay {
    mix-blend-mode: normal !important;
  }

  /* 禁用 Hero 区域内所有动画，防止持续触发合成层更新导致导航弹窗模糊 */
  [data-theme="dark"] .portfolio-hero-section *,
  [data-theme="dark"] .portfolio-hero-section *::before,
  [data-theme="dark"] .portfolio-hero-section *::after {
    animation-duration: 0s !important;
    animation-delay: 0s !important;
  }

  /* 强制清除 Hero 内容的 inline transform（parallax JS 设置），防止创建合成层 */
  [data-theme="dark"] .portfolio-hero-content {
    transform: none !important;
    -webkit-transform: none !important;
  }
}

/* ==================== 底部区域暗黑模式 - Pentagram简约风格==================== */
[data-theme="dark"] .footer-glass {
  background: #060608;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .footer-divider {
  background: rgba(255, 255, 255, 0.12);
}

[data-theme="dark"] .footer-logo {
  color: rgba(255, 255, 255, 0.65);
}

[data-theme="dark"] .footer-logo:hover {
  opacity: 0.8;
}

[data-theme="dark"] .footer-logo svg {
  color: rgba(255, 255, 255, 0.65);
}

[data-theme="dark"] .footer-tagline {
  color: rgba(255, 255, 255, 0.35);
}

[data-theme="dark"] .footer-description {
  color: rgba(255, 255, 255, 0.25);
}

[data-theme="dark"] .footer-links h6,
[data-theme="dark"] .footer-contact h6 {
  color: rgba(255, 255, 255, 0.55);
}

[data-theme="dark"] .footer-links a {
  color: rgba(255, 255, 255, 0.38);
}

[data-theme="dark"] .footer-links a:hover {
  color: rgba(255, 255, 255, 0.75);
}

[data-theme="dark"] .footer-contact li {
  color: rgba(255, 255, 255, 0.38);
}

[data-theme="dark"] .footer-contact svg {
  color: rgba(255, 255, 255, 0.28);
}

[data-theme="dark"] .footer-contact li:hover svg {
  color: rgba(255, 255, 255, 0.45);
}

[data-theme="dark"] .footer-copyright {
  color: rgba(255, 255, 255, 0.25);
}

[data-theme="dark"] .footer-legal a {
  color: rgba(255, 255, 255, 0.25);
}

[data-theme="dark"] .footer-legal a:hover {
  color: rgba(255, 255, 255, 0.55);
}

[data-theme="dark"] .footer-legal .divider {
  color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .footer-bottom {
  border-top-color: rgba(255, 255, 255, 0.06);
}

/* ==================== 导航下拉菜单暗黑模式 ==================== */
[data-theme="dark"] .nav-dropdown-content {
  background: rgba(20, 20, 24, 0.92);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06),
    0 4px 16px rgba(0, 0, 0, 0.4),
    0 12px 40px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
}

[data-theme="dark"] .user-dropdown-content {
  background: rgba(20, 20, 24, 0.92);
}

[data-theme="dark"] .user-info-header {
  border-bottom-color: rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .user-avatar svg {
  color: #52525b;
}

[data-theme="dark"] .user-info-name {
  color: #e4e4e7;
}

[data-theme="dark"] .user-info-email {
  color: #52525b;
}

[data-theme="dark"] .user-role-badge {
  color: #a5b4fc;
  background: rgba(165,180,252,0.08);
  border-color: rgba(165,180,252,0.12);
}

[data-theme="dark"] .nav-dropdown-item-icon {
  color: #a1a1aa;
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .nav-dropdown-item-link:hover .nav-dropdown-item-icon {
  color: #e4e4e7;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .nav-dropdown-item-label {
  color: #e4e4e7;
}

[data-theme="dark"] .nav-dropdown-item-desc {
  color: #52525b;
}

[data-theme="dark"] .nav-dropdown-item-link:hover .nav-dropdown-item-desc {
  color: #71717a;
}

[data-theme="dark"] .dropdown-divider {
  background: rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .dropdown-action-btn {
  color: rgba(255, 255, 255, 0.35);
}

[data-theme="dark"] .dropdown-action-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.85);
}

[data-theme="dark"] .logout-link:hover {
  background: rgba(255, 255, 255, 0.06) !important;
  color: rgba(255, 255, 255, 0.85) !important;
}

[data-theme="dark"] .logout-link:hover .nav-dropdown-item-icon {
  color: rgba(255, 255, 255, 0.65);
}

[data-theme="dark"] .nav-dropdown-item-link {
  color: #a1a1aa;
}

[data-theme="dark"] .nav-dropdown-item-link:hover {
  background: rgba(255, 255, 255, 0.04);
  color: #e4e4e7;
}

[data-theme="dark"] .nav-dropdown-item-link:hover .nav-dropdown-item-icon {
  color: #a1a1aa;
}

[data-theme="dark"] .nav-dropdown-item-arrow {
  color: #3f3f46;
}

/* ==================== 卡片系统暗黑模式 ==================== */
[data-theme="dark"] .card {
  background: #111113;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .card:hover {
  background: #18181b;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35), 0 8px 24px rgba(0, 0, 0, 0.25);
}

[data-theme="dark"] .card {
  transition: background 0.25s cubic-bezier(0.25, 0.1, 0.25, 1), transform 0.25s cubic-bezier(0.25, 0.1, 0.25, 1), box-shadow 0.25s cubic-bezier(0.25, 0.1, 0.25, 1);
}

[data-theme="dark"] .card-header {
  border-bottom-color: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .glass-card {
  background: #111113;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .glass-card::before {
  background: linear-gradient(180deg, rgba(255,255,255,0.04) 0%, transparent 100%);
}

[data-theme="dark"] .glass-card:hover {
  background: #18181d;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35), 0 8px 24px rgba(0, 0, 0, 0.25);
  border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .glass-card {
  transition: background 0.25s cubic-bezier(0.25, 0.1, 0.25, 1), transform 0.25s cubic-bezier(0.25, 0.1, 0.25, 1), box-shadow 0.25s cubic-bezier(0.25, 0.1, 0.25, 1), border-color 0.25s cubic-bezier(0.25, 0.1, 0.25, 1);
}

[data-theme="dark"] .glass-card-shine::after {
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.08),
    transparent
  );
}

/* ==================== 按钮系统暗黑模式 ==================== */
[data-theme="dark"] .btn {
  transition: all var(--duration-200) var(--ease-out);
}

[data-theme="dark"] .btn-primary {
  background: linear-gradient(135deg, var(--primary-300) 0%, var(--primary-400) 100%);
  box-shadow: var(--shadow-md), var(--shadow-primary);
}

[data-theme="dark"] .btn-primary::before {
  background: linear-gradient(180deg, rgba(255,255,255,0.15) 0%, transparent 100%);
}

[data-theme="dark"] .btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-400) 0%, var(--primary-500) 100%);
  box-shadow: var(--shadow-xl), var(--shadow-primary);
}

[data-theme="dark"] .btn-success {
  background: linear-gradient(135deg, var(--success-300) 0%, var(--success-400) 100%);
  box-shadow: var(--shadow-md), var(--shadow-success);
}

[data-theme="dark"] .btn-success::before {
  background: linear-gradient(180deg, rgba(255,255,255,0.15) 0%, transparent 100%);
}

[data-theme="dark"] .btn-success:hover {
  background: linear-gradient(135deg, var(--success-400) 0%, var(--success-500) 100%);
  box-shadow: var(--shadow-xl), var(--shadow-success);
}

[data-theme="dark"] .btn-outline-primary {
  background: rgba(31, 31, 35, 0.7);
  border: 1.5px solid var(--primary-400);
  color: var(--primary-300);
}

[data-theme="dark"] .btn-outline-primary:hover {
  background: rgba(39, 39, 42, 0.9);
  border-color: var(--primary-400);
  color: var(--primary-400);
}

[data-theme="dark"] .btn-shine::after {
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
}

/* ==================== 表单系统暗黑模式 ==================== */
[data-theme="dark"] .form-control {
  background-color: var(--bg-card);
  border-color: var(--border-light);
  color: var(--text-primary);
}

[data-theme="dark"] .form-control::placeholder {
  color: var(--text-muted);
}

[data-theme="dark"] .form-control:focus {
  background-color: var(--bg-card);
  border-color: var(--primary-400);
  color: var(--text-primary);
  box-shadow: 0 0 0 0.2rem rgba(161, 161, 170, 0.25);
}

[data-theme="dark"] .form-check-input {
  background-color: var(--bg-card);
  border-color: var(--border-light);
}

[data-theme="dark"] .form-check-input:checked {
  background-color: var(--primary-400);
  border-color: var(--primary-400);
}

/* ==================== 排版系统暗黑模式 ==================== */
[data-theme="dark"] .text-display {
  color: var(--text-primary);
}

[data-theme="dark"] .text-h1 {
  color: var(--text-primary);
}

[data-theme="dark"] .text-h2 {
  color: var(--text-secondary);
}

[data-theme="dark"] .text-h3 {
  color: var(--text-secondary);
}

[data-theme="dark"] .text-body-lg {
  color: var(--text-tertiary);
}

[data-theme="dark"] .text-body {
  color: var(--text-tertiary);
}

[data-theme="dark"] .text-small {
  color: var(--text-muted);
}

[data-theme="dark"] .text-xs {
  color: var(--text-muted);
}

[data-theme="dark"] .text-primary { color: var(--primary-400) !important; }
[data-theme="dark"] .text-secondary { color: var(--secondary-color) !important; }
[data-theme="dark"] .text-success { color: var(--success-color) !important; }
[data-theme="dark"] .text-danger { color: var(--danger-color) !important; }
[data-theme="dark"] .text-warning { color: var(--warning-color) !important; }

[data-theme="dark"] .bg-primary { background-color: var(--primary-400) !important; }
[data-theme="dark"] .bg-secondary { background-color: var(--secondary-color) !important; }
[data-theme="dark"] .bg-light { background-color: var(--bg-secondary) !important; }

/* ==================== 首页模块暗黑模式 ==================== */
[data-theme="dark"] .hero-section {
  background: linear-gradient(135deg, #0a0a0a 0%, #111113 100%);
}

[data-theme="dark"] .hero-title {
  color: var(--text-primary);
}

[data-theme="dark"] .hero-subtitle {
  color: var(--text-tertiary);
}

[data-theme="dark"] .feature-item {
  color: var(--text-secondary);
}

[data-theme="dark"] .features-section {
  background: var(--bg-secondary);
}

[data-theme="dark"] .section-header h2 {
  color: var(--text-primary);
}

[data-theme="dark"] .feature-card {
  background: var(--bg-card);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  transition: box-shadow 0.3s cubic-bezier(0.25, 0.1, 0.25, 1), transform 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
}

[data-theme="dark"] .feature-card:hover {
  background: var(--bg-hover);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
  transform: translateY(-2px);
}

[data-theme="dark"] .feature-card h4 {
  color: var(--text-primary);
}

[data-theme="dark"] .feature-card p {
  color: var(--text-tertiary);
}

[data-theme="dark"] .process-section {
  background: var(--bg-primary);
}

[data-theme="dark"] .process-step h5 {
  color: var(--text-primary);
}

[data-theme="dark"] .process-step p {
  color: var(--text-tertiary);
}

[data-theme="dark"] .feature-card-item {
  background: var(--bg-card);
  border-color: rgba(255, 255, 255, 0.06);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2), 0 4px 6px -1px rgba(0, 0, 0, 0.15);
}

[data-theme="dark"] .feature-card-item:hover {
  background: var(--bg-hover);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.25), 0 10px 15px -3px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .advanced-feature-card {
  background: var(--bg-card);
  border-color: rgba(255, 255, 255, 0.06);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 10px 40px rgba(0, 0, 0, 0.15);
}

[data-theme="dark"] .advanced-feature-card:hover {
  background: var(--bg-hover);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2), 0 20px 60px rgba(0, 0, 0, 0.25);
}

[data-theme="dark"] .feature-card-carousel {
  background: var(--bg-card);
  border-color: rgba(255, 255, 255, 0.06);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 10px 40px rgba(0, 0, 0, 0.15);
}

[data-theme="dark"] .feature-card-carousel:hover {
  background: var(--bg-hover);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25), 0 20px 60px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .case-preview-card {
  background: var(--bg-card);
  border-color: rgba(255, 255, 255, 0.06);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 10px 40px rgba(0, 0, 0, 0.15);
}

[data-theme="dark"] .case-preview-card:hover {
  background: var(--bg-hover);
  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2), 0 20px 60px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .case-card-carousel {
  background: var(--bg-card);
  border-color: rgba(255, 255, 255, 0.06);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 10px 40px rgba(0, 0, 0, 0.15);
}

[data-theme="dark"] .case-card-carousel:hover {
  background: var(--bg-hover);
  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2), 0 20px 60px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .process-step-card {
  background: var(--bg-card);
  border-color: rgba(255, 255, 255, 0.06);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 10px 40px rgba(0, 0, 0, 0.15);
}

[data-theme="dark"] .process-step-card:hover {
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15), 0 12px 24px rgba(0, 0, 0, 0.2), 0 24px 48px rgba(0, 0, 0, 0.15);
}

[data-theme="dark"] .home-module .process-step-card {
  background: var(--bg-card);
  border-color: rgba(255, 255, 255, 0.06);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 10px 40px rgba(0, 0, 0, 0.15);
}

[data-theme="dark"] .home-module .process-step-card:hover {
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.15), 0 20px 60px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .stats-section {
  background: var(--bg-secondary);
}

[data-theme="dark"] .stat-label {
  color: var(--text-tertiary);
}

[data-theme="dark"] .cta-section h2 {
  color: var(--text-primary);
}

[data-theme="dark"] .cta-section .btn-light {
  color: var(--primary-400);
  background: var(--bg-card);
}

[data-theme="dark"] .cta-section .btn-light:hover {
  background: var(--bg-hover);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  transform: translateY(-1px);
}

/* ==================== 场景选择模块暗黑模式 ==================== */
[data-theme="dark"] .scene-card {
  background: var(--bg-card);
  border: 2px solid var(--border-light);
  transition: border-color 0.25s cubic-bezier(0.25, 0.1, 0.25, 1), background 0.25s cubic-bezier(0.25, 0.1, 0.25, 1), transform 0.25s cubic-bezier(0.25, 0.1, 0.25, 1), box-shadow 0.25s cubic-bezier(0.25, 0.1, 0.25, 1);
}

[data-theme="dark"] .scene-card:hover {
  border-color: var(--primary-400);
  background: var(--bg-hover);
  transform: translateY(-2px);
  box-shadow: 0 0 0 1px rgba(161, 161, 170, 0.1), 0 4px 16px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .scene-card.selected {
  border-color: var(--primary-400);
  background-color: rgba(161, 161, 170, 0.1);
}

[data-theme="dark"] .scene-info h4 {
  color: var(--text-primary);
}

[data-theme="dark"] .scene-info p {
  color: var(--text-tertiary);
}

/* ==================== 痛点选择模块暗黑模式 ==================== */
[data-theme="dark"] .pain-option {
  background: var(--bg-card);
  border: 2px solid var(--border-light);
  transition: border-color 0.25s cubic-bezier(0.25, 0.1, 0.25, 1), background-color 0.25s cubic-bezier(0.25, 0.1, 0.25, 1), transform 0.25s cubic-bezier(0.25, 0.1, 0.25, 1), box-shadow 0.25s cubic-bezier(0.25, 0.1, 0.25, 1);
}

[data-theme="dark"] .pain-option:hover {
  border-color: var(--primary-400);
  background-color: rgba(161, 161, 170, 0.05);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .pain-option.selected {
  border-color: var(--primary-400);
  background-color: rgba(161, 161, 170, 0.1);
}

/* ==================== 方案结果模块暗黑模式 ==================== */
[data-theme="dark"] .plan-header h1 {
  color: var(--text-primary);
}

[data-theme="dark"] .plan-subtitle {
  color: var(--text-tertiary);
}

[data-theme="dark"] .overview-card {
  background: var(--bg-card);
}

[data-theme="dark"] .overview-label {
  color: var(--text-tertiary);
}

[data-theme="dark"] .overview-value {
  color: var(--text-primary);
}

[data-theme="dark"] .overview-value.price {
  color: var(--primary-400);
}

[data-theme="dark"] .tools-section h2 {
  color: var(--text-primary);
}

[data-theme="dark"] .tool-item {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
}

[data-theme="dark"] .tool-content h4 {
  color: var(--text-primary);
}

[data-theme="dark"] .tool-content p {
  color: var(--text-tertiary);
}

[data-theme="dark"] .tool-tag {
  background: var(--bg-hover);
  color: var(--text-secondary);
}

[data-theme="dark"] .tool-price {
  color: var(--primary-400);
}

[data-theme="dark"] .steps-section h2 {
  color: var(--text-primary);
}

[data-theme="dark"] .step-item {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
}

[data-theme="dark"] .step-text {
  color: var(--text-secondary);
}

[data-theme="dark"] .effect-section h2 {
  color: var(--text-primary);
}

[data-theme="dark"] .effect-card {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(161, 161, 170, 0.1));
  border: 1px solid rgba(16, 185, 129, 0.2);
}

[data-theme="dark"] .effect-card p {
  color: var(--text-secondary);
}

/* ==================== 改造方案生成界面全面暗黑模式优化==================== */

/* 1. 结果模块主体 */
[data-theme="dark"] .result-module,
[data-theme="dark"] .result-normal,
[data-theme="dark"] .result-image,
[data-theme="dark"] .result-video {
  background: #000000 !important;
  color: #a1a1aa;
}

/* 2. 头部区域（步骤指示器）*/
[data-theme="dark"] .result-module div[style*="background:#ffffff"][style*="padding:56px"],
[data-theme="dark"] .result-normal div[style*="background:#ffffff"][style*="border-bottom"] {
  background: #09090b !important;
  border-bottom-color: #27272a !important;
}

/* 步骤数字和文字*/
[data-theme="dark"] .result-module div[style*="font-size:12px"][style*="color:#1a1a1a"],
[data-theme="dark"] .result-normal div[style*="font-size:12px"][style*="color:#1a1a1a"] {
  color: #a1a1aa !important;
  font-weight: 500 !important;
}

[data-theme="dark"] .result-module div[style*="font-size:11px"][style*="color:#8a8a8a"],
[data-theme="dark"] .result-normal div[style*="font-size:11px"][style*="color:#8a8a8a"] {
  color: #52525b !important;
}

/* 步骤连接线*/
[data-theme="dark"] .result-module div[style*="width:32px"][style*="height:1px"][style*="background:#e8e8e8"],
[data-theme="dark"] .result-normal div[style*="width:32px"][style*="height:1px"][style*="background:#e8e8e8"] {
  background: #27272a !important;
}

/* 3. 标题区域 */
[data-theme="dark"] .result-module div[style*="font-size:12px"][style*="color:#8a8a8a"][style*="letter-spacing:0.16em"],
[data-theme="dark"] .result-normal div[style*="font-size:12px"][style*="color:#8a8a8a"][style*="letter-spacing:0.16em"] {
  color: #71717a !important;
}

[data-theme="dark"] .result-module h1[style*="font-size:40px"][style*="color:#1a1a1a"],
[data-theme="dark"] .result-normal h1[style*="font-size:40px"][style*="color:#1a1a1a"] {
  color: #a1a1aa !important;
}

[data-theme="dark"] .result-module p[style*="font-size:16px"][style*="color:#6b6b6b"],
[data-theme="dark"] .result-normal p[style*="font-size:16px"][style*="color:#6b6b6b"] {
  color: #71717a !important;
}

/* 4. 概览卡片区域 */
[data-theme="dark"] .result-module div[style*="padding-top:56px"][style*="padding-bottom:96px"],
[data-theme="dark"] .result-normal div[style*="padding-top:56px"][style*="padding-bottom:96px"] {
  background: transparent !important;
}

/* 概览卡片 - 场景、问题、预算、价格*/
[data-theme="dark"] .result-module div[style*="padding:24px"][style*="background:#fafafa"][style*="border-radius:12px"],
[data-theme="dark"] .result-normal div[style*="padding:24px"][style*="background:#fafafa"][style*="border-radius:12px"] {
  background: #111113 !important;
  border-color: #27272a !important;
}

/* 概览标签 */
[data-theme="dark"] .result-module div[style*="font-size:12px"][style*="color:#8a8a8a"][style*="margin-bottom:8px"],
[data-theme="dark"] .result-normal div[style*="font-size:12px"][style*="color:#8a8a8a"][style*="margin-bottom:8px"] {
  color: #52525b !important;
}

/* 概览区*/
[data-theme="dark"] .result-module div[style*="font-size:18px"][style*="color:#1a1a1a"],
[data-theme="dark"] .result-normal div[style*="font-size:18px"][style*="color:#1a1a1a"] {
  color: #a1a1aa !important;
}

/* 价格特殊处理 - 使用主题色*/
[data-theme="dark"] .result-module div[style*="font-size:24px"][style*="font-weight:600"][style*="color:#1a1a1a"],
[data-theme="dark"] .result-normal div[style*="font-size:24px"][style*="font-weight:600"][style*="color:#1a1a1a"] {
  color: var(--primary-400) !important;
}

/* 5. 工具包区域*/
[data-theme="dark"] .result-module div[style*="font-size:24px"][style*="color:#1a1a1a"][style*="margin-bottom:32px"]:nth-of-type(2),
[data-theme="dark"] .result-normal div[style*="font-size:24px"][style*="color:#1a1a1a"][style*="margin-bottom:32px"]:nth-of-type(2) {
  color: #a1a1aa !important;
}

/* 工具项卡片*/
[data-theme="dark"] .result-module div[style*="display:flex"][style*="gap:24px"][style*="padding:28px"][style*="background:#fafafa"],
[data-theme="dark"] .result-normal div[style*="display:flex"][style*="gap:24px"][style*="padding:28px"][style*="background:#fafafa"] {
  background: #111113 !important;
  border-color: #27272a !important;
}

/* 工具图标容器 */
[data-theme="dark"] .result-module div[style*="width:40px"][style*="height:40px"][style*="background:#ffffff"],
[data-theme="dark"] .result-normal div[style*="width:40px"][style*="height:40px"][style*="background:#ffffff"] {
  background: #18181b !important;
  border-color: #27272a !important;
  color: #a1a1aa !important;
}

/* 工具名称 */
[data-theme="dark"] .result-module h3[style*="font-size:18px"][style*="color:#1a1a1a"],
[data-theme="dark"] .result-normal h3[style*="font-size:18px"][style*="color:#1a1a1a"] {
  color: #a1a1aa !important;
}

/* 工具价格 */
[data-theme="dark"] .result-module div[style*="font-size:16px"][style*="font-weight:600"][style*="color:#1a1a1a"],
[data-theme="dark"] .result-normal div[style*="font-size:16px"][style*="font-weight:600"][style*="color:#1a1a1a"] {
  color: var(--primary-400) !important;
}

/* 工具描述 */
[data-theme="dark"] .result-module p[style*="font-size:14px"][style*="line-height:1.6"],
[data-theme="dark"] .result-normal p[style*="font-size:14px"][style*="line-height:1.6"] {
  color: #71717a !important;
}

/* 工具标签 */
[data-theme="dark"] .result-module span[style*="font-size:12px"][style*="color:#6b6b6b"][style*="background:#ffffff"],
[data-theme="dark"] .result-normal span[style*="font-size:12px"][style*="color:#6b6b6b"][style*="background:#ffffff"] {
  background: #18181b !important;
  color: #71717a !important;
  border-color: #27272a !important;
}

/* 6. 实施步骤区域 */
[data-theme="dark"] .result-module div[style*="font-size:24px"][style*="color:#1a1a1a"][style*="margin-bottom:32px"]:last-of-type,
[data-theme="dark"] .result-normal div[style*="font-size:24px"][style*="color:#1a1a1a"][style*="margin-bottom:32px"]:last-of-type {
  color: #a1a1aa !important;
}

/* 步骤圆圈 */
[data-theme="dark"] .result-module div[style*="width:32px"][style*="height:32px"][style*="background:#1a1a1a"],
[data-theme="dark"] .result-normal div[style*="width:32px"][style*="height:32px"][style*="background:#1a1a1a"] {
  background: #a1a1aa !important;
  color: #ffffff !important;
}

/* 步骤文字 */
[data-theme="dark"] .result-module div[style*="font-size:16px"][style*="color:#1a1a1a"][style*="line-height:1.6"],
[data-theme="dark"] .result-normal div[style*="font-size:16px"][style*="color:#1a1a1a"][style*="line-height:1.6"] {
  color: #a1a1aa !important;
}

/* 7. 预期效果区域 */
[data-theme="dark"] .result-module div[style*="padding:32px"][style*="background:#fafafa"][style*="text-align:center"],
[data-theme="dark"] .result-normal div[style*="padding:32px"][style*="background:#fafafa"][style*="text-align:center"] {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.08), rgba(161, 161, 170, 0.08)) !important;
  border-color: rgba(161, 161, 170, 0.15) !important;
}

/* 效果数据*/
[data-theme="dark"] .result-module div[style*="font-size:48px"][style*="font-weight:600"][style*="color:#1a1a1a"],
[data-theme="dark"] .result-normal div[style*="font-size:48px"][style*="font-weight:600"][style*="color:#1a1a1a"] {
  color: var(--primary-400) !important;
}

/* 效果描述 */
[data-theme="dark"] .result-module div[style*="font-size:14px"][style*="font-weight:500"][style*="color:#6b6b6b"],
[data-theme="dark"] .result-normal div[style*="font-size:14px"][style*="font-weight:500"][style*="color:#6b6b6b"] {
  color: #71717a !important;
}

/* 8. 底部按钮区*/
[data-theme="dark"] .result-module button[style*="background:#ffffff"][style*="color:#1a1a1a"],
[data-theme="dark"] .result-normal button[style*="background:#ffffff"][style*="color:#1a1a1a"] {
  background: #18181b !important;
  color: #a1a1aa !important;
  border-color: #3f3f46 !important;
}

[data-theme="dark"] .result-module button[style*="background:#ffffff"][style*="color:#1a1a1a"]:hover,
[data-theme="dark"] .result-normal button[style*="background:#ffffff"][style*="color:#1a1a1a"]:hover {
  background: #27272a !important;
  border-color: #52525b !important;
}

/* 3D预览按钮 */
[data-theme="dark"] .result-module button[style*="background:#fafafa"][style*="color:#1a1a1a"],
[data-theme="dark"] .result-normal button[style*="background:#fafafa"][style*="color:#1a1a1a"] {
  background: #111113 !important;
  color: #a1a1aa !important;
  border-color: #27272a !important;
}

[data-theme="dark"] .result-module button[style*="background:#fafafa"][style*="color:#1a1a1a"]:hover,
[data-theme="dark"] .result-normal button[style*="background:#fafafa"][style*="color:#1a1a1a"]:hover {
  background: #18181b !important;
  border-color: #3f3f46 !important;
}

/* 导出PDF按钮 */
[data-theme="dark"] .result-module button[style*="background:#1a1a1a"][style*="color:#ffffff"],
[data-theme="dark"] .result-normal button[style*="background:#1a1a1a"][style*="color:#ffffff"] {
  background: #a1a1aa !important;
  color: #ffffff !important;
  border-color: #a1a1aa !important;
}

[data-theme="dark"] .result-module button[style*="background:#1a1a1a"][style*="color:#ffffff"]:hover,
[data-theme="dark"] .result-normal button[style*="background:#1a1a1a"][style*="color:#ffffff"]:hover {
  background: #71717a !important;
  transform: translateY(-1px);
}

/* ==================== 页面标题暗黑模式 ==================== */
[data-theme="dark"] .page-header h1 {
  color: var(--text-primary);
}

[data-theme="dark"] .page-header p {
  color: var(--text-tertiary);
}

/* ==================== 步骤指示器暗黑模式==================== */
[data-theme="dark"] .step {
  color: var(--text-tertiary);
}

[data-theme="dark"] .step.active {
  color: var(--primary-400);
}

[data-theme="dark"] .step.completed {
  color: var(--success-400);
}

[data-theme="dark"] .step-number {
  background-color: var(--text-muted);
}

[data-theme="dark"] .step.active .step-number {
  background-color: var(--primary-400);
}

[data-theme="dark"] .step.completed .step-number {
  background-color: var(--success-400);
}

[data-theme="dark"] .step-divider {
  background-color: var(--text-muted);
}

[data-theme="dark"] .step-divider.completed {
  background-color: var(--success-400);
}

/* ==================== 主题切换按钮样式 ==================== */
.theme-toggle-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: var(--bg-card);
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--duration-200) var(--ease-out);
  position: relative;
  overflow: hidden;
}

.theme-toggle-btn:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
  transform: scale(1.05);
}

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

.theme-toggle-btn svg {
  width: 20px;
  height: 20px;
  transition: transform var(--duration-300) var(--ease-out);
}

.theme-toggle-btn:hover svg {
  transform: rotate(180deg);
}

[data-theme="dark"] .theme-toggle-btn {
  background: rgba(31, 31, 35, 0.7);
  color: var(--text-secondary);
}

[data-theme="dark"] .theme-toggle-btn:hover {
  background: rgba(39, 39, 42, 0.9);
  color: var(--primary-400);
}

/* ==================== 过渡动画 ==================== */
/* 移除全局transition，避免移动端突然位移问题 */
/* * {
  transition: background-color var(--transition-theme),
              border-color var(--transition-theme),
              color var(--transition-theme);
} */

/* 图片在暗黑模式下的调整*/
[data-theme="dark"] img {
  opacity: 0.9;
}

[data-theme="dark"] .hero-illustration {
  box-shadow: 0 20px 60px rgba(161, 161, 170, 0.2);
}

/* ==================== 加载屏幕暗黑模式 ==================== */
[data-theme="dark"] .loading-screen {
  background: #000000;
}

[data-theme="dark"] .loading-spinner {
  border: 4px solid rgba(255, 255, 255, 0.05);
  border-top-color: #52525b;
}

[data-theme="dark"] .loading-content h2 {
  color: #71717a;
}

[data-theme="dark"] .loading-content p {
  color: #52525b;
}

/* ================================================================
   全局暗黑模式覆盖 - 覆盖所有模块中的白色亮色内容
   ================================================================ */

/* ==================== 1. 全局背景色覆盖==================== */
[data-theme="dark"] html {
  background: #000000 !important;
}

[data-theme="dark"] body {
  background: #000000 !important;
  color: #a1a1aa;
  /* 确保body完全覆盖视口 */
  min-height: 100vh;
  min-height: 100dvh;
}

[data-theme="dark"] body:not(.workspace-shell-active) #app {
  background: #000000 !important;
  /* 确保主容器完全覆盖*/
  min-height: 100vh;
  min-height: 100dvh;
}

[data-theme="dark"] body:not(.workspace-shell-active) .page-container,
[data-theme="dark"] body:not(.workspace-shell-active) .module-container,
[data-theme="dark"] body:not(.workspace-shell-active) .content-container,
[data-theme="dark"] body:not(.workspace-shell-active) main,
[data-theme="dark"] body:not(.workspace-shell-active) section {
  background: #000000 !important;
  color: #a1a1aa;
}

/* ==================== 2. 白色背景全局覆盖 ==================== */
[data-theme="dark"] .bg-white,
[data-theme="dark"] [class*="bg-white"],
[data-theme="dark"] [style*="background: white"],
[data-theme="dark"] [style*="background:#fff"],
[data-theme="dark"] [style*="background: #fff"],
[data-theme="dark"] [style*="background:#ffffff"],
[data-theme="dark"] [style*="background: #ffffff"] {
  background: #111113 !important;
}

/* ==================== 3. 浅灰背景覆盖 (#f5f5f7, #fafafa, #e5e5e5) ==================== */
[data-theme="dark"] [style*="background: #f5f5f7"],
[data-theme="dark"] [style*="background:#f5f5f7"],
[data-theme="dark"] [style*="background: #fafafa"],
[data-theme="dark"] [style*="background:#fafafa"],
[data-theme="dark"] [style*="background: #e5e5e5"],
[data-theme="dark"] [style*="background:#e5e5e5"] {
  background: #0a0a0b !important;
}

/* ==================== 4. 页面级背景覆盖 - 各模块==================== */
[data-theme="dark"] .scene-container,
[data-theme="dark"] .scene-page,
[data-theme="dark"] #scene-module {
  background: #000000 !important;
}

[data-theme="dark"] .heatmap-container,
[data-theme="dark"] .heatmap-page,
[data-theme="dark"] #heatmap-module {
  background: #000000 !important;
}

[data-theme="dark"] .pain-container,
[data-theme="dark"] .pain-page,
[data-theme="dark"] #pain-module {
  background: #000000 !important;
}

[data-theme="dark"] .budget-container,
[data-theme="dark"] .budget-page,
[data-theme="dark"] #budget-module {
  background: #000000 !important;
}

[data-theme="dark"] .showcase-container,
[data-theme="dark"] .showcase-page,
[data-theme="dark"] #showcase-module {
  background: #000000 !important;
}

[data-theme="dark"] .result-container,
[data-theme="dark"] .result-page,
[data-theme="dark"] #result-module {
  background: #000000 !important;
}

[data-theme="dark"] .space3d-container,
[data-theme="dark"] .space3d-page,
[data-theme="dark"] #space3d-module,
[data-theme="dark"] #3d-space-module {
  background: #000000 !important;
}

[data-theme="dark"] .cases-container,
[data-theme="dark"] .cases-page,
[data-theme="dark"] #cases-module {
  background: #000000 !important;
}

[data-theme="dark"] .gamification-container,
[data-theme="dark"] .gamification-page,
[data-theme="dark"] #gamification-module {
  background: #000000 !important;
}

[data-theme="dark"] .emotion-playground-container,
[data-theme="dark"] .emotion-playground-page,
[data-theme="dark"] #emotion-playground-module {
  background: #000000 !important;
}

[data-theme="dark"] .home-container,
[data-theme="dark"] .home-page,
[data-theme="dark"] #home-module {
  background: #000000 !important;
}

/* ==================== 5. 白色文字覆盖为灰色==================== */
[data-theme="dark"] h1, [data-theme="dark"] h2, [data-theme="dark"] h3,
[data-theme="dark"] h4, [data-theme="dark"] h5, [data-theme="dark"] h6 {
  color: #a1a1aa !important;
}

[data-theme="dark"] p, [data-theme="dark"] span, [data-theme="dark"] li,
[data-theme="dark"] td, [data-theme="dark"] th, [data-theme="dark"] label {
  color: #71717a;
}

[data-theme="dark"] a {
  color: #71717a;
}

[data-theme="dark"] a:hover {
  color: #a1a1aa;
}

[data-theme="dark"] small, [data-theme="dark"] .text-muted, [data-theme="dark"] .text-secondary {
  color: #52525b !important;
}

/* ==================== 6. 表单元素覆盖 ==================== */
[data-theme="dark"] input,
[data-theme="dark"] textarea,
[data-theme="dark"] select {
  background: #111113 !important;
  color: #a1a1aa !important;
  border-color: #27272a !important;
}

[data-theme="dark"] input::placeholder,
[data-theme="dark"] textarea::placeholder {
  color: #3f3f46 !important;
}

[data-theme="dark"] input:focus,
[data-theme="dark"] textarea:focus,
[data-theme="dark"] select:focus {
  border-color: #3f3f46 !important;
  box-shadow: 0 0 0 2px rgba(63, 63, 70, 0.3) !important;
}

/* ==================== 7. 表格覆盖 ==================== */
[data-theme="dark"] table {
  background: #111113 !important;
  color: #71717a;
}

[data-theme="dark"] thead th {
  background: #0a0a0b !important;
  color: #a1a1aa !important;
  border-bottom-color: #27272a !important;
}

[data-theme="dark"] tbody tr {
  border-bottom-color: #1f1f23 !important;
}

[data-theme="dark"] tbody tr:hover {
  background: #18181b !important;
}

/* ==================== 8. Bootstrap组件覆盖 ==================== */
[data-theme="dark"] .modal-content {
  background: #111113 !important;
  color: #a1a1aa;
  border-color: #27272a !important;
}

[data-theme="dark"] .modal-header {
  border-bottom-color: #1f1f23 !important;
}

[data-theme="dark"] .modal-footer {
  border-top-color: #1f1f23 !important;
}

[data-theme="dark"] .dropdown-menu {
  background: #111113 !important;
  border-color: #27272a !important;
}

[data-theme="dark"] .dropdown-item {
  color: #71717a;
}

[data-theme="dark"] .dropdown-item:hover {
  background: #18181b !important;
  color: #a1a1aa;
}

[data-theme="dark"] .alert {
  border-color: #27272a !important;
}

[data-theme="dark"] .badge {
  background: #27272a !important;
  color: #a1a1aa;
}

[data-theme="dark"] .progress {
  background: #1f1f23 !important;
}

[data-theme="dark"] .list-group-item {
  background: #111113 !important;
  color: #71717a;
  border-color: #1f1f23 !important;
}

[data-theme="dark"] .breadcrumb-item a {
  color: #52525b;
}

[data-theme="dark"] .breadcrumb-item.active {
  color: #71717a;
}

/* ==================== 9. 分割线边框覆盖 ==================== */
[data-theme="dark"] hr,
[data-theme="dark"] .divider {
  border-color: #1f1f23 !important;
}

[data-theme="dark"] [class*="border"] {
  border-color: #1f1f23 !important;
}

/* ==================== 10. 按钮覆盖 - 白色/浅色按钮 ==================== */
[data-theme="dark"] .btn-light {
  background: #27272a !important;
  color: #a1a1aa !important;
  border-color: #3f3f46 !important;
}

[data-theme="dark"] .btn-light:hover {
  background: #3f3f46 !important;
  color: #a1a1aa !important;
}

[data-theme="dark"] .btn-outline-light {
  color: #71717a !important;
  border-color: #3f3f46 !important;
}

[data-theme="dark"] .btn-outline-light:hover {
  background: #27272a !important;
  color: #a1a1aa !important;
}

[data-theme="dark"] .btn-white {
  background: #27272a !important;
  color: #a1a1aa !important;
  border-color: #3f3f46 !important;
}

/* ==================== 11. 首页特定元素覆盖 ==================== */
[data-theme="dark"] .hero-section,
[data-theme="dark"] .hero-container {
  background: #000000 !important;
}

[data-theme="dark"] .hero-title,
[data-theme="dark"] .hero-subtitle {
  color: #a1a1aa !important;
}

[data-theme="dark"] .portfolio-features-section,
[data-theme="dark"] .portfolio-features-container {
  background: #000000 !important;
}

[data-theme="dark"] .portfolio-features-title {
  color: #a1a1aa !important;
}

[data-theme="dark"] .portfolio-features-subtitle {
  color: #52525b !important;
}

[data-theme="dark"] .scrollytelling-section,
[data-theme="dark"] .scrollytelling-container {
  background: #060608 !important;
}

[data-theme="dark"] .scrollytelling-title {
  color: rgba(255, 255, 255, 0.85) !important;
}

[data-theme="dark"] .scrollytelling-subtitle {
  color: rgba(255, 255, 255, 0.35) !important;
}

[data-theme="dark"] .scrollytelling-header::after {
  background: rgba(255, 255, 255, 0.12);
}

[data-theme="dark"] .scrollytelling-steps::before {
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(255, 255, 255, 0.06) 5%,
    rgba(255, 255, 255, 0.06) 95%,
    transparent 100%
  );
}

[data-theme="dark"] .step-image {
  background: #121214 !important;
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.3),
    0 4px 16px rgba(0, 0, 0, 0.3),
    0 8px 32px rgba(0, 0, 0, 0.2) !important;
}

[data-theme="dark"] .step-decor.top-left {
  border-color: rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .step-decor.bottom-right {
  border-color: rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .step-icon {
  color: rgba(255, 255, 255, 0.2) !important;
  background: rgba(30, 30, 35, 0.7) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
}

[data-theme="dark"] .scrollytelling-step .step-label {
  color: rgba(255, 255, 255, 0.35) !important;
}

[data-theme="dark"] .scrollytelling-step .step-number {
  width: auto !important;
  height: auto !important;
  border-radius: 0 !important;
  display: block !important;
  background: transparent !important;
  color: rgba(255, 255, 255, 0.85) !important;
  opacity: 0.12;
}

[data-theme="dark"] .scrollytelling-step .step-title {
  color: rgba(255, 255, 255, 0.85) !important;
}

[data-theme="dark"] .scrollytelling-step .step-description {
  color: rgba(255, 255, 255, 0.45) !important;
}

[data-theme="dark"] .scrollytelling-step:hover .step-title {
  color: #0a84ff !important;
}

[data-theme="dark"] .scrollytelling-step::before {
  background: #121214 !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  color: rgba(255, 255, 255, 0.4) !important;
}

[data-theme="dark"] .feature-card,
[data-theme="dark"] .feature-item {
  background: #111113 !important;
  border-color: #1f1f23 !important;
}

[data-theme="dark"] .feature-title {
  color: #a1a1aa !important;
}

[data-theme="dark"] .feature-desc,
[data-theme="dark"] .feature-description {
  color: #52525b !important;
}

/* ==================== 12. 步骤/流程卡片覆盖 ==================== */
[data-theme="dark"] .step-card,
[data-theme="dark"] .step-item,
[data-theme="dark"] .step-container {
  background: #111113 !important;
  border-color: #1f1f23 !important;
  color: #71717a;
}

[data-theme="dark"] .step-number,
[data-theme="dark"] .step-index {
  color: #52525b !important;
  background: #18181b !important;
}

[data-theme="dark"] .step-title {
  color: #a1a1aa !important;
}

[data-theme="dark"] .step-desc,
[data-theme="dark"] .step-description {
  color: #52525b !important;
}

/* ==================== 13. 通用卡片/面板覆盖 ==================== */
[data-theme="dark"] .panel,
[data-theme="dark"] .panel-body,
[data-theme="dark"] .panel-header {
  background: #111113 !important;
  color: #71717a;
  border-color: #1f1f23 !important;
}

[data-theme="dark"] .info-card,
[data-theme="dark"] .stat-card,
[data-theme="dark"] .metric-card,
[data-theme="dark"] .data-card {
  background: #111113 !important;
  border-color: #1f1f23 !important;
  color: #71717a;
}

[data-theme="dark"] .stat-value,
[data-theme="dark"] .metric-value,
[data-theme="dark"] .data-value {
  color: #a1a1aa !important;
}

[data-theme="dark"] .stat-label,
[data-theme="dark"] .metric-label,
[data-theme="dark"] .data-label {
  color: #52525b !important;
}

/* ==================== 14. 标签/徽章覆盖 ==================== */
[data-theme="dark"] .tag,
[data-theme="dark"] .chip,
[data-theme="dark"] .label-tag {
  background: #27272a !important;
  color: #71717a !important;
  border-color: #3f3f46 !important;
}

/* ==================== 15. 工具提示/弹出框覆盖==================== */
[data-theme="dark"] .tooltip-inner {
  background: #27272a !important;
  color: #a1a1aa !important;
}

[data-theme="dark"] .tooltip-arrow {
  border-color: #27272a !important;
}

[data-theme="dark"] .popover {
  background: #111113 !important;
  border-color: #27272a !important;
}

[data-theme="dark"] .popover-body {
  color: #71717a;
}

[data-theme="dark"] .popover-header {
  background: #0a0a0b !important;
  color: #a1a1aa !important;
  border-bottom-color: #1f1f23 !important;
}

/* ==================== 16. 热力图模块覆盖==================== */
[data-theme="dark"] .heatmap-grid,
[data-theme="dark"] .heatmap-cell {
  border-color: #1f1f23 !important;
}

[data-theme="dark"] .heatmap-legend {
  background: #111113 !important;
  color: #71717a;
}

[data-theme="dark"] .heatmap-info,
[data-theme="dark"] .heatmap-detail {
  background: #111113 !important;
  color: #71717a;
  border-color: #1f1f23 !important;
}

/* ==================== 17. 预算模块覆盖 ==================== */
[data-theme="dark"] .budget-summary,
[data-theme="dark"] .budget-detail {
  background: #111113 !important;
  color: #71717a;
  border-color: #1f1f23 !important;
}

[data-theme="dark"] .budget-total {
  color: #a1a1aa !important;
}

/* ==================== 18. 案例模块覆盖 ==================== */
[data-theme="dark"] .case-card,
[data-theme="dark"] .case-item {
  background: #111113 !important;
  border-color: #1f1f23 !important;
}

[data-theme="dark"] .case-title {
  color: #a1a1aa !important;
}

[data-theme="dark"] .case-desc,
[data-theme="dark"] .case-description {
  color: #52525b !important;
}

/* ==================== 19. 3D空间模块覆盖 ==================== */
[data-theme="dark"] .space-viewer,
[data-theme="dark"] .space-canvas-container {
  background: #000000 !important;
}

[data-theme="dark"] .space-controls,
[data-theme="dark"] .space-toolbar {
  background: #111113 !important;
  border-color: #1f1f23 !important;
  color: #71717a;
}

/* ==================== 20. 结果模块覆盖 ==================== */
[data-theme="dark"] .result-summary,
[data-theme="dark"] .result-detail {
  background: #111113 !important;
  color: #71717a;
  border-color: #1f1f23 !important;
}

/* ==================== 21. 游戏化模块覆盖==================== */
[data-theme="dark"] .achievement-card,
[data-theme="dark"] .reward-item {
  background: #111113 !important;
  border-color: #1f1f23 !important;
  color: #71717a;
}

[data-theme="dark"] .progress-bar-container {
  background: #1f1f23 !important;
}

/* ==================== 22. 情绪互动模块覆盖 ==================== */
[data-theme="dark"] .emotion-card,
[data-theme="dark"] .emotion-item {
  border-color: #1f1f23 !important;
}

/* ==================== 23. 登录/注册页面覆盖 ==================== */
[data-theme="dark"] .login-container,
[data-theme="dark"] .register-container,
[data-theme="dark"] .auth-container {
  background: #000000 !important;
}

[data-theme="dark"] .login-card,
[data-theme="dark"] .register-card,
[data-theme="dark"] .auth-card {
  background: #111113 !important;
  border-color: #1f1f23 !important;
  color: #a1a1aa;
}

[data-theme="dark"] .login-title,
[data-theme="dark"] .register-title {
  color: #a1a1aa !important;
}

/* ==================== 24. 个人中心页面覆盖 ==================== */
[data-theme="dark"] .profile-container,
[data-theme="dark"] .user-profile {
  background: #000000 !important;
}

[data-theme="dark"] .profile-card {
  background: #111113 !important;
  border-color: #1f1f23 !important;
}

/* ==================== 25. 关于页面覆盖 ==================== */
[data-theme="dark"] .about-container,
[data-theme="dark"] .about-section {
  background: #000000 !important;
}

/* ==================== 26. 通用白色背景面板 - 最强覆盖==================== */
[data-theme="dark"] .white-panel,
[data-theme="dark"] .white-card,
[data-theme="dark"] .white-bg,
[data-theme="dark"] .light-bg,
[data-theme="dark"] .light-panel,
[data-theme="dark"] .bg-light {
  background: #111113 !important;
  color: #71717a;
}

/* ==================== 27. 滚动条覆盖==================== */
[data-theme="dark"] ::-webkit-scrollbar {
  background: #0a0a0b;
}

[data-theme="dark"] ::-webkit-scrollbar-thumb {
  background: #27272a;
}

[data-theme="dark"] ::-webkit-scrollbar-thumb:hover {
  background: #3f3f46;
}

[data-theme="dark"] ::-webkit-scrollbar-track {
  background: #0a0a0b;
}

/* ==================== 28. 选中文字覆盖 ==================== */
[data-theme="dark"] ::selection {
  background: #27272a;
  color: #a1a1aa;
}

/* ==================== 29. 图片/图标亮度调整 ==================== */
[data-theme="dark"] img:not([src*="logo"]):not([src*="icon"]) {
  opacity: 0.85;
}

[data-theme="dark"] img:not([src*="logo"]):not([src*="icon"]):hover {
  opacity: 1;
}

/* ==================== 30. 代码块覆盖==================== */
[data-theme="dark"] code,
[data-theme="dark"] pre {
  background: #111113 !important;
  color: #71717a !important;
  border-color: #1f1f23 !important;
}

/* ================================================================
   特殊元素暗黑模式覆盖 - 针对选中的元素   ================================================================ */

/* ==================== 首页 Hero 板块 ==================== */

/* 1. Hero区域主体 - 确保完全黑色背景 */
[data-theme="dark"] .portfolio-hero-section {
  background-color: #000000 !important;
  background-image: none !important;
  /* 移动端视口完全覆盖*/
  min-height: 100vh;
  min-height: 100dvh;
}

/* 2. 所有遮罩层 - 暗黑模式优化 */
[data-theme="dark"] .portfolio-hero-overlay {
  background: transparent !important;
}

/* 暗色遮罩 - 增强对比度*/
[data-theme="dark"] .portfolio-hero-overlay-dark {
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.88) 0%,
    rgba(0, 0, 0, 0.72) 25%,
    rgba(0, 0, 0, 0.48) 50%,
    rgba(0, 0, 0, 0.65) 75%,
    rgba(0, 0, 0, 0.82) 100%
  ) !important;
}

/* 渐变遮罩 - 降低亮度，使用深色调 */
[data-theme="dark"] .portfolio-hero-overlay-gradient {
  background:
    radial-gradient(ellipse 80% 60% at 25% 35%, rgba(161, 161, 170, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 72% 55%, rgba(161, 161, 170, 0.05) 0%, transparent 55%),
    radial-gradient(ellipse 70% 50% at 50% 75%, rgba(139, 92, 246, 0.04) 0%, transparent 60%) !important;
  mix-blend-mode: normal !important;
}

/* 底部渐变 - 关键修复：从白色改为黑色*/
[data-theme="dark"] .portfolio-hero-overlay-bottom {
  background: linear-gradient(
    to top,
    #060608 0%,
    rgba(6, 6, 8, 0.9) 10%,
    rgba(6, 6, 8, 0.5) 25%,
    rgba(6, 6, 8, 0) 40%
  ) !important;
}

/* 3. 装饰元素 - 暗黑模式适配 */
[data-theme="dark"] .portfolio-hero-decoration {
  opacity: 0.25;
}

/* 装饰线 - 改为深灰色*/
[data-theme="dark"] .portfolio-hero-line-left,
[data-theme="dark"] .portfolio-hero-line-right {
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(113, 113, 122, 0.15) 10%,
    rgba(113, 113, 122, 0.25) 35%,
    rgba(113, 113, 122, 0.25) 65%,
    rgba(113, 113, 122, 0.15) 90%,
    transparent 100%
  ) !important;
}

/* 4. 环境光效果 - 降低亮度 */
[data-theme="dark"] .hero-ambient-glow {
  opacity: 0.12;
}

[data-theme="dark"] .hero-glow-1,
[data-theme="dark"] .hero-glow-2,
[data-theme="dark"] .hero-glow-3 {
  background: radial-gradient(
    circle,
    rgba(161, 161, 170, 0.04) 0%,
    transparent 70%
  ) !important;
}

/* 5. 网格装饰 */
[data-theme="dark"] .hero-grid-decoration {
  opacity: 0.08;
  background-image:
    linear-gradient(rgba(113, 113, 122, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(113, 113, 122, 0.08) 1px, transparent 1px) !important;
}

/* 6. 粒子效果 */
[data-theme="dark"] .hero-particles {
  opacity: 0.15;
}

/* 7. 内容区域 - 完全黑色背景 */
[data-theme="dark"] .portfolio-hero-content {
  background-color: transparent !important;
  background-image: none !important;
}

[data-theme="dark"] .portfolio-hero-container {
  background-color: transparent !important;
  background-image: none !important;
}

[data-theme="dark"] .portfolio-hero-title,
[data-theme="dark"] .hero-title-line {
  color: rgba(255, 255, 255, 0.88) !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5), 0 2px 12px rgba(0, 0, 0, 0.3) !important;
}

[data-theme="dark"] .portfolio-hero-subtitle {
  color: rgba(255, 255, 255, 0.55) !important;
}

[data-theme="dark"] .subtitle-text {
  color: rgba(255, 255, 255, 0.75) !important;
}

[data-theme="dark"] .subtitle-accent {
  color: rgba(255, 255, 255, 0.45) !important;
}

[data-theme="dark"] .playground-link-premium {
  color: rgba(255, 255, 255, 0.55) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  background: rgba(255, 255, 255, 0.03) !important;
}

[data-theme="dark"] .portfolio-hero-button-primary {
  background: rgba(255, 255, 255, 0.92) !important;
  color: #0a0a0a !important;
  border-color: rgba(255, 255, 255, 0.92) !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 4px 16px rgba(0, 0, 0, 0.25) !important;
}

[data-theme="dark"] .portfolio-hero-button-secondary {
  border-color: rgba(255, 255, 255, 0.15) !important;
  color: rgba(255, 255, 255, 0.65) !important;
}

[data-theme="dark"] .portfolio-hero-scroll-text {
  color: rgba(255, 255, 255, 0.3) !important;
}

[data-theme="dark"] .portfolio-hero-scroll-line {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.35) 0%,
    rgba(255, 255, 255, 0.08) 100%
  ) !important;
}

[data-theme="dark"] .portfolio-hero-scroll-line::after {
  background: rgba(255, 255, 255, 0.5) !important;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.2) !important;
}

[data-theme="dark"] .portfolio-hero-divider {
  background: rgba(255, 255, 255, 0.3) !important;
}

[data-theme="dark"] .portfolio-hero-divider::after {
  background: rgba(255, 255, 255, 0.4) !important;
}

/* ==================== 产品管线展示 - 暗黑模式 ==================== */
[data-theme="dark"] .pipeline-showcase-section {
  background: #060608;
}

[data-theme="dark"] .pipeline-line {
  background: rgba(255, 255, 255, 0.12);
}

[data-theme="dark"] .pipeline-title {
  color: rgba(255, 255, 255, 0.88) !important;
}

[data-theme="dark"] .pipeline-subtitle {
  color: rgba(255, 255, 255, 0.42) !important;
}

[data-theme="dark"] .pipeline-label {
  color: rgba(255, 255, 255, 0.35) !important;
}

[data-theme="dark"] .pipeline-step-title {
  color: rgba(255, 255, 255, 0.85) !important;
}

[data-theme="dark"] .pipeline-step-desc {
  color: rgba(255, 255, 255, 0.42) !important;
}

[data-theme="dark"] .pipeline-step-number {
  color: rgba(255, 255, 255, 0.5) !important;
}

[data-theme="dark"] .pipeline-step-icon {
  color: rgba(255, 255, 255, 0.55) !important;
}

[data-theme="dark"] .pipeline-preview {
  border-color: rgba(255, 255, 255, 0.06) !important;
  background: #0d0d10 !important;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3) !important;
}

[data-theme="dark"] .pipeline-preview-label {
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7)) !important;
}

[data-theme="dark"] .pipeline-tech-divider {
  background: rgba(255, 255, 255, 0.08) !important;
}

[data-theme="dark"] .pipeline-tech-item {
  color: rgba(255, 255, 255, 0.3) !important;
}

[data-theme="dark"] .pipeline-tech-dot {
  color: rgba(255, 255, 255, 0.1) !important;
}

[data-theme="dark"] .pipeline-arrow {
  color: rgba(255, 255, 255, 0.1) !important;
}

/* ==================== 场景/痛点导航 ==================== */
[data-theme="dark"] .scene-nav,
[data-theme="dark"] .pain-nav {
  background: #000000 !important;
  border-bottom-color: #1f1f23 !important;
}

[data-theme="dark"] .scene-back-link,
[data-theme="dark"] .pain-back-link {
  color: #71717a !important;
}

/* ==================== 痛点卡片 ==================== */
[data-theme="dark"] .pain-card {
  background: #111113 !important;
  border-color: #1f1f23 !important;
}

[data-theme="dark"] .pain-card-desc {
  color: #71717a !important;
}

[data-theme="dark"] .pain-card-quadrant {
  color: #52525b !important;
}

[data-theme="dark"] .pain-card-indicator {
  color: #3f3f46 !important;
}

/* ==================== 核心能力展示板块 - 高级质感暗黑模式 ==================== */
[data-theme="dark"] .portfolio-features-section {
  background: #060608;
  border-top-color: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .portfolio-features-title {
  color: rgba(255, 255, 255, 0.85);
}

[data-theme="dark"] .portfolio-features-subtitle {
  color: rgba(255, 255, 255, 0.4);
}

[data-theme="dark"] .portfolio-feature-item {
  background: #111113;
  border-color: #27272a;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .portfolio-feature-item:hover {
  transform: translateY(-4px);
  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.35),
    0 12px 32px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .feature-image-wrapper {
  background: transparent !important;
}

[data-theme="dark"] .feature-label {
  color: rgba(255, 255, 255, 0.35);
}

[data-theme="dark"] .feature-title {
  color: rgba(255, 255, 255, 0.85);
}

[data-theme="dark"] .feature-description {
  color: rgba(255, 255, 255, 0.42);
}

[data-theme="dark"] .feature-learn-more {
  color: rgba(255, 255, 255, 0.42);
}

[data-theme="dark"] .feature-learn-more:hover {
  color: rgba(255, 255, 255, 0.85);
  transform: translateY(-1px);
}

[data-theme="dark"] .feature-learn-more {
  color: rgba(255, 255, 255, 0.42);
  transition: color 0.22s cubic-bezier(0.25, 0.1, 0.25, 1), transform 0.22s cubic-bezier(0.25, 0.1, 0.25, 1);
}

[data-theme="dark"] .features-control-btn {
  background: #1a1a1e;
  border-color: #27272a;
  color: rgba(255, 255, 255, 0.42);
}

[data-theme="dark"] .features-control-btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.88);
  border-color: rgba(255, 255, 255, 0.88);
  color: #1d1d1f;
  box-shadow: 0 2px 12px rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .features-control-btn:disabled {
  opacity: 0.25;
}

/* ==================== 技术栈卡片 - inline style白色 ==================== */
[data-theme="dark"] .fade-in-up[style*="background: rgb(250, 250, 250)"],
[data-theme="dark"] .fade-in-up[style*="background: rgb(255, 255, 255)"] {
  background: #111113 !important;
  border-color: #1f1f23 !important;
}

[data-theme="dark"] .fade-in-up h3 {
  color: #a1a1aa !important;
}

[data-theme="dark"] .fade-in-up [style*="background:#1a1a1a"],
[data-theme="dark"] .fade-in-up [style*="background: #1a1a1a"] {
  background: #27272a !important;
  color: #a1a1aa !important;
}

[data-theme="dark"] .fade-in-up [style*="background:#ffffff"],
[data-theme="dark"] .fade-in-up [style*="background: #ffffff"] {
  background: #18181b !important;
  border-color: #27272a !important;
  color: #71717a !important;
}

[data-theme="dark"] .fade-in-up [style*="color:#1a1a1a"],
[data-theme="dark"] .fade-in-up [style*="color: #1a1a1a"] {
  color: #71717a !important;
}

[data-theme="dark"] .fade-in-up [style*="stroke:currentColor"] svg {
  stroke: #71717a !important;
}

[data-theme="dark"] .fade-in-up [style*="fill:currentColor"] svg {
  fill: #71717a !important;
}

/* ==================== 新闻卡片 - 优化排版和暗黑模式==================== */
[data-theme="dark"] .news-card {
  background: transparent !important;
}

/* 已删除：news-card 通配规则 .news-card * - 破坏了卡片内部精心设计的背景层次 */

/* 直接子容器*/
[data-theme="dark"] .news-card > div {
  background: #111113 !important;
  border-color: #1f1f23 !important;
}

/* 所有带内联 style 属性的子元素*/
[data-theme="dark"] .news-card [style*="background"] {
  background: #111113 !important;
  background-color: #111113 !important;
}

[data-theme="dark"] .news-card [style*="background:#fafafa"],
[data-theme="dark"] .news-card [style*="background: #fafafa"] {
  background: #111113 !important;
  border-color: #1f1f23 !important;
}

[data-theme="dark"] .news-card [style*="background:#f5f5f7"],
[data-theme="dark"] .news-card [style*="background: #f5f5f7"] {
  background: #0a0a0b !important;
  border-color: #1f1f23 !important;
}

[data-theme="dark"] .news-card [style*="background:rgba(255, 255, 255, 0.95)"],
[data-theme="dark"] .news-card [style*="background: rgba(255, 255, 255, 0.95)"] {
  background: rgba(63, 63, 70, 0.95) !important;
  border-color: #27272a !important;
}

/* 强覆盖所有文字颜色*/
[data-theme="dark"] .news-card [style*="color"] {
  color: #71717a !important;
}

[data-theme="dark"] .news-card [style*="color:#1a1a1a"],
[data-theme="dark"] .news-card [style*="color: #1a1a1a"] {
  color: #71717a !important;
}

[data-theme="dark"] .news-card [style*="color:#8a8a8a"],
[data-theme="dark"] .news-card [style*="color: #8a8a8a"],
[data-theme="dark"] .news-card [style*="color:#6b6b6b"],
[data-theme="dark"] .news-card [style*="color: #6b6b6b"] {
  color: #52525b !important;
}

[data-theme="dark"] .news-card h3,
[data-theme="dark"] .news-card [style*="font-size:18px"] {
  color: #a1a1aa !important;
}

[data-theme="dark"] .news-card p,
[data-theme="dark"] .news-card [style*="font-size:14px"] {
  color: #52525b !important;
}

[data-theme="dark"] .news-card [style*="stroke:#1a1a1a"],
[data-theme="dark"] .news-card [style*="stroke: #1a1a1a"] {
  stroke: #71717a !important;
}

/* ==================== 通用 inline style 白色覆盖 - 终极兜底 ==================== */
/* 覆盖所有背景色 */
[data-theme="dark"] [style*="background: rgb(255, 255, 255)"]:not(.portfolio-hero-section):not(.portfolio-hero-content):not(.portfolio-hero-container):not([class*="hero-overlay"]):not([class*="methodology"]):not([class*="pipeline"]):not([class*="proof"]):not([class*="mockup"]):not([class*="faq"]):not([class*="flow-"]):not(#emotion-playground-wrapper):not([class*="emotion-playground"]),
[data-theme="dark"] [style*="background:rgb(255,255,255)"]:not(.portfolio-hero-section):not(.portfolio-hero-content):not(.portfolio-hero-container):not([class*="hero-overlay"]):not([class*="methodology"]):not([class*="pipeline"]):not([class*="proof"]):not([class*="mockup"]):not([class*="faq"]):not([class*="flow-"]):not(#emotion-playground-wrapper):not([class*="emotion-playground"]),
[data-theme="dark"] [style*="background-color: rgb(255, 255, 255)"]:not(.portfolio-hero-section):not(.portfolio-hero-content):not(.portfolio-hero-container):not([class*="hero-overlay"]):not([class*="methodology"]):not([class*="pipeline"]):not([class*="proof"]):not([class*="mockup"]):not([class*="faq"]):not([class*="flow-"]):not(#emotion-playground-wrapper):not([class*="emotion-playground"]),
[data-theme="dark"] [style*="background-color:rgb(255,255,255)"]:not(.portfolio-hero-section):not(.portfolio-hero-content):not(.portfolio-hero-container):not([class*="hero-overlay"]):not([class*="methodology"]):not([class*="pipeline"]):not([class*="proof"]):not([class*="mockup"]):not([class*="faq"]):not([class*="flow-"]):not(#emotion-playground-wrapper):not([class*="emotion-playground"]) {
  background: #111113 !important;
  background-color: #111113 !important;
}

[data-theme="dark"] [style*="background: rgb(250, 250, 250)"]:not(.portfolio-hero-section):not(.portfolio-hero-content):not(.portfolio-hero-container):not([class*="hero-overlay"]):not([class*="methodology"]):not([class*="pipeline"]):not([class*="proof"]):not([class*="mockup"]):not([class*="faq"]):not([class*="flow-"]):not(#emotion-playground-wrapper):not([class*="emotion-playground"]),
[data-theme="dark"] [style*="background:rgb(250,250,250)"]:not(.portfolio-hero-section):not(.portfolio-hero-content):not(.portfolio-hero-container):not([class*="hero-overlay"]):not([class*="methodology"]):not([class*="pipeline"]):not([class*="proof"]):not([class*="mockup"]):not([class*="faq"]):not([class*="flow-"]):not(#emotion-playground-wrapper):not([class*="emotion-playground"]),
[data-theme="dark"] [style*="background-color: rgb(250, 250, 250)"]:not(.portfolio-hero-section):not(.portfolio-hero-content):not(.portfolio-hero-container):not([class*="hero-overlay"]):not([class*="methodology"]):not([class*="pipeline"]):not([class*="proof"]):not([class*="mockup"]):not([class*="faq"]):not([class*="flow-"]):not(#emotion-playground-wrapper):not([class*="emotion-playground"]),
[data-theme="dark"] [style*="background-color:rgb(250,250,250)"]:not(.portfolio-hero-section):not(.portfolio-hero-content):not(.portfolio-hero-container):not([class*="hero-overlay"]):not([class*="methodology"]):not([class*="pipeline"]):not([class*="proof"]):not([class*="mockup"]):not([class*="faq"]):not([class*="flow-"]):not(#emotion-playground-wrapper):not([class*="emotion-playground"]) {
  background: #0a0a0b !important;
  background-color: #0a0a0b !important;
}

/* 覆盖所有边框色 */
[data-theme="dark"] [style*="border: 1px solid rgb(232, 232, 232)"],
[data-theme="dark"] [style*="border:1px solid rgb(232,232,232)"],
[data-theme="dark"] [style*="border-color: rgb(232, 232, 232)"],
[data-theme="dark"] [style*="border-color:rgb(232,232,232)"] {
  border-color: #1f1f23 !important;
}

/* 覆盖所有文字色 */
[data-theme="dark"] [style*="color: rgb(26, 26, 26)"],
[data-theme="dark"] [style*="color:rgb(26,26,26)"],
[data-theme="dark"] [style*="color: rgb(10, 10, 10)"],
[data-theme="dark"] [style*="color:rgb(10,10,10)"] {
  color: #71717a !important;
}

[data-theme="dark"] [style*="color: rgb(138, 138, 138)"],
[data-theme="dark"] [style*="color:rgb(138,138,138)"],
[data-theme="dark"] [style*="color: rgb(107, 107, 107)"],
[data-theme="dark"] [style*="color:rgb(107,107,107)"] {
  color: #52525b !important;
}

/* 覆盖所有背景色 - 其他区*/
[data-theme="dark"] [style*="background: rgb(26, 26, 26)"],
[data-theme="dark"] [style*="background:rgb(26,26,26)"],
[data-theme="dark"] [style*="background-color: rgb(26, 26, 26)"],
[data-theme="dark"] [style*="background-color:rgb(26,26,26)"] {
  background: #27272a !important;
  background-color: #27272a !important;
  color: #a1a1aa !important;
}

/* 覆盖边框色 - 其他区*/
[data-theme="dark"] [style*="border: 1.5px solid rgb(26, 26, 26)"],
[data-theme="dark"] [style*="border:1.5px solid rgb(26,26,26)"],
[data-theme="dark"] [style*="border-color: rgb(26, 26, 26)"],
[data-theme="dark"] [style*="border-color:rgb(26,26,26)"] {
  border-color: #3f3f46 !important;
}

[data-theme="dark"] [style*="border: 1.5px solid rgb(208, 208, 208)"],
[data-theme="dark"] [style*="border:1.5px solid rgb(208,208,208)"],
[data-theme="dark"] [style*="border-color: rgb(208, 208, 208)"],
[data-theme="dark"] [style*="border-color:rgb(208,208,208)"] {
  border-color: #27272a !important;
}

/* 覆盖 SVG stroke 和 fill */
[data-theme="dark"] [style*="stroke: rgb(26, 26, 26)"],
[data-theme="dark"] [style*="stroke:rgb(26,26,26)"] {
  stroke: #71717a !important;
}

[data-theme="dark"] [style*="fill: rgb(255, 255, 255)"],
[data-theme="dark"] [style*="fill:rgb(255,255,255)"] {
  fill: #27272a !important;
}

[data-theme="dark"] [style*="color: rgb(255, 255, 255)"],
[data-theme="dark"] [style*="color:rgb(255,255,255)"] {
  color: #a1a1aa !important;
}

/* 已删除：全局 color 覆盖 [style*="color"] - 破坏了品牌色和强调色 */
/* 已删除：全局 background 覆盖 [style*="background"] - 破坏了渐变和半透明背景 */
/* 已删除：全局边框色覆盖 * - 破坏了精心设计的边框层次 */

/* 例外：保留图片背景*/
[data-theme="dark"] img[style*="background"] {
  background-color: transparent !important;
}

/* 最最终极的规则：针对新闻卡片所有元素*/
[data-theme="dark"] .news-card [style],
[data-theme="dark"] .news-card div[style],
[data-theme="dark"] .news-card span[style],
[data-theme="dark"] .news-card h3[style],
[data-theme="dark"] .news-card p[style],
[data-theme="dark"] .news-card svg[style] {
  background-color: #111113 !important;
  background: #111113 !important;
  color: #71717a !important;
  border-color: #1f1f23 !important;
  stroke: #71717a !important;
  fill: #71717a !important;
}

[data-theme="dark"] .news-card [style*="background:#fafafa"],
[data-theme="dark"] .news-card [style*="background: #fafafa"] {
  background-color: #111113 !important;
  background: #111113 !important;
}

[data-theme="dark"] .news-card [style*="background:#f5f5f7"],
[data-theme="dark"] .news-card [style*="background: #f5f5f7"] {
  background-color: #0a0a0b !important;
  background: #0a0a0b !important;
}

[data-theme="dark"] .news-card [style*="background:rgba(255, 255, 255, 0.95)"] {
  background-color: rgba(63, 63, 70, 0.95) !important;
  background: rgba(63, 63, 70, 0.95) !important;
}

[data-theme="dark"] .news-card [style*="color:#1a1a1a"] {
  color: #71717a !important;
}

[data-theme="dark"] .news-card [style*="color:#8a8a8a"],
[data-theme="dark"] .news-card [style*="color:#6b6b6b"] {
  color: #52525b !important;
}

/* ==================== 新闻动态页面 - 全新设计 V2 暗黑模式 ==================== */
[data-theme="dark"] .news-page {
  background: #000000 !important;
  background-color: #000000 !important;
}

[data-theme="dark"] .news-header-bar {
  background: #000000 !important;
  background-color: #000000 !important;
  border-bottom-color: #1c1c1f;
}

[data-theme="dark"] .news-back-link {
  color: #71717a;
  border-color: #27272a;
  background: #18181b;
}

[data-theme="dark"] .news-back-link:hover {
  color: #a1a1aa;
  background: #27272a;
  border-color: #3f3f46;
}

[data-theme="dark"] .news-content {
  /* 保持原有 padding */
}

/* 英雄区域 */
[data-theme="dark"] .news-hero-badge {
  background: #fafafa;
  color: #18181b;
}

[data-theme="dark"] .news-hero-title {
  color: #fafafa;
}

[data-theme="dark"] .news-hero-desc {
  color: #a1a1aa;
}

/* 筛选按钮*/
[data-theme="dark"] .news-filters-wrap {
  background: #18181b;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

[data-theme="dark"] .news-filter-btn {
  color: #a1a1aa;
}

[data-theme="dark"] .news-filter-btn:hover {
  color: #e4e4e7;
  background: #27272a;
}

[data-theme="dark"] .news-filter-btn::before {
  background: #fafafa;
}

[data-theme="dark"] .news-filter-btn.active {
  color: #ffffff;
}

/* 新闻卡片 - 左图右文布局 */
[data-theme="dark"] .news-grid {
  gap: 28px;
}

[data-theme="dark"] .news-card-new {
  background: #18181b;
  border-color: #27272a;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 4px 12px rgba(0, 0, 0, 0.08);
}

[data-theme="dark"] .news-card-new.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

[data-theme="dark"] .news-card-new:hover {
  border-color: #3f3f46;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 8px 24px rgba(0, 0, 0, 0.25);
}

/* 图片区域 */
[data-theme="dark"] .news-card-img-overlay {
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.35) 100%);
}

[data-theme="dark"] .news-card-tag {
  background: rgba(39, 39, 42, 0.95);
  backdrop-filter: blur(8px);
  color: #d4d4d8;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* 内容区域 */
[data-theme="dark"] .news-card-body {
  /* 保持原有 padding */
}

[data-theme="dark"] .news-card-time {
  color: #71717a;
}

[data-theme="dark"] .news-card-heading {
  color: #fafafa;
}

[data-theme="dark"] .news-card-new:hover .news-card-heading {
  color: #ffffff;
}

[data-theme="dark"] .news-card-text {
  color: #a1a1aa;
}

[data-theme="dark"] .news-card-action {
  color: #e4e4e7;
}

[data-theme="dark"] .news-card-action:hover {
  color: #ffffff;
}

[data-theme="dark"] .news-card-arrow-icon {
  stroke: currentColor;
}

/* 加载更多按钮 */
[data-theme="dark"] .news-load-more-btn {
  border-color: #27272a;
  background: #18181b;
  color: #a1a1aa;
}

[data-theme="dark"] .news-load-more-btn:hover {
  border-color: #e4e4e7;
  color: #e4e4e7;
  box-shadow: 0 8px 24px rgba(228, 228, 231, 0.1);
}

/* 订阅区域 - 黑白渐变 */
[data-theme="dark"] .news-subscribe-box {
  background: linear-gradient(135deg, #27272a 0%, #18181b 100%);
}

[data-theme="dark"] .news-subscribe-box::before {
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
}

[data-theme="dark"] .news-subscribe-icon {
  filter: drop-shadow(0 4px 16px rgba(0, 0, 0, 0.4));
}

[data-theme="dark"] .news-subscribe-title {
  color: #ffffff;
}

[data-theme="dark"] .news-subscribe-text {
  color: rgba(255, 255, 255, 0.85);
}

[data-theme="dark"] .news-subscribe-input {
  background: rgba(255, 255, 255, 0.95);
  color: #18181b;
}

[data-theme="dark"] .news-subscribe-input::placeholder {
  color: #71717a;
}

[data-theme="dark"] .news-subscribe-input:focus {
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2);
}

[data-theme="dark"] .news-subscribe-submit {
  background: #fafafa;
  color: #18181b;
}

[data-theme="dark"] .news-subscribe-submit:hover {
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

[data-theme="dark"] .news-subscribe-submit.success {
  background: #34d399;
}

/* ==================== 功能详情弹窗 - 完整暗黑模式适配 ==================== */
[data-theme="dark"] .feature-modal-overlay {
  background: rgba(0, 0, 0, 0.75) !important;
}

[data-theme="dark"] .feature-modal {
  background: #18181b !important;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.6) !important;
}

[data-theme="dark"] .feature-modal-close {
  background: rgba(63, 63, 70, 0.5) !important;
  color: #e4e4e7 !important;
}

[data-theme="dark"] .feature-modal-close:hover {
  background: rgba(63, 63, 70, 0.8) !important;
}

[data-theme="dark"] .feature-modal-image-wrapper {
  background: #27272a !important;
}

[data-theme="dark"] .feature-modal-image {
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4) !important;
}

[data-theme="dark"] .feature-modal-text {
  background: transparent !important;
}

[data-theme="dark"] .feature-modal-label {
  color: #71717a !important;
}

[data-theme="dark"] .feature-modal-title {
  color: #fafafa !important;
}

[data-theme="dark"] .feature-modal-description {
  color: #a1a1aa !important;
}

[data-theme="dark"] .feature-modal-detail-item {
  border-bottom-color: #3f3f46 !important;
}

[data-theme="dark"] .feature-modal-detail-icon {
  color: #a1a1aa !important;
}

[data-theme="dark"] .feature-modal-detail-text {
  color: #e4e4e7 !important;
}

[data-theme="dark"] .feature-modal-cta {
  background: #fafafa !important;
  color: #09090b !important;
}

[data-theme="dark"] .feature-modal-cta:hover {
  background: #ffffff !important;
}

[data-theme="dark"] .feature-modal-cta::after {
  border-top-color: #09090b !important;
  border-right-color: #09090b !important;
}

/* ==================== 热力图分析页面（AI诊断） 完整暗黑模式适配 ==================== */
[data-theme="dark"] .heatmap-module {
  background: #000000 !important;
}

[data-theme="dark"] .heatmap-nav {
  background: #000000 !important;
}

[data-theme="dark"] .heatmap-back-link {
  color: #71717a !important;
  border-color: transparent !important;
  background: transparent !important;
}

[data-theme="dark"] .heatmap-back-link:hover {
  color: #a1a1aa !important;
  background: transparent !important;
}

/* 页面标题 */
[data-theme="dark"] .heatmap-header-section {
  background: #000000 !important;
}

[data-theme="dark"] .heatmap-label {
  color: #71717a !important;
}

[data-theme="dark"] .heatmap-main-title {
  color: #a1a1aa !important;
}

[data-theme="dark"] .heatmap-sub-description {
  color: #a1a1aa !important;
}

/* 内容区域 */
[data-theme="dark"] .heatmap-content-section {
  background: #000000 !important;
}

/* 分析模式选择 */
[data-theme="dark"] .heatmap-mode-section {
  background: #000000 !important;
}

[data-theme="dark"] .heatmap-section-label {
  color: #71717a !important;
}

[data-theme="dark"] .heatmap-section-title {
  color: #a1a1aa !important;
}

[data-theme="dark"] .heatmap-mode-card {
  background: #18181b !important;
  border-color: #27272a !important;
}

[data-theme="dark"] .heatmap-mode-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
}

[data-theme="dark"] .heatmap-mode-card.selected {
  box-shadow: 0 0 0 3px rgba(161, 161, 170, 0.15) !important;
}

[data-theme="dark"] .heatmap-mode-icon {
  background: #27272a !important;
  color: #a1a1aa !important;
}

[data-theme="dark"] .heatmap-mode-card:hover .heatmap-mode-icon {
  background: #3f3f46 !important;
}

[data-theme="dark"] .heatmap-mode-card.selected .heatmap-mode-icon {
  background: #a1a1aa !important;
  color: #09090b !important;
}

[data-theme="dark"] .heatmap-mode-title {
  color: #a1a1aa !important;
}

[data-theme="dark"] .heatmap-mode-desc {
  color: #a1a1aa !important;
}

[data-theme="dark"] .heatmap-mode-feature {
  background: rgba(63, 63, 70, 0.4) !important;
  color: #a1a1aa !important;
}

/* 底部操作按钮 */
[data-theme="dark"] .heatmap-actions-section {
  background: #000000 !important;
}

[data-theme="dark"] .heatmap-btn-outline {
  border-color: #27272a !important;
  color: #a1a1aa !important;
}

[data-theme="dark"] .heatmap-btn-outline:hover {
  background: #27272a !important;
}

[data-theme="dark"] .heatmap-btn-primary {
  background: #a1a1aa !important;
  color: #09090b !important;
}

[data-theme="dark"] .heatmap-btn-primary:hover {
  background: #d4d4d8 !important;
}

[data-theme="dark"] .heatmap-btn-primary:disabled {
  background: #3f3f46 !important;
  color: #71717a !important;
}

/* ==================== 热力图分析页面 - 上传区域暗黑模式适配 ==================== */
[data-theme="dark"] .heatmap-upload-section {
  background: #000000 !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15), 0 4px 12px rgba(0, 0, 0, 0.2) !important;
}

[data-theme="dark"] .heatmap-upload-type {
  color: #a1a1aa !important;
  background: rgba(63, 63, 70, 0.4) !important;
}

[data-theme="dark"] .heatmap-upload-hint-text {
  color: #a1a1aa !important;
}

[data-theme="dark"] .heatmap-upload-area {
  border-color: #3f3f46 !important;
  background: #27272a !important;
}

[data-theme="dark"] .heatmap-upload-area:hover,
[data-theme="dark"] .heatmap-upload-area.dragover {
  border-color: #a1a1aa !important;
  background: #3f3f46 !important;
}

[data-theme="dark"] .heatmap-upload-icon {
  background: #3f3f46 !important;
  color: #a1a1aa !important;
}

[data-theme="dark"] .heatmap-upload-area:hover .heatmap-upload-icon,
[data-theme="dark"] .heatmap-upload-area.dragover .heatmap-upload-icon {
  background: rgba(250, 250, 250, 0.1) !important;
  color: #a1a1aa !important;
}

[data-theme="dark"] .heatmap-upload-title {
  color: #a1a1aa !important;
}

[data-theme="dark"] .heatmap-upload-text {
  color: #a1a1aa !important;
}

[data-theme="dark"] .heatmap-upload-hint {
  color: #71717a !important;
}

[data-theme="dark"] .heatmap-upload-btn {
  background: #a1a1aa !important;
  color: #09090b !important;
}

[data-theme="dark"] .heatmap-upload-btn:hover {
  background: #d4d4d8 !important;
}

/* ==================== 热力图分析页面 - 文件预览暗黑模式适配 ==================== */
[data-theme="dark"] .heatmap-preview-container {
  background: #27272a !important;
}

[data-theme="dark"] .heatmap-preview-media {
  background: #3f3f46 !important;
}

[data-theme="dark"] .heatmap-preview-name {
  color: #a1a1aa !important;
}

[data-theme="dark"] .heatmap-preview-size {
  color: #a1a1aa !important;
}

[data-theme="dark"] .heatmap-btn-remove {
  color: #ef4444 !important;
}

[data-theme="dark"] .heatmap-btn-remove:hover {
  background: rgba(239, 68, 68, 0.1) !important;
}

/* ==================== 热力图分析页面 - 结果区域暗黑模式适配 ==================== */
[data-theme="dark"] .heatmap-result-section {
  background: #000000 !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15), 0 4px 12px rgba(0, 0, 0, 0.2) !important;
}

[data-theme="dark"] .heatmap-result-title {
  color: #a1a1aa !important;
}

[data-theme="dark"] .heatmap-result-desc {
  color: #a1a1aa !important;
}

[data-theme="dark"] .heatmap-element-card {
  background: #27272a !important;
}

[data-theme="dark"] .heatmap-element-icon {
  background: #3f3f46 !important;
  color: #a1a1aa !important;
}

[data-theme="dark"] .heatmap-element-name {
  color: #a1a1aa !important;
}

[data-theme="dark"] .heatmap-element-desc {
  color: #a1a1aa !important;
}

[data-theme="dark"] .heatmap-visualization-section {
  background: #27272a !important;
}

[data-theme="dark"] .heatmap-visualization-title {
  color: #a1a1aa !important;
}

[data-theme="dark"] .heatmap-visualization-desc {
  color: #a1a1aa !important;
}

[data-theme="dark"] .heatmap-analysis-card {
  background: #27272a !important;
}

[data-theme="dark"] .heatmap-analysis-title {
  color: #a1a1aa !important;
}

[data-theme="dark"] .heatmap-analysis-value {
  color: #a1a1aa !important;
}

[data-theme="dark"] .heatmap-analysis-label {
  color: #71717a !important;
}

[data-theme="dark"] .heatmap-visualization-placeholder {
  background: #3f3f46 !important;
}

[data-theme="dark"] .heatmap-visualization-placeholder-icon {
  color: #71717a !important;
}

[data-theme="dark"] .heatmap-visualization-placeholder-text {
  color: #a1a1aa !important;
}

[data-theme="dark"] .heatmap-visualization-placeholder-hint {
  color: #71717a !important;
}

/* ==================== 3D预览页面 - UI暗黑模式适配 ==================== */
[data-theme="dark"] .3dspace-module {
  background: #09090b !important;
}

[data-theme="dark"] .3dspace-module > div:first-child {
  background: #09090b !important;
  border-color: #1f1f23 !important;
}

[data-theme="dark"] .3dspace-module > div:first-child h1 {
  color: #fafafa !important;
}

[data-theme="dark"] .3dspace-module > div:first-child p {
  color: #a1a1aa !important;
}

[data-theme="dark"] .3dspace-module > div:first-child a {
  color: #a1a1aa !important;
  border-color: #27272a !important;
  background: #18181b !important;
}

[data-theme="dark"] .3dspace-module > div:first-child a:hover {
  color: #e4e4e7 !important;
  background: #27272a !important;
}

[data-theme="dark"] .3dspace-module > div:nth-child(2) {
  background: #09090b !important;
}

[data-theme="dark"] #space3d-canvas {
  background: transparent !important;
}

[data-theme="dark"] #space3d-canvas > div:first-child {
  background: transparent !important;
}

[data-theme="dark"] .3dspace-module #space3d-canvas + div {
  background: #18181b !important;
  border-color: #27272a !important;
}

[data-theme="dark"] .3dspace-module #space3d-canvas + div button {
  background: #18181b !important;
  border-color: #27272a !important;
  color: #e4e4e7 !important;
}

[data-theme="dark"] .3dspace-module #space3d-canvas + div button:hover {
  background: #27272a !important;
}

[data-theme="dark"] .3dspace-module #space3d-canvas + div span {
  color: #71717a !important;
}

[data-theme="dark"] .3dspace-module .3dspace-module > div:nth-child(2) > div > div:first-child > div:first-child,
[data-theme="dark"] .3dspace-module .3dspace-module > div:nth-child(2) > div > div:first-child > div:nth-child(2) {
  background: #18181b !important;
  border-color: #27272a !important;
}

[data-theme="dark"] .3dspace-module .3dspace-module > div:nth-child(2) > div > div:first-child > div:first-child div:first-child,
[data-theme="dark"] .3dspace-module .3dspace-module > div:nth-child(2) > div > div:first-child > div:nth-child(2) div:first-child {
  color: #fafafa !important;
}

[data-theme="dark"] .3dspace-module .3dspace-module > div:nth-child(2) > div > div:first-child > div:first-child div:nth-child(2),
[data-theme="dark"] .3dspace-module .3dspace-module > div:nth-child(2) > div > div:first-child > div:nth-child(2) div:nth-child(2) {
  color: #a1a1aa !important;
}

[data-theme="dark"] .3dspace-module .3dspace-module > div:nth-child(2) > div > div:first-child > div:first-child div:nth-child(3),
[data-theme="dark"] .3dspace-module .3dspace-module > div:nth-child(2) > div > div:first-child > div:nth-child(2) div:nth-child(3) {
  border-color: #27272a !important;
}

[data-theme="dark"] .3dspace-module .3dspace-module > div:nth-child(2) > div > div:first-child > div:first-child div:nth-child(3) div:first-child,
[data-theme="dark"] .3dspace-module .3dspace-module > div:nth-child(2) > div > div:first-child > div:nth-child(2) div:nth-child(3) div:first-child {
  color: #71717a !important;
}

[data-theme="dark"] .3dspace-module .3dspace-module > div:nth-child(2) > div > div:first-child > div:first-child div:nth-child(3) div:nth-child(2),
[data-theme="dark"] .3dspace-module .3dspace-module > div:nth-child(2) > div > div:first-child > div:nth-child(2) div:nth-child(3) div:nth-child(2) {
  color: #fafafa !important;
}

[data-theme="dark"] .3dspace-module .3dspace-module > div:nth-child(2) > div > div:nth-child(2) > div {
  background: #18181b !important;
  border-color: #27272a !important;
}

[data-theme="dark"] .3dspace-module .3dspace-module > div:nth-child(2) > div > div:nth-child(2) > div div:first-child {
  background: #27272a !important;
  color: #e4e4e7 !important;
}

[data-theme="dark"] .3dspace-module .3dspace-module > div:nth-child(2) > div > div:nth-child(2) > div div:nth-child(2) {
  background: #18181b !important;
  border-color: #27272a !important;
}

[data-theme="dark"] .3dspace-module .3dspace-module > div:nth-child(2) > div > div:nth-child(2) > div div:nth-child(2) div:first-child {
  color: #fafafa !important;
}

[data-theme="dark"] .3dspace-module .3dspace-module > div:nth-child(2) > div > div:nth-child(2) > div div:nth-child(2) div:nth-child(2) {
  color: #71717a !important;
}

[data-theme="dark"] .3dspace-module .3dspace-module > div:nth-child(2) > div > div:nth-child(2) > div a:first-of-type {
  background: #fafafa !important;
  color: #09090b !important;
}

[data-theme="dark"] .3dspace-module .3dspace-module > div:nth-child(2) > div > div:nth-child(2) > div a:first-of-type:hover {
  background: #ffffff !important;
}

[data-theme="dark"] .3dspace-module .3dspace-module > div:nth-child(2) > div > div:nth-child(2) > div button {
  background: #18181b !important;
  border-color: #27272a !important;
  color: #e4e4e7 !important;
}

[data-theme="dark"] .3dspace-module .3dspace-module > div:nth-child(2) > div > div:nth-child(2) > div button:hover {
  background: #27272a !important;
}

/* ==================== 核心能力详情页 - 完整暗黑模式适配 ==================== */
/* Hero区域 */
[data-theme="dark"] .intro-hero {
  background: #09090b !important;
}

[data-theme="dark"] .intro-back-btn {
  color: #a1a1aa !important;
}

[data-theme="dark"] .intro-back-btn:hover {
  color: #e4e4e7 !important;
}

[data-theme="dark"] .intro-label {
  color: #71717a !important;
}

[data-theme="dark"] .intro-title {
  color: #fafafa !important;
}

[data-theme="dark"] .intro-subtitle {
  color: #a1a1aa !important;
}

/* 内容区域 */
[data-theme="dark"] .intro-content {
  background: #09090b !important;
}

[data-theme="dark"] .intro-section-title {
  color: #e4e4e7 !important;
}

[data-theme="dark"] .intro-section-description {
  color: #a1a1aa !important;
}

[data-theme="dark"] .intro-section-image img {
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4) !important;
}

/* 功能特性列表*/
[data-theme="dark"] .intro-feature-icon {
  background: rgba(63, 63, 70, 0.4) !important;
  color: #a1a1aa !important;
}

[data-theme="dark"] .intro-feature-content h3 {
  color: #e4e4e7 !important;
}

[data-theme="dark"] .intro-feature-content p {
  color: #a1a1aa !important;
}

/* 步骤列表 */
[data-theme="dark"] .intro-step-number {
  color: #a1a1aa !important;
  background: rgba(63, 63, 70, 0.4) !important;
}

[data-theme="dark"] .intro-step-content h3 {
  color: #e4e4e7 !important;
}

[data-theme="dark"] .intro-step-content p {
  color: #a1a1aa !important;
}

/* CTA区域 */
[data-theme="dark"] .intro-cta-section {
  background: #18181b !important;
}

[data-theme="dark"] .intro-cta-section h2 {
  color: #fafafa !important;
}

[data-theme="dark"] .intro-cta-section p {
  color: #a1a1aa !important;
}

[data-theme="dark"] .intro-cta-primary {
  background: #fafafa !important;
  color: #09090b !important;
}

[data-theme="dark"] .intro-cta-primary:hover {
  background: #ffffff !important;
}

[data-theme="dark"] .intro-cta-secondary {
  color: #a1a1aa !important;
  border-color: #3f3f46 !important;
}

[data-theme="dark"] .intro-cta-secondary:hover {
  border-color: #a1a1aa !important;
}

/* ==================== 3D空间预览 - Apple/Linear/Pentagram 高端设计 暗黑模式 ==================== */
[data-theme="dark"] .space3d-premium {
  background: linear-gradient(180deg, #09090b 0%, #0c0c0e 50%, #101013 100%);
}

[data-theme="dark"] .space3d-header {
  background: rgba(24, 24, 27, 0.85);
  border-color: rgba(63, 63, 70, 0.5);
  box-shadow:
    0 4px 6px -1px rgba(0, 0, 0, 0.2),
    0 2px 4px -2px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .space3d-back {
  color: #a1a1aa;
}

[data-theme="dark"] .space3d-back:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fafafa;
}

[data-theme="dark"] .space3d-title-group {
  border-left-color: rgba(255, 255, 255, 0.12);
}

[data-theme="dark"] .space3d-title {
  color: #fafafa;
}

[data-theme="dark"] .space3d-subtitle {
  color: #71717a;
}

[data-theme="dark"] .space3d-controls-float {
  background: rgba(24, 24, 27, 0.85);
  border-color: rgba(63, 63, 70, 0.5);
  box-shadow:
    0 4px 6px -1px rgba(0, 0, 0, 0.2),
    0 2px 4px -2px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .space3d-control-btn {
  color: #a1a1aa;
}

[data-theme="dark"] .space3d-control-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fafafa;
}

[data-theme="dark"] .space3d-divider {
  background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.1), transparent);
}

[data-theme="dark"] .space3d-hint {
  color: #71717a;
}

/* 右侧信息面板 */
[data-theme="dark"] .space3d-panel {
  background: rgba(24, 24, 27, 0.85);
  border-color: rgba(63, 63, 70, 0.5);
  box-shadow:
    0 4px 6px -1px rgba(0, 0, 0, 0.25),
    0 2px 4px -2px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

[data-theme="dark"] .space3d-panel-label {
  color: #71717a;
}

[data-theme="dark"] .space3d-panel-value {
  color: #fafafa;
}

[data-theme="dark"] .space3d-panel-detail {
  border-top-color: rgba(255, 255, 255, 0.08);
  color: #a1a1aa;
}

[data-theme="dark"] .space3d-panel-detail svg {
  color: #52525b;
}

[data-theme="dark"] .space3d-panel-count {
  color: #71717a;
  background: rgba(255, 255, 255, 0.06);
}

/* 工具包列表*/
[data-theme="dark"] .space3d-tool-item {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .space3d-tool-item:hover {
  box-shadow: 0 4px 16px rgba(102, 126, 234, 0.25);
}

[data-theme="dark"] .space3d-tool-name {
  color: #e4e4e7;
}

[data-theme="dark"] .space3d-tool-price {
  color: #71717a;
}

/* 价格卡片 */
[data-theme="dark"] .space3d-pricing-card {
  background: #18181b !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.35),
    0 4px 16px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.03) !important;
}

[data-theme="dark"] .space3d-pricing-label {
  color: #71717a;
}

[data-theme="dark"] .space3d-pricing-amount {
  color: #ffffff;
}

[data-theme="dark"] .space3d-export-btn {
  background: #ffffff;
  color: #09090b;
}

[data-theme="dark"] .space3d-export-btn:hover {
  background: #f9fafb;
  box-shadow: 0 4px 16px rgba(255, 255, 255, 0.1);
}

/* ==================== 隐私政策页面 - Apple/Linear风格 暗黑模式 ==================== */
[data-theme="dark"] .privacy-module .page-header-glass {
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.98) 0%, rgba(0, 0, 0, 1) 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .privacy-module .page-title {
  color: #e4e4e7;
}

[data-theme="dark"] .privacy-module .page-subtitle {
  color: #71717a;
}

[data-theme="dark"] .privacy-content-card {
  background: rgba(0, 0, 0, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .privacy-meta {
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .privacy-update-badge {
  background: rgba(161, 161, 170, 0.15);
  color: #a1a1aa;
}

[data-theme="dark"] .privacy-section h2 {
  color: #e4e4e7;
}

[data-theme="dark"] .privacy-section h3 {
  color: #a1a1aa;
}

[data-theme="dark"] .privacy-section p {
  color: #71717a;
}

[data-theme="dark"] .privacy-section ul li {
  color: #71717a;
}

[data-theme="dark"] .privacy-section ul li strong {
  color: #a1a1aa;
}

[data-theme="dark"] .measure-item {
  background: rgba(17, 17, 19, 0.9);
  border-color: rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .measure-item:hover {
  background: rgba(161, 161, 170, 0.1);
  border-color: rgba(161, 161, 170, 0.2);
}

[data-theme="dark"] .measure-item svg {
  color: #a1a1aa;
}

[data-theme="dark"] .measure-item h5 {
  color: #e4e4e7;
}

[data-theme="dark"] .measure-item p {
  color: #71717a;
}

[data-theme="dark"] .right-item {
  background: rgba(17, 17, 19, 0.9);
  border-color: rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .right-item:hover {
  background: rgba(161, 161, 170, 0.1);
  border-color: rgba(161, 161, 170, 0.2);
}

[data-theme="dark"] .right-item svg {
  color: #a1a1aa;
}

[data-theme="dark"] .right-item span {
  color: #a1a1aa;
}

[data-theme="dark"] .privacy-contact-box {
  border-top-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .privacy-contact-item {
  background: rgba(17, 17, 19, 0.9);
  border-color: rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .privacy-contact-item:hover {
  background: rgba(161, 161, 170, 0.1);
  border-color: rgba(161, 161, 170, 0.2);
}

[data-theme="dark"] .privacy-contact-item svg {
  color: #a1a1aa;
}

[data-theme="dark"] .privacy-contact-item span {
  color: #a1a1aa;
}

[data-theme="dark"] .privacy-actions {
  border-top-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .privacy-back-btn {
  background: #a1a1aa;
  box-shadow: 0 8px 20px rgba(161, 161, 170, 0.3);
}

[data-theme="dark"] .privacy-back-btn:hover {
  background: #71717a;
  box-shadow: 0 8px 20px rgba(161, 161, 170, 0.4);
}

/* ==================== 服务条款页面 - Apple/Linear风格 暗黑模式 ==================== */
[data-theme="dark"] .terms-module .page-header-glass {
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.98) 0%, rgba(0, 0, 0, 1) 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .terms-module .page-title {
  color: #e4e4e7;
}

[data-theme="dark"] .terms-module .page-subtitle {
  color: #71717a;
}

[data-theme="dark"] .terms-content-card {
  background: rgba(0, 0, 0, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .terms-meta {
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .terms-update-badge {
  background: rgba(161, 161, 170, 0.15);
  color: #a1a1aa;
}

[data-theme="dark"] .terms-section h2 {
  color: #e4e4e7;
}

[data-theme="dark"] .terms-section h3 {
  color: #a1a1aa;
}

[data-theme="dark"] .terms-section p {
  color: #71717a;
}

[data-theme="dark"] .terms-section ul li {
  color: #71717a;
}

[data-theme="dark"] .terms-section a {
  color: #a1a1aa;
}

[data-theme="dark"] .terms-section a:hover {
  color: #a1a1aa;
}

[data-theme="dark"] .terms-contact-item {
  background: rgba(17, 17, 19, 0.9);
  border-color: rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .terms-contact-item:hover {
  background: rgba(161, 161, 170, 0.1);
  border-color: rgba(161, 161, 170, 0.2);
}

[data-theme="dark"] .terms-contact-item svg {
  color: #a1a1aa;
}

[data-theme="dark"] .terms-contact-item span {
  color: #a1a1aa;
}

[data-theme="dark"] .terms-actions {
  border-top-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .terms-back-btn {
  background: #a1a1aa;
  box-shadow: 0 8px 20px rgba(161, 161, 170, 0.3);
}

[data-theme="dark"] .terms-back-btn:hover {
  background: #71717a;
  box-shadow: 0 8px 20px rgba(161, 161, 170, 0.4);
}

/* ==================== 终极覆盖 - 隐私政策与服务条款页面纯黑色背景 ==================== */
[data-theme="dark"] .privacy-module,
[data-theme="dark"] .privacy-container,
[data-theme="dark"] .terms-module,
[data-theme="dark"] .terms-container {
  background: #000000 !important;
}

[data-theme="dark"] .privacy-module *,
[data-theme="dark"] .terms-module * {
  border-color: rgba(255, 255, 255, 0.08) !important;
}

[data-theme="dark"] .privacy-content-card,
[data-theme="dark"] .terms-content-card {
  background: rgba(0, 0, 0, 0.98) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

[data-theme="dark"] .measure-item,
[data-theme="dark"] .right-item,
[data-theme="dark"] .privacy-contact-item,
[data-theme="dark"] .terms-contact-item {
  background: rgba(17, 17, 19, 0.95) !important;
  border-color: rgba(255, 255, 255, 0.06) !important;
}

[data-theme="dark"] .measure-item:hover,
[data-theme="dark"] .right-item:hover,
[data-theme="dark"] .privacy-contact-item:hover,
[data-theme="dark"] .terms-contact-item:hover {
  background: rgba(161, 161, 170, 0.1) !important;
  border-color: rgba(161, 161, 170, 0.2) !important;
}

/* ==================== 终极强制覆盖 - 隐私政策与服务条款页面 - 所有白色转黑色 ==================== */
[data-theme="dark"] .privacy-module *,
[data-theme="dark"] .terms-module * {
  background-color: transparent !important;
  background: transparent !important;
}

[data-theme="dark"] .privacy-module,
[data-theme="dark"] .terms-module,
[data-theme="dark"] .privacy-module > *,
[data-theme="dark"] .terms-module > * {
  background-color: #000000 !important;
  background: #000000 !important;
}

[data-theme="dark"] .privacy-module .container,
[data-theme="dark"] .terms-module .container {
  background-color: transparent !important;
  background: transparent !important;
}

[data-theme="dark"] .privacy-content-card,
[data-theme="dark"] .terms-content-card {
  background-color: rgba(0, 0, 0, 0.98) !important;
  background: rgba(0, 0, 0, 0.98) !important;
}

[data-theme="dark"] .privacy-module h1,
[data-theme="dark"] .privacy-module h2,
[data-theme="dark"] .privacy-module h3,
[data-theme="dark"] .privacy-module h4,
[data-theme="dark"] .privacy-module h5,
[data-theme="dark"] .privacy-module h6,
[data-theme="dark"] .privacy-module p,
[data-theme="dark"] .privacy-module li,
[data-theme="dark"] .privacy-module span,
[data-theme="dark"] .privacy-module div,
[data-theme="dark"] .terms-module h1,
[data-theme="dark"] .terms-module h2,
[data-theme="dark"] .terms-module h3,
[data-theme="dark"] .terms-module h4,
[data-theme="dark"] .terms-module h5,
[data-theme="dark"] .terms-module h6,
[data-theme="dark"] .terms-module p,
[data-theme="dark"] .terms-module li,
[data-theme="dark"] .terms-module span,
[data-theme="dark"] .terms-module div {
  background-color: transparent !important;
  background: transparent !important;
}

/* 覆盖所有带内联样式的白色背景*/
[data-theme="dark"] .privacy-module [style*="background"],
[data-theme="dark"] .terms-module [style*="background"],
[data-theme="dark"] .privacy-module [style*="white"],
[data-theme="dark"] .terms-module [style*="white"],
[data-theme="dark"] .privacy-module [style*="WHITE"],
[data-theme="dark"] .terms-module [style*="WHITE"],
[data-theme="dark"] .privacy-module [style*="#fff"],
[data-theme="dark"] .terms-module [style*="#fff"],
[data-theme="dark"] .privacy-module [style*="#FFF"],
[data-theme="dark"] .terms-module [style*="#FFF"],
[data-theme="dark"] .privacy-module [style*="rgb(255"],
[data-theme="dark"] .terms-module [style*="rgb(255"] {
  background-color: #000000 !important;
  background: #000000 !important;
}

[data-theme="dark"] .privacy-module [style*="background-color: white"],
[data-theme="dark"] .terms-module [style*="background-color: white"],
[data-theme="dark"] .privacy-module [style*="background-color:#ffffff"],
[data-theme="dark"] .terms-module [style*="background-color:#ffffff"],
[data-theme="dark"] .privacy-module [style*="background-color: #ffffff"],
[data-theme="dark"] .terms-module [style*="background-color: #ffffff"] {
  background-color: #000000 !important;
  background: #000000 !important;
}

/* 页面头部特殊处理 */
[data-theme="dark"] .privacy-module .page-header-glass,
[data-theme="dark"] .terms-module .page-header-glass {
  background: linear-gradient(135deg, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 1) 100%) !important;
  background-color: #000000 !important;
}

/* 内容卡片特殊处理 */
[data-theme="dark"] .privacy-content-card,
[data-theme="dark"] .terms-content-card {
  background: rgba(0, 0, 0, 0.98) !important;
  background-color: rgba(0, 0, 0, 0.98) !important;
}

/* 措施卡片、权利卡片、联系卡片*/
[data-theme="dark"] .measure-item,
[data-theme="dark"] .right-item,
[data-theme="dark"] .privacy-contact-item,
[data-theme="dark"] .terms-contact-item {
  background: rgba(17, 17, 19, 1) !important;
  background-color: rgba(17, 17, 19, 1) !important;
}

/* 更新徽章 */
[data-theme="dark"] .privacy-update-badge,
[data-theme="dark"] .terms-update-badge {
  background: rgba(161, 161, 170, 0.2) !important;
  background-color: rgba(161, 161, 170, 0.2) !important;
}

/* 按钮 */
[data-theme="dark"] .privacy-back-btn,
[data-theme="dark"] .terms-back-btn {
  background: #a1a1aa !important;
  background-color: #a1a1aa !important;
}

[data-theme="dark"] .privacy-back-btn:hover,
[data-theme="dark"] .terms-back-btn:hover {
  background: #71717a !important;
  background-color: #71717a !important;
}

/* 终极兜底选择器 - 所有白色背景都强制转为黑色 */
[data-theme="dark"] .privacy-module *[style*="background-color"][style*="white"],
[data-theme="dark"] .terms-module *[style*="background-color"][style*="white"],
[data-theme="dark"] .privacy-module *[style*="background"][style*="white"],
[data-theme="dark"] .terms-module *[style*="background"][style*="white"],
[data-theme="dark"] .privacy-module *[style*="background-color"][style*="#fff"],
[data-theme="dark"] .terms-module *[style*="background-color"][style*="#fff"],
[data-theme="dark"] .privacy-module *[style*="background"][style*="#fff"],
[data-theme="dark"] .terms-module *[style*="background"][style*="#fff"],
[data-theme="dark"] .privacy-module *[style*="background-color"][style*="#FFF"],
[data-theme="dark"] .terms-module *[style*="background-color"][style*="#FFF"],
[data-theme="dark"] .privacy-module *[style*="background"][style*="#FFF"],
[data-theme="dark"] .terms-module *[style*="background"][style*="#FFF"] {
  background-color: #000000 !important;
  background: #000000 !important;
}

[data-theme="dark"] .privacy-module *[style*="white"],
[data-theme="dark"] .terms-module *[style*="white"] {
  background-color: #000000 !important;
  background: #000000 !important;
}

[data-theme="dark"] .privacy-module *[style*="#fff"],
[data-theme="dark"] .terms-module *[style*="#fff"] {
  background-color: #000000 !important;
  background: #000000 !important;
}

[data-theme="dark"] .privacy-module *[style*="#FFF"],
[data-theme="dark"] .terms-module *[style*="#FFF"] {
  background-color: #000000 !important;
  background: #000000 !important;
}

/* ================================================================
   全局通用暗黑模式保障 - 统一所有页面的暗夜风格
   ================================================================ */

/* 1. 所有模块的白色背景强制转为深色 */
[data-theme="dark"] [class*="-module"][style*="background:#ffffff"],
[data-theme="dark"] [class*="-module"][style*="background: #ffffff"],
[data-theme="dark"] [class*="-module"][style*="background:rgb(255, 255, 255)"],
[data-theme="dark"] [class*="-module"][style*="background: rgb(255, 255, 255)"],
[data-theme="dark"] [class*="-module"][style*="background:#fafafa"],
[data-theme="dark"] [class*="-module"][style*="background: #fafafa"],
[data-theme="dark"] [class*="-module"][style*="background:rgb(250, 250, 250)"],
[data-theme="dark"] [class*="-module"][style*="background: rgb(250, 250, 250)"],
[data-theme="dark"] div[style*="min-height:100vh"][style*="background:#ffffff"],
[data-theme="dark"] section[style*="background:#ffffff"] {
  background: #09090b !important;
  background-color: #09090b !important;
}

/* 2. 所有内联样式的白色文字转为浅灰色*/
[data-theme="dark"] [class*="-module"] h1[style*="color:#1a1a1a"],
[data-theme="dark"] [class*="-module"] h2[style*="color:#1a1a1a"],
[data-theme="dark"] [class*="-module"] h3[style*="color:#1a1a1a"],
[data-theme="dark"] [class*="-module"] h4[style*="color:#1a1a1a"],
[data-theme="dark"] [class*="-module"] h5[style*="color:#1a1a1a"],
[data-theme="dark"] [class*="-module"] h6[style*="color:#1a1a1a"],
[data-theme="dark"] [class*="-module"] h1[style*="color: #1a1a1a"],
[data-theme="dark"] [class*="-module"] h2[style*="color: #1a1a1a"],
[data-theme="dark"] [class*="-module"] h3[style*="color: #1a1a1a"],
[data-theme="dark"] [class*="-module"] h4[style*="color: #1a1a1a"],
[data-theme="dark"] [class*="-module"] h5[style*="color: #1a1a1a"],
[data-theme="dark"] [class*="-module"] h6[style*="color: #1a1a1a"],
[data-theme="dark"] [class*="-module"] div[style*="color:#1a1a1a"]:not([style*="font-size:48px"]):not([style*="font-size:24px"]),
[data-theme="dark"] [class*="-module"] span[style*="color:#1a1a1a"],
[data-theme="dark"] [class*="-module"] a[style*="color:#1a1a1a"],
[data-theme="dark"] [class*="-module"] p[style*="color:#1a1a1a"] {
  color: #a1a1aa !important;
}

/* 3. 灰色次要文字 */
[data-theme="dark"] [class*="-module"] p[style*="color:#6b6b6b"],
[data-theme="dark"] [class*="-module"] p[style*="color: #6b6b6b"],
[data-theme="dark"] [class*="-module"] span[style*="color:#6b6b6b"],
[data-theme="dark"] [class*="-module"] span[style*="color: #6b6b6b"],
[data-theme="dark"] [class*="-module"] div[style*="color:#6b6b6b"],
[data-theme="dark"] [class*="-module"] div[style*="color: #6b6b6b"],
[data-theme="dark"] [class*="-module"] a[style*="color:#6b6b6b"],
[data-theme="dark"] [class*="-module"] label[style*="color:#1a1a1a"] {
  color: #71717a !important;
}

/* 4. 浅灰色标签提示文字 */
[data-theme="dark"] [class*="-module"] div[style*="color:#8a8a8a"],
[data-theme="dark"] [class*="-module"] div[style*="color: #8a8a8a"],
[data-theme="dark"] [class*="-module"] p[style*="color:#8a8a8a"],
[data-theme="dark"] [class*="-module"] span[style*="color:#8a8a8a"],
[data-theme="dark"] [class*="-module"] small[style*="color:#8a8a8a"] {
  color: #52525b !important;
}

/* 5. 白色边框转为深灰色边框*/
[data-theme="dark"] [class*="-module"][style*="border:1px solid #e8e8e8"],
[data-theme="dark"] [class*="-module"][style*="border: 1px solid #e8e8e8"],
[data-theme="dark"] [class*="-module"][style*="border:1px solid #e5e5ea"],
[data-theme="dark"] [class*="-module"][style*="border: 1px solid #e5e5ea"],
[data-theme="dark"] [class*="-module"][style*="border-bottom:1px solid #e8e8e8"],
[data-theme="dark"] [class*="-module"][style*="border-bottom: 1px solid #e8e8e8"],
[data-theme="dark"] [class*="-module"][style*="border:1px solid #d0d0d0"],
[data-theme="dark"] [class*="-module"][style*="border: 1px solid #d0d0d0"] {
  border-color: #27272a !important;
}

/* 6. 表单元素 - 输入框、文本域等*/
[data-theme="dark"] input[style*="background:#ffffff"],
[data-theme="dark"] input[style*="background: #ffffff"],
[data-theme="dark"] textarea[style*="background:#ffffff"],
[data-theme="dark"] textarea[style*="background: #ffffff"],
[data-theme="dark"] select[style*="background:#ffffff"],
[data-theme="dark"] select[style*="background: #ffffff"],
[data-theme="dark"] input[style*="color:#1a1a1a"],
[data-theme="dark"] textarea[style*="color:#1a1a1a"],
[data-theme="dark"] select[style*="color:#1a1a1a"] {
  background: #111113 !important;
  background-color: #111113 !important;
  color: #a1a1aa !important;
  border-color: #27272a !important;
}

[data-theme="dark"] input[style*="border:1px solid #e8e8e8"],
[data-theme="dark"] textarea[style*="border:1px solid #e8e8e8"],
[data-theme="dark"] select[style*="border:1px solid #e8e8e8"] {
  border-color: #27272a !important;
}

/* 7. 按钮样式 - 统一处理 */
/* 次要按钮（白色背景） */
[data-theme="dark"] button[style*="background:#ffffff"][style*="color:#1a1a1a"],
[data-theme="dark"] button[style*="background: #ffffff"][style*="color: #1a1a1a"],
[data-theme="dark"] button[style*="background:rgb(255, 255, 255)"][style*="color:rgb(26, 26, 26)"] {
  background: #18181b !important;
  background-color: #18181b !important;
  color: #a1a1aa !important;
  border-color: #3f3f46 !important;
}

[data-theme="dark"] button[style*="background:#ffffff"][style*="color:#1a1a1a"]:hover,
[data-theme="dark"] button[style*="background: #ffffff"][style*="color: #1a1a1a"]:hover {
  background: #27272a !important;
  border-color: #52525b !important;
}

/* 主要按钮（黑色背景） */
[data-theme="dark"] button:not([disabled])[style*="background:#1a1a1a"][style*="color:#ffffff"],
[data-theme="dark"] button:not([disabled])[style*="background: #1a1a1a"][style*="color: #ffffff"],
[data-theme="dark"] button:not([disabled])[style*="background:rgb(26, 26, 26)"][style*="color:rgb(255, 255, 255)"] {
  background: #a1a1aa !important;
  background-color: #a1a1aa !important;
  color: #ffffff !important;
  border-color: #a1a1aa !important;
}

[data-theme="dark"] button:not([disabled])[style*="background:#1a1a1a"][style*="color:#ffffff"]:hover,
[data-theme="dark"] button:not([disabled])[style*="background: #1a1a1a"][style*="color: #ffffff"]:hover {
  background: #71717a !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(161, 161, 170, 0.4);
}

/* 禁用按钮 */
[data-theme="dark"] button[disabled][style*="background:#1a1a1a"],
[data-theme="dark"] button[disabled][style*="background: #1a1a1a"] {
  background: #27272a !important;
  opacity: 0.4 !important;
  cursor: not-allowed !important;
}

/* 浅色按钮（fafafa背景）*/
[data-theme="dark"] button[style*="background:#fafafa"][style*="color:#1a1a1a"],
[data-theme="dark"] button[style*="background: #fafafa"][style*="color: #1a1a1a"] {
  background: #111113 !important;
  color: #a1a1aa !important;
  border-color: #27272a !important;
}

[data-theme="dark"] button[style*="background:#fafafa"][style*="color:#1a1a1a"]:hover {
  background: #18181b !important;
  border-color: #3f3f46 !important;
}

/* 8. 卡片和容器 - 统一深色背景 */
[data-theme="dark"] [class*="-module"] div[style*="padding:24px"][style*="background:#fafafa"],
[data-theme="dark"] [class*="-module"] div[style*="padding:28px"][style*="background:#fafafa"],
[data-theme="dark"] [class*="-module"] div[style*="padding:32px"][style*="background:#fafafa"],
[data-theme="dark"] [class*="-module"] div[style*="background:#fafafa"][style*="border-radius"] {
  background: #111113 !important;
  border-color: #27272a !important;
}

/* 图标容器（64x64/80x40白色方块）*/
[data-theme="dark"] [class*="-module"] div[style*="width:64px"][style*="background:#ffffff"],
[data-theme="dark"] [class*="-module"] div[style*="width:40px"][style*="background:#ffffff"] {
  background: #18181b !important;
  border-color: #27272a !important;
}

/* 9. 特殊数值显示 - 使用主题色高亮*/
[data-theme="dark"] [class*="-module"] div[style*="font-size:48px"][style*="color:#1a1a1a"],
[data-theme="dark"] [class*="-module"] div[style*="font-size:24px"][style*="font-weight:600"][style*="color:#1a1a1a"]:not(button),
[data-theme="dark"] [class*="-module"] div[style*="font-size:16px"][style*="font-weight:600"][style*="color:#1a1a1a"] {
  color: var(--primary-400) !important;
}

/* 步骤圆圈（32x32黑色圆圈）*/
[data-theme="dark"] [class*="-module"] div[style*="width:32px"][style*="height:32px"][style*="background:#1a1a1a"] {
  background: #a1a1aa !important;
  color: #ffffff !important;
}

/* 选择圆圈（24x24圆形选择器） */
[data-theme="dark"] [class*="-module"] div[style*="width:24px"][style*="border-radius:50%"][style*="border:1.5px solid #d0d0d0"] {
  border-color: #3f3f46 !important;
  background: transparent !important;
}

[data-theme="dark"] [class*="-module"] div[style*="width:24px"][style*="border-radius:50%"][style*="background:#1a1a1a"] {
  background: #a1a1aa !important;
  border-color: #a1a1aa !important;
}

/* 10. 标签和徽章*/
[data-theme="dark"] [class*="-module"] span[style*="font-size:12px"][style*="background:#ffffff"][style*="border-radius:100px"],
[data-theme="dark"] [class*="-module"] span[style*="background:#ffffff"][style*="border-radius:100px"] {
  background: #18181b !important;
  color: #71717a !important;
  border-color: #27272a !important;
}

/* 11. 连接线和分割线*/
[data-theme="dark"] [class*="-module"] div[style*="width:48px"][style*="height:1px"][style*="background:#e5e5ea"],
[data-theme="dark"] [class*="-module"] div[style*="width:32px"][style*="height:1px"][style*="background:#e8e8e8"],
[data-theme="dark"] [class*="-module"] div[style*="height:1px"][style*="background:#e8e8e8"],
[data-theme="dark"] [class*="-module"] div[style*="height:1px"][style*="background:#e5e5ea"],
[data-theme="dark"] [class*="-module"] hr[style*="background:#e8e8e8"] {
  background: #27272a !important;
}

/* 12. 错误消息和提示框 */
[data-theme="dark"] [class*="-module"] div[style*="padding:12px"][style*="background:#fafafa"][style*="display:none"],
[data-theme="dark"] [class*="-module"] div[id*="error"][style*="background:#fafafa"] {
  background: #1c1917 !important;
  border-color: #44403c !important;
  color: #fbbf24 !important;
}

/* 13. 链接和可点击元素 */
[data-theme="dark"] [class*="-module"] a[style*="color:#6b6b6b"] {
  color: #71717a !important;
}

[data-theme="dark"] [class*="-module"] a[style*="color:#6b6b6b"]:hover {
  color: #a1a1aa !important;
}

/* 14. SVG图标颜色 */
[data-theme="dark"] [class*="-module"] svg[style*="stroke:#1a1a1a"],
[data-theme="dark"] [class*="-module"] svg[stroke="#1a1a1a"] {
  stroke: #a1a1aa !important;
}

[data-theme="dark"] [class*="-module"] svg[fill="#1a1a1a"] {
  fill: #a1a1aa !important;
}

/* ================================================================
   全页面纯黑背景终极保障 - 覆盖所有选中元素的背景   ================================================================ */

/* 1. 所有section元素 - 纯黑背景 */
[data-theme="dark"] section[style*="background:#ffffff"],
[data-theme="dark"] section[style*="background: #ffffff"],
[data-theme="dark"] section[style*="background:rgb(255, 255, 255)"],
[data-theme="dark"] section[style*="background: rgb(255, 255, 255)"],
[data-theme="dark"] section[style*="background:#fafafa"],
[data-theme="dark"] section[style*="background: #fafafa"],
[data-theme="dark"] section[style*="background:rgb(250, 250, 250)"],
[data-theme="dark"] section[style*="background: rgb(250, 250, 250)"] {
  background: #000000 !important;
  background-color: #000000 !important;
}

/* 2. 所有div容器 - 纯黑背景（针对padding:24px/32px/48px/56px等常见模式） */
[data-theme="dark"] div[style*="background:#ffffff"][style*="padding:24px"],
[data-theme="dark"] div[style*="background: #ffffff"][style*="padding:24px"],
[data-theme="dark"] div[style*="background:#ffffff"][style*="padding:32px"],
[data-theme="dark"] div[style*="background: #ffffff"][style*="padding:32px"],
[data-theme="dark"] div[style*="background:#ffffff"][style*="padding:48px"],
[data-theme="dark"] div[style*="background: #ffffff"][style*="padding:48px"],
[data-theme="dark"] div[style*="background:#ffffff"][style*="padding:56px"],
[data-theme="dark"] div[style*="background: #ffffff"][style*="padding:56px"],
[data-theme="dark"] div[style*="background:#ffffff"][style*="padding:96px"],
[data-theme="dark"] div[style*="background: #ffffff"][style*="padding:96px"] {
  background: #000000 !important;
  background-color: #000000 !important;
}

/* 3. sticky定位的导航栏 - 纯黑背景 */
[data-theme="dark"] div[style*="position:sticky"][style*="background:#ffffff"],
[data-theme="dark"] div[style*="position:sticky"][style*="background: #ffffff"],
[data-theme="dark"] div[style*="position: sticky"][style*="background:#ffffff"],
[data-theme="dark"] div[style*="position: sticky"][style*="background: #ffffff"] {
  background: #000000 !important;
  background-color: #000000 !important;
}

/* 4. 主内容区域 - 纯黑背景 */
[data-theme="dark"] div[style*="padding:48px 0"]:not([style*="background:#111113"]):not([style*="background:#09090b"]),
[data-theme="dark"] div[style*="padding:48px 0 96px"]:not([style*="background:#111113"]):not([style*="background:#09090b"]) {
  background: #000000 !important;
  background-color: #000000 !important;
}

/* 5. 表单区域 - 纯黑背景 */
[data-theme="dark"] form,
[data-theme="dark"] div[style*="max-width:400px"] > div[style*="text-align:center"] {
  background: transparent !important;
}

/* 6. 登录/注册页面的Logo和标题区域*/
[data-theme="dark"] div[style*="width:72px"][style*="height:72px"][style*="background:#1a1a1a"] {
  background: #18181b !important;
  border-radius: 16px;
}

/* 7. 所有带border-bottom的白色容器*/
[data-theme="dark"] div[style*="background:#ffffff"][style*="border-bottom:1px solid #e8e8e8"],
[data-theme="dark"] div[style*="background: #ffffff"][style*="border-bottom: 1px solid #e8e8e8"],
[data-theme="dark"] section[style*="background:#ffffff"][style*="border-bottom:1px solid #e8e8e8"],
[data-theme="dark"] section[style*="background: #ffffff"][style*="border-bottom: 1px solid #e8e8e8"] {
  background: #000000 !important;
  background-color: #000000 !important;
  border-bottom-color: #27272a !important;
}

/* 8. 返回链接按钮容器 */
[data-theme="dark"] a[style*="display:inline-flex"][style*="background:#fafafa"][style*="border:1px solid #e8e8e8"],
[data-theme="dark"] a[style*="display: inline-flex"][style*="background: #fafafa"][style*="border: 1px solid #e8e8e8"] {
  background: #111113 !important;
  border-color: #27272a !important;
}

/* 9. 新闻页面特殊处理 */
[data-theme="dark"] .news-header-bar,
[data-theme="dark"] .news-content {
  background: #000000 !important;
  background-color: #000000 !important;
}

/* 10. 情绪互动空间和游戏化页面 */
[data-theme="dark"] .emotion-playground-container,
[data-theme="dark"] [class*="gamification-module"] > div[style*="padding:48px"] {
  background: #000000 !important;
  background-color: #000000 !important;
}

/* 11. 关于我们页面的特殊section */
[data-theme="dark"] section[style*="padding:80px 0"][style*="text-align:center"],
[data-theme="dark"] section[style*="padding:96px 0"][style*="border-top:1px solid #e8e8e8"] {
  background: #000000 !important;
  background-color: #000000 !important;
  border-top-color: #27272a !important;
}

/* 12. 卡片内的图标容器（56x56, 64x64, 72x72, 104x104）*/
[data-theme="dark"] div[style*="width:56px"][style*="height:56px"][style*="background:#ffffff"],
[data-theme="dark"] div[style*="width:64px"][style*="height:64px"][style*="background:#ffffff"],
[data-theme="dark"] div[style*="width:72px"][style*="height:72px"][style*="background:#ffffff"],
[data-theme="dark"] div[style*="width:104px"][style*="height:104px"][style*="background:#1a1a1a"] {
  background: #18181b !important;
  border-color: #27272a !important;
}

/* 13. 技术栈标签 */
[data-theme="dark"] span[style*="display:inline-block"][style*="padding:8px 14px"][style*="background:#ffffff"][style*="border-radius:100px"] {
  background: #18181b !important;
  color: #a1a1aa !important;
  border-color: #27272a !important;
}

/* 14. 功能标签按钮 */
[data-theme="dark"] span[style*="display:inline-flex"][style*="padding:12px 20px"][style*="background:#fafafa"][style*="border-radius:100px"] {
  background: #111113 !important;
  color: #a1a1aa !important;
  border-color: #27272a !important;
}

/* 15. 联系方式卡片 */
[data-theme="dark"] div[style*="padding:56px 48px"][style*="background:#fafafa"][style*="border-radius:20px"] {
  background: #111113 !important;
  border-color: #27272a !important;
}

/* 16. 分割线hr */
[data-theme="dark"] div[style*="flex:1"][style*="height:1px"][style*="background:#e8e8e8"],
[data-theme="dark"] hr[style*="background:#e8e8e8"] {
  background: #27272a !important;
}

/* 17. 进度条*/
[data-theme="dark"] div[style*="height:6px"][style*="background:#e8e8e8"][style*="border-radius:100px"] {
  background: #27272a !important;
}

[data-theme="dark"] div[style*="height:100%"][style*="background:#1a1a1a"][style*="border-radius:100px"] {
  background: #a1a1aa !important;
}

/* 18. 徽章卡片 */
[data-theme="dark"] div[style*="padding:24px"][style*="background:#fafafa"][style*="border-radius:12px"][style*="text-align:center"] {
  background: #111113 !important;
  border-color: #27272a !important;
}

/* 19. 徽章图标占位区*/
[data-theme="dark"] div[style*="width:56px"][style*="height:56px"][style*="background:#e8e8e8"] {
  background: #27272a !important;
}

/* 20. 挑战任务卡片 */
[data-theme="dark"] article[style*="background:#ffffff"][style*="border-radius:16px"],
[data-theme="dark"] article[style*="background: #ffffff"][style*="border-radius: 16px"] {
  background: #111113 !important;
  border-color: #27272a !important;
}

/* 21. 任务状态标签*/
[data-theme="dark"] span[style*="font-size:12px"][style*="padding:4px 10px"][style*="background:#1a1a1a"][style*="color:#ffffff"] {
  background: #a1a1aa !important;
}

/* 22. 开始挑战按钮*/
[data-theme="dark"] button.start-challenge-btn[style*="background:#1a1a1a"][style*="color:#ffffff"] {
  background: #a1a1aa !important;
  border-color: #a1a1aa !important;
}

[data-theme="dark"] button.start-challenge-btn[style*="background:#1a1a1a"][style*="color:#ffffff"]:hover {
  background: #71717a !important;
  transform: translateY(-1px);
}

/* 23. 表单输入框增强*/
[data-theme="dark"] input[type="text"][style*="background:#ffffff"],
[data-theme="dark"] input[type="password"][style*="background:#ffffff"],
[data-theme="dark"] input[type="email"][style*="background:#ffffff"],
[data-theme="dark"] input[type="tel"][style*="background:#ffffff"] {
  background: #111113 !important;
  color: #a1a1aa !important;
  border-color: #27272a !important;
}

[data-theme="dark"] input[type="text"][style*="background:#ffffff"]:focus,
[data-theme="dark"] input[type="password"][style*="background:#ffffff"]:focus,
[data-theme="dark"] input[type="email"][style*="background:#ffffff"]:focus,
[data-theme="dark"] input[type="tel"][style*="background:#ffffff"]:focus {
  border-color: #a1a1aa !important;
  box-shadow: 0 0 0 2px rgba(161, 161, 170, 0.2) !important;
}

/* 24. 复选框样式 */
[data-theme="dark"] input[type="checkbox"][style*="border:1px solid #e8e8e8"] {
  border-color: #3f3f46 !important;
  background: #111113 !important;
}

/* 25. 错误消息区*/
[data-theme="dark"] div[id*="error-message"][style*="background:#fafafa"] {
  background: #1c1917 !important;
  border-color: #44403c !important;
}

/* 26. 社交登录按钮 */
[data-theme="dark"] button[style*="flex:1"][style*="height:48px"][style*="background:#ffffff"][style*="border-radius:10px"] {
  background: #18181b !important;
  color: #a1a1aa !important;
  border-color: #27272a !important;
}

[data-theme="dark"] button[style*="flex:1"][style*="height:48px"][style*="background:#ffffff"][style*="border-radius:10px"]:hover {
  background: #27272a !important;
}

/* 27. 密码强度指示器*/
[data-theme="dark"] div[style*="height:4px"][style*="background:#e8e8e8"][style*="border-radius:100px"] {
  background: #27272a !important;
}

[data-theme="dark"] .strength-bar[style*="background:#e8e8e8"] {
  background: #27272a !important;
}

/* 28. 工具栏按钮组 */
[data-theme="dark"] button[style*="padding:10px 18px"][style*="border-radius:100px"][style*="background:#fafafa"] {
  background: #111113 !important;
  color: #a1a1aa !important;
  border-color: #27272a !important;
}

[data-theme="dark"] button[style*="padding:10px 18px"][style*="border-radius:100px"][style*="background:#1a1a1a"][style*="color:#ffffff"] {
  background: #a1a1aa !important;
  border-color: #a1a1aa !important;
}

/* 29. 情绪选择按钮 */
[data-theme="dark"] button.emotion-btn[style*="background:#ffffff"] {
  background: #18181b !important;
  color: #a1a1aa !important;
  border-color: #27272a !important;
}

[data-theme="dark"] button.emotion-btn[style*="background:#1a1a1a"][style*="color:#ffffff"] {
  background: #a1a1aa !important;
  border-color: #a1a1aa !important;
}

/* 30. 滑块input range */
[data-theme="dark"] input[type="range"][style*="background:#e8e8e8"] {
  background: #27272a !important;
}

/* 31. 画布容器 */
[data-theme="dark"] div[id*="container"][style*="background:#fafafa"] {
  background: #09090b !important;
  border-color: #27272a !important;
}

/* 32. 画布底部工具栏*/
[data-theme="dark"] div[style*="padding:16px 24px"][style*="border-top:1px solid #e8e8e8"] {
  background: #09090b !important;
  border-top-color: #27272a !important;
}

/* ==================== 终极核弹级覆盖 - 隐私政策与服务条款页面==================== */
body[data-theme="dark"] div.privacy-module,
body[data-theme="dark"] div.terms-module {
  background-color: #000000 !important;
  background-image: none !important;
}

body[data-theme="dark"] div.privacy-module > *,
body[data-theme="dark"] div.terms-module > * {
  background-color: #000000 !important;
  background-image: none !important;
}

body[data-theme="dark"] div.privacy-content-card,
body[data-theme="dark"] div.terms-content-card {
  background-color: rgba(0, 0, 0, 1) !important;
  background: rgba(0, 0, 0, 1) !important;
  background-image: none !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}

body[data-theme="dark"] div.page-header-glass {
  background-color: #000000 !important;
  background: linear-gradient(180deg, #000000 0%, #0a0a0a 100%) !important;
  background-image: linear-gradient(180deg, #000000 0%, #0a0a0a 100%) !important;
  border-bottom-color: rgba(255, 255, 255, 0.08) !important;
}

/* ==================== 精选案例区域暗黑模式 - 高级质感 ==================== */
[data-theme="dark"] .pentagram-case-section {
  background: #08080a;
  border-top-color: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .pentagram-case-title {
  color: rgba(255, 255, 255, 0.88);
}

[data-theme="dark"] .pentagram-case-description {
  color: rgba(255, 255, 255, 0.38);
}

[data-theme="dark"] .pentagram-case-count {
  color: rgba(255, 255, 255, 0.2);
}

[data-theme="dark"] .pentagram-case-slide {
  background: #141418;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.04);
}

[data-theme="dark"] .pentagram-case-image {
  box-shadow: none;
}

[data-theme="dark"] .pentagram-case-slide:hover {
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.03);
}

[data-theme="dark"] .pentagram-case-overlay {
  background: linear-gradient(0deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0) 55%);
}

[data-theme="dark"] .pentagram-case-tag {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.15);
}

[data-theme="dark"] .pentagram-case-scrollbar-track {
  background: rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .pentagram-case-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.4);
}

[data-theme="dark"] .pentagram-case-more {
  color: rgba(255, 255, 255, 0.38);
  border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .pentagram-case-more:hover {
  background: rgba(255, 255, 255, 0.88);
  color: #1d1d1f;
  border-color: rgba(255, 255, 255, 0.88);
  box-shadow: 0 2px 14px rgba(255, 255, 255, 0.08);
}

/* ==================== CTA区域暗黑模式 - 高级质感 ==================== */
[data-theme="dark"] .cta-section-final {
  background: #060608;
  border-top-color: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .cta-decoration-line {
  background: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .cta-badge {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.55);
}

[data-theme="dark"] .cta-badge-dot {
  background: #22c55e;
}

[data-theme="dark"] .cta-content h2 {
  color: rgba(255, 255, 255, 0.85);
}

[data-theme="dark"] .cta-subtitle {
  color: rgba(255, 255, 255, 0.35);
}

[data-theme="dark"] .cta-feature {
  color: rgba(255, 255, 255, 0.35);
}

[data-theme="dark"] .cta-feature svg {
  color: rgba(255, 255, 255, 0.25);
}

[data-theme="dark"] .btn-primary-cta {
  background: rgba(255, 255, 255, 0.88);
  border-color: rgba(255, 255, 255, 0.88);
  color: #1d1d1f;
  box-shadow: 0 2px 12px rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .btn-primary-cta:hover {
  background: #ffffff;
  border-color: #ffffff;
  color: #1d1d1f;
  box-shadow: 0 4px 20px rgba(255, 255, 255, 0.15);
}

[data-theme="dark"] .cta-note {
  color: rgba(255, 255, 255, 0.2);
}

body[data-theme="dark"] div.privacy-container,
body[data-theme="dark"] div.terms-container {
  background-color: #000000 !important;
  background: #000000 !important;
}

body[data-theme="dark"] div.privacy-meta,
body[data-theme="dark"] div.terms-meta {
  background-color: transparent !important;
  background: transparent !important;
  border-bottom-color: rgba(255, 255, 255, 0.08) !important;
}

body[data-theme="dark"] section.privacy-section,
body[data-theme="dark"] section.terms-section {
  background-color: transparent !important;
  background: transparent !important;
}

body[data-theme="dark"] div.measure-item,
body[data-theme="dark"] div.right-item,
body[data-theme="dark"] div.privacy-contact-item,
body[data-theme="dark"] div.terms-contact-item {
  background-color: #111113 !important;
  background: #111113 !important;
  border-color: rgba(255, 255, 255, 0.06) !important;
}

body[data-theme="dark"] span.privacy-update-badge,
body[data-theme="dark"] span.terms-update-badge {
  background-color: rgba(161, 161, 170, 0.2) !important;
  background: rgba(161, 161, 170, 0.2) !important;
}

body[data-theme="dark"] a.privacy-back-btn,
body[data-theme="dark"] a.terms-back-btn {
  background-color: #a1a1aa !important;
  background: #a1a1aa !important;
}

/* 强制所有子元素背景透明 */
body[data-theme="dark"] div.privacy-module h1,
body[data-theme="dark"] div.privacy-module h2,
body[data-theme="dark"] div.privacy-module h3,
body[data-theme="dark"] div.privacy-module h4,
body[data-theme="dark"] div.privacy-module h5,
body[data-theme="dark"] div.privacy-module h6,
body[data-theme="dark"] div.privacy-module p,
body[data-theme="dark"] div.privacy-module li,
body[data-theme="dark"] div.privacy-module ul,
body[data-theme="dark"] div.privacy-module ol,
body[data-theme="dark"] div.privacy-module span:not(.privacy-update-badge),
body[data-theme="dark"] div.privacy-module strong,
body[data-theme="dark"] div.privacy-module em,
body[data-theme="dark"] div.privacy-module a:not(.privacy-back-btn),
body[data-theme="dark"] div.terms-module h1,
body[data-theme="dark"] div.terms-module h2,
body[data-theme="dark"] div.terms-module h3,
body[data-theme="dark"] div.terms-module h4,
body[data-theme="dark"] div.terms-module h5,
body[data-theme="dark"] div.terms-module h6,
body[data-theme="dark"] div.terms-module p,
body[data-theme="dark"] div.terms-module li,
body[data-theme="dark"] div.terms-module ul,
body[data-theme="dark"] div.terms-module ol,
body[data-theme="dark"] div.terms-module span:not(.terms-update-badge),
body[data-theme="dark"] div.terms-module strong,
body[data-theme="dark"] div.terms-module em,
body[data-theme="dark"] div.terms-module a:not(.terms-back-btn) {
  background-color: transparent !important;
  background: transparent !important;
  background-image: none !important;
}

/* ================================================================
   移动端暗黑模式完全覆盖保障 - 修复黑底显示不全问题
   ================================================================ */

/* 1. 确保所有层级的容器都有黑色背景（工作区模式除外） */
[data-theme="dark"] html,
[data-theme="dark"] body:not(.workspace-shell-active),
[data-theme="dark"] body:not(.workspace-shell-active) #app,
[data-theme="dark"] body:not(.workspace-shell-active) main,
[data-theme="dark"] body:not(.workspace-shell-active) .app-container {
  background: #000000 !important;
  background-color: #000000 !important;
}

/* 2. 移动端视口完全覆盖- 使用动态视口高度（工作区模式除外） */
@media (max-width: 991.98px) {
  [data-theme="dark"] html {
    background: #000000 !important;
    min-height: 100vh;
    min-height: 100dvh;
  }

  [data-theme="dark"] body:not(.workspace-shell-active) {
    background: #000000 !important;
    min-height: 100vh;
    min-height: 100dvh;
  }

  [data-theme="dark"] body:not(.workspace-shell-active) #app {
    background: #000000 !important;
    min-height: 100vh;
    min-height: 100dvh;
  }

  /* 确保所有直接子元素也有背景（工作区模式除外） */
  [data-theme="dark"] body:not(.workspace-shell-active) #app > * {
    background: #000000 !important;
  }
}

/* 3. 固定定位和绝对定位元素的背景保障（工作区模式除外） */
[data-theme="dark"] body:not(.workspace-shell-active) [style*="position: fixed"]:not([id="emotion-playground-wrapper"]),
[data-theme="dark"] body:not(.workspace-shell-active) [style*="position:fixed"]:not([id="emotion-playground-wrapper"]),
[data-theme="dark"] body:not(.workspace-shell-active) [style*="position: absolute"]:not([id="emotion-playground-wrapper"]),
[data-theme="dark"] body:not(.workspace-shell-active) [style*="position:absolute"]:not([id="emotion-playground-wrapper"]),
[data-theme="dark"] body:not(.workspace-shell-active) .fixed:not([class*="emotion-playground"]),
[data-theme="dark"] body:not(.workspace-shell-active) .absolute:not([class*="emotion-playground"]),
[data-theme="dark"] body:not(.workspace-shell-active) [class*="modal"]:not([class*="emotion-playground"]),
[data-theme="dark"] body:not(.workspace-shell-active) [class*="overlay"]:not([class*="portfolio-hero-overlay"]):not([class*="hero-overlay"]):not([class*="emotion-playground"]):not([class*="modal"]):not([class*="dropdown"]):not([class*="popover"]):not([class*="tooltip"]):not([class*="toast"]):not([class*="notification"]),
[data-theme="dark"] body:not(.workspace-shell-active) [class*="drawer"]:not([class*="emotion-playground"]),
[data-theme="dark"] body:not(.workspace-shell-active) [class*="sidebar"]:not([class*="emotion-playground"]) {
  background: #000000 !important;
  background-color: #000000 !important;
}

/* 4. 滚动容器的背景保障（工作区模式除外） */
[data-theme="dark"] body:not(.workspace-shell-active) [style*="overflow"]:not([id="emotion-playground-wrapper"]),
[data-theme="dark"] body:not(.workspace-shell-active) [class*="scroll"]:not([class*="portfolio-hero-scroll"]):not([class*="emotion-playground"]),
[data-theme="dark"] body:not(.workspace-shell-active) .overflow-auto:not([class*="emotion-playground"]),
[data-theme="dark"] body:not(.workspace-shell-active) .overflow-y-auto:not([class*="emotion-playground"]),
[data-theme="dark"] body:not(.workspace-shell-active) .overflow-x-auto:not([class*="emotion-playground"]) {
  background: #000000 !important;
}

/* 5. 防止iOS Safari的弹性滚动露出白色*/
@supports (-webkit-touch-callout: none) {
  [data-theme="dark"] html,
  [data-theme="dark"] body {
    background: #000000 !important;
    -webkit-overscroll-behavior: none;
    overscroll-behavior: none;
  }
}

/* 已删除：全局边框色透明覆盖 *:not(...) - 破坏了精心设计的边框层次 */

/* 7. 特殊处理：确保模态框、弹窗背景正常*/
[data-theme="dark"] .modal-backdrop,
[data-theme="dark"] .modal,
[data-theme="dark"] .popover,
[data-theme="dark"] .tooltip {
  background: #18181b !important;
  background-color: #18181b !important;
}

/* ================================================================
   🚨 核弹级终极修复 - 解决CSS不生效的问题
   使用最高优先级选择器 + body前缀 + 精确匹配
   ================================================================ */

/* ⚠️ 重要：这些规则必须放在最后，确保最高优先级 */

/* 1. Sticky导航栏 - 用户选中的第一个div */
body[data-theme="dark"] div[style*="background:#ffffff"][style*="padding:24px 0"][style*="border-bottom:1px solid #e8e8e8"][style*="position:sticky"],
body[data-theme="dark"] div[style*="background: #ffffff"][style*="padding:24px 0"][style*="border-bottom:1px solid #e8e8e8"][style*="position:sticky"],
body[data-theme="dark"] div[style*="background:#ffffff"][style*="padding:24px 0"][style*="border-bottom: 1px solid #e8e8e8"][style*="position: sticky"],
body[data-theme="dark"] div[style*="background: rgb(255, 255, 255)"][style*="padding:24px 0"][style*="border-bottom"][style*="position:sticky"] {
  background: #000000 !important;
  background-color: #000000 !important;
  border-bottom-color: #27272a !important;
}

/* 2. 返回链接按钮 - 用户选中的第二个div内的a标签 */
body[data-theme="dark"] a[style*="display:inline-flex"][style*="align-items:center"][style*="gap:8px"][style*="font-size:14px"][style*="color:#6b6b6b"][style*="background:#fafafa"][style*="border:1px solid #e8e8e8"],
body[data-theme="dark"] a[style*="display: inline-flex"][style*="align-items: center"][style*="gap: 8px"][style*="font-size: 14px"][style*="color: #6b6b6b"][style*="background: #fafafa"][style*="border: 1px solid #e8e8e8"],
body[data-theme="dark"] a#back-link[style*="background:#fafafa"] {
  background: #111113 !important;
  background-color: #111113 !important;
  color: #a1a1aa !important;
  border-color: #27272a !important;
}

body[data-theme="dark"] a#back-link[style*="background:#fafafa"]:hover {
  background: #18181b !important;
  border-color: #3f3f46 !important;
}

/* 3. SVG图标颜色修复 */
body[data-theme="dark"] a#back-link svg[stroke="#1a1a1a"],
body[data-theme="dark"] a[style*="background:#fafafa"] svg[stroke="#1a1a1a"],
body[data-theme="dark"] div[style*="position:sticky"] svg[stroke="#1a1a1a"] {
  stroke: #a1a1aa !important;
}

/* 4. 超强通用规则 - 覆盖所有可能的白色背景变体 */
body[data-theme="dark"] [style*="background:#ffffff"],
body[data-theme="dark"] [style*="background: #ffffff"],
body[data-theme="dark"] [style*="background:rgb(255"],
body[data-theme="dark"] [style*="background: rgb(255"],
body[data-theme="dark"] [style*="background:#fff"],
body[data-theme="dark"] [style*="background: #fff"],
body[data-theme="dark"] [style*="background:#FFF"],
body[data-theme="dark"] [style*="background: #FFF"],
body[data-theme="dark"] [style*="background:white"],
body[data-theme="dark"] [style*="background: white"],
body[data-theme="dark"] [style*="background:White"],
body[data-theme="dark"] [style*="background: White"] {
  background: #000000 !important;
  background-color: #000000 !important;
}

/* 5. 浅灰色背景也转为纯黑 */
body[data-theme="dark"] [style*="background:#fafafa"],
body[data-theme="dark"] [style*="background: #fafafa"],
body[data-theme="dark"] [style*="background:rgb(250"],
body[data-theme="dark"] [style*="background: rgb(250"],
body[data-theme="dark"] [style*="background:#f5f5f5"],
body[data-theme="dark"] [style*="background: #f5f5f5"],
body[data-theme="dark"] [style*="background:#f8f9fa"],
body[data-theme="dark"] [style*="background: #f8f9fa"] {
  background: #000000 !important;
  background-color: #000000 !important;
}

/* 6. 所有浅色边框转为深色*/
body[data-theme="dark"] [style*="border:1px solid #e8e8e8"],
body[data-theme="dark"] [style*="border: 1px solid #e8e8e8"],
body[data-theme="dark"] [style*="border:1px solid #e5e5ea"],
body[data-theme="dark"] [style*="border: 1px solid #e5e5ea"],
body[data-theme="dark"] [style*="border:1px solid #ddd"],
body[data-theme="dark"] [style*="border: 1px solid #ddd"],
body[data-theme="dark"] [style*="border:1px solid #d0d0d0"],
body[data-theme="dark"] [style*="border: 1px solid #d0d0d0"],
body[data-theme="dark"] [style*="border-bottom:1px solid #e8e8e8"],
body[data-theme="dark"] [style*="border-bottom: 1px solid #e8e8e8"],
body[data-theme="dark"] [style*="border-top:1px solid #e8e8e8"],
body[data-theme="dark"] [style*="border-top: 1px solid #e8e8e8"] {
  border-color: #27272a !important;
}

/* 7. 所有深色文字（#1a1a1a）转为浅灰色 */
body[data-theme="dark"] [style*="color:#1a1a1a"],
body[data-theme="dark"] [style*="color: #1a1a1a"],
body[data-theme="dark"] [style*="color:#0a0a0a"],
body[data-theme="dark"] [style*="color: #0a0a0a"],
body[data-theme="dark"] [style*="color:#000000"],
body[data-theme="dark"] [style*="color: #000000"],
body[data-theme="dark"] [style*="color:black"],
body[data-theme="dark"] [style*="color: black"] {
  color: #a1a1aa !important;
}

/* 8. 所有次要文字颜色调整*/
body[data-theme="dark"] [style*="color:#6b6b6b"],
body[data-theme="dark"] [style*="color: #6b6b6b"],
body[data-theme="dark"] [style*="color:#666666"],
body[data-theme="dark"] [style*="color: #666666"],
body[data-theme="dark"] [style*="color:#888888"],
body[data-theme="dark"] [style*="color: #888888"] {
  color: #71717a !important;
}

/* 9. 特别处理：容器类元素的子元素 */
body[data-theme="dark"] .container > [style*="background:#ffffff"],
body[data-theme="dark"] .container > [style*="background: #ffffff"],
body[data-theme="dark"] .container > [style*="background:#fafafa"],
body[data-theme="dark"] .container > [style*="background: #fafafa"] {
  background: #000000 !important;
  background-color: #000000 !important;
}

/* 10. 最终兜底：如果以上都不生效，使用通配符（慎用，性能影响大*/
@media (prefers-color-scheme: dark) {
  body[data-theme="dark"] * [style*="background:#ffffff"] {
    background: #000000 !important;
    background-color: #000000 !important;
  }
  
  body[data-theme="dark"] * [style*="background:#fafafa"] {
    background: #000000 !important;
    background-color: #000000 !important;
  }
}

/* ================================================================
   🎯 特定页面覆盖 - 结果页、关于我们、新闻、案例库等   ================================================================ */

/* 结果页面 - 头部区域 */
body[data-theme="dark"] .result-module div[style*="background:#ffffff"][style*="padding:56px"],
body[data-theme="dark"] .result-module div[style*="background: #ffffff"][style*="padding:56px"],
body[data-theme="dark"] .result-module div[style*="background:#ffffff"][style*="padding: 56px"] {
  background: #000000 !important;
  background-color: #000000 !important;
}

/* 关于我们页面 */
body[data-theme="dark"] .about-module div[style*="background:#ffffff"],
body[data-theme="dark"] .about-module div[style*="background: #ffffff"],
body[data-theme="dark"] .about-module section[style*="background:#ffffff"],
body[data-theme="dark"] .about-module section[style*="background: #ffffff"] {
  background: #000000 !important;
  background-color: #000000 !important;
}

/* 关于我们 - 卡片和容器*/
body[data-theme="dark"] .about-module div[style*="background:#fafafa"][style*="border-radius:20px"],
body[data-theme="dark"] .about-module div[style*="background: #fafafa"][style*="border-radius: 20px"],
body[data-theme="dark"] .about-module div[style*="background:#fafafa"][style*="border-radius:16px"],
body[data-theme="dark"] .about-module div[style*="background: #fafafa"][style*="border-radius: 16px"] {
  background: #111113 !important;
  background-color: #111113 !important;
  border-color: #27272a !important;
}

/* 关于我们 - 图标容器 */
body[data-theme="dark"] .about-module div[style*="width:56px"][style*="height:56px"][style*="background:#1a1a1a"],
body[data-theme="dark"] .about-module div[style*="width: 56px"][style*="height: 56px"][style*="background: #1a1a1a"],
body[data-theme="dark"] .about-module div[style*="width:104px"][style*="height:104px"][style*="background:#1a1a1a"] {
  background: #18181b !important;
  background-color: #18181b !important;
}

/* 新闻页面 */
body[data-theme="dark"] .news-module div[style*="background:#ffffff"],
body[data-theme="dark"] .news-module div[style*="background: #ffffff"],
body[data-theme="dark"] .news-header-bar,
body[data-theme="dark"] .news-content {
  background: #000000 !important;
  background-color: #000000 !important;
}

/* 新闻卡片 */
body[data-theme="dark"] .news-card-new,
body[data-theme="dark"] .news-module article[class*="news-card"] {
  background: #111113 !important;
  border-color: #27272a !important;
}

/* 案例库页面*/
body[data-theme="dark"] .cases-module div[style*="background:#ffffff"],
body[data-theme="dark"] .cases-module div[style*="background: #ffffff"],
body[data-theme="dark"] .showcase-module div[style*="background:#ffffff"],
body[data-theme="dark"] .showcase-module div[style*="background: #ffffff"] {
  background: #000000 !important;
  background-color: #000000 !important;
}

/* 通用：所有模块内的白色背景*/
body[data-theme="dark"] [class*="-module"] div[style*="background:#ffffff"],
body[data-theme="dark"] [class*="-module"] div[style*="background: #ffffff"],
body[data-theme="dark"] [class*="-module"] section[style*="background:#ffffff"],
body[data-theme="dark"] [class*="-module"] section[style*="background: #ffffff"] {
  background: #000000 !important;
  background-color: #000000 !important;
}

/* 通用：所有模块内的浅灰背景*/
body[data-theme="dark"] [class*="-module"] div[style*="background:#fafafa"],
body[data-theme="dark"] [class*="-module"] div[style*="background: #fafafa"] {
  background: #111113 !important;
  background-color: #111113 !important;
}

/* 通用：所有模块内的白色卡片*/
body[data-theme="dark"] [class*="-module"] div[style*="background:#ffffff"][style*="border-radius:16px"],
body[data-theme="dark"] [class*="-module"] div[style*="background: #ffffff"][style*="border-radius: 16px"],
body[data-theme="dark"] [class*="-module"] div[style*="background:#ffffff"][style*="border-radius:12px"],
body[data-theme="dark"] [class*="-module"] div[style*="background: #ffffff"][style*="border-radius: 12px"] {
  background: #111113 !important;
  background-color: #111113 !important;
  border-color: #27272a !important;
}

/* 按钮样式覆盖 */
body[data-theme="dark"] [class*="-module"] a[style*="background:#1a1a1a"][style*="color:#ffffff"],
body[data-theme="dark"] [class*="-module"] a[style*="background: #1a1a1a"][style*="color: #ffffff"] {
  background: #a1a1aa !important;
  background-color: #a1a1aa !important;
  border-color: #a1a1aa !important;
  color: #ffffff !important;
}

body[data-theme="dark"] [class*="-module"] a[style*="background:#fafafa"][style*="border:1px solid #e8e8e8"],
body[data-theme="dark"] [class*="-module"] a[style*="background: #fafafa"][style*="border: 1px solid #e8e8e8"] {
  background: #111113 !important;
  background-color: #111113 !important;
  border-color: #27272a !important;
  color: #a1a1aa !important;
}

/* 标签和徽章*/
body[data-theme="dark"] [class*="-module"] span[style*="background:#ffffff"][style*="border-radius:100px"],
body[data-theme="dark"] [class*="-module"] span[style*="background: #ffffff"][style*="border-radius: 100px"] {
  background: #18181b !important;
  background-color: #18181b !important;
  border-color: #27272a !important;
  color: #a1a1aa !important;
}

body[data-theme="dark"] [class*="-module"] span[style*="background:#fafafa"][style*="border-radius:100px"],
body[data-theme="dark"] [class*="-module"] span[style*="background: #fafafa"][style*="border-radius: 100px"] {
  background: #18181b !important;
  background-color: #18181b !important;
  border-color: #27272a !important;
  color: #a1a1aa !important;
}

/* SVG图标颜色 */
body[data-theme="dark"] [class*="-module"] svg[stroke="#1a1a1a"] {
  stroke: #a1a1aa !important;
}

body[data-theme="dark"] [class*="-module"] svg[fill="#1a1a1a"] {
  fill: #a1a1aa !important;
}

/* 步骤指示器*/
body[data-theme="dark"] [class*="-module"] div[style*="width:32px"][style*="height:1px"][style*="background:#e8e8e8"],
body[data-theme="dark"] [class*="-module"] div[style*="width: 32px"][style*="height: 1px"][style*="background: #e8e8e8"],
body[data-theme="dark"] [class*="-module"] div[style*="width:48px"][style*="height:1px"][style*="background:#e5e5ea"],
body[data-theme="dark"] [class*="-module"] div[style*="width: 48px"][style*="height: 1px"][style*="background: #e5e5ea"] {
  background: #27272a !important;
  background-color: #27272a !important;
}

/* 输入框*/
body[data-theme="dark"] [class*="-module"] input[style*="background:#ffffff"],
body[data-theme="dark"] [class*="-module"] input[style*="background: #ffffff"] {
  background: #111113 !important;
  background-color: #111113 !important;
  border-color: #27272a !important;
  color: #a1a1aa !important;
}

/* 图片容器 */
body[data-theme="dark"] [class*="-module"] div[style*="background:#ffffff"][style*="border-radius:14px"],
body[data-theme="dark"] [class*="-module"] div[style*="background: #ffffff"][style*="border-radius: 14px"] {
  background: #18181b !important;
  background-color: #18181b !important;
  border-color: #27272a !important;
}

/* ================================================================
   🚨 终极兜底 - 使用更通用的选择器覆盖所有白色背景   ================================================================ */

/* 直接针对所有带白色背景的div，无论在哪里 */
body[data-theme="dark"] div[style*="background:#ffffff"],
body[data-theme="dark"] div[style*="background: rgb(255, 255, 255)"],
body[data-theme="dark"] div[style*="background: rgb(255,255,255)"] {
  background: #000000 !important;
  background-color: #000000 !important;
}

/* 针对结果页面的特定结构 - 直接子元素*/
body[data-theme="dark"] .result-module > div[style*="background:#ffffff"],
body[data-theme="dark"] .result-module > div[style*="background: rgb(255, 255, 255)"],
body[data-theme="dark"] [class*="result-"] > div[style*="background:#ffffff"],
body[data-theme="dark"] [class*="result-"] > div[style*="background: rgb(255, 255, 255)"] {
  background: #000000 !important;
  background-color: #000000 !important;
  border-bottom-color: #27272a !important;
}

/* 针对padding:56px 0 48px的白色背景div */
body[data-theme="dark"] div[style*="background:#ffffff"][style*="padding:56px"],
body[data-theme="dark"] div[style*="background: rgb(255, 255, 255)"][style*="padding:56px"] {
  background: #000000 !important;
  background-color: #000000 !important;
}

/* 使用属性包含选择器 - 更宽松匹配*/
body[data-theme="dark"] [style*="background"][style*="#ffffff"],
body[data-theme="dark"] [style*="background"][style*="rgb(255"] {
  background: #000000 !important;
  background-color: #000000 !important;
}

/* 强制覆盖所有可能的白色背景变体 */
body[data-theme="dark"] [style*="background-color:#ffffff"],
body[data-theme="dark"] [style*="background-color: #ffffff"],
body[data-theme="dark"] [style*="background-color:rgb(255"] {
  background-color: #000000 !important;
}

/* ================================================================
   🎯 特定修复 - 结果页面renderNormalResult中的白色背景div
   ================================================================ */

/* 结果页面 - 英雄区域白色背景 - 使用最高优先级 */
body[data-theme="dark"] .result-normal > div:first-child,
body[data-theme="dark"] .result-module.result-normal > div:first-child {
  background: #000000 !important;
  background-color: #000000 !important;
  border-bottom-color: #27272a !important;
}

/* 强制覆盖 - 针对内联样式 */
body[data-theme="dark"] .result-normal > div:first-child[style],
body[data-theme="dark"] .result-module.result-normal > div:first-child[style] {
  background: #000000 !important;
  background-color: #000000 !important;
}

/* 结果页面 - 所有直接子div的白色背景*/
body[data-theme="dark"] .result-module.result-normal > div[style*="background:#ffffff"],
body[data-theme="dark"] .result-module.result-image > div[style*="background:#ffffff"],
body[data-theme="dark"] .result-module.result-video > div[style*="background:#ffffff"] {
  background: #000000 !important;
  background-color: #000000 !important;
}

/* 结果页面 - 步骤指示器连接线 */
body[data-theme="dark"] .result-module div[style*="width:32px"][style*="height:1px"][style*="background:#e8e8e8"],
body[data-theme="dark"] .result-module div[style*="width: 32px"][style*="height: 1px"][style*="background: #e8e8e8"] {
  background: #27272a !important;
  background-color: #27272a !important;
}

/* 结果页面 - 方案概览卡片 */
body[data-theme="dark"] .result-module div[style*="background:#fafafa"][style*="border-radius:12px"],
body[data-theme="dark"] .result-module div[style*="background: #fafafa"][style*="border-radius: 12px"] {
  background: #111113 !important;
  background-color: #111113 !important;
  border-color: #27272a !important;
}

/* 结果页面 - 工具项标签*/
body[data-theme="dark"] .result-module span[style*="background:#ffffff"][style*="border-radius:100px"],
body[data-theme="dark"] .result-module span[style*="background: #ffffff"][style*="border-radius: 100px"] {
  background: #18181b !important;
  background-color: #18181b !important;
  border-color: #27272a !important;
  color: #a1a1aa !important;
}

/* 结果页面 - 按钮 */
body[data-theme="dark"] .result-module button[style*="background:#ffffff"],
body[data-theme="dark"] .result-module button[style*="background: #ffffff"] {
  background: #18181b !important;
  background-color: #18181b !important;
  border-color: #27272a !important;
  color: #a1a1aa !important;
}

/* 结果页面 - 图标容器 */
body[data-theme="dark"] .result-module div[style*="width:40px"][style*="height:40px"][style*="background:#ffffff"],
body[data-theme="dark"] .result-module div[style*="width: 40px"][style*="height: 40px"][style*="background: #ffffff"] {
  background: #18181b !important;
  background-color: #18181b !important;
  border-color: #27272a !important;
}

/* 结果页面 - 文字颜色 */
body[data-theme="dark"] .result-module [style*="color:#1a1a1a"],
body[data-theme="dark"] .result-module [style*="color: #1a1a1a"] {
  color: #a1a1aa !important;
}

body[data-theme="dark"] .result-module [style*="color:#8a8a8a"],
body[data-theme="dark"] .result-module [style*="color: #8a8a8a"] {
  color: #71717a !important;
}

body[data-theme="dark"] .result-module [style*="color:#6b6b6b"],
body[data-theme="dark"] .result-module [style*="color: #6b6b6b"] {
  color: #71717a !important;
}

/* ================================================================
   🎯 案例库页面(cases module) 暗夜模式适配
   ================================================================ */

/* 案例库页面- 所有白色背景区域 */
body[data-theme="dark"] .cases-page > div[style*="background:#ffffff"],
body[data-theme="dark"] .cases-page > div[style*="background: #ffffff"] {
  background: #000000 !important;
  background-color: #000000 !important;
  border-bottom-color: #27272a !important;
}

/* 案例库页面- 返回按钮区域 */
body[data-theme="dark"] .cases-page > div:first-child[style*="background:#ffffff"] {
  background: #000000 !important;
  background-color: #000000 !important;
}

/* 案例库页面- 英雄区域 */
body[data-theme="dark"] .cases-page > div:nth-child(2)[style*="background:#ffffff"] {
  background: #000000 !important;
  background-color: #000000 !important;
}

/* 案例库页面- 统计卡片 */
body[data-theme="dark"] .cases-page div[style*="background:#fafafa"][style*="border-radius:12px"] {
  background: #111113 !important;
  background-color: #111113 !important;
  border-color: #27272a !important;
}

/* 案例库页面- 筛选按钮*/
body[data-theme="dark"] .cases-page button.filter-tab[style*="background:#ffffff"] {
  background: #18181b !important;
  background-color: #18181b !important;
  border-color: #27272a !important;
  color: #a1a1aa !important;
}

body[data-theme="dark"] .cases-page button.filter-tab.active[style*="background:#ffffff"] {
  background: #a1a1aa !important;
  background-color: #a1a1aa !important;
  border-color: #a1a1aa !important;
  color: #ffffff !important;
}

/* 案例库页面- 加载更多按钮 */
body[data-theme="dark"] .cases-page button#load-more[style*="background:#ffffff"] {
  background: #18181b !important;
  background-color: #18181b !important;
  border-color: #27272a !important;
  color: #a1a1aa !important;
}

/* 案例库页面- 标签 */
body[data-theme="dark"] .cases-page div[style*="background:#ffffff"][style*="border-radius:100px"] {
  background: #18181b !important;
  background-color: #18181b !important;
  border-color: #27272a !important;
  color: #a1a1aa !important;
}

/* 案例库页面- 弹窗 */
body[data-theme="dark"] .cases-page div[style*="background:#ffffff"][style*="padding:24px 28px"],
body[data-theme="dark"] .cases-page div[style*="background:#ffffff"][style*="padding:32px 28px"] {
  background: #111113 !important;
  background-color: #111113 !important;
  border-color: #27272a !important;
}

/* 案例库页面- 返回链接按钮 */
body[data-theme="dark"] .cases-page a#back-link[style*="background:#fafafa"] {
  background: #111113 !important;
  background-color: #111113 !important;
  border-color: #27272a !important;
  color: #a1a1aa !important;
}

/* 案例库页面 - 主按钮 */
body[data-theme="dark"] .cases-page a[style*="background:#1a1a1a"][style*="color:#ffffff"] {
  background: #a1a1aa !important;
  background-color: #a1a1aa !important;
  border-color: #a1a1aa !important;
}

/* 案例库页面- 文字颜色 */
body[data-theme="dark"] .cases-page [style*="color:#1a1a1a"] {
  color: #a1a1aa !important;
}

body[data-theme="dark"] .cases-page [style*="color:#8a8a8a"],
body[data-theme="dark"] .cases-page [style*="color:#6b6b6b"] {
  color: #71717a !important;
}

/* 案例库页面- 边框 */
body[data-theme="dark"] .cases-page [style*="border:1px solid #e8e8e8"] {
  border-color: #27272a !important;
}

/* ================================================================
   🤖 AI助手/智能客服 (chatbot) 暗夜模式适配
   ================================================================ */

/* AI助手悬浮按钮 - 图标颜色 */
[data-theme="dark"] .chatbot-icon-robot,
body[data-theme="dark"] .chatbot-icon-robot {
  color: rgba(255, 255, 255, 0.75) !important;
}

/* AI助手悬浮按钮 - 背景 */
[data-theme="dark"] .chatbot-toggle,
body[data-theme="dark"] .chatbot-toggle {
  background: linear-gradient(135deg, rgba(24, 24, 27, 0.92) 0%, rgba(18, 18, 21, 0.85) 100%) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.2),
    0 8px 24px rgba(0, 0, 0, 0.35),
    0 2px 6px rgba(0, 0, 0, 0.15) !important;
}

[data-theme="dark"] .chatbot-toggle::before,
body[data-theme="dark"] .chatbot-toggle::before {
  background: linear-gradient(180deg, rgba(255,255,255,0.06) 0%, transparent 60%);
}

[data-theme="dark"] .chatbot-toggle:hover,
body[data-theme="dark"] .chatbot-toggle:hover {
  background: linear-gradient(135deg, rgba(39, 39, 42, 0.94) 0%, rgba(24, 24, 27, 0.88) 100%) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  box-shadow:
    0 1px 3px rgba(0, 0, 0, 0.25),
    0 12px 36px rgba(0, 0, 0, 0.45),
    0 4px 10px rgba(0, 0, 0, 0.25),
    0 0 0 4px rgba(82, 82, 91, 0.15) !important;
}

[data-theme="dark"] .chatbot-toggle:active,
body[data-theme="dark"] .chatbot-toggle:active,
[data-theme="dark"] .chatbot-toggle.dragging,
body[data-theme="dark"] .chatbot-toggle.dragging {
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.2),
    0 4px 12px rgba(0, 0, 0, 0.3),
    0 0 0 8px rgba(82, 82, 91, 0.1) !important;
}

[data-theme="dark"] .chatbot-drag-hint,
body[data-theme="dark"] .chatbot-drag-hint {
  background: rgba(24, 24, 27, 0.95) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.25),
    0 1px 2px rgba(0, 0, 0, 0.15) !important;
}

[data-theme="dark"] .chatbot-drag-hint svg,
body[data-theme="dark"] .chatbot-drag-hint svg {
  color: rgba(255, 255, 255, 0.4);
}

/* AI助手悬浮按钮 - 脉冲效果 */
[data-theme="dark"] .chatbot-icon-pulse,
body[data-theme="dark"] .chatbot-icon-pulse {
  background: radial-gradient(circle, rgba(161, 161, 170, 0.12) 0%, transparent 70%) !important;
}

/* AI助手聊天窗口 - 整体 */
[data-theme="dark"] .chatbot-window,
body[data-theme="dark"] .chatbot-window {
  background: rgba(18, 18, 21, 0.94) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  box-shadow:
    0 1px 3px rgba(0, 0, 0, 0.2),
    0 8px 24px rgba(0, 0, 0, 0.3),
    0 20px 60px rgba(0, 0, 0, 0.45) !important;
}

/* AI助手聊天窗口 - 头部 */
[data-theme="dark"] .chatbot-header,
body[data-theme="dark"] .chatbot-header {
  background: rgba(24, 24, 27, 0.88) !important;
  border-bottom-color: rgba(255, 255, 255, 0.06) !important;
}

[data-theme="dark"] .chatbot-avatar,
body[data-theme="dark"] .chatbot-avatar {
  background: linear-gradient(135deg, rgba(82, 82, 91, 0.12) 0%, rgba(82, 82, 91, 0.04) 100%) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}

[data-theme="dark"] .chatbot-avatar i,
body[data-theme="dark"] .chatbot-avatar i {
  color: rgba(255, 255, 255, 0.55);
  filter: none;
}

[data-theme="dark"] .chatbot-info h4,
body[data-theme="dark"] .chatbot-info h4 {
  color: rgba(255, 255, 255, 0.85) !important;
}

[data-theme="dark"] .chatbot-status,
body[data-theme="dark"] .chatbot-status {
  color: rgba(255, 255, 255, 0.35);
}

[data-theme="dark"] .chatbot-status i,
body[data-theme="dark"] .chatbot-status i {
  filter: drop-shadow(0 0 2px rgba(52, 199, 89, 0.2));
}

[data-theme="dark"] .chatbot-close,
body[data-theme="dark"] .chatbot-close {
  background: rgba(255, 255, 255, 0.04) !important;
}

[data-theme="dark"] .chatbot-close:hover,
body[data-theme="dark"] .chatbot-close:hover {
  background: rgba(255, 255, 255, 0.08) !important;
}

[data-theme="dark"] .chatbot-close i,
body[data-theme="dark"] .chatbot-close i {
  color: rgba(255, 255, 255, 0.4);
}

/* AI助手聊天窗口 - 消息区域 */
[data-theme="dark"] .chatbot-messages,
body[data-theme="dark"] .chatbot-messages {
  background: #0a0a0b !important;
}

[data-theme="dark"] .chat-message.bot .message-bubble,
body[data-theme="dark"] .chat-message.bot .message-bubble {
  background: rgba(24, 24, 27, 0.85) !important;
  border-color: rgba(255, 255, 255, 0.06) !important;
  color: rgba(255, 255, 255, 0.8) !important;
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.1),
    0 2px 8px rgba(0, 0, 0, 0.15) !important;
}

[data-theme="dark"] .chat-message.user .message-bubble,
body[data-theme="dark"] .chat-message.user .message-bubble {
  background: linear-gradient(135deg, #52525b 0%, #3f3f46 100%) !important;
  color: rgba(255, 255, 255, 0.92) !important;
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.2),
    0 1px 3px rgba(0, 0, 0, 0.1) !important;
}

[data-theme="dark"] .message-avatar,
body[data-theme="dark"] .message-avatar {
  border-color: rgba(255, 255, 255, 0.05) !important;
}

[data-theme="dark"] .chat-message.bot .message-avatar,
body[data-theme="dark"] .chat-message.bot .message-avatar {
  background: linear-gradient(135deg, rgba(82, 82, 91, 0.08) 0%, rgba(82, 82, 91, 0.03) 100%) !important;
  border-color: rgba(255, 255, 255, 0.06) !important;
}

[data-theme="dark"] .chat-message.user .message-avatar,
body[data-theme="dark"] .chat-message.user .message-avatar {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.02) 100%) !important;
}

[data-theme="dark"] .message-avatar i,
body[data-theme="dark"] .message-avatar i {
  color: rgba(255, 255, 255, 0.4) !important;
}

[data-theme="dark"] .message-time,
body[data-theme="dark"] .message-time {
  color: rgba(255, 255, 255, 0.25) !important;
}

[data-theme="dark"] .typing-indicator span,
body[data-theme="dark"] .typing-indicator span {
  background: rgba(255, 255, 255, 0.3) !important;
}

/* AI助手聊天窗口 - 输入区域 */
[data-theme="dark"] .chatbot-input-area,
body[data-theme="dark"] .chatbot-input-area {
  background: rgba(24, 24, 27, 0.88) !important;
  border-top-color: rgba(255, 255, 255, 0.06) !important;
}

[data-theme="dark"] .chatbot-input-wrapper,
body[data-theme="dark"] .chatbot-input-wrapper {
  background: rgba(255, 255, 255, 0.03) !important;
  border-color: rgba(255, 255, 255, 0.06) !important;
}

[data-theme="dark"] .chatbot-input-wrapper:focus-within,
body[data-theme="dark"] .chatbot-input-wrapper:focus-within {
  border-color: rgba(82, 82, 91, 0.25) !important;
  box-shadow: 0 0 0 3px rgba(82, 82, 91, 0.1) !important;
  background: rgba(255, 255, 255, 0.05) !important;
}

[data-theme="dark"] .chatbot-input,
body[data-theme="dark"] .chatbot-input {
  background: transparent !important;
  border-color: transparent !important;
  color: rgba(255, 255, 255, 0.75) !important;
}

[data-theme="dark"] .chatbot-input::placeholder,
body[data-theme="dark"] .chatbot-input::placeholder {
  color: rgba(255, 255, 255, 0.25) !important;
}

[data-theme="dark"] .chatbot-send,
body[data-theme="dark"] .chatbot-send {
  background: linear-gradient(135deg, #52525b 0%, #3f3f46 100%) !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2) !important;
}

[data-theme="dark"] .chatbot-send:hover,
body[data-theme="dark"] .chatbot-send:hover {
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35) !important;
}

[data-theme="dark"] .chatbot-hint,
body[data-theme="dark"] .chatbot-hint {
  color: rgba(255, 255, 255, 0.2) !important;
}

[data-theme="dark"] .chatbot-hint i,
body[data-theme="dark"] .chatbot-hint i {
  color: rgba(255, 255, 255, 0.2) !important;
}

[data-theme="dark"] .chatbot-quick-questions,
body[data-theme="dark"] .chatbot-quick-questions {
  background: rgba(10, 10, 11, 0.85) !important;
  border-top-color: rgba(255, 255, 255, 0.06) !important;
}

[data-theme="dark"] .quick-question-btn,
body[data-theme="dark"] .quick-question-btn {
  background: rgba(255, 255, 255, 0.04) !important;
  border-color: rgba(255, 255, 255, 0.06) !important;
  color: rgba(255, 255, 255, 0.55) !important;
}

[data-theme="dark"] .quick-question-btn:hover,
body[data-theme="dark"] .quick-question-btn:hover {
  background: rgba(82, 82, 91, 0.12) !important;
  color: rgba(255, 255, 255, 0.8) !important;
  border-color: rgba(82, 82, 91, 0.2) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
}

/* AI助手聊天窗口 - 输入框*/
[data-theme="dark"] .chatbot-input,
body[data-theme="dark"] .chatbot-input {
  background: transparent !important;
  border-color: transparent !important;
  color: rgba(255, 255, 255, 0.75) !important;
}

/* AI助手聊天窗口 - 快捷问题 */
[data-theme="dark"] .chatbot-quick-questions,
body[data-theme="dark"] .chatbot-quick-questions {
  background: rgba(10, 10, 11, 0.85) !important;
  border-top-color: rgba(255, 255, 255, 0.06) !important;
}

/* AI助手聊天窗口 - 快捷问题按钮 */
[data-theme="dark"] .quick-question-btn,
body[data-theme="dark"] .quick-question-btn {
  background: rgba(255, 255, 255, 0.04) !important;
  border-color: rgba(255, 255, 255, 0.06) !important;
  color: rgba(255, 255, 255, 0.55) !important;
}

/* ================================================================
   工作区页面暗黑模式适配
   统一深黑背景 + 半透明卡片体系
   ================================================================ */

/* --- 页面根容器：温暖米色 → 深黑 --- */
[data-theme="dark"] .school-workbench,
[data-theme="dark"] .pj-workspace,
[data-theme="dark"] .pf-wrap,
[data-theme="dark"] .sp-page,
[data-theme="dark"] .od-wrap,
[data-theme="dark"] .fu-wrap,
[data-theme="dark"] .er-wrap,
[data-theme="dark"] .vr-wrap,
[data-theme="dark"] .cb-wrap,
[data-theme="dark"] .ts-wrap,
[data-theme="dark"] .ds-page,
[data-theme="dark"] .da-page,
[data-theme="dark"] .as-wrap,
[data-theme="dark"] .ann-wrap,
[data-theme="dark"] .cd-hero {
  background: #0a0a0c !important;
  box-shadow: 0 0 0 100vmax #0a0a0c !important;
  color: #e4e4e7 !important;
}

/* --- Hero/大面板：暖白渐变 → 深色半透明 --- */
[data-theme="dark"] .school-hero,
[data-theme="dark"] .pj-hero,
[data-theme="dark"] .pf-hero,
[data-theme="dark"] .cd-hero {
  background: linear-gradient(180deg, rgba(30,30,33,.7), rgba(14,14,16,.5)) !important;
  border-color: rgba(255,255,255,.06) !important;
  box-shadow: 0 18px 50px rgba(0,0,0,.3) !important;
}

/* --- 统计/指标卡片 --- */
[data-theme="dark"] .school-metric,
[data-theme="dark"] .pj-metric,
[data-theme="dark"] .pf-metric,
[data-theme="dark"] .od-stat,
[data-theme="dark"] .fu-stat,
[data-theme="dark"] .er-stat,
[data-theme="dark"] .vr-stat,
[data-theme="dark"] .cb-stat,
[data-theme="dark"] .ts-stat,
[data-theme="dark"] .ds-stat,
[data-theme="dark"] .da-stat,
[data-theme="dark"] .as-stat,
[data-theme="dark"] .ann-stat,
[data-theme="dark"] .as-kpi {
  background: linear-gradient(180deg, rgba(30,30,33,.6), rgba(14,14,16,.4)) !important;
  border-color: rgba(255,255,255,.06) !important;
}

/* --- 面板/卡片 --- */
[data-theme="dark"] .school-panel,
[data-theme="dark"] .pj-panel,
[data-theme="dark"] .pf-panel,
[data-theme="dark"] .sp-stat-card,
[data-theme="dark"] .sp-filter-panel,
[data-theme="dark"] .sp-list-panel,
[data-theme="dark"] .sp-detail-panel,
[data-theme="dark"] .od-panel,
[data-theme="dark"] .fu-panel,
[data-theme="dark"] .er-panel,
[data-theme="dark"] .vr-panel,
[data-theme="dark"] .cb-panel,
[data-theme="dark"] .as-panel,
[data-theme="dark"] .ann-panel {
  background: linear-gradient(180deg, rgba(30,30,33,.5), rgba(14,14,16,.3)) !important;
  border-color: rgba(255,255,255,.06) !important;
  backdrop-filter: none !important;
}

/* --- 操作/场景卡片 --- */
[data-theme="dark"] .school-action-card,
[data-theme="dark"] .school-scene-card,
[data-theme="dark"] .pj-material-card,
[data-theme="dark"] .pj-project-row,
[data-theme="dark"] .pj-plan-card,
[data-theme="dark"] .pj-mode-card,
[data-theme="dark"] .pj-budget-card,
[data-theme="dark"] .pj-pain-card,
[data-theme="dark"] .pj-quota-card,
[data-theme="dark"] .pj-scene-card,
[data-theme="dark"] .pj-tool-card,
[data-theme="dark"] .pj-strategy-card,
[data-theme="dark"] .pj-result-stat,
[data-theme="dark"] .pj-lesion-card,
[data-theme="dark"] .pj-application-info,
[data-theme="dark"] .er-card,
[data-theme="dark"] .vr-card,
[data-theme="dark"] .cb-cat-card,
[data-theme="dark"] .cb-tpl-card,
[data-theme="dark"] .ts-card,
[data-theme="dark"] .fu-card,
[data-theme="dark"] .fu-metric,
[data-theme="dark"] .cd-card {
  background: linear-gradient(180deg, rgba(30,30,33,.5), rgba(14,14,16,.3)) !important;
  border-color: rgba(255,255,255,.06) !important;
}

/* --- 上传区域 --- */
[data-theme="dark"] .pj-upload-zone {
  background: rgba(255,255,255,.03) !important;
  border-color: rgba(255,255,255,.1) !important;
}

/* --- 行 hover --- */
[data-theme="dark"] .school-project-row:hover,
[data-theme="dark"] .od-table tr:hover td,
[data-theme="dark"] .cb-table tr:hover td,
[data-theme="dark"] .ts-table tr:hover td {
  background: rgba(255,255,255,.04) !important;
}

/* --- 卡片 hover --- */
[data-theme="dark"] .school-metric:hover,
[data-theme="dark"] .school-action-card:hover,
[data-theme="dark"] .school-scene-card:hover,
[data-theme="dark"] .pj-metric:hover,
[data-theme="dark"] .pj-material-card:hover,
[data-theme="dark"] .pj-project-row:hover,
[data-theme="dark"] .pj-plan-card:hover,
[data-theme="dark"] .pj-mode-card:hover,
[data-theme="dark"] .pj-budget-card:hover,
[data-theme="dark"] .pj-pain-card:hover,
[data-theme="dark"] .er-card:hover,
[data-theme="dark"] .vr-card:hover,
[data-theme="dark"] .cb-cat-card:hover,
[data-theme="dark"] .ts-card:hover,
[data-theme="dark"] .fu-card:hover,
[data-theme="dark"] .fu-stat:hover,
[data-theme="dark"] .od-stat:hover,
[data-theme="dark"] .cb-stat:hover,
[data-theme="dark"] .ts-stat:hover,
[data-theme="dark"] .as-stat:hover,
[data-theme="dark"] .ann-stat:hover,
[data-theme="dark"] .da-stat:hover,
[data-theme="dark"] .ds-stat:hover {
  border-color: rgba(255,255,255,.12) !important;
  box-shadow: 0 8px 24px rgba(0,0,0,.3) !important;
}

/* --- 按钮暗黑覆盖 --- */
[data-theme="dark"] .school-btn--primary,
[data-theme="dark"] .pj-btn--primary {
  background: #e4e4e7 !important;
  border-color: #e4e4e7 !important;
  color: #09090b !important;
}

[data-theme="dark"] .school-btn--primary:hover,
[data-theme="dark"] .pj-btn--primary:hover {
  background: #d4d4d8 !important;
  border-color: #d4d4d8 !important;
}

/* --- Filter pills --- */
[data-theme="dark"] .ts-filter--active {
  background: #e4e4e7 !important;
  border-color: #e4e4e7 !important;
  color: #09090b !important;
}

/* --- 表格暗黑 --- */
[data-theme="dark"] .od-table thead,
[data-theme="dark"] .cb-table thead,
[data-theme="dark"] .ts-table thead {
  border-bottom-color: rgba(255,255,255,.08) !important;
}

[data-theme="dark"] .od-table th,
[data-theme="dark"] .cb-table th,
[data-theme="dark"] .ts-table th {
  color: #71717a !important;
}

[data-theme="dark"] .od-table td,
[data-theme="dark"] .cb-table td,
[data-theme="dark"] .ts-table td {
  border-bottom-color: rgba(255,255,255,.06) !important;
}

/* --- 输入框暗黑 --- */
[data-theme="dark"] .ts-search,
[data-theme="dark"] .ts-input,
[data-theme="dark"] .er-input,
[data-theme="dark"] .vr-input {
  background: rgba(255,255,255,.04) !important;
  border-color: rgba(255,255,255,.08) !important;
  color: #e4e4e7 !important;
}

[data-theme="dark"] .ts-search:focus,
[data-theme="dark"] .ts-input:focus,
[data-theme="dark"] .er-input:focus,
[data-theme="dark"] .vr-input:focus {
  border-color: rgba(255,255,255,.2) !important;
}

/* --- Modal 暗黑 --- */
[data-theme="dark"] .ts-modal,
[data-theme="dark"] .er-modal__panel {
  background: #18181b !important;
  border-color: rgba(255,255,255,.08) !important;
}

/* --- Profile 特殊元素 --- */
[data-theme="dark"] .pf-hero__avatar {
  background: rgba(255,255,255,.06) !important;
}

[data-theme="dark"] .pf-item-card {
  background: linear-gradient(180deg, rgba(30,30,33,.5), rgba(14,14,16,.3)) !important;
  border-color: rgba(255,255,255,.06) !important;
}

/* --- Spaces 特殊元素 --- */
[data-theme="dark"] .sp-org-strip {
  background: linear-gradient(180deg, rgba(30,30,33,.5), rgba(14,14,16,.3)) !important;
  border-color: rgba(255,255,255,.06) !important;
}

/* --- Designer Submissions/Analytics stat icons --- */
[data-theme="dark"] .ds-stat-icon,
[data-theme="dark"] .da-stat-icon {
  background: rgba(255,255,255,.06) !important;
}

/* --- Annotation workspace --- */
[data-theme="dark"] .ann-sidebar .ann-panel {
  background: linear-gradient(180deg, rgba(30,30,33,.5), rgba(14,14,16,.3)) !important;
}

/* --- Video review state buttons --- */
[data-theme="dark"] .vr-state-btn {
  background: rgba(255,255,255,.04) !important;
  border-color: rgba(255,255,255,.08) !important;
  color: #a1a1aa !important;
}

[data-theme="dark"] .vr-state-btn--active {
  background: #e4e4e7 !important;
  border-color: #e4e4e7 !important;
  color: #09090b !important;
}

/* --- Codebook 特殊元素 --- */
[data-theme="dark"] .cb-consistency {
  background: rgba(255,255,255,.04) !important;
}

[data-theme="dark"] .cb-cat-card__ex,
[data-theme="dark"] .cb-tpl-card__content,
[data-theme="dark"] .cb-tpl-card__var {
  background: rgba(255,255,255,.06) !important;
}

/* --- Follow-up disclaimer --- */
[data-theme="dark"] .fu-disclaimer {
  background: rgba(255,255,255,.04) !important;
}

/* --- Admin 页面变量覆盖 --- */
[data-theme="dark"] {
  --ad-bg: #08080a;
  --ad-surface: #0e0e10;
  --ad-surface-hover: #18181b;
  --ad-surface-active: #1f1f23;
}

/* --- Case Detail 特殊元素 --- */
[data-theme="dark"] .cd-card {
  background: linear-gradient(180deg, rgba(30,30,33,.5), rgba(14,14,16,.3)) !important;
  border-color: rgba(255,255,255,.06) !important;
}


/**
 * 交互动画系统
 * 借鉴Linear + Aesop的设计理念
 * 克制的动效，每一个动画都有意义
 */

/* ==================== 动画基础变量 ==================== */
:root {
  --anim-duration-xs: 150ms;
  --anim-duration-sm: 200ms;
  --anim-duration-md: 300ms;
  --anim-duration-lg: 500ms;
  --anim-duration-xl: 700ms;
  
  --anim-ease-out: cubic-bezier(0, 0, 0.2, 1);
  --anim-ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  --anim-ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --anim-ease-elastic: cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* ==================== 入场动画 ==================== */

/* 淡入 */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

/* 向上滑入 */
@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

/* 向下滑入 */
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

/* 向左滑入 */
@keyframes slideLeft {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.animate-slide-left {
  animation: slideLeft var(--anim-duration-md) var(--anim-ease-out) forwards;
}

/* 向右滑入 */
@keyframes slideRight {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.animate-slide-right {
  animation: slideRight var(--anim-duration-md) var(--anim-ease-out) forwards;
}

/* 缩放进入 */
@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.animate-scale-in {
  animation: scaleIn var(--anim-duration-md) var(--anim-ease-out) forwards;
}

/* 旋转进入 */
@keyframes rotateIn {
  from {
    opacity: 0;
    transform: rotate(-5deg) scale(0.95);
  }
  to {
    opacity: 1;
    transform: rotate(0deg) scale(1);
  }
}

.animate-rotate-in {
  animation: rotateIn var(--anim-duration-lg) var(--anim-ease-out) forwards;
}

/* ==================== 交错入场（用于列表） ==================== */
.animate-stagger > * {
  opacity: 0;
}

.animate-stagger.animated > *:nth-child(1) { animation: slideUp var(--anim-duration-md) var(--anim-ease-out) 0ms forwards; }
.animate-stagger.animated > *:nth-child(2) { animation: slideUp var(--anim-duration-md) var(--anim-ease-out) 50ms forwards; }
.animate-stagger.animated > *:nth-child(3) { animation: slideUp var(--anim-duration-md) var(--anim-ease-out) 100ms forwards; }
.animate-stagger.animated > *:nth-child(4) { animation: slideUp var(--anim-duration-md) var(--anim-ease-out) 150ms forwards; }
.animate-stagger.animated > *:nth-child(5) { animation: slideUp var(--anim-duration-md) var(--anim-ease-out) 200ms forwards; }
.animate-stagger.animated > *:nth-child(6) { animation: slideUp var(--anim-duration-md) var(--anim-ease-out) 250ms forwards; }
.animate-stagger.animated > *:nth-child(7) { animation: slideUp var(--anim-duration-md) var(--anim-ease-out) 300ms forwards; }
.animate-stagger.animated > *:nth-child(8) { animation: slideUp var(--anim-duration-md) var(--anim-ease-out) 350ms forwards; }

/* ==================== 微交互动画 ==================== */

/* 按钮悬停 */
.btn-animate-hover {
  transition: transform var(--anim-duration-sm) var(--anim-ease-out),
              box-shadow var(--anim-duration-sm) var(--anim-ease-out),
              background-color var(--anim-duration-sm) var(--anim-ease-out);
}

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

/* 按钮点击 */
.btn-animate-click {
  transition: transform var(--anim-duration-xs) var(--anim-ease-out);
}

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

/* 卡片悬停 */
.card-animate-hover {
  transition: transform var(--anim-duration-md) var(--anim-ease-out),
              box-shadow var(--anim-duration-md) var(--anim-ease-out),
              border-color var(--anim-duration-md) var(--anim-ease-out);
}

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

/* 输入框焦点 */
.input-animate-focus {
  transition: border-color var(--anim-duration-sm) var(--anim-ease-out),
              box-shadow var(--anim-duration-sm) var(--anim-ease-out),
              transform var(--anim-duration-sm) var(--anim-ease-out);
}

.input-animate-focus:focus {
  border-color: var(--primary-400);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
  transform: scale(1.02);
}

/* 链接悬停 */
.link-animate-hover {
  position: relative;
  transition: color var(--anim-duration-sm) var(--anim-ease-out);
}

.link-animate-hover::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-400);
  transition: width var(--anim-duration-md) var(--anim-ease-out);
}

.link-animate-hover:hover::after {
  width: 100%;
}

/* ==================== 页面过渡动画 ==================== */

/* 页面进入 */
@keyframes pageEnter {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.page-animate-enter {
  animation: pageEnter var(--anim-duration-lg) var(--anim-ease-out) forwards;
}

/* 页面离开 */
@keyframes pageLeave {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(-20px);
  }
}

.page-animate-leave {
  animation: pageLeave var(--anim-duration-md) var(--anim-ease-out) forwards;
}

/* 路由切换 */
.route-animate-transition {
  animation: pageEnter var(--anim-duration-lg) var(--anim-ease-out) forwards;
}

/* ==================== 滚动触发动画类 ==================== */

/* 初始状态 - 隐藏 */
.scroll-animate {
  opacity: 0;
  transition: opacity var(--anim-duration-lg) var(--anim-ease-out),
              transform var(--anim-duration-lg) var(--anim-ease-out);
}

/* 向上滑入 */
.scroll-animate-up {
  transform: translateY(40px);
}

/* 向左滑入 */
.scroll-animate-left {
  transform: translateX(40px);
}

/* 向右滑入 */
.scroll-animate-right {
  transform: translateX(-40px);
}

/* 缩放进入 */
.scroll-animate-scale {
  transform: scale(0.9);
}

/* 激活状态 - 显示 */
.scroll-animate.animated {
  opacity: 1;
  transform: translateY(0) translateX(0) scale(1);
}

/* 延迟类 */
.scroll-delay-1 { transition-delay: 100ms; }
.scroll-delay-2 { transition-delay: 200ms; }
.scroll-delay-3 { transition-delay: 300ms; }
.scroll-delay-4 { transition-delay: 400ms; }
.scroll-delay-5 { transition-delay: 500ms; }

/* ==================== 持续动画 ==================== */

/* 脉冲动画 */
@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.animate-pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

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

.animate-bounce {
  animation: bounce 2s var(--anim-ease-in-out) infinite;
}

/* 摇摆动画 */
@keyframes wiggle {
  0%, 100% {
    transform: rotate(-3deg);
  }
  50% {
    transform: rotate(3deg);
  }
}

.animate-wiggle {
  animation: wiggle 0.5s var(--anim-ease-in-out) infinite;
}

/* 呼吸动画 */
@keyframes breathe {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.animate-breathe {
  animation: breathe 3s var(--anim-ease-in-out) infinite;
}

/* ==================== 加载动画 ==================== */

/* 旋转加载 */
@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.animate-spin {
  animation: spin 1s linear infinite;
}

/* 点跳动加载 */
@keyframes bounceDot {
  0%, 80%, 100% {
    transform: scale(0);
  }
  40% {
    transform: scale(1);
  }
}

.animate-dots {
  display: flex;
  gap: 4px;
}

.animate-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary-400);
  animation: bounceDot 1.4s var(--anim-ease-in-out) infinite both;
}

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

/* ==================== 特殊效果 ==================== */

/* 光晕效果 */
@keyframes glow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(14, 165, 233, 0.4);
  }
  50% {
    box-shadow: 0 0 40px rgba(14, 165, 233, 0.8);
  }
}

.animate-glow {
  animation: glow 2s var(--anim-ease-in-out) infinite;
}

/* 渐变背景动画 */
@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.animate-gradient {
  background-size: 200% 200%;
  animation: gradientShift 3s var(--anim-ease-in-out) infinite;
}

/* ==================== 工具类 ==================== */

/* 禁用动画 */
.animate-none {
  animation: none !important;
  transition: none !important;
}

/* 暂停动画 */
.animate-paused {
  animation-play-state: paused;
}

/* 动画速度 */
.animate-fast {
  --anim-duration-xs: 75ms;
  --anim-duration-sm: 100ms;
  --anim-duration-md: 150ms;
  --anim-duration-lg: 250ms;
  --anim-duration-xl: 350ms;
}

.animate-slow {
  --anim-duration-xs: 300ms;
  --anim-duration-sm: 400ms;
  --anim-duration-md: 600ms;
  --anim-duration-lg: 1000ms;
  --anim-duration-xl: 1400ms;
}


.notification-bell-btn {
  background: none;
  border: none;
  outline: none;
  box-shadow: none;
  cursor: pointer;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  color: var(--text-secondary);
  position: relative;
  border-radius: var(--radius-md);
  transition: all var(--duration-200) var(--ease-out);
  flex-shrink: 0;
}

.navbar-right-group {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

/* 桌面端：通知铃铛悬浮在页面右上角 */
@media (min-width: 992px) {
  .navbar-right-group {
    display: contents;
  }

  .notification-bell-btn {
    position: fixed;
    top: 72px;
    right: 20px;
    z-index: 99999;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #e4e4e7;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 0;
  }

  .notification-bell-btn:hover {
    background: #f4f4f5;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  }
}

.notification-bell-btn:hover {
  color: var(--text-primary);
  background: var(--bg-hover);
  transform: translateY(-1px);
}

.notification-bell-dragging {
  opacity: 0.85;
  transform: scale(1.08);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25) !important;
  transition: none !important;
}

.notification-bell-btn:focus-visible {
  outline: 2px solid var(--primary-400);
  outline-offset: 2px;
}

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

.notification-bell-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.notification-badge {
  display: none;
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 16px;
  height: 16px;
  border-radius: var(--radius-full);
  background: var(--danger-color);
  color: #fff;
  font-size: 10px;
  font-family: var(--font-body);
  font-weight: 700;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  line-height: 1;
  box-shadow: 0 0 0 2px var(--bg-primary);
  animation: notificationBadgeIn var(--duration-300) var(--ease-bounce);
}

.notification-badge--visible {
  display: flex;
}

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

.notification-dropdown {
  position: fixed;
  top: 120px;
  right: 16px;
  width: 380px;
  max-height: 520px;
  background: var(--bg-card);
  border: 1px solid var(--border-color, var(--border-light, #e5e5ea));
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  z-index: 10000;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: notificationDropdownIn var(--duration-200) var(--ease-out);
}

.notification-dropdown--closing {
  animation: notificationDropdownOut var(--duration-200) var(--ease-out) forwards;
}

@keyframes notificationDropdownIn {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes notificationDropdownOut {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  to {
    opacity: 0;
    transform: translateY(-8px) scale(0.98);
  }
}

.notification-dropdown-header {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-color, var(--border-light, #e5e5ea));
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.notification-dropdown-title {
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  color: var(--text-primary);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
}

.notification-dropdown-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.notification-dropdown-unread-badge {
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 8px;
  background: var(--primary-50);
  color: var(--primary-600);
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
}

.notification-dropdown-actions {
  display: flex;
  gap: 4px;
  align-items: center;
}

.notification-action-btn {
  border: none;
  background: none;
  color: var(--primary-600);
  font-size: var(--text-xs);
  font-family: var(--font-body);
  font-weight: var(--font-medium);
  cursor: pointer;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  transition: all var(--duration-150) var(--ease-out);
}

.notification-action-btn:hover {
  background: var(--primary-50);
  color: var(--primary-700);
}

.notification-action-btn--danger {
  color: var(--danger-color);
}

.notification-action-btn--danger:hover {
  background: rgba(239, 68, 68, 0.06);
  color: var(--danger-color);
}

.notification-close-btn {
  border: none;
  background: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--duration-150) var(--ease-out);
}

.notification-close-btn:hover {
  color: var(--text-primary);
  background: var(--bg-hover);
}

.notification-dropdown-body {
  overflow-y: auto;
  max-height: 440px;
  overscroll-behavior: contain;
}

.notification-empty {
  padding: 48px 24px;
  text-align: center;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.notification-empty svg {
  opacity: 0.3;
}

.notification-empty span {
  font-size: var(--text-sm);
}

.notification-item {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-subtle, var(--border-light, #ececf1));
  cursor: pointer;
  display: flex;
  gap: 12px;
  align-items: start;
  transition: background var(--duration-150) var(--ease-out);
}

.notification-item:hover {
  background: var(--bg-hover);
}

.notification-item--unread {
  background: var(--primary-50);
}

.notification-item--unread:hover {
  background: var(--primary-100);
}

.notification-item-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-secondary);
}

.notification-item-content {
  flex: 1;
  min-width: 0;
}

.notification-item-title {
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  color: var(--text-primary);
  line-height: var(--leading-snug);
}

.notification-item--unread .notification-item-title {
  font-weight: var(--font-semibold);
}

.notification-item-message {
  font-size: var(--text-xs);
  color: var(--text-secondary);
  margin-top: 3px;
  line-height: var(--leading-normal);
}

.notification-item-time {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
  letter-spacing: var(--tracking-wide);
}

.notification-item-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background: var(--primary-500);
  flex-shrink: 0;
  animation: notificationDotPulse 2s ease-in-out infinite;
}

.notification-item-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.notification-item-delete {
  border: none;
  background: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.4;
  transition: all var(--duration-150) var(--ease-out);
}

.notification-item:hover .notification-item-delete {
  opacity: 1;
}

.notification-item-delete:hover {
  color: var(--danger-color);
  background: rgba(239, 68, 68, 0.06);
  opacity: 1;
}

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

[data-theme="dark"] .notification-dropdown {
  background: var(--gray-900);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .notification-dropdown-header {
  border-bottom-color: rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .notification-dropdown-body {
  scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
}

[data-theme="dark"] .notification-dropdown-body::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
}

[data-theme="dark"] .notification-close-btn {
  color: var(--text-muted);
}

[data-theme="dark"] .notification-close-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .notification-action-btn {
  color: var(--primary-400);
}

[data-theme="dark"] .notification-action-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--primary-300);
}

[data-theme="dark"] .notification-action-btn--danger {
  color: #f87171;
}

[data-theme="dark"] .notification-action-btn--danger:hover {
  background: rgba(239, 68, 68, 0.12);
  color: #fca5a5;
}

[data-theme="dark"] .notification-empty {
  color: var(--text-muted);
}

[data-theme="dark"] .notification-empty svg {
  opacity: 0.15;
  color: var(--text-muted);
}

[data-theme="dark"] .notification-item {
  border-bottom-color: rgba(255, 255, 255, 0.04);
}

[data-theme="dark"] .notification-item:hover {
  background: rgba(255, 255, 255, 0.03);
}

[data-theme="dark"] .notification-item--unread {
  background: rgba(14, 165, 233, 0.08);
}

[data-theme="dark"] .notification-item--unread:hover {
  background: rgba(14, 165, 233, 0.12);
}

[data-theme="dark"] .notification-item-title {
  color: var(--text-primary);
}

[data-theme="dark"] .notification-item-message {
  color: var(--text-secondary);
}

[data-theme="dark"] .notification-item-time {
  color: var(--text-muted);
}

[data-theme="dark"] .notification-item-icon {
  background: rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .notification-item-dot {
  background: var(--primary-400);
}

[data-theme="dark"] .notification-item-delete {
  color: var(--text-muted);
}

[data-theme="dark"] .notification-item-delete:hover {
  color: #f87171;
  background: rgba(239, 68, 68, 0.08);
}

[data-theme="dark"] .notification-badge {
  box-shadow: 0 0 0 2px var(--gray-900);
}

[data-theme="dark"] .notification-bell-btn {
  color: rgba(255, 255, 255, 0.65);
}

[data-theme="dark"] .notification-bell-btn:hover {
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.06);
}

@media (min-width: 992px) {
  [data-theme="dark"] .notification-bell-btn {
    background: rgba(24, 24, 27, 0.95);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  }

  [data-theme="dark"] .notification-bell-btn:hover {
    background: rgba(39, 39, 42, 0.95);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  }
}

@media (max-width: 768px) {
  [data-theme="dark"] .notification-bell-btn,
  [data-theme="dark"] #notification-bell-btn {
    background: rgba(255, 255, 255, 0.06);
  }
}

.task-center {
  max-width: 960px;
  margin: 0 auto;
  padding: var(--spacing-lg) var(--spacing-md);
}

.task-center-header {
  margin-bottom: var(--spacing-lg);
}

.task-center-title-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: var(--spacing-md);
}

.task-center-title {
  margin: 0;
  font-size: var(--text-xl);
  font-weight: var(--font-bold);
  color: var(--text-primary);
  letter-spacing: var(--tracking-tight);
}

.task-center-count {
  font-size: var(--text-sm);
  color: var(--text-muted);
  font-weight: var(--font-normal);
}

.task-filter-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 8px;
}

.task-filter-btn {
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-family: var(--font-body);
  font-weight: var(--font-medium);
  cursor: pointer;
  border: 1px solid var(--border-color, var(--border-light, #e5e5ea));
  background: var(--bg-card);
  color: var(--text-secondary);
  transition: all var(--duration-200) var(--ease-out);
}

.task-filter-btn:hover {
  border-color: var(--primary-300);
  color: var(--primary-600);
  background: var(--primary-50);
}

.task-filter-btn--active {
  border-color: var(--primary-500);
  background: var(--primary-600);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.task-filter-btn--active:hover {
  background: var(--primary-700);
  border-color: var(--primary-700);
  color: #fff;
}

.task-modality-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.task-modality-btn {
  padding: 4px 12px;
  border-radius: var(--radius-md);
  font-size: var(--text-xs);
  font-family: var(--font-body);
  font-weight: var(--font-medium);
  cursor: pointer;
  border: 1px solid var(--border-color, var(--border-light, #e5e5ea));
  background: var(--bg-card);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
  transition: all var(--duration-200) var(--ease-out);
}

.task-modality-btn:hover {
  border-color: var(--purple-300);
  color: var(--purple-600);
  background: var(--purple-50);
}

.task-modality-btn--active {
  border-color: var(--purple-400);
  background: var(--purple-50);
  color: var(--purple-700);
}

.task-modality-btn-icon {
  display: flex;
  align-items: center;
}

.task-center-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.task-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color, var(--border-light, #e5e5ea));
  border-radius: var(--radius-xl);
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: start;
  transition: all var(--duration-300) var(--ease-out);
  box-shadow: var(--shadow-xs);
}

.task-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  border-color: var(--primary-200);
}

.task-card-main {
  flex: 1;
  min-width: 0;
}

.task-card-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}

.task-card-name {
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  color: var(--text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 300px;
}

.task-status {
  padding: 2px 10px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: var(--font-semibold);
  letter-spacing: var(--tracking-wide);
  flex-shrink: 0;
}

.task-status--pending {
  color: var(--gray-600);
  background: var(--gray-100);
}

.task-status--uploaded {
  color: var(--primary-700);
  background: var(--primary-50);
}

.task-status--processing {
  color: var(--warm-700, var(--warm-500));
  background: var(--warm-50);
  animation: taskProcessingPulse 2s ease-in-out infinite;
}

.task-status--completed {
  color: var(--success-700, var(--success-500));
  background: var(--success-50);
}

.task-status--error {
  color: var(--danger-color);
  background: rgba(239, 68, 68, 0.08);
}

.task-status--cancelled {
  color: var(--text-muted);
  background: var(--gray-100);
}

@keyframes taskProcessingPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.task-card-modality {
  font-size: 11px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 3px;
}

.task-card-meta {
  display: flex;
  gap: 12px;
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-bottom: 4px;
}

.task-card-meta-item {
  display: flex;
  align-items: center;
}

.task-card-progress {
  margin-top: 10px;
}

.task-card-progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.task-card-progress-bar {
  height: 4px;
  background: var(--gray-100);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.task-card-progress-fill {
  height: 100%;
  background: linear-gradient(135deg, var(--primary-500), var(--primary-400));
  border-radius: var(--radius-full);
  transition: width var(--duration-500) var(--ease-out);
}

.task-card-error {
  margin-top: 8px;
  font-size: var(--text-xs);
  color: var(--danger-color);
  display: flex;
  align-items: start;
  gap: 6px;
  padding: 6px 10px;
  background: rgba(239, 68, 68, 0.04);
  border-radius: var(--radius-md);
}

.task-card-error svg {
  flex-shrink: 0;
  margin-top: 1px;
}

.task-card-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
  margin-left: 16px;
  align-items: start;
}

.task-action-btn {
  padding: 6px 12px;
  border-radius: var(--radius-md);
  font-size: var(--text-xs);
  font-family: var(--font-body);
  font-weight: var(--font-medium);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all var(--duration-200) var(--ease-out);
  white-space: nowrap;
}

.task-action-btn--primary {
  border: none;
  background: linear-gradient(135deg, var(--primary-600), var(--primary-500));
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.task-action-btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md), var(--shadow-primary);
}

.task-action-btn--warning {
  border: none;
  background: linear-gradient(135deg, var(--warm-500), #fb923c);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.task-action-btn--warning:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md), var(--shadow-warm);
}

.task-action-btn--ghost {
  border: 1px solid var(--border-color, var(--border-light, #e5e5ea));
  background: var(--bg-card);
  color: var(--text-secondary);
}

.task-action-btn--ghost:hover {
  border-color: var(--gray-300);
  background: var(--bg-secondary);
  color: var(--text-primary);
}

.task-action-btn--danger {
  border: 1px solid rgba(239, 68, 68, 0.2);
  background: var(--bg-card);
  color: var(--danger-color);
}

.task-action-btn--danger:hover {
  background: rgba(239, 68, 68, 0.04);
  border-color: rgba(239, 68, 68, 0.3);
}

.task-empty {
  text-align: center;
  padding: 64px 24px;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.task-empty-icon {
  opacity: 0.2;
}

.task-empty-text {
  font-size: var(--text-sm);
  margin: 0;
}

.task-empty-btn {
  margin-top: 4px;
  padding: 10px 24px;
  border: none;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--primary-600), var(--primary-500));
  color: #fff;
  cursor: pointer;
  font-size: var(--text-sm);
  font-family: var(--font-body);
  font-weight: var(--font-medium);
  box-shadow: var(--shadow-md), var(--shadow-primary);
  transition: all var(--duration-200) var(--ease-out);
}

.task-empty-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg), var(--shadow-primary);
}

[data-theme="dark"] .task-card {
  background: var(--gray-900);
  border-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .task-card:hover {
  border-color: rgba(255, 255, 255, 0.15);
}

[data-theme="dark"] .task-status--pending {
  color: var(--gray-400);
  background: rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .task-status--uploaded {
  color: var(--primary-300);
  background: rgba(14, 165, 233, 0.1);
}

[data-theme="dark"] .task-status--processing {
  color: var(--warm-300);
  background: rgba(249, 115, 22, 0.1);
}

[data-theme="dark"] .task-status--completed {
  color: var(--success-300);
  background: rgba(34, 197, 94, 0.1);
}

[data-theme="dark"] .task-status--error {
  color: #f87171;
  background: rgba(239, 68, 68, 0.1);
}

[data-theme="dark"] .task-status--cancelled {
  color: var(--gray-500);
  background: rgba(255, 255, 255, 0.04);
}

[data-theme="dark"] .task-filter-btn {
  background: var(--gray-900);
  border-color: rgba(255, 255, 255, 0.08);
  color: var(--gray-400);
}

[data-theme="dark"] .task-filter-btn:hover {
  border-color: var(--primary-400);
  color: var(--primary-300);
  background: rgba(14, 165, 233, 0.08);
}

[data-theme="dark"] .task-filter-btn--active {
  background: var(--primary-600);
  border-color: var(--primary-600);
  color: #fff;
}

[data-theme="dark"] .task-modality-btn {
  background: var(--gray-900);
  border-color: rgba(255, 255, 255, 0.08);
  color: var(--gray-500);
}

[data-theme="dark"] .task-modality-btn:hover {
  border-color: var(--purple-400);
  color: var(--purple-300);
  background: rgba(168, 85, 247, 0.08);
}

[data-theme="dark"] .task-modality-btn--active {
  border-color: var(--purple-400);
  background: rgba(168, 85, 247, 0.1);
  color: var(--purple-300);
}

[data-theme="dark"] .task-card-progress-bar {
  background: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .task-card-error {
  background: rgba(239, 68, 68, 0.06);
}

[data-theme="dark"] .task-action-btn--ghost {
  background: var(--gray-900);
  border-color: rgba(255, 255, 255, 0.08);
  color: var(--gray-400);
}

[data-theme="dark"] .task-action-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.15);
  color: var(--gray-300);
}

[data-theme="dark"] .task-action-btn--danger {
  background: var(--gray-900);
  border-color: rgba(239, 68, 68, 0.15);
}

[data-theme="dark"] .task-action-btn--danger:hover {
  background: rgba(239, 68, 68, 0.08);
}

/* 主要操作按钮（查看结果） */
[data-theme="dark"] .task-action-btn--primary {
  background: linear-gradient(135deg, var(--primary-400), var(--primary-500));
  color: #000;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}
[data-theme="dark"] .task-action-btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5), 0 10px 25px -5px rgba(161, 161, 170, 0.15);
}

/* 警告操作按钮（重试） */
[data-theme="dark"] .task-action-btn--warning {
  background: linear-gradient(135deg, var(--warm-400), var(--warm-500));
  color: #000;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}
[data-theme="dark"] .task-action-btn--warning:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5), 0 10px 25px -5px rgba(249, 115, 22, 0.2);
}

/* 空状态按钮 */
[data-theme="dark"] .task-empty-btn {
  background: linear-gradient(135deg, var(--primary-400), var(--primary-500));
  color: #000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5), 0 10px 25px -5px rgba(161, 161, 170, 0.15);
}
[data-theme="dark"] .task-empty-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6), 0 10px 25px -5px rgba(161, 161, 170, 0.2);
}

/* 暗夜模式下主按钮保持清晰 */
[data-theme="dark"] .task-filter-btn--active {
  background: var(--primary-400);
  border-color: var(--primary-400);
  color: #000;
}
[data-theme="dark"] .task-filter-btn--active:hover {
  background: var(--primary-500);
  border-color: var(--primary-500);
  color: #000;
}

/* 模态选择按钮激活态 */
[data-theme="dark"] .task-modality-btn--active {
  border-color: var(--purple-400);
  background: rgba(168, 85, 247, 0.15);
  color: var(--purple-300);
}

/* 空状态图标 */
[data-theme="dark"] .task-empty-icon {
  opacity: 0.15;
}
[data-theme="dark"] .task-empty-text {
  color: var(--text-muted);
}

/* 卡片模态标签 */
[data-theme="dark"] .task-card-modality svg {
  opacity: 0.5;
}

@media (max-width: 991.98px) {
  .navbar .container {
    gap: 0;
  }

  .navbar-right-group {
    order: 1;
    margin-left: auto;
  }

  .navbar-toggler {
    order: 2;
  }

  .navbar-collapse {
    order: 3;
  }

  .notification-bell-btn,
  #notification-bell-btn {
    right: 68px !important;
    top: 10px !important;
  }

  .notification-dropdown {
    top: 72px;
    right: 8px;
    left: 8px;
    width: auto;
    max-height: 70vh;
    max-height: 70dvh;
    border-radius: 16px;
  }
}

@media (max-width: 768px) {
  .notification-bell-btn,
  #notification-bell-btn {
    min-width: 44px;
    min-height: 44px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.04);
    right: 64px !important;
    top: 8px !important;
  }

  .navbar-right-group {
    gap: 6px;
  }

  .notification-dropdown {
    top: 72px !important;
    right: 4px;
    left: 4px;
    width: auto;
    max-height: 75vh;
    max-height: 75dvh;
    border-radius: 14px;
  }

  .notification-dropdown-header {
    padding: 12px 14px;
  }

  .notification-dropdown-title {
    font-size: 15px;
  }

  .notification-dropdown-unread-badge {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 10px;
    background: var(--primary-100);
    color: var(--primary-700);
    font-weight: 600;
  }

  .notification-action-btn {
    padding: 6px 12px;
    font-size: 13px;
    border-radius: 8px;
    min-height: 36px;
    display: flex;
    align-items: center;
  }

  .notification-close-btn {
    padding: 8px;
    min-width: 36px;
    min-height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
  }

  .notification-item {
    padding: 12px 14px;
    gap: 10px;
    min-height: 56px;
  }

  .notification-item-icon {
    width: 36px;
    height: 36px;
  }

  .notification-item-title {
    font-size: 14px;
  }

  .notification-item-message {
    font-size: 12px;
  }

  .notification-item-time {
    font-size: 11px;
    margin-top: 3px;
  }

  .notification-item-delete {
    padding: 8px;
    min-width: 36px;
    min-height: 36px;
    opacity: 0.6;
    border-radius: 8px;
  }

  .notification-empty {
    padding: 36px 20px;
  }

  .task-center {
    padding: var(--spacing-md) var(--spacing-sm);
  }

  .task-card {
    flex-direction: column;
    gap: 12px;
  }

  .task-card-actions {
    margin-left: 0;
    flex-wrap: wrap;
  }

  .task-card-name {
    max-width: 200px;
  }
}


.task-center{max-width:960px!important;margin:0 auto!important;padding:24px 16px!important}
.task-center-header{margin-bottom:24px!important}
.task-center-title-row{display:flex!important;justify-content:space-between!important;align-items:baseline!important;margin-bottom:16px!important}
.task-center-title{margin:0!important;font-size:24px!important;font-weight:700!important;color:#18181b!important}
.task-center-count{font-size:14px!important;color:#a1a1aa!important;font-weight:400!important}
.task-center-body{display:flex!important;flex-direction:column!important;gap:10px!important}
.task-filter-tabs{display:flex!important;gap:6px!important;margin-bottom:8px!important}
.task-filter-btn{padding:6px 16px!important;border-radius:9999px!important;font-size:14px!important;font-weight:500!important;cursor:pointer!important;border:1px solid #e4e4e7!important;background:#fff!important;color:#52525b!important;transition:all .2s ease!important}
.task-filter-btn:hover{border-color:#d4d4d8!important;color:#3f3f46!important;background:#f4f4f5!important}
.task-filter-btn--active{border-color:#52525b!important;background:#3f3f46!important;color:#fff!important;box-shadow:0 1px 3px rgba(0,0,0,.1)!important}
.task-modality-tabs{display:flex!important;gap:6px!important;flex-wrap:wrap!important}
.task-modality-btn{padding:4px 12px!important;border-radius:8px!important;font-size:12px!important;font-weight:500!important;cursor:pointer!important;border:1px solid #e4e4e7!important;background:#fff!important;color:#a1a1aa!important;display:flex!important;align-items:center!important;gap:4px!important;transition:all .2s ease!important}
.task-modality-btn:hover{border-color:#d8b4fe!important;color:#7e22ce!important;background:#faf5ff!important}
.task-modality-btn--active{border-color:#c084fc!important;background:#faf5ff!important;color:#7e22ce!important}
.task-card{background:#fff!important;border:1px solid #e4e4e7!important;border-radius:16px!important;padding:16px 20px!important;display:flex!important;justify-content:space-between!important;align-items:start!important;box-shadow:0 1px 2px rgba(0,0,0,.05)!important}
.task-card:hover{box-shadow:0 4px 6px -1px rgba(0,0,0,.1)!important;transform:translateY(-2px)!important;border-color:#d4d4d8!important}
.task-card-main{flex:1!important;min-width:0!important}
.task-card-top{display:flex!important;align-items:center!important;gap:8px!important;margin-bottom:6px!important;flex-wrap:wrap!important}
.task-card-name{font-size:14px!important;font-weight:600!important;color:#18181b!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;max-width:300px!important}
.task-status{padding:2px 10px!important;border-radius:9999px!important;font-size:11px!important;font-weight:600!important;flex-shrink:0!important}
.task-status--pending{color:#52525b!important;background:#f4f4f5!important}
.task-status--processing{color:#c2410c!important;background:#fff7ed!important}
.task-status--completed{color:#16a34a!important;background:#f0fdf4!important}
.task-status--error{color:#ef4444!important;background:#fef2f2!important}
.task-status--cancelled{color:#a1a1aa!important;background:#f4f4f5!important}
.task-card-meta{display:flex!important;gap:12px!important;font-size:12px!important;color:#a1a1aa!important;margin-bottom:4px!important}
.task-card-progress-bar{height:4px!important;background:#f4f4f5!important;border-radius:9999px!important;overflow:hidden!important}
.task-card-progress-fill{height:100%!important;background:linear-gradient(135deg,#3f3f46,#71717a)!important;border-radius:9999px!important}
.task-card-error{margin-top:8px!important;font-size:12px!important;color:#ef4444!important;padding:6px 10px!important;background:#fef2f2!important;border-radius:8px!important}
.task-card-actions{display:flex!important;gap:6px!important;flex-shrink:0!important;margin-left:16px!important}
.task-action-btn{padding:6px 12px!important;border-radius:8px!important;font-size:12px!important;font-weight:500!important;cursor:pointer!important;display:inline-flex!important;align-items:center!important;gap:4px!important;white-space:nowrap!important}
.task-action-btn--primary{border:none!important;background:linear-gradient(135deg,#3f3f46,#71717a)!important;color:#fff!important;box-shadow:0 1px 3px rgba(0,0,0,.1)!important}
.task-action-btn--warning{border:none!important;background:linear-gradient(135deg,#f97316,#fb923c)!important;color:#fff!important}
.task-action-btn--ghost{border:1px solid #e4e4e7!important;background:#fff!important;color:#52525b!important}
.task-action-btn--ghost:hover{border-color:#d4d4d8!important;background:#f4f4f5!important;color:#18181b!important}
.task-action-btn--danger{border:1px solid rgba(239,68,68,.2)!important;background:#fff!important;color:#ef4444!important}
.task-empty{padding:64px 24px!important;color:#a1a1aa!important;display:flex!important;flex-direction:column!important;align-items:center!important;gap:16px!important}
.task-empty-btn{padding:10px 24px!important;border:none!important;border-radius:12px!important;background:linear-gradient(135deg,#3f3f46,#71717a)!important;color:#fff!important;cursor:pointer!important;font-size:14px!important;font-weight:500!important}

@media (max-width:768px){
  .task-center{padding:16px 12px!important}
  .task-card{flex-direction:column!important;gap:12px!important}
  .task-card-actions{margin-left:0!important;flex-wrap:wrap!important}
  .task-card-name{max-width:200px!important}
}


.ws-card {
  background: var(--ws-bg-card);
  border: 1px solid var(--ws-border-color);
  border-radius: var(--ws-radius-md);
  padding: 20px;
  box-shadow: var(--ws-shadow-sm);
  transition: var(--ws-transition);
}
.ws-card:hover {
  border-color: var(--ws-border-color-hover);
  box-shadow: var(--ws-shadow-md);
}

.ws-stat-value {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ws-text-primary);
  font-family: var(--ws-font-family);
  line-height: 1.2;
}

.ws-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: var(--ws-radius-full);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.025em;
}
.ws-badge--success { color: var(--ws-status-success); background: var(--ws-status-success-bg); }
.ws-badge--warning { color: var(--ws-status-warning); background: var(--ws-status-warning-bg); }
.ws-badge--error   { color: var(--ws-status-error); background: var(--ws-status-error-bg); }
.ws-badge--info    { color: var(--ws-status-info); background: var(--ws-status-info-bg); }
.ws-badge--neutral { color: var(--ws-status-neutral); background: var(--ws-status-neutral-bg); }

.ws-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--ws-radius-sm);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--ws-transition);
  border: 1px solid transparent;
  font-family: var(--ws-font-family);
}
.ws-btn--primary { background: #111827; color: #fff; }
.ws-btn--primary:hover { background: #1f2937; }
[data-theme="dark"] .ws-btn--primary { background: #e4e4e7; color: #09090b; }
[data-theme="dark"] .ws-btn--primary:hover { background: #f4f4f5; }
.ws-btn--secondary { background: #fff; color: #374151; border-color: var(--ws-border-color); }
.ws-btn--secondary:hover { background: var(--ws-bg-hover); }
[data-theme="dark"] .ws-btn--secondary { background: #27272a; color: #e4e4e7; border-color: rgba(255,255,255,0.08); }
.ws-btn--ghost { background: transparent; color: var(--ws-text-secondary); }
.ws-btn--ghost:hover { background: var(--ws-bg-hover); color: var(--ws-text-primary); }
.ws-btn--danger { background: #fff; color: #ef4444; border-color: #fecaca; }
.ws-btn--danger:hover { background: #fef2f2; }
[data-theme="dark"] .ws-btn--danger { background: #27272a; color: #f87171; border-color: rgba(248,113,113,0.2); }

.ws-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: var(--z-modal-backdrop, 400);
  animation: ws-fadeIn 0.15s ease;
}
.ws-modal {
  background: var(--ws-bg-card);
  border-radius: var(--ws-radius-lg);
  padding: 24px;
  max-width: 400px;
  width: 90%;
  box-shadow: var(--ws-shadow-lg);
  animation: ws-scaleIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.ws-modal__title {
  font-size: 16px;
  font-weight: 600;
  color: var(--ws-text-primary);
  margin-bottom: 8px;
}
.ws-modal__desc {
  font-size: 14px;
  color: var(--ws-text-secondary);
  margin-bottom: 20px;
  line-height: 1.5;
}
.ws-modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.ws-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 48px 24px;
  text-align: center;
}
.ws-empty-icon {
  width: 48px;
  height: 48px;
  color: var(--ws-text-tertiary);
  margin-bottom: 16px;
}
.ws-empty-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--ws-text-primary);
  margin-bottom: 8px;
}
.ws-empty-desc {
  font-size: 14px;
  color: var(--ws-text-secondary);
  margin-bottom: 20px;
  max-width: 320px;
}

.ws-status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.ws-status-dot--success { background: var(--ws-status-success); }
.ws-status-dot--warning { background: var(--ws-status-warning); }
.ws-status-dot--error   { background: var(--ws-status-error); }
.ws-status-dot--info    { background: var(--ws-status-info); }
.ws-status-dot--neutral { background: var(--ws-status-neutral); }
.ws-status-dot--pulse {
  animation: ws-dot-pulse 2s ease-in-out infinite;
}

.ws-status-pulse {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 32px;
  gap: 12px;
}
.ws-status-pulse__dot {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  position: relative;
}
.ws-status-pulse__dot::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  animation: ws-pulse-ring 2s ease-out infinite;
}
.ws-status-pulse__dot--success { background: var(--ws-status-success); }
.ws-status-pulse__dot--success::after { background: var(--ws-status-success); }
.ws-status-pulse__dot--warning { background: var(--ws-status-warning); }
.ws-status-pulse__dot--warning::after { background: var(--ws-status-warning); }
.ws-status-pulse__dot--error { background: var(--ws-status-error); }
.ws-status-pulse__dot--error::after { background: var(--ws-status-error); }
.ws-status-pulse__dot--idle { background: var(--ws-status-neutral); }
.ws-status-pulse__dot--idle::after { background: var(--ws-status-neutral); }
.ws-status-pulse__label {
  font-size: 18px;
  font-weight: 600;
  color: var(--ws-text-primary);
}
.ws-status-pulse__sublabel {
  font-size: 14px;
  color: var(--ws-text-secondary);
}

.ws-timeline {
  display: flex;
  flex-direction: column;
}
.ws-timeline-item {
  display: flex;
  gap: 12px;
  position: relative;
  padding-bottom: 16px;
}
.ws-timeline-item:last-child {
  padding-bottom: 0;
}
.ws-timeline-item__marker {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  width: 16px;
}
.ws-timeline-item__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 6px;
}
.ws-timeline-item__line {
  width: 1px;
  flex: 1;
  background: var(--ws-border-color);
  margin-top: 4px;
}
.ws-timeline-item:last-child .ws-timeline-item__line {
  display: none;
}
.ws-timeline-item__content {
  flex: 1;
  min-width: 0;
}
.ws-timeline-item__time {
  font-size: 12px;
  font-family: var(--ws-font-mono);
  color: var(--ws-text-tertiary);
  margin-bottom: 2px;
}
.ws-timeline-item__desc {
  font-size: 14px;
  color: var(--ws-text-primary);
  line-height: 1.5;
}
.ws-timeline-item__meta {
  font-size: 12px;
  color: var(--ws-text-secondary);
  margin-top: 2px;
}

.ws-usage-meter {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.ws-usage-meter__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.ws-usage-meter__label {
  font-size: 13px;
  color: var(--ws-text-secondary);
  font-weight: 500;
}
.ws-usage-meter__value {
  font-size: 12px;
  font-family: var(--ws-font-mono);
  color: var(--ws-text-tertiary);
}
.ws-usage-meter__bar {
  height: 6px;
  border-radius: 3px;
  background: var(--ws-usage-bar-bg);
  overflow: hidden;
}
.ws-usage-meter__fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.ws-usage-meter__fill--normal { background: var(--ws-usage-bar-fill); }
.ws-usage-meter__fill--warning { background: var(--ws-usage-bar-warning); }
.ws-usage-meter__fill--danger { background: var(--ws-usage-bar-danger); }
.ws-usage-meter__alert {
  font-size: 11px;
  font-weight: 600;
  margin-top: 2px;
}
.ws-usage-meter__alert--warning { color: var(--ws-status-warning); }
.ws-usage-meter__alert--danger { color: var(--ws-status-error); }

.ws-org-switcher {
  padding: 12px;
  border-bottom: 1px solid var(--ws-border-color);
}
.ws-org-switcher__trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px 10px;
  border-radius: var(--ws-radius-sm);
  cursor: pointer;
  transition: var(--ws-transition);
  border: 1px solid transparent;
  background: transparent;
}
.ws-org-switcher__trigger:hover {
  background: var(--ws-bg-hover);
  border-color: var(--ws-border-color);
}
.ws-org-switcher__logo {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: var(--ws-status-info-bg);
  color: var(--ws-status-info);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}
.ws-org-switcher__name {
  font-size: 13px;
  font-weight: 600;
  color: var(--ws-text-primary);
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ws-org-switcher__arrow {
  color: var(--ws-text-tertiary);
  font-size: 10px;
  flex-shrink: 0;
}
.ws-org-switcher__dropdown {
  position: absolute;
  top: 100%;
  left: 12px;
  right: 12px;
  background: var(--ws-bg-card);
  border: 1px solid var(--ws-border-color);
  border-radius: var(--ws-radius-md);
  box-shadow: var(--ws-shadow-lg);
  z-index: 200;
  padding: 4px;
  margin-top: 4px;
}
.ws-org-switcher__option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: var(--ws-radius-sm);
  cursor: pointer;
  font-size: 13px;
  color: var(--ws-text-secondary);
  transition: var(--ws-transition);
}
.ws-org-switcher__option:hover {
  background: var(--ws-bg-hover);
  color: var(--ws-text-primary);
}
.ws-org-switcher__option--active {
  color: var(--ws-status-info);
  font-weight: 600;
}

.ws-project-card {
  background: var(--ws-bg-card);
  border: 1px solid var(--ws-border-color);
  border-radius: var(--ws-radius-md);
  padding: 16px 20px;
  transition: var(--ws-transition);
  cursor: pointer;
}
.ws-project-card:hover {
  border-color: var(--ws-border-color-hover);
  box-shadow: var(--ws-shadow-md);
}
.ws-project-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.ws-project-card__title {
  font-size: 14px;
  font-weight: 600;
  color: var(--ws-text-primary);
}
.ws-project-card__status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
}
.ws-project-card__progress {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.ws-project-card__progress-bar {
  display: flex;
  gap: 3px;
}
.ws-project-card__progress-segment {
  width: 24px;
  height: 4px;
  border-radius: 2px;
  background: var(--ws-usage-bar-bg);
}
.ws-project-card__progress-segment--filled {
  background: var(--ws-status-info);
}
.ws-project-card__progress-label {
  font-size: 12px;
  color: var(--ws-text-tertiary);
}
.ws-project-card__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.ws-project-card__time {
  font-size: 12px;
  color: var(--ws-text-tertiary);
}
.ws-project-card__action {
  font-size: 13px;
  font-weight: 500;
  color: var(--ws-status-info);
  text-decoration: none;
  transition: var(--ws-transition);
}
.ws-project-card__action:hover {
  text-decoration: underline;
}

@keyframes ws-fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes ws-scaleIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes ws-dot-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}
@keyframes ws-pulse-ring {
  0%   { transform: scale(1); opacity: 0.4; }
  70%  { transform: scale(1.6); opacity: 0; }
  100% { transform: scale(1.6); opacity: 0; }
}
/* ============================================================
   Workspace Design System — Unified Tokens & Component Classes
   ============================================================ */

/* --- Design Tokens --- */
:root {
  /* Radius */
  --ws-radius-xs: 4px;
  --ws-radius-sm: 8px;
  --ws-radius-md: 12px;
  --ws-radius-lg: 16px;
  --ws-radius-xl: 20px;
  --ws-radius-2xl: 24px;
  --ws-radius-pill: 999px;

  /* Spacing */
  --ws-space-xs: 4px;
  --ws-space-sm: 8px;
  --ws-space-md: 12px;
  --ws-space-lg: 16px;
  --ws-space-xl: 20px;
  --ws-space-2xl: 24px;
  --ws-space-3xl: 32px;

  /* Font */
  --ws-font-family: var(--ws-font-family, 'Inter', -apple-system, BlinkMacSystemFont, sans-serif);
  --ws-font-mono: 'SF Mono', 'JetBrains Mono', 'Consolas', monospace;

  /* Transition */
  --ws-ease: cubic-bezier(.4, 0, .2, 1);
  --ws-duration: .15s;
}

/* ============================================================
   Unified Button System
   All workspace modules use ws-btn. school-btn & pj-btn alias to ws-btn.
   ============================================================ */
.ws-btn,
.school-btn,
.pj-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--ws-space-sm);
  padding: 8px 16px;
  font-family: var(--ws-font-family);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  border-radius: var(--ws-radius-pill);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--ws-duration) var(--ws-ease);
  text-decoration: none;
  white-space: nowrap;
  background: var(--ws-bg-card);
  color: var(--ws-text-primary);
  border-color: var(--ws-border-color);
}

.ws-btn:hover,
.school-btn:hover,
.pj-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}

.ws-btn:active,
.school-btn:active,
.pj-btn:active {
  transform: translateY(0);
}

/* Primary */
.ws-btn--primary,
.school-btn--primary,
.pj-btn--primary {
  background: var(--ws-text-primary);
  color: var(--ws-bg-card);
  border-color: var(--ws-text-primary);
}
.ws-btn--primary:hover,
.school-btn--primary:hover,
.pj-btn--primary:hover {
  opacity: .88;
  box-shadow: 0 4px 12px rgba(0,0,0,.12);
}

/* Ghost */
.ws-btn--ghost,
.school-btn--ghost,
.pj-btn--ghost {
  background: transparent;
  color: var(--ws-text-primary);
  border-color: var(--ws-border-color);
}
.ws-btn--ghost:hover,
.school-btn--ghost:hover,
.pj-btn--ghost:hover {
  background: var(--ws-bg-hover);
  border-color: rgba(0,0,0,.15);
}

/* Secondary */
.ws-btn--secondary {
  background: var(--ws-bg-hover);
  color: var(--ws-text-primary);
  border-color: var(--ws-border-color);
}
.ws-btn--secondary:hover {
  background: rgba(0,0,0,.06);
}

/* Danger */
.ws-btn--danger,
.pj-btn--danger {
  background: transparent;
  color: var(--ws-status-error);
  border-color: var(--ws-status-error);
}
.ws-btn--danger:hover,
.pj-btn--danger:hover {
  background: var(--ws-status-error-bg);
}

/* Size variants */
.ws-btn--sm,
.school-btn--sm,
.pj-btn--sm {
  padding: 5px 12px;
  font-size: 12px;
}
.ws-btn--xs,
.pj-btn--xs {
  padding: 3px 8px;
  font-size: 11px;
  border-radius: var(--ws-radius-sm);
}

/* ============================================================
   Unified Page Header (Topbar)
   Replaces: ann-topbar, er-topbar, tm-topbar, ts-topbar, etc.
   ============================================================ */
.ws-page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--ws-space-lg);
  padding: var(--ws-space-xl) 0;
  margin-bottom: var(--ws-space-xl);
}
.ws-page-header__title {
  font-size: 20px;
  font-weight: 700;
  color: var(--ws-text-primary);
  margin: 0 0 var(--ws-space-xs);
  letter-spacing: -.02em;
}
.ws-page-header__sub {
  font-size: 13px;
  color: var(--ws-text-secondary);
  margin: 0;
}
.ws-page-header__actions {
  display: flex;
  align-items: center;
  gap: var(--ws-space-sm);
  flex-shrink: 0;
}

/* Alias legacy topbars to ws-page-header layout */
.ann-topbar,
.er-topbar,
.tm-topbar,
.ts-topbar,
.pj-topbar,
.as-topbar,
.cb-topbar,
.school-workbench__topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--ws-space-lg);
  padding: var(--ws-space-xl) 0;
  margin-bottom: var(--ws-space-xl);
}
.ann-topbar__actions,
.school-top-actions {
  display: flex;
  align-items: center;
  gap: var(--ws-space-sm);
  flex-shrink: 0;
}

/* ============================================================
   Unified Stats Grid
   ============================================================ */
.ws-stats-grid {
  display: grid;
  gap: var(--ws-space-md);
  margin-bottom: var(--ws-space-xl);
}
.ws-stats-grid--2 { grid-template-columns: repeat(2, 1fr); }
.ws-stats-grid--3 { grid-template-columns: repeat(3, 1fr); }
.ws-stats-grid--4 { grid-template-columns: repeat(4, 1fr); }

.ws-stat-card {
  padding: var(--ws-space-lg) var(--ws-space-xl);
  border: 1px solid var(--ws-border-color);
  border-radius: var(--ws-radius-lg);
  background: rgba(255,255,255,.72);
  text-align: center;
  transition: transform var(--ws-duration) var(--ws-ease), box-shadow var(--ws-duration) var(--ws-ease);
}
.ws-stat-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(15,23,42,.04);
}
.ws-stat-card__value {
  font-size: 24px;
  font-weight: 730;
  color: var(--ws-text-primary);
  margin-top: var(--ws-space-xs);
}
.ws-stat-card__label {
  font-size: 12px;
  font-weight: 650;
  color: var(--ws-text-secondary);
}

/* Alias legacy stats to unified style */
.tm-stats, .er-stats, .fu-stats, .cb-stats, .as-stats,
.tm-stats { display: grid; gap: var(--ws-space-md); margin-bottom: var(--ws-space-xl); }
.tm-stat, .er-stat, .fu-stat, .cb-stat, .as-stat {
  padding: var(--ws-space-lg) var(--ws-space-xl) !important;
  border: 1px solid var(--ws-border-color) !important;
  border-radius: var(--ws-radius-lg) !important;
  background: rgba(255,255,255,.72) !important;
  transition: transform var(--ws-duration) var(--ws-ease), box-shadow var(--ws-duration) var(--ws-ease);
}
.tm-stat:hover, .er-stat:hover, .fu-stat:hover, .cb-stat:hover, .as-stat:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(15,23,42,.04);
}
.tm-stat__value, .er-stat__value, .fu-stat__value, .cb-stat__value, .as-stat__value {
  font-size: 24px !important;
  font-weight: 730 !important;
  color: var(--ws-text-primary);
  margin-top: var(--ws-space-xs);
}
.tm-stat__label, .er-stat__label, .cb-stat__label {
  font-size: 12px !important;
  font-weight: 650 !important;
  color: var(--ws-text-secondary) !important;
  text-transform: uppercase !important;
  letter-spacing: .05em !important;
}

/* ============================================================
   Unified Card / Panel
   ============================================================ */
.ws-panel {
  background: rgba(255,255,255,.72);
  border: 1px solid var(--ws-border-color);
  border-radius: var(--ws-radius-xl);
  padding: var(--ws-space-2xl);
  margin-bottom: var(--ws-space-lg);
  box-shadow: 0 4px 12px rgba(15,23,42,.02);
}
.ws-panel__title {
  font-size: 15px;
  font-weight: 700;
  color: var(--ws-text-primary);
  margin: 0 0 var(--ws-space-md);
}

/* Alias legacy panels to unified radius */
.ann-panel, .er-panel, .fu-panel, .cb-panel,
.ts-panel, .cd-panel {
  border-radius: var(--ws-radius-xl) !important;
  padding: var(--ws-space-2xl) !important;
  margin-bottom: var(--ws-space-lg) !important;
}

/* Alias legacy cards to unified radius */
.ann-card, .er-card, .fu-card, .tm-card, .ts-card {
  border-radius: var(--ws-radius-lg) !important;
  padding: var(--ws-space-lg) var(--ws-space-xl) !important;
  border: 1px solid var(--ws-border-color);
  background: rgba(255,255,255,.62);
  transition: transform var(--ws-duration) var(--ws-ease), box-shadow var(--ws-duration) var(--ws-ease);
}
.ann-card:hover, .er-card:hover, .fu-card:hover, .tm-card:hover, .ts-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(15,23,42,.04);
}

/* ============================================================
   Unified Modal
   ============================================================ */
.ws-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.42);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.ws-modal {
  background: var(--ws-bg-card);
  border: 1px solid var(--ws-border-color);
  border-radius: var(--ws-radius-2xl);
  padding: var(--ws-space-3xl);
  width: 440px;
  max-width: 92vw;
  box-shadow: 0 24px 72px rgba(0,0,0,.12);
}
.ws-modal__title {
  font-size: 18px;
  font-weight: 730;
  text-align: center;
  margin-bottom: var(--ws-space-lg);
  color: var(--ws-text-primary);
}
.ws-modal__desc {
  font-size: 14px;
  color: var(--ws-text-secondary);
  text-align: center;
  margin-bottom: var(--ws-space-xl);
}
.ws-modal__actions {
  display: flex;
  gap: var(--ws-space-sm);
  justify-content: flex-end;
  margin-top: var(--ws-space-xl);
}

/* Alias legacy modals */
.ann-modal, .tm-modal, .pj-modal, .school-modal {
  border-radius: var(--ws-radius-2xl) !important;
  padding: var(--ws-space-3xl) !important;
}
.ann-modal__actions, .tm-modal-actions, .pj-modal__actions, .school-modal__actions {
  display: flex;
  gap: var(--ws-space-sm);
  justify-content: flex-end;
  margin-top: var(--ws-space-xl);
}

/* ============================================================
   Unified Inputs
   ============================================================ */
.ws-input,
.tm-input, .er-input, .ann-input, .cb-input {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--ws-border-color);
  border-radius: var(--ws-radius-md);
  font-size: 13px;
  font-family: var(--ws-font-family);
  background: var(--ws-bg-card);
  color: var(--ws-text-primary);
  outline: none;
  transition: border-color var(--ws-duration) var(--ws-ease);
}
.ws-input:focus,
.tm-input:focus, .er-input:focus, .ann-input:focus {
  border-color: var(--ws-status-info);
}

/* ============================================================
   Badges & Tags
   ============================================================ */
.ws-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 10px;
  border-radius: var(--ws-radius-pill);
  font-size: 11px;
  font-weight: 650;
}
.ws-badge--success { background: rgba(16,185,129,.1); color: #047857; }
.ws-badge--warning { background: rgba(245,158,11,.1); color: #a16207; }
.ws-badge--error   { background: rgba(239,68,68,.1);  color: #b91c1c; }
.ws-badge--info    { background: rgba(59,130,246,.1);  color: #1d4ed8; }
.ws-badge--neutral { background: rgba(107,114,128,.1); color: #4b5563; }

/* ============================================================
   Dark Mode — Workspace Design System
   ============================================================ */
[data-theme="dark"] .ws-stat-card {
  background: rgba(255,255,255,.06);
  border-color: var(--ws-border-color);
}

[data-theme="dark"] .ws-stat-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,.2);
}

[data-theme="dark"] .ws-panel {
  background: #1c1c1e;
  border-color: var(--ws-border-color);
  box-shadow: none;
}

[data-theme="dark"] .ws-btn:hover,
[data-theme="dark"] .school-btn:hover,
[data-theme="dark"] .pj-btn:hover {
  box-shadow: 0 2px 8px rgba(0,0,0,.2);
}

[data-theme="dark"] .ws-btn--ghost:hover,
[data-theme="dark"] .school-btn--ghost:hover,
[data-theme="dark"] .pj-btn--ghost:hover {
  background: var(--ws-bg-hover);
  border-color: rgba(255,255,255,.12);
}

[data-theme="dark"] .ws-btn--secondary:hover {
  background: rgba(255,255,255,.1);
}

[data-theme="dark"] .ws-modal {
  background: #1c1c1e;
  border-color: var(--ws-border-color);
  box-shadow: 0 24px 72px rgba(0,0,0,.4);
}

[data-theme="dark"] .ws-input,
[data-theme="dark"] .tm-input,
[data-theme="dark"] .er-input,
[data-theme="dark"] .ann-input,
[data-theme="dark"] .cb-input {
  background: #1c1c1e;
  color: var(--ws-text-primary);
  border-color: var(--ws-border-color);
}

/* Dark mode badges */
[data-theme="dark"] .ws-badge--success { background: rgba(52,211,153,.12); color: #34d399; }
[data-theme="dark"] .ws-badge--warning { background: rgba(251,191,36,.12); color: #fbbf24; }
[data-theme="dark"] .ws-badge--error   { background: rgba(248,113,113,.12); color: #f87171; }
[data-theme="dark"] .ws-badge--info    { background: rgba(96,165,250,.12);  color: #60a5fa; }
[data-theme="dark"] .ws-badge--neutral { background: rgba(161,161,170,.1);  color: #a1a1aa; }

/* Legacy card/panel dark mode overrides */
[data-theme="dark"] .ann-card,
[data-theme="dark"] .er-card,
[data-theme="dark"] .fu-card,
[data-theme="dark"] .tm-card,
[data-theme="dark"] .ts-card {
  background: #1c1c1e;
  border-color: var(--ws-border-color);
}

[data-theme="dark"] .ann-card:hover,
[data-theme="dark"] .er-card:hover,
[data-theme="dark"] .fu-card:hover,
[data-theme="dark"] .tm-card:hover,
[data-theme="dark"] .ts-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,.2);
}

[data-theme="dark"] .tm-stat,
[data-theme="dark"] .er-stat,
[data-theme="dark"] .fu-stat,
[data-theme="dark"] .cb-stat,
[data-theme="dark"] .as-stat {
  background: rgba(255,255,255,.06) !important;
  border-color: var(--ws-border-color) !important;
}

[data-theme="dark"] .ann-panel,
[data-theme="dark"] .er-panel,
[data-theme="dark"] .fu-panel,
[data-theme="dark"] .cb-panel,
[data-theme="dark"] .ts-panel,
[data-theme="dark"] .cd-panel {
  background: #1c1c1e !important;
  border-color: var(--ws-border-color) !important;
}

[data-theme="dark"] .ann-modal,
[data-theme="dark"] .tm-modal,
[data-theme="dark"] .pj-modal,
[data-theme="dark"] .school-modal {
  background: #1c1c1e !important;
  border-color: var(--ws-border-color) !important;
  box-shadow: 0 28px 80px rgba(0,0,0,.5) !important;
}
body.workspace-shell-active {
  --ws-shell-sidebar-expanded: 264px;
  --ws-shell-sidebar-collapsed: 72px;
  --ws-shell-sidebar-width: var(--ws-shell-sidebar-expanded);
  --ws-shell-topbar-height: 72px;
  --ws-shell-page: #f5f5f7;
  --ws-shell-panel: rgba(255, 255, 255, .72);
  --ws-shell-panel-solid: #ffffff;
  --ws-shell-line: rgba(60, 60, 67, .12);
  --ws-shell-line-strong: rgba(60, 60, 67, .18);
  --ws-shell-text: #171a1f;
  --ws-shell-muted: #6e6e73;
  --ws-shell-faint: #a1a1a6;
  --ws-shell-active: #111318;
  --ws-shell-contact: 0 .5px 0 rgba(255,255,255,.72) inset, 0 6px 18px rgba(0, 0, 0, .035);
  --ws-shell-lift: 0 18px 44px rgba(0, 0, 0, .055);
  --ws-shell-float: 0 28px 72px rgba(0, 0, 0, .16);
  --ws-shell-glass: saturate(1.8) blur(26px);
  --ws-shell-radius-control: 12px;
  --ws-shell-radius-pill: 999px;
  --ws-shell-ease: cubic-bezier(.16, 1, .3, 1);
  background:
    linear-gradient(180deg, rgba(255,255,255,.86), rgba(255,255,255,.28) 260px, rgba(255,255,255,0) 620px),
    linear-gradient(90deg, rgba(0,0,0,.018), rgba(255,255,255,0) 24%, rgba(0,0,0,.014) 100%),
    var(--ws-shell-page) !important;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

body.workspace-shell-collapsed {
  --ws-shell-sidebar-width: var(--ws-shell-sidebar-collapsed);
}

body.workspace-shell-collapsed.workspace-shell-sidebar-hover {
  --ws-shell-sidebar-width: var(--ws-shell-sidebar-collapsed);
}

body.workspace-shell-active #workspace-sidebar {
  width: var(--ws-shell-sidebar-width);
  isolation: isolate;
  background:
    linear-gradient(180deg, rgba(255,255,255,.72), rgba(245,245,247,.7)),
    rgba(245,245,247,.66);
  border-right: 1px solid var(--ws-shell-line);
  box-shadow: 1px 0 0 rgba(255,255,255,.62) inset, 10px 0 28px rgba(0, 0, 0, .035);
  backdrop-filter: var(--ws-shell-glass);
  -webkit-backdrop-filter: var(--ws-shell-glass);
  overflow-x: hidden;
  transition: width .28s var(--ws-shell-ease), transform .28s var(--ws-shell-ease), background .18s ease, box-shadow .18s ease;
}

body.workspace-shell-collapsed.workspace-shell-sidebar-hover #workspace-sidebar {
  width: var(--ws-shell-sidebar-expanded);
  box-shadow: 1px 0 0 rgba(255,255,255,.7) inset, 22px 0 52px rgba(0, 0, 0, .12);
}

body.workspace-shell-collapsed:not(.workspace-shell-sidebar-hover) #workspace-sidebar {
  background:
    linear-gradient(180deg, rgba(255,255,255,.82), rgba(247,247,249,.72)),
    rgba(246,246,248,.78);
  box-shadow: 1px 0 0 rgba(255,255,255,.76) inset, 1px 0 0 rgba(60,60,67,.08);
}

body.workspace-shell-active #workspace-sidebar::before,
body.workspace-shell-active #workspace-sidebar::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: -1;
}

body.workspace-shell-active #workspace-sidebar::before {
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255,255,255,.54), rgba(255,255,255,0) 32%),
    linear-gradient(90deg, rgba(255,255,255,.32), rgba(255,255,255,0) 42%);
}

body.workspace-shell-active #workspace-sidebar::after {
  top: 0;
  right: 0;
  width: 1px;
  height: 100%;
  background: linear-gradient(180deg, rgba(255,255,255,.86), rgba(18,24,32,.1), rgba(255,255,255,.5));
}

body.workspace-shell-active #workspace-topbar {
  left: var(--ws-shell-sidebar-width);
  height: var(--ws-shell-topbar-height);
  padding: 0 28px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.76), rgba(245,245,247,.72)),
    rgba(245, 245, 247, .68);
  border-bottom: 1px solid var(--ws-shell-line);
  box-shadow: 0 .5px 0 rgba(255,255,255,.9) inset, 0 8px 22px rgba(0,0,0,.03);
  backdrop-filter: var(--ws-shell-glass);
  -webkit-backdrop-filter: var(--ws-shell-glass);
  transition: left .22s var(--ws-shell-ease), background .18s ease, border-color .18s ease;
}

body.workspace-shell-active #app {
  transition: margin-left .22s var(--ws-shell-ease), width .22s var(--ws-shell-ease);
}

body.workspace-shell-active .ws-sidebar-brand {
  min-height: 62px;
  height: 62px;
  flex: 0 0 62px;
  box-sizing: border-box;
  padding: 16px 12px 12px;
  gap: 10px;
}

body.workspace-shell-active .ws-sidebar-mark,
body.workspace-shell-active .ws-sidebar-avatar,
body.workspace-shell-active .ws-org-switcher__logo,
body.workspace-shell-active .ws-org-dropdown-logo {
  border-radius: 11px;
  background: linear-gradient(180deg, #1d1d1f, #050506);
  box-shadow: inset 0 .5px 0 rgba(255,255,255,.18), 0 8px 22px rgba(0,0,0,.16);
}

body.workspace-shell-active .ws-sidebar-brand-text strong {
  color: var(--ws-shell-text);
  font-size: 15px;
  font-weight: 720;
  letter-spacing: 0;
}

body.workspace-shell-active .ws-sidebar-brand-text span,
body.workspace-shell-active .ws-org-switcher__copy small,
body.workspace-shell-active .ws-sidebar-user-copy span {
  color: var(--ws-shell-faint);
}

body.workspace-shell-active .ws-sidebar-collapse {
  width: 30px;
  height: 30px;
  margin-left: auto;
  border: 1px solid var(--ws-shell-line);
  border-radius: 10px;
  background: rgba(255,255,255,.48);
  color: var(--ws-shell-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform .16s var(--ws-shell-ease), color .16s ease, background .16s ease, border-color .16s ease;
}

body.workspace-shell-active .ws-sidebar-collapse svg {
  width: 16px;
  height: 16px;
}

body.workspace-shell-active .ws-sidebar-collapse:hover {
  background: #fff;
  border-color: var(--ws-shell-line-strong);
  color: var(--ws-shell-text);
  transform: translateY(-1px);
}

body.workspace-shell-collapsed .ws-sidebar-collapse svg {
  transform: rotate(180deg);
}

body.workspace-shell-active .ws-org-switcher {
  height: 74px;
  flex: 0 0 74px;
  box-sizing: border-box;
  padding: 0 8px 10px;
  position: relative;
  z-index: 340;
  overflow: visible;
}

body.workspace-shell-active .ws-org-switcher-wrapper {
  position: relative;
  z-index: 340;
  overflow: visible;
}

body.workspace-shell-active .ws-org-switcher__dropdown {
  position: fixed;
  top: 126px;
  left: 10px;
  right: auto;
  width: calc(var(--ws-shell-sidebar-expanded) - 20px);
  max-height: calc(100vh - 142px);
  overflow: auto;
  z-index: 1500;
  box-sizing: border-box;
  border: 1px solid rgba(60,60,67,.14);
  border-radius: 16px;
  background: rgba(255,255,255,.92);
  box-shadow: 0 24px 70px rgba(0,0,0,.18), 0 .5px 0 rgba(255,255,255,.8) inset;
  backdrop-filter: saturate(1.6) blur(24px);
  -webkit-backdrop-filter: saturate(1.6) blur(24px);
}

body.workspace-shell-collapsed:not(.workspace-shell-sidebar-hover) .ws-org-switcher__dropdown {
  display: none !important;
}

body.workspace-shell-active .ws-org-switcher__trigger,
body.workspace-shell-active .ws-sidebar-user {
  height: 63px;
  min-height: 63px;
  box-sizing: border-box;
  background: rgba(255,255,255,.46);
  border-color: rgba(60,60,67,.1);
  box-shadow: 0 .5px 0 rgba(255,255,255,.72) inset;
  transition: border-color .16s ease, background .16s ease, box-shadow .16s ease, transform .16s var(--ws-shell-ease);
}

body.workspace-shell-active .ws-org-switcher__trigger:hover,
body.workspace-shell-active .ws-sidebar-user:hover {
  background: rgba(255,255,255,.68);
  border-color: var(--ws-shell-line-strong);
  box-shadow: var(--ws-shell-contact);
}

body.workspace-shell-active .ws-sidebar-nav {
  padding: 10px 8px 12px;
  gap: 4px;
}

body.workspace-shell-active .ws-sidebar-group {
  margin: 5px 0 0;
  padding-top: 6px;
  border-top: 1px solid rgba(60,60,67,.1);
}

body.workspace-shell-active .ws-sidebar-group-title {
  display: none !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}

body.workspace-shell-active .ws-sidebar-item {
  height: 40px;
  min-height: 40px;
  box-sizing: border-box;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: var(--ws-shell-muted);
  font-size: 13px;
  font-weight: 590;
  box-shadow: 0 0 0 rgba(18,24,32,0);
  transition: transform .14s var(--ws-shell-ease), background .14s ease, color .14s ease, border-color .14s ease, box-shadow .14s ease;
}

body.workspace-shell-active .ws-sidebar-item:hover {
  background: rgba(255,255,255,.48);
  border-color: rgba(60,60,67,.08);
  color: var(--ws-shell-text);
  box-shadow: 0 .5px 0 rgba(255,255,255,.7) inset;
  transform: none;
}

body.workspace-shell-active .ws-sidebar-item--active {
  background: rgba(255,255,255,.76);
  border-color: rgba(60,60,67,.12);
  color: var(--ws-shell-active);
  box-shadow: 0 .5px 0 rgba(255,255,255,.82) inset, 0 6px 18px rgba(0,0,0,.035);
}

[data-theme="light"] body.workspace-shell-active .ws-sidebar-item--active,
html:not([data-theme="dark"]) body.workspace-shell-active .ws-sidebar-item--active {
  background: rgba(255,255,255,.76) !important;
  border-color: rgba(60,60,67,.12) !important;
  color: #1d1d1f !important;
  box-shadow: 0 .5px 0 rgba(255,255,255,.82) inset, 0 6px 18px rgba(0,0,0,.035) !important;
}

body.workspace-shell-active .ws-sidebar-item--active::before {
  content: "";
  position: absolute;
  left: -8px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  border-radius: 999px;
  background: rgba(0,0,0,.84);
  box-shadow: none;
}

body.workspace-shell-active .ws-sidebar-icon {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  background: transparent;
  opacity: .9;
  transition: background .14s ease, color .14s ease, box-shadow .14s ease;
}

body.workspace-shell-active .ws-sidebar-item:hover .ws-sidebar-icon,
body.workspace-shell-active .ws-sidebar-item--active .ws-sidebar-icon {
  background: rgba(0,0,0,.055);
  color: #111318;
  box-shadow: none;
}

[data-theme="light"] body.workspace-shell-active .ws-sidebar-item--active .ws-sidebar-icon,
html:not([data-theme="dark"]) body.workspace-shell-active .ws-sidebar-item--active .ws-sidebar-icon {
  background: rgba(0,0,0,.055) !important;
  color: #1d1d1f !important;
}

body.workspace-shell-active .ws-sidebar-footer {
  padding: 10px 8px 12px;
  border-top-color: var(--ws-shell-line);
  background: linear-gradient(180deg, rgba(255,255,255,0), rgba(255,255,255,.58));
}

body.workspace-shell-collapsed .ws-sidebar-brand {
  min-height: 62px;
  height: 62px;
  padding: 16px 19px 12px;
  box-sizing: border-box;
}

body.workspace-shell-collapsed:not(.workspace-shell-sidebar-hover) .ws-sidebar-brand {
  display: flex;
  justify-content: flex-start;
  min-height: 62px;
  height: 62px;
  flex: 0 0 62px;
  padding: 16px 19px 12px;
}

body.workspace-shell-collapsed:not(.workspace-shell-sidebar-hover) .ws-sidebar-mark {
  margin: 0;
  width: 34px;
  min-width: 34px;
  height: 34px;
  flex: 0 0 34px;
  box-sizing: border-box;
  border-radius: 14px;
  background: rgba(255,255,255,.42);
  border: 1px solid rgba(60,60,67,.1);
  color: #1d1d1f;
  box-shadow: inset 0 .5px 0 rgba(255,255,255,.82);
}

body.workspace-shell-collapsed:not(.workspace-shell-sidebar-hover) .ws-sidebar-mark svg {
  width: 18px;
  height: 18px;
}

body.workspace-shell-collapsed:not(.workspace-shell-sidebar-hover) .ws-sidebar-brand-text,
body.workspace-shell-collapsed:not(.workspace-shell-sidebar-hover) .ws-org-switcher__copy,
body.workspace-shell-collapsed:not(.workspace-shell-sidebar-hover) .ws-org-switcher__arrow,
body.workspace-shell-collapsed:not(.workspace-shell-sidebar-hover) .ws-sidebar-label,
body.workspace-shell-collapsed:not(.workspace-shell-sidebar-hover) .ws-sidebar-badge,
body.workspace-shell-collapsed:not(.workspace-shell-sidebar-hover) .ws-sidebar-user-copy {
  width: 0;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
}

body.workspace-shell-collapsed:not(.workspace-shell-sidebar-hover) .ws-sidebar-group {
  margin: 5px 0 0;
  padding-top: 6px;
  border-top-color: rgba(60,60,67,.09);
}

body.workspace-shell-collapsed .ws-sidebar-collapse {
  position: absolute;
  top: 64px;
  left: 50%;
  width: 28px;
  height: 28px;
  margin-left: 0;
  opacity: .86;
  transform: translateX(-50%);
}

body.workspace-shell-collapsed:not(.workspace-shell-sidebar-hover) .ws-sidebar-collapse {
  display: none;
}

body.workspace-shell-collapsed .ws-sidebar-collapse:hover {
  transform: translateX(-50%) translateY(-1px);
}

body.workspace-shell-collapsed:not(.workspace-shell-sidebar-hover) .ws-org-switcher {
  display: block;
  opacity: 1;
  pointer-events: none;
  height: 74px;
  flex: 0 0 74px;
  padding: 0 8px 10px;
  position: relative;
}

body.workspace-shell-collapsed:not(.workspace-shell-sidebar-hover) .ws-org-switcher__trigger,
body.workspace-shell-collapsed:not(.workspace-shell-sidebar-hover) .ws-sidebar-user,
body.workspace-shell-collapsed:not(.workspace-shell-sidebar-hover) .ws-sidebar-item {
  justify-content: center;
  width: 44px;
  min-width: 44px;
  height: 40px;
  min-height: 40px;
  padding: 0;
  gap: 0;
  border-radius: 13px;
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

body.workspace-shell-collapsed .ws-sidebar-nav {
  align-items: center;
  padding: 10px 14px 12px;
  gap: 4px;
}

body.workspace-shell-collapsed .ws-sidebar-footer {
  padding: 10px 14px 12px;
  background: linear-gradient(180deg, rgba(255,255,255,0), rgba(255,255,255,.28));
}

body.workspace-shell-collapsed:not(.workspace-shell-sidebar-hover) .ws-org-switcher__trigger {
  position: absolute;
  top: 9px;
  left: 14px;
  width: 44px;
  min-width: 44px;
  height: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

body.workspace-shell-collapsed:not(.workspace-shell-sidebar-hover) .ws-org-switcher__trigger .ws-org-switcher__copy,
body.workspace-shell-collapsed:not(.workspace-shell-sidebar-hover) .ws-org-switcher__trigger .ws-org-switcher__arrow {
  display: none !important;
}

body.workspace-shell-collapsed:not(.workspace-shell-sidebar-hover) .ws-sidebar-user {
  width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  margin: 0 auto 12px;
  border-radius: 13px;
  box-sizing: border-box;
}

body.workspace-shell-collapsed:not(.workspace-shell-sidebar-hover) .ws-sidebar-avatar {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  border-radius: 12px;
  background: rgba(255,255,255,.5);
  border: 1px solid rgba(60,60,67,.1);
  color: #1d1d1f;
  box-shadow: inset 0 .5px 0 rgba(255,255,255,.82);
}

body.workspace-shell-collapsed:not(.workspace-shell-sidebar-hover) .ws-org-switcher__logo {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  border-radius: 12px;
  background: rgba(255,255,255,.5);
  border: 1px solid rgba(60,60,67,.1);
  color: #1d1d1f;
  box-shadow: inset 0 .5px 0 rgba(255,255,255,.82);
}

body.workspace-shell-collapsed:not(.workspace-shell-sidebar-hover) .ws-sidebar-icon {
  width: 24px;
  height: 24px;
  opacity: .72;
  color: #5f636a;
  background: transparent;
}

body.workspace-shell-collapsed:not(.workspace-shell-sidebar-hover) .ws-sidebar-icon svg {
  width: 18px;
  height: 18px;
  stroke-width: 1.65;
}

body.workspace-shell-collapsed:not(.workspace-shell-sidebar-hover) .ws-sidebar-item--active {
  background: rgba(29,29,31,.055) !important;
  border-color: rgba(60,60,67,.08) !important;
  box-shadow: inset 0 .5px 0 rgba(255,255,255,.82) !important;
}

body.workspace-shell-collapsed:not(.workspace-shell-sidebar-hover) .ws-sidebar-item--active .ws-sidebar-icon,
body.workspace-shell-collapsed:not(.workspace-shell-sidebar-hover) .ws-sidebar-item:hover .ws-sidebar-icon {
  background: transparent !important;
  color: #1d1d1f !important;
  opacity: .9;
}

[data-theme="light"] body.workspace-shell-collapsed:not(.workspace-shell-sidebar-hover) .ws-sidebar-item--active .ws-sidebar-icon,
html:not([data-theme="dark"]) body.workspace-shell-collapsed:not(.workspace-shell-sidebar-hover) .ws-sidebar-item--active .ws-sidebar-icon {
  background: transparent !important;
  box-shadow: none !important;
}

body.workspace-shell-collapsed .ws-sidebar-item:hover {
  transform: none;
}

body.workspace-shell-collapsed:not(.workspace-shell-sidebar-hover) .ws-sidebar-item--active::before {
  display: none;
}

body.workspace-shell-collapsed.workspace-shell-sidebar-hover .ws-sidebar-brand {
  min-height: 62px;
  height: 62px;
  justify-content: flex-start;
  padding-left: 19px;
  padding-right: 12px;
}

body.workspace-shell-pinned .ws-sidebar-brand {
  padding-left: 19px;
}

body.workspace-shell-collapsed.workspace-shell-sidebar-hover .ws-sidebar-brand-text,
body.workspace-shell-collapsed.workspace-shell-sidebar-hover .ws-org-switcher__copy,
body.workspace-shell-collapsed.workspace-shell-sidebar-hover .ws-org-switcher__arrow,
body.workspace-shell-collapsed.workspace-shell-sidebar-hover .ws-sidebar-label,
body.workspace-shell-collapsed.workspace-shell-sidebar-hover .ws-sidebar-badge,
body.workspace-shell-collapsed.workspace-shell-sidebar-hover .ws-sidebar-user-copy {
  width: auto;
  opacity: 1;
  overflow: visible;
  pointer-events: auto;
  transition: opacity .12s ease .06s;
}

body.workspace-shell-collapsed.workspace-shell-sidebar-hover .ws-org-switcher {
  display: block;
}

body.workspace-shell-collapsed.workspace-shell-sidebar-hover .ws-sidebar-collapse {
  position: static;
  width: 30px;
  height: 30px;
  margin-left: auto;
  display: inline-flex;
  transform: none;
}

body.workspace-shell-collapsed.workspace-shell-sidebar-hover .ws-sidebar-collapse:hover {
  transform: translateY(-1px);
}

body.workspace-shell-collapsed.workspace-shell-sidebar-hover .ws-sidebar-nav {
  align-items: stretch;
  padding: 10px 8px 12px;
}

body.workspace-shell-collapsed.workspace-shell-sidebar-hover .ws-sidebar-group {
  margin: 5px 0 0;
  padding-top: 6px;
}

body.workspace-shell-pinned .ws-sidebar-group {
  margin: 5px 0 0;
  padding-top: 6px;
}

body.workspace-shell-collapsed.workspace-shell-sidebar-hover .ws-sidebar-item {
  width: auto;
  min-width: 0;
  height: 40px;
  min-height: 40px;
  justify-content: flex-start;
  padding-left: 16px;
  padding-right: 10px;
  gap: 10px;
}

body.workspace-shell-pinned .ws-sidebar-item {
  padding-left: 16px;
  gap: 10px;
}

body.workspace-shell-collapsed.workspace-shell-sidebar-hover .ws-sidebar-user {
  width: auto;
  height: 63px;
  min-height: 63px;
  justify-content: flex-start;
  padding-left: 13px;
  padding-right: 10px;
}

body.workspace-shell-pinned .ws-sidebar-user {
  padding-left: 13px;
}

body.workspace-shell-active .ws-sidebar-label,
body.workspace-shell-active .ws-sidebar-badge,
body.workspace-shell-active .ws-sidebar-user-copy,
body.workspace-shell-active .ws-sidebar-brand-text,
body.workspace-shell-active .ws-org-switcher__copy,
body.workspace-shell-active .ws-org-switcher__arrow {
  transition: opacity .2s var(--ws-shell-ease), transform .28s var(--ws-shell-ease), max-width .28s var(--ws-shell-ease);
}

body.workspace-shell-collapsed:not(.workspace-shell-sidebar-hover) .ws-sidebar-label,
body.workspace-shell-collapsed:not(.workspace-shell-sidebar-hover) .ws-sidebar-badge,
body.workspace-shell-collapsed:not(.workspace-shell-sidebar-hover) .ws-sidebar-user-copy,
body.workspace-shell-collapsed:not(.workspace-shell-sidebar-hover) .ws-sidebar-brand-text,
body.workspace-shell-collapsed:not(.workspace-shell-sidebar-hover) .ws-org-switcher__copy,
body.workspace-shell-collapsed:not(.workspace-shell-sidebar-hover) .ws-org-switcher__arrow {
  width: auto !important;
  max-width: 0;
  opacity: 0;
  transform: translateX(-8px);
  overflow: hidden;
  pointer-events: none;
}

body.workspace-shell-collapsed.workspace-shell-sidebar-hover .ws-sidebar-label,
body.workspace-shell-collapsed.workspace-shell-sidebar-hover .ws-sidebar-badge,
body.workspace-shell-collapsed.workspace-shell-sidebar-hover .ws-sidebar-user-copy,
body.workspace-shell-collapsed.workspace-shell-sidebar-hover .ws-sidebar-brand-text,
body.workspace-shell-collapsed.workspace-shell-sidebar-hover .ws-org-switcher__copy,
body.workspace-shell-collapsed.workspace-shell-sidebar-hover .ws-org-switcher__arrow,
body.workspace-shell-pinned .ws-sidebar-label,
body.workspace-shell-pinned .ws-sidebar-badge,
body.workspace-shell-pinned .ws-sidebar-user-copy,
body.workspace-shell-pinned .ws-sidebar-brand-text,
body.workspace-shell-pinned .ws-org-switcher__copy,
body.workspace-shell-pinned .ws-org-switcher__arrow {
  width: auto !important;
  max-width: 180px;
  opacity: 1;
  transform: translateX(0);
  overflow: hidden;
}

body.workspace-shell-collapsed.workspace-shell-sidebar-hover .ws-org-switcher__trigger {
  padding-left: 13px;
}

body.workspace-shell-pinned .ws-org-switcher__trigger {
  padding-left: 13px;
}

body.workspace-shell-active .ws-topbar-title {
  color: var(--ws-shell-text);
  font-size: 16px;
  font-weight: 720;
  line-height: 1.2;
  letter-spacing: 0;
}

body.workspace-shell-active .ws-topbar-subtitle {
  color: var(--ws-shell-faint);
  max-width: 360px;
}

body.workspace-shell-active .ws-topbar-left {
  gap: 5px;
}

body.workspace-shell-active .ws-topbar-eyebrow {
  font-size: 11px;
  font-weight: 720;
  line-height: 1;
  color: var(--ws-shell-faint);
}

body.workspace-shell-active .ws-topbar-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

body.workspace-shell-active .ws-topbar-divider {
  width: 1px;
  height: 14px;
  background: var(--ws-shell-line-strong);
  flex: 0 0 auto;
}

body.workspace-shell-active .ws-topbar-actions {
  gap: 10px;
}

body.workspace-shell-active .ws-topbar-search,
body.workspace-shell-active .ws-topbar-btn,
body.workspace-shell-active .ws-topbar-icon-btn {
  height: 38px;
  border-color: rgba(60,60,67,.11);
  background: rgba(255,255,255,.58);
  box-shadow: 0 .5px 0 rgba(255,255,255,.8) inset;
  transition: transform .14s var(--ws-shell-ease), box-shadow .14s ease, border-color .14s ease, background .14s ease;
}

body.workspace-shell-active .ws-topbar-search:hover,
body.workspace-shell-active .ws-topbar-btn:hover,
body.workspace-shell-active .ws-topbar-icon-btn:hover {
  background: rgba(255,255,255,.82);
  border-color: var(--ws-shell-line-strong);
  box-shadow: var(--ws-shell-contact);
  transform: translateY(-1px);
}

body.workspace-shell-active .ws-topbar-btn--primary {
  background: #1d1d1f;
  border-color: #1d1d1f;
  color: #fff;
  box-shadow: 0 8px 20px rgba(0,0,0,.12);
  border-radius: 11px;
  padding: 0 14px;
}

body.workspace-shell-active .ws-topbar-btn--primary:hover {
  background: #2b2b2f;
  color: #fff;
  box-shadow: 0 10px 24px rgba(0,0,0,.14);
}

body.workspace-shell-active .ws-topbar-search kbd {
  background: rgba(255,255,255,.66);
  border-color: rgba(60,60,67,.1);
  box-shadow: none;
  border-radius: 6px;
}

body.workspace-shell-active .ws-topbar-search {
  min-width: 300px;
  border-radius: var(--ws-shell-radius-pill);
  padding: 0 12px;
}

body.workspace-shell-active .ws-topbar-icon-btn {
  width: 38px;
  border-radius: 50%;
}

body.workspace-shell-active .ws-sidebar-item:focus-visible,
body.workspace-shell-active .ws-sidebar-collapse:focus-visible,
body.workspace-shell-active .ws-org-switcher__trigger:focus-visible,
body.workspace-shell-active .ws-topbar-search:focus-visible,
body.workspace-shell-active .ws-topbar-btn:focus-visible,
body.workspace-shell-active .ws-topbar-icon-btn:focus-visible {
  outline: none;
  border-color: rgba(0,122,255,.44);
  box-shadow: 0 0 0 4px rgba(0,122,255,.14), var(--ws-shell-contact);
}

body.workspace-shell-active #workspace-command-overlay {
  background: rgba(17, 19, 24, .28);
}

body.workspace-shell-active .ws-command-panel,
body.workspace-shell-active .ws-settings-panel,
body.workspace-shell-active .join-modal-panel {
  border-radius: 18px;
  box-shadow: var(--ws-shell-float);
}

[data-theme="dark"] body.workspace-shell-active {
  --ws-shell-page: #0c0c0f;
  --ws-shell-panel: rgba(28, 28, 30, .68);
  --ws-shell-panel-solid: #1c1c1e;
  --ws-shell-line: rgba(235,235,245,.1);
  --ws-shell-line-strong: rgba(235,235,245,.18);
  --ws-shell-text: #f5f5f7;
  --ws-shell-muted: #aeaeb2;
  --ws-shell-faint: #8e8e93;
  --ws-bg-page: #111113;
  --ws-bg-card: #1f2024;
  --ws-bg-hover: rgba(255,255,255,.075);
  --ws-text-primary: #f5f5f7;
  --ws-text-secondary: #c8c8d0;
  --ws-text-tertiary: #96969f;
  --ws-border-color: rgba(235,235,245,.12);
  --ws-border-color-hover: rgba(235,235,245,.22);
  --ws-status-success: #34d399;
  --ws-status-success-bg: rgba(52,211,153,.12);
  --ws-status-warning: #fbbf24;
  --ws-status-warning-bg: rgba(251,191,36,.12);
  --ws-status-error: #f87171;
  --ws-status-error-bg: rgba(248,113,113,.12);
  background:
    linear-gradient(180deg, rgba(255,255,255,.065), rgba(255,255,255,.018) 280px, rgba(255,255,255,0) 620px),
    linear-gradient(90deg, rgba(255,255,255,.035), rgba(255,255,255,0) 28%, rgba(255,255,255,.018)),
    var(--ws-shell-page) !important;
}

[data-theme="dark"] body.workspace-shell-active #workspace-sidebar {
  background:
    linear-gradient(180deg, rgba(44,44,48,.78), rgba(29,30,34,.72)),
    rgba(31,32,36,.72);
  box-shadow: 1px 0 0 rgba(255,255,255,.045) inset, 12px 0 32px rgba(0,0,0,.22);
}

[data-theme="dark"] body.workspace-shell-collapsed:not(.workspace-shell-sidebar-hover) #workspace-sidebar {
  background:
    linear-gradient(180deg, rgba(42,43,48,.74), rgba(27,28,32,.7)),
    rgba(30,31,35,.72);
  box-shadow: 1px 0 0 rgba(255,255,255,.045) inset, 1px 0 0 rgba(235,235,245,.08);
}

[data-theme="dark"] body.workspace-shell-active #workspace-topbar {
  background:
    linear-gradient(180deg, rgba(44,44,48,.72), rgba(30,31,35,.68)),
    rgba(31,32,36,.66);
  box-shadow: 0 .5px 0 rgba(255,255,255,.055) inset, 0 8px 22px rgba(0,0,0,.18);
}

[data-theme="dark"] body.workspace-shell-active .ws-org-switcher__trigger,
[data-theme="dark"] body.workspace-shell-active .ws-sidebar-user,
[data-theme="dark"] body.workspace-shell-active .ws-sidebar-item:hover,
[data-theme="dark"] body.workspace-shell-active .ws-sidebar-item--active,
[data-theme="dark"] body.workspace-shell-active .ws-topbar-search,
[data-theme="dark"] body.workspace-shell-active .ws-topbar-btn,
[data-theme="dark"] body.workspace-shell-active .ws-topbar-icon-btn,
[data-theme="dark"] body.workspace-shell-active .ws-sidebar-collapse {
  background: rgba(255,255,255,.04);
}

[data-theme="dark"] body.workspace-shell-active .ws-sidebar-item--active {
  background: rgba(255,255,255,.06) !important;
  border-color: rgba(235,235,245,.1) !important;
  color: #f5f5f7 !important;
  box-shadow: 0 .5px 0 rgba(255,255,255,.05) inset, 0 8px 18px rgba(0,0,0,.12) !important;
}

[data-theme="dark"] body.workspace-shell-active .ws-sidebar-icon {
  background: transparent;
}

[data-theme="dark"] body.workspace-shell-active .ws-sidebar-group {
  border-top-color: rgba(235,235,245,.11);
}

[data-theme="dark"] body.workspace-shell-active .ws-sidebar-item:hover .ws-sidebar-icon,
[data-theme="dark"] body.workspace-shell-active .ws-sidebar-item--active .ws-sidebar-icon {
  background: rgba(255,255,255,.05) !important;
  color: #f5f5f7 !important;
  box-shadow: none;
}

[data-theme="dark"] body.workspace-shell-active .ws-topbar-btn--primary {
  background: #d1d1d6;
  color: #111318;
  border-color: rgba(255,255,255,.4);
  box-shadow: 0 8px 20px rgba(0,0,0,.24);
}

/* 覆盖 index.html 中 [data-theme="dark"] #app/main 的 background: #000000 !important */
/* 工作区模式下 #app 和 main 不能是纯黑，否则内容全部被遮挡 */
[data-theme="dark"] body.workspace-shell-active #app,
[data-theme="dark"] body.workspace-shell-active main,
[data-theme="dark"] body.workspace-shell-active .app-container {
  background: var(--ws-shell-page) !important;
  background-color: var(--ws-shell-page) !important;
}

@media (max-width: 900px) {
  body.workspace-shell-active {
    --ws-shell-sidebar-width: 0px;
  }

  body.workspace-shell-active #workspace-topbar {
    left: 0;
    padding: 0 16px;
  }
}
