
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Microsoft YaHei', sans-serif;
}

body {
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
    padding: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid #ddd;
}

h1 {
    font-size: 24px;
    margin-bottom: 5px;
    color: #2c3e50;
}

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

section {
    background: white;
    border-radius: 5px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    display: none; /* 默认隐藏所有section */
}

.visible {
    display: block; 
}

h2 {
    font-size: 18px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    color: #3498db;
}

.form-group {
    margin-bottom: 15px;
}

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

select, input[type="text"], input[type="number"], input[type="file"] {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

input[type="file"] {
    padding: 6px;
    background: #f9f9f9;
    cursor: pointer;
}

.checkbox-group {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.checkbox-group input {
    margin-right: 8px;
}

button {
    background: #3498db;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    margin-right: 10px;
    margin-bottom: 10px;
}

button:hover {
    background: #2980b9;
}

.generate-btn {
    background: #27ae60;
    padding: 12px 20px;
    font-size: 16px;
    display: block;
    width: 100%;
    margin-top: 20px;
}

.generate-btn:hover {
    background: #219653;
}

.information {
    white-space: pre-line;
    background: #f9f9f9;
    padding: 15px;
    border-radius: 4px;
    border: 1px solid #eee;
    font-family: monospace;
    font-size: 13px;
    height: 300px;
    overflow-y: auto;
}

.control-group {
    margin-bottom: 10px;
  }

.tabs {
    display: flex;
    margin-bottom: 15px;
    flex-wrap: wrap;
    pointer-events: none;
}

.tab {
    padding: 8px 15px;
    cursor: pointer;
    background: #eee;
    margin-right: 5px;
    margin-bottom: 5px;
    border-radius: 4px;
    font-size: 13px;
}

.tab.active {
    background: #3498db;
    color: white;
}

.track-controls {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
    margin-top: 15px;
}

.track-item {
    display: flex;
    flex-direction: column;
}

.warning {
    color: #e74c3c;
    text-align: center;
    margin-top: 15px;
    font-weight: bold;
    font-size: 14px;
}

footer {
    text-align: center;
    margin-top: 30px;
    padding-top: 15px;
    border-top: 1px solid #ddd;
    font-size: 13px;
    color: #7f8c8d;
}

a {
    color: #3498db;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.file-preview {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.preview-container {
    border: 1px solid #eee;
    border-radius: 4px;
    padding: 8px;
    background: #f9f9f9;
    max-width: 200px;
}

.preview-container img {
    max-width: 100%;
    max-height: 150px;
    display: block;
}

.audio-preview {
    width: 100%;
    margin-top: 8px;
}

.file-info {
    font-size: 12px;
    margin-top: 5px;
    color: #666;
}

.debug-switch {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-bottom: 15px;
}

.debug-label {
    margin-right: 8px;
    font-size: 14px;
    color: #7f8c8d;
}

.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #3498db;
}

input:checked + .slider:before {
    transform: translateX(26px);
}

@media (max-width: 768px) {
    .track-controls {
        grid-template-columns: 1fr;
    }
    
    .file-preview {
        flex-direction: column;
    }
}