/**
 * PPT生成器样式文件
 * 
 * @package Pixelshare
 * @subpackage PPT-Generator
 * @version 1.0.0
 */

/* 主容器样式 */
.ppt-generator-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* 头部样式 */
.ppt-generator-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    color: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.ppt-generator-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 15px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.ppt-generator-header .dashicons {
    font-size: 2.5rem;
    width: auto;
    height: auto;
}

.ppt-generator-subtitle {
    font-size: 1.2rem;
    margin: 0;
    opacity: 0.9;
    font-weight: 300;
}

/* 表单包装器 */
.ppt-generator-form-wrapper {
    background: white;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
}

/* 表单样式 */
.ppt-generator-form {
    max-width: 100%;
}

.form-row {
    margin-bottom: 25px;
}

.form-row-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
}

.form-group label .dashicons {
    color: #667eea;
    width: auto;
    height: auto;
}

.required {
    color: #e74c3c;
    font-weight: bold;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 15px;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #fafbfc;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
    font-family: inherit;
    line-height: 1.6;
}

.form-help {
    margin-top: 5px;
    font-size: 0.875rem;
    color: #666;
    font-style: italic;
}

/* 生成按钮 */
.ppt-generate-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 200px;
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.3);
}

.ppt-generate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.ppt-generate-btn:active {
    transform: translateY(0);
}

.ppt-generate-btn .dashicons {
    width: auto;
    height: auto;
}

.btn-loading {
    display: none;
}

.spinning {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* 结果区域 */
.ppt-result {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    border-radius: 15px;
    padding: 30px;
    color: white;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.result-header h3 {
    margin: 0 0 20px 0;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.result-header .dashicons {
    width: auto;
    height: auto;
}

.result-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 8px;
    backdrop-filter: blur(10px);
}

.info-item .dashicons {
    width: auto;
    height: auto;
    font-size: 1.2rem;
}

.info-item .label {
    font-weight: 600;
}

.info-item .value {
    font-weight: 700;
    color: #fff;
}

.result-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.action-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.download-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.download-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

.preview-btn {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.preview-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}

.edit-btn {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.15);
}

.edit-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* 错误区域 */
.ppt-error {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    border-radius: 15px;
    padding: 30px;
    color: white;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.error-header h3 {
    margin: 0 0 20px 0;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.error-header .dashicons {
    width: auto;
    height: auto;
}

.error-content p {
    margin: 0 0 20px 0;
    font-size: 1.1rem;
}

.error-retry-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 12px 24px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.error-retry-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

/* 使用提示 */
.ppt-tips {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 30px;
    border-left: 5px solid #667eea;
}

.ppt-tips h4 {
    margin: 0 0 20px 0;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.3rem;
}

.ppt-tips .dashicons {
    color: #667eea;
    width: auto;
    height: auto;
}

.ppt-tips ul {
    margin: 0;
    padding-left: 20px;
}

.ppt-tips li {
    margin-bottom: 10px;
    line-height: 1.6;
    color: #555;
}

.ppt-tips strong {
    color: #333;
}

/* 页面模板样式 */
.page-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 40px 20px;
}

.page-title {
    font-size: 3rem;
    font-weight: 700;
    margin: 0 0 20px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-description p {
    font-size: 1.2rem;
    color: #666;
    margin: 0;
}

/* 功能特色 */
.features-section,
.workflow-section,
.scenarios-section {
    margin-bottom: 60px;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 40px 0;
    color: #333;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.feature-item {
    text-align: center;
    padding: 30px 20px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.feature-icon {
    margin-bottom: 20px;
}

.feature-icon .dashicons {
    font-size: 3rem;
    width: auto;
    height: auto;
    color: #667eea;
}

.feature-item h3 {
    margin: 0 0 15px 0;
    font-size: 1.3rem;
    color: #333;
}

.feature-item p {
    margin: 0;
    color: #666;
    line-height: 1.6;
}

/* 使用流程 */
.workflow-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.step {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 20px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
}

.step-number {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    flex-shrink: 0;
}

.step-content h3 {
    margin: 0 0 10px 0;
    font-size: 1.2rem;
    color: #333;
}

.step-content p {
    margin: 0;
    color: #666;
    line-height: 1.6;
}

/* 应用场景 */
.scenarios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.scenario-item {
    padding: 25px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
    border-left: 4px solid #667eea;
    transition: all 0.3s ease;
}

.scenario-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.12);
}

.scenario-item h3 {
    margin: 0 0 15px 0;
    font-size: 1.2rem;
    color: #333;
}

.scenario-item p {
    margin: 0;
    color: #666;
    line-height: 1.6;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .ppt-generator-container {
        padding: 15px;
    }
    
    .ppt-generator-header h2 {
        font-size: 2rem;
    }
    
    .ppt-generator-form-wrapper {
        padding: 25px;
    }
    
    .form-row-3 {
        grid-template-columns: 1fr;
    }
    
    .result-actions {
        flex-direction: column;
    }
    
    .action-btn {
        text-align: center;
        justify-content: center;
    }
    
    .page-title {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .features-grid,
    .workflow-steps,
    .scenarios-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .ppt-generator-header {
        padding: 20px 15px;
    }
    
    .ppt-generator-header h2 {
        font-size: 1.8rem;
        flex-direction: column;
        gap: 10px;
    }
    
    .ppt-generator-form-wrapper {
        padding: 20px;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
} 

/* PPT生成器样式文件 */

/* 进度信息样式 */
.ppt-progress-message {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 12px;
    margin: 20px 0;
    text-align: center;
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.3);
    animation: slideInUp 0.5s ease-out;
}

.progress-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    font-size: 16px;
    font-weight: 500;
}

.progress-content .dashicons {
    font-size: 24px;
    animation: spin 2s linear infinite;
}

/* 错误信息样式 */
.ppt-error-message {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    color: white;
    padding: 20px;
    border-radius: 12px;
    margin: 20px 0;
    text-align: center;
    box-shadow: 0 8px 32px rgba(255, 107, 107, 0.3);
    animation: slideInUp 0.5s ease-out;
}

.error-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    font-size: 16px;
    font-weight: 500;
}

.error-content .dashicons {
    font-size: 24px;
}

/* 结果区域样式 */
.ppt-result {
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    margin: 30px 0;
    overflow: hidden;
    animation: slideInUp 0.6s ease-out;
}

.result-header {
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
    color: white;
    padding: 25px 30px;
    text-align: center;
}

.result-header h3 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.result-header .dashicons {
    font-size: 28px;
}

.result-content {
    padding: 30px;
}

.result-info {
    margin-bottom: 25px;
}

.result-info p {
    margin: 10px 0;
    font-size: 16px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
}

.result-info strong {
    color: #667eea;
    min-width: 80px;
}

.result-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.download-btn,
.preview-btn,
.edit-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 14px;
}

