body {
    font-family: 'Microsoft YaHei', '微软雅黑', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f5f7fa;
}

.container {
    display: flex;
    gap: 30px;
    padding: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

/* 左侧音色列表样式 */
.voice-list-section {
    width: 280px;
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    height: fit-content;
}

.voice-list-section h2 {
    margin: 0 0 20px 0;
    color: #333;
    font-size: 1.2em;
    padding-bottom: 10px;
    border-bottom: 2px solid #e8eaed;
}

.voice-list {
    margin: 10px 0;
    max-height: 500px;
    overflow-y: auto;
}

.voice-item {
    display: flex;
    align-items: center;
    padding: 12px;
    margin: 8px 0;
    background: white;
    border-radius: 8px;
    border: 1px solid #e8eaed;
    transition: all 0.3s ease;
}

.voice-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.voice-item.active {
    background: #e3f2fd;
    border-color: #2196f3;
}

.voice-item-name {
    flex: 1;
    margin-right: 10px;
    color: #333;
    font-size: 0.95em;
}

.voice-item button {
    padding: 6px 12px;
    margin-left: 6px;
    font-size: 0.9em;
    border-radius: 4px;
}

.voice-item .use-btn {
    background-color: #2196f3;
}

.voice-item .delete-btn {
    background-color: #ff5252;
}

.refresh-btn {
    width: 100%;
    margin-top: 15px;
    background-color: #4CAF50;
    transition: all 0.3s ease;
}

/* 右侧主要内容区域样式 */
.main-content {
    flex: 1;
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.main-content h1 {
    margin: 0 0 30px 0;
    color: #333;
    font-size: 1.8em;
    text-align: center;
}

.upload-section {
    margin: 20px 0 30px;
    padding: 20px;
    border-radius: 8px;
    background-color: #f8f9fa;
    border: 1px solid #e8eaed;
}

.upload-section h2 {
    margin: 0 0 20px 0;
    color: #333;
    font-size: 1.2em;
}

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

.upload-section input[type="text"] {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.95em;
}

#uploadStatus {
    margin-top: 15px;
    padding: 10px;
    border-radius: 4px;
    background: #f1f3f4;
    color: #666;
}

.text-list {
    margin: 20px 0;
}

.text-item {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    align-items: center;
}

.text-input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.95em;
}

.control-section {
    margin: 20px 0;
    text-align: center;
}

.audio-player {
    margin: 30px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e8eaed;
}

audio {
    width: 100%;
    margin-bottom: 15px;
}

.control-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

button {
    padding: 8px 16px;
    font-size: 0.95em;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

button:hover:not(:disabled) {
    background-color: #45a049;
    transform: translateY(-1px);
}

button:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
    opacity: 0.7;
}

#status {
    margin-top: 20px;
    padding: 10px;
    text-align: center;
    color: #666;
    font-size: 0.95em;
}

/* 滚动条美化 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
} 