:root {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  font-weight: 400;

  color-scheme: light;
  color: #333;
  background: linear-gradient(135deg, #f5f7fa 0%, #e4e8f0 100%);

  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

* {
  box-sizing: border-box;
}

a {
  font-weight: 500;
  color: #1976d2;
  text-decoration: inherit;
}

a:hover {
  color: #1565c0;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background: linear-gradient(135deg, #f5f7fa 0%, #e4e8f0 100%);
}

h1 {
  font-size: 2.5em;
  line-height: 1.2;
  font-weight: 600;
  margin: 0;
}

h2 {
  font-size: 1.8em;
  font-weight: 600;
  color: #1976d2;
}

h3 {
  font-size: 1.4em;
  font-weight: 600;
  color: #333;
}

button {
  border-radius: 8px;
  border: none;
  padding: 0.8em 1.6em;
  font-size: 1em;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

button:focus,
button:focus-visible {
  outline: 3px solid rgba(25, 118, 210, 0.3);
  outline-offset: 2px;
}

.card {
  background: white;
  border-radius: 12px;
  padding: 2em;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border: 1px solid #e0e0e0;
}

#app {
  margin: 0 auto;
  min-height: 100vh;
}

/* 滚动条样式 */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: #1976d2;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #1565c0;
}

/* 输入框和选择框通用样式 */
input, select, textarea {
  font-family: inherit;
  font-size: 1rem;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 0.75rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: #1976d2;
  box-shadow: 0 0 0 3px rgba(25, 118, 210, 0.1);
}

/* 响应式设计 */
@media (max-width: 768px) {
  #app {
    padding: 1rem;
  }
  
  h1 {
    font-size: 2em;
  }
  
  h2 {
    font-size: 1.5em;
  }
  
  h3 {
    font-size: 1.2em;
  }
}

/* 动画效果 */
.fade-enter-active, .fade-leave-active {
  transition: opacity 0.3s ease;
}

.fade-enter-from, .fade-leave-to {
  opacity: 0;
}

.slide-up-enter-active, .slide-up-leave-active {
  transition: all 0.3s ease;
}

.slide-up-enter-from {
  opacity: 0;
  transform: translateY(20px);
}

.slide-up-leave-to {
  opacity: 0;
  transform: translateY(-20px);
}

.image-compressor[data-v-a204efff] {
    width: 100%;
    height: 100vh;
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8f0 100%);
}
.image-compressor.preview-mode[data-v-a204efff] {
    background: #1a1a1a;
}

/* 上传区域 */
.upload-section[data-v-a204efff] {
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}
.upload-area[data-v-a204efff] {
    border: 2px dashed #1976d2;
    border-radius: 16px;
    padding: 4rem 3rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #f8fbff;
    width: 100%;
    max-width: 500px;
    backdrop-filter: blur(10px);
}
.upload-area[data-v-a204efff]:hover,
.upload-area.drag-over[data-v-a204efff] {
    border-color: #1565c0;
    background: #e3f2fd;
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(25, 118, 210, 0.2);
}
.upload-icon[data-v-a204efff] {
    font-size: 4rem;
    margin-bottom: 1.5rem;
}
.upload-text[data-v-a204efff] {
    font-size: 1.4rem;
    font-weight: 600;
    color: #1976d2;
    margin-bottom: 0.8rem;
}
.upload-hint[data-v-a204efff] {
    color: #666;
    font-size: 1rem;
}

/* 预览区域 */
.preview-section[data-v-a204efff] {
    width: 100%;
    height: 100vh;
    position: relative;
    overflow: hidden;
}

/* 对比预览 */
.comparison-container[data-v-a204efff] {
    width: 100%;
    height: 100%;
    position: relative;
}
.comparison-view[data-v-a204efff] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}
.image-container[data-v-a204efff] {
    position: absolute;
    top: 0;
    height: 100%;
    overflow: hidden;
}
.image-container.original-image[data-v-a204efff] {
    left: 0;
    width: 100%;
    clip-path: inset(0 calc(100% - var(--v422671c0)) 0 0);
}
.image-container.compressed-image[data-v-a204efff] {
    right: 0;
    width: 100%;
    clip-path: inset(0 0 0 var(--v422671c0));
}
.image-container img[data-v-a204efff] {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #2a2a2a;
    transform-origin: center center;
    transition: transform 0.2s ease;
}
.divider[data-v-a204efff] {
    position: absolute;
    top: 0;
    left: var(--v422671c0);
    width: 4px;
    height: 100%;
    background: #1976d2;
    cursor: col-resize;
    z-index: 10;
    transform: translateX(-50%);
}
.divider-handle[data-v-a204efff] {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: #1976d2;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
    border: 2px solid white;
}
.divider-icon[data-v-a204efff] {
    color: white;
    font-size: 1.4rem;
    font-weight: bold;
}

