/* 二维码艺术化工具 - 专用样式 */

/* 版本标识 - 艺术版本 */
.version-badge {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-top: 10px;
    display: inline-block;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

/* 居中上传区域 */
.upload-section {
    display: flex;
    justify-content: center;
    padding: 40px;
}

.upload-card.centered {
    max-width: 500px;
    width: 100%;
}

/* 二维码分析区域 */
.analysis-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 30px 40px;
    margin: 0;
    border-top: 1px solid #dee2e6;
}

.analysis-section h3 {
    color: #495057;
    margin-bottom: 20px;
    text-align: center;
}

.qr-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.qr-info-item {
    text-align: center;
    padding: 15px;
    border-radius: 10px;
    background: #f8f9fa;
}

.qr-info-item .label {
    display: block;
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 5px;
}

.qr-info-item .value {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    color: #495057;
}

/* 风格选择区域 */
.style-section {
    padding: 40px;
    background: white;
}

.style-section h3 {
    text-align: center;
    color: #495057;
    margin-bottom: 30px;
}

/* 分类标签 */
.category-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    background: #f8f9fa;
    border-radius: 25px;
    padding: 5px;
    max-width: 600px;
    margin: 0 auto 30px auto;
    overflow-x: auto;
}

.tab-btn {
    background: none;
    border: none;
    padding: 12px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #6c757d;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    min-width: 100px;
}

.tab-btn:hover {
    color: #495057;
    background: rgba(255, 255, 255, 0.5);
}

.tab-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

/* 风格网格 */
.style-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.style-option {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 15px;
    padding: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: flex-start;
    gap: 20px;
    text-align: left;
}

.style-option:hover {
    border-color: #667eea;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15);
}

.style-option.selected {
    border-color: #667eea;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.2);
}

.style-preview {
    font-size: 56px;
    line-height: 1;
    flex-shrink: 0;
    width: 90px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
    border: 1px solid rgba(102, 126, 234, 0.1);
}

.style-content {
    flex: 1;
}

.style-content h4 {
    color: #495057;
    margin: 0 0 8px 0;
    font-size: 1.2rem;
    font-weight: 600;
}

.style-content p {
    color: #6c757d;
    font-size: 0.95rem;
    margin: 0 0 12px 0;
    line-height: 1.5;
}

.style-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.style-tags .tag {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    border: none;
    box-shadow: 0 2px 4px rgba(102, 126, 234, 0.2);
}
    margin: 0;
}

/* 自定义提示词 */
.custom-prompt {
    max-width: 600px;
    margin: 0 auto;
}

.prompt-input-group {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 25px;
}

.prompt-input-group label {
    display: block;
    color: #495057;
    font-weight: 600;
    margin-bottom: 10px;
}

.prompt-input-group textarea {
    width: 100%;
    min-height: 120px;
    padding: 15px;
    border: 2px solid #dee2e6;
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    resize: vertical;
    outline: none;
    transition: border-color 0.3s ease;
}

.prompt-input-group textarea:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.prompt-input-group small {
    display: block;
    color: #6c757d;
    margin-top: 8px;
    font-style: italic;
}

/* 新增：提示词头部样式 */
.prompt-header {
    text-align: center;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(102, 126, 234, 0.1);
}

.prompt-header h4 {
    color: #495057;
    margin: 0 0 8px 0;
    font-size: 1.3rem;
    font-weight: 600;
}

.prompt-header p {
    color: #6c757d;
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.4;
}