.download-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    color: white;
}

.preview-btn {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    color: white;
}

.preview-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(243, 156, 18, 0.4);
    color: white;
}

.edit-btn {
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
    color: white;
}

.edit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(39, 174, 96, 0.4);
    color: white;
}

.result-footer {
    background: #f8f9fa;
    padding: 25px 30px;
    text-align: center;
    border-top: 1px solid #e9ecef;
}

.new-ppt-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.new-ppt-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

/* 表单验证样式 */
.form-group.has-error input,
.form-group.has-error textarea,
.form-group.has-error select {
    border-color: #e74c3c !important;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1) !important;
}

.field-error {
    color: #e74c3c;
    font-size: 12px;
    margin-top: 5px;
    display: block;
    font-weight: 500;
}

/* 字数统计样式 */
.char-counter {
    color: #666;
    font-size: 12px;
    margin-top: 5px;
    text-align: right;
    font-style: italic;
}

/* 主题预览样式 */
.theme-preview {
    color: #667eea;
    font-size: 12px;
    margin-top: 5px;
    font-style: italic;
}

/* 动画效果 */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .result-actions {
        flex-direction: column;
    }
    
    .download-btn,
    .preview-btn,
    .edit-btn {
        width: 100%;
        justify-content: center;
    }
    
    .result-header h3 {
        font-size: 20px;
        flex-direction: column;
        gap: 10px;
    }
    
    .progress-content,
    .error-content {
        flex-direction: column;
        gap: 10px;
    }
}

/* 加载状态样式 */
.btn-loading {
    display: none;
}

.btn-loading .dashicons {
    animation: spin 1s linear infinite;
}

/* 禁用状态样式 */
button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* 成功状态样式 */
button.success {
    background: #27ae60 !important;
    color: white !important;
}

/* 错误状态样式 */
button.error {
    background: #e74c3c !important;
    color: white !important;
} 