/* 单图预览 */
.single-preview[data-v-a204efff] {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.single-preview .image-container[data-v-a204efff] {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.single-preview .image-container img[data-v-a204efff] {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    background: #2a2a2a;
    transform-origin: center center;
    transition: transform 0.2s ease;
}

/* 信息面板 */
.info-panel[data-v-a204efff] {
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
    z-index: 20;
}
.info-content[data-v-a204efff] {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}
.info-section h4[data-v-a204efff] {
    color: #1976d2;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}
.info-section p[data-v-a204efff] {
    margin: 0.5rem 0;
    color: #333;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* 压缩设置面板 */
.settings-panel[data-v-a204efff] {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    z-index: 20;
    min-width: 400px;
}
.settings-panel h3[data-v-a204efff] {
    color: #1976d2;
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 1.3rem;
}
.settings-grid[data-v-a204efff] {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}
.setting-item[data-v-a204efff] {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}
.setting-item label[data-v-a204efff] {
    font-weight: 600;
    color: #333;
    font-size: 0.95rem;
}
.setting-item input[data-v-a204efff],
.setting-item select[data-v-a204efff] {
    padding: 0.9rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}
.setting-item input[data-v-a204efff]:focus,
.setting-item select[data-v-a204efff]:focus {
    outline: none;
    border-color: #1976d2;
    box-shadow: 0 0 0 3px rgba(25, 118, 210, 0.1);
}
.process-btn[data-v-a204efff] {
    width: 100%;
    background: #1976d2;
    color: white;
    border: none;
    padding: 1.2rem 2rem;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(25, 118, 210, 0.3);
}
.process-btn[data-v-a204efff]:hover:not(:disabled) {
    background: #1565c0;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(25, 118, 210, 0.4);
}
.process-btn[data-v-a204efff]:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* 操作按钮 */
.action-buttons[data-v-a204efff] {
    position: absolute;
    bottom: 20px;
    right: 20px;
    display: flex;
    gap: 12px;
    z-index: 20;
    align-items: center;
}

/* 缩放控制 */
.zoom-controls[data-v-a204efff] {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    padding: 8px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
.zoom-btn[data-v-a204efff] {
    background: #1976d2;
    color: white;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}
.zoom-btn[data-v-a204efff]:hover {
    background: #1565c0;
    transform: scale(1.1);
}
.zoom-display[data-v-a204efff] {
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
    min-width: 50px;
    text-align: center;
}
.reset-btn[data-v-a204efff] {
    background: #ff9800;
    color: white;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}
.reset-btn[data-v-a204efff]:hover {
    background: #f57c00;
    transform: scale(1.1);
}
.download-btn[data-v-a204efff] {
    background: #4caf50;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
    display: flex;
    align-items: center;
    gap: 8px;
}
.download-btn[data-v-a204efff]:hover {
    background: #45a049;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}
.close-btn[data-v-a204efff] {
    background: rgba(255, 255, 255, 0.95);
    color: #333;
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}
.close-btn[data-v-a204efff]:hover {
    background: #f5f5f5;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* 响应式设计 */
@media (max-width: 768px) {
.upload-section[data-v-a204efff] {
        padding: 1rem;
}
.upload-area[data-v-a204efff] {
        padding: 2rem 1.5rem;
}
.upload-icon[data-v-a204efff] {
        font-size: 3rem;
}
.upload-text[data-v-a204efff] {
        font-size: 1.2rem;
}
.info-panel[data-v-a204efff] {
        top: 10px;
        left: 10px;
        right: 10px;
        padding: 1rem;
}
.info-content[data-v-a204efff] {
        grid-template-columns: 1fr;
        gap: 1rem;
}
.settings-panel[data-v-a204efff] {
        min-width: 90%;
        margin: 0 5%;
        padding: 1.5rem;
}
.action-buttons[data-v-a204efff] {
        bottom: 10px;
        right: 10px;
}
.download-btn[data-v-a204efff] {
        padding: 10px 16px;
        font-size: 0.9rem;
}
.close-btn[data-v-a204efff] {
        width: 44px;
        height: 44px;
}
}
@media (max-width: 480px) {
.settings-panel[data-v-a204efff] {
        padding: 1rem;
}
.settings-grid[data-v-a204efff] {
        gap: 1rem;
}
.setting-item input[data-v-a204efff],
    .setting-item select[data-v-a204efff] {
        padding: 0.8rem;
}
.process-btn[data-v-a204efff] {
        padding: 1rem 1.5rem;
}
}
