        body {
            font-family: 'Noto Sans SC', sans-serif;
            background: linear-gradient(135deg, #0a0e27 0%, #1a1f3a 50%, #0d1137 100%);
            background-attachment: fixed;
            min-height: 100vh;
        }
        .glass-panel {
            background: rgba(20, 25, 50, 0.75);
            backdrop-filter: blur(16px);
            border: 1px solid rgba(100, 120, 200, 0.12);
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
        }
        .gradient-text {
            background: linear-gradient(135deg, #60a5fa 0%, #a78bfa 50%, #f472b6 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }
        .btn-primary {
            background: linear-gradient(135deg, #3b82f6 0%, #7c3aed 100%);
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
        }
        .btn-primary::before {
            content: '';
            position: absolute;
            top: 0; left: -100%;
            width: 100%; height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
            transition: left 0.5s;
        }
        .btn-primary:hover::before { left: 100%; }
        .btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(59, 130, 246, 0.4); }
        .btn-primary:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
        .style-card {
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            cursor: pointer;
            border: 2px solid transparent;
        }
        .style-card:hover {
            transform: translateY(-4px) scale(1.02);
            border-color: rgba(139, 92, 246, 0.4);
            box-shadow: 0 10px 25px rgba(139, 92, 246, 0.15);
        }
        .style-card.active {
            border-color: #8b5cf6;
            background: rgba(139, 92, 246, 0.08);
            box-shadow: 0 0 20px rgba(139, 92, 246, 0.2);
        }
        .loading-spinner {
            border: 3px solid rgba(255, 255, 255, 0.1);
            border-top-color: #60a5fa;
            border-radius: 50%;
            width: 40px;
            height: 40px;
            animation: spin 1s linear infinite;
        }
        @keyframes spin { to { transform: rotate(360deg); } }
        .pulse-ring {
            position: absolute;
            border-radius: 50%;
            animation: pulse-ring 2s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
        }
        @keyframes pulse-ring {
            0% { transform: scale(0.8); opacity: 0.8; }
            100% { transform: scale(2); opacity: 0; }
        }
        .history-item { transition: all 0.3s ease; }
        .history-item:hover { transform: scale(1.03); z-index: 10; }
        .range-slider {
            -webkit-appearance: none;
            appearance: none;
            background: transparent;
            cursor: pointer;
            width: 100%;
        }
        .range-slider::-webkit-slider-runnable-track {
            height: 6px;
            background: rgba(100, 120, 200, 0.2);
            border-radius: 3px;
        }
        .range-slider::-webkit-slider-thumb {
            -webkit-appearance: none;
            appearance: none;
            width: 20px;
            height: 20px;
            background: linear-gradient(135deg, #60a5fa, #8b5cf6);
            border-radius: 50%;
            margin-top: -7px;
            box-shadow: 0 2px 10px rgba(139, 92, 246, 0.5);
            border: 2px solid rgba(255,255,255,0.3);
        }
        .canvas-container {
            background-image: 
                linear-gradient(45deg, rgba(30, 41, 59, 0.5) 25%, transparent 25%),
                linear-gradient(-45deg, rgba(30, 41, 59, 0.5) 25%, transparent 25%);
            background-size: 20px 20px;
            background-position: 0 0, 0 10px;
        }
        .toast {
            animation: slideIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        }
        @keyframes slideIn {
            from { transform: translateX(120%); opacity: 0; }
            to { transform: translateX(0); opacity: 1; }
        }
        .progress-bar {
            height: 3px;
            background: linear-gradient(90deg, #3b82f6, #8b5cf6);
            border-radius: 2px;
            transition: width 0.3s ease;
        }
        .ratio-btn.active {
            border-color: #8b5cf6;
            background: rgba(139, 92, 246, 0.15);
            color: #a78bfa;
        }
        ::-webkit-scrollbar { width: 6px; height: 6px; }
        ::-webkit-scrollbar-track { background: rgba(10, 14, 39, 0.5); }
        ::-webkit-scrollbar-thumb { background: rgba(100, 120, 200, 0.3); border-radius: 3px; }
        ::-webkit-scrollbar-thumb:hover { background: rgba(100, 120, 200, 0.5); }
        .drop-zone { transition: all 0.3s ease; }
        .drop-zone.dragover {
            border-color: #8b5cf6 !important;
            background: rgba(139, 92, 246, 0.05);
            transform: scale(1.02);
        }
        .ref-thumb {
            position: relative;
            transition: all 0.2s ease;
        }
        .ref-thumb:hover { transform: scale(1.05); }
        .ref-thumb .remove-btn {
            position: absolute;
            top: -6px; right: -6px;
            width: 20px; height: 20px;
            background: #ef4444;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            opacity: 0;
            transition: opacity 0.2s;
            font-size: 10px;
            color: white;
        }
        .ref-thumb:hover .remove-btn { opacity: 1; }
        .login-modal {
            position: fixed;
            inset: 0;
            background: rgba(0,0,0,0.8);
            backdrop-filter: blur(8px);
            z-index: 100;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        .login-box {
            background: linear-gradient(135deg, #1a1f3a, #0d1137);
            border: 1px solid rgba(139, 92, 246, 0.3);
            border-radius: 24px;
            padding: 48px;
            width: 100%;
            max-width: 420px;
            text-align: center;
            box-shadow: 0 25px 50px rgba(0,0,0,0.5);
        }
        
        
/* 按钮通用样式 */
.login-tab {
    padding: 8px 22px;
    margin-bottom: 15px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
    background: #fff;
    color: #64748B;
}

/* 选中激活态：主色高亮、白字、无边框 */
.login-tab.active {
    background: #4F46E5;
    color: #FFFFFF;
    border-color: #4F46E5;
    box-shadow: 0 0 8px rgba(25, 255, 255, 0.5);
}

/* 未选中态：白底浅边框、灰色文字 */
.login-tab.normal {
    background: #9F73F6;
    color: #000;
}