/* ============================================
   AI 全自动内容创作分发引擎 — 共享设计系统
   设计语言：克制、专业、信息密度高但不拥挤
   ============================================ */

/* ---- CSS Reset & Base ---- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* 全局中性色 */
  --bg-gray: #F5F6F8;
  --card-white: #FFFFFF;
  --border-line: #E5E5EA;
  --text-primary: #1D1D1F;
  --text-secondary: #3A3A3C;
  --text-tertiary: #8E8E93;

  /* 侧栏深色 */
  --sidebar-bg: #1B1B2F;
  --sidebar-hover: #272742;
  --sidebar-active: #32325A;

  /* 语义色 */
  --success: #34C759;
  --warning: #F59E0B;
  --danger: #FF3B30;
  --info: #007AFF;

  /* 模块主题色 — 默认蓝色，各页面通过 style 标签覆盖 */
  --accent: #0071E3;
  --accent-light: rgba(0, 113, 227, 0.12);
  --accent-glow: rgba(0, 113, 227, 0.15);

  /* 阴影 */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.06);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.1);

  /* 圆角 */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;

  /* 字体 */
  --font-sans: 'Outfit', -apple-system, 'PingFang SC', 'Microsoft YaHei', 'Noto Sans SC', sans-serif;
  --font-mono: 'DMMono', 'SF Mono', 'Fira Code', 'Consolas', monospace;

  /* 侧栏宽度 */
  --sidebar-width: 248px;
  --rightbar-width: 320px;
}

html, body {
  height: 100%;
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--text-primary);
  background: var(--bg-gray);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }
input, textarea, select { font-family: inherit; font-size: inherit; }

/* ---- App Layout (三栏 Flex) ---- */
.app-layout {
  display: flex;
  min-height: 100vh;
  width: 100%;
}

/* ---- 左侧栏 ---- */
.sidebar {
  width: var(--sidebar-width);
  min-width: var(--sidebar-width);
  background: var(--sidebar-bg);
  color: rgba(255,255,255,0.7);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  z-index: 100;
}

.sidebar::-webkit-scrollbar { width: 4px; }
.sidebar::-webkit-scrollbar-track { background: transparent; }
.sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 2px; }

/* 品牌区 */
.sidebar-brand {
  padding: 20px 18px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.brand-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 16px;
  color: #fff;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.brand-name {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.01em;
}

.brand-sub {
  font-size: 10px;
  font-family: var(--font-mono);
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* 导航区 */
.sidebar-nav {
  flex: 1;
  padding: 12px 10px;
  overflow-y: auto;
}

.nav-group-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  color: rgba(255,255,255,0.3);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 14px 10px 6px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  color: rgba(255,255,255,0.65);
  font-size: 13px;
  font-weight: 400;
  transition: all 0.15s ease;
  cursor: pointer;
  position: relative;
}

.nav-item:hover {
  background: var(--sidebar-hover);
  color: rgba(255,255,255,0.95);
}

.nav-item.active {
  background: var(--sidebar-active);
  color: #fff;
  font-weight: 500;
}

.nav-item.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 18px;
  background: var(--accent);
  border-radius: 0 2px 2px 0;
}

.nav-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-icon svg {
  width: 16px;
  height: 16px;
}

.nav-badge {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.6);
  padding: 1px 7px;
  border-radius: 8px;
  min-width: 20px;
  text-align: center;
}

.nav-item.active .nav-badge {
  background: var(--accent);
  color: #fff;
}

/* 状态栏 */
.sidebar-status {
  padding: 12px 14px;
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.status-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: rgba(255,255,255,0.5);
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.status-dot.green { background: var(--success); box-shadow: 0 0 6px rgba(52,199,89,0.5); }
.status-dot.amber { background: var(--warning); }
.status-dot.red { background: var(--danger); }

.status-value {
  margin-left: auto;
  font-family: var(--font-mono);
  color: rgba(255,255,255,0.7);
}

/* ---- 主内容区 ---- */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow-x: hidden;
}

