/* 设置页面样式 */
.settings-page {
    background: #f8fafc;
    min-height: 100vh;
}

.settings-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.settings-header {
    text-align: center;
    margin-bottom: 32px;
}

.settings-header h1 {
    font-size: 32px;
    font-weight: 700;
    color: #1a202c;
    margin: 0 0 8px 0;
}

.settings-subtitle {
    font-size: 16px;
    color: #64748b;
    margin: 0;
    line-height: 1.5;
}

.settings-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* 设置卡片 */
.settings-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    overflow: hidden;
}

.card-header {
    padding: 24px 24px 16px;
    border-bottom: 1px solid #e2e8f0;
}

.card-header h2 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 20px;
    font-weight: 600;
    color: #1a202c;
    margin: 0 0 8px 0;
}

.card-header .icon {
    font-size: 20px;
}

.card-description {
    font-size: 14px;
    color: #64748b;
    margin: 0;
    line-height: 1.5;
}

.card-body {
    padding: 24px;
}

.card-footer {
    padding: 16px 24px 24px;
    border-top: 1px solid #e2e8f0;
    background: #f8fafc;
}

/* 设置组 */
.setting-group {
    margin-bottom: 32px;
}

.setting-group:last-child {
    margin-bottom: 0;
}

.setting-label {
    display: block;
    margin-bottom: 12px;
}

.label-text {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 4px;
}

.label-description {
    display: block;
    font-size: 14px;
    color: #64748b;
    line-height: 1.4;
}

/* 语音选择 */
.voice-selection {
    display: flex;
    gap: 8px;
    align-items: center;
}

.setting-select {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    color: #1a202c;
    background: white;
    transition: all 0.2s ease;
}

.setting-select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.btn-secondary {
    padding: 12px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    background: white;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
}

.btn-secondary:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
}

/* 范围控制 */
.range-control {
    width: 100%;
}

.setting-range {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: #e2e8f0;
    outline: none;
    -webkit-appearance: none;
    margin-bottom: 12px;
}

.setting-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #3b82f6;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(59, 130, 246, 0.3);
    transition: all 0.2s ease;
}

.setting-range::-webkit-slider-thumb:hover {
    background: #2563eb;
    transform: scale(1.1);
}

.setting-range::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #3b82f6;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 6px rgba(59, 130, 246, 0.3);
}

.range-labels {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #64748b;
}

.range-value {
    font-weight: 600;
    color: #3b82f6;
    background: #f0f9ff;
    padding: 4px 8px;
    border-radius: 4px;
    min-width: 40px;
    text-align: center;
}

/* 复选框组 */
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.checkbox-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    padding: 8px 0;
}

.checkbox-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
    cursor: pointer;
    accent-color: #3b82f6;
}

.checkbox-text {
    font-size: 14px;
    color: #374151;
    line-height: 1.5;
    flex: 1;
}

/* 测试控制 */
.test-controls {
    display: flex;
    gap: 12px;
    align-items: center;
}

.test-input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    color: #1a202c;
    background: white;
    transition: all 0.2s ease;
}

.test-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.test-input::placeholder {
    color: #9ca3af;
}

/* 按钮样式 */
.btn-primary {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(59, 130, 246, 0.3);
}

.btn-primary .icon {
    font-size: 14px;
}

/* 操作按钮 */
.action-buttons {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

/* 信息卡片 */
.info-card .card-body {
    padding: 20px 24px;
}

.info-content h3 {
    font-size: 16px;
    font-weight: 600;
    color: #1a202c;
    margin: 0 0 12px 0;
}

.info-content ul {
    margin: 0 0 20px 0;
    padding-left: 20px;
}

.info-content li {
    font-size: 14px;
    color: #374151;
    line-height: 1.6;
    margin-bottom: 8px;
}

.info-content li:last-child {
    margin-bottom: 0;
}

.info-content strong {
    color: #1a202c;
    font-weight: 600;
}

/* 状态提示 */
.status-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    background: white;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    border: 1px solid #e2e8f0;
    overflow: hidden;
    animation: slideInRight 0.3s ease;
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
}

.toast-icon {
    font-size: 18px;
}

.toast-message {
    font-size: 14px;
    color: #374151;
    font-weight: 500;
}

.status-toast.success {
    border-left: 4px solid #10b981;
}

.status-toast.success .toast-icon {
    color: #10b981;
}

.status-toast.error {
    border-left: 4px solid #ef4444;
}

.status-toast.error .toast-icon {
    color: #ef4444;
}

.status-toast.warning {
    border-left: 4px solid #f59e0b;
}

.status-toast.warning .toast-icon {
    color: #f59e0b;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .settings-container {
        padding: 16px;
    }
    
    .settings-header h1 {
        font-size: 28px;
    }
    
    .card-header,
    .card-body,
    .card-footer {
        padding: 20px 16px;
    }
    
    .test-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .voice-selection {
        flex-direction: column;
        align-items: stretch;
    }
    
    .btn-secondary {
        min-width: auto;
        justify-content: center;
    }
    
    .status-toast {
        left: 16px;
        right: 16px;
        top: 16px;
    }
}

@media (max-width: 480px) {
    .settings-header h1 {
        font-size: 24px;
    }
    
    .card-header h2 {
        font-size: 18px;
    }
    
    .label-text {
        font-size: 15px;
    }
    
    .setting-group {
        margin-bottom: 24px;
    }
}


/* 音效设置样式 */
.sound-volume-control {
    margin-top: 16px;
    padding: 16px;
    background: #f8fafc;
    border-radius: 8px;
    transition: opacity 0.3s ease;
}

.sound-volume-control .sub-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 12px;
}

.test-sound-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
    transition: opacity 0.3s ease;
}

.btn-small {
    padding: 8px 12px;
    font-size: 13px;
}

.btn-small .icon {
    font-size: 14px;
}

/* 响应式音效按钮 */
@media (max-width: 768px) {
    .test-sound-controls {
        flex-direction: column;
    }
    
    .test-sound-controls .btn-secondary {
        width: 100%;
        justify-content: center;
    }
}
