/* 添加新的徽章样式 */
/* 
.badge-new {
    display: inline-block;
    background-color: #ff4757;
    color: white;
    font-size: 10px;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: 8px;
    position: relative;
    top: -1px;
    text-transform: uppercase;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 71, 87, 0.7);
    }
    70% {
        box-shadow: 0 0 0 6px rgba(255, 71, 87, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 71, 87, 0);
    }
}
*/

/* 去除背景2.0功能样式 */
.image-preview {
    max-width: 100%;
    max-height: 400px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.result-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 30px;
}

.result-header {
    margin-bottom: 20px;
}

.result-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.result-item {
    background: rgba(30, 30, 30, 0.5);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.result-item-header {
    background: rgba(40, 40, 40, 0.7);
    padding: 10px 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.result-item-header h5 {
    margin: 0;
    font-size: 16px;
    color: #fff;
}

.result-item-content {
    padding: 15px;
}

.image-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 15px;
}

.result-image {
    max-width: 100%;
    max-height: 300px;
    object-fit: contain;
}

.result-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
}

.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 40px 0;
}

.spinner-container {
    display: flex;
    justify-content: center;
    margin-bottom: 15px;
}

.spinner-border {
    width: 3rem;
    height: 3rem;
}

.loading-text {
    margin-top: 15px;
    font-size: 16px;
    color: #e0e0e0;
}

