/* ========== 系统设置弹窗样式 ========== */

/* 系统设置弹窗 - 扩大10% */
#settingsModal .settings-modal-content {
    width: 550px;
    max-width: 95%;
}

/* 设置区块样式 - 扩大10% */
.settings-section {
    padding: 22px;
    background: #f9f9f9;
    border-radius: 8px;
    margin-bottom: 22px;
}

.settings-section:last-child {
    margin-bottom: 0;
}

.settings-section-title {
    font-size: 17px;
    font-weight: 600;
    color: #333;
    margin-bottom: 16px;
    padding-bottom: 11px;
    border-bottom: 1px solid #eee;
}

.settings-desc {
    font-size: 14px;
    color: #888;
    margin-bottom: 16px;
}

/* 主题色选择器样式 - 扩大10% */
.theme-color-picker {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    justify-items: center;
}

.theme-color-item {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 3px solid transparent;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.theme-color-item:hover {
    transform: scale(1.15);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.theme-color-item.selected {
    border: 3px solid #fff;
    box-shadow: 0 0 0 3px var(--theme-color), 0 4px 15px rgba(0, 0, 0, 0.3);
    transform: scale(1.1);
}

/* 字体选择器样式 - 扩大10% */
.font-selector {
    display: flex;
    gap: 16px;
}

.font-btn {
    flex: 1;
    padding: 13px 22px;
    border: 2px solid #ddd;
    border-radius: 8px;
    background: #fff;
    font-size: 15px;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.font-btn:hover {
    border-color: var(--theme-color);
    color: var(--theme-color);
}

.font-btn.selected {
    border-color: var(--theme-color);
    background-color: var(--theme-color);
    color: #fff;
}

/* 等级配置样式 - 扩大10%，保持一排5个 */
.level-config-grid {
    margin-bottom: 22px;
}

.level-config-row {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 11px;
    margin-bottom: 16px;
}

.level-config-row:last-child {
    margin-bottom: 0;
}

.level-config-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.level-config-item label {
    font-size: 14px;
    font-weight: 600;
    color: #555;
}

.level-input {
    width: 77px;
    padding: 9px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 15px;
    text-align: center;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.level-input:focus {
    outline: none;
    border-color: var(--theme-color);
    box-shadow: 0 0 0 3px rgba(211, 91, 126, 0.1);
}

.level-input:disabled {
    background-color: #e9e9e9;
    color: #999;
    cursor: not-allowed;
}

/* 隐藏数字输入框的增减按钮 */
.level-input::-webkit-outer-spin-button,
.level-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.level-input[type=number] {
    -moz-appearance: textfield;
}

/* 等级配置按钮区域 - 扩大10% */
.level-config-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 22px;
}

/* 系统设置响应式 */
@media (max-width: 520px) {
    #settingsModal .settings-modal-content {
        width: 95%;
    }
    
    .theme-color-picker {
        gap: 13px;
    }
    
    .theme-color-item {
        width: 44px;
        height: 44px;
    }
    
    .font-selector {
        flex-direction: column;
        gap: 11px;
    }
    
    .level-config-row {
        grid-template-columns: repeat(5, 1fr);
    }
    
    .level-input {
        width: 55px;
        padding: 7px;
        font-size: 13px;
    }
    
    .level-config-actions {
        flex-direction: column;
    }
    
    .level-config-actions .btn {
        width: 100%;
    }
}

@media (max-width: 400px) {
    .level-config-row {
        grid-template-columns: repeat(5, 1fr);
        gap: 6px;
    }
    
    .level-input {
        width: 48px;
        padding: 6px;
        font-size: 12px;
    }
    
    .level-config-item label {
        font-size: 12px;
    }
}
