/* ===== 基础样式 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #3498db;
    --secondary-color: #2ecc71;
    --danger-color: #e74c3c;
    --warning-color: #f1c40f;
    
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    
    --slime-color-1: rgba(46, 204, 113, 0.6);
    --slime-color-2: rgba(52, 152, 219, 0.6);
    --slime-color-3: rgba(155, 89, 182, 0.6);
    --slime-color-4: rgba(241, 196, 15, 0.6);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
    color: #f0f0f0;
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* ===== 毛玻璃效果 ===== */
.glassmorphism {
    background: var(--glass-bg);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: var(--glass-shadow);
}

.glass-select {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    color: white;
    padding: 10px 15px;
    font-size: 1rem;
    width: 100%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.glass-select:hover {
    background: rgba(255, 255, 255, 0.25);
}

.glass-select:focus {
    outline: none;
    box-shadow: 0 0 0 2px var(--primary-color);
}

/* ===== 液态玻璃特效模式 ===== */
.liquid-glass-mode .container {
    /* 透明毛玻璃效果 */
    backdrop-filter: saturate(1.8) url(#liquidGlassFilter);
    -webkit-backdrop-filter: blur(15px) saturate(1.8) url(#liquidGlassFilter);
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.02) 0%,
        rgba(255, 255, 255, 0.01) 100% 
    );
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* 移除彩色边框动画 */
.liquid-glass-mode .glassmorphism::before {
    display: none; /* 移除彩色边框 */
}

/* 透明按钮效果 */
.liquid-glass-mode .btn {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    color: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(10px);
}

.liquid-glass-mode .btn:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
}

.liquid-glass-mode .btn-primary {
    border-left: 3px solid rgba(52, 152, 219, 0.6);
}

.liquid-glass-mode .btn-secondary {
    border-left: 3px solid rgba(46, 204, 113, 0.6);
}

.liquid-glass-mode .btn-warning {
    border-left: 3px solid rgba(241, 196, 15, 0.6);
}

.liquid-glass-mode .btn-danger {
    border-left: 3px solid rgba(231, 76, 60, 0.6);
}

/* 透明滑块 */
.liquid-glass-mode .slider {
    background: linear-gradient(to right, 
        rgba(255, 255, 255, 0.05), 
        rgba(255, 255, 255, 0.1));
}

.liquid-glass-mode .slider::-webkit-slider-thumb {
    background: rgba(255, 255, 255, 0.7);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.liquid-glass-mode .slider::-moz-range-thumb {
    background: rgba(255, 255, 255, 0.7);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

/* 透明选择框 */
.liquid-glass-mode .glass-select {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.9);
}

.liquid-glass-mode .glass-select:hover {
    background: rgba(255, 255, 255, 0.12);
}

/* 透明切换开关 */
.liquid-glass-mode .toggle-slider {
    background-color: rgba(255, 255, 255, 0.15);
}

.liquid-glass-mode .toggle-switch input:checked + .toggle-slider {
    background-color: rgba(46, 204, 113, 0.6);
}

/* 透明特效按钮 */
.liquid-glass-mode .effect-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.01);
}

.liquid-glass-mode .effect-btn.active {
    background: rgba(52, 152, 219, 0.15) !important;
    border: 1px solid rgba(52, 152, 219, 0.4) !important;
    box-shadow: 0 0 10px rgba(52, 152, 219, 0.2);
}

.liquid-glass-mode .effect-btn:hover:not(.active) {
    background: rgba(255, 255, 255, 0.12);
}

/* 透明预设按钮 */
.liquid-glass-mode .preset-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.liquid-glass-mode .preset-btn:hover {
    background: rgba(52, 152, 219, 0.08);
    border-color: rgba(52, 152, 219, 0.3);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.15);
}

/* 透明卡片背景 */
.liquid-glass-mode .glassmorphism {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.liquid-glass-mode .glassmorphism:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
}

/* 透明VU表 */
.liquid-glass-mode .vu-bar-container {
    background: rgba(0, 0, 0, 0.2);
}

.liquid-glass-mode .vu-bar {
    background: linear-gradient(to right, 
        rgba(46, 204, 113, 0.6), 
        rgba(241, 196, 15, 0.6), 
        rgba(231, 76, 60, 0.6));
}

/* 透明Canvas */
.liquid-glass-mode canvas {
    background: rgba(0, 0, 0, 0.2);
}

/* 保留流动效果但更透明 */
.liquid-glass-mode .container::before {
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.08),  /* 更透明 */
        transparent
    );
}

/* 透明通知 */
.liquid-glass-mode .notification {
    background: rgba(0, 0, 0, 0.7) !important;
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px);
}

/* 透明控制组 */
.liquid-glass-mode .control-section,
.liquid-glass-mode .effects-section,
.liquid-glass-mode .visualization-section,
.liquid-glass-mode .effects-control-section,
.liquid-glass-mode .presets-section,
.liquid-glass-mode .background-control-section {
    background: rgba(255, 255, 255, 0.03);
}

