* {
    box-sizing: border-box;
    font-family: system-ui, 'Segoe UI', 'Helvetica Neue', sans-serif;
}

body {
    background: #f8f9fa;
    margin: 0;
    min-height: 100vh;
    padding: 30px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}


.navbar{
	height:80px !important;
	
}
/* 主容器卡片 */
.container1 {
    max-width: 1200px;
    width: 100%;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(1px);
    border-radius: 2.5rem;
    box-shadow: 0 5px 15px 2px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    padding: 1.2rem 2rem 2.5rem;
    transition: all 0.2s;
	margin-top:60px;
	
}

h1 {
     font-size: 2rem;
            font-weight: 700;
            margin: 0 0 0.5rem 0;
            background: linear-gradient(135deg, #667eea, #764ba2);
            -webkit-background-clip: text;
            background-clip: text;
            color: #333;
            text-align: center;
}

.sub {
    text-align: center;
            color: #6b7280;
            margin-bottom: 2rem;
            font-size: 0.95rem;
}

/* 控制栏区域 */
.controls {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: flex-end;
    margin-bottom: 30px;
    background: #f3f4f6;
    padding: 18px 22px;
    border-radius: 1.8rem;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.upload-area {
    flex: 2;
    min-width: 180px;
}

.upload-label {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: #0D6EFD;
    color: white;
    padding: 10px 24px;
    border-radius: 60px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.1);
    font-size: 0.95rem;
}

.upload-label:hover {
    
    transform: scale(0.97);
}

#imageInput {
    display: none;
}

.quality-panel {
    flex: 3;
    min-width: 220px;
}

.quality-header {
    display: flex;
    justify-content: space-between;
   
    color: #1e3a4b;
    margin-bottom: 8px;
}

input[type="range"] {
    width: 100%;
    height: 5px;
    border-radius: 10px;
    background: #cbd5e1;
    -webkit-appearance: none;
}

input[type="range"]:focus {
    outline: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    background: #0D6EFD;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    border: 2px solid white;
}

.quality-value {
    background: #eef2ff;
    padding: 4px 12px;
    border-radius: 40px;
    font-weight: 700;
    color: #0D6EFD;
}

.action-buttons {
	margin-top:-14px;
	border-radius: 20px !important;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.btn {
    
    border: none;
    padding: 8px 20px;
    border-radius: 40px;
    font-weight: 500;
    cursor: pointer;
    transition: 0.2s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    
    border: 1px solid #cddfe7;
}

.btn-primary {
    background: #0D6EFD;
    color: white;
    border: none;
}

.btn-primary:hover {
   
     transform: scale(0.97);
}

.btn:hover {
     transform: scale(0.97);
 
}

/* 图片网格卡片区 */
.images-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 20px;
}

.image-card {
    background: white;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 12px 22px -12px rgba(0, 0, 0, 0.2);
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(2px);
    border: 1px solid rgba(255,255,255,0.5);
}

.card-header {
    background: #fefefe;
    padding: 12px 15px;
    border-bottom: 1px solid #eef2f6;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #2c5a74;
}

.preview-box {
    background: #f1f7fc;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 180px;
    max-height: 220px;
    padding: 12px;
}

.preview-img {
    max-width: 100%;
    max-height: 180px;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.info-panel {
    padding: 12px 15px;
    background: #ffffff;
    font-size: 0.8rem;
    display: flex;
    justify-content: space-between;
    border-top: 1px solid #eef2f6;
    font-weight: 500;
}

.size-badge {
    background: #e9f0f5;
    border-radius: 30px;
    padding: 4px 10px;
    font-family: monospace;
}

.compress-status {
    color: #1f8a4c;
    font-weight: bold;
}
.cleanbtn{
	color:#e74032 !important;
}
.btn-save {
    background: #eef2ff;
    border: none;
    margin: 12px 15px 15px auto;
    width: fit-content;
    padding: 8px 18px;
    border-radius: 40px;
    font-weight: 500;
    cursor: pointer;
    transition: 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #0D6EFD;
}

.btn-save:hover {
    background: #2c6e9e;
    transform: scale(0.97);
}

.empty-state {
	
    text-align: center;
    padding: 60px 20px;
    background: #fafeff;
    border-radius: 2rem;
    color: #5c7f8c;
    font-size: 1rem;
}

footer {
    margin-top: 30px;
            text-align: center;
            font-size: 0.8rem;
            color: #9ca3af;
}

@media (max-width: 640px) {
    .container {
        padding: 1rem;
    }
    .controls {
        flex-direction: column;
        align-items: stretch;
    }
    .action-buttons {
        justify-content: stretch;
    }
}