/* ============================================================
   SlideForge - AI PPT 在线生成工具
   设计系统 + 6套主题 + 12种布局 + UI组件
   ============================================================ */

/* ========== 1. CSS Reset & 变量 ========== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --color-primary: #0D9488;
  --color-primary-light: #14B8A6;
  --color-primary-dark: #0F766E;
  --color-primary-bg: #F0FDFA;
  --color-cta: #F97316;
  --color-cta-hover: #EA580C;
  --color-bg: #F8FAFC;
  --color-card: #FFFFFF;
  --color-text: #0F172A;
  --color-text-secondary: #64748B;
  --color-text-muted: #94A3B8;
  --color-border: #E2E8F0;
  --color-border-light: #F1F5F9;
  --color-error: #EF4444;
  --color-success: #10B981;
  --color-warning: #F59E0B;
  --font-sans: 'Jost', 'Microsoft YaHei', system-ui, sans-serif;
  --font-display: 'Bodoni Moda', 'Noto Serif SC', Georgia, serif;
  --font-mono: 'JetBrains Mono', 'Consolas', monospace;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
  --shadow-xl: 0 20px 60px rgba(0,0,0,0.15);
  --transition-fast: 0.15s ease;
  --transition-normal: 0.3s ease;
  --space-xs: 4px; --space-sm: 8px; --space-md: 16px;
  --space-lg: 24px; --space-xl: 32px; --space-2xl: 48px;
}

body { font-family: var(--font-sans); background: var(--color-bg); color: var(--color-text); line-height: 1.6; -webkit-font-smoothing: antialiased; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: inherit; }
a { color: inherit; text-decoration: none; }

/* ========== 2. 顶部导航 ========== */
.topnav { height: 56px; background: var(--color-card); border-bottom: 1px solid var(--color-border); display: flex; align-items: center; justify-content: space-between; padding: 0 24px; position: fixed; top: 0; left: 0; right: 0; z-index: 100; }
.topnav-logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 22px; font-weight: 700; color: var(--color-primary); }
.topnav-logo svg { width: 28px; height: 28px; }
.topnav-actions { display: flex; gap: 8px; }
.nav-btn { display: flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: var(--radius-md); font-size: 13px; font-weight: 500; color: var(--color-text-secondary); transition: all var(--transition-fast); }
.nav-btn:hover { background: var(--color-border-light); color: var(--color-text); }
.nav-btn svg { width: 16px; height: 16px; }

/* ========== 3. 主内容区 & 步骤通用 ========== */
.main { padding-top: 56px; min-height: 100vh; }
.step { display: none; min-height: calc(100vh - 56px); }
.step.active { display: flex; animation: fadeInUp 0.3s ease; }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.step-container { max-width: 760px; margin: 0 auto; padding: var(--space-2xl) var(--space-lg); width: 100%; }
.step-header { text-align: center; margin-bottom: var(--space-xl); }
.step-title { font-family: var(--font-display); font-size: 32px; font-weight: 700; color: var(--color-text); margin-bottom: var(--space-sm); }
.step-subtitle { color: var(--color-text-secondary); font-size: 16px; }

/* ========== 4. Step 1: 输入页 ========== */
.input-card { background: var(--color-card); border: 2px solid var(--color-border); border-radius: var(--radius-xl); padding: var(--space-lg); margin-bottom: var(--space-lg); transition: all var(--transition-fast); }
.input-card:focus-within { border-color: var(--color-primary); box-shadow: 0 0 0 4px rgba(13,148,136,0.1); }
.input-textarea { width: 100%; border: none; outline: none; resize: vertical; font-size: 17px; line-height: 1.7; color: var(--color-text); background: transparent; min-height: 140px; font-family: var(--font-sans); }
.input-textarea::placeholder { color: var(--color-text-muted); }
.input-footer { display: flex; justify-content: space-between; align-items: center; margin-top: var(--space-sm); padding-top: var(--space-sm); border-top: 1px solid var(--color-border-light); }
.char-count { font-size: 12px; color: var(--color-text-muted); }
.example-tags { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-sm); margin-bottom: var(--space-xl); }
.example-label { font-size: 13px; color: var(--color-text-muted); }
.tag { padding: 6px 14px; border-radius: var(--radius-full); font-size: 13px; background: var(--color-card); border: 1px solid var(--color-border); color: var(--color-text-secondary); transition: all var(--transition-fast); }
.tag:hover { border-color: var(--color-primary); color: var(--color-primary); background: var(--color-primary-bg); }
.step-actions { display: flex; justify-content: center; gap: 12px; margin-bottom: var(--space-lg); }
.privacy-note { text-align: center; font-size: 12px; color: var(--color-text-muted); }

