/* ========== 活动图片批量生成工具样式 ========== */

.batch-generator-container {
    max-width: 1400px;
    margin: 0 auto;
}

.batch-generator-container .tool-header {
    text-align: center;
    margin-bottom: 30px;
}

.batch-generator-container .tool-header h2 {
    color: #2c3e50;
    font-size: 24px;
    margin-bottom: 10px;
}

.batch-generator-container .tool-header .tool-description {
    color: #7f8c8d;
    font-size: 14px;
}

.section-subtitle {
    color: #7f8c8d;
    font-size: 13px;
    margin-bottom: 15px;
}

.batch-generator-container .form-section {
    background: #ffffff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    margin-bottom: 20px;
}

.batch-generator-container .form-section h3 {
    font-size: 18px;
    color: #2c3e50;
    margin-bottom: 15px;
}

/* 文件夹选择 */
.folder-selection {
    margin-top: 15px;
}

.activity-selector {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.activity-selector label {
    font-weight: 600;
    color: #2c3e50;
    min-width: 80px;
}

.activity-select {
    flex: 1;
    max-width: 400px;
    padding: 10px 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 14px;
    background: #ffffff;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.activity-select:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.folder-info {
    margin-top: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.folder-info p {
    margin: 5px 0;
    font-size: 14px;
}

.folder-info .success {
    color: #2ecc71;
    font-weight: 600;
}

.folder-info .loading {
    color: #f39c12;
    font-weight: 600;
}

.tips-list {
    padding-left: 20px;
    margin: 10px 0 0;
    color: #555555;
    line-height: 1.6;
}

.tips-list li {
    list-style: disc;
    margin-bottom: 6px;
}

.status-section {
    padding: 16px 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    color: #34495e;
}

/* 主题网格 */
.theme-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.theme-card {
    padding: 20px;
    border: 2px solid #e0e0e0;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}

.theme-card:hover {
    border-color: #3498db;
    color: #3498db;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.2);
}

.theme-card.active {
    background: #3498db;
    color: white;
    border-color: #3498db;
}

.theme-card.unconfigured {
    background: #f5f5f5;
    border-style: dashed;
    opacity: 0.6;
    cursor: not-allowed;
}

.theme-card.unconfigured:hover {
    transform: none;
    box-shadow: none;
    border-color: #e74c3c;
    color: #e74c3c;
}

.theme-card .theme-icon {
    font-size: 32px;
    margin-bottom: 10px;
}

.theme-card .theme-name {
    display: block;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
}

.theme-card .theme-desc {
    display: block;
    font-size: 12px;
    opacity: 0.8;
}

.theme-card .config-hint {
    display: block;
    font-size: 11px;
    color: #e74c3c;
    margin-top: 5px;
}

/* 上传区域 */
.upload-box {
    background: #f8f9fa;
    border: 2px dashed #ddd;
    border-radius: 8px;
    padding: 40px;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}

.upload-box:hover {
    background: #e9ecef;
    border-color: #3498db;
}

.upload-box.has-logo {
    background: white;
    border-color: #2ecc71;
}

.upload-box .upload-icon {
    font-size: 48px;
    margin-bottom: 15px;
    color: #3498db;
}

.upload-box .upload-text {
    font-size: 16px;
    color: #2c3e50;
    margin-bottom: 5px;
    font-weight: 500;
}

.upload-box .upload-hint {
    font-size: 12px;
    color: #7f8c8d;
}

.logo-preview {
    max-width: 300px;
    max-height: 200px;
    margin-top: 15px;
    border-radius: 8px;
    overflow: hidden;
}

.logo-preview img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* 编辑器容器 */
.editor-container {
    display: none;
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    margin-top: 20px;
}

.editor-container.show {
    display: block;
}

.editor-header {
    margin-bottom: 25px;
    text-align: center;
}

.editor-header h3 {
    color: #2c3e50;
    font-size: 20px;
    margin-bottom: 10px;
}

.editor-tip {
    color: #7f8c8d;
    font-size: 14px;
    margin: 0;
}

/* 多画布容器 */
.multi-canvas-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

.canvas-row {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 20px;
}

.canvas-row.three-columns {
    justify-content: space-between;
}

.canvas-wrapper {
    text-align: center;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 15px;
    background: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
    max-width: 600px;
}

.canvas-wrapper:hover {
    border-color: #3498db;
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.15);
    transform: translateY(-2px);
}

.canvas-wrapper.active {
    border-color: #3498db;
    background: #f8fbff;
    box-shadow: 0 6px 16px rgba(52, 152, 219, 0.2);
}

.canvas-label {
    font-size: 14px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 10px;
    padding: 5px 0;
}

.preview-canvas {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto 10px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    background: #f8f9fa;
    cursor: grab;
}

.preview-canvas:active {
    cursor: grabbing;
}

.canvas-params {
    font-size: 12px;
    color: #6c757d;
    background: #f8f9fa;
    padding: 8px 12px;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
}

/* 三个特殊尺寸的画布 */
.canvas-row.three-columns .canvas-wrapper {
    max-width: 280px;
}

.canvas-row.three-columns .preview-canvas {
    max-height: 200px;
}

/* 模板控制面板 */
.template-controls {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    margin-top: 20px;
}

.template-controls h4 {
    color: #2c3e50;
    font-size: 18px;
    margin-bottom: 20px;
    text-align: center;
}

.adjustment-controls {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.slider-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.unit {
    color: #7f8c8d;
    font-size: 14px;
    white-space: nowrap;
    min-width: 30px;
}

/* 生成区域 */
.generate-section {
    text-align: center;
    margin: 30px 0;
    display: none;
}

.generate-section.show {
    display: block;
}

/* 进度条 */
.progress-bar-container {
    width: 100%;
    height: 8px;
    background: #f0f0f0;
    border-radius: 4px;
    overflow: hidden;
    margin: 20px 0;
}

.progress-bar-container .progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #3498db, #2ecc71);
    transition: width 0.3s;
}

/* 输出区域 */
.output-section {
    margin-top: 30px;
}

.output-section h3 {
    color: #2c3e50;
    font-size: 20px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #3498db;
}

.output-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.output-image-container {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    text-align: center;
}

.output-image {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    display: block;
    margin: 0 auto;
}

.output-info {
    margin-bottom: 15px;
}

.output-info p {
    font-size: 13px;
    color: #555;
    margin: 8px 0;
    line-height: 1.6;
}

.output-info .warning {
    color: #e74c3c;
    font-weight: 600;
}

.output-info .success {
    color: #2ecc71;
    font-weight: 600;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .canvas-row.three-columns {
        flex-direction: column;
        align-items: center;
    }
    
    .canvas-row.three-columns .canvas-wrapper {
        max-width: 400px;
    }
}

@media (max-width: 768px) {
    .batch-generator-container {
        padding: 0 10px;
    }

    .canvas-row {
        flex-direction: column;
        align-items: center;
    }
    
    .canvas-wrapper {
        max-width: 100%;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .form-section {
        padding: 15px;
    }

    .upload-box {
        padding: 25px 15px;
    }

    .editor-container {
        padding: 15px;
    }

    .template-controls {
        padding: 20px 15px;
    }

    .canvas-wrapper {
        padding: 10px;
    }

    .canvas-label {
        font-size: 12px;
    }

    .canvas-params {
        font-size: 11px;
        padding: 6px 8px;
    }
}