.options-container {
    background-color: #252525;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

.download-btn {
    margin-top: 10px;
}

/* 去除背景2.0功能样式 */
.badge {
    display: inline-block;
    padding: 0.25em 0.6em;
    font-size: 75%;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 0.25rem;
}

.badge.bg-danger {
    background-color: #ff4757;
    color: white;
}

/* 上传区域样式 */
.upload-area {
    margin-bottom: 20px;
}

.upload-zone {
    border: 2px dashed #ccc;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: #f9f9f9;
}

.upload-zone:hover, .upload-zone.drag-over {
    border-color: #007bff;
    background-color: #f0f7ff;
}

.upload-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.upload-icon {
    font-size: 48px;
    margin-bottom: 15px;
    color: #666;
}

.upload-text h3 {
    margin: 0 0 10px;
    font-size: 18px;
    color: #333;
}

.upload-text p {
    margin: 0 0 10px;
    color: #666;
}

.upload-tip {
    display: block;
    font-size: 12px;
    color: #888;
    margin-top: 5px;
}

.upload-tip-extra {
    display: block;
    font-size: 11px;
    color: #999;
    margin-top: 3px;
}

/* 文件预览样式 */
.file-preview-container {
    display: flex;
    flex-wrap: wrap;
    margin-top: 15px;
    gap: 10px;
}

.file-preview-item {
    width: 80px;
    height: 80px;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    border: 1px solid #ddd;
}

.file-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.file-preview-item .file-name {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    font-size: 10px;
    padding: 2px 4px;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}

.file-preview-more {
    width: 80px;
    height: 80px;
    border-radius: 4px;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #666;
    border: 1px solid #ddd;
}

.preview-toggle {
    text-align: center;
    margin-top: 10px;
}

.toggle-btn {
    background: none;
    border: none;
    color: #007bff;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.toggle-icon {
    margin-left: 5px;
    transition: transform 0.3s ease;
}

/* 选项区域样式 */
.options-container {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

.option-group {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}

.option-group label {
    display: flex;
    flex-direction: column;
    font-size: 14px;
}

.option-group label span {
    margin-bottom: 5px;
    font-weight: 500;
    color: #555;
}

.option-group input, .option-group select {
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.option-info {
    display: flex;
    align-items: flex-start;
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px solid #eee;
}

.info-icon {
    margin-right: 10px;
    font-size: 16px;
}

.info-text {
    font-size: 13px;
    color: #666;
}

.info-text p {
    margin: 0;
}

/* 操作区域样式 */
.action-area {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.primary-btn, .secondary-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.primary-btn {
    background-color: #007bff;
    color: white;
}

.primary-btn:hover {
    background-color: #0069d9;
}

.secondary-btn {
    background-color: #6c757d;
    color: white;
}

.secondary-btn:hover {
    background-color: #5a6268;
}

.btn-icon {
    display: flex;
    align-items: center;
}

.btn-icon svg {
    margin-right: 8px;
}

/* 进度区域样式 */
.progress-area {
    margin-bottom: 20px;
}

.status-text {
    margin-bottom: 8px;
    font-size: 14px;
}

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

.progress-bar-fill {
    height: 100%;
    background-color: #007bff;
    width: 0;
    transition: width 0.3s ease;
}

/* 处理消息样式 */
.processing-message {
    color: #0c5460;
    background-color: #d1ecf1;
    border-color: #bee5eb;
    padding: 10px 15px;
    border-radius: 4px;
    margin-bottom: 10px;
}

.success-message {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
    padding: 10px 15px;
    border-radius: 4px;
    margin-bottom: 10px;
}

.warning-message {
    color: #856404;
    background-color: #fff3cd;
    border-color: #ffeeba;
    padding: 10px 15px;
    border-radius: 4px;
    margin-bottom: 10px;
}

.error-message {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
    padding: 10px 15px;
    border-radius: 4px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.error-message svg {
    margin-right: 10px;
    flex-shrink: 0;
}

.error-message p {
    margin: 0;
}

/* 结果区域样式 */
.result-section {
    margin-top: 30px;
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.result-header h3 {
    margin: 0;
    font-size: 18px;
    color: #333;
}

.result-actions {
    display: flex;
    gap: 10px;
}

.result-status {
    margin-bottom: 15px;
}

.result-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.result-grid-item {
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.result-grid-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.result-item-inner {
    padding: 10px;
}

.result-image {
    height: 150px;
    overflow: hidden;
    border-radius: 4px;
    margin-bottom: 10px;
}

.result-preview-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.result-preview-image:hover {
    transform: scale(1.05);
}

.result-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.result-name {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 70%;
}

.result-format {
    font-size: 12px;
    color: #666;
    background-color: #f0f0f0;
    padding: 2px 6px;
    border-radius: 3px;
}

.result-item-actions {
    display: flex;
    justify-content: space-between;
}

.btn.btn-icon {
    padding: 6px 12px;
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #333;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn.btn-icon:hover {
    background-color: #e9ecef;
}

.btn-icon-text {
    margin-left: 5px;
}

/* 错误项样式 */
.error-item {
    border: 1px solid #f5c6cb;
    border-radius: 8px;
    padding: 15px;
    background-color: #fff8f8;
}

.error-type {
    background-color: #dc3545;
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
}

/* 预览遮罩层样式 */
.preview-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.preview-container {
    max-width: 90%;
    max-height: 90%;
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.preview-container img {
    max-width: 100%;
    max-height: calc(90vh - 60px);
    object-fit: contain;
}

.preview-controls {
    display: flex;
    justify-content: space-between;
    padding: 15px;
    background-color: #f8f9fa;
    border-top: 1px solid #eee;
}

.download-preview, .close-preview {
    padding: 8px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    font-size: 14px;
}

.download-preview {
    background-color: #28a745;
    color: white;
}

.download-preview:hover {
    background-color: #218838;
}

.close-preview {
    background-color: #6c757d;
    color: white;
}

.close-preview:hover {
    background-color: #5a6268;
}

.download-preview svg, .close-preview svg {
    margin-right: 8px;
}

/* 成功通知样式 */
.process-success {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #28a745;
    color: white;
    padding: 10px 15px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transform: translateY(100px);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    z-index: 9999;
}

.process-success.show {
    transform: translateY(0);
    opacity: 1;
}

.process-success svg {
    margin-right: 10px;
}

/* 编辑器容器样式 */
.editor-container {
    display: none;
    margin-top: 15px;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .option-group {
        grid-template-columns: 1fr;
    }
    
    .result-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    .action-area {
        flex-direction: column;
    }
} 