:root {
    /* 主色调：深海蓝 */
    --primary: #165DFF;
    /* 辅助色：珊瑚橙 */
    --secondary: #FF7D54;
    /* 强调色：荧光青 */
    --accent: #00F0FF;
    /* 中性色 */
    --dark: #1D2939;
    --medium: #667085;
    --light: #F5F7FA;
    --white: #FFFFFF;
    /* 交互状态 */
    --hover: rgba(22, 93, 255, 0.1);
    --active: rgba(22, 93, 255, 0.2);
    /* 过渡动画 */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Inter', 'Microsoft YaHei', sans-serif;
    background-color: var(--light);
    color: var(--dark);
    line-height: 1.5;
    overflow-x: hidden;
}

/* 导航栏样式 */
.app-container {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 260px;
    background-color: var(--white);
    color: var(--dark);
    padding-top: 24px;
    height: 100vh;
    position: fixed;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.05);
    z-index: 10;
    transition: var(--transition);
}

.sidebar:hover {
    box-shadow: 5px 0 15px rgba(0, 0, 0, 0.08);
}

.sidebar-menu {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 0 12px;
}

.menu-item {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    color: var(--medium);
    text-decoration: none;
    border-radius: 8px;
    transition: var(--transition);
    margin: 0 4px;
}

.menu-item:hover {
    background-color: var(--hover);
    color: var(--primary);
    transform: translateX(4px);
}

.menu-item.active {
    background-color: var(--primary);
    color: var(--white);
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(22, 93, 255, 0.25);
}

.menu-item .icon {
    margin-right: 10px;
    font-size: 18px;
    width: 24px;
    text-align: center;
}

/* 调整主内容区域 */
.main-content {
    flex: 1;
    margin-left: 220px;
    padding: 20px;
}

/* 修改原有container样式 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

h1 {
    color: #d43c33;
    text-align: center;
}

.input-group {
    display: flex;
    margin: 30px 0;
}

#songId {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px 0 0 4px;
    font-size: 16px;
}

#parseBtn {
    padding: 10px 20px;
    background-color: #d43c33;
    color: white;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    font-size: 16px;
}

#parseBtn:hover {
    background-color: #c0352c;
}

.hidden {
    display: none;
}

.song-info {
    display: flex;
    margin: 20px 0;
    align-items: center;
}

#cover {
    width: 150px;
    height: 150px;
    border-radius: 5px;
    margin-right: 20px;
}

details h2 {
    margin: 0 0 10px 0;
    color: #222;
}

details p {
    margin: 5px 0;
    color: #666;
}

.download-options {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.download-options h3 {
    margin-top: 0;
}

label {
    display: inline-block;
    margin-right: 15px;
    margin-bottom: 10px;
    cursor: pointer;
}

.quality {
    margin: 20px 0;
}

.download-song, #downloadBtn {
    padding: 10px 20px;
    background-color: transparent;
    color: var(--primary);
    border: 1px solid var(--primary);
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
}

.download-song:hover, #downloadBtn:hover {
    background-color: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(22, 93, 255, 0.25);
}

#downloadBtn {
    width: 100%;
    padding: 14px;
    font-size: 16px;
    margin-top: 16px;
}

/* 加载动画 */
.loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 0;
}

.loading::after {
    content: '';
    width: 40px;
    height: 40px;
    border: 4px solid #E4E7EC;
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

#error {
    color: #d43c33;
    margin: 20px 0;
    padding: 10px;
    border: 1px solid #ffcdd2;
    background-color: #ffebee;
    border-radius: 4px;
}


/* 内容区域样式 */
.content-section {
    display: none;
}

.content-section.active {
    display: block;
}

/* 移除可能导致冲突的hidden类样式 */
.hidden {
    display: none;
}