 * { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --primary: #667eea;
    --primary-dark: #764ba2;
    --accent: #64ffda;
    --bg: #0a0a1a;
    --card: rgba(255,255,255,0.04);
    --border: rgba(255,255,255,0.08);
    --text: #e6e6ff;
    --text-secondary: #8892b0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
}

/* ========== 粒子背景 ========== */
.particles {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}
.particle {
    position: absolute;
    width: 2px; height: 2px;
    background: var(--primary);
    border-radius: 50%;
    opacity: 0;
    animation: floatUp 12s infinite linear;
}
@keyframes floatUp {
    0% { transform: translateY(100vh) translateX(0); opacity: 0; }
    10% { opacity: 0.6; }
    90% { opacity: 0.6; }
    100% { transform: translateY(-10vh) translateX(50px); opacity: 0; }
}

/* ========== 页面系统 ========== */
.page {
    display: none;
    position: relative;
    z-index: 1;
    min-height: 100vh;
}
.page.active { display: block; }

/* ========== 导航栏 ========== */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 56px;
    background: rgba(10,10,26,0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 100;
}
.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.nav-brand .logo-icon {
    font-size: 24px;
}
.nav-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}
.nav-btn {
    padding: 8px 16px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--card);
    color: var(--text);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}
.nav-btn:hover {
    background: rgba(102,126,234,0.15);
    border-color: var(--primary);
}
.nav-btn.primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border: none;
    font-weight: 600;
}

/* ========== 首页 ========== */
.home-page {
    padding-top: 80px;
    padding-bottom: 40px;
}

.hero {
    text-align: center;
    padding: 40px 20px;
    max-width: 800px;
    margin: 0 auto;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(100,255,218,0.1);
    border: 1px solid rgba(100,255,218,0.2);
    color: var(--accent);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    margin-bottom: 24px;
}
.hero h1 {
    font-size: 42px;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #fff 0%, #a8b2d1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero p {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 40px;
}

/* 输入区域 */
.input-section {
    max-width: 700px;
    margin: 0 auto 30px;
    padding: 0 20px;
}
.input-card {
    background: var(--card);
    border: 2px solid var(--border);
    border-radius: 20px;
    padding: 24px;
    transition: all 0.3s;
}
.input-card:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 40px rgba(102,126,234,0.15);
}

.input-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.input-tab {
    padding: 8px 16px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-secondary);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}
.input-tab.active {
    background: rgba(102,126,234,0.2);
    color: var(--primary);
    border-color: var(--primary);
}
.input-tab:hover:not(.active) {
    background: rgba(255,255,255,0.05);
}

.input-area {
    position: relative;
}
.input-area textarea {
    width: 100%;
    background: transparent;
    border: none;
    color: var(--text);
    font-size: 16px;
    resize: none;
    outline: none;
    min-height: 100px;
    font-family: inherit;
    line-height: 1.6;
}
.input-area textarea::placeholder {
    color: #5a6680;
}

.input-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}
.input-tools {
    display: flex;
    gap: 12px;
}
.tool-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-secondary);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}
.tool-btn:hover {
    background: rgba(255,255,255,0.05);
    color: var(--text);
}

.char-count {
    font-size: 12px;
    color: #5a6680;
}

/* 快捷场景 */
.scenarios {
    max-width: 700px;
    margin: 0 auto 30px;
    padding: 0 20px;
}
.scenarios-title {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}
.scenario-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
}
.scenario-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}
.scenario-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    background: rgba(102,126,234,0.08);
}
.scenario-icon {
    font-size: 28px;
    margin-bottom: 8px;
}
.scenario-name {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}
.scenario-desc {
    font-size: 12px;
    color: var(--text-secondary);
}

/* 生成按钮 */
.generate-section {
    max-width: 700px;
    margin: 0 auto;
    padding: 0 20px;
}
.generate-btn {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border: none;
    border-radius: 16px;
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.generate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 50px rgba(102,126,234,0.4);
}
.generate-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* 功能亮点 */
.features {
    max-width: 900px;
    margin: 60px auto;
    padding: 0 20px;
}
.features-title {
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 30px;
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}
.feature-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
    transition: all 0.3s;
}
.feature-card:hover {
    border-color: rgba(102,126,234,0.3);
    transform: translateY(-4px);
}
.feature-icon {
    width: 48px; height: 48px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 16px;
}
.feature-card h3 {
    font-size: 16px;
    margin-bottom: 8px;
}
.feature-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ========== 生成中页面 ========== */
.loading-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
}