/* 工具条 */
.toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 24px;
  background: var(--card-white);
  border-bottom: 1px solid var(--border-line);
  position: sticky;
  top: 0;
  z-index: 50;
}

.toolbar-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
}

.toolbar-divider {
  width: 1px;
  height: 20px;
  background: var(--border-line);
}

.search-box {
  flex: 1;
  max-width: 320px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: var(--bg-gray);
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  transition: all 0.15s ease;
}

.search-box:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
  background: var(--card-white);
}

.search-box input {
  flex: 1;
  border: none;
  background: none;
  outline: none;
  font-size: 13px;
  color: var(--text-primary);
}

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

.toolbar-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover { opacity: 0.85; }

.btn-secondary {
  background: var(--bg-gray);
  color: var(--text-secondary);
  border: 1px solid var(--border-line);
}

.btn-secondary:hover {
  background: #ECEDEF;
  border-color: #D1D1D6;
}

.btn-ghost {
  color: var(--text-secondary);
  padding: 7px 10px;
}

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

.btn-sm {
  padding: 4px 10px;
  font-size: 12px;
}

.btn svg { width: 14px; height: 14px; }

/* 可滚动内容区 */
.content-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
}

/* ---- Hero 区域 ---- */
.hero {
  background: linear-gradient(135deg, var(--sidebar-bg) 0%, color-mix(in srgb, var(--accent) 30%, var(--sidebar-bg)) 100%);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  color: #fff;
  position: relative;
  overflow: hidden;
  margin-bottom: 24px;
}

.hero::after {
  content: '';
  position: absolute;
  top: -60px;
  right: -40px;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
}

.hero-label {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.5);
  margin-bottom: 8px;
}

.hero-title {
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 8px;
  position: relative;
  z-index: 1;
}

.hero-subtitle {
  font-family: var(--font-sans);
  font-size: calc(2.2rem - 8px);
  font-weight: 300;
  color: #FFE55C;
  letter-spacing: -0.02em;
  line-height: calc(1.2em + 2px);
  margin-bottom: 8px;
  position: relative;
  z-index: 1;
}

.hero-subtitle-sm {
  font-size: calc(2.2rem - 11px);
}

.hero-desc {
  font-size: 14px;
  color: rgba(255,255,255,0.65);
  max-width: 560px;
  position: relative;
  z-index: 1;
}

.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 24px;
  position: relative;
  z-index: 1;
}

.hero-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hero-stat-label {
  font-size: 11px;
  color: rgba(255,255,255,0.5);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero-stat-value {
  font-size: 1.8rem;
  font-weight: 700;
  font-family: var(--font-mono);
  color: #fff;
}

.hero-stat-trend {
  font-size: 12px;
  font-family: var(--font-mono);
  display: flex;
  align-items: center;
  gap: 2px;
}

.hero-stat-trend.up { color: var(--success); }
.hero-stat-trend.down { color: #FF6B6B; }

/* ---- 卡片网格 ---- */
.card-grid {
  display: grid;
  gap: 16px;
}

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

/* 卡片 */
.card {
  background: var(--card-white);
  border: 1px solid var(--border-line);
  border-radius: var(--radius-md);
  padding: 20px;
  transition: all 0.2s ease;
  position: relative;
}

.card:hover {
  box-shadow: var(--shadow-md);
  border-color: #D1D1D6;
  transform: translateY(-2px);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.card-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
}

.card-subtitle {
  font-size: 12px;
  color: var(--text-tertiary);
  margin-top: 2px;
}

/* 九宫格卡片 */
.module-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.module-card {
  background: var(--card-white);
  border: 1px solid var(--border-line);
  border-radius: var(--radius-md);
  padding: 22px;
  transition: all 0.25s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
}

.module-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--card-accent, var(--accent));
  opacity: 0;
  transition: opacity 0.25s ease;
}

.module-card:hover {
  box-shadow: var(--shadow-md);
  border-color: #D1D1D6;
  transform: translateY(-4px);
}

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

