/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 修复后的全局变量 */
:root {
    --sidebar-width: 250px;
    --sidebar-bg: #ffffff;
    --main-bg: #ffffff;
    --accent-color: #007bff;
    --accent-hover: #0056b3;
    --text-color: #2c3e50;
    --text-light: #6c757d;
    --text-muted: #adb5bd;
    --border-color: #e9ecef;
    --border-light: #f1f3f4;
    --hover-bg: rgba(0, 123, 255, 0.08);
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
    --border-radius: 8px;
    --border-radius-sm: 6px;
    --border-radius-lg: 12px;
    --transition-base: all 0.3s ease;
}

html, body {
    height: 100%;
    overflow-y: auto;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Microsoft YaHei', sans-serif;
    color: var(--text-color);
    background-color: var(--main-bg);
    margin: 0;
    padding: 0;
    padding-left: var(--sidebar-width);
    height: 100vh;
    max-height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    line-height: 1.6;
}

/* 侧边栏样式优化 */
#sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-width);
    height: 100%;
    background-color: var(--sidebar-bg);
    border-right: 1px solid var(--border-color);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
}

/* Logo容器优化 */
.logo-container {
    padding: 20px 15px;
    text-align: center;
    border-bottom: 1px solid var(--border-light);
    background: rgba(0, 123, 255, 0.02);
}

.logo {
    width: 180px;
    height: 135px;
    object-fit: contain;
    transition: var(--transition-base);
}

.logo:hover {
    transform: scale(1.02);
}

/* 侧边菜单优化 */
.side-menu {
    margin-top: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    padding: 0 10px;
}

.side-menu ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.side-menu li {
    padding: 0;
}

.side-menu a {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition-base);
    border-radius: var(--border-radius-sm);
    font-weight: 500;
    position: relative;
}

.side-menu a:hover {
    background-color: var(--hover-bg);
    transform: translateX(3px);
    color: var(--accent-color);
}

.side-menu a.active {
    background-color: var(--hover-bg);
    color: var(--accent-color);
    font-weight: 600;
}

.side-menu a.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--accent-color);
    border-radius: 0 2px 2px 0;
}

.side-menu img {
    width: 20px;
    height: 20px;
    margin-right: 12px;
    opacity: 0.8;
    transition: var(--transition-base);
}

.side-menu a:hover img,
.side-menu a.active img {
    opacity: 1;
}

/* 主内容区域优化 */
#main-content {
    flex: 1 0 auto;
    padding: 30px;
    width: 100%;
    max-width: none;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* 分屏布局 - 左右分屏模式 */