.ai-core {
    width: 220px; height: 220px;
    position: relative;
    margin-bottom: 50px;
}
.core-ring {
    position: absolute;
    border-radius: 50%;
    border: 2px solid transparent;
}
.core-ring:nth-child(1) {
    width: 100%; height: 100%;
    border-top-color: var(--primary);
    border-right-color: var(--primary-dark);
    animation: spin 4s linear infinite;
}
.core-ring:nth-child(2) {
    width: 75%; height: 75%;
    top: 12.5%; left: 12.5%;
    border-bottom-color: var(--accent);
    border-left-color: var(--accent);
    animation: spin 3s linear infinite reverse;
}
.core-ring:nth-child(3) {
    width: 50%; height: 50%;
    top: 25%; left: 25%;
    border-top-color: #a78bfa;
    border-right-color: #a78bfa;
    animation: spin 2s linear infinite;
}
.core-center {
    position: absolute;
    width: 30%; height: 30%;
    top: 35%; left: 35%;
    background: radial-gradient(circle, var(--primary), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    animation: pulse 2s ease-in-out infinite;
    box-shadow: 0 0 40px rgba(102,126,234,0.5);
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.8; }
}

.loading-status {
    text-align: center;
    margin-bottom: 40px;
}
.loading-status h2 {
    font-size: 24px;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #fff, var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.loading-status p {
    color: var(--text-secondary);
    font-size: 15px;
}

.progress-track {
    width: 100%;
    max-width: 500px;
    margin-bottom: 30px;
}
.progress-bar {
    height: 4px;
    background: var(--border);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 20px;
}
.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 2px;
    transition: width 0.5s ease;
    width: 0%;
}

.step-list {
    width: 100%;
    max-width: 500px;
}
.step-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px;
    border-radius: 12px;
    transition: all 0.4s;
    margin-bottom: 8px;
}
.step-item.active {
    background: rgba(102,126,234,0.08);
}
.step-item.done {
    color: var(--accent);
}
.step-item.done .step-num {
    background: var(--accent);
    color: var(--bg);
}
.step-num {
    width: 28px; height: 28px;
    border-radius: 50%;
    border: 2px solid currentColor;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
    transition: all 0.3s;
}
.step-text {
    font-size: 15px;
}
.step-detail {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 2px;
}

/* ========== 预览页面 ========== */
.preview-page {
    display: flex;
    flex-direction: column;
    height: 100vh;
    padding-top: 56px;
}

.preview-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    background: rgba(10,10,26,0.95);
    border-bottom: 1px solid var(--border);
    gap: 10px;
    flex-wrap: wrap;
}
.ppt-info {
    display: flex;
    align-items: center;
    gap: 12px;
}
.ppt-info h3 {
    font-size: 15px;
    font-weight: 600;
}
.ppt-badge {
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
}
.badge-free {
    background: rgba(100,255,218,0.1);
    color: var(--accent);
    border: 1px solid rgba(100,255,218,0.2);
}
.badge-locked {
    background: rgba(239,68,68,0.1);
    color: #ef4444;
    border: 1px solid rgba(239,68,68,0.2);
}

.toolbar-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}
.toolbar-btn {
    padding: 8px 14px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--card);
    color: var(--text);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}
.toolbar-btn:hover {
    background: rgba(255,255,255,0.08);
}
.toolbar-btn.primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border: none;
    font-weight: 600;
}

.preview-body {
    display: flex;
    flex: 1;
    overflow: hidden;
}

/* 左侧缩略图栏 */
.thumb-panel {
    width: 220px;
    background: rgba(255,255,255,0.02);
    border-right: 1px solid var(--border);
    overflow-y: auto;
    padding: 16px;
    flex-shrink: 0;
}
.thumb-item {
    width: 100%;
    aspect-ratio: 16/9;
    background: #1a1a2e;
    border-radius: 10px;
    margin-bottom: 12px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s;
    overflow: hidden;
    position: relative;
}
.thumb-item.active {
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(102,126,234,0.2);
}
.thumb-item:hover {
    border-color: rgba(102,126,234,0.4);
}
.thumb-num {
    position: absolute;
    top: 6px; left: 6px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 600;
}
.thumb-type {
    position: absolute;
    bottom: 6px; right: 6px;
    background: rgba(102,126,234,0.8);
    color: #fff;
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 4px;
}

