* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
    padding: 20px;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: relative;
    min-height: 500px;
}

h1 {
    text-align: center;
    margin-bottom: 30px;
    color: #2c3e50;
}

.upload-section {
    text-align: center;
    margin-bottom: 30px;
}

.file-input {
    display: none;
}

.upload-button {
    display: inline-block;
    padding: 12px 24px;
    background-color: #3498db;
    color: white;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.upload-button:hover {
    background-color: #2980b9;
}

.editor-section {
    margin-top: 20px;
}

.image-container {
    max-width: 100%;
    height: 400px;
    margin-bottom: 20px;
    background-color: #f8f9fa;
    border: 2px dashed #dee2e6;
    border-radius: 5px;
    overflow: hidden;
}

.controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.size-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    background-color: white;
}

.convert-button {
    padding: 12px 30px;
    background-color: #2ecc71;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.convert-button:hover {
    background-color: #27ae60;
}

.convert-button:disabled {
    background-color: #95a5a6;
    cursor: not-allowed;
}

/* 页脚样式 */
.footer {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    text-align: center;
    font-size: 14px;
    color: #7f8c8d;
}

.privacy-link, .contact-link {
    color: #3498db;
    text-decoration: none;
    transition: color 0.3s ease;
}

.privacy-link:hover, .contact-link:hover {
    color: #2980b9;
    text-decoration: underline;
}

/* Cropper.js 相关样式 */
.cropper-container {
    max-height: 400px !important;
}

.cropper-view-box,
.cropper-face {
    border-radius: 0;
}

/* 响应式设计 */
@media (max-width: 600px) {
    .container {
        padding: 15px;
    }

    .image-container {
        height: 300px;
    }

    .controls {
        gap: 15px;
    }

    .size-controls {
        flex-direction: column;
        text-align: center;
    }
    
    .footer {
        margin-top: 30px;
        padding-top: 15px;
    }
}