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

body {
    font-family: '微软雅黑', Arial, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

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

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

.main-content {
    display: flex;
    gap: 30px;
}

.control-panel {
    flex: 1;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.preview-panel {
    flex: 1;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

h2 {
    margin-bottom: 15px;
    color: #3498db;
    border-bottom: 2px solid #3498db;
    padding-bottom: 5px;
}

.upload-section {
    margin-bottom: 25px;
}

#imageUpload {
    margin-bottom: 10px;
}

#fileName {
    font-size: 14px;
    color: #7f8c8d;
}

.subtitle-settings {
    margin-bottom: 25px;
}

.setting {
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

input, select, textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

input[type="color"] {
    height: 40px;
    cursor: pointer;
}

input[type="number"] {
    width: 100px;
}

.subtitle-content {
    margin-bottom: 25px;
}

#subtitleText {
    height: 100px;
    resize: vertical;
}

.actions {
    display: flex;
    gap: 15px;
}

button {
    flex: 1;
    padding: 12px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

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

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

.preview-container {
    text-align: center;
}

#previewCanvas {
    max-width: 100%;
    border: 1px solid #ddd;
    border-radius: 4px;
}

@media (max-width: 768px) {
    .main-content {
        flex-direction: column;
    }
}