/* 主预览区 */
.main-viewer {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.slide-stage {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    background: #050510;
}

.slide-frame {
    width: 100%;
    max-width: 960px;
    aspect-ratio: 16/9;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 25px 80px rgba(0,0,0,0.6);
}

.slide-content {
    width: 100%;
    height: 100%;
    padding: 50px;
    color: #1a1a2e;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* 演讲备注区 */
.speaker-panel {
    height: 140px;
    background: rgba(255,255,255,0.03);
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    padding: 16px 20px;
    overflow: hidden;
}
.speaker-tabs {
    display: flex;
    gap: 16px;
    margin-bottom: 12px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 10px;
}
.speaker-tab {
    font-size: 13px;
    color: var(--text-secondary);
    cursor: pointer;
    padding-bottom: 10px;
    margin-bottom: -10px;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
}
.speaker-tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}
.speaker-content {
    flex: 1;
    overflow-y: auto;
    font-size: 14px;
    line-height: 1.8;
    color: var(--text-secondary);
}
.speaker-content .highlight {
    color: var(--accent);
    font-weight: 600;
}

/* ========== PPT 模板样式 ========== */

/* 封面 */
.ppt-cover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    color: #fff;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.ppt-cover::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.3;
}
.ppt-cover h1 {
    font-size: 52px;
    font-weight: 900;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
    text-shadow: 0 4px 20px rgba(0,0,0,0.2);
}
.ppt-cover .subtitle {
    font-size: 22px;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}
.ppt-cover .meta {
    position: absolute;
    bottom: 40px;
    font-size: 14px;
    opacity: 0.7;
}

/* 目录页 */
.ppt-toc {
    background: #fff;
}
.ppt-toc h2 {
    font-size: 32px;
    color: #1a1a2e;
    margin-bottom: 40px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--primary);
}
.toc-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}
.toc-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: #f8f9ff;
    border-radius: 12px;
    border-left: 4px solid var(--primary);
    transition: all 0.2s;
}
.toc-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(102,126,234,0.15);
}
.toc-num {
    width: 40px; height: 40px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    flex-shrink: 0;
}
.toc-text {
    font-size: 18px;
    color: #333;
    font-weight: 600;
}

/* 内容页 */
.ppt-content-page {
    background: #fff;
}
.ppt-content-page h2 {
    font-size: 34px;
    color: #1a1a2e;
    margin-bottom: 30px;
    padding-bottom: 12px;
    border-bottom: 3px solid var(--primary);
}
.ppt-content-page ul {
    list-style: none;
    padding: 0;
}
.ppt-content-page li {
    font-size: 22px;
    color: #333;
    margin-bottom: 18px;
    padding-left: 32px;
    position: relative;
    line-height: 1.5;
}
.ppt-content-page li::before {
    content: '';
    position: absolute;
    left: 0; top: 10px;
    width: 10px; height: 10px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 50%;
}
.ppt-content-page li strong {
    color: var(--primary-dark);
}

/* 表格页 */
.ppt-table-page {
    background: #fff;
}
.ppt-table-page h2 {
    font-size: 30px;
    color: #1a1a2e;
    margin-bottom: 24px;
}
.smart-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 16px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}
.smart-table thead th {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    padding: 14px 16px;
    text-align: left;
    font-weight: 600;
    font-size: 15px;
}
.smart-table tbody td {
    padding: 12px 16px;
    border-bottom: 1px solid #f0f0f5;
    color: #333;
}
.smart-table tbody tr:nth-child(even) {
    background: #fafbff;
}
.smart-table tbody tr:hover {
    background: #f0f3ff;
}
.smart-table tbody tr:last-child td {
    border-bottom: none;
}
.smart-table .cell-highlight {
    color: var(--primary);
    font-weight: 700;
}
.smart-table .cell-up {
    color: #22c55e;
    font-weight: 600;
}
.smart-table .cell-up::before {
    content: '▲ ';
    font-size: 10px;
}
.smart-table .cell-down {
    color: #ef4444;
    font-weight: 600;
}
.smart-table .cell-down::before {
    content: '▼ ';
    font-size: 10px;
}
.smart-table .cell-tag {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}
.tag-success {
    background: #dcfce7;
    color: #166534;
}
.tag-warning {
    background: #fef3c7;
    color: #92400e;
}
.tag-info {
    background: #dbeafe;
    color: #1e40af;
}