.module-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 18px;
  color: #fff;
  flex-shrink: 0;
}

.module-card-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.module-card-desc {
  font-size: 12px;
  color: var(--text-tertiary);
  line-height: 1.5;
}

.module-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--border-line);
}

.module-card-stat {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-tertiary);
}

.module-card-stat strong {
  color: var(--text-primary);
  font-size: 14px;
}

.module-card-arrow {
  color: var(--text-tertiary);
  transition: transform 0.2s ease, color 0.2s ease;
}

.module-card:hover .module-card-arrow {
  color: var(--card-accent, var(--accent));
  transform: translateX(4px);
}

/* ---- 统计卡片 ---- */
.stat-card {
  background: var(--card-white);
  border: 1px solid var(--border-line);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  transition: all 0.2s ease;
}

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

.stat-label {
  font-size: 12px;
  color: var(--text-tertiary);
  margin-bottom: 8px;
}

.stat-value {
  font-family: var(--font-mono);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

.stat-trend {
  font-size: 12px;
  font-family: var(--font-mono);
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 3px;
}

.stat-trend.up { color: var(--success); }
.stat-trend.down { color: var(--danger); }

/* ---- 表格 ---- */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.data-table thead {
  background: var(--bg-gray);
}

.data-table th {
  text-align: left;
  padding: 10px 14px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--border-line);
}

.data-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-line);
  color: var(--text-secondary);
}

.data-table tbody tr {
  transition: background 0.15s ease;
}

.data-table tbody tr:hover {
  background: color-mix(in srgb, var(--accent) 3%, transparent);
}

.data-table .mono {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--text-primary);
}

/* ---- 状态徽章 ---- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 500;
  font-family: var(--font-mono);
}

.badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.badge.success { background: rgba(52,199,89,0.1); color: var(--success); }
.badge.success::before { background: var(--success); }
.badge.warning { background: rgba(245,158,11,0.1); color: var(--warning); }
.badge.warning::before { background: var(--warning); }
.badge.danger { background: rgba(255,59,48,0.1); color: var(--danger); }
.badge.danger::before { background: var(--danger); }
.badge.info { background: rgba(0,122,255,0.1); color: var(--info); }
.badge.info::before { background: var(--info); }
.badge.neutral { background: var(--bg-gray); color: var(--text-tertiary); }
.badge.neutral::before { background: var(--text-tertiary); }

/* ---- 进度条 ---- */
.progress-bar {
  height: 6px;
  background: var(--bg-gray);
  border-radius: 3px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 3px;
  transition: width 0.3s ease;
}

/* ---- 进度环 ---- */
.progress-ring {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

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

.progress-ring-text {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
}

/* ---- 右侧栏 ---- */
.rightbar {
  width: var(--rightbar-width);
  min-width: var(--rightbar-width);
  background: var(--card-white);
  border-left: 1px solid var(--border-line);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  height: 100vh;
  position: sticky;
  top: 0;
}

.rightbar::-webkit-scrollbar { width: 4px; }
.rightbar::-webkit-scrollbar-track { background: transparent; }
.rightbar::-webkit-scrollbar-thumb { background: var(--border-line); border-radius: 2px; }

.rightbar-section {
  padding: 18px 20px;
  border-bottom: 1px solid var(--border-line);
}

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

.rightbar-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 14px;
  font-family: var(--font-mono);
}

.rightbar-title svg { width: 14px; height: 14px; color: var(--accent); }

/* 快捷操作列表 */
.quick-action {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s ease;
}

.quick-action:hover {
  background: var(--bg-gray);
  color: var(--text-primary);
}

.quick-action-icon {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: var(--accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}

.quick-action-icon svg { width: 14px; height: 14px; }

/* AI 建议卡片 */
.ai-suggestion {
  background: linear-gradient(135deg, var(--accent-light), rgba(255,255,255,0));
  border: 1px solid color-mix(in srgb, var(--accent) 20%, var(--border-line));
  border-radius: var(--radius-sm);
  padding: 14px;
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.ai-suggestion-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
  font-weight: 600;
  font-size: 12px;
  color: var(--accent);
}

/* 待办列表 */
.todo-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  font-size: 13px;
}