#main-content.split-screen {
    display: flex;
    flex-direction: row;
    height: calc(100vh - 70px);
    padding: 0;
    max-width: none;
    margin: 0;
    width: 100%;
    align-items: stretch;
}
/* 输入面板 - 左侧区域 */
.input-panel {
    flex: 0 0 40%;
    max-width: 500px;
    min-width: 350px;
    padding: 30px;
    overflow-y: visible;     /* 从 auto 改为 visible */
    border-right: 1px solid var(--border-color);
    background-color: white;
    height: 100%;
}
/* 预览面板 - 右侧区域 */
.preview-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    background-color: #f5f5f5;
    height: 100vh;
    overflow-y: auto;
}　
/* 首页样式优化 */
.home-hero {
    text-align: center;
    width: 100%;
    max-width: 900px;
    padding: 60px 20px 40px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.home-hero h1 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 60px;
    width: 100%;
    text-align: center;
    background: linear-gradient(135deg, var(--accent-color), #6f42c1);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.2;
}

/* 搜索容器优化 */
.search-container {
    width: 100%;
    max-width: 650px;
    margin: 0 auto 50px;
    display: flex;
    box-shadow: var(--shadow-md);
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid var(--border-light);
    transition: var(--transition-base);
}

.search-container:hover {
    box-shadow: var(--shadow-lg);
}

.search-input {
    flex-grow: 1;
    padding: 16px 20px;
    border: none;
    font-size: 16px;
    background: white;
    color: var(--text-color);
}

.search-input:focus {
    outline: none;
}

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

.search-button {
    background: linear-gradient(135deg, var(--accent-color), var(--accent-hover));
    color: white;
    border: none;
    padding: 0 24px;
    cursor: pointer;
    transition: var(--transition-base);
    min-width: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.search-button:hover {
    background: linear-gradient(135deg, var(--accent-hover), #003d82);
    transform: scale(1.02);
}

/* 操作按钮组优化 */
.action-buttons {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin: 0 0 50px;
    width: 100%;
}

.button-primary, .button-secondary {
    padding: 14px 28px;
    border-radius: var(--border-radius);
    display: inline-flex;
    align-items: center;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition-base);
    font-size: 15px;
    position: relative;
    overflow: hidden;
}

.button-primary {
    background: linear-gradient(135deg, #6c757d, #5a6268);  /* 灰色系渐变 */
    color: white;
    border: none;
    padding: 12px 24px;                    /* 调整：更短更高 */
    border-radius: 8px;                    /* 圆角 */
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;                      /* 最小宽度，不要太宽 */
    height: 44px;                          /* 固定高度，更高 */
    box-shadow: 0 2px 8px rgba(108, 117, 125, 0.2);  /* 悬浮阴影 */
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.button-primary:hover {
    background: linear-gradient(135deg, #5a6268, #495057);  /* 悬浮时更深的灰色 */
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(108, 117, 125, 0.3);      /* 悬浮时阴影更强 */
}

.button-secondary {
    background-color: white;
    color: var(--text-color);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.button-secondary:hover {
    background-color: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent-color);
}

.button-icon {
    width: 18px;
    height: 18px;
    margin-right: 8px;
}

.intro-text {
    width: 100%;
    max-width: 750px;
    margin: 30px auto 0;
    line-height: 1.7;
    color: var(--text-light);
    font-size: 17px;
    text-align: center;
}

footer {
    flex-shrink: 0;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    text-align: center;
    padding: 15px 0;
    margin-top: auto;
    border-top: 1px solid var(--border-light);
    position: relative;
    width: 100vw;
    margin-left: calc(-1 * var(--sidebar-width));
    padding-left: var(--sidebar-width);
    left: 0;
    right: 0;
    box-sizing: border-box;
}

.footer-content {
    color: var(--text-light);
    font-size: 14px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
}

.icp-info {
    margin-top: 3px;
    font-size: 12px;
    color: var(--text-muted);
}

/* 响应式设计优化 */
@media (max-width: 768px) {
    body {
        padding-left: 0;
        padding-top: 60px;
    }

    #sidebar {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 60px;
        flex-direction: row;
        align-items: center;
        padding: 0 15px;
        box-shadow: var(--shadow-sm);
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }

    .logo-container {
        border-bottom: none;
        padding: 8px 0;
        background: transparent;
    }

    .logo {
        width: 45px;
        height: 45px;
    }

    .side-menu {
        margin-top: 0;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background-color: var(--sidebar-bg);
        display: none;
        padding: 10px;
        box-shadow: var(--shadow-md);
        z-index: 999;
    }

    .side-menu.active {
        display: block;
    }

    #main-content {
        padding: 20px 15px;
    }
    
    #main-content.split-screen {
        flex-direction: column;
        height: auto;
        min-height: calc(100vh - 60px);
    }
    
    footer {
        margin-left: 0;
        padding-left: 0;
        width: 100%;
    }
    
    .home-hero {
        padding: 30px 15px 20px;
    }
    
    .home-hero h1 {
        font-size: 32px;
        margin-bottom: 40px;
    }
    
    .action-buttons {
        flex-direction: column;
        gap: 16px;
        align-items: center;
    }
    
    .button-primary, .button-secondary {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
}

/* 移动菜单切换按钮 */
.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: var(--border-radius-sm);
    transition: var(--transition-base);
}

.mobile-menu-toggle:hover {
    background: var(--hover-bg);
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 24px;
        height: 18px;
    }

    .mobile-menu-toggle span {
        height: 2px;
        width: 100%;
        background-color: var(--text-color);
        transition: var(--transition-base);
        border-radius: 1px;
    }
}

/* 页面标题样式 */
.page-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 30px;
    color: var(--text-color);
    padding-bottom: 15px;
    text-align: center;
}