/* 图表页 */
.ppt-chart-page {
    background: #fff;
}
.ppt-chart-page h2 {
    font-size: 30px;
    color: #1a1a2e;
    margin-bottom: 16px;
}
.chart-subtitle {
    font-size: 14px;
    color: #666;
    margin-bottom: 24px;
}
.chart-area {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 32px;
    height: 260px;
    padding: 0 20px;
}
.chart-bar-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}
.chart-bar {
    width: 50px;
    border-radius: 8px 8px 0 0;
    background: linear-gradient(180deg, var(--primary), var(--primary-dark));
    position: relative;
    transition: height 1.5s ease-out;
}
.chart-bar::after {
    content: attr(data-val);
    position: absolute;
    top: -28px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 13px;
    font-weight: 700;
    color: var(--primary);
    white-space: nowrap;
}
.chart-bar.highlight {
    background: linear-gradient(180deg, #22c55e, #16a34a);
}
.chart-bar.highlight::after {
    color: #22c55e;
}
.chart-label {
    font-size: 13px;
    color: #666;
    text-align: center;
    white-space: nowrap;
}
.chart-legend-bar {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-top: 20px;
}
.legend-item-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #666;
}
.legend-dot-bar {
    width: 12px; height: 12px;
    border-radius: 3px;
}

/* 环形图 */
.donut-chart {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 50px;
    flex: 1;
}
.donut {
    width: 200px; height: 200px;
    border-radius: 50%;
    position: relative;
}
.donut-center {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 130px; height: 130px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 2px 10px rgba(0,0,0,0.1);
}
.donut-center .big {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary);
}
.donut-center .small {
    font-size: 12px;
    color: #999;
}

/* 双栏对比 */
.ppt-compare {
    background: #fff;
}
.ppt-compare h2 {
    font-size: 30px;
    color: #1a1a2e;
    margin-bottom: 28px;
}
.compare-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    flex: 1;
}
.compare-col {
    border-radius: 16px;
    padding: 28px;
    display: flex;
    flex-direction: column;
}
.compare-col.pro {
    background: linear-gradient(135deg, #f0f4ff, #e8eeff);
    border: 2px solid var(--primary);
}
.compare-col.con {
    background: #f8f8f8;
    border: 2px solid #e8e8e8;
}
.compare-col h3 {
    font-size: 20px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.compare-col.pro h3 { color: var(--primary); }
.compare-col.con h3 { color: #666; }
.compare-col ul {
    list-style: none;
    padding: 0;
    flex: 1;
}
.compare-col li {
    font-size: 15px;
    color: #444;
    margin-bottom: 14px;
    padding-left: 24px;
    position: relative;
    line-height: 1.5;
}
.compare-col.pro li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #22c55e;
    font-weight: bold;
}
.compare-col.con li::before {
    content: '✗';
    position: absolute;
    left: 0;
    color: #ef4444;
    font-weight: bold;
}

/* 图片展示 */
.ppt-gallery {
    background: #fff;
}
.ppt-gallery h2 {
    font-size: 30px;
    color: #1a1a2e;
    margin-bottom: 24px;
}
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    flex: 1;
}
.gallery-item {
    background: linear-gradient(135deg, #f5f5f5, #ebebeb);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 2px dashed #d0d0d0;
    transition: all 0.3s;
    padding: 20px;
}
.gallery-item:hover {
    border-color: var(--primary);
    background: linear-gradient(135deg, #f0f4ff, #e8eeff);
}
.gallery-item .g-icon {
    font-size: 36px;
}
.gallery-item .g-title {
    font-size: 14px;
    color: #333;
    font-weight: 600;
}
.gallery-item .g-desc {
    font-size: 12px;
    color: #999;
}

/* 时间轴 */
.ppt-timeline {
    background: #fff;
}
.ppt-timeline h2 {
    font-size: 30px;
    color: #1a1a2e;
    margin-bottom: 30px;
}
.timeline {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    padding-top: 20px;
}
.timeline::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 5%;
    right: 5%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--primary-dark));
    border-radius: 2px;
}
.timeline-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    position: relative;
    z-index: 1;
    width: 18%;
}
.timeline-dot {
    width: 40px; height: 40px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(102,126,234,0.3);
}
.timeline-dot.future {
    background: #e8e8e8;
    color: #999;
}
.timeline-text {
    text-align: center;
    font-size: 13px;
    color: #333;
    font-weight: 600;
}
.timeline-date {
    font-size: 11px;
    color: #999;
}

