/* 设置页面 - 完全复刻小程序样式 */
.settings-page {
    position: relative;
    min-height: 100vh;
    background: #f5f5f5;
    overflow-x: hidden;
}

/* 背景系统 */
.settings-bg-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    background: #f5f5f5;
}

.settings-bg-image {
    width: 100%;
    height: 100%;
    filter: blur(20px) brightness(0.9);
    transform: scale(1.2);
    object-fit: cover;
    opacity: 0.3;
}

.settings-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
}

/* 导航栏 */
.settings-nav {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 16px;
    background: transparent;
}

.settings-nav .back-btn {
    width: 36px;
    height: 36px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    font-size: 20px;
    cursor: pointer;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.settings-nav .back-btn:active {
    background: rgba(0, 0, 0, 0.1);
}

.settings-nav .title {
    font-size: 18px;
    font-weight: 700;
    color: #333;
}

/* 内容布局 */
.settings-content {
    position: relative;
    z-index: 1;
    padding: 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-bottom: 110px;
}

/* 统计卡片 */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.stat-card {
    background: #fff;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 15px;
    padding: 15px 5px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.stat-card.action {
    cursor: pointer;
}

.stat-card.action:active {
    transform: scale(0.95);
    background: #f9f9f9;
}

.stat-number {
    display: block;
    font-size: 18px;
    font-weight: 800;
    color: #333;
    margin-bottom: 4px;
}

.stat-label {
    display: block;
    font-size: 10px;
    color: #999;
    font-weight: 500;
}

.discovery-icon {
    font-size: 16px;
    margin-bottom: 4px;
}

/* 设置分组 */
.settings-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.group-header {
    font-size: 12px;
    font-weight: 700;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding-left: 5px;
}

.glass-card {
    background: #fff;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* 设置项 */
.setting-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: background 0.2s ease;
}

.setting-item:last-child {
    border-bottom: none;
}

.setting-item.action {
    cursor: pointer;
}

.setting-item.action:active {
    background: #f9f9f9;
}

.setting-info {
    flex: 1;
}

.setting-title {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin-bottom: 3px;
}

.setting-desc {
    font-size: 11px;
    color: #999;
}

/* 自定义开关 */
.custom-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.custom-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.switch-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.2);
    transition: 0.4s;
    border-radius: 24px;
}

.switch-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

input:checked + .switch-slider {
    background-color: #6366f1;
}

input:checked + .switch-slider:before {
    transform: translateX(20px);
}

/* 音质选择器 */
.quality-picker {
    background: rgba(255, 255, 255, 0.1);
    padding: 6px 12px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}

.quality-picker span {
    font-size: 12px;
    color: #6366f1;
    font-weight: 700;
}

.picker-arrow {
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid #6366f1;
}

.action-icon {
    font-size: 16px;
}

/* 底部设计 */
.footer-section {
    text-align: center;
    padding: 40px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.logo-box {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.05) 100%);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.app-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.info-name {
    font-size: 16px;
    font-weight: 800;
    /* color: #ffffff; */
    letter-spacing: 0.5px;
}

.info-ver {
    font-size: 10px;
    color: #6366f1;
    font-weight: 700;
}

.copyright {
    font-size: 9px;
    color: rgba(255, 255, 255, 0.3);
}

/* 动画系统 */
.animated-fade-in {
    animation: fadeIn 0.8s ease-out both;
}

.animated-slide-up {
    animation: slideUp 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
