/* ========================================
   AI PPT 生成系统 - 现代化UI样式
   设计理念：简洁、大气、现代
   ======================================== */

/* ===== CSS变量定义 ===== */
:root {
  /* 主色调 - 深蓝紫渐变 */
  --primary-color: #6366f1;
  --primary-dark: #4f46e5;
  --primary-light: #818cf8;
  --secondary-color: #8b5cf6;
  --accent-color: #06b6d4;
  
  /* 渐变色 */
  --gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #06b6d4 100%);
  --gradient-secondary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-warm: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --gradient-cool: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  
  /* 中性色 */
  --bg-primary: #fafafa;
  --bg-secondary: #f8fafc;
  --bg-card: #ffffff;
  --bg-hover: #f1f5f9;
  
  /* 文字色 */
  --text-primary: #1e293b;
  --text-secondary: #64748b;
  --text-muted: #94a3b8;
  --text-white: #ffffff;
  
  /* 边框和阴影 */
  --border-color: #e2e8f0;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-glow: 0 0 20px rgba(99, 102, 241, 0.3);
  
  /* 圆角 */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  
  /* 间距 */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  
  /* 过渡 */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 350ms ease;
}

/* ===== 全局样式重置 ===== */
* {
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ===== 导航栏现代化 ===== */
.modern-header {
  width: 100%;
  height: 70px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: all var(--transition-base);
}

.modern-header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-md);
}

.modern-header-left {
  display: flex;
  align-items: center;
  gap: 40px;
}

.modern-logo {
  height: 40px;
  cursor: pointer;
  transition: transform var(--transition-fast);
}

.modern-logo:hover {
  transform: scale(1.05);
}

.modern-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.modern-nav-item {
  padding: 10px 20px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
  position: relative;
}

.modern-nav-item:hover {
  color: var(--primary-color);
  background: rgba(99, 102, 241, 0.08);
}

.modern-nav-item.active {
  color: var(--primary-color);
  background: rgba(99, 102, 241, 0.12);
  font-weight: 600;
}

.modern-nav-item.active::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 3px;
  background: var(--gradient-primary);
  border-radius: 2px;
}

.modern-header-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* 用户信息显示 */
.modern-user-info {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 12px 6px 6px;
  background: var(--bg-secondary);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.modern-user-info:hover {
  background: var(--bg-hover);
}

.modern-user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--primary-light);
}

.modern-user-meta {
  display: flex;
  flex-direction: column;
}

.modern-user-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.modern-user-score {
  font-size: 12px;
  color: var(--text-muted);
}

/* VIP标签 */
.modern-vip-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  background: var(--gradient-warm);
  color: white;
  font-size: 12px;
  font-weight: 600;
  border-radius: var(--radius-full);
  box-shadow: 0 2px 8px rgba(245, 87, 108, 0.3);
}

/* 客服按钮 */
.modern-kefu-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--bg-secondary);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.modern-kefu-btn:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

/* 登录按钮 */
.modern-login-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  background: var(--gradient-primary);
  color: white;
  font-size: 14px;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.4);
}

.modern-login-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5);
}

.modern-login-btn:active {
  transform: translateY(0);
}

/* ===== Hero区域现代化 ===== */
.modern-hero {
  height: calc(100vh - 70px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  position: relative;
  overflow: hidden;
}

.modern-hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: 
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(99, 102, 241, 0.15), transparent),
    radial-gradient(ellipse 60% 40% at 80% 60%, rgba(139, 92, 246, 0.1), transparent),
    radial-gradient(ellipse 50% 30% at 20% 80%, rgba(6, 182, 212, 0.1), transparent);
}