/* 结尾页 */
.ppt-ending {
    background: linear-gradient(135deg, #1a1a2e 0%, #0f0f23 100%);
    color: #fff;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.ppt-ending::before {
    content: '';
    position: absolute;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(102,126,234,0.15), transparent 70%);
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
}
.ppt-ending h2 {
    font-size: 48px;
    font-weight: 900;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}
.ppt-ending p {
    font-size: 20px;
    opacity: 0.8;
    position: relative;
    z-index: 1;
}
.ppt-ending .contact {
    margin-top: 40px;
    padding: 16px 40px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 12px;
    font-size: 16px;
    position: relative;
    z-index: 1;
}

/* ========== 解锁弹窗 ========== */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(10px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.modal-overlay.active { display: flex; }

.modal-box {
    background: linear-gradient(135deg, #1a1a2e, #0f0f23);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 40px;
    max-width: 440px;
    width: 100%;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.modal-box::before {
    content: '';
    position: absolute;
    top: -100px; right: -100px;
    width: 200px; height: 200px;
    background: radial-gradient(circle, rgba(102,126,234,0.2), transparent);
}
.modal-icon {
    font-size: 48px;
    margin-bottom: 16px;
}
.modal-box h3 {
    font-size: 24px;
    margin-bottom: 8px;
}
.modal-box > p {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 24px;
}
.price-tag {
    font-size: 56px;
    font-weight: 900;
    color: var(--accent);
    margin: 20px 0;
    text-shadow: 0 0 30px rgba(100,255,218,0.3);
}
.price-tag span {
    font-size: 20px;
    color: var(--text-secondary);
}
.benefits {
    text-align: left;
    margin: 20px 0;
    padding: 20px;
    background: rgba(255,255,255,0.03);
    border-radius: 12px;
}
.benefits li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 14px;
    color: var(--text-secondary);
}
.benefits li:last-child { margin-bottom: 0; }
.benefits .check {
    color: var(--accent);
    font-weight: bold;
}
.code-input {
    width: 100%;
    padding: 16px;
    background: rgba(255,255,255,0.05);
    border: 2px solid var(--border);
    border-radius: 12px;
    color: #fff;
    font-size: 18px;
    text-align: center;
    letter-spacing: 4px;
    margin: 16px 0;
    outline: none;
    transition: all 0.2s;
}
.code-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(102,126,234,0.2);
}
.code-input::placeholder {
    letter-spacing: 2px;
    font-size: 14px;
    color: #5a6680;
}
.unlock-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border: none;
    border-radius: 12px;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
}
.unlock-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(102,126,234,0.3);
}
.modal-hint {
    margin-top: 16px;
    font-size: 13px;
    color: #5a6680;
}
.modal-hint a {
    color: var(--primary);
    text-decoration: none;
}

/* ========== Toast 提示 ========== */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: rgba(30,30,50,0.95);
    border: 1px solid var(--border);
    padding: 14px 28px;
    border-radius: 12px;
    font-size: 14px;
    color: var(--text);
    z-index: 2000;
    opacity: 0;
    transition: all 0.3s;
    pointer-events: none;
}
.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* ========== 响应式 ========== */
@media (max-width: 768px) {
    .hero h1 { font-size: 28px; }
    .hero p { font-size: 15px; }
    .thumb-panel { display: none; }
    .slide-content { padding: 25px; }
    .ppt-cover h1 { font-size: 30px; }
    .ppt-content-page h2 { font-size: 22px; }
    .ppt-content-page li { font-size: 16px; }
    .ppt-table-page h2, .ppt-chart-page h2, .ppt-compare h2, .ppt-gallery h2 { font-size: 20px; }
    .smart-table { font-size: 12px; }
    .smart-table th, .smart-table td { padding: 8px 10px; }
    .chart-area { gap: 16px; height: 180px; }
    .chart-bar { width: 30px; }
    .compare-grid { grid-template-columns: 1fr; gap: 16px; }
    .gallery-grid { grid-template-columns: 1fr; gap: 10px; }
    .timeline { flex-direction: column; gap: 20px; }
    .timeline::before { display: none; }
    .timeline-item { width: 100%; flex-direction: row; gap: 16px; }
    .ppt-ending h2 { font-size: 32px; }
    .toolbar-actions { flex-wrap: wrap; }
    .toolbar-btn { padding: 6px 10px; font-size: 12px; }
}