.image-compressor-container {
    max-width: 1000px;
    margin: 0 auto;
}

.upload-area {
    border: 2px dashed #ccc;
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: #f8f9fa;
    margin-bottom: 2rem;
}

.upload-area:hover {
    border-color: #0d6efd;
    background-color: #f1f8ff;
}

.upload-area.dragover {
    border-color: #0d6efd;
    background-color: #e7f1ff;
}

.upload-area i {
    font-size: 3rem;
    color: #6c757d;
    margin-bottom: 1rem;
}

.compression-settings {
    background-color: #f8f9fa;
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
}

.preview-container {
    margin-top: 2rem;
}

.preview-box {
    background-color: #f8f9fa;
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
}

.image-container {
    width: 100%;
    height: 300px;
    overflow: hidden;
    border-radius: 5px;
    margin: 1rem 0;
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.info-box {
    background-color: #fff;
    border-radius: 5px;
    padding: 0.5rem;
    margin-bottom: 1rem;
}

.info-box p {
    margin: 0;
    padding: 0.25rem 0;
    color: #6c757d;
}

#qualityInput {
    width: 80px;
}

/* 添加图片网格样式 */
.image-grid, .result-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.image-card {
    background-color: white;
    border-radius: 8px;
    padding: 0.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.image-card .card-img {
    width: 100%;
    height: 150px;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.image-card .card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-card .card-info {
    font-size: 0.875rem;
    color: #6c757d;
}

.image-card .progress {
    height: 4px;
    margin: 0.5rem 0;
}

.result-item {
    background-color: white;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.result-item .comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.result-item .image-preview {
    height: 150px;
    border-radius: 4px;
    overflow: hidden;
    background-color: #f8f9fa;
}

.result-item .image-preview img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.result-item .info-group {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.result-item .download-btn {
    margin-top: 1rem;
}

.compression-ratio {
    color: #28a745;
    font-weight: bold;
}

/* 添加格式标签样式 */
.format-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.75rem;
}

.image-preview {
    position: relative;
}

.badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
}

/* 修改图片预览容器样式 */
.image-preview img {
    background-color: #f8f9fa;
    background-image: linear-gradient(45deg, #ddd 25%, transparent 25%),
                      linear-gradient(-45deg, #ddd 25%, transparent 25%),
                      linear-gradient(45deg, transparent 75%, #ddd 75%),
                      linear-gradient(-45deg, transparent 75%, #ddd 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
}

/* 添加尺寸输入相关样式 */
.input-group .form-control[type="number"] {
    min-width: 100px;
}

.input-group .btn-outline-secondary {
    border-color: #ced4da;
}

.input-group .btn-outline-secondary:hover {
    background-color: #f8f9fa;
}

.form-text {
    font-size: 0.875rem;
    color: #6c757d;
    margin-top: 0.25rem;
}

/* 添加下载按钮样式 */
#downloadBtn {
    white-space: nowrap;
}

#downloadBtn i {
    margin-right: 0.5rem;
}

.preview-info {
    padding: 0.5rem;
}

.preview-info .filename {
    font-weight: 500;
    margin-bottom: 0.25rem;
    word-break: break-all;
}

.preview-info .size-info {
    font-size: 0.875rem;
    color: #6c757d;
}

.preview-info .size-info span {
    display: block;
} 