:root {
    --primary-color: #1a73e8;
    --background-color: #ffffff;
    --text-color: #202124;
    --border-color: #dadce0;
    --hover-color: #f1f3f4;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
}

body {
    background-color: var(--background-color);
    color: var(--text-color);
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 24px;
    background-color: var(--background-color);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo {
    cursor: pointer;
}

.title {
    font-size: 20px;
    cursor: pointer;
}

.menu-button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.menu-button span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--text-color);
    margin: 4px 0;
}

.menu-dropdown {
    display: none;
    position: absolute;
    right: 24px;
    top: 60px;
    background-color: var(--background-color);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    border-radius: 8px;
}

.menu-item {
    padding: 12px 24px;
    font-size: 16px;
    cursor: pointer;
    text-decoration: none;
    color: var(--text-color);
    display: block;
}

.menu-item:hover {
    background-color: var(--hover-color);
}

.main-content {
    width: 80%;
    margin: 24px auto;
}

.direction-control {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.direction-text {
    font-size: 14px;
}

.direction-toggle {
    padding: 8px 16px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.image-operation-area {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 24px;
    min-height: 200px;
    margin-bottom: 24px;
}

.drop-message {
    text-align: center;
    color: #5f6368;
    font-size: 14px;
}

.thumbnails-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.thumbnail {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 4px;
}

.preview-area {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 24px;
}
/* 在现有样式末尾添加 */
.compress-options {
    margin-bottom: 20px;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.option-group {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.option-group label {
    min-width: 80px;
}

.option-group input[type="range"] {
    flex: 1;
}

.option-group input[type="number"] {
    width: 100px;
    padding: 5px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
}
.merge-button {
    display: block;
    width: 100%;
    padding: 12px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    margin: 20px 0;
}

.merge-button:hover {
    background-color: #1557b0;
}

.result-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.result-item {
    background: white;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    text-align: center;
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.result-item img {
    width: 100%;
    height: calc(100% - 40px);
    object-fit: contain;
    margin-bottom: 10px;
    border-radius: 4px;
}

.download-link {
    display: inline-block;
    padding: 8px 16px;
    background-color: var(--primary-color);
    color: white !important;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    transition: background-color 0.3s;
}

.download-link:hover {
    background-color: #1557b0;
}
.qr-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.qr-content {
    background-color: var(--background-color);
    padding: 24px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.qr-content img {
    display: block;
    width: 300px;
    height: 300px;
}
@media (max-width: 768px) {
    .main-content {
        width: 95%;
    }
    
    .header {
        padding: 8px 16px;
    }
    
    .title {
        font-size: 18px;
    }
}