.compressor-container {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    max-width: 900px;
    margin: 0 auto;
}

.upload-section {
    border: 2px dashed #ccc;
    border-radius: 8px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: #fafafa;
}

.upload-section:hover, .upload-section.dragover {
    border-color: var(--primary-color);
    background-color: #f0f7ff;
}

.upload-icon {
    font-size: 4rem;
    margin-bottom: 15px;
}

.upload-content h3 {
    margin-bottom: 10px;
    color: #333;
}

.upload-content p {
    color: #666;
    margin-bottom: 15px;
}

.security-tip {
    color: #28a745 !important;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 20px !important;
}

.upload-content .btn-primary {
    font-size: 1.1rem;
    padding: 12px 36px;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
    transition: all 0.3s ease;
}

.upload-content .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
}

.controls-section {
    margin: 30px 0;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.control-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
}

.control-group input[type="range"] {
    width: 100%;
    max-width: 400px;
}

.hint {
    font-size: 0.85rem;
    color: #666;
    margin-top: 5px;
}

.preview-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 30px;
}

.preview-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 15px;
    display: flex;
    flex-direction: column;
}

.preview-card h4 {
    text-align: center;
    margin-bottom: 15px;
    color: #333;
}

.image-wrapper {
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa; /* 棋盘格背景，方便看透明图 */
    background-image: linear-gradient(45deg, #eee 25%, transparent 25%), linear-gradient(-45deg, #eee 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #eee 75%), linear-gradient(-45deg, transparent 75%, #eee 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 15px;
}

.image-wrapper img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.file-info {
    text-align: center;
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid #eee;
}

.file-info span {
    display: block;
    margin-bottom: 5px;
    font-size: 1.1rem;
    color: #666;
}

.file-info .highlight {
    color: #28a745;
    font-weight: bold;
}

.savings-tag {
    display: inline-block !important;
    background-color: #e6ffed;
    color: #28a745 !important;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.85rem !important;
}

.action-buttons {
    margin-top: 15px;
    text-align: center;
}

.download-btn {
    display: block;
    width: 100%;
    text-align: center;
    text-decoration: none;
    line-height: 1.5;
}

/* File List Styles */
.file-list {
    margin-top: 20px;
    display: grid;
    gap: 15px;
}

.file-item {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid #eee;
    padding: 15px;
    border-radius: 8px;
    transition: all 0.2s;
    cursor: pointer;
}

.file-item:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    border-color: var(--primary-color);
}

.file-item.active {
    border-color: var(--primary-color);
    background-color: #f0f7ff;
}

.file-item-thumb {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    margin-right: 15px;
    background-color: #eee;
}

.file-item-info {
    flex: 1;
}

.file-item-name {
    font-weight: 600;
    margin-bottom: 5px;
    word-break: break-all;
}

.file-item-meta {
    font-size: 0.9rem;
    color: #666;
}

.file-item-actions {
    margin-left: 15px;
}

.btn-download-sm {
    padding: 6px 12px;
    font-size: 0.9rem;
    background-color: #28a745;
    color: white;
    border-radius: 4px;
    text-decoration: none;
    transition: background-color 0.2s;
    display: inline-block;
}

.btn-download-sm:hover {
    background-color: #218838;
}

@media (max-width: 768px) {
    .preview-section {
        grid-template-columns: 1fr;
    }
    
    .compressor-container {
        padding: 15px;
    }

    .file-item {
        flex-direction: column;
        text-align: center;
    }
    
    .file-item-thumb {
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .file-item-actions {
        margin-left: 0;
        margin-top: 10px;
        width: 100%;
    }
    
    .btn-download-sm {
        display: block;
        width: 100%;
        text-align: center;
    }
}