.modern-hero-content {
  text-align: center;
  animation: fadeInUp 0.8s ease;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modern-hero-logo {
  width: 120px;
  height: 120px;
  filter: drop-shadow(0 10px 30px rgba(99, 102, 241, 0.3));
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.modern-hero-title {
  font-size: 56px;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px;
  letter-spacing: -1px;
}

.modern-hero-subtitle {
  font-size: 20px;
  color: var(--text-secondary);
  margin-bottom: 48px;
  line-height: 1.6;
}

/* ===== 输入框区域现代化 ===== */
.modern-input-section {
  width: 800px;
  margin: 0 auto;
}

.modern-input-wrapper {
  position: relative;
  background: white;
  border-radius: var(--radius-xl);
  padding: 6px;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border-color);
  transition: all var(--transition-base);
}

.modern-input-wrapper:focus-within {
  border-color: var(--primary-light);
  box-shadow: var(--shadow-glow), var(--shadow-xl);
}

.modern-input {
  width: 100%;
  height: 56px;
  padding: 0 140px 0 24px;
  font-size: 16px;
  border: none;
  background: transparent;
  outline: none;
  color: var(--text-primary);
}

.modern-input::placeholder {
  color: var(--text-muted);
}

.modern-input-actions {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
}

.modern-upload-btn {
  padding: 10px 16px;
  background: var(--bg-secondary);
  border: none;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: 13px;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 6px;
}

.modern-upload-btn:hover {
  background: var(--bg-hover);
  color: var(--primary-color);
}

.modern-generate-btn {
  padding: 12px 28px;
  background: var(--gradient-primary);
  color: white;
  font-size: 15px;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 8px;
}

.modern-generate-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.4);
}

.modern-generate-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

/* ===== 提示标签现代化 ===== */
.modern-tips-section {
  margin-top: 48px;
  text-align: center;
}

.modern-tips-title {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.modern-tips-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  max-width: 700px;
  margin: 0 auto;
}

.modern-tip-tag {
  padding: 8px 16px;
  background: white;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  font-size: 13px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.modern-tip-tag:hover {
  border-color: var(--primary-light);
  color: var(--primary-color);
  background: rgba(99, 102, 241, 0.04);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

/* ===== 消耗提示 ===== */
.modern-cost-hint {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 20px;
  padding: 10px 20px;
  background: rgba(99, 102, 241, 0.08);
  border-radius: var(--radius-full);
  font-size: 13px;
  color: var(--text-secondary);
}

.modern-cost-hint strong {
  color: var(--primary-color);
  font-weight: 600;
}

/* ===== 卡片样式 ===== */
.modern-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  transition: all var(--transition-base);
}

.modern-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.modern-card-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-md);
  display: flex;
  align-items: center;
  gap: 10px;
}

.modern-card-title-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-primary);
  color: white;
  border-radius: var(--radius-md);
  font-size: 16px;
}

/* ===== 模板选择区域 ===== */
.modern-template-section {
  padding: 60px 48px;
  background: var(--bg-secondary);
}

.modern-section-header {
  text-align: center;
  margin-bottom: 40px;
}

.modern-section-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.modern-section-subtitle {
  font-size: 16px;
  color: var(--text-secondary);
}

.modern-template-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  max-width: 1400px;
  margin: 0 auto;
}

.modern-template-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  transition: all var(--transition-base);
  border: 2px solid transparent;
}

.modern-template-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.modern-template-card.selected {
  border-color: var(--primary-color);
  box-shadow: var(--shadow-glow);
}

.modern-template-preview {
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  position: relative;
  overflow: hidden;
}

.modern-template-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modern-template-color {
  position: absolute;
  bottom: 12px;
  right: 12px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid white;
  box-shadow: var(--shadow-sm);
}

.modern-template-info {
  padding: 16px;
}

.modern-template-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.modern-template-meta {
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ===== 大纲编辑区域 ===== */
.modern-outline-section {
  padding: 80px 48px;
  min-height: 100vh;
}

.modern-outline-container {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 32px;
}

.modern-outline-main {
  background: white;
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-md);
}

.modern-outline-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
}

.modern-outline-title {
  font-size: 20px;
  font-weight: 600;
}

.modern-outline-actions {
  display: flex;
  gap: 12px;
}

.modern-outline-tree {
  max-height: calc(100vh - 280px);
  overflow-y: auto;
}