/* 功能介绍页面样式 */
.flow-chart {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    padding: 30px;
    border-radius: var(--border-radius-lg);
    margin: 30px 0;
    text-align: center;
    box-shadow: var(--shadow-sm);
    width: 100%;
    border: 1px solid var(--border-light);
}

.flow-chart h2 {
    font-weight: 600;
    color: var(--text-light);
    font-size: 20px;
}

.feature-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin: 40px 0;
    width: 100%;
}

.feature-item {
    background-color: white;
    border-radius: var(--border-radius-lg);
    padding: 30px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-base);
    text-align: center;
    border: 1px solid var(--border-light);
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature-item img {
    width: 48px;
    height: 48px;
    margin-bottom: 20px;
}

.feature-item h3 {
    color: var(--text-color);
    margin-bottom: 15px;
    font-size: 18px;
    font-weight: 600;
}

.feature-item p {
    color: var(--text-light);
    line-height: 1.6;
}

/* 生成PPT页面样式 - 保留但不与预览系统冲突 */
.generate-container {
    display: flex;
    gap: 40px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

@media (max-width: 992px) {
    .generate-container {
        flex-direction: column;
        gap: 30px;
    }
}

.input-area {
    flex: 1;
    background-color: white;
    border-radius: var(--border-radius-lg);
    padding: 30px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
}

/* 注意：重命名避免与主预览系统冲突 */
.home-preview-area {
    flex: 1;
    background-color: white;
    border-radius: var(--border-radius-lg);
    padding: 30px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
}

/* 表单样式 - 保持一致性 */
.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-color);
    font-size: 14px;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 15px;
    color: var(--text-color);
    transition: var(--transition-base);
    background: white;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.upload-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

#file-name {
    color: var(--text-light);
    font-size: 14px;
}

#preview-placeholder {
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: white;
    border: 2px dashed var(--border-color);
    border-radius: var(--border-radius);
    color: var(--text-light);
    margin-top: 20px;
    transition: var(--transition-base);
}

#preview-placeholder:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.home-preview-area h2 {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--text-color);
    font-weight: 600;
}

#preview-result {
    margin-top: 20px;
    text-align: center;
}

/* 设置页面样式 */
.login-register-section {
    margin-bottom: 40px;
}

.login-register {
    display: flex;
    gap: 15px;
}

.section-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-color);
}
/* 优化版标记 2025-06-25 第一段 */
/* 会员方案样式优化 */
.membership-plans {
    margin-bottom: 60px;
}

.plans-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 30px 0;
}

.plan-item {
    background-color: white;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-base);
    overflow: hidden;
    position: relative;
    border: 1px solid var(--border-light);
}

.plan-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.plan-header {
    padding: 30px 25px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    text-align: center;
    border-bottom: 1px solid var(--border-light);
}

.plan-item h3 {
    font-size: 22px;
    margin-bottom: 12px;
    color: var(--text-color);
    font-weight: 700;
}

.price {
    font-size: 32px;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 8px;
}

.price span {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-light);
}

.plan-features {
    list-style: none;
    padding: 30px 25px;
    margin: 0;
}

.plan-features li {
    padding: 12px 0 12px 35px;
    position: relative;
    font-size: 15px;
    line-height: 1.5;
    color: var(--text-color);
}

.plan-features li:before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 12px;
    color: var(--accent-color);
    font-weight: 700;
    font-size: 16px;
}

.plan-features li.not-available {
    color: var(--text-muted);
    text-decoration: line-through;
}

.plan-features li.not-available:before {
    content: "×";
    color: #dc3545;
}