/* 新增：提示词技巧样式 */
.prompt-tips {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-top: 15px;
    border: 1px solid rgba(102, 126, 234, 0.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.tip-item {
    margin-bottom: 12px;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #495057;
}

.tip-item:last-child {
    margin-bottom: 0;
}

.tip-item strong {
    color: #667eea;
    font-weight: 600;
}

/* 新增：分析进度样式 */
.analysis-progress {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-top: 20px;
    border: 1px solid rgba(102, 126, 234, 0.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.analysis-progress .progress-text {
    text-align: center;
    color: #495057;
    font-weight: 600;
    margin-bottom: 15px;
}

.analysis-progress .progress-bar {
    background: #e9ecef;
    border-radius: 10px;
    height: 8px;
    overflow: hidden;
}

.analysis-progress .progress-fill {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    height: 100%;
    transition: width 0.3s ease;
    border-radius: 10px;
}

/* 高级选项 */
.advanced-options {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 25px;
    margin: 30px 0;
}

.advanced-options h4 {
    color: #495057;
    margin-bottom: 20px;
    text-align: center;
}

.option-group {
    margin-bottom: 20px;
}

.option-group:last-child {
    margin-bottom: 0;
}

.option-group label {
    display: block;
    color: #495057;
    font-weight: 600;
    margin-bottom: 8px;
}

.option-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    font-size: 1rem;
    background: white;
    outline: none;
    transition: border-color 0.3s ease;
}

.option-group select:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* 生成控制 */
.generation-controls {
    text-align: center;
    margin-top: 30px;
}

.generation-info {
    margin-top: 15px;
}

.generation-info small {
    color: #6c757d;
    font-style: italic;
}

/* 生成状态 */
.generation-status {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
    margin-bottom: 30px;
}

.status-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.loading-spinner {
    width: 24px;
    height: 24px;
    border: 3px solid #dee2e6;
    border-top: 3px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.status-text {
    font-size: 1.1rem;
    color: #495057;
    font-weight: 600;
}

.progress-bar {
    width: 100%;
    max-width: 400px;
    height: 8px;
    background: #dee2e6;
    border-radius: 4px;
    margin: 0 auto;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 4px;
}

/* 结果对比 */
.result-comparison {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 30px;
    align-items: center;
    margin-bottom: 30px;
    background: #f8f9fa;
    border-radius: 15px;
    padding: 30px;
}

.comparison-item {
    text-align: center;
}

.comparison-item h4 {
    color: #495057;
    margin-bottom: 15px;
}

.original-qr, .generated-art {
    width: 200px;
    height: 200px;
    border-radius: 15px;
    overflow: hidden;
    margin: 0 auto;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

.original-qr img, .generated-art img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
}

.comparison-arrow {
    font-size: 2rem;
    color: #667eea;
    font-weight: bold;
}

/* 验证结果 */
.verification-result {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.verification-item {
    text-align: center;
    padding: 15px;
    border-radius: 10px;
    background: #f8f9fa;
}

.verification-item .label {
    display: block;
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 8px;
}

.verification-item .status {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    color: #495057;
}

.verification-item .status.success {
    color: #28a745;
}

.verification-item .status.warning {
    color: #ffc107;
}

.verification-item .status.error {
    color: #dc3545;
}

/* 使用提示 */
.usage-tips {
    background: rgba(102, 126, 234, 0.1);
    border-radius: 15px;
    padding: 25px;
    margin-top: 30px;
}

.usage-tips h4 {
    color: #495057;
    margin-bottom: 15px;
}

.usage-tips ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.usage-tips li {
    padding: 8px 0;
    color: #495057;
    position: relative;
    padding-left: 25px;
}

.usage-tips li:before {
    content: "💡";
    position: absolute;
    left: 0;
    top: 8px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .upload-section, .style-section {
        padding: 20px;
    }
    
    .analysis-section {
        padding: 20px;
    }
    
    .qr-info {
        grid-template-columns: 1fr;
    }
    
    .category-tabs {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .tab-btn {
        min-width: 80px;
        padding: 10px 15px;
        font-size: 0.8rem;
    }
    
    .style-grid {
        grid-template-columns: 1fr;
    }
    
    .result-comparison {
        grid-template-columns: 1fr;
        gap: 20px;
        text-align: center;
    }
    
    .comparison-arrow {
        transform: rotate(90deg);
    }
    
    .verification-result {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .original-qr, .generated-art {
        width: 150px;
        height: 150px;
    }
    
    .category-tabs {
        padding: 3px;
    }
    
    .tab-btn {
        padding: 8px 12px;
        font-size: 0.75rem;
    }
    
    .style-option {
        padding: 15px;
    }
    
    .style-option img {
        height: 100px;
    }
}

/* 动画效果 */
@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.analysis-section,
.style-section,
.result-section {
    animation: fadeIn 0.6s ease;
}

/* 按钮状态 */
.primary-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.primary-btn:disabled:hover {
    transform: none;
    box-shadow: 0 5px 15px rgba(79, 172, 254, 0.3);
}

/* 成功状态指示 */
.generation-complete {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
}

.generation-complete .loading-spinner {
    display: none;
}

.generation-complete::before {
    content: "✅";
    font-size: 1.5rem;
    margin-right: 10px;
}
