/* 全局重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background: #0a0a1a;
    color: #ffffff;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Canvas 背景层 */
#starfield-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

/* 头部 */
.header {
    position: relative;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 24px 32px;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
    color: white;
}

.logo-text h1 {
    font-size: 20px;
    font-weight: 600;
    color: #ffffff;
}

.logo-text p {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 2px;
}

/* 登录面板 */
.auth-panel {
    background: rgba(30, 30, 60, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 16px;
    padding: 20px;
    width: 320px;
}

.auth-panel h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.auth-subtitle {
    font-size: 12px;
    color: #9ca3af;
    margin-bottom: 16px;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.auth-input {
    width: 100%;
    padding: 10px 14px;
    background: rgba(20, 20, 40, 0.8);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 8px;
    color: #ffffff;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
}

.auth-input:focus {
    border-color: #8b5cf6;
}

.auth-input::placeholder {
    color: #6b7280;
}

.auth-row {
    display: flex;
    gap: 8px;
}

.auth-row .auth-input {
    flex: 1;
}

.btn-login {
    padding: 10px 20px;
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: opacity 0.2s;
    white-space: nowrap;
}

.btn-login:hover {
    opacity: 0.9;
}

.btn-register {
    width: 100%;
    padding: 10px;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 8px;
    color: #a78bfa;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-register:hover {
    background: rgba(139, 92, 246, 0.2);
}

/* 主容器 */
.main-container {
    position: relative;
    z-index: 10;
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 24px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 32px 40px;
}

/* 主面板 */
.main-panel {
    background: rgba(30, 30, 60, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 20px;
    padding: 32px;
}

.panel-header {
    text-align: center;
    margin-bottom: 24px;
}

.panel-header h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #ffffff, #c4b5fd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.panel-desc {
    font-size: 14px;
    color: #9ca3af;
    line-height: 1.6;
}

/* 上传区域 */
.upload-area {
    border: 2px dashed rgba(139, 92, 246, 0.4);
    border-radius: 16px;
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 24px;
    background: rgba(139, 92, 246, 0.05);
}

.upload-area:hover {
    border-color: #8b5cf6;
    background: rgba(139, 92, 246, 0.1);
}

.upload-icon {
    font-size: 32px;
    margin-bottom: 8px;
}

.upload-text {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.upload-formats {
    font-size: 13px;
    color: #9ca3af;
    margin-bottom: 12px;
}

.upload-status {
    font-size: 14px;
    color: #10b981;
    font-weight: 500;
}

/* 效果网格 */
.effects-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 24px;
}

.effect-card {
    background: rgba(20, 20, 50, 0.6);
    border: 1px solid rgba(139, 92, 246, 0.15);
    border-radius: 12px;
    padding: 16px;
}

.effect-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.effect-title {
    font-size: 15px;
    font-weight: 600;
}

.effect-value {
    font-size: 14px;
    font-weight: 600;
    color: #a78bfa;
}

/* 滑块样式 */
.effect-slider {
    width: 100%;
    height: 6px;
    -webkit-appearance: none;
    appearance: none;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    outline: none;
    margin-bottom: 12px;
}

.effect-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    background: #8b5cf6;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.5);
    transition: transform 0.2s;
}

.effect-slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
}

.effect-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    background: #8b5cf6;
    border-radius: 50%;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.5);
}

.effect-desc {
    font-size: 12px;
    color: #9ca3af;
    line-height: 1.5;
}

/* 进阶效果面板 */
.advanced-panel {
    margin-bottom: 24px;
}

.advanced-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    color: #ffffff;
}

.advanced-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.advanced-card {
    background: rgba(20, 20, 50, 0.7);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 12px;
    padding: 16px;
}

.advanced-card.full-width {
    grid-column: 1 / -1;
}

.advanced-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.advanced-card-title {
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
}

.advanced-card-desc {
    font-size: 12px;
    color: #9ca3af;
    line-height: 1.5;
    margin-bottom: 12px;
}

/* 开关样式 */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.1);
    transition: 0.3s;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.toggle-switch input:checked + .toggle-slider {
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    border-color: transparent;
}

.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(20px);
}

/* dB 数值显示 */
.db-value {
    font-size: 14px;
    font-weight: 700;
    color: #60a5fa;
    font-family: 'SF Mono', Monaco, monospace;
}

/* 进阶滑块 */
.advanced-slider-container {
    margin-top: 8px;
}

.advanced-slider-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.slider-label {
    font-size: 12px;
    color: #9ca3af;
}

.slider-value {
    font-size: 13px;
    font-weight: 600;
    color: #a78bfa;
}

.advanced-slider {
    width: 100%;
    height: 6px;
    -webkit-appearance: none;
    appearance: none;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    outline: none;
}

.advanced-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    background: #8b5cf6;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(139, 92, 246, 0.5);
}

.advanced-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    background: #8b5cf6;
    border-radius: 50%;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 6px rgba(139, 92, 246, 0.5);
}

/* 处理按钮 */
.btn-process {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.3);
}

.btn-process:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(139, 92, 246, 0.4);
}

.btn-process:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* 侧边栏 */
.side-panel {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.pricing-card {
    background: rgba(30, 30, 60, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 20px;
    padding: 24px;
}

.pricing-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
}

.pricing-plan {
    background: rgba(20, 20, 50, 0.6);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
}

.plan-header {
    margin-bottom: 8px;
}

.plan-label {
    font-size: 13px;
    color: #9ca3af;
}

.plan-price {
    display: flex;
    align-items: baseline;
    margin-bottom: 16px;
}

.price-symbol {
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
}

.price-number {
    font-size: 32px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 4px;
}

.price-unit {
    font-size: 13px;
    color: #9ca3af;
}

.btn-recharge {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #10b981, #34d399);
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
    margin-bottom: 16px;
}

.btn-recharge:hover {
    opacity: 0.9;
}

.plan-features {
    list-style: none;
}

.plan-features li {
    font-size: 12px;
    color: #d1d5db;
    padding: 6px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.check-icon {
    color: #10b981;
    font-size: 14px;
}

.pricing-note {
    font-size: 12px;
    color: #9ca3af;
    line-height: 1.6;
}

/* 响应式 */
@media (max-width: 1024px) {
    .main-container {
        grid-template-columns: 1fr;
    }
    
    .header {
        flex-direction: column;
        gap: 20px;
        align-items: stretch;
    }
    
    .auth-panel {
        width: 100%;
    }
}

@media (max-width: 640px) {
    .effects-grid,
    .advanced-grid {
        grid-template-columns: 1fr;
    }
    
    .main-panel,
    .pricing-card {
        padding: 20px;
    }
    
    .header {
        padding: 16px;
    }
    
    .main-container {
        padding: 0 16px 24px;
    }
}
