body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    background-color: #f0f4f8;
    color: #333;
}

.container {
    background-color: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
    width: 700px;
    max-width: 700px;
}

h1 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
}

input[type="text"], input[type="range"], button {
    width: 100%;
    padding: 0.8rem;
    margin: 0.5rem 0;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

input[type="text"]:focus, input[type="range"]:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 5px rgba(52, 152, 219, 0.5);
}

.drop-zone {
    border: 2px dashed #3498db;
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 1rem;
}

.drop-zone:hover, .drop-zone.drag-over {
    background-color: #ecf0f1;
    border-color: #2980b9;
}

.drop-zone.drag-over {
    background-color: #e0f7fa;
    border-color: #00bcd4;
}

.file-label {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background-color: #3498db;
    color: white;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.file-label:hover {
    background-color: #2980b9;
}

.settings {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1rem;
    align-items: center;
    margin: 1.5rem 0;
    text-align: left;
}

.settings label {
    font-weight: bold;
    color: #2c3e50;
}

.settings input[type="color"] {
    width: 50px;
    height: 30px;
    padding: 0;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.settings label[for="fontColor"] {
    display: flex;
    align-items: center;
}

.slider-control {
    display: flex;
    align-items: center;
}

.slider-control input[type="range"] {
    flex-grow: 1;
    margin-right: 10px;
}

.slider-control span {
    min-width: 40px;
    text-align: right;
    font-weight: bold;
    color: #3498db;
}

#fileList {
    margin: 1rem 0;
    text-align: left;
}

#fileList div {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    padding: 0.5rem;
    background-color: #ecf0f1;
    border-radius: 5px;
}

#fileList button, #clearFiles {
    width: auto;
    padding: 0.3rem 0.8rem;
    background-color: #e74c3c;
    color: white;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#fileList button:hover, #clearFiles:hover {
    background-color: #c0392b;
}

#progressContainer {
    margin: 1.5rem 0;
}

.progress-bar {
    height: 20px;
    background-color: #ecf0f1;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    background-color: #2ecc71;
    transition: width 0.3s ease-in-out;
}

.progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.button-group {
    display: flex;
    justify-content: space-between;
    margin-top: 1.5rem;
}

.button-group button {
    flex: 1;
    margin: 0 0.5rem;
    padding: 0.8rem 1.5rem;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-size: 1rem;
}

#startButton, #saveButton {
    background-color: #2ecc71;
    color: white;
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

#startButton:hover, #saveButton:hover {
    background-color: #27ae60;
}

#resetButton {
    background-color: #e67e22;
    color: white;
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

#resetButton:hover {
    background-color: #d35400;
}

#saveButton:disabled {
    background-color: #95a5a6;
    cursor: not-allowed;
}

.notification {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #3498db;
    color: white;
    padding: 15px 25px;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    z-index: 1000;
    text-align: center;
    font-size: 1.1rem;
    max-width: 80%;
}

.file-list {
    margin-top: 10px;
    max-height: 200px;
    overflow-y: auto;
}

.file-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px;
    border-bottom: 1px solid #eee;
}

.file-item:last-child {
    border-bottom: none;
}

.remove-file {
    background-color: #ff4d4d;
    color: white;
    border: none;
    padding: 2px 5px;
    cursor: pointer;
}

#clearFiles {
    margin-top: 10px;
    background-color: #ff4d4d;
    color: white;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
}

/* 在文件底部添加以下样式 */
#previewContainer {
    margin-top: 2rem;
    text-align: center;
}

.preview-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin: 1rem 0;
}

.preview-wrapper.multiple-images {
    justify-content: space-between;
}

/* 替换 #previewImage 的样式 */
#previewImage {
    max-width: 80%;
    height: auto;
}

.nav-button {
    background-color: #3498db;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    transition: background-color 0.3s ease;
}

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

.nav-button:disabled {
    background-color: #bdc3c7;
    cursor: not-allowed;
}

#imageCounter {
    color: #7f8c8d;
    margin: 0.5rem 0;
}

.input-group {
    display: flex;
    align-items: center;
    margin: 1rem 0;
}

.input-group label {
    flex: 0 0 auto;
    margin-right: 1rem;
    font-weight: bold;
    color: #2c3e50;
}

.input-group input {
    flex: 1 1 auto;
}
