/* 全局CSS */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    width: 100%;
    overflow-x: hidden;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

#DZYCMusicBox {
    padding: 0;
    width: 100%;
    overflow-x: hidden;
}

.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
    padding: 0 20px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

/* 主内容区域 */
.main-content {
    margin-top: 60px;
    min-height: calc(100vh - 60px);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    flex-shrink: 0;
}

.logo-icon {
    font-size: 28px;
    transition: transform 0.3s ease;
}

.logo:hover .logo-icon {
    transform: scale(1.1);
}

.logo-text {
    font-size: 20px;
    font-weight: 600;
    color: #16b777;
    transition: color 0.3s ease;
}

.logo:hover .logo-text {
    color: #14a66c;
}

.nav {
    display: flex;
    align-items: center;
    gap: 30px;
    flex: 1;
    justify-content: center;
}

.nav-item {
    text-decoration: none;
    color: #333;
    font-size: 15px;
    transition: all 0.3s ease;
    position: relative;
    padding: 8px 0;
}

.nav-item:hover {
    color: #16b777;
    transform: translateY(-2px);
}

.nav-item.active {
    color: #16b777;
}

.nav-item.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: #16b777;
    border-radius: 1.5px;
}

.auth-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* 隐藏登录和注册按钮，只显示设置按钮 */
.btn-login,
.btn-register {
    display: none;
}

.btn {
    padding: 8px 20px;
    border: none;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 80px;
    justify-content: center;
}

.btn i {
    font-size: 14px;
}

.btn-login {
    background: transparent;
    color: #16b777;
    border: 1px solid #16b777;
}

.btn-login:hover {
    background: #16b777;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(22, 183, 119, 0.3);
}

.btn-register {
    background: #16b777;
    color: #fff;
}

.btn-register:hover {
    background: #14a66c;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(22, 183, 119, 0.3);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header {
        padding: 0 15px;
        height: 56px;
    }
    
    .logo-icon {
        font-size: 24px;
    }
    
    .logo-text {
        font-size: 18px;
    }
    
    .nav {
        gap: 20px;
    }
    
    .nav-item {
        font-size: 14px;
    }
    
    .btn {
        padding: 6px;
        min-width: 36px;
        height: 36px;
        border-radius: 50%;
        font-size: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .btn i {
        font-size: 16px;
        line-height: 1;
    }
    
    .btn-login {
        border-width: 2px;
    }
}

/* 小屏幕设备 */
@media (max-width: 480px) {
    .header {
        padding: 0 12px;
    }
    
    .nav {
        display: none;
    }
    
    .logo-text {
        font-size: 16px;
    }
    
    .auth-buttons {
        gap: 8px;
    }
    
    .btn {
        min-width: 32px;
        height: 32px;
        padding: 4px;
    }
    
    .btn i {
        font-size: 14px;
    }
}

/* 设置模态框样式 */
.settings-container {
    padding: 24px;
    width: 100%;
}

.settings-section {
    margin-bottom: 28px;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 20px;
}

.settings-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.settings-section-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 16px;
}

.settings-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding: 10px 0;
}

.settings-item:last-child {
    margin-bottom: 0;
}

.settings-label {
    font-size: 15px;
    color: #666;
    flex: 1;
    margin-right: 20px;
}

.settings-input-group {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 2;
    min-width: 0;
}

.settings-input {
    flex: 1;
    padding: 10px 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 15px;
    outline: none;
    transition: border-color 0.3s ease;
    min-width: 200px;
}

.settings-input:focus {
    border-color: #16b777;
    box-shadow: 0 0 0 2px rgba(22, 183, 119, 0.1);
}

/* 按钮样式 */
.btn-primary {
    background: #16b777;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 10px 20px;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 100px;
}

.btn-primary:hover {
    background: #14a66c;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(22, 183, 119, 0.3);
}

.btn-default {
    background: #f5f5f5;
    color: #333;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 10px 20px;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 100px;
}

.btn-default:hover {
    background: #e8e8e8;
    border-color: #16b777;
    color: #16b777;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* 设置按钮样式 */
.btn-settings {
    background: transparent;
    color: #666;
    border: 1px solid #ddd;
}

.btn-settings:hover {
    background: #f5f5f5;
    color: #16b777;
    border-color: #16b777;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(22, 183, 119, 0.1);
}

/* 响应式设置 */
@media (max-width: 768px) {
    .settings-container {
        padding: 20px;
    }
    
    .settings-section {
        margin-bottom: 24px;
        padding-bottom: 16px;
    }
    
    .settings-section-title {
        font-size: 16px;
        margin-bottom: 12px;
    }
    
    .settings-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        margin-bottom: 12px;
        padding: 8px 0;
    }
    
    .settings-label {
        font-size: 14px;
        margin-right: 0;
        width: 100%;
    }
    
    .settings-input-group {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    
    .settings-input {
        width: 100%;
        min-width: unset;
        padding: 8px 12px;
        font-size: 14px;
    }
    
    .btn-primary,
    .btn-default {
        width: 100%;
        min-width: unset;
        padding: 8px 16px;
        font-size: 14px;
    }
}

