/**
 * 新设置模态框样式 - 左右分栏布局
 */

/* 模态框遮罩层 */
.settings-modal-new {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
}

.settings-modal-new.active {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* 模态框内容容器 */
.settings-modal-new-content {
    position: relative;
    background: linear-gradient(135deg, #1a1a1a 0%, #2c2c2c 100%);
    border: 2px solid #D4AF37;
    border-radius: 12px;
    width: 90%;
    max-width: 900px;
    height: 80%;
    max-height: 600px;
    padding: 30px;
    box-shadow: 0 10px 50px rgba(212, 175, 55, 0.3);
    display: flex;
    flex-direction: column;
}

/* 关闭按钮 */
.settings-modal-new-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 32px;
    font-weight: bold;
    color: #D4AF37;
    cursor: pointer;
    transition: all 0.3s ease;
    line-height: 1;
    z-index: 10;
}

.settings-modal-new-close:hover {
    color: #FFD700;
    transform: rotate(90deg);
}

/* 标题 */
.settings-modal-new-title {
    font-family: Georgia, serif;
    font-size: 28px;
    font-weight: bold;
    color: #D4AF37;
    text-align: center;
    margin: 0 0 25px 0;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

/* 布局容器 */
.settings-layout-new {
    display: flex;
    gap: 20px;
    height: calc(100% - 80px);
    overflow: hidden;
}

/* 左侧菜单 */
.settings-menu-new {
    width: 240px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow-y: auto;
    padding-right: 10px;
}

/* 菜单项 */
.settings-menu-item-new {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    background: rgba(139, 0, 0, 0.2);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: Georgia, serif;
    font-size: 16px;
    font-weight: bold;
    color: #E0E0E0;
}

.settings-menu-item-new:hover {
    background: rgba(139, 0, 0, 0.4);
    border-color: #D4AF37;
    transform: translateX(5px);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
}

.settings-menu-item-new.active {
    background: rgba(212, 175, 55, 0.2);
    border-color: #D4AF37;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
}

.settings-menu-item-new .icon {
    font-size: 24px;
    flex-shrink: 0;
}

.settings-menu-item-new .label {
    flex: 1;
}

/* 右侧内容区域 */
.settings-content-new {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 8px;
}

/* 内容视图 */
.content-view-new {
    color: #E0E0E0;
    font-family: Georgia, serif;
}

.content-view-new h3 {
    color: #D4AF37;
    margin-bottom: 15px;
}

/* 滚动条样式 */
/* 左侧菜单隐藏滚动条 */
.settings-menu-new::-webkit-scrollbar {
    width: 0;
    display: none;
}

/* 右侧内容区隐藏滚动条 */
.settings-content-new::-webkit-scrollbar {
    width: 0;
    display: none;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .settings-modal-new-content {
        width: 95%;
        height: 85%;
        padding: 20px;
    }

    .settings-modal-new-title {
        font-size: 24px;
        margin-bottom: 20px;
    }

    .settings-menu-new {
        width: 180px;
    }

    .settings-menu-item-new {
        padding: 12px 15px;
        font-size: 14px;
    }

    .settings-menu-item-new .icon {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .settings-modal-new-content {
        width: 100%;
        height: 100%;
        border-radius: 0;
        max-width: none;
        max-height: none;
    }

    .settings-layout-new {
        flex-direction: column;
    }

    .settings-menu-new {
        width: 100%;
        flex-direction: row;
        overflow-x: auto;
        overflow-y: hidden;
        padding-right: 0;
        padding-bottom: 10px;
    }

    .settings-menu-item-new {
        min-width: 150px;
    }
}


/* 音频设置样式 */
.audio-settings-container {
    display: flex;
    flex-direction: column;
    gap: 25px;
    padding: 10px 0;
}

.audio-setting-item {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.audio-setting-item label {
    color: #D4AF37;
    font-size: 16px;
    font-weight: bold;
}

/* 音量滑块样式 - 华丽版 */
.audio-slider {
    width: 100%;
    height: 8px;
    border-radius: 10px;
    background: linear-gradient(90deg, 
        rgba(139, 0, 0, 0.3) 0%, 
        rgba(212, 175, 55, 0.2) 50%, 
        rgba(255, 215, 0, 0.3) 100%);
    outline: none;
    -webkit-appearance: none;
    position: relative;
    box-shadow: 
        inset 0 2px 4px rgba(0, 0, 0, 0.5),
        0 0 10px rgba(212, 175, 55, 0.2);
    border: 1px solid rgba(212, 175, 55, 0.3);
    transition: all 0.3s ease;
}

.audio-slider:hover {
    box-shadow: 
        inset 0 2px 4px rgba(0, 0, 0, 0.5),
        0 0 20px rgba(212, 175, 55, 0.5);
    border-color: rgba(212, 175, 55, 0.6);
}

/* Webkit浏览器滑块轨道 */
.audio-slider::-webkit-slider-runnable-track {
    width: 100%;
    height: 8px;
    border-radius: 10px;
}

/* Webkit浏览器滑块按钮 */
.audio-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #FFD700, #D4AF37);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 
        0 0 0 3px rgba(26, 26, 26, 0.8),
        0 0 0 5px rgba(212, 175, 55, 0.4),
        0 4px 12px rgba(212, 175, 55, 0.6),
        inset 0 -2px 4px rgba(0, 0, 0, 0.3),
        inset 0 2px 4px rgba(255, 255, 255, 0.3);
    border: 2px solid #D4AF37;
    position: relative;
    margin-top: -8px;
}

.audio-slider::-webkit-slider-thumb:hover {
    background: radial-gradient(circle at 30% 30%, #FFED4E, #FFD700);
    transform: scale(1.3);
    box-shadow: 
        0 0 0 3px rgba(26, 26, 26, 0.8),
        0 0 0 6px rgba(255, 215, 0, 0.6),
        0 6px 20px rgba(255, 215, 0, 0.8),
        inset 0 -2px 4px rgba(0, 0, 0, 0.3),
        inset 0 2px 4px rgba(255, 255, 255, 0.5);
    border-color: #FFD700;
}

.audio-slider::-webkit-slider-thumb:active {
    transform: scale(1.15);
    box-shadow: 
        0 0 0 3px rgba(26, 26, 26, 0.8),
        0 0 0 5px rgba(212, 175, 55, 0.8),
        0 2px 8px rgba(212, 175, 55, 0.9),
        inset 0 2px 6px rgba(0, 0, 0, 0.4);
}

/* Firefox浏览器滑块轨道 */
.audio-slider::-moz-range-track {
    width: 100%;
    height: 8px;
    border-radius: 10px;
    background: linear-gradient(90deg, 
        rgba(139, 0, 0, 0.3) 0%, 
        rgba(212, 175, 55, 0.2) 50%, 
        rgba(255, 215, 0, 0.3) 100%);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(212, 175, 55, 0.3);
}

/* Firefox浏览器滑块按钮 */
.audio-slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #FFD700, #D4AF37);
    cursor: pointer;
    border: 2px solid #D4AF37;
    transition: all 0.3s ease;
    box-shadow: 
        0 0 0 3px rgba(26, 26, 26, 0.8),
        0 0 0 5px rgba(212, 175, 55, 0.4),
        0 4px 12px rgba(212, 175, 55, 0.6),
        inset 0 -2px 4px rgba(0, 0, 0, 0.3),
        inset 0 2px 4px rgba(255, 255, 255, 0.3);
}

.audio-slider::-moz-range-thumb:hover {
    background: radial-gradient(circle at 30% 30%, #FFED4E, #FFD700);
    transform: scale(1.3);
    box-shadow: 
        0 0 0 3px rgba(26, 26, 26, 0.8),
        0 0 0 6px rgba(255, 215, 0, 0.6),
        0 6px 20px rgba(255, 215, 0, 0.8),
        inset 0 -2px 4px rgba(0, 0, 0, 0.3),
        inset 0 2px 4px rgba(255, 255, 255, 0.5);
    border-color: #FFD700;
}

.audio-slider::-moz-range-thumb:active {
    transform: scale(1.15);
    box-shadow: 
        0 0 0 3px rgba(26, 26, 26, 0.8),
        0 0 0 5px rgba(212, 175, 55, 0.8),
        0 2px 8px rgba(212, 175, 55, 0.9),
        inset 0 2px 6px rgba(0, 0, 0, 0.4);
}

/* BGM下拉菜单样式 */
.bgm-dropdown {
    width: 100%;
    padding: 10px 15px;
    background: rgba(26, 26, 26, 0.8);
    border: 2px solid #D4AF37;
    border-radius: 6px;
    color: #E0E0E0;
    font-size: 14px;
    font-family: Georgia, serif;
    cursor: pointer;
    outline: none;
    transition: all 0.3s ease;
}

.bgm-dropdown:hover {
    border-color: #FFD700;
    background: rgba(26, 26, 26, 0.95);
}

.bgm-dropdown:focus {
    border-color: #FFD700;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

.bgm-dropdown option {
    background: #1a1a1a;
    color: #E0E0E0;
    padding: 10px;
}

/* 当前播放信息 */
.current-playing {
    background: rgba(212, 175, 55, 0.1);
    padding: 15px;
    border-radius: 8px;
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.current-bgm-info {
    margin-top: 8px;
}

#current-bgm-display {
    color: #FFD700;
    font-size: 16px;
    font-weight: bold;
}

/* 播放控制按钮 */
.audio-controls {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.audio-control-btn {
    flex: 1;
    padding: 12px 20px;
    background: rgba(139, 0, 0, 0.3);
    border: 2px solid #D4AF37;
    border-radius: 8px;
    color: #D4AF37;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: Georgia, serif;
}

.audio-control-btn:hover {
    background: rgba(139, 0, 0, 0.5);
    border-color: #FFD700;
    color: #FFD700;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}

.audio-control-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.3);
}

#play-pause-btn {
    font-size: 24px;
}

/* BGM选择区域样式 */
.bgm-select-section {
    text-align: center;
}

.bgm-select-label {
    display: block;
    text-align: center;
    font-size: 16px;
    color: #FFD700;
    margin-bottom: 12px;
    font-weight: bold;
}

/* 个人账户样式 */
.account-info-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.account-info-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.account-info-item label {
    color: #D4AF37;
    font-size: 16px;
    font-weight: bold;
}

.info-value {
    color: #E0E0E0;
    font-size: 16px;
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 6px;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

/* 昵称编辑 */
.nickname-edit-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nickname-display {
    color: #E0E0E0;
    font-size: 16px;
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 6px;
    border: 1px solid rgba(212, 175, 55, 0.2);
    flex: 1;
}

.edit-btn {
    padding: 6px 12px;
    background: rgba(139, 0, 0, 0.3);
    border: 1px solid #D4AF37;
    border-radius: 6px;
    color: #D4AF37;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
}

.edit-btn:hover {
    background: rgba(139, 0, 0, 0.5);
    border-color: #FFD700;
    transform: scale(1.1);
}

.nickname-input {
    width: 100%;
    padding: 8px 12px;
    background: rgba(26, 26, 26, 0.8);
    border: 2px solid #D4AF37;
    border-radius: 6px;
    color: #E0E0E0;
    font-size: 16px;
    font-family: Georgia, serif;
    outline: none;
}

.nickname-input:focus {
    border-color: #FFD700;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

.nickname-buttons {
    display: flex;
    gap: 10px;
}

.save-btn, .cancel-btn {
    flex: 1;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: Georgia, serif;
}

.save-btn {
    background: rgba(0, 139, 0, 0.3);
    border: 2px solid #4CAF50;
    color: #4CAF50;
}

.save-btn:hover {
    background: rgba(0, 139, 0, 0.5);
    border-color: #66BB6A;
    color: #66BB6A;
}

.cancel-btn {
    background: rgba(139, 0, 0, 0.3);
    border: 2px solid #D4AF37;
    color: #D4AF37;
}

.cancel-btn:hover {
    background: rgba(139, 0, 0, 0.5);
    border-color: #FFD700;
    color: #FFD700;
}

.account-note {
    margin-top: 10px;
    font-size: 12px;
    color: #808080;
    text-align: center;
    font-style: italic;
}

/* 账户操作按钮 */
.account-actions {
    display: flex;
    gap: 15px;
    margin-top: 25px;
    flex-wrap: wrap;
}

.account-action-btn {
    flex: 1;
    min-width: 140px;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: Georgia, serif;
    border: 2px solid;
}

.upload-btn {
    background: rgba(0, 100, 0, 0.3);
    border-color: #4CAF50;
    color: #4CAF50;
}

.upload-btn:hover {
    background: rgba(0, 100, 0, 0.5);
    border-color: #66BB6A;
    color: #66BB6A;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.4);
}

.logout-btn {
    background: rgba(139, 0, 0, 0.3);
    border-color: #D4AF37;
    color: #D4AF37;
}

.logout-btn:hover {
    background: rgba(139, 0, 0, 0.5);
    border-color: #FFD700;
    color: #FFD700;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}

.admin-btn {
    background: rgba(75, 0, 130, 0.3);
    border-color: #9370DB;
    color: #9370DB;
}

.admin-btn:hover {
    background: rgba(75, 0, 130, 0.5);
    border-color: #BA55D3;
    color: #BA55D3;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(147, 112, 219, 0.4);
}

.about-content a#qq-group-link:hover {
    text-decoration: underline !important;
    color: #7eb8ff !important;
}