/* 树形结构样式覆盖 */
.modern-outline-tree .el-tree-node__content {
  height: auto;
  padding: 8px 0;
  border-radius: var(--radius-sm);
  transition: background var(--transition-fast);
}

.modern-outline-tree .el-tree-node__content:hover {
  background: var(--bg-hover);
}

.modern-outline-tree .custom-tree-node {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-right: 8px;
}

.modern-outline-tree .node-content {
  font-size: 14px;
  color: var(--text-primary);
}

.modern-outline-tree .node-actions {
  display: flex;
  gap: 4px;
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.modern-outline-tree .el-tree-node__content:hover .node-actions {
  opacity: 1;
}

.modern-outline-tree .node-action-btn {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.modern-outline-tree .node-action-btn:hover {
  background: var(--primary-color);
  color: white;
}

/* ===== 侧边栏 ===== */
.modern-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.modern-sidebar-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-md);
}

/* ===== 按钮样式 ===== */
.modern-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.modern-btn-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.modern-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(99, 102, 241, 0.4);
}

.modern-btn-secondary {
  background: var(--bg-secondary);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
}

.modern-btn-secondary:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.modern-btn-ghost {
  background: transparent;
  color: var(--primary-color);
}

.modern-btn-ghost:hover {
  background: rgba(99, 102, 241, 0.08);
}

.modern-btn-sm {
  padding: 6px 14px;
  font-size: 13px;
}

.modern-btn-lg {
  padding: 14px 32px;
  font-size: 16px;
}

/* ===== 加载动画 ===== */
.modern-loader {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 24px;
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.modern-loader-spinner {
  width: 24px;
  height: 24px;
  border: 3px solid var(--border-color);
  border-top-color: var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.modern-loader-text {
  font-size: 14px;
  color: var(--text-secondary);
}

/* ===== 进度条 ===== */
.modern-progress {
  width: 100%;
  height: 6px;
  background: var(--bg-hover);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.modern-progress-bar {
  height: 100%;
  background: var(--gradient-primary);
  border-radius: var(--radius-full);
  transition: width 0.3s ease;
}

/* ===== 标签页 ===== */
.modern-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 4px;
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  margin-bottom: 24px;
}

.modern-tab {
  flex: 0 0 calc(33.333% - 6px);
  padding: 10px 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
  box-sizing: border-box;
}

.modern-tab:hover {
  color: var(--text-primary);
}

.modern-tab.active {
  background: white;
  color: var(--primary-color);
  box-shadow: var(--shadow-sm);
}

/* ===== 个人中心样式 ===== */
.modern-profile-section {
  padding: 100px 48px 60px;
  min-height: 100vh;
}

.modern-profile-container {
  max-width: 1200px;
  margin: 0 auto;
}

.modern-profile-header {
  background: white;
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-md);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.modern-profile-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 4px solid white;
  box-shadow: var(--shadow-lg);
}

.modern-profile-info {
  flex: 1;
}

.modern-profile-name {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.modern-profile-meta {
  display: flex;
  gap: 16px;
  color: var(--text-secondary);
  font-size: 14px;
}

.modern-profile-stats {
  display: flex;
  gap: 32px;
}

.modern-stat-item {
  text-align: center;
}

.modern-stat-value {
  font-size: 28px;
  font-weight: 700;
  color: var(--primary-color);
}

.modern-stat-label {
  font-size: 13px;
  color: var(--text-muted);
}

.modern-profile-content {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 24px;
}

.modern-profile-sidebar {
  background: white;
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow-md);
  height: fit-content;
}

.modern-profile-menu {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.modern-profile-menu-item {
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 14px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 12px;
}

.modern-profile-menu-item:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.modern-profile-menu-item.active {
  background: rgba(99, 102, 241, 0.1);
  color: var(--primary-color);
  font-weight: 500;
}

.modern-profile-main {
  background: white;
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-md);
  min-height: 600px;
}

/* ===== 项目卡片 ===== */
.modern-project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

.modern-project-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  transition: all var(--transition-base);
  cursor: pointer;
}

