/* 基本样式 */
body {
    font-family: Arial, sans-serif;
    background-color: #f8f9fa;
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

.control-panel {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

#imagePreview {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-top: 2rem;
    max-height: 70vh;
    overflow-y: auto;
    margin-bottom: 2rem;
}

.main-container {
    height: 100vh;
    display: flex;
    flex-direction: column;
}

.control-section {
    background: #f8f9fa;
    padding: 2rem 1rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.scroll-section {
    flex: 1;
    overflow-y: auto;
    padding: 2rem 1rem;
}

.container {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
}

h1 {
    text-align: center;
    font-size: 24px;
    margin-bottom: 20px;
}

label {
    font-weight: bold;
}

input[type="file"],
input[type="text"],
input[type="number"] {
    width: 100%;
    padding: 8px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

button {
    width: 100%;
    padding: 10px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

button:hover {
    background-color: #45a049;
}

#downloadLinks {
    margin-top: 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

#downloadLinks a {
    text-decoration: none;
    padding: 1rem;
    background-color: #fff;
    border-radius: 8px;
    color: #0d6efd;
    transition: all 0.2s ease;
}

#downloadLinks a:hover {
    background-color: #f0f0f0;
    transform: translateY(-2px);
}

.preview-container {
    border: 1px solid #dee2e6;
    border-radius: 0.25rem;
    padding: 1rem;
    min-height: 300px;
}

#imagePreview img {
    max-width: 100%;
    height: auto;
    margin-bottom: 1rem;
    border-radius: 8px;
}

.container-fluid {
    max-width: 1200px;
    margin: 0 auto;
}

/* 移除之前的 main-container、control-section 和 scroll-section 相关样式 */

@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }
    
    .preview-container {
        margin-top: 1rem;
        min-height: 200px;
    }
}

.smooth-scroll {
    scroll-behavior: smooth;
}

#individualLinks {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.download-link {
    display: block;
    text-decoration: none;
    padding: 10px;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    color: #0d6efd;
    transition: all 0.2s ease;
}

.download-link:hover {
    background-color: #e9ecef;
    transform: translateY(-2px);
    text-decoration: none;
}

.btn-group {
    gap: 10px;
}

.btn-group .btn {
    border-radius: 4px !important;
}