/* ==================== 选项区域样式 ==================== */
.settings-container {
    display: flex;
    flex-direction: row;
    gap: 20px;
    margin-bottom: 12px;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
}

.settings-panel {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    flex: 1;
    min-width: 280px;
    max-width: 320px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* 设置面板悬停效果 */
.settings-panel:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 15px 35px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.2);
}

/* 液态玻璃光泽效果 */
.settings-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0.15) 0%,
        rgba(255, 255, 255, 0.05) 50%,
        transparent 100%
    );
    pointer-events: none;
    z-index: 1;
}

body.light-mode .settings-panel {
    background: rgba(255, 255, 255, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

body:not(.light-mode) .settings-panel {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.settings-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #495057;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s ease;
    position: relative;
    z-index: 2;
}

body:not(.light-mode) .settings-title {
    color: #ccc;
}

.radio-group {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.radio-group.vertical {
    flex-direction: column;
    gap: 10px;
    align-items: stretch;
}

.radio-group.vertical .radio-option {
    justify-content: flex-start;
    padding: 12px 16px;
    border-radius: 8px;
    transition: background-color 0.2s ease, border-color 0.2s ease;
    background: #fff;
    border: 2px solid transparent;
}

body:not(.light-mode) .radio-group.vertical .radio-option {
    background: #333;
    color: #fff;
}

.radio-group.vertical .radio-option:hover {
    background: var(--bg-light);
    border-color: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px var(--glow-color);
}

body:not(.light-mode) {
    --glow-color: rgba(102, 126, 234, 0.28);
}

.radio-option:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(102, 126, 234, 0.1);
}

/* 选中状态的样式 */
.radio-option input[type="radio"]:checked ~ label {
    color: var(--primary-color);
    font-weight: 600;
}

.radio-option input[type="radio"]:checked {
    accent-color: var(--primary-color);
}

/* 选中状态的容器样式 */
.radio-option:has(input[type="radio"]:checked) {
    background: rgba(102, 126, 234, 0.08);
    border-color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2);
}

.radio-option:has(input[type="radio"]:checked):hover {
    background: rgba(102, 126, 234, 0.12);
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.25);
    transform: translateY(-1px);
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    padding: 12px 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: #fff;
    border: 2px solid transparent;
    position: relative;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

body:not(.light-mode) .radio-option {
    background: #333;
    color: #fff;
}

.radio-option:hover {
    background: var(--bg-light);
    border-color: var(--primary-color);
}

body:not(.light-mode) .radio-option:hover {
    background: #444;
    border-color: var(--primary-color);
}

body.light-mode .radio-option:hover {
    background: #f0f0f0;
    border-color: var(--primary-color);
}

/* 确保整个选项区域都可点击 - 使用::after覆盖整个区域 */
.radio-option::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    pointer-events: auto;
    cursor: pointer;
}

/* 确保单选按钮和标签在点击层之上 */
.radio-option input[type="radio"],
.radio-option label {
    position: relative;
    z-index: 3;
    pointer-events: auto;
}

.radio-option input[type="radio"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary-color);
    flex-shrink: 0;
}

.radio-option label {
    cursor: pointer;
    font-size: 0.95rem;
    color: #495057;
    user-select: none;
    flex: 1;
    transition: color 0.3s ease;
}

body:not(.light-mode) .radio-option label {
    color: #ccc;
}

.radio-option input[type="radio"]:checked + label {
    color: #667eea;
    font-weight: 600;
}

/* ==================== 响应式设计优化 ==================== */
/* 中等屏幕尺寸（平板设备） */
@media (max-width: 1024px) and (min-width: 769px) {
    .settings-container {
        gap: 15px;
        flex-wrap: wrap;
        justify-content: space-between;
    }
    
    .settings-panel {
        flex: 0 1 calc(50% - 8px);
        min-width: 240px;
        max-width: none;
        padding: 16px;
    }
    
    .settings-title {
        font-size: 0.85rem;
        margin-bottom: 10px;
    }
    
    .radio-group.vertical .radio-option {
        padding: 10px 14px;
        font-size: 0.9rem;
    }
}

/* 小屏幕平板设备 */
@media (max-width: 900px) and (min-width: 769px) {
    .settings-container {
        gap: 12px;
    }
    
    .settings-panel {
        flex: 0 1 calc(50% - 6px);
        min-width: 220px;
        padding: 14px;
    }
    
    .settings-title {
        font-size: 0.82rem;
    }
    
    .radio-group.vertical .radio-option {
        padding: 8px 12px;
        font-size: 0.88rem;
    }
}