.plan-item .button-primary {
    margin: 0 25px 30px;
    width: calc(100% - 50px);
    justify-content: center;
}

.current-plan {
    cursor: default;
    opacity: 0.7;
    pointer-events: none;
}

.recommended {
    border: 2px solid var(--accent-color);
    position: relative;
}

.recommend-badge {
    position: absolute;
    top: 20px;
    right: -35px;
    background: linear-gradient(135deg, var(--accent-color), var(--accent-hover));
    color: white;
    padding: 8px 40px;
    transform: rotate(45deg);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: var(--shadow-sm);
}

/* FAQ样式优化 */
.faq-section {
    margin-bottom: 60px;
}

.faq-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.faq-item {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    border: 1px solid var(--border-light);
    transition: var(--transition-base);
}

.faq-item:hover {
    box-shadow: var(--shadow-md);
}

.faq-question {
    padding: 20px 25px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    font-weight: 600;
    color: var(--text-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    user-select: none;
    transition: var(--transition-base);
    border-bottom: 1px solid var(--border-light);
}

.faq-question:hover {
    background: linear-gradient(135deg, #e9ecef, #dee2e6);
}

.faq-question::after {
    content: '+';
    font-size: 20px;
    font-weight: 700;
    color: var(--accent-color);
    transition: var(--transition-base);
}

.faq-item.active .faq-question::after {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 25px;
    color: var(--text-light);
    line-height: 1.7;
    max-height: 0;
    overflow: hidden;
    transition: var(--transition-base);
}

.faq-item.active .faq-answer {
    padding: 20px 25px;
    max-height: 200px;
}

.faq-answer p {
    margin: 0;
}

/* 移动端优化 - 统一版本 */
.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: var(--border-radius-sm);
    transition: var(--transition-base);
    position: relative;
    z-index: 1001;
}

.mobile-menu-toggle:hover {
    background: var(--hover-bg);
}

.mobile-menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    margin: 4px 0;
    background-color: var(--text-color);
    transition: var(--transition-base);
    border-radius: 1px;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
        position: absolute;
        right: 15px;
        top: 50%;
        transform: translateY(-50%);
    }
    
    .plans-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .plan-item {
        margin: 0 auto;
        max-width: 400px;
    }
    
    .faq-question {
        padding: 15px 20px;
        font-size: 15px;
    }
    
    .faq-answer {
        padding: 0 20px;
    }
    
    .faq-item.active .faq-answer {
        padding: 15px 20px;
    }
}

/* 提高可访问性 */
.faq-question[aria-expanded="true"] {
    background: linear-gradient(135deg, #e9ecef, #dee2e6);
}

.faq-answer[aria-hidden="true"] {
    display: none;
}

/* PPT生成器相关样式 - 重命名避免冲突 */
.legacy-generate-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin: 40px 0;
}

.legacy-input-section {
    flex: 1;
    min-width: 320px;
    background: white;
    padding: 25px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
}

.legacy-preview-section {
    flex: 1;
    min-width: 320px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 25px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
}

/* 表单元素 - 保持与主系统一致 */
.legacy-form-group {
    margin-bottom: 24px;
}

.legacy-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-color);
    font-size: 14px;
}

.legacy-form-group input[type="text"],
.legacy-form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 15px;
    color: var(--text-color);
    background: white;
    transition: var(--transition-base);
}

.legacy-form-group input[type="text"]:focus,
.legacy-form-group select:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