/* 添加流动的高光效果 */
.liquid-glass-mode .container::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.08),
    transparent
  );
  animation: liquidShine 8s infinite linear;
  z-index: 1;
  pointer-events: none;
}

@keyframes liquidShine {
  0% { left: -100%; }
  100% { left: 100%; }
}

/* 调整该模式下史莱姆背景的活跃度 */
.liquid-glass-mode .slime-background .slime-blob {
  opacity: 0.2;
  animation-duration: 30s; /* 让背景流动慢一点，更显优雅 */
}

@keyframes liquidFlow {
    0% {
        transform: rotate(0deg) translate(0, 0);
    }
    25% {
        transform: rotate(90deg) translate(5%, 5%);
    }
    50% {
        transform: rotate(180deg) translate(0, 10%);
    }
    75% {
        transform: rotate(270deg) translate(-5%, 5%);
    }
    100% {
        transform: rotate(360deg) translate(0, 0);
    }
}

/* 液态玻璃的悬浮效果 */
.liquid-glass-mode .glassmorphism {
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.liquid-glass-mode .glassmorphism:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        inset 0 0 20px rgba(52, 152, 219, 0.2);
}


/* ===== 史莱姆Q弹背景 ===== */
.slime-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.slime-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    animation: slimeFloat 20s infinite ease-in-out;
}

.blob1 {
    width: 300px;
    height: 300px;
    background: var(--slime-color-1);
    top: 10%;
    left: 5%;
    animation-delay: 0s;
}

.blob2 {
    width: 250px;
    height: 250px;
    background: var(--slime-color-2);
    top: 60%;
    right: 10%;
    animation-delay: 5s;
}

.blob3 {
    width: 350px;
    height: 350px;
    background: var(--slime-color-3);
    bottom: 10%;
    left: 15%;
    animation-delay: 10s;
}

.blob4 {
    width: 200px;
    height: 200px;
    background: var(--slime-color-4);
    top: 20%;
    right: 20%;
    animation-delay: 15s;
}

@keyframes slimeFloat {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    }
    25% {
        transform: translate(50px, -30px) scale(1.1);
        border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
    }
    50% {
        transform: translate(-30px, 40px) scale(0.9);
        border-radius: 40% 70% 60% 30% / 70% 40% 60% 30%;
    }
    75% {
        transform: translate(-40px, -20px) scale(1.05);
        border-radius: 70% 40% 50% 60% / 40% 70% 30% 60%;
    }
}

/* ===== Q弹动画效果 ===== */
.q-elastic {
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

.q-elastic:hover {
    transform: translateY(-5px) scale(1.05);
}

.q-elastic:active {
    transform: translateY(0) scale(0.95);
}

@keyframes elasticPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.08);
    }
}

.elastic-pulse {
    animation: elasticPulse 2s infinite ease-in-out;
}

