/* 科技感深色风格 */
:root {
    --primary: #00e5ff;
    --primary-glow: #00e5ff80;
    --secondary: #7b68ee;
    --dark-bg: #0f1118;
    --dark-surface: #171a24;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --accent: #00c2ff;
}

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

body {
    background-color: var(--dark-bg);
    color: var(--text-primary);
    display: flex;
    min-height: 100vh;
    overflow-x: hidden;
}

.container {
    display: flex;
    width: 100%;
    min-height: 100vh;
    position: relative;
}

/* logo样式 */
.logo {
    width: 60px;
    height: 60px;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: fixed;
    top: 20px;
    left: 4px;
    z-index: 100;
    box-shadow: none;
}

.logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 侧边栏样式 */
.sidebar {
    width: 68px;
    background-color: #0a0d14;
    padding: 20px 0;
    padding-top: 100px; /* 为logo腾出空间 */
    display: flex;
    flex-direction: column;
    align-items: center;
    border-right: 1px solid #1e2235;
    transition: all 0.3s ease;
    position: relative;
}

.sidebar-toggle {
    position: fixed;
    left: 56px; /* 侧边栏宽度-12px */
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    background-color: #1e2235;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 100;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.sidebar-toggle:hover {
    background-color: var(--primary);
}

.sidebar.collapsed .sidebar-toggle {
    left: 0;
}

.sidebar.collapsed .sidebar-toggle i {
    transform: rotate(180deg);
}

.sidebar.collapsed {
    width: 0;
    padding: 0;
    overflow: hidden;
}

.sidebar.collapsed .menu-item {
    opacity: 0;
    visibility: hidden;
}

.main-content.expanded {
    margin-left: -68px;
}

.logo i {
    color: white;
    font-size: 20px;
}

.menu-item {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-secondary);
    position: relative;
}

.menu-item i {
    font-size: 18px;
    margin-bottom: 4px;
}

.menu-item span {
    font-size: 10px;
    opacity: 0.7;
}

.menu-item.active {
    background: var(--dark-surface);
    color: var(--primary);
}

.menu-item:hover {
    background: var(--dark-surface);
    transform: translateY(-2px);
}

.menu-item.active::before {
    content: '';
    position: absolute;
    left: -10px;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 20px;
    background: linear-gradient(to bottom, var(--primary), var(--secondary));
    border-radius: 3px;
}

/* 主内容区域 */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: radial-gradient(circle at top right, #151824, var(--dark-bg) 70%);
    position: relative;
    overflow: hidden;
}

.main-content::before {
    content: '';
    position: absolute;
    top: -250px;
    right: -250px;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 229, 255, 0.05) 0%, rgba(0, 229, 255, 0) 70%);
    z-index: 0;
}

.header {
    display: flex;
    justify-content: flex-end;
    padding: 20px 40px;
    position: relative;
    z-index: 1;
}

.mode-selector {
    color: var(--text-secondary);
    font-size: 14px;
    border-bottom: 2px solid var(--primary);
    padding-bottom: 5px;
    cursor: pointer;
}

.content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 40px;
    position: relative;
    z-index: 1;
}

.title {
    font-size: 42px;
    margin-bottom: 15px;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: 1px;
    text-shadow: 0 0 20px rgba(0, 229, 255, 0.3);
}

.subtitle {
    color: var(--text-secondary);
    font-size: 16px;
    margin-bottom: 50px;
    max-width: 600px;
    text-align: center;
}

/* 波形区域 */
.waveform-container {
    width: 100%;
    max-width: 800px;
    margin-bottom: 40px;
}

.waveform-box {
    margin-bottom: 30px;
}

.waveform-label {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 10px;
}

.waveform {
    height: 80px;
    background-color: rgba(23, 26, 36, 0.8);
    border-radius: 12px;
    padding: 15px;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
}

.music-waveform {
    border-left: 3px solid var(--primary);
}

.vocals-waveform {
    border-left: 3px solid var(--secondary);
}

.waveform canvas {
    width: 100%;
    height: 100%;
}

/* 滑块样式 */
.volume-slider {
    margin-top: 10px;
    padding: 0 10px;
}

.slider {
    -webkit-appearance: none;
    width: 100%;
    height: 4px;
    border-radius: 2px;
    background: #2a3044;
    outline: none;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 0 10px var(--primary-glow);
}

.slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

#music-volume::-webkit-slider-thumb {
    background: var(--primary);
}

#vocals-volume::-webkit-slider-thumb {
    background: var(--secondary);
}

/* 文件上传区域 */
.file-upload-container {
    width: 100%;
    max-width: 300px;
    margin-bottom: 40px;
}

.file-upload {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 25px;
    border-radius: 12px;
    background: rgba(23, 26, 36, 0.8);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
}

.file-upload::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.1), rgba(123, 104, 238, 0.1));
    opacity: 0;
    transition: opacity 0.3s;
}

.file-upload:hover::before {
    opacity: 1;
}

.file-upload:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.file-upload.drag-over {
    border: 2px dashed var(--primary);
    background: rgba(0, 229, 255, 0.1);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 229, 255, 0.2);
}

.file-upload.drag-over .upload-icon {
    transform: scale(1.2);
    color: var(--primary);
}

.upload-icon {
    font-size: 28px;
    color: var(--primary);
    margin-bottom: 10px;
    transition: all 0.3s;
}

.upload-text {
    font-size: 16px;
    color: var(--text-primary);
}

.file-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

/* 处理中状态 */
.processing {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 25px;
    border-radius: 12px;
    background: rgba(23, 26, 36, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.spinner {
    width: 30px;
    height: 30px;
    border: 3px solid rgba(0, 0, 0, 0.1);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 10px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* 页脚 */
.footer {
    padding: 20px 0;
    display: flex;
    justify-content: center;
    background: rgba(10, 13, 20, 0.5);
}

.tech-badge {
    font-size: 12px;
    color: var(--text-secondary);
    padding: 5px 15px;
    border-radius: 15px;
    background-color: rgba(23, 26, 36, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* 主题切换器 */
.theme-switcher {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    background: rgba(15, 17, 24, 0.8);
    border-radius: 20px;
    padding: 5px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.theme-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    padding: 5px 12px;
    border-radius: 15px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s;
}

.theme-btn.active {
    background-color: rgba(0, 229, 255, 0.2);
    color: var(--primary);
}

.theme-btn:hover {
    color: var(--text-primary);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .sidebar {
        width: 60px;
    }
    
    .sidebar.collapsed {
        width: 0;
    }
    
    .title {
        font-size: 32px;
    }
    
    .subtitle {
        font-size: 14px;
    }
    
    .content {
        padding: 0 20px;
    }
} 