    /* ===== Design Tokens ===== */
    :root {
        --color-bg: #0A0A0B;
        --color-surface: #111113;
        --color-border: rgba(255,255,255,0.06);
        --color-border-hover: rgba(255,255,255,0.12);
        --color-accent-purple: #C084FC;
        --color-accent-cyan: #22D3EE;
        --radius-sm: 0.5rem;
        --radius-md: 0.75rem;
        --radius-lg: 1rem;
        --radius-xl: 1.5rem;
        --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
        --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
        --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
        --shadow-glow-purple: 0 0 30px rgba(192,132,252,0.25), 0 0 60px rgba(192,132,252,0.08);
        --shadow-glow-cyan: 0 0 30px rgba(34,211,238,0.25), 0 0 60px rgba(34,211,238,0.08);
        --shadow-card: 0 1px 2px rgba(0,0,0,0.4), 0 4px 16px rgba(0,0,0,0.3);
    }

    /* ===== Base Reset ===== */
    *, *::before, *::after { box-sizing: border-box; }

    html {
        scroll-behavior: smooth;
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }

    body {
        background-color: var(--color-bg);
        color: #E5E2E1;
        font-family: 'Inter', system-ui, sans-serif;
        font-size: 16px;
        line-height: 1.6;
        min-height: 100vh;
        overflow-x: hidden;
    }

    /* ===== Focus Styles ===== */
    :focus-visible {
        outline: 2px solid var(--color-accent-purple);
        outline-offset: 2px;
        border-radius: 4px;
    }

    /* ===== Selection ===== */
    ::selection {
        background: rgba(192,132,252,0.3);
        color: #FFFFFF;
    }

    /* ===== Scrollbar ===== */
    ::-webkit-scrollbar { width: 6px; }
    ::-webkit-scrollbar-track { background: transparent; }
    ::-webkit-scrollbar-thumb {
        background: rgba(255,255,255,0.1);
        border-radius: 3px;
    }
    ::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.2); }

    /* ===== Material Symbols ===== */
    .material-symbols-outlined {
        font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
        user-select: none;
    }
    .material-symbols-outlined.filled {
        font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    }

    /* ===== Glass Panel ===== */
    .glass-panel {
        background: linear-gradient(135deg,
            rgba(20,20,26,0.88) 0%,
            rgba(16,16,22,0.92) 100%);
        border: 1px solid var(--color-border);
        box-shadow: var(--shadow-card);
    }
    .glass-panel:hover {
        border-color: var(--color-border-hover);
    }

    /* ===== Glass Panel - Elevated ===== */
    .glass-panel-elevated {
        background: linear-gradient(135deg,
            rgba(24,24,32,0.92) 0%,
            rgba(18,18,26,0.96) 100%);
        border: 1px solid rgba(255,255,255,0.08);
        box-shadow: 0 4px 24px rgba(0,0,0,0.4), 0 1px 3px rgba(0,0,0,0.3);
    }

    /* ===== Glow Effects ===== */
    .glow-purple {
        box-shadow: var(--shadow-glow-purple);
    }
    .glow-cyan {
        box-shadow: var(--shadow-glow-cyan);
    }
    .glow-ring-purple {
        box-shadow: 0 0 0 1px rgba(192,132,252,0.3), 0 0 20px rgba(192,132,252,0.15);
    }
    .glow-ring-cyan {
        box-shadow: 0 0 0 1px rgba(34,211,238,0.3), 0 0 20px rgba(34,211,238,0.15);
    }

    /* ===== Gradient Text ===== */
    .text-gradient {
        background: linear-gradient(135deg, #C084FC 0%, #A78BFA 30%, #FFFFFF 50%, #22D3EE 70%, #67E8F9 100%);
        background-size: 200% 200%;
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
        will-change: background-position;
        animation: gradient-shift 8s ease-in-out infinite;
    }
    .text-gradient-brand {
        background: linear-gradient(135deg, #E9D5FF 0%, #C084FC 40%, #A78BFA 100%);
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
    }
    .text-gradient-cyan {
        background: linear-gradient(135deg, #67E8F9 0%, #22D3EE 50%, #06B6D4 100%);
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
    }

    /* ===== Animations ===== */
    @keyframes gradient-shift {
        0%, 100% { background-position: 0% 50%; }
        25% { background-position: 100% 0%; }
        50% { background-position: 100% 100%; }
        75% { background-position: 0% 100%; }
    }

    @keyframes float {
        0%, 100% { transform: translateY(0px) rotate(0deg); }
        33% { transform: translateY(-12px) rotate(1deg); }
        66% { transform: translateY(-6px) rotate(-1deg); }
    }
    .animate-float { animation: float 8s ease-in-out infinite; }
    .animate-float-delayed { animation: float 8s ease-in-out 3s infinite; }

    @keyframes pulse-glow {
        0%, 100% { opacity: 0.3; transform: scale(1); }
        50% { opacity: 0.6; transform: scale(1.05); }
    }
    .animate-pulse-glow { animation: pulse-glow 4s ease-in-out infinite; }

    @keyframes shimmer {
        0% { transform: translateX(-100%); }
        100% { transform: translateX(200%); }
    }
    .animate-shimmer {
        position: relative;
        overflow: hidden;
    }
    .animate-shimmer::after {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(90deg,
            transparent 0%,
            rgba(255,255,255,0.03) 30%,
            rgba(255,255,255,0.06) 50%,
            rgba(255,255,255,0.03) 70%,
            transparent 100%);
        animation: shimmer 3s ease-in-out infinite;
    }

    @keyframes slide-up {
        from { opacity: 0; transform: translateY(24px); }
        to { opacity: 1; transform: translateY(0); }
    }
    .animate-slide-up {
        animation: slide-up 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
    }
    .animate-slide-up-delay-1 { animation-delay: 0.1s; }
    .animate-slide-up-delay-2 { animation-delay: 0.2s; }
    .animate-slide-up-delay-3 { animation-delay: 0.3s; }

    @keyframes fade-in {
        from { opacity: 0; }
        to { opacity: 1; }
    }
    .animate-fade-in {
        animation: fade-in 0.4s ease-out both;
    }

    /* ===== Particle Background ===== */
    .particle-bg {
        position: relative;
    }
    .particle-bg::before {
        content: '';
        position: absolute;
        inset: 0;
        background-image:
            radial-gradient(circle at 20% 30%, rgba(192,132,252,0.06) 0%, transparent 50%),
            radial-gradient(circle at 80% 60%, rgba(34,211,238,0.06) 0%, transparent 50%),
            radial-gradient(circle at 50% 50%, rgba(255,255,255,0.02) 1px, transparent 0);
        background-size: 100% 100%, 100% 100%, 32px 32px;
        pointer-events: none;
    }

    /* ===== Form Elements ===== */
    .input-dark {
        width: 100%;
        background: rgba(255,255,255,0.03);
        border: 1px solid var(--color-border);
        border-radius: var(--radius-md);
        padding: 0.75rem 1rem;
        color: #E5E2E1;
        font-family: 'Inter', sans-serif;
        font-size: 1rem;
        line-height: 1.6;
        transition: all var(--transition-base);
        resize: vertical;
    }
    .input-dark::placeholder {
        color: rgba(229,226,225,0.25);
    }
    .input-dark:hover {
        border-color: var(--color-border-hover);
        background: rgba(255,255,255,0.04);
    }
    .input-dark:focus {
        outline: none;
        border-color: rgba(192,132,252,0.5);
        background: rgba(255,255,255,0.05);
        box-shadow: 0 0 0 3px rgba(192,132,252,0.1), 0 0 20px rgba(192,132,252,0.05);
    }
    .input-dark.input-cyan:focus {
        border-color: rgba(34,211,238,0.5);
        box-shadow: 0 0 0 3px rgba(34,211,238,0.1), 0 0 20px rgba(34,211,238,0.05);
    }

    /* ===== Button Styles ===== */
    .btn-primary {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        padding: 0.875rem 1.5rem;
        min-height: 52px;
        background: linear-gradient(135deg, #A855F7 0%, #7C3AED 50%, #6366F1 100%);
        color: #FFFFFF;
        font-family: 'Sora', sans-serif;
        font-weight: 700;
        font-size: 1rem;
        border: none;
        border-radius: var(--radius-lg);
        cursor: pointer;
        transition: all var(--transition-base);
        position: relative;
        overflow: hidden;
    }
    .btn-primary::before {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, transparent 50%);
        opacity: 0;
        transition: opacity var(--transition-base);
    }
    .btn-primary:hover:not(:disabled) {
        transform: translateY(-2px);
        box-shadow: 0 8px 32px rgba(168,85,247,0.35), 0 0 60px rgba(168,85,247,0.1);
    }
    .btn-primary:hover:not(:disabled)::before { opacity: 1; }
    .btn-primary:active:not(:disabled) { transform: translateY(0) scale(0.98); }
    .btn-primary:disabled {
        opacity: 0.5;
        cursor: not-allowed;
        animation: none;
    }
    .btn-primary:focus-visible {
        outline: 2px solid #C084FC;
        outline-offset: 3px;
    }

    /* ===== Progress Steps ===== */
    .step-icon {
        width: 44px;
        height: 44px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all var(--transition-slow);
        position: relative;
        z-index: 1;
    }
    .step-icon-default {
        background: rgba(255,255,255,0.04);
        border: 2px solid rgba(255,255,255,0.1);
        color: #8E9192;
    }
    .step-icon-active {
        background: rgba(34,211,238,0.08);
        border: 2px solid rgba(34,211,238,0.5);
        color: #22D3EE;
        box-shadow: 0 0 20px rgba(34,211,238,0.2), 0 0 40px rgba(34,211,238,0.05);
    }
    .step-icon-done {
        background: linear-gradient(135deg, rgba(192,132,252,0.2) 0%, rgba(168,85,247,0.1) 100%);
        border: 2px solid rgba(192,132,252,0.4);
        color: #C084FC;
        box-shadow: 0 0 16px rgba(192,132,252,0.2);
    }
    .step-icon-error {
        background: rgba(255,180,171,0.08);
        border: 2px solid rgba(255,180,171,0.4);
        color: #FFB4AB;
        box-shadow: 0 0 16px rgba(255,180,171,0.1);
    }
    .step-label {
        font-family: 'JetBrains Mono', monospace;
        font-size: 0.6875rem;
        font-weight: 500;
        letter-spacing: 0.05em;
        transition: color var(--transition-base);
        text-align: center;
        white-space: nowrap;
    }
    .step-label-default { color: #8E9192; }
    .step-label-active { color: #22D3EE; }
    .step-label-done { color: #C084FC; }
    .step-label-error { color: #FFB4AB; }

    /* ===== Status Badge ===== */
    .status-badge {
        display: inline-flex;
        align-items: center;
        gap: 0.375rem;
        padding: 0.25rem 0.75rem;
        border-radius: 9999px;
        font-family: 'JetBrains Mono', monospace;
        font-size: 0.625rem;
        font-weight: 500;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        transition: all var(--transition-base);
    }
    .status-pending {
        background: rgba(255,255,255,0.04);
        color: #8E9192;
        border: 1px solid rgba(255,255,255,0.08);
    }
    .status-running {
        background: rgba(34,211,238,0.08);
        color: #22D3EE;
        border: 1px solid rgba(34,211,238,0.2);
        animation: pulse-glow 2s ease-in-out infinite;
    }
    .status-done {
        background: rgba(192,132,252,0.08);
        color: #C084FC;
        border: 1px solid rgba(192,132,252,0.2);
    }
    .status-error {
        background: rgba(255,180,171,0.08);
        color: #FFB4AB;
        border: 1px solid rgba(255,180,171,0.2);
    }

    /* ===== Comfort Message ===== */
    .comfort-message {
        color: #C9B8E8;
        font-style: italic;
        min-height: 1.5rem;
        transition: opacity 0.5s ease;
        font-size: 0.9375rem;
    }
    .comfort-message::before {
        content: '✦ ';
        font-style: normal;
        opacity: 0.5;
    }

    /* ===== Video Player ===== */
    .video-wrapper {
        position: relative;
        border-radius: var(--radius-xl);
        overflow: hidden;
        transition: all var(--transition-slow);
    }
    .video-wrapper::before {
        content: '';
        position: absolute;
        inset: -1px;
        border-radius: inherit;
        background: linear-gradient(135deg,
            rgba(192,132,252,0.3),
            rgba(34,211,238,0.3),
            rgba(192,132,252,0.3));
        z-index: -1;
        opacity: 0;
        transition: opacity var(--transition-slow);
    }
    .video-wrapper:hover::before { opacity: 1; }
    video {
        width: 100%;
        border-radius: var(--radius-lg);
    }
    .download-link {
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        margin-top: 1rem;
        padding: 0.5rem 1rem;
        color: #67E8F9;
        text-decoration: none;
        font-size: 0.875rem;
        font-weight: 500;
        border-radius: var(--radius-sm);
        transition: all var(--transition-base);
    }
    .download-link:hover {
        color: #22D3EE;
        background: rgba(34,211,238,0.08);
    }

    /* ===== Error Boxes ===== */
    .error-box {
        display: none;
        padding: 0.75rem 1rem;
        border-radius: var(--radius-md);
        border: 1px solid rgba(255,180,171,0.25);
        background: rgba(255,180,171,0.04);
        color: #FFB4AB;
        font-size: 0.9375rem;
        line-height: 1.6;
        animation: fade-in 0.3s ease-out;
    }
    .error-box::before {
        content: '⚠ ';
    }

    /* ===== Background Orbs ===== */
    /* 用径向渐变模拟模糊光晕，避免 filter:blur(100px) 持续占用 GPU */
    .bg-orb {
        position: absolute;
        border-radius: 50%;
        pointer-events: none;
    }
    .bg-orb-purple {
        background: radial-gradient(circle, rgba(168,85,247,0.12) 0%, rgba(168,85,247,0.04) 40%, transparent 70%);
        width: 500px;
        height: 500px;
    }
    .bg-orb-cyan {
        background: radial-gradient(circle, rgba(34,211,238,0.08) 0%, rgba(34,211,238,0.03) 40%, transparent 70%);
        width: 400px;
        height: 400px;
    }

    /* ===== Section Dividers ===== */
    .section-gradient-border {
        height: 1px;
        background: linear-gradient(90deg,
            transparent 0%,
            rgba(192,132,252,0.2) 20%,
            rgba(34,211,238,0.2) 80%,
            transparent 100%);
    }

    /* ===== Reduced Motion ===== */
    @media (prefers-reduced-motion: reduce) {
        *, *::before, *::after {
            animation-duration: 0.01ms !important;
            animation-iteration-count: 1 !important;
            transition-duration: 0.01ms !important;
        }
        .btn-primary {
            animation: none;
        }
    }

    /* ===== Responsive ===== */
    @media (max-width: 640px) {
        .step-icon { width: 36px; height: 36px; }
        .step-label { font-size: 0.5625rem; }
        .btn-primary { padding: 0.75rem 1rem; font-size: 0.9375rem; }
    }

    /* ===== Gallery ===== */
    .gallery-tab-btn {
        padding: 0.5rem 1.25rem;
        border-radius: 9999px;
        font-family: 'Inter', sans-serif;
        font-size: 0.875rem;
        font-weight: 500;
        border: 1px solid transparent;
        transition: all var(--transition-base);
        cursor: pointer;
        background: transparent;
        color: #8E9192;
    }
    .gallery-tab-btn:hover {
        color: #E5E2E1;
        border-color: rgba(255,255,255,0.08);
        background: rgba(255,255,255,0.03);
    }
    .gallery-tab-btn.active {
        color: #C084FC;
        border-color: rgba(192,132,252,0.3);
        background: rgba(192,132,252,0.08);
        box-shadow: 0 0 12px rgba(192,132,252,0.1);
    }
    .gallery-card-img {
        display: flex;
        align-items: center;
        justify-content: center;
        aspect-ratio: 16 / 9;
        overflow: hidden;
        position: relative;
    }
    .gallery-card-img .overlay-icon {
        position: relative;
        z-index: 2;
        width: 48px;
        height: 48px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        background: rgba(0,0,0,0.45);
        border: 1px solid rgba(255,255,255,0.15);
        transition: all var(--transition-base);
        opacity: 0.6;
    }
    .gallery-card-img .overlay-label {
        position: absolute;
        bottom: 12px;
        right: 12px;
        z-index: 2;
        padding: 4px 10px;
        border-radius: 6px;
        font-size: 10px;
        font-family: 'JetBrains Mono', monospace;
        letter-spacing: 0.08em;
        background: rgba(0,0,0,0.55);
        color: rgba(255,255,255,0.7);
        border: 1px solid rgba(255,255,255,0.06);
    }
    .gallery-card-img .overlay-category {
        position: absolute;
        top: 12px;
        left: 12px;
        z-index: 2;
        padding: 3px 10px;
        border-radius: 9999px;
        font-size: 10px;
        font-family: 'JetBrains Mono', monospace;
        font-weight: 500;
        letter-spacing: 0.06em;
        text-transform: uppercase;
    }
    .tab-content-panel {
        display: none;
    }
    .tab-content-panel.active {
        display: block;
    }

    /* ===== User Dropdown ===== */
    .user-dropdown {
        position: absolute;
        top: calc(100% + 8px);
        right: 0;
        min-width: 200px;
        z-index: 200;
        background: rgba(20, 20, 25, 0.96);
        border: 1px solid rgba(255,255,255,0.08);
        box-shadow: 0 8px 32px rgba(0,0,0,0.5);
    }
    .dropdown-item {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 10px 16px;
        font-size: 14px;
        color: #E5E2E1;
        cursor: pointer;
        transition: background 150ms ease;
    }
    .dropdown-item:hover {
        background: rgba(255,255,255,0.05);
    }

    /* ===== Task Panel ===== */
    .task-card {
        background: rgba(255,255,255,0.03);
        border: 1px solid rgba(255,255,255,0.06);
        border-radius: 0.75rem;
        padding: 1rem;
        display: flex;
        align-items: center;
        gap: 1rem;
        transition: all 200ms ease;
    }
    .task-card:hover {
        background: rgba(255,255,255,0.05);
        border-color: rgba(255,255,255,0.1);
    }
    .task-status {
        font-size: 0.75rem;
        font-weight: 600;
        padding: 2px 10px;
        border-radius: 9999px;
        white-space: nowrap;
    }
    .task-status-done {
        background: rgba(74,222,128,0.1);
        color: #4ADE80;
        border: 1px solid rgba(74,222,128,0.2);
    }
    .task-status-error {
        background: rgba(255,180,171,0.1);
        color: #FFB4AB;
        border: 1px solid rgba(255,180,171,0.2);
    }
    .task-status-running {
        background: rgba(192,132,252,0.1);
        color: #C084FC;
        border: 1px solid rgba(192,132,252,0.2);
    }
    .task-status-queued {
        background: rgba(251,191,36,0.1);
        color: #FBBF24;
        border: 1px solid rgba(251,191,36,0.2);
    }
    .task-status-pending {
        background: rgba(161,161,170,0.1);
        color: #A1A1AA;
        border: 1px solid rgba(161,161,170,0.2);
    }
    .task-video-wrap {
        animation: fade-in 0.25s ease-out both;
    }

    /* ===== Task Panel Responsive ===== */
    @media (max-width: 480px) {
        .task-card {
            padding: 0.75rem !important;
        }
        .task-card > div:first-child {
            flex-wrap: wrap !important;
            gap: 0.5rem !important;
        }
        .task-card > div:first-child > div:first-child {
            flex: 1 1 100% !important;
        }
    }
    /* ===== 导航移动端微调 ===== */
    /* iOS 安全区适配：把固定导航推到刘海/状态栏下方 */
    @supports (padding: max(0px)) {
        nav.fixed {
            top: max(0.75rem, env(safe-area-inset-top, 0.75rem));
        }
        @media (min-width: 640px) {
            nav.fixed {
                top: max(1rem, env(safe-area-inset-top, 1rem));
            }
        }
    }

    /* 极窄屏（≤360px）进一步压缩内边距 */
    @media (max-width: 360px) {
        nav.fixed > div {
            padding-left: 0.625rem;
            padding-right: 0.625rem;
            gap: 0.375rem;
        }
    }

    /* 用户区域不允许换行/溢出 */
    #userAuthArea {
        flex-wrap: nowrap;
    }
    #userAuthArea > * {
        flex-shrink: 0;
    }

    /* 触摸高亮去除（移动端 tap 时的灰色背景） */
    nav button, nav a {
        -webkit-tap-highlight-color: transparent;
    }