.todo-checkbox {
  width: 16px;
  height: 16px;
  border: 2px solid var(--border-line);
  border-radius: 4px;
  flex-shrink: 0;
  margin-top: 1px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.todo-checkbox.checked {
  background: var(--accent);
  border-color: var(--accent);
  position: relative;
}

.todo-checkbox.checked::after {
  content: '✓';
  position: absolute;
  top: -2px;
  left: 1px;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}

.todo-text {
  color: var(--text-secondary);
  line-height: 1.4;
}

.todo-text.done {
  text-decoration: line-through;
  color: var(--text-tertiary);
}

/* 右侧栏统计概览 */
.mini-stat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
}

.mini-stat-label {
  font-size: 12px;
  color: var(--text-tertiary);
}

.mini-stat-value {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

/* ---- 通用工具类 ---- */
.section-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}

.section-desc {
  font-size: 13px;
  color: var(--text-tertiary);
  margin-bottom: 20px;
}

.flex { display: flex; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.text-mono { font-family: var(--font-mono); }
.text-tertiary { color: var(--text-tertiary); }
.text-accent { color: var(--accent); }

/* 时间线 */
.timeline {
  position: relative;
  padding-left: 24px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 4px;
  bottom: 4px;
  width: 2px;
  background: var(--border-line);
}

.timeline-item {
  position: relative;
  padding-bottom: 20px;
}

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

.timeline-dot {
  position: absolute;
  left: -21px;
  top: 2px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--card-white);
  border: 2px solid var(--accent);
}

.timeline-item.completed .timeline-dot {
  background: var(--accent);
}

.timeline-item.pending .timeline-dot {
  border-color: var(--border-line);
}

.timeline-time {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-tertiary);
  margin-bottom: 2px;
}

.timeline-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.timeline-desc {
  font-size: 12px;
  color: var(--text-tertiary);
}

/* 标签 */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 500;
  background: var(--bg-gray);
  color: var(--text-secondary);
}

.tag.accent {
  background: var(--accent-light);
  color: var(--accent);
}

/* 开关 */
.toggle {
  position: relative;
  width: 38px;
  height: 22px;
  background: var(--border-line);
  border-radius: 11px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.toggle.on { background: var(--accent); }

.toggle::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.2s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.toggle.on::after { transform: translateX(16px); }

/* SVG 图表通用 */
.chart-line { fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* 响应式 */
@media (max-width: 1200px) {
  .rightbar { display: none; }
  .module-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .sidebar { display: none; }
  .module-grid { grid-template-columns: 1fr; }
  .card-grid.cols-2, .card-grid.cols-3, .card-grid.cols-4 { grid-template-columns: 1fr; }
  .hero-stats { flex-wrap: wrap; gap: 20px; }
}

/* 动画 */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.card, .module-card, .stat-card {
  animation: fadeInUp 0.3s ease backwards;
}

.module-card:nth-child(1) { animation-delay: 0.05s; }
.module-card:nth-child(2) { animation-delay: 0.1s; }
.module-card:nth-child(3) { animation-delay: 0.15s; }
.module-card:nth-child(4) { animation-delay: 0.2s; }
.module-card:nth-child(5) { animation-delay: 0.25s; }
.module-card:nth-child(6) { animation-delay: 0.3s; }
.module-card:nth-child(7) { animation-delay: 0.35s; }
.module-card:nth-child(8) { animation-delay: 0.4s; }
.module-card:nth-child(9) { animation-delay: 0.45s; }

/* 滚动条全局 */
.content-scroll::-webkit-scrollbar { width: 6px; }
.content-scroll::-webkit-scrollbar-track { background: transparent; }
.content-scroll::-webkit-scrollbar-thumb { background: var(--border-line); border-radius: 3px; }
.content-scroll::-webkit-scrollbar-thumb:hover { background: #C7C7CC; }