/* ===== 主容器布局 ===== */
/* ===== 修复史莱姆特效切换问题 ===== */
.container {
    /* 确保变换效果可以被清除 */
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* 确保特效模式类被正确应用 */
.slime-mode .container {
    transform-style: preserve-3d;
    transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

.glass-mode .container,
.normal-mode .container {
    transform: none !important;
    transform-style: flat;
}

/* 修复VU表弹性动画 */
.vu-bar.elastic-pulse {
    animation: elasticPulse 0.5s infinite ease-in-out;
}

/* 确保特效按钮状态清晰 */
.effect-btn.active {
    background: linear-gradient(135deg, var(--primary-color), #2980b9);
    border-color: var(--primary-color);
    box-shadow: 0 0 20px rgba(52, 152, 219, 0.4);
}

.effect-btn:not(.active) {
    background: rgba(255, 255, 255, 0.1);
    border-color: transparent;
}

/* 修复史莱姆背景透明度 */
.slime-background {
    transition: opacity 0.5s ease;
}

.slime-mode .slime-background {
    opacity: 0.6;
}

.liquid-glass-mode .slime-background {
    opacity: 0.4;
}

.glass-mode .slime-background {
    opacity: 0.3;
}

.normal-mode .slime-background {
    opacity: 0.1;
}

.header {
    text-align: center;
    padding: 40px 0;
    margin-bottom: 30px;
    background: linear-gradient(135deg, 
        rgba(52, 152, 219, 0.2), 
        rgba(46, 204, 113, 0.2));
}

.header h1 {
    font-size: 2.8rem;
    margin-bottom: 15px;
    color: #ffffff;
    background-clip: text;
    text-shadow: 
        -2px -2px 0 #000,  
        2px -2px 0 #000,
        -2px 2px 0 #000,
        2px 2px 0 #000,
        0 0 6px rgba(0, 0, 0, 0.9);
}

.header h1 i {
    margin-right: 15px;
}

.subtitle {
    font-size: 1.3rem;
    color: #ffffff;
    text-shadow: 
        -1px -1px 0 #000,  
        1px -1px 0 #000,
        -1px 1px 0 #000,
        1px 1px 0 #000,
        0 0 4px rgba(0, 0, 0, 0.8);
}

/* ===== 控制区样式 ===== */
.main-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-bottom: 40px;
}

.control-section, .effects-section, 
.visualization-section, .effects-control-section,
.presets-section {
    padding: 30px;
}

.control-section h2, .effects-section h2,
.effects-control-section h2, .presets-section h2 {
    margin-bottom: 25px;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.8rem;
}

/* 控制网格 */
.control-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 25px;
}

@media (max-width: 992px) {
    .control-grid {
        grid-template-columns: 1fr;
    }
}

/* 按钮样式 */
.btn {
    padding: 14px 28px;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    min-width: 160px;
}

.btn-info {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
}

.btn-warning {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: white;
}

.btn-info:hover {
    background: linear-gradient(135deg, #2980b9, #1c5a7a);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.4);
}

.btn-warning:hover {
    background: linear-gradient(135deg, #e67e22, #d35400);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(243, 156, 18, 0.4);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), #2980b9);
    color: white;
}

.btn-secondary {
    background: linear-gradient(135deg, var(--secondary-color), #27ae60);
    color: white;
}

.btn-danger {
    background: linear-gradient(135deg, var(--danger-color), #c0392b);
    color: white;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

.control-group {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

/* 设备选择 */
.device-controls {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.device-select {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.device-select label {
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* 状态指示器 */
.status-indicator {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}

.status-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background-color: #7f8c8d;
    transition: all 0.3s ease;
}

.status-dot.active {
    background-color: var(--secondary-color);
    box-shadow: 0 0 15px var(--secondary-color);
}

.status-dot.recording {
    background-color: var(--danger-color);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

/* ===== 音频效果控制 ===== */
.aec-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.15);
    border-radius: 15px;
}

@media (max-width: 768px) {
    .aec-controls {
        flex-direction: column;
        gap: 20px;
        align-items: stretch;
    }
}

.aec-toggle {
    display: flex;
    gap: 30px;
}

.toggle-switch {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.toggle-switch input {
    display: none;
}

.toggle-slider {
    position: relative;
    width: 50px;
    height: 26px;
    background-color: #ccc;
    border-radius: 34px;
    transition: .4s;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    border-radius: 50%;
    transition: .4s;
}

.toggle-switch input:checked + .toggle-slider {
    background-color: var(--secondary-color);
}

.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(24px);
}

.effect-controls {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.effect-item {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.effect-item label {
    display: flex;
    justify-content: space-between;
    font-weight: 600;
}

.effect-item label i {
    color: var(--primary-color);
}

/* ===== 滑块样式 ===== */
.slider {
    width: 100%;
    height: 8px;
    
    /* 标准属性 */
    appearance: none;
    
    /* 供应商前缀以实现最大兼容性 */
    -webkit-appearance: none;
    -moz-appearance: none;
    
    background: linear-gradient(to right, 
        rgba(52, 152, 219, 0.3), 
        rgba(52, 152, 219, 0.8));
    border-radius: 4px;
    outline: none;
    
    /* 确保滑块在Firefox中正确显示 */
    background-color: transparent;
    border: none;
}

/* WebKit/Blink 浏览器 (Chrome, Safari, Edge, Opera) */
.slider::-webkit-slider-thumb {
    appearance: none;
    -webkit-appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    border: 2px solid white;
}

.slider::-webkit-slider-thumb:hover {
    background: #2980b9;
    transform: scale(1.2);
}

/* Firefox */
.slider::-moz-range-thumb {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    border: 2px solid white;
    border: none;
}

.slider::-moz-range-thumb:hover {
    background: #2980b9;
    transform: scale(1.2);
}

/* IE/Edge */
.slider::-ms-thumb {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    border: 2px solid white;
    border: none;
}

/* 轨道样式 (Firefox) */
.slider::-moz-range-track {
    background: linear-gradient(to right, 
        rgba(52, 152, 219, 0.3), 
        rgba(52, 152, 219, 0.8));
    border-radius: 4px;
    height: 8px;
}

/* 轨道样式 (IE/Edge) */
.slider::-ms-track {
    width: 100%;
    height: 8px;
    background: transparent;
    border-color: transparent;
    color: transparent;
}

.slider::-ms-fill-lower {
    background: linear-gradient(to right, 
        rgba(52, 152, 219, 0.3), 
        rgba(52, 152, 219, 0.8));
    border-radius: 4px;
}

.slider::-ms-fill-upper {
    background: rgba(52, 152, 219, 0.3);
    border-radius: 4px;
}

/* ===== 可视化区 ===== */
.visualization-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.visualizer-container, .vu-meter-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 25px;
}

.visualizer-container h3, .vu-meter-container h3 {
    color: var(--warning-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

canvas {
    width: 100%;
    height: 200px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.3);
}

/* VU表样式 */
.vu-meter {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.vu-bar-container {
    height: 35px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
}

.vu-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(to right, 
        var(--secondary-color), 
        var(--warning-color), 
        var(--danger-color));
    border-radius: 20px;
    transition: width 0.1s ease;
    position: relative;
    z-index: 1;
}

.vu-threshold {
    position: absolute;
    right: 30%;
    top: 0;
    width: 4px;
    height: 100%;
    background: rgba(255, 255, 255, 0.7);
    z-index: 2;
}

.vu-info {
    display: flex;
    justify-content: space-between;
    font-weight: 600;
}

/* ===== 特效控制区 ===== */
.effects-controls {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.effect-mode {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.effect-btn {
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid transparent;
    border-radius: 10px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.effect-btn.active {
    background: linear-gradient(135deg, var(--primary-color), #2980b9) !important;
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 20px rgba(52, 152, 219, 0.4) !important;
    transform: translateY(-2px);
}

.effect-btn:hover:not(.active) {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.slime-controls {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* ===== 预设区 ===== */
.preset-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.preset-btn {
    padding: 18px;
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

.preset-btn:hover {
    background: rgba(52, 152, 219, 0.3);
    border-color: var(--primary-color);
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 25px rgba(52, 152, 219, 0.3);
}

/* ===== 页脚 ===== */
.footer {
    text-align: center;
    padding: 25px;
    margin-top: 40px;
}

.footer p {
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.8);
}

.hint {
    color: var(--warning-color) !important;
    font-style: italic;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

/* ===== 响应式设计 ===== */
@media (max-width: 768px) {
    .header h1 {
        font-size: 2rem;
    }
    
    .subtitle {
        font-size: 1.1rem;
    }
    
    .control-group {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
    
    .effect-controls {
        grid-template-columns: 1fr;
    }
    
    .preset-buttons {
        grid-template-columns: 1fr;
    }
    
    .effect-mode {
        flex-direction: column;
    }
}
/* ===== 修复特效模式样式 ===== */
.slime-mode {
    transition: all 0.5s ease;
}

.glass-mode {
    backdrop-filter: blur(20px) saturate(120%) !important;
}

.normal-mode {
    backdrop-filter: none !important;
}

/* 按钮激活状态 */
.effect-btn.active {
    background: linear-gradient(135deg, var(--primary-color), #2980b9) !important;
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 20px rgba(52, 152, 219, 0.4) !important;
    transform: translateY(-2px);
}

/* 状态指示器动画 */
.status-dot.recording {
    background-color: var(--danger-color);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { 
        opacity: 1; 
        box-shadow: 0 0 0 0 rgba(231, 76, 60, 0.7);
    }
    70% { 
        opacity: 0.8;
        box-shadow: 0 0 0 10px rgba(231, 76, 60, 0);
    }
    100% { 
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(231, 76, 60, 0);
    }
}

/* 确保按钮可点击 */
.btn:not(:disabled) {
    cursor: pointer;
}

.btn:not(:disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* ===== 背景控制面板 ===== */
.background-control-section {
    padding: 25px;
    margin-bottom: 30px;
}

.background-control-section h3 {
    margin-bottom: 20px;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.6rem;
}

/* 背景控制按钮容器 */
.bg-controls {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

/* 背景控制按钮 */
.background-control-section .btn {
    padding: 12px 24px;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    min-width: 140px;
}

/* 背景控制按钮颜色 */
.background-control-section .btn-primary {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
}

.background-control-section .btn-secondary {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    color: white;
}

.background-control-section .btn-warning {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: white;
}

.background-control-section .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* API状态显示 */
.api-status {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
    padding: 10px 15px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
}

.api-status.error {
    color: #e74c3c;
    background: rgba(231, 76, 60, 0.1);
}

.api-status.warning {
    color: #f1c40f;
    background: rgba(241, 196, 15, 0.1);
}

.api-status.info {
    color: #3498db;
    background: rgba(52, 152, 219, 0.1);
}

/* 自动切换按钮激活状态 */
#autoBgBtn.active {
    background: linear-gradient(135deg, #e67e22, #d35400) !important;
    box-shadow: 0 0 15px rgba(231, 76, 60, 0.4);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .bg-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .background-control-section .btn {
        width: 100%;
    }
    
    .background-control-section {
        padding: 20px;
    }
}

/* ===== 文字黑边效果 ===== */
.text-with-outline {
    text-shadow: 
        -1px -1px 0 #000,  
        1px -1px 0 #000,
        -1px 1px 0 #000,
        1px 1px 0 #000,
        0 0 4px rgba(0, 0, 0, 0.8);
}

/* 标题文字黑边 */
.header h1 {
    position: relative;
    text-shadow: 
        -2px -2px 0 #000,  
        2px -2px 0 #000,
        -2px 2px 0 #000,
        2px 2px 0 #000,
        0 0 6px rgba(0, 0, 0, 0.9);
}

.header .subtitle {
    text-shadow: 
        -1px -1px 0 #000,  
        1px -1px 0 #000,
        -1px 1px 0 #000,
        1px 1px 0 #000,
        0 0 4px rgba(0, 0, 0, 0.8);
}

/* 卡片标题黑边 */
.control-section h2,
.effects-section h2,
.effects-control-section h2,
.presets-section h2,
.background-control-section h3,
.visualizer-container h3,
.vu-meter-container h3 {
    text-shadow: 
        -1px -1px 0 #000,  
        1px -1px 0 #000,
        -1px 1px 0 #000,
        1px 1px 0 #000,
        0 0 4px rgba(0, 0, 0, 0.8);
}

/* 标签和说明文字黑边 */
.device-select label,
.effect-item label,
.vu-info,
.toggle-switch span:not(.toggle-slider),
.status-indicator,
.api-status,
.hint,
.footer p {
    text-shadow: 
        -1px -1px 0 rgba(0, 0, 0, 0.7),  
        1px -1px 0 rgba(0, 0, 0, 0.7),
        -1px 1px 0 rgba(0, 0, 0, 0.7),
        1px 1px 0 rgba(0, 0, 0, 0.7),
        0 0 3px rgba(0, 0, 0, 0.8);
}

/* 按钮文字黑边 */
.btn {
    text-shadow: 
        -1px -1px 0 rgba(0, 0, 0, 0.5),  
        1px -1px 0 rgba(0, 0, 0, 0.5),
        -1px 1px 0 rgba(0, 0, 0, 0.5),
        1px 1px 0 rgba(0, 0, 0, 0.5),
        0 0 3px rgba(0, 0, 0, 0.6);
}

/* 特效按钮文字黑边 */
.effect-btn,
.preset-btn {
    text-shadow: 
        -1px -1px 0 rgba(0, 0, 0, 0.5),  
        1px -1px 0 rgba(0, 0, 0, 0.5),
        -1px 1px 0 rgba(0, 0, 0, 0.5),
        1px 1px 0 rgba(0, 0, 0, 0.5),
        0 0 3px rgba(0, 0, 0, 0.6);
}

/* 输入框和下拉框文字黑边 */
.glass-select {
    text-shadow: 
        -1px -1px 0 rgba(0, 0, 0, 0.3),  
        1px -1px 0 rgba(0, 0, 0, 0.3),
        -1px 1px 0 rgba(0, 0, 0, 0.3),
        1px 1px 0 rgba(0, 0, 0, 0.3),
        0 0 2px rgba(0, 0, 0, 0.4);
}

.glass-select option {
    text-shadow: none;
    color: #333;
    background-color: white;
}

/* 状态文本黑边 */
#statusText {
    text-shadow: 
        -1px -1px 0 #000,  
        1px -1px 0 #000,
        -1px 1px 0 #000,
        1px 1px 0 #000,
        0 0 4px rgba(0, 0, 0, 0.8);
}

/* VU表数值黑边 */
#vuLevel {
    text-shadow: 
        -1px -1px 0 rgba(0, 0, 0, 0.7),  
        1px -1px 0 rgba(0, 0, 0, 0.7),
        -1px 1px 0 rgba(0, 0, 0, 0.7),
        1px 1px 0 rgba(0, 0, 0, 0.7),
        0 0 3px rgba(0, 0, 0, 0.8);
}

/* 数值显示黑边 */
#volumeValue,
#reverbValue,
#delayValue,
#thresholdValue,
#intensityValue {
    text-shadow: 
        -1px -1px 0 rgba(0, 0, 0, 0.6),  
        1px -1px 0 rgba(0, 0, 0, 0.6),
        -1px 1px 0 rgba(0, 0, 0, 0.6),
        1px 1px 0 rgba(0, 0, 0, 0.6),
        0 0 3px rgba(0, 0, 0, 0.7);
}

/* ===== 液态玻璃模式文字黑边增强 ===== */
.liquid-glass-mode .header h1 {
    text-shadow: 
        -3px -3px 0 rgba(0, 0, 0, 0.9),  
        3px -3px 0 rgba(0, 0, 0, 0.9),
        -3px 3px 0 rgba(0, 0, 0, 0.9),
        3px 3px 0 rgba(0, 0, 0, 0.9),
        0 0 8px rgba(0, 0, 0, 0.95);
}

.liquid-glass-mode .header .subtitle {
    text-shadow: 
        -2px -2px 0 rgba(0, 0, 0, 0.8),  
        2px -2px 0 rgba(0, 0, 0, 0.8),
        -2px 2px 0 rgba(0, 0, 0, 0.8),
        2px 2px 0 rgba(0, 0, 0, 0.8),
        0 0 6px rgba(0, 0, 0, 0.85);
}

.liquid-glass-mode .control-section h2,
.liquid-glass-mode .effects-section h2,
.liquid-glass-mode .effects-control-section h2,
.liquid-glass-mode .presets-section h2,
.liquid-glass-mode .background-control-section h3,
.liquid-glass-mode .visualizer-container h3,
.liquid-glass-mode .vu-meter-container h3 {
    text-shadow: 
        -2px -2px 0 rgba(0, 0, 0, 0.8),  
        2px -2px 0 rgba(0, 0, 0, 0.8),
        -2px 2px 0 rgba(0, 0, 0, 0.8),
        2px 2px 0 rgba(0, 0, 0, 0.8),
        0 0 5px rgba(0, 0, 0, 0.85);
}

.liquid-glass-mode .btn {
    text-shadow: 
        -1px -1px 0 rgba(0, 0, 0, 0.7),  
        1px -1px 0 rgba(0, 0, 0, 0.7),
        -1px 1px 0 rgba(0, 0, 0, 0.7),
        1px 1px 0 rgba(0, 0, 0, 0.7),
        0 0 4px rgba(0, 0, 0, 0.8);
}

/* ===== 不同特效模式下的文字黑边调整 ===== */
/* 史莱姆模式 - 更柔和的阴影 */
.slime-mode .header h1,
.slime-mode .control-section h2,
.slime-mode .effects-section h2,
.slime-mode .effects-control-section h2,
.slime-mode .presets-section h2,
.slime-mode .background-control-section h3 {
    text-shadow: 
        -1px -1px 0 rgba(0, 0, 0, 0.6),  
        1px -1px 0 rgba(0, 0, 0, 0.6),
        -1px 1px 0 rgba(0, 0, 0, 0.6),
        1px 1px 0 rgba(0, 0, 0, 0.6),
        0 0 3px rgba(0, 0, 0, 0.7);
}

/* 毛玻璃模式 - 中等强度阴影 */
.glass-mode .header h1,
.glass-mode .control-section h2,
.glass-mode .effects-section h2,
.glass-mode .effects-control-section h2,
.glass-mode .presets-section h2,
.glass-mode .background-control-section h3 {
    text-shadow: 
        -1.5px -1.5px 0 rgba(0, 0, 0, 0.7),  
        1.5px -1.5px 0 rgba(0, 0, 0, 0.7),
        -1.5px 1.5px 0 rgba(0, 0, 0, 0.7),
        1.5px 1.5px 0 rgba(0, 0, 0, 0.7),
        0 0 4px rgba(0, 0, 0, 0.8);
}

/* 普通模式 - 标准阴影 */
.normal-mode .header h1,
.normal-mode .control-section h2,
.normal-mode .effects-section h2,
.normal-mode .effects-control-section h2,
.normal-mode .presets-section h2,
.normal-mode .background-control-section h3 {
    text-shadow: 
        -1px -1px 0 rgba(0, 0, 0, 0.5),  
        1px -1px 0 rgba(0, 0, 0, 0.5),
        -1px 1px 0 rgba(0, 0, 0, 0.5),
        1px 1px 0 rgba(0, 0, 0, 0.5),
        0 0 3px rgba(0, 0, 0, 0.6);
}

/* ===== 特定元素的微调 ===== */
/* 复选框和开关标签 */
.toggle-switch {
    text-shadow: 
        -1px -1px 0 rgba(0, 0, 0, 0.6),  
        1px -1px 0 rgba(0, 0, 0, 0.6),
        -1px 1px 0 rgba(0, 0, 0, 0.6),
        1px 1px 0 rgba(0, 0, 0, 0.6),
        0 0 2px rgba(0, 0, 0, 0.7);
}

/* 滑块数值标签 */
.effect-item label span:last-child {
    font-weight: bold;
    text-shadow: 
        -1px -1px 0 rgba(0, 0, 0, 0.7),  
        1px -1px 0 rgba(0, 0, 0, 0.7),
        -1px 1px 0 rgba(0, 0, 0, 0.7),
        1px 1px 0 rgba(0, 0, 0, 0.7),
        0 0 3px rgba(0, 0, 0, 0.8);
}

/* 页脚链接（如果未来添加） */
.footer a {
    color: #3498db;
    text-decoration: none;
    text-shadow: 
        -1px -1px 0 rgba(0, 0, 0, 0.6),  
        1px -1px 0 rgba(0, 0, 0, 0.6),
        -1px 1px 0 rgba(0, 0, 0, 0.6),
        1px 1px 0 rgba(0, 0, 0, 0.6),
        0 0 2px rgba(0, 0, 0, 0.7);
}

.footer a:hover {
    color: #2980b9;
    text-decoration: underline;
}

/* 图标周围的文字 */
i + span {
    text-shadow: inherit;
}

/* 响应式调整 */
@media (max-width: 768px) {
    /* 移动设备上减少阴影大小 */
    .header h1 {
        text-shadow: 
            -1px -1px 0 #000,  
            1px -1px 0 #000,
            -1px 1px 0 #000,
            1px 1px 0 #000,
            0 0 3px rgba(0, 0, 0, 0.8);
    }
    
    .liquid-glass-mode .header h1 {
        text-shadow: 
            -2px -2px 0 rgba(0, 0, 0, 0.9),  
            2px -2px 0 rgba(0, 0, 0, 0.9),
            -2px 2px 0 rgba(0, 0, 0, 0.9),
            2px 2px 0 rgba(0, 0, 0, 0.9),
            0 0 5px rgba(0, 0, 0, 0.95);
    }
}

/* ===== 白色背景下的文字优化 ===== */
/* 当背景图片很亮时增强阴影 */
body[style*="background-image"] .header h1 {
    text-shadow: 
        -2px -2px 0 rgba(0, 0, 0, 0.95),  
        2px -2px 0 rgba(0, 0, 0, 0.95),
        -2px 2px 0 rgba(0, 0, 0, 0.95),
        2px 2px 0 rgba(0, 0, 0, 0.95),
        0 0 8px rgba(0, 0, 0, 0.95);
}

body[style*="background-image"] .header .subtitle {
    text-shadow: 
        -1.5px -1.5px 0 rgba(0, 0, 0, 0.9),  
        1.5px -1.5px 0 rgba(0, 0, 0, 0.9),
        -1.5px 1.5px 0 rgba(0, 0, 0, 0.9),
        1.5px 1.5px 0 rgba(0, 0, 0, 0.9),
        0 0 5px rgba(0, 0, 0, 0.9);
}

/* 当使用默认背景时恢复原有阴影 */
body:not([style*="background-image"]) .header h1,
body[style=""] .header h1 {
    text-shadow: 
        -1px -1px 0 #000,  
        1px -1px 0 #000,
        -1px 1px 0 #000,
        1px 1px 0 #000,
        0 0 4px rgba(0, 0, 0, 0.8);
}

/* 确保所有特效模式类被正确应用 */
.slime-mode .container,
.liquid-glass-mode .container,
.glass-mode .container,
.normal-mode .container {
    transition: all 0.5s ease;
}

/* 变声器控制区样式 */
.voice-changer-section {
    margin: 20px 0;
    padding: 25px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.voice-changer-section h2 {
    margin-bottom: 20px;
    color: #e84393;
    font-size: 1.4rem;
}

.vc-toggle {
    margin-bottom: 25px;
}

.vc-presets {
    margin-bottom: 25px;
}

.vc-presets h4 {
    margin-bottom: 12px;
    color: #74b9ff;
    font-size: 1.1rem;
}

.vc-preset-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 15px;
}

.vc-preset-btn {
    padding: 12px 8px;
    border: none;
    border-radius: 12px;
    background: rgba(116, 185, 255, 0.1);
    color: #74b9ff;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid rgba(116, 185, 255, 0.2);
}

.vc-preset-btn i {
    font-size: 1.2rem;
}

.vc-preset-btn:hover {
    background: rgba(116, 185, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(116, 185, 255, 0.2);
}

.vc-preset-btn.active {
    background: linear-gradient(135deg, #74b9ff, #0984e3);
    color: white;
    box-shadow: 0 5px 15px rgba(116, 185, 255, 0.4);
}

.vc-advanced-controls {
    margin-bottom: 25px;
}

.vc-advanced-controls h4 {
    margin-bottom: 15px;
    color: #00cec9;
    font-size: 1.1rem;
}

.vc-sliders {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.vc-slider-item {
    background: rgba(0, 0, 0, 0.2);
    padding: 15px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.vc-slider-item label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    color: #dfe6e9;
    font-weight: 500;
}

.vc-slider-item label i {
    margin-right: 8px;
    color: #00cec9;
}

.vc-slider-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 5px;
    font-size: 0.85rem;
    color: #b2bec3;
}

.vc-preview {
    background: rgba(0, 206, 201, 0.1);
    padding: 20px;
    border-radius: 15px;
    border: 1px solid rgba(0, 206, 201, 0.3);
}

.vc-preview h4 {
    margin-bottom: 15px;
    color: #00cec9;
    font-size: 1.1rem;
}

#vcPreviewBtn {
    margin-bottom: 15px;
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #00cec9, #00a8a8);
    border: none;
    border-radius: 10px;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

#vcPreviewBtn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 206, 201, 0.4);
}

.vc-preview-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 15px;
}

.vc-preview-info p {
    margin: 5px 0;
    color: #dfe6e9;
    font-size: 0.9rem;
}

.vc-preview-info span {
    color: #00cec9;
    font-weight: 600;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .vc-preset-buttons {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .vc-sliders {
        grid-template-columns: 1fr;
    }
    
    .vc-preview-info {
        grid-template-columns: 1fr;
    }
}

/* 统一变声器区域字体样式 */
.voice-changer-section h2 {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 1.8rem !important;
    color: #e84393 !important;
    text-shadow: 
        -1px -1px 0 rgba(0, 0, 0, 0.8),  
        1px -1px 0 rgba(0, 0, 0, 0.8),
        -1px 1px 0 rgba(0, 0, 0, 0.8),
        1px 1px 0 rgba(0, 0, 0, 0.8),
        0 0 4px rgba(0, 0, 0, 0.8) !important;
    margin-bottom: 25px !important;
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
}

.voice-changer-section h4 {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
    font-size: 1.1rem !important;
    margin-bottom: 15px !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.voice-changer-section label,
.voice-changer-section .toggle-label,
.voice-changer-section p {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
    text-shadow: 
        -1px -1px 0 rgba(0, 0, 0, 0.6),  
        1px -1px 0 rgba(0, 0, 0, 0.6),
        -1px 1px 0 rgba(0, 0, 0, 0.6),
        1px 1px 0 rgba(0, 0, 0, 0.6),
        0 0 2px rgba(0, 0, 0, 0.7) !important;
}

/* 添加更多变声器滑块样式 */
.vc-sliders {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.vc-slider-item {
    background: rgba(0, 0, 0, 0.2);
    padding: 15px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.vc-slider-item:hover {
    background: rgba(0, 0, 0, 0.25);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.vc-slider-item label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    color: #dfe6e9;
    font-weight: 500;
}

.vc-slider-item label i {
    margin-right: 8px;
    color: #00cec9;
}

.vc-slider-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 5px;
    font-size: 0.85rem;
    color: #b2bec3;
}

/* 不同类型的滑块颜色标识 */
.vc-slider-item[data-type="pitch"] {
    border-left: 3px solid #e84393;
}

.vc-slider-item[data-type="formant"] {
    border-left: 3px solid #74b9ff;
}

.vc-slider-item[data-type="robot"] {
    border-left: 3px solid #00cec9;
}

.vc-slider-item[data-type="chorus"] {
    border-left: 3px solid #a29bfe;
}

.vc-slider-item[data-type="tremolo"] {
    border-left: 3px solid #fd79a8;
}

.vc-slider-item[data-type="distortion"] {
    border-left: 3px solid #fdcb6e;
}

.vc-slider-item[data-type="noise"] {
    border-left: 3px solid #dfe6e9;
}

/* 更多预设按钮布局 */
.vc-preset-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
    margin-top: 15px;
    max-height: 300px;
    overflow-y: auto;
    padding-right: 10px;
}

.vc-preset-buttons::-webkit-scrollbar {
    width: 6px;
}

.vc-preset-buttons::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
}

.vc-preset-buttons::-webkit-scrollbar-thumb {
    background: rgba(116, 185, 255, 0.5);
    border-radius: 3px;
}

.vc-preset-btn {
    padding: 12px 8px;
    border: none;
    border-radius: 12px;
    background: rgba(116, 185, 255, 0.1);
    color: #74b9ff;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid rgba(116, 185, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.vc-preset-btn i {
    font-size: 1.2rem;
}

.vc-preset-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.vc-preset-btn:hover::before {
    left: 100%;
}

.vc-preset-btn:hover {
    background: rgba(116, 185, 255, 0.2);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(116, 185, 255, 0.2);
}

.vc-preset-btn.active {
    background: linear-gradient(135deg, #74b9ff, #0984e3);
    color: white;
    box-shadow: 0 5px 15px rgba(116, 185, 255, 0.4);
    border-color: #74b9ff;
}

/* 特效标签 */
.effect-tag {
    position: absolute;
    top: 5px;
    right: 5px;
    font-size: 0.7rem;
    background: rgba(0, 0, 0, 0.5);
    padding: 2px 6px;
    border-radius: 10px;
    color: #dfe6e9;
}

/* 效果强度指示器 */
.effect-intensity {
    width: 100%;
    height: 4px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 2px;
    margin-top: 5px;
    overflow: hidden;
}

.effect-intensity-bar {
    height: 100%;
    background: linear-gradient(90deg, #74b9ff, #0984e3);
    border-radius: 2px;
    transition: width 0.3s ease;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .vc-preset-buttons {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .vc-sliders {
        grid-template-columns: 1fr;
    }
    
    .vc-preset-btn {
        padding: 10px 6px;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .vc-preset-buttons {
        grid-template-columns: 1fr;
    }
}

/* 确保变声器按钮字体统一 */
.vc-preset-btn {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
    text-shadow: 
        -1px -1px 0 rgba(0, 0, 0, 0.5),  
        1px -1px 0 rgba(0, 0, 0, 0.5),
        -1px 1px 0 rgba(0, 0, 0, 0.5),
        1px 1px 0 rgba(0, 0, 0, 0.5),
        0 0 3px rgba(0, 0, 0, 0.6) !important;
}

/* 统一滑块标签字体 */
.vc-slider-item label {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
    font-weight: 600 !important;
}

.vc-slider-labels {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
}

/* ===== 修复变声器按钮样式 ===== */
.vc-preset-btn.active {
    background: linear-gradient(135deg, #74b9ff, #0984e3) !important;
    border-color: #74b9ff !important;
    box-shadow: 0 5px 15px rgba(116, 185, 255, 0.4) !important;
    transform: translateY(-2px) !important;
}

.vc-preset-btn:active {
    transform: scale(0.95) !important;
}

/* 统一预览信息字体 */
.vc-preview-info p,
.vc-preview-info span {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
}

/* 确保切换开关标签字体一致 */
.voice-changer-section .toggle-switch .toggle-label {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
    font-weight: 600 !important;
}