/* ========== 5. 按钮 ========== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 28px; border-radius: var(--radius-md); font-size: 15px; font-weight: 600; transition: all var(--transition-fast); white-space: nowrap; }
.btn-primary { background: var(--color-primary); color: #fff; }
.btn-primary:hover { background: var(--color-primary-dark); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-primary:disabled { background: var(--color-border); color: var(--color-text-muted); cursor: not-allowed; transform: none; box-shadow: none; }
.btn-ghost { background: transparent; color: var(--color-text-secondary); border: 1px solid var(--color-border); }
.btn-ghost:hover { background: var(--color-border-light); color: var(--color-text); }
.btn-cta { background: var(--color-cta); color: #fff; }
.btn-cta:hover { background: var(--color-cta-hover); }
.btn-lg { padding: 14px 36px; font-size: 16px; }
.btn-sm { padding: 8px 16px; font-size: 13px; }

/* ========== 6. Step 2: 配置页 ========== */
.step-2-container { max-width: 860px; }
.step-progress { display: flex; align-items: center; gap: var(--space-md); margin-bottom: var(--space-xl); }
.progress-bar { flex: 1; height: 4px; background: var(--color-border); border-radius: var(--radius-full); overflow: hidden; }
.progress-fill { height: 100%; background: var(--color-primary); border-radius: var(--radius-full); transition: width 0.5s ease; }
.progress-text { font-size: 13px; color: var(--color-text-secondary); font-weight: 500; white-space: nowrap; }
.config-section { margin-bottom: var(--space-xl); }
.config-label { font-size: 14px; font-weight: 600; color: var(--color-text); margin-bottom: var(--space-md); display: flex; align-items: center; gap: 8px; }
.config-label .q-num { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; background: var(--color-primary); color: #fff; border-radius: 50%; font-size: 12px; font-weight: 700; }
.option-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.option-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.option-grid-4 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.option-card { padding: 20px; border: 2px solid var(--color-border); border-radius: var(--radius-md); cursor: pointer; transition: all var(--transition-fast); text-align: center; background: var(--color-card); position: relative; }
.option-card:hover { border-color: var(--color-primary-light); background: var(--color-primary-bg); }
.option-card.selected { border-color: var(--color-primary); background: var(--color-primary-bg); box-shadow: 0 0 0 3px rgba(13,148,136,0.1); }
.option-card .option-icon { font-size: 28px; margin-bottom: 8px; }
.option-card .option-title { font-size: 15px; font-weight: 600; color: var(--color-text); margin-bottom: 4px; }
.option-card .option-desc { font-size: 12px; color: var(--color-text-secondary); }
.option-card .recommend-badge { position: absolute; top: -8px; right: 12px; background: var(--color-cta); color: #fff; font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: var(--radius-full); }
.theme-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.theme-card { padding: 16px; border: 2px solid var(--color-border); border-radius: var(--radius-md); cursor: pointer; transition: all var(--transition-fast); background: var(--color-card); }
.theme-card:hover { border-color: var(--color-primary-light); transform: translateY(-2px); }
.theme-card.selected { border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(13,148,136,0.1); }
.theme-preview { height: 72px; border-radius: var(--radius-sm); margin-bottom: 10px; position: relative; overflow: hidden; padding: 10px 12px; box-sizing: border-box; }
.theme-name { font-size: 13px; font-weight: 600; color: var(--color-text); }
.theme-desc { font-size: 11px; color: var(--color-text-secondary); margin-top: 2px; }

/* 主题预览：极简白 */
.theme-preview-minimal { background: #FFFFFF; }
.theme-preview-minimal .tp-bar { position: absolute; top: 0; right: 0; width: 24px; height: 24px; border-top: 3px solid #DC2626; border-right: 3px solid #DC2626; }
.theme-preview-minimal .tp-title { height: 10px; width: 70%; background: #0F172A; border-radius: 2px; margin-top: 8px; margin-bottom: 6px; }
.theme-preview-minimal .tp-line { height: 4px; width: 55%; background: #CBD5E1; border-radius: 2px; margin-bottom: 4px; }
.theme-preview-minimal .tp-line.short { width: 35%; }

/* 主题预览：杂志墨水 */
.theme-preview-magazine { background: #FAF7F2; }
.theme-preview-magazine .tp-big { height: 16px; width: 65%; background: #1C1917; border-radius: 2px; margin-top: 4px; margin-bottom: 4px; font-family: Georgia, serif; }
.theme-preview-magazine .tp-sub { height: 5px; width: 45%; background: #78716C; border-radius: 2px; margin-bottom: 6px; }
.theme-preview-magazine .tp-rule { height: 2px; width: 40%; background: linear-gradient(90deg, #B45309, transparent); }

/* 主题预览：商务深蓝 */
.theme-preview-navy { background: #FFFFFF; }
.theme-preview-navy .tp-navy-bar { position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, #2563EB, #3B82F6); }
.theme-preview-navy .tp-navy-card { height: 22px; width: 42%; background: #EFF6FF; border: 1px solid #BFDBFE; border-radius: 4px; margin-top: 12px; margin-right: 6%; display: inline-block; vertical-align: top; }

/* 主题预览：科技靛蓝 */
.theme-preview-tech { background: #0F172A; }
.theme-preview-tech .tp-dots { position: absolute; inset: 0; background-image: linear-gradient(rgba(0,255,204,0.08) 1px, transparent 1px), linear-gradient(90deg, rgba(0,255,204,0.08) 1px, transparent 1px); background-size: 10px 10px; }
.theme-preview-tech .tp-tech-title { position: relative; height: 10px; width: 60%; background: #FFFFFF; border-radius: 2px; margin-top: 14px; margin-bottom: 6px; }
.theme-preview-tech .tp-tech-line { position: relative; height: 4px; width: 45%; background: #00FFCC; border-radius: 2px; box-shadow: 0 0 6px rgba(0,255,204,0.5); }

/* 主题预览：学术纸感 */
.theme-preview-academic { background: #FFFEF7; background-image: repeating-linear-gradient(0deg, transparent, transparent 7px, rgba(180,83,9,0.1) 7px, rgba(180,83,9,0.1) 8px); }
.theme-preview-academic .tp-academic-title { height: 10px; width: 55%; background: #1C1917; border-radius: 2px; margin-top: 10px; margin-bottom: 6px; }
.theme-preview-academic .tp-quote-bar { height: 14px; width: 3px; background: #7C3AED; display: inline-block; vertical-align: middle; margin-right: 6px; }
.theme-preview-academic .tp-academic-line { display: inline-block; vertical-align: middle; height: 5px; width: 50%; background: #A8A29E; border-radius: 2px; margin-bottom: 3px; }

/* 主题预览：高级黑金 */
.theme-preview-gold { background: #0A0A0A; }
.theme-preview-gold .tp-gold-line { position: absolute; top: 12px; left: 12px; width: 30px; height: 1px; background: linear-gradient(90deg, #D4AF37, transparent); }
.theme-preview-gold .tp-gold-title { height: 12px; width: 55%; background: linear-gradient(135deg, #D4AF37, #F5E6A3, #D4AF37); -webkit-background-clip: text; background-clip: text; margin-top: 20px; margin-bottom: 6px; position: relative; }
.theme-preview-gold .tp-gold-title::after { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, #D4AF37, #F5E6A3, #D4AF37); border-radius: 2px; }
.theme-preview-gold .tp-gold-sub { height: 5px; width: 40%; background: rgba(212,175,55,0.5); border-radius: 2px; }

/* 扩展设置 */
.advanced-toggle { display: flex; align-items: center; gap: 8px; padding: 12px 16px; background: var(--color-border-light); border-radius: var(--radius-md); cursor: pointer; font-size: 14px; font-weight: 500; color: var(--color-text-secondary); margin-bottom: var(--space-md); transition: all var(--transition-fast); }
.advanced-toggle:hover { background: var(--color-border); }
.advanced-toggle .arrow { transition: transform var(--transition-fast); }
.advanced-toggle.open .arrow { transform: rotate(180deg); }
.advanced-content { display: none; margin-bottom: var(--space-xl); }
.advanced-content.open { display: block; }
.adv-group { margin-bottom: var(--space-md); }
.adv-label { font-size: 12px; font-weight: 600; color: var(--color-text-secondary); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 8px; }
.adv-options { display: flex; gap: 8px; flex-wrap: wrap; }
.adv-option { padding: 6px 14px; border: 1px solid var(--color-border); border-radius: var(--radius-full); font-size: 12px; cursor: pointer; transition: all var(--transition-fast); background: var(--color-card); color: var(--color-text-secondary); }
.adv-option:hover { border-color: var(--color-primary-light); }
.adv-option.selected { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }

.config-summary-bar { position: sticky; bottom: 0; background: var(--color-card); border-top: 1px solid var(--color-border); padding: 16px 24px; display: flex; align-items: center; justify-content: space-between; margin: 0 -24px -24px; border-radius: 0 0 var(--radius-xl) var(--radius-xl); }
.config-summary { font-size: 14px; color: var(--color-text-secondary); }
.config-summary strong { color: var(--color-primary); }
.step-2-actions { display: flex; gap: 12px; }

/* ========== 7. Step 3: 生成中 ========== */
.gen-container { max-width: 600px; text-align: center; }
.gen-spinner { width: 56px; height: 56px; border: 4px solid var(--color-border); border-top-color: var(--color-primary); border-radius: 50%; animation: spin 0.8s linear infinite; margin: 0 auto var(--space-xl); }
@keyframes spin { to { transform: rotate(360deg); } }
.gen-status { font-size: 18px; font-weight: 600; color: var(--color-text); margin-bottom: var(--space-sm); }
.gen-progress-wrap { width: 100%; height: 6px; background: var(--color-border); border-radius: var(--radius-full); margin: var(--space-lg) 0; overflow: hidden; }
.gen-progress-fill { height: 100%; background: linear-gradient(90deg, var(--color-primary), var(--color-primary-light)); border-radius: var(--radius-full); transition: width 0.3s ease; width: 0%; }
.gen-progress-text { font-size: 13px; color: var(--color-text-muted); }
.gen-outline { margin-top: var(--space-xl); text-align: left; max-height: 300px; overflow-y: auto; }
.gen-outline-title { font-size: 13px; font-weight: 600; color: var(--color-text-secondary); margin-bottom: 12px; text-transform: uppercase; letter-spacing: 0.5px; }
.outline-item { display: flex; align-items: center; gap: 12px; padding: 10px 14px; background: var(--color-card); border-radius: var(--radius-sm); margin-bottom: 6px; animation: slideIn 0.3s ease; }
@keyframes slideIn { from { opacity: 0; transform: translateX(-10px); } to { opacity: 1; transform: translateX(0); } }
.outline-num { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; background: var(--color-primary-bg); color: var(--color-primary); border-radius: 50%; font-size: 11px; font-weight: 700; flex-shrink: 0; }
.outline-text { font-size: 14px; color: var(--color-text); }
.gen-cancel { margin-top: var(--space-xl); }

/* ========== 8. Step 4: 预览编辑面板 ========== */
.editor-layout { display: flex; flex-direction: row; height: calc(100vh - 56px); overflow: hidden; }
/* 左栏缩略图 */
.editor-sidebar { width: 200px; background: var(--color-card); border-right: 1px solid var(--color-border); display: flex; flex-direction: column; flex-shrink: 0; }
.sidebar-header { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--color-border); font-size: 13px; font-weight: 600; }
.sidebar-add { width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; border-radius: var(--radius-sm); color: var(--color-text-secondary); transition: all var(--transition-fast); }
.sidebar-add:hover { background: var(--color-border-light); color: var(--color-primary); }
.thumbnail-list { flex: 1; overflow-y: auto; padding: 12px; }
.thumb-item { position: relative; width: 100%; aspect-ratio: 16/9; border: 2px solid var(--color-border); border-radius: var(--radius-sm); margin-bottom: 10px; cursor: pointer; overflow: hidden; background: #fff; transition: all var(--transition-fast); }
.thumb-item:hover { border-color: var(--color-primary-light); }
.thumb-item.active { border-color: var(--color-primary); box-shadow: 0 0 0 2px rgba(13,148,136,0.2); }
.thumb-item .thumb-num { position: absolute; top: 4px; left: 4px; background: rgba(0,0,0,0.6); color: #fff; font-size: 10px; padding: 1px 5px; border-radius: 3px; z-index: 2; }
.thumb-item .thumb-content { width: 100%; height: 100%; transform-origin: top left; pointer-events: none; position: relative; overflow: hidden; }
.thumb-item .thumb-delete { position: absolute; top: 4px; right: 4px; width: 20px; height: 20px; background: rgba(239,68,68,0.9); color: #fff; border-radius: 50%; display: none; align-items: center; justify-content: center; font-size: 12px; z-index: 3; }
.thumb-item:hover .thumb-delete { display: flex; }
/* 中栏主预览 */
.editor-main { flex: 1; display: flex; flex-direction: column; min-width: 0; min-height: 0; overflow: hidden; }
.editor-toolbar { height: 52px; background: var(--color-card); border-bottom: 1px solid var(--color-border); display: flex; align-items: center; padding: 0 16px; gap: 12px; flex-shrink: 0; }
.toolbar-title { flex: 1; font-size: 14px; font-weight: 500; color: var(--color-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.toolbar-actions { display: flex; gap: 6px; align-items: center; }
.toolbar-btn { display: flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: var(--radius-sm); font-size: 13px; color: var(--color-text-secondary); transition: all var(--transition-fast); }
.toolbar-btn:hover { background: var(--color-border-light); color: var(--color-text); }
.toolbar-btn svg { width: 15px; height: 15px; }
.toolbar-btn.primary { background: var(--color-primary); color: #fff; }
.toolbar-btn.primary:hover { background: var(--color-primary-dark); }
.export-dropdown { position: relative; }
.export-menu { display: none; position: absolute; top: 100%; right: 0; margin-top: 4px; background: var(--color-card); border: 1px solid var(--color-border); border-radius: var(--radius-md); box-shadow: var(--shadow-lg); min-width: 200px; z-index: 50; padding: 4px; }
.export-menu.open { display: block; }
.export-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border-radius: var(--radius-sm); font-size: 14px; color: var(--color-text); text-align: left; }
.export-item:hover { background: var(--color-border-light); }
.preview-area { flex: 1; background: #1E293B; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 16px; overflow: hidden; position: relative; min-height: 0; }
.slide-stage-wrapper { flex: 1; display: flex; align-items: center; justify-content: center; width: 100%; min-height: 0; overflow: hidden; }
.slide-stage { position: relative; width: 1920px; height: 1080px; transform-origin: center center; background: #fff; box-shadow: 0 8px 40px rgba(0,0,0,0.4); overflow: hidden; flex-shrink: 0; }
.preview-nav { display: flex; align-items: center; gap: 16px; margin-top: 10px; }
.nav-circle { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,0.15); color: #fff; display: flex; align-items: center; justify-content: center; transition: all var(--transition-fast); }
.nav-circle:hover { background: rgba(255,255,255,0.3); }
.nav-circle svg { width: 18px; height: 18px; }
.slide-counter { color: rgba(255,255,255,0.85); font-size: 14px; font-weight: 500; min-width: 60px; text-align: center; font-family: var(--font-mono); }
/* 右栏属性面板 */
.editor-properties { width: 300px; background: var(--color-card); border-left: 1px solid var(--color-border); display: flex; flex-direction: column; flex-shrink: 0; }
.props-tabs { display: flex; border-bottom: 1px solid var(--color-border); }
.props-tab { flex: 1; padding: 12px 0; font-size: 13px; font-weight: 500; color: var(--color-text-secondary); background: none; border-bottom: 2px solid transparent; transition: all var(--transition-fast); }
.props-tab:hover { color: var(--color-text); }
.props-tab.active { color: var(--color-primary); border-bottom-color: var(--color-primary); }
.props-content { flex: 1; overflow-y: auto; padding: 16px; }
.props-group { margin-bottom: 20px; }
.props-label { display: block; font-size: 11px; font-weight: 600; color: var(--color-text-secondary); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 6px; }
.props-input { width: 100%; padding: 9px 12px; border: 1px solid var(--color-border); border-radius: var(--radius-sm); font-size: 13px; outline: none; transition: border-color var(--transition-fast); }
.props-input:focus { border-color: var(--color-primary); }
.props-textarea { width: 100%; padding: 9px 12px; border: 1px solid var(--color-border); border-radius: var(--radius-sm); font-size: 13px; outline: none; resize: vertical; min-height: 60px; font-family: inherit; }
.props-textarea:focus { border-color: var(--color-primary); }
.props-list-item { display: flex; gap: 6px; margin-bottom: 6px; align-items: flex-start; }
.props-list-item .props-input { flex: 1; }
.props-list-del { min-width: 30px; min-height: 36px; padding: 4px 10px; border: none; background: none; border-radius: var(--radius-sm); color: var(--color-error); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 12px; font-weight: 500; cursor: pointer; transition: background var(--transition-fast); }
.props-list-del:hover { background: #FEF2F2; }
.props-add-btn { width: 100%; padding: 8px; border: 1px dashed var(--color-border); border-radius: var(--radius-sm); color: var(--color-text-secondary); font-size: 12px; background: none; transition: all var(--transition-fast); }
.props-add-btn:hover { border-color: var(--color-primary); color: var(--color-primary); }
.layout-picker-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.layout-picker-item { aspect-ratio: 16/9; border: 2px solid var(--color-border); border-radius: var(--radius-sm); cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 9px; color: var(--color-text-muted); background: var(--color-border-light); transition: all var(--transition-fast); flex-direction: column; gap: 2px; padding: 4px; text-align: center; line-height: 1.2; }
.layout-picker-item:hover { border-color: var(--color-primary-light); }
.layout-picker-item.active { border-color: var(--color-primary); background: var(--color-primary-bg); color: var(--color-primary); }
.layout-picker-item .lp-icon { font-size: 14px; }
.theme-picker-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.theme-picker-item { border: 2px solid var(--color-border); border-radius: var(--radius-sm); overflow: hidden; cursor: pointer; transition: all var(--transition-fast); }
.theme-picker-item:hover { border-color: var(--color-primary-light); }
.theme-picker-item.active { border-color: var(--color-primary); }
.theme-picker-preview { height: 40px; }
.theme-picker-name { padding: 6px 8px; font-size: 11px; font-weight: 500; text-align: center; }

/* ========== 9. 弹窗通用 ========== */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.5); display: none; align-items: center; justify-content: center; z-index: 1000; padding: 20px; }
.modal-overlay.open { display: flex; animation: fadeIn 0.2s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal { background: var(--color-card); border-radius: var(--radius-lg); width: 100%; max-width: 520px; max-height: 90vh; overflow-y: auto; animation: modalIn 0.25s ease; box-shadow: var(--shadow-xl); }
@keyframes modalIn { from { opacity: 0; transform: translateY(20px) scale(0.96); } to { opacity: 1; transform: translateY(0) scale(1); } }
.modal-header { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; border-bottom: 1px solid var(--color-border); }
.modal-header h3 { font-size: 18px; font-weight: 700; }
.modal-close { width: 32px; height: 32px; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; color: var(--color-text-secondary); transition: all var(--transition-fast); }
.modal-close:hover { background: var(--color-border-light); }
.modal-body { padding: 24px; }
.modal-footer { padding: 16px 24px; border-top: 1px solid var(--color-border); display: flex; justify-content: flex-end; gap: 10px; }

/* API配置弹窗 */
.api-security-note { display: flex; align-items: flex-start; gap: 10px; padding: 12px 16px; background: var(--color-primary-bg); border-radius: var(--radius-md); margin-bottom: 20px; font-size: 13px; color: var(--color-primary-dark); line-height: 1.5; }
.api-security-note svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 1px; }
.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: 13px; font-weight: 600; color: var(--color-text); margin-bottom: 8px; }
.form-input { width: 100%; padding: 10px 14px; border: 1px solid var(--color-border); border-radius: var(--radius-sm); font-size: 14px; outline: none; transition: border-color var(--transition-fast); background: var(--color-card); color: var(--color-text); box-sizing: border-box; }
.form-input:focus { border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(13,148,136,0.1); }
.form-input:read-only { background: var(--color-border-light); color: var(--color-text-secondary); cursor: not-allowed; }
select.form-input { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px; }
.input-with-tag { position: relative; }
.input-with-tag .form-input { padding-right: 80px; }
.input-with-tag .input-tag { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); font-size: 11px; color: var(--color-primary); font-weight: 600; background: var(--color-primary-bg); padding: 3px 10px; border-radius: var(--radius-full); }
.input-with-btn { position: relative; }
.input-with-btn .form-input { padding-right: 48px; }
.input-with-btn .input-icon-btn { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); background: none; border: none; color: var(--color-text-muted); cursor: pointer; padding: 6px; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; }
.input-with-btn .input-icon-btn:hover { color: var(--color-text); background: var(--color-border-light); }
.provider-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 16px; }
.provider-card { padding: 14px 10px; border: 2px solid var(--color-border); border-radius: var(--radius-md); cursor: pointer; transition: all var(--transition-fast); text-align: center; background: var(--color-card); }
.provider-card:hover { border-color: var(--color-primary-light); }
.provider-card.selected { border-color: var(--color-primary); background: var(--color-primary-bg); }
.provider-name { font-size: 14px; font-weight: 600; color: var(--color-text); margin-bottom: 2px; }
.provider-desc { font-size: 11px; color: var(--color-text-secondary); }
.input-wrap { position: relative; }
.input-wrap input { width: 100%; padding: 10px 40px 10px 14px; border: 1px solid var(--color-border); border-radius: var(--radius-sm); font-size: 14px; outline: none; transition: border-color var(--transition-fast); font-family: var(--font-mono); }
.input-wrap input:focus { border-color: var(--color-primary); }
.input-wrap input:read-only { background: var(--color-border-light); color: var(--color-text-secondary); }
.input-tag { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); font-size: 11px; color: var(--color-primary); font-weight: 600; background: var(--color-primary-bg); padding: 2px 8px; border-radius: var(--radius-full); }
.toggle-visibility { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); color: var(--color-text-muted); cursor: pointer; padding: 4px; }
.toggle-visibility:hover { color: var(--color-text); }
.api-test-result { margin-top: 10px; padding: 10px 14px; border-radius: var(--radius-sm); font-size: 13px; display: none; }
.api-test-result.show { display: block; }
.api-test-result.success { background: #ECFDF5; color: #065F46; }
.api-test-result.error { background: #FEF2F2; color: #991B1B; }
.api-actions { display: flex; gap: 10px; margin-top: 20px; }
.api-guide-link { font-size: 12px; color: var(--color-primary); cursor: pointer; margin-top: 12px; display: inline-block; }
.api-clear-btn { font-size: 12px; color: var(--color-error); cursor: pointer; margin-top: 8px; display: inline-block; }

/* 确认弹窗 */
.confirm-body { padding: 24px; text-align: center; }
.confirm-text { font-size: 15px; color: var(--color-text); margin-bottom: 20px; line-height: 1.6; }
.confirm-actions { display: flex; gap: 10px; justify-content: center; }

/* 导出进度弹窗 */
.modal-export {
  width: 360px;
  padding: 32px 24px;
  text-align: center;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}
.export-progress-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0D9488, #14B8A6);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  animation: pulse 1.5s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.05); opacity: 0.85; }
}
.modal-export h3 {
  font-size: 18px;
  font-weight: 700;
  color: #0F172A;
  margin-bottom: 20px;
}
.export-progress-text {
  font-size: 14px;
  color: #64748B;
  margin-top: 12px;
  margin-bottom: 0;
}
.export-progress-bar {
  width: 100%;
  height: 8px;
  background: #E2E8F0;
  border-radius: 999px;
  overflow: hidden;
}
.export-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #0D9488, #14B8A6);
  border-radius: 999px;
  transition: width 0.3s ease;
  width: 0%;
}

/* ========== 10. 抽屉（历史记录） ========== */
.drawer-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.4); display: none; z-index: 999; }
.drawer-overlay.open { display: block; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: 380px; background: var(--color-card); z-index: 1000; transform: translateX(100%); transition: transform 0.3s ease; display: flex; flex-direction: column; box-shadow: var(--shadow-xl); }
.drawer.open { transform: translateX(0); }
.drawer-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--color-border); }
.drawer-header h3 { font-size: 16px; font-weight: 700; }
.drawer-close { width: 32px; height: 32px; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; color: var(--color-text-secondary); }
.drawer-close:hover { background: var(--color-border-light); }
.drawer-search { padding: 12px 20px; border-bottom: 1px solid var(--color-border); }
.drawer-search input { width: 100%; padding: 9px 14px; border: 1px solid var(--color-border); border-radius: var(--radius-md); font-size: 13px; outline: none; }
.drawer-search input:focus { border-color: var(--color-primary); }
.drawer-list { flex: 1; overflow-y: auto; padding: 12px; }
.history-empty { text-align: center; padding: 40px 20px; color: var(--color-text-muted); font-size: 14px; }
.history-item { display: flex; gap: 12px; padding: 12px; border-radius: var(--radius-md); cursor: pointer; transition: background var(--transition-fast); margin-bottom: 6px; position: relative; }
.history-item:hover { background: var(--color-border-light); }
.history-thumb { width: 80px; height: 45px; border-radius: var(--radius-sm); overflow: hidden; flex-shrink: 0; border: 1px solid var(--color-border); }
.history-info { flex: 1; min-width: 0; }
.history-title { font-size: 13px; font-weight: 600; color: var(--color-text); margin-bottom: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.history-tags { display: flex; gap: 6px; margin-bottom: 4px; flex-wrap: wrap; }
.history-tag { font-size: 10px; padding: 1px 6px; background: var(--color-border-light); color: var(--color-text-secondary); border-radius: var(--radius-full); }
.history-time { font-size: 11px; color: var(--color-text-muted); }
.history-item-actions { position: absolute; top: 8px; right: 8px; display: none; }
.history-item:hover .history-item-actions { display: flex; }
.history-action-btn { width: 24px; height: 24px; border-radius: 50%; background: rgba(239,68,68,0.9); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 14px; }
.drawer-footer { padding: 12px 20px; border-top: 1px solid var(--color-border); display: flex; align-items: center; justify-content: space-between; }
.drawer-footer .storage-info { font-size: 11px; color: var(--color-text-muted); }
.drawer-footer .clear-btn { font-size: 12px; color: var(--color-error); cursor: pointer; }

/* ========== 11. Toast ========== */
#toast-container { position: fixed; top: 70px; right: 20px; z-index: 2000; display: flex; flex-direction: column; gap: 8px; }
.toast { display: flex; align-items: center; gap: 10px; padding: 12px 18px; background: var(--color-card); border-radius: var(--radius-md); box-shadow: var(--shadow-lg); font-size: 14px; animation: toastIn 0.3s ease; min-width: 240px; max-width: 400px; border-left: 3px solid var(--color-primary); }
@keyframes toastIn { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: translateX(0); } }
.toast.success { border-left-color: var(--color-success); }
.toast.error { border-left-color: var(--color-error); }
.toast.warning { border-left-color: var(--color-warning); }
.toast.info { border-left-color: var(--color-primary); }

/* ========== 12. PPT 幻灯片舞台 & 通用 ========== */
.slide { position: absolute; inset: 0; width: 1920px; height: 1080px; visibility: hidden; opacity: 0; pointer-events: none; transition: opacity 0.3s ease; overflow: hidden; display: block !important; }
.slide.active { visibility: visible; opacity: 1; pointer-events: auto; }
.slide-content { position: absolute; inset: 0; padding: 80px 96px; display: flex; flex-direction: column; width: 100%; height: 100%; box-sizing: border-box; }

/* 所有布局类强制占满全屏 */
.layout-cover, .layout-toc, .layout-section, .layout-bullets,
.layout-two-column, .layout-kpi-grid, .layout-timeline,
.layout-comparison, .layout-pros-cons, .layout-chart-bar,
.layout-summary, .layout-thanks {
  width: 1920px !important;
  height: 1080px !important;
  box-sizing: border-box !important;
}
.slide-title { font-size: 56px; font-weight: 700; line-height: 1.15; margin-bottom: 24px; letter-spacing: -0.02em; }
.slide-subtitle { font-size: 26px; opacity: 0.7; margin-bottom: 40px; font-weight: 400; }
.slide-body { flex: 1; }

/* 数据动画 */
[data-anim] { opacity: 0; transform: translateY(20px); transition: opacity 0.5s ease, transform 0.5s ease; }
.slide.active [data-anim] { opacity: 1; transform: translateY(0); }
.slide.active [data-anim-delay="1"] { transition-delay: 0.1s; }
.slide.active [data-anim-delay="2"] { transition-delay: 0.2s; }
.slide.active [data-anim-delay="3"] { transition-delay: 0.3s; }
.slide.active [data-anim-delay="4"] { transition-delay: 0.4s; }
.slide.active [data-anim-delay="5"] { transition-delay: 0.5s; }

/* SVG图标通用 */
.sf-icon { width: 1em; height: 1em; vertical-align: middle; flex-shrink: 0; }
.sf-icon-lg { width: 32px; height: 32px; }
.sf-icon-xl { width: 48px; height: 48px; }

/* ========== 13. 六套PPT主题 ========== */

/* 主题装饰元素通用z-index，确保在背景之上可见 */
.slide .corner-mark, .slide .page-num, .slide .meta-line, .slide .header-bar,
.slide .grid-bg, .slide .binder-holes, .slide .tab-colors, .slide .blob-1 { z-index: 1; }
.slide .cover-image, .slide .cover-overlay { z-index: 0; }
.slide .cover-content, .slide .cover-decoration { z-index: 2; }

/* 主题1: 极简白 - Swiss Modern风格 */
.slide.theme-minimal-white { background: #FFFFFF; color: #0F172A; font-family: 'Jost', 'Microsoft YaHei', sans-serif; }
.slide.theme-minimal-white .slide-title, .slide.theme-minimal-white .cover-title { color: #0F172A; font-family: 'Archivo', 'Jost', sans-serif; font-weight: 800; }
.slide.theme-minimal-white .slide-subtitle { color: #64748B; }
.slide.theme-minimal-white .accent { color: #DC2626; }
.slide.theme-minimal-white .slide-card { background: #F8FAFC; border: 1px solid #E2E8F0; border-radius: 12px; }
.slide.theme-minimal-white .slide-divider { background: #0F172A; height: 3px; }
.slide.theme-minimal-white .grid-bg { background-image: linear-gradient(rgba(15,23,42,0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(15,23,42,0.04) 1px, transparent 1px); background-size: 48px 48px; }
.slide.theme-minimal-white .corner-mark { position: absolute; top: 48px; right: 48px; width: 48px; height: 48px; border-top: 4px solid #DC2626; border-right: 4px solid #DC2626; }
.slide.theme-minimal-white .page-num { position: absolute; bottom: 40px; right: 60px; font-size: 14px; color: #94A3B8; font-family: 'JetBrains Mono', monospace; }

/* 主题2: 杂志墨水 - Paper & Ink风格 */
.slide.theme-magazine-ink { background: #FAF7F2; color: #1C1917; font-family: 'DM Sans', 'Microsoft YaHei', sans-serif; background-image: radial-gradient(circle at 20% 80%, rgba(180,83,9,0.03) 0%, transparent 50%); }
.slide.theme-magazine-ink .slide-title, .slide.theme-magazine-ink .cover-title { color: #1C1917; font-family: 'Bodoni Moda', 'Noto Serif SC', Georgia, serif; font-weight: 700; font-style: italic; font-size: 64px; line-height: 1.1; }
.slide.theme-magazine-ink .slide-subtitle { color: #78716C; font-family: 'JetBrains Mono', monospace; text-transform: uppercase; letter-spacing: 2px; font-size: 18px; }
.slide.theme-magazine-ink .accent { color: #B45309; }
.slide.theme-magazine-ink .slide-card { background: #FFFFFF; border: 1px solid #D6D3D1; border-radius: 2px; box-shadow: 2px 2px 0 rgba(28,25,23,0.05); }
.slide.theme-magazine-ink .slide-divider { background: linear-gradient(90deg, #B45309, transparent); height: 2px; }
.slide.theme-magazine-ink .drop-cap::first-letter { font-family: 'Bodoni Moda', serif; font-size: 96px; font-weight: 700; float: left; line-height: 0.8; margin-right: 12px; margin-top: 8px; color: #B45309; }
.slide.theme-magazine-ink .pull-quote { font-family: 'Bodoni Moda', serif; font-size: 36px; font-style: italic; color: #44403C; border-left: 4px solid #B45309; padding-left: 24px; margin: 24px 0; }
.slide.theme-magazine-ink .masthead { font-family: 'Bodoni Moda', serif; font-size: 120px; font-weight: 700; line-height: 0.9; letter-spacing: -0.03em; }
.slide.theme-magazine-ink .meta-line { font-family: 'JetBrains Mono', monospace; font-size: 13px; color: #78716C; text-transform: uppercase; letter-spacing: 3px; border-bottom: 1px solid #D6D3D1; padding-bottom: 8px; width: calc(100% - 192px); }

/* 主题3: 商务深蓝 - Electric Studio风格 */
.slide.theme-business-navy { background: #FFFFFF; color: #1E3A5F; font-family: 'Manrope', 'Microsoft YaHei', sans-serif; background-image: linear-gradient(135deg, #F8FAFC 0%, #FFFFFF 100%); }
.slide.theme-business-navy .slide-title, .slide.theme-business-navy .cover-title { color: #0F172A; font-weight: 800; font-size: 52px; }
.slide.theme-business-navy .slide-subtitle { color: #64748B; }
.slide.theme-business-navy .accent { color: #2563EB; }
.slide.theme-business-navy .slide-card { background: #F8FAFC; border: 1px solid #BFDBFE; border-radius: 8px; box-shadow: 0 4px 12px rgba(37,99,235,0.08); }
.slide.theme-business-navy .slide-divider { background: #BFDBFE; height: 4px; border-radius: 2px; }
.slide.theme-business-navy .header-bar { position: absolute; top: 0; left: 0; right: 0; height: 8px; background: linear-gradient(90deg, #1E3A5F 0%, #2563EB 50%, #3B82F6 100%); }
.slide.theme-business-navy .header-bar::after { content: ''; position: absolute; bottom: -12px; left: 96px; width: 60px; height: 4px; background: #2563EB; border-radius: 2px; }
.slide.theme-business-navy .split-panel { display: grid; grid-template-columns: 1fr 1fr; height: 100%; }
.slide.theme-business-navy .split-left { background: #FFFFFF; padding: 80px 60px; }
.slide.theme-business-navy .split-right { background: #1E3A5F; color: #fff; padding: 80px 60px; }
.slide.theme-business-navy .data-badge { display: inline-block; padding: 6px 16px; background: #EFF6FF; color: #2563EB; border-radius: 20px; font-size: 14px; font-weight: 600; }

/* 主题4: 科技靛蓝 - Bold Signal/Neon风格 */
.slide.theme-tech-indigo { background: #0F172A; color: #E2E8F0; font-family: 'Space Grotesk', 'Microsoft YaHei', sans-serif; }
.slide.theme-tech-indigo .slide-title, .slide.theme-tech-indigo .cover-title { color: #FFFFFF; font-weight: 700; }
.slide.theme-tech-indigo .slide-subtitle { color: #94A3B8; }
.slide.theme-tech-indigo .accent { color: #00FFCC; }
.slide.theme-tech-indigo .slide-card { background: rgba(30,41,59,0.8); border: 1px solid rgba(0,255,204,0.2); border-radius: 12px; backdrop-filter: blur(10px); }
.slide.theme-tech-indigo .slide-divider { background: linear-gradient(90deg, #00FFCC, transparent); }
.slide.theme-tech-indigo .grid-bg { background-image: linear-gradient(rgba(0,255,204,0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(0,255,204,0.05) 1px, transparent 1px); background-size: 40px 40px; }
.slide.theme-tech-indigo .glow-text { text-shadow: 0 0 30px rgba(0,255,204,0.5); }
.slide.theme-tech-indigo .section-num { font-size: 200px; font-weight: 900; color: rgba(0,255,204,0.1); line-height: 1; font-family: 'Space Grotesk', sans-serif; }
.slide.theme-tech-indigo .neon-border { border: 1px solid #00FFCC; box-shadow: 0 0 20px rgba(0,255,204,0.3), inset 0 0 20px rgba(0,255,204,0.05); }
.slide.theme-tech-indigo .mono { font-family: 'JetBrains Mono', monospace; }

/* 主题5: 学术纸感 - Notebook Tabs风格 */
.slide.theme-academic-paper { background: #FFFEF7; color: #292524; font-family: 'DM Sans', 'Microsoft YaHei', sans-serif; background-image: repeating-linear-gradient(0deg, transparent, transparent 31px, rgba(180,83,9,0.08) 31px, rgba(180,83,9,0.08) 32px); }
.slide.theme-academic-paper .slide-title, .slide.theme-academic-paper .cover-title { color: #1C1917; font-family: 'Bodoni Moda', 'Noto Serif SC', serif; font-weight: 700; }
.slide.theme-academic-paper .slide-subtitle { color: #78716C; }
.slide.theme-academic-paper .accent { color: #7C3AED; }
.slide.theme-academic-paper .slide-card { background: rgba(255,255,255,0.7); border: 1px solid #D6D3D1; border-radius: 4px; }
.slide.theme-academic-paper .slide-divider { background: #D6D3D1; }
.slide.theme-academic-paper .binder-holes { position: absolute; left: 32px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 80px; }
.slide.theme-academic-paper .binder-hole { width: 20px; height: 20px; border-radius: 50%; background: #FFFEF7; border: 2px solid #D6D3D1; box-shadow: inset 0 1px 3px rgba(0,0,0,0.1); }
.slide.theme-academic-paper .tab-colors { position: absolute; right: 0; top: 80px; display: flex; flex-direction: column; gap: 4px; }
.slide.theme-academic-paper .tab { width: 8px; height: 48px; border-radius: 4px 0 0 4px; }
.slide.theme-academic-paper .paper-shadow { box-shadow: 2px 2px 8px rgba(0,0,0,0.08); }

/* 主题6: 高级黑金 - Dark Botanical风格 */
.slide.theme-premium-blackgold { background: #0A0A0A; color: #F5F5F4; font-family: 'Cormorant Garamond', 'Noto Serif SC', Georgia, serif; }
.slide.theme-premium-blackgold .slide-title, .slide.theme-premium-blackgold .cover-title { color: #FAFAF9; font-weight: 600; letter-spacing: 0.02em; }
.slide.theme-premium-blackgold .slide-subtitle { color: #A8A29E; font-family: 'Jost', sans-serif; }
.slide.theme-premium-blackgold .accent { color: #D4AF37; }
.slide.theme-premium-blackgold .slide-card { background: rgba(30,30,30,0.6); border: 1px solid rgba(212,175,55,0.2); border-radius: 4px; }
.slide.theme-premium-blackgold .slide-divider { background: linear-gradient(90deg, transparent, #D4AF37, transparent); height: 1px; }
.slide.theme-premium-blackgold .gold-gradient { background: linear-gradient(135deg, #D4AF37, #F5E6A3, #D4AF37); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.slide.theme-premium-blackgold .blob-1 { position: absolute; width: 400px; height: 400px; border-radius: 50%; background: radial-gradient(circle, rgba(212,175,55,0.15), transparent 70%); filter: blur(40px); }
.slide.theme-premium-blackgold .serif-display { font-family: 'Cormorant Garamond', serif; font-style: italic; }
.slide.theme-premium-blackgold .gold-line { height: 1px; background: linear-gradient(90deg, transparent, #D4AF37, transparent); }
.slide.theme-premium-blackgold .ornament { font-size: 24px; color: #D4AF37; letter-spacing: 12px; }

/* ========== 14. 十二种PPT布局模板 ========== */

/* Cover 封面 */
.layout-cover { display: block; padding: 0; position: relative; width: 100%; height: 100%; box-sizing: border-box; overflow: hidden; }
.layout-cover .cover-image { position: absolute; top:0;right:0;bottom:0;left:0; background-size: cover; background-position: center center; background-repeat: no-repeat; opacity: 0.45; background-color: #e5e7eb; background-image: linear-gradient(135deg, #f3f4f6 0%, #d1d5db 100%); }
.layout-cover .cover-image.loaded { opacity: 0.5; }
.layout-cover .cover-image.failed { opacity: 0.3; background-image: linear-gradient(135deg, #6b7280 0%, #374151 100%); }
.layout-cover .cover-overlay { position: absolute; top:0;right:0;bottom:0;left:0; background: linear-gradient(135deg, rgba(0,0,0,0.2), rgba(0,0,0,0.5)); }
.layout-cover .cover-content { position: relative; z-index: 2; max-width: 1680px; width: 100%; }
.layout-cover .cover-eyebrow { font-size: 16px; text-transform: uppercase; letter-spacing: 4px; margin-bottom: 24px; font-weight: 600; opacity: 0.8; }
.layout-cover .cover-title { font-size: 96px; font-weight: 800; line-height: 1.05; margin-bottom: 24px; letter-spacing: -0.03em; }
.layout-cover .cover-subtitle { font-size: 32px; opacity: 0.75; margin-bottom: 48px; font-weight: 400; max-width: 900px; line-height: 1.4; }
.layout-cover .cover-meta { font-size: 14px; opacity: 0.5; letter-spacing: 2px; text-transform: uppercase; font-family: 'JetBrains Mono', monospace; }
.layout-cover .cover-decoration { position: absolute; bottom: 80px; right: 120px; width: 120px; height: 4px; }

/* TOC 目录 */
.layout-toc .toc-list { display: flex; flex-direction: column; gap: 0; margin-top: 16px; }
.layout-toc .toc-item { display: flex; align-items: baseline; gap: 24px; padding: 20px 0; border-bottom: 1px solid; transition: padding-left 0.2s ease; }
.layout-toc .toc-item:hover { padding-left: 12px; }
.layout-toc .toc-num { font-size: 40px; font-weight: 800; opacity: 0.3; min-width: 60px; font-family: 'JetBrains Mono', monospace; }
.layout-toc .toc-text { font-size: 28px; font-weight: 500; flex: 1; }
.layout-toc .toc-page { font-size: 18px; opacity: 0.4; font-family: 'JetBrains Mono', monospace; }

/* Section 章节分隔 */
.layout-section { display: flex; flex-direction: column; justify-content: center; padding: 80px 120px; height: 100%; position: relative; }
.layout-section .section-num { font-size: 180px; font-weight: 900; opacity: 0.12; line-height: 0.9; margin-bottom: 0; letter-spacing: -0.05em; }
.layout-section .section-title { font-size: 72px; font-weight: 700; margin-bottom: 16px; line-height: 1.1; letter-spacing: -0.02em; }
.layout-section .section-subtitle { font-size: 28px; opacity: 0.6; max-width: 800px; }
.layout-section .section-line { width: 80px; height: 4px; margin: 32px 0; border-radius: 2px; }

/* Bullets 要点列表 */
.layout-bullets .bullets-list { display: flex; flex-direction: column; gap: 20px; margin-top: 8px; }
.layout-bullets .bullet-item { display: flex; gap: 20px; align-items: flex-start; padding: 20px 24px; border-radius: 12px; transition: transform 0.2s ease; }
.layout-bullets .bullet-item:hover { transform: translateX(8px); }
.layout-bullets .bullet-icon { width: 44px; height: 44px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 2px; }
.layout-bullets .bullet-icon svg { width: 22px; height: 22px; }
.layout-bullets .bullet-text { font-size: 24px; line-height: 1.5; font-weight: 400; }
.layout-bullets .bullet-text strong { font-weight: 700; }

/* Two Column 双栏 */
.layout-two-column .two-col-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 16px; }
.layout-two-column .col { padding: 36px; border-radius: 16px; }
.layout-two-column .col-title { font-size: 32px; font-weight: 700; margin-bottom: 20px; padding-bottom: 16px; border-bottom: 3px solid; display: flex; align-items: center; gap: 12px; }
.layout-two-column .col-title svg { width: 28px; height: 28px; }
.layout-two-column .col-points { display: flex; flex-direction: column; gap: 14px; }
.layout-two-column .col-point { font-size: 20px; line-height: 1.5; padding-left: 24px; position: relative; }
.layout-two-column .col-point::before { content: ''; position: absolute; left: 0; top: 10px; width: 10px; height: 10px; border-radius: 50%; }

/* KPI Grid 数据大字报 */
.layout-kpi-grid .kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 28px; margin-top: 24px; }
.layout-kpi-grid .kpi-card { padding: 40px 32px; border-radius: 16px; text-align: center; position: relative; overflow: hidden; transition: transform 0.2s ease; }
.layout-kpi-grid .kpi-card:hover { transform: translateY(-4px); }
.layout-kpi-grid .kpi-icon { width: 56px; height: 56px; border-radius: 14px; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; }
.layout-kpi-grid .kpi-icon svg { width: 28px; height: 28px; }
.layout-kpi-grid .kpi-value { font-size: 64px; font-weight: 800; line-height: 1; margin-bottom: 10px; letter-spacing: -0.03em; }
.layout-kpi-grid .kpi-label { font-size: 18px; opacity: 0.7; font-weight: 500; }
.layout-kpi-grid .kpi-trend { font-size: 15px; margin-top: 12px; font-weight: 600; display: inline-flex; align-items: center; gap: 4px; padding: 4px 12px; border-radius: 20px; }

/* Timeline 时间线 */
.layout-timeline .timeline { position: relative; margin-top: 32px; padding-left: 48px; }
.layout-timeline .timeline::before { content: ''; position: absolute; left: 14px; top: 8px; bottom: 8px; width: 3px; border-radius: 2px; }
.layout-timeline .timeline-item { position: relative; margin-bottom: 36px; padding-left: 28px; }
.layout-timeline .timeline-dot { position: absolute; left: -42px; top: 6px; width: 28px; height: 28px; border-radius: 50%; border: 4px solid; background: #fff; z-index: 1; }
.layout-timeline .timeline-year { font-size: 22px; font-weight: 700; margin-bottom: 4px; font-family: 'JetBrains Mono', monospace; }
.layout-timeline .timeline-event { font-size: 24px; font-weight: 600; margin-bottom: 6px; }
.layout-timeline .timeline-desc { font-size: 18px; opacity: 0.65; line-height: 1.5; }

/* Comparison 对比表 */
.layout-comparison .comparison-table { width: 100%; border-collapse: separate; border-spacing: 0; margin-top: 24px; border-radius: 12px; overflow: hidden; }
.layout-comparison .comparison-table th { padding: 20px 24px; text-align: left; font-size: 18px; font-weight: 700; }
.layout-comparison .comparison-table td { padding: 18px 24px; font-size: 17px; border-top: 1px solid; }
.layout-comparison .comp-name { font-weight: 700; font-size: 19px; }
.layout-comparison .comp-strength { color: #10B981; }
.layout-comparison .comp-weakness { color: #EF4444; }

/* Pros Cons 优缺点 */
.layout-pros-cons { display: flex; flex-direction: column; height: 100%; }
.layout-pros-cons .pros-cons-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; flex: 1; min-height: 0; }
.layout-pros-cons .pc-col { padding: 40px; border-radius: 16px; display: flex; flex-direction: column; height: 100%; box-sizing: border-box; }
.layout-pros-cons .pc-title { font-size: 28px; font-weight: 700; margin-bottom: 28px; display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.layout-pros-cons .pc-title svg { width: 28px; height: 28px; }
.layout-pros-cons .pc-list { display: flex; flex-direction: column; gap: 20px; flex: 1; justify-content: space-evenly; }
.layout-pros-cons .pc-item { font-size: 20px; padding-left: 32px; position: relative; line-height: 1.6; }
.layout-pros-cons .pc-item::before { position: absolute; left: 0; font-weight: 800; font-size: 22px; }

/* Chart Bar 柱状图 */
.layout-chart-bar .chart-container { margin-top: 48px; padding: 0 48px; }
.layout-chart-bar .chart-bars { display: flex; align-items: flex-end; justify-content: space-around; height: 420px; gap: 32px; padding-bottom: 56px; border-bottom: 3px solid; position: relative; }
.layout-chart-bar .chart-bar-group { display: flex; flex-direction: column; align-items: center; flex: 1; height: 100%; justify-content: flex-end; position: relative; }
.layout-chart-bar .chart-bar { width: 65%; border-radius: 8px 8px 0 0; transition: height 0.8s cubic-bezier(0.16,1,0.3,1); position: relative; min-height: 8px; }
.layout-chart-bar .chart-bar-value { position: absolute; top: -36px; left: 50%; transform: translateX(-50%); font-size: 22px; font-weight: 700; white-space: nowrap; }
.layout-chart-bar .chart-label { position: absolute; bottom: -48px; font-size: 18px; opacity: 0.75; white-space: nowrap; font-weight: 500; }

/* Summary 总结 */
.layout-summary .summary-list { display: flex; flex-direction: column; gap: 16px; margin-top: 24px; }
.layout-summary .summary-item { display: flex; gap: 24px; align-items: flex-start; padding: 24px 28px; border-radius: 12px; border-left: 5px solid; transition: transform 0.2s ease; }
.layout-summary .summary-item:hover { transform: translateX(8px); }
.layout-summary .summary-num { font-size: 40px; font-weight: 800; opacity: 0.25; min-width: 56px; font-family: 'JetBrains Mono', monospace; line-height: 1; }
.layout-summary .summary-text { font-size: 22px; line-height: 1.5; font-weight: 500; }

/* Thanks 致谢 */
.layout-thanks { display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 80px; height: 100%; position: relative; }
.layout-thanks .thanks-ornament { font-size: 32px; letter-spacing: 24px; margin-bottom: 32px; opacity: 0.6; }
.layout-thanks .thanks-title { font-size: 96px; font-weight: 800; margin-bottom: 20px; letter-spacing: -0.02em; line-height: 1.1; }
.layout-thanks .thanks-subtitle { font-size: 36px; opacity: 0.65; margin-bottom: 48px; font-weight: 400; }
.layout-thanks .thanks-contact { font-size: 18px; opacity: 0.5; letter-spacing: 1px; font-family: 'JetBrains Mono', monospace; }
.layout-thanks .thanks-line { width: 120px; height: 3px; margin: 32px auto; border-radius: 2px; }

/* ========== 15. 演讲者模式 ========== */
.presenter-window { background: #1a1a1a; color: #fff; font-family: var(--font-sans); }
.presenter-layout { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr auto; gap: 12px; padding: 16px; height: 100vh; }
.presenter-current { grid-row: 1; grid-column: 1; background: #000; border-radius: 8px; overflow: hidden; position: relative; }
.presenter-next { grid-row: 1; grid-column: 2; background: #000; border-radius: 8px; overflow: hidden; position: relative; }
.presenter-notes { grid-row: 2; grid-column: 1; background: #2a2a2a; border-radius: 8px; padding: 16px; overflow-y: auto; font-size: 16px; line-height: 1.8; }
.presenter-timer { grid-row: 2; grid-column: 2; background: #2a2a2a; border-radius: 8px; padding: 16px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.presenter-time { font-size: 48px; font-weight: 700; font-family: var(--font-mono); }
.presenter-slide-info { font-size: 14px; opacity: 0.6; margin-top: 8px; }
.presenter-controls { display: flex; gap: 8px; margin-top: 16px; }
.presenter-label { position: absolute; top: 8px; left: 12px; font-size: 12px; background: rgba(0,0,0,0.6); padding: 2px 8px; border-radius: 4px; z-index: 10; }

/* ========== 16. 响应式 ========== */
@media (max-width: 1200px) {
  .editor-sidebar { width: 160px; }
  .editor-properties { width: 260px; }
  .option-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .theme-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .editor-layout { flex-direction: column; height: calc(100vh - 56px); min-height: 600px; }
  .editor-sidebar { width: 100%; height: auto; border-right: none; border-bottom: 1px solid var(--color-border); flex-shrink: 0; }
  .thumbnail-list { display: flex; gap: 8px; overflow-x: auto; padding: 12px; }
  .thumb-item { width: 140px; flex-shrink: 0; margin-bottom: 0; }
  .editor-main { min-height: 0; flex: 1; }
  .editor-properties { width: 100%; border-left: none; border-top: 1px solid var(--color-border); flex-shrink: 0; max-height: 200px; overflow-y: auto; }
  .preview-area { min-height: 0; flex: 1; }
  .provider-options { grid-template-columns: 1fr; }
  .option-grid-2, .option-grid-3 { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .topnav { padding: 0 12px; }
  .btn-text { display: none; }
  .step-container { padding: var(--space-lg) 16px; }
  .step-title { font-size: 24px; }
  .modal { margin: 12px; }
  .drawer { width: 100%; }
}

/* 减少动画偏好 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ========== 17. AI 对话编辑面板 ========== */
.chat-panel {
  display: flex;
  flex-direction: column;
  background: var(--color-card, #fff);
  border-top: 1px solid var(--color-border, #e2e8f0);
  height: 200px;
  transition: height 0.3s ease;
  flex-shrink: 0;
}
.chat-panel.collapsed { height: 44px; }
.chat-panel.collapsed .chat-body,
.chat-panel.collapsed .chat-input-area { display: none; }

.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  height: 44px;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-bottom: 1px solid var(--color-border, #e2e8f0);
  cursor: pointer;
  user-select: none;
  flex-shrink: 0;
}
.chat-header-left { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--color-text, #0f172a); }
.chat-header-left svg { color: #0D9488; }
.chat-status {
  font-size: 11px;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 10px;
  background: #dcfce7;
  color: #166534;
}
.chat-status.thinking { background: #fef3c7; color: #92400e; animation: pulse 1.5s infinite; }
.chat-status.executing { background: #dbeafe; color: #1e40af; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.6; } }

.chat-header-right { display: flex; align-items: center; gap: 4px; }
.chat-icon-btn {
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  border: none; background: transparent; border-radius: 6px;
  color: var(--color-text-secondary, #64748b); cursor: pointer;
  transition: all 0.15s;
}
.chat-icon-btn:hover { background: var(--color-border-light, #f1f5f9); color: var(--color-text, #0f172a); }
.chat-icon-btn:disabled { opacity: 0.4; cursor: not-allowed; }

.chat-body {
  flex: 1;
  overflow-y: auto;
  padding: 12px 16px;
  min-height: 0;
}
.chat-messages { display: flex; flex-direction: column; gap: 10px; }

.chat-message {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.6;
  word-break: break-word;
  animation: msgIn 0.2s ease;
}
@keyframes msgIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.chat-message.user {
  align-self: flex-end;
  background: #0D9488;
  color: #fff;
  border-bottom-right-radius: 4px;
}
.chat-message.ai {
  align-self: flex-start;
  background: var(--color-border-light, #f1f5f9);
  color: var(--color-text, #0f172a);
  border-bottom-left-radius: 4px;
}
.chat-message.thinking {
  align-self: flex-start;
  background: #fffbeb;
  color: #92400e;
  border: 1px dashed #fcd34d;
  border-bottom-left-radius: 4px;
  font-style: italic;
}
.chat-message.thinking::before { content: '🧠 '; }
.chat-message.tool {
  align-self: flex-start;
  background: #eff6ff;
  color: #1e40af;
  border: 1px solid #bfdbfe;
  border-bottom-left-radius: 4px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
}
.chat-message.tool::before { content: '🔧 '; }
.chat-message.error {
  align-self: flex-start;
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
  border-bottom-left-radius: 4px;
}
.chat-message.error::before { content: '⚠️ '; }

.chat-input-area {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 10px 16px;
  border-top: 1px solid var(--color-border, #e2e8f0);
  background: var(--color-card, #fff);
  flex-shrink: 0;
}
.chat-upload-btn {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--color-border, #e2e8f0);
  background: var(--color-card, #fff);
  border-radius: 8px;
  color: var(--color-text-secondary, #64748b);
  cursor: pointer;
  transition: all 0.15s;
  flex-shrink: 0;
}
.chat-upload-btn:hover { border-color: #0D9488; color: #0D9488; background: #f0fdfa; }

.chat-input {
  flex: 1;
  min-height: 36px;
  max-height: 120px;
  padding: 8px 12px;
  border: 1px solid var(--color-border, #e2e8f0);
  border-radius: 8px;
  font-size: 13px;
  font-family: inherit;
  resize: none;
  outline: none;
  transition: border-color 0.15s;
  line-height: 1.5;
}
.chat-input:focus { border-color: #0D9488; box-shadow: 0 0 0 3px rgba(13,148,136,0.1); }
.chat-input::placeholder { color: var(--color-text-muted, #94a3b8); }

.chat-send-btn {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border: none;
  background: #0D9488;
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
  transition: all 0.15s;
  flex-shrink: 0;
}
.chat-send-btn:hover { background: #0F766E; }
.chat-send-btn:disabled { background: #cbd5e1; cursor: not-allowed; }

/* 聊天面板收起时箭头旋转 */
.chat-panel.collapsed #btn-chat-toggle svg { transform: rotate(180deg); }
#btn-chat-toggle svg { transition: transform 0.3s ease; }

/* ========== 18. 重构网格布局系统 V2 ========== */
/* 通用网格框架：12列×8行 */
.v2-grid {
  position: absolute;
  inset: 56px;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: repeat(8, 1fr);
  gap: 14px;
  z-index: 1;
}
.v2-card {
  position: relative;
  overflow: hidden;
  padding: 28px 32px;
  display: flex;
  flex-direction: column;
  border-radius: 4px;
}
.v2-card.accent-bg { background: var(--accent, #DC2626); color: #fff; }
.v2-card.dark-bg { background: #0F172A; color: #fff; }
.v2-card.light-bg { background: rgba(255,255,255,0.6); backdrop-filter: blur(8px); }
.v2-card .v2-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  letter-spacing: 0.1em;
  opacity: 0.6;
  margin-bottom: 12px;
}
.v2-card .v2-title {
  font-size: 26px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 10px;
}
.v2-card .v2-desc {
  font-size: 16px;
  line-height: 1.5;
  opacity: 0.8;
}
.v2-card .v2-big-num {
  font-size: 88px;
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.03em;
}
.v2-card .v2-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.7;
  margin-top: 8px;
}

/* V2 Cover 封面 */
.v2-cover-left {
  grid-column: 1 / span 3;
  grid-row: 1 / span 8;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 40px 28px;
}
.v2-cover-center {
  grid-column: 4 / span 6;
  grid-row: 1 / span 8;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px 32px;
}
.v2-cover-right {
  grid-column: 10 / span 3;
  grid-row: 1 / span 8;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 40px 28px;
}
.v2-cover-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.v2-cover-title {
  font-size: 72px;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}
.v2-cover-subtitle {
  font-size: 22px;
  line-height: 1.4;
  opacity: 0.75;
  max-width: 40ch;
}
.v2-cover-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  letter-spacing: 0.1em;
  opacity: 0.6;
  margin-top: 32px;
}
.v2-cover-bignum {
  font-size: 180px;
  font-weight: 900;
  line-height: 0.85;
  opacity: 0.12;
  letter-spacing: -0.05em;
}

/* V2 Section 章节过渡 */
.v2-section-num {
  grid-column: 1 / span 4;
  grid-row: 1 / span 8;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 48px 36px;
}
.v2-section-title {
  grid-column: 5 / span 8;
  grid-row: 1 / span 8;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px 40px;
}
.v2-section-number {
  font-size: 240px;
  font-weight: 900;
  line-height: 0.85;
  letter-spacing: -0.05em;
}
.v2-section-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0.7;
}
.v2-section-h {
  font-size: 88px;
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}
.v2-section-sub {
  font-size: 24px;
  line-height: 1.4;
  opacity: 0.75;
  max-width: 36ch;
}

/* V2 Bullets 要点列表 */
.v2-bullets-head {
  grid-column: 1 / span 12;
  grid-row: 1 / span 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 32px;
}
.v2-bullets-head h2 {
  font-size: 56px;
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -0.015em;
}
.v2-bullets-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  padding: 28px 30px;
  border-radius: 6px;
  position: relative;
  overflow: hidden;
}
.v2-bullets-card .v2-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.v2-bullets-card .v2-text {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.35;
}
.v2-bullets-card .v2-index {
  position: absolute;
  top: 16px;
  right: 20px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  opacity: 0.4;
  letter-spacing: 0.1em;
}
/* 2列布局 */
.v2-bullets-2col .v2-bullets-card:nth-child(odd) { grid-column: 1 / span 6; }
.v2-bullets-2col .v2-bullets-card:nth-child(even) { grid-column: 7 / span 6; }
.v2-bullets-2col .v2-bullets-card:nth-child(1) { grid-row: 3 / span 3; }
.v2-bullets-2col .v2-bullets-card:nth-child(2) { grid-row: 3 / span 3; }
.v2-bullets-2col .v2-bullets-card:nth-child(3) { grid-row: 6 / span 3; }
.v2-bullets-2col .v2-bullets-card:nth-child(4) { grid-row: 6 / span 3; }
/* 3列布局（支持3-6个卡片，3x2） */
.v2-bullets-3col .v2-bullets-card:nth-child(1) { grid-column: 1 / span 4; grid-row: 3 / span 3; }
.v2-bullets-3col .v2-bullets-card:nth-child(2) { grid-column: 5 / span 4; grid-row: 3 / span 3; }
.v2-bullets-3col .v2-bullets-card:nth-child(3) { grid-column: 9 / span 4; grid-row: 3 / span 3; }
.v2-bullets-3col .v2-bullets-card:nth-child(4) { grid-column: 1 / span 4; grid-row: 6 / span 3; }
.v2-bullets-3col .v2-bullets-card:nth-child(5) { grid-column: 5 / span 4; grid-row: 6 / span 3; }
.v2-bullets-3col .v2-bullets-card:nth-child(6) { grid-column: 9 / span 4; grid-row: 6 / span 3; }

/* V2 Two-column 双栏对比 */
.v2-twocol-head {
  grid-column: 1 / span 12;
  grid-row: 1 / span 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 32px;
}
.v2-twocol-head h2 {
  font-size: 56px;
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -0.015em;
}
.v2-twocol-left {
  grid-column: 1 / span 6;
  grid-row: 3 / span 6;
  padding: 36px 36px;
  display: flex;
  flex-direction: column;
  border-radius: 6px 0 0 6px;
}
.v2-twocol-right {
  grid-column: 7 / span 6;
  grid-row: 3 / span 6;
  padding: 36px 36px;
  display: flex;
  flex-direction: column;
  border-radius: 0 6px 6px 0;
}
.v2-twocol-coltitle {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 3px solid currentColor;
  display: flex;
  align-items: center;
  gap: 12px;
}
.v2-twocol-point {
  font-size: 19px;
  line-height: 1.5;
  padding: 12px 0;
  border-bottom: 1px solid rgba(128,128,128,0.2);
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.v2-twocol-point:last-child { border-bottom: none; }
.v2-twocol-point .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  margin-top: 8px;
  flex-shrink: 0;
}
.v2-twocol-vs {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 16px;
  font-weight: 700;
  z-index: 2;
}

/* V2 KPI-grid 数据大字报 */
.v2-kpi-head {
  grid-column: 1 / span 12;
  grid-row: 1 / span 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 32px;
}
.v2-kpi-head h2 {
  font-size: 56px;
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -0.015em;
}
.v2-kpi-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px 28px;
  border-radius: 6px;
  position: relative;
  overflow: hidden;
  min-width: 0;
}
.v2-kpi-card .v2-kpi-value {
  font-size: 56px;
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
  word-break: keep-all;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.v2-kpi-card .v2-kpi-label {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 4px;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.v2-kpi-card .v2-kpi-trend {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  opacity: 0.7;
  letter-spacing: 0.05em;
  margin-top: 4px;
}
.v2-kpi-card .v2-kpi-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 4px;
  background: currentColor;
  opacity: 0.6;
}
/* 2x2 KPI布局 */
.v2-kpi-2x2 .v2-kpi-card:nth-child(1) { grid-column: 1 / span 6; grid-row: 3 / span 3; }
.v2-kpi-2x2 .v2-kpi-card:nth-child(2) { grid-column: 7 / span 6; grid-row: 3 / span 3; }
.v2-kpi-2x2 .v2-kpi-card:nth-child(3) { grid-column: 1 / span 6; grid-row: 6 / span 3; }
.v2-kpi-2x2 .v2-kpi-card:nth-child(4) { grid-column: 7 / span 6; grid-row: 6 / span 3; }
/* 3x2 KPI布局 */
.v2-kpi-3x2 .v2-kpi-card { grid-row: 3 / span 6; }
.v2-kpi-3x2 .v2-kpi-card:nth-child(1) { grid-column: 1 / span 4; }
.v2-kpi-3x2 .v2-kpi-card:nth-child(2) { grid-column: 5 / span 4; }
.v2-kpi-3x2 .v2-kpi-card:nth-child(3) { grid-column: 9 / span 4; }

/* V2 Timeline 时间线 */
.v2-tl-head {
  grid-column: 1 / span 12;
  grid-row: 1 / span 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 32px;
}
.v2-tl-head h2 {
  font-size: 56px;
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -0.015em;
}
.v2-tl-line {
  grid-column: 1 / span 12;
  grid-row: 4 / span 1;
  position: relative;
  display: flex;
  align-items: center;
}
.v2-tl-line::before {
  content: '';
  position: absolute;
  left: 3%;
  right: 3%;
  top: 50%;
  height: 3px;
  background: currentColor;
  opacity: 0.3;
  transform: translateY(-50%);
}
.v2-tl-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 12px;
  position: relative;
}
.v2-tl-node .v2-tl-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: currentColor;
  border: 4px solid var(--slide-bg, #fff);
  z-index: 2;
  flex-shrink: 0;
}
.v2-tl-node .v2-tl-year {
  font-family: 'JetBrains Mono', monospace;
  font-size: 22px;
  font-weight: 700;
  margin-top: 16px;
  letter-spacing: 0.02em;
}
.v2-tl-node .v2-tl-event {
  font-size: 17px;
  font-weight: 600;
  margin-top: 6px;
  line-height: 1.3;
}
.v2-tl-node .v2-tl-desc {
  font-size: 14px;
  opacity: 0.65;
  margin-top: 4px;
  line-height: 1.4;
}
/* 时间线节点上下交替 */
.v2-tl-nodes-top { grid-column: 1 / span 12; grid-row: 2 / span 2; display: flex; justify-content: space-around; align-items: flex-end; padding-bottom: 8px; }
.v2-tl-nodes-bottom { grid-column: 1 / span 12; grid-row: 5 / span 3; display: flex; justify-content: space-around; align-items: flex-start; padding-top: 12px; }

/* ========== V2 剩余6种布局 ========== */

/* V2 TOC 目录页 */
.v2-toc-head {
  grid-column: 1 / span 12;
  grid-row: 1 / span 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 32px;
}
.v2-toc-head h2 {
  font-size: 56px;
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -0.015em;
}
.v2-toc-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px 28px;
  border-radius: 6px;
  position: relative;
  overflow: hidden;
  gap: 8px;
}
.v2-toc-card .v2-toc-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.1em;
  opacity: 0.6;
}
.v2-toc-card .v2-toc-title {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
}
.v2-toc-card .v2-toc-desc {
  font-size: 15px;
  opacity: 0.65;
  line-height: 1.4;
}
.v2-toc-card.accent-card {
  border-left: 4px solid currentColor;
}
/* 3列×2行目录 */
.v2-toc-3col .v2-toc-card { grid-row: 3 / span 3; }
.v2-toc-3col .v2-toc-card:nth-child(2) { grid-column: 1 / span 4; }
.v2-toc-3col .v2-toc-card:nth-child(3) { grid-column: 5 / span 4; }
.v2-toc-3col .v2-toc-card:nth-child(4) { grid-column: 9 / span 4; }
.v2-toc-3col .v2-toc-card:nth-child(5) { grid-column: 1 / span 4; grid-row: 6 / span 3; }
.v2-toc-3col .v2-toc-card:nth-child(6) { grid-column: 5 / span 4; grid-row: 6 / span 3; }
.v2-toc-3col .v2-toc-card:nth-child(7) { grid-column: 9 / span 4; grid-row: 6 / span 3; }

/* V2 Comparison 对比表格 */
.v2-comp-head {
  grid-column: 1 / span 12;
  grid-row: 1 / span 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 32px;
}
.v2-comp-head h2 {
  font-size: 56px;
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -0.015em;
}
.v2-comp-table {
  grid-column: 1 / span 12;
  grid-row: 3 / span 6;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  grid-auto-rows: 1fr;
  border-radius: 8px;
  overflow: hidden;
}
.v2-comp-cell {
  padding: 16px 20px;
  display: flex;
  align-items: center;
  font-size: 17px;
  line-height: 1.35;
  border-bottom: 1px solid rgba(128,128,128,0.15);
  border-right: 1px solid rgba(128,128,128,0.15);
}
.v2-comp-cell:nth-child(4n) { border-right: none; }
.v2-comp-cell.header-cell {
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
}
.v2-comp-cell.row-label {
  font-weight: 700;
  font-size: 18px;
}

/* V2 Pros-Cons 优缺点 */
.v2-pc-head {
  grid-column: 1 / span 12;
  grid-row: 1 / span 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 32px;
}
.v2-pc-head h2 {
  font-size: 56px;
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -0.015em;
}
.v2-pc-left {
  grid-column: 1 / span 6;
  grid-row: 3 / span 6;
  padding: 36px;
  display: flex;
  flex-direction: column;
  border-radius: 8px 0 0 8px;
}
.v2-pc-right {
  grid-column: 7 / span 6;
  grid-row: 3 / span 6;
  padding: 36px;
  display: flex;
  flex-direction: column;
  border-radius: 0 8px 8px 0;
}
.v2-pc-coltitle {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 3px solid currentColor;
  display: flex;
  align-items: center;
  gap: 12px;
}
.v2-pc-point {
  font-size: 19px;
  line-height: 1.5;
  padding: 12px 0;
  border-bottom: 1px solid rgba(128,128,128,0.15);
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.v2-pc-point:last-child { border-bottom: none; }
.v2-pc-point .icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}

/* V2 Chart-Bar 柱状图 */
.v2-chart-head {
  grid-column: 1 / span 12;
  grid-row: 1 / span 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 32px;
}
.v2-chart-head h2 {
  font-size: 56px;
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -0.015em;
}
.v2-chart-area {
  grid-column: 1 / span 12;
  grid-row: 3 / span 6;
  display: flex;
  flex-direction: column;
  padding: 24px 32px;
  border-radius: 8px;
}
.v2-chart-bars {
  flex: 1;
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
  gap: 24px;
  padding-bottom: 16px;
  border-bottom: 3px solid currentColor;
}
.v2-chart-bar {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  height: 100%;
  justify-content: flex-end;
}
.v2-chart-bar .bar {
  width: 70%;
  border-radius: 6px 6px 0 0;
  position: relative;
  transition: height 0.5s ease;
}
.v2-chart-bar .bar-value {
  position: absolute;
  top: -28px;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'JetBrains Mono', monospace;
  font-size: 16px;
  font-weight: 700;
  white-space: nowrap;
}
.v2-chart-bar .bar-label {
  font-size: 15px;
  font-weight: 600;
  opacity: 0.8;
  text-align: center;
}
.v2-chart-legend {
  display: flex;
  gap: 24px;
  padding-top: 16px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  letter-spacing: 0.05em;
  opacity: 0.7;
}
.v2-chart-legend .li {
  display: flex;
  align-items: center;
  gap: 8px;
}
.v2-chart-legend .li i {
  width: 16px;
  height: 12px;
  border-radius: 2px;
  display: inline-block;
}

/* V2 Summary 总结页 */
.v2-summary-head {
  grid-column: 1 / span 12;
  grid-row: 1 / span 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 32px;
}
.v2-summary-head h2 {
  font-size: 56px;
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -0.015em;
}
.v2-summary-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 28px 32px;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  gap: 12px;
}
.v2-summary-card .v2-summary-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}
.v2-summary-card .v2-summary-title {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.25;
}
.v2-summary-card .v2-summary-desc {
  font-size: 15px;
  opacity: 0.7;
  line-height: 1.45;
}
.v2-summary-card.accent-card {
  border-top: 4px solid currentColor;
}
/* 2列×2行总结 */
.v2-summary-2col .v2-summary-card { grid-row: 3 / span 3; }
.v2-summary-2col .v2-summary-card:nth-child(2) { grid-column: 1 / span 6; }
.v2-summary-2col .v2-summary-card:nth-child(3) { grid-column: 7 / span 6; }
.v2-summary-2col .v2-summary-card:nth-child(4) { grid-column: 1 / span 6; grid-row: 6 / span 3; }
.v2-summary-2col .v2-summary-card:nth-child(5) { grid-column: 7 / span 6; grid-row: 6 / span 3; }

/* V2 Thanks 致谢页 */
.v2-thanks-wrap {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px;
}
.v2-thanks-title {
  font-size: 120px;
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}
.v2-thanks-subtitle {
  font-size: 28px;
  opacity: 0.7;
  margin-bottom: 48px;
  max-width: 40ch;
  line-height: 1.4;
}
.v2-thanks-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 16px;
  letter-spacing: 0.15em;
  opacity: 0.5;
  text-transform: uppercase;
}
.v2-thanks-decoration {
  position: absolute;
  top: 60px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
}
.v2-thanks-decoration span {
  width: 40px;
  height: 4px;
  border-radius: 2px;
}
.v2-thanks-bottom {
  position: absolute;
  bottom: 60px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  align-items: center;
}
.v2-thanks-bottom span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  opacity: 0.4;
}

/* ============================================================
首页风格统一覆盖层：世界是一片荒原 design token（纸白/深蓝/衬线/等宽）
   ============================================================ */
:root{
  --color-primary:#153fba;--color-primary-light:#4a6cf7;--color-primary-dark:#102f8f;--color-primary-bg:#eaf0ff;
  --color-cta:#153fba;--color-cta-hover:#102f8f;
  --color-bg:#f7f7f5;--color-card:#ffffff;--color-text:#151515;
  --color-text-secondary:#747474;--color-text-muted:#9b9b96;
  --color-border:#dededb;--color-border-light:#efefea;
  --font-sans:'Jost','HarmonyOS Sans SC','Microsoft YaHei',system-ui,sans-serif;
  --font-display:'Bodoni Moda','Noto Serif SC','Source Han Serif SC','Songti SC',serif;
  --font-mono:'JetBrains Mono','SF Mono','Fira Code',monospace;
  --radius-sm:4px;--radius-md:8px;--radius-lg:12px;--radius-xl:18px;
  --shadow-sm:0 1px 3px rgba(21,29,58,.04);
  --shadow-md:0 4px 16px rgba(21,29,58,.07);
  --shadow-lg:0 10px 36px rgba(21,29,58,.10);
}
body{background:var(--color-bg)}
.topnav{background:rgba(255,255,255,.85);border-bottom:1px solid var(--color-border);backdrop-filter:blur(16px)}
.topnav-logo{letter-spacing:-.02em}
.step-title{letter-spacing:-.03em}
.step-subtitle{color:var(--color-text-secondary)}
.input-card:focus-within{border-color:var(--color-primary);box-shadow:0 0 0 4px rgba(21,63,186,.1)}
.btn-primary{background:var(--color-primary);border-radius:var(--radius-md)}
.btn-primary:hover{background:var(--color-primary-dark)}
.btn-ghost{border-color:var(--color-border);color:var(--color-text-secondary)}
.btn-ghost:hover{border-color:var(--color-primary);color:var(--color-primary);background:var(--color-primary-bg)}

/* 返回链接与 logo 横排，避免重叠 */
.topnav-left { display: flex; align-items: center; gap: 6px; }