.modern-project-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.modern-project-cover {
  aspect-ratio: 16/10;
  background: var(--gradient-primary);
  position: relative;
}

.modern-project-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modern-project-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.modern-project-card:hover .modern-project-overlay {
  opacity: 1;
}

.modern-project-action {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  border-radius: 50%;
  color: var(--text-primary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.modern-project-action:hover {
  background: var(--primary-color);
  color: white;
  transform: scale(1.1);
}

.modern-project-info {
  padding: 16px;
}

.modern-project-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.modern-project-date {
  font-size: 12px;
  color: var(--text-muted);
}

/* ===== VIP卡片 ===== */
.modern-vip-card {
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #4338ca 100%);
  border-radius: var(--radius-lg);
  padding: 32px;
  color: white;
  position: relative;
  overflow: hidden;
}

.modern-vip-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
}

.modern-vip-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.modern-vip-icon {
  width: 56px;
  height: 56px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}

.modern-vip-title {
  font-size: 20px;
  font-weight: 700;
}

.modern-vip-subtitle {
  font-size: 14px;
  opacity: 0.8;
}

.modern-vip-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.modern-vip-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}

.modern-vip-feature i {
  color: #34d399;
}

/* ===== 空状态 ===== */
.modern-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 24px;
  text-align: center;
}

.modern-empty-icon {
  width: 120px;
  height: 120px;
  background: var(--bg-secondary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.modern-empty-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.modern-empty-desc {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

/* ===== 响应式设计 ===== */
@media (max-width: 1200px) {
  .modern-outline-container {
    grid-template-columns: 1fr;
  }
  
  .modern-sidebar {
    order: -1;
  }
  
  .modern-profile-content {
    grid-template-columns: 1fr;
  }
  
  .modern-profile-sidebar {
    display: flex;
    overflow-x: auto;
    padding: 12px;
  }
  
  .modern-profile-menu {
    flex-direction: row;
    white-space: nowrap;
  }
}

@media (max-width: 768px) {
  .modern-header {
    padding: 0 16px;
  }
  
  .modern-nav {
    display: none;
  }
  
  .modern-hero {
    padding: 100px 16px 40px;
  }
  
  .modern-hero-title {
    font-size: 36px;
  }
  
  .modern-input-wrapper {
    flex-direction: column;
    padding: 16px;
  }
  
  .modern-input {
    padding: 0;
    margin-bottom: 12px;
  }
  
  .modern-input-actions {
    position: static;
    transform: none;
    width: 100%;
    justify-content: stretch;
  }
  
  .modern-generate-btn {
    flex: 1;
    justify-content: center;
  }
  
  .modern-template-section,
  .modern-outline-section,
  .modern-profile-section {
    padding: 40px 16px;
  }
}

/* ===== 动画 ===== */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.animate-pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* ===== 滚动条美化 ===== */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* ===== 自定义弹窗样式 ===== */
.custom-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.3s ease;
}

.custom-modal-content {
  background: white;
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 480px;
  padding: 40px 32px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.1) inset;
  text-align: center;
  animation: slideUp 0.3s ease;
}

.custom-modal-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.3);
}

.custom-modal-icon i {
  font-size: 36px;
  color: white;
}

.custom-modal-title {
  margin: 0 0 16px;
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
}

.custom-modal-desc {
  margin: 0 0 24px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.8;
  text-align: left;
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  padding: 16px;
}

.custom-modal-desc-title {
  margin: 0 0 12px;
  color: var(--text-secondary);
}

.custom-modal-desc-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.custom-modal-desc-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.custom-modal-icon-refresh {
  color: var(--primary-color);
  margin-top: 3px;
  font-size: 14px;
}

.custom-modal-icon-check {
  color: var(--success-color);
  margin-top: 3px;
  font-size: 14px;
}

.custom-modal-desc-text {
  flex: 1;
}

.custom-modal-desc-label {
  color: var(--text-primary);
  font-weight: 600;
}

.custom-modal-desc-hint {
  color: var(--text-muted);
}

.custom-modal-btn {
  padding: 12px 48px;
  font-size: 15px;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