/* 生成按钮 - 统一样式 */
.btn-generate {
    background: linear-gradient(135deg, #6c757d, #5a6268);  /* 灰色系渐变 */
    color: white;
    border: none;
    padding: 12px 24px;                    /* 调整：更短更高 */
    border-radius: 8px;                    /* 圆角 */
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 120px;                      /* 最小宽度，不要太宽 */
    height: 44px;                          /* 固定高度，更高 */
    box-shadow: 0 2px 8px rgba(108, 117, 125, 0.2);  /* 悬浮阴影 */
}

.btn-generate:hover {
    background: linear-gradient(135deg, #5a6268, #495057);  /* 悬浮时更深的灰色 */
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(108, 117, 125, 0.3);      /* 悬浮时阴影更强 */
}

.btn-generate:disabled {
    background: #adb5bd;                   /* 禁用时浅灰色 */
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 2px 4px rgba(173, 181, 189, 0.2);
}

/* 加载状态 - 统一设计 */
.loading-spinner {
    text-align: center;
    margin: 30px 0;
    padding: 20px;
}

.spinner {
    border: 3px solid rgba(0, 123, 255, 0.1);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border-top-color: var(--accent-color);
    animation: spinner-rotate 1s linear infinite;
    margin: 0 auto 16px;
}

/* 消息样式 - 统一设计 */
.error-message {
    color: #2c3e50;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    padding: 15px 20px;
    border-radius: var(--border-radius);
    margin-top: 15px;
    border: 1px solid #dee2e6;
    border-left: 4px solid #6c757d;
    font-weight: 500;
}

.success-result {
    text-align: center;
    padding: 30px;
    background: linear-gradient(135deg, #d1edff, #e3f2fd);
    border-radius: var(--border-radius-lg);
    border: 1px solid #b3e5fc;
    margin-top: 20px;
}

/* 注释旧样式 - 已迁移到genspark-enhanced.css
.download-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    text-decoration: none;
    padding: 14px 28px;
    border-radius: var(--border-radius);
    margin-top: 20px;
    transition: var(--transition-base);
    font-weight: 600;
    box-shadow: var(--shadow-sm);
}

.download-button:hover {
    background: linear-gradient(135deg, #0056b3, #004085);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    text-decoration: none;
    color: white;
}
*/
/* 响应式调整 */
@media (max-width: 992px) {
    .legacy-generate-container {
        flex-direction: column;
        gap: 25px;
    }
    
    .legacy-input-section,
    .legacy-preview-section {
        min-width: auto;
    }
}

@media (max-width: 768px) {
    .legacy-input-section,
    .legacy-preview-section {
        padding: 20px;
        margin: 0;
    }
    
    .btn-generate,
    .download-button {
        width: 100%;
        justify-content: center;
    }
}

/* 减少动画偏好支持 */
@media (prefers-reduced-motion: reduce) {
    .spinner {
        animation: none;
        border-top-color: transparent;
    }
    
    .faq-question::after {
        transition: none;
    }
    
    .mobile-menu-toggle span {
        transition: none;
    }
}

/* === AI智能PPT网格布局支持 === */
.slide {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: minmax(60px, auto);
  gap: 24px;
  align-items: start;
  justify-items: stretch;
  position: relative;
  overflow: hidden;
}

/* -------------------------------------- */
/*   下载下拉菜单 - 浅灰色最终版        */
/* -------------------------------------- */

/* 1. 主按钮的容器 */
.download-dropdown {
    position: relative;
    display: inline-block;
}

/* 2. 下拉菜单的容器 */
.download-menu {
    position: fixed; /* 使用fixed定位，确保位置在按钮下方 */
    background: transparent; /* 透明背景 */
    border: none;
    box-shadow: none;
    z-index: 1000;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px; /* 按钮之间的垂直间距 */
    margin-top: 6px; /* 主按钮和第一个选项之间的距离 */
}

/* 3. 菜单中的每个选项 (核心修改) */
.download-option {
    width: 100%;
    padding: 2px 15px; /* 高度为5px */
    border: 1px solid #333333; /* 修改：黑色边框 */
    background: #000000; /* 修改：黑色背景 */
    text-align: left;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #ffffff; /* 修改：白色文字 */
    transition: all 0.2s ease;
    border-radius: 4px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05); /* 修改：更轻微的阴影 */
}

/* 4. 鼠标悬停在选项上时的效果 */
.download-option:hover {
    background-color: #333333; /* 修改：悬停时变为深灰色 */
    border-color: #555555;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* 5. 选项中的图标样式 */
.download-option i {
    color: #ffffff;
}

/* 6. 主下载按钮小箭头的旋转动画 */
.dropdown-toggle.active .fa-chevron-down {
    transform: rotate(180deg);
}

/* ========================================
   首页移动端优化 - 更紧凑版（输入框和文字更小）
   ======================================== */
@media (max-width: 768px) {
    /* 中央内容区域 */
    .content-container {
        max-width: 100%;
        padding: 8px;
        margin-top: 5px !important;
    }
    
    /* 页面标题 - 更小 */
    .page-title {
        font-size: 16px !important;
        margin-bottom: 10px !important;
    }
    
    /* 搜索框 - 更小 */
    .search-box {
        width: 100%;
        margin-bottom: 8px;
    }
    
    .search-input {
        height: 40px;
        font-size: 12px;
        padding: 8px 42px 8px 8px;
    }
    
    .search-button {
        width: 40px;
        height: 38px;
    }
    
    .search-button svg {
        width: 16px;
        height: 16px;
    }
    
    /* 介绍文本 - 更小 */
    .intro-text {
        margin-top: 10px !important;
        font-size: 11px;
        padding: 0;
        line-height: 1.3;
    }
    
    /* 功能模块区域 */
    .function-modules {
        margin: 12px 0 !important;
    }
    
    /* 功能模块卡片 - 保持不变（4个一行） */
    .modules-container {
        flex-wrap: wrap !important;
        gap: 6px;
        justify-content: space-between;
    }
    
    .module-card {
        flex: 0 0 calc(25% - 5px) !important;
        max-width: calc(25% - 5px) !important;
        padding: 8px 4px !important;
        margin: 0 !important;
        border-radius: 8px !important;
    }
    
    .module-icon {
        font-size: 20px !important;
        margin-bottom: 4px !important;
    }
    
    .module-name {
        font-size: 10px !important;
        line-height: 1.1 !important;
        margin: 0 !important;
    }
    
    .module-details {
        display: none !important;
    }
    
    /* 特性介绍卡片 */
    .features-container {
        margin-top: 15px !important;
        gap: 10px;
    }
    
    .feature-card {
        min-width: 100%;
        max-width: 100%;
        padding: 12px;
    }
    
    .feature-icon {
        font-size: 24px;
        margin-bottom: 6px;
    }
    
    .feature-title {
        font-size: 13px;
        margin-bottom: 6px;
    }
    
    .feature-description {
        font-size: 11px;
        line-height: 1.3;
    }
}

/* 小屏手机优化 */
@media (max-width: 374px) {
    .page-title {
        font-size: 14px !important;
        margin-bottom: 8px !important;
    }
    
    .search-input {
        height: 36px;
        font-size: 11px;
    }
    
    .search-button {
        width: 36px;
        height: 34px;
    }
    
    .intro-text {
        font-size: 10px;
    }
    
    .module-card {
        padding: 6px 3px !important;
    }
    
    .module-icon {
        font-size: 18px !important;
    }
    
    .module-name {
        font-size: 9px !important;
    }
}


/* ========================================
   功能页面移动端优化 - 横向排列
   ======================================== */
@media (max-width: 768px) {
    /* 功能模块区域 */
    .modules-section {
        margin: 20px auto;
        padding: 0 8px;
    }
    
    /* 功能卡片网格 - 横向flex布局，自动换行 */
    .modules-grid {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        gap: 8px !important;
        justify-content: center !important;
    }
    
    /* 功能卡片 - 每行最多3个 */
    .function-card {
        flex: 0 0 calc(33.333% - 6px) !important;
        max-width: calc(33.333% - 6px) !important;
        width: calc(33.333% - 6px) !important;
        padding: 14px 8px !important;
        margin: 0 !important;
        border-radius: 12px !important;
    }
    
    .function-icon {
        font-size: 28px !important;
        margin-bottom: 6px !important;
    }
    
    .function-name {
        font-size: 12px !important;
        margin-bottom: 4px !important;
        line-height: 1.2 !important;
    }
    
    .function-brief {
        font-size: 10px !important;
        line-height: 1.2 !important;
        margin: 0 !important;
    }
    
    /* 弹窗优化 */
    .modal-popup {
        width: 95%;
        max-width: 95%;
        padding: 20px;
        max-height: 85vh;
    }
    
    .modal-popup h2 {
        font-size: 18px;
        margin-bottom: 16px;
    }
    
    .modal-close {
        font-size: 20px;
        top: 12px;
        right: 12px;
    }
    
    .modal-section {
        margin-bottom: 16px;
    }
    
    .modal-section h4 {
        font-size: 14px;
        margin-bottom: 8px;
    }
    
    .modal-section p {
        font-size: 12px;
        line-height: 1.4;
        margin: 6px 0;
    }
    
    .usage-example {
        padding: 10px;
        font-size: 12px;
    }
    
    .usage-list li,
    .scenario-list li {
        font-size: 12px;
        padding: 4px 0;
        padding-left: 16px;
    }
    
    .modal-button {
        width: 100%;
        padding: 12px;
        font-size: 14px;
        margin-top: 16px;
    }
    
    /* 功能介绍页面标题 */
    #main-content .page-title {
        margin-top: 20px !important;
        padding-top: 8px !important;
        font-size: 22px !important;
        margin-bottom: 20px !important;
    }
}

/* 小屏手机优化 */
@media (max-width: 374px) {
    .modules-section {
        margin: 15px auto;
        padding: 0 6px;
    }
    
    .modules-grid {
        gap: 6px !important;
    }
    
    .function-card {
        flex: 0 0 calc(33.333% - 4px) !important;
        max-width: calc(33.333% - 4px) !important;
        width: calc(33.333% - 4px) !important;
        padding: 12px 6px !important;
    }
    
    .function-icon {
        font-size: 24px !important;
        margin-bottom: 5px !important;
    }
    
    .function-name {
        font-size: 11px !important;
    }
    
    .function-brief {
        font-size: 9px !important;
    }
    
    #main-content .page-title {
        font-size: 20px !important;
        margin-top: 15px !important;
        margin-bottom: 15px !important;
    }
}

/* ========================================
   设置页面移动端优化 - 横向一字排开
   ======================================== */
@media (max-width: 768px) {
    /* 页面标题 */
    .page-title {
        font-size: 22px !important;
        margin: 20px 0 20px 0 !important;
    }
    
    /* 三个卡片容器 - 横向排列 */
    .settings-cards {
        flex-direction: row !important;
        gap: 8px !important;
        padding: 0 8px !important;
        align-items: stretch !important;
    }
    
    /* 单个卡片 - 每个占1/3宽度 */
    .setting-card {
        flex: 1 !important;
        max-width: none !important;
        width: calc(33.333% - 6px) !important;
        padding: 16px 8px !important;
        border-radius: 12px !important;
    }
    
    .card-icon {
        font-size: 32px !important;
        margin-bottom: 8px !important;
    }
    
    .card-title {
        font-size: 13px !important;
        margin: 0 0 6px 0 !important;
        line-height: 1.2 !important;
    }
    
    .card-desc {
        font-size: 10px !important;
        line-height: 1.3 !important;
        margin: 0 !important;
    }
}

/* 小屏手机优化 */
@media (max-width: 374px) {
    .page-title {
        font-size: 20px !important;
        margin: 15px 0 15px 0 !important;
    }
    
    .settings-cards {
        gap: 6px !important;
        padding: 0 6px !important;
    }
    
    .setting-card {
        padding: 14px 6px !important;
    }
    
    .card-icon {
        font-size: 28px !important;
        margin-bottom: 6px !important;
    }
    
    .card-title {
        font-size: 12px !important;
        margin: 0 0 4px 0 !important;
    }
    
    .card-desc {
        font-size: 9px !important;
    }
}