:root {
            --bg-base: #070a13;
            --bg-surface: rgba(15, 23, 42, 0.78);
            --bg-card: rgba(20, 29, 51, 0.65);
            --bg-card-hover: rgba(30, 41, 69, 0.75);
            --border-subtle: rgba(255, 255, 255, 0.08);
            --border-focus: #8b5cf6;
            --primary: #8b5cf6;
            --primary-gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #06b6d4 100%);
            --primary-glow: rgba(139, 92, 246, 0.35);
            --cyan-accent: #06b6d4;
            --text-main: #f8fafc;
            --text-secondary: #94a3b8;
            --text-muted: #64748b;
            --danger: #ef4444;
            --danger-bg: rgba(239, 68, 68, 0.12);
            --danger-border: rgba(239, 68, 68, 0.35);
            --success: #10b981;
            --success-glow: rgba(16, 185, 129, 0.4);
            --radius-sm: 8px;
            --radius-md: 12px;
            --radius-lg: 18px;
        }

        * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
        }

        body {
            background-color: var(--bg-base);
            color: var(--text-main);
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            overflow-x: hidden;
            position: relative;
        }

        /* 神经流动背景画布 */
        #neural-canvas {
            position: fixed;
            top: 0;
            left: 0;
            width: 100vw;
            height: 100vh;
            pointer-events: none;
            z-index: 0;
        }

        /* 渐变氛围光斑 */
        .ambient-glow {
            position: fixed;
            top: 0;
            left: 0;
            width: 100vw;
            height: 100vh;
            pointer-events: none;
            z-index: 0;
            background: 
                radial-gradient(circle at 18% 18%, rgba(99, 102, 241, 0.18) 0%, transparent 45%),
                radial-gradient(circle at 82% 75%, rgba(6, 182, 212, 0.15) 0%, transparent 48%),
                radial-gradient(circle at 50% 50%, rgba(139, 92, 246, 0.08) 0%, transparent 60%);
        }

        .ambient-grid {
            position: fixed;
            top: 0;
            left: 0;
            width: 100vw;
            height: 100vh;
            background-image: 
                linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
                linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
            background-size: 40px 40px;
            pointer-events: none;
            z-index: 0;
        }

        /* 顶部导航 */
        header {
            position: relative;
            z-index: 10;
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 1.15rem 2.5rem;
            border-bottom: 1px solid var(--border-subtle);
            backdrop-filter: blur(16px);
            background: rgba(7, 10, 19, 0.7);
        }

        .brand {
            display: flex;
            align-items: center;
            gap: 12px;
            text-decoration: none;
            color: var(--text-main);
        }

        .brand-logo {
            width: 40px;
            height: 40px;
            background: var(--primary-gradient);
            border-radius: var(--radius-md);
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 0 20px var(--primary-glow);
            transition: transform 0.3s ease;
        }

        .brand:hover .brand-logo {
            transform: scale(1.05) rotate(2deg);
        }

        .brand-logo svg {
            width: 24px;
            height: 24px;
            fill: white;
        }

        .brand-text {
            font-size: 1.22rem;
            font-weight: 700;
            letter-spacing: 0.5px;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .brand-badge {
            color: #c4b5fd;
            font-weight: 500;
            font-size: 0.72rem;
            padding: 3px 8px;
            background: rgba(139, 92, 246, 0.15);
            border: 1px solid rgba(139, 92, 246, 0.35);
            border-radius: 20px;
            letter-spacing: 0.5px;
        }

        .header-right {
            display: flex;
            align-items: center;
            gap: 20px;
        }

        .system-status {
            display: flex;
            align-items: center;
            gap: 16px;
            font-size: 0.85rem;
            color: var(--text-secondary);
        }

        .status-badge {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 6px 14px;
            background: rgba(16, 185, 129, 0.08);
            border: 1px solid rgba(16, 185, 129, 0.25);
            border-radius: 20px;
            color: #34d399;
            font-weight: 500;
            font-size: 0.8rem;
        }

        .status-dot {
            width: 8px;
            height: 8px;
            background-color: var(--success);
            border-radius: 50%;
            box-shadow: 0 0 10px var(--success-glow);
            animation: pulse-dot 2s infinite;
        }

        .header-nav-link {
            color: var(--text-secondary);
            font-size: 0.86rem;
            text-decoration: none;
            padding: 6px 12px;
            border-radius: var(--radius-sm);
            border: 1px solid var(--border-subtle);
            background: rgba(255, 255, 255, 0.03);
            transition: all 0.2s;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .header-nav-link:hover {
            color: var(--text-main);
            border-color: rgba(139, 92, 246, 0.4);
            background: rgba(139, 92, 246, 0.1);
        }

        .lang-switcher {
            display: flex;
            background: rgba(255, 255, 255, 0.05);
            padding: 3px;
            border-radius: 20px;
            border: 1px solid var(--border-subtle);
        }

        .lang-btn {
            background: transparent;
            border: none;
            color: var(--text-muted);
            padding: 4px 10px;
            border-radius: 14px;
            font-size: 0.78rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s;
        }

        .lang-btn.active {
            background: var(--primary-gradient);
            color: white;
            box-shadow: 0 2px 8px var(--primary-glow);
        }

        /* 主体布局 */
        main {
            position: relative;
            z-index: 10;
            flex: 1;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 2.5rem 1.5rem;
        }

        .portal-wrapper {
            width: 100%;
            max-width: 1140px;
            display: grid;
            grid-template-columns: 1.15fr 0.95fr;
            background: var(--bg-surface);
            border: 1px solid var(--border-subtle);
            border-radius: var(--radius-lg);
            backdrop-filter: blur(24px);
            box-shadow: 
                0 25px 60px -15px rgba(0, 0, 0, 0.7),
                0 0 40px -10px rgba(139, 92, 246, 0.15);
            overflow: hidden;
        }

        /* 左侧介绍面板 */
        .info-panel {
            padding: 3.2rem 3rem;
            border-right: 1px solid var(--border-subtle);
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            position: relative;
            background: linear-gradient(180deg, rgba(20, 27, 48, 0.5) 0%, rgba(12, 17, 32, 0.3) 100%);
        }

        .hero-tag {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            font-size: 0.75rem;
            font-weight: 600;
            letter-spacing: 0.8px;
            text-transform: uppercase;
            color: #a78bfa;
            background: rgba(139, 92, 246, 0.12);
            border: 1px solid rgba(139, 92, 246, 0.3);
            padding: 5px 12px;
            border-radius: 20px;
            margin-bottom: 1.25rem;
        }

        .info-header h2 {
            font-size: 2.05rem;
            line-height: 1.25;
            font-weight: 800;
            margin-bottom: 0.9rem;
            background: linear-gradient(135deg, #ffffff 30%, #c4b5fd 75%, #06b6d4 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }

        .info-header p {
            color: var(--text-secondary);
            font-size: 0.96rem;
            line-height: 1.65;
            margin-bottom: 2rem;
        }

        .feature-list {
            list-style: none;
            display: flex;
            flex-direction: column;
            gap: 1.2rem;
            margin-bottom: 2.2rem;
        }

        .feature-item {
            display: flex;
            gap: 14px;
            align-items: flex-start;
            padding: 12px 14px;
            border-radius: var(--radius-md);
            background: rgba(255, 255, 255, 0.02);
            border: 1px solid rgba(255, 255, 255, 0.04);
            transition: all 0.25s ease;
        }

        .feature-item:hover {
            background: rgba(139, 92, 246, 0.06);
            border-color: rgba(139, 92, 246, 0.25);
            transform: translateX(4px);
        }

        .feature-icon {
            width: 34px;
            height: 34px;
            border-radius: var(--radius-sm);
            background: rgba(139, 92, 246, 0.15);
            border: 1px solid rgba(139, 92, 246, 0.3);
            display: flex;
            align-items: center;
            justify-content: center;
            color: #c4b5fd;
            flex-shrink: 0;
            margin-top: 2px;
        }

        .feature-text h4 {
            font-size: 0.95rem;
            font-weight: 600;
            margin-bottom: 3px;
            color: var(--text-main);
        }

        .feature-text p {
            font-size: 0.83rem;
            color: var(--text-muted);
            line-height: 1.45;
        }

        /* 算力集群遥测概览 */
        .telemetry-card {
            background: rgba(10, 15, 28, 0.7);
            border: 1px solid rgba(255, 255, 255, 0.06);
            border-radius: var(--radius-md);
            padding: 14px 18px;
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 12px;
            margin-bottom: 1.5rem;
        }

        .telemetry-item {
            display: flex;
            flex-direction: column;
            gap: 3px;
        }

        .telemetry-label {
            font-size: 0.72rem;
            color: var(--text-muted);
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .telemetry-value {
            font-size: 0.95rem;
            font-weight: 700;
            color: var(--cyan-accent);
            font-family: monospace;
        }

        .compliance-tag {
            display: flex;
            align-items: center;
            gap: 12px;
            font-size: 0.76rem;
            color: var(--text-muted);
            flex-wrap: wrap;
        }

        .compliance-item {
            display: flex;
            align-items: center;
            gap: 6px;
            padding: 4px 10px;
            background: rgba(255, 255, 255, 0.03);
            border: 1px solid var(--border-subtle);
            border-radius: 6px;
        }

        /* 右侧登录面板 */
        .login-panel {
            padding: 3.2rem 2.8rem;
            display: flex;
            flex-direction: column;
            justify-content: center;
            background: rgba(15, 22, 40, 0.4);
        }

        .login-header {
            margin-bottom: 1.8rem;
        }

        .login-header h3 {
            font-size: 1.55rem;
            font-weight: 700;
            margin-bottom: 0.4rem;
            color: var(--text-main);
        }

        .login-header p {
            font-size: 0.88rem;
            color: var(--text-secondary);
            line-height: 1.5;
        }

        /* Tab 选项卡 */
        .tabs {
            display: flex;
            background: rgba(10, 15, 28, 0.8);
            border: 1px solid var(--border-subtle);
            border-radius: var(--radius-md);
            padding: 4px;
            margin-bottom: 1.5rem;
            gap: 4px;
        }

        .tab-btn {
            flex: 1;
            padding: 9px 12px;
            border: none;
            background: transparent;
            color: var(--text-muted);
            font-size: 0.84rem;
            font-weight: 600;
            border-radius: var(--radius-sm);
            cursor: pointer;
            transition: all 0.2s;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
        }

        .tab-btn.active {
            background: rgba(139, 92, 246, 0.18);
            color: #c4b5fd;
            border: 1px solid rgba(139, 92, 246, 0.35);
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
        }

        /* 表单控件 */
        .form-group {
            margin-bottom: 1.25rem;
        }

        .form-label {
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-size: 0.84rem;
            font-weight: 500;
            color: var(--text-secondary);
            margin-bottom: 0.45rem;
        }

        .input-wrapper {
            position: relative;
            display: flex;
            align-items: center;
        }

        .input-icon {
            position: absolute;
            left: 14px;
            width: 18px;
            height: 18px;
            color: var(--text-muted);
            transition: color 0.2s ease;
            pointer-events: none;
        }

        .form-input, .form-select {
            width: 100%;
            background: rgba(10, 15, 30, 0.8);
            border: 1px solid var(--border-subtle);
            border-radius: var(--radius-md);
            padding: 12px 14px 12px 42px;
            color: var(--text-main);
            font-size: 0.92rem;
            outline: none;
            transition: all 0.25s ease;
        }

        .form-select {
            appearance: none;
            cursor: pointer;
        }

        .form-input:focus, .form-select:focus {
            border-color: var(--border-focus);
            box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2);
        }

        .form-input:focus + .input-icon,
        .form-input:focus ~ .input-icon {
            color: var(--primary);
        }

        .toggle-pwd {
            position: absolute;
            right: 14px;
            background: none;
            border: none;
            color: var(--text-muted);
            cursor: pointer;
            padding: 4px;
            display: flex;
            align-items: center;
        }

        .toggle-pwd:hover {
            color: var(--text-main);
        }

        /* 记住与找回 */
        .form-options {
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-size: 0.82rem;
            color: var(--text-muted);
            margin: 1rem 0 1.4rem 0;
        }

        .checkbox-label {
            display: flex;
            align-items: center;
            gap: 8px;
            cursor: pointer;
            user-select: none;
        }

        .checkbox-label input {
            accent-color: var(--primary);
            cursor: pointer;
        }

        .forgot-link {
            color: #a78bfa;
            text-decoration: none;
            transition: opacity 0.2s;
        }

        .forgot-link:hover {
            text-decoration: underline;
        }

        /* 提交按钮 */
        .submit-btn {
            width: 100%;
            background: var(--primary-gradient);
            border: none;
            border-radius: var(--radius-md);
            color: #ffffff;
            padding: 13px 20px;
            font-size: 0.96rem;
            font-weight: 700;
            letter-spacing: 0.5px;
            cursor: pointer;
            box-shadow: 0 4px 20px var(--primary-glow);
            transition: all 0.25s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
        }

        .submit-btn:hover {
            box-shadow: 0 6px 28px rgba(139, 92, 246, 0.55);
            transform: translateY(-1px);
        }

        .submit-btn:active {
            transform: translateY(0);
        }

        .submit-btn:disabled {
            opacity: 0.65;
            cursor: not-allowed;
            transform: none;
        }

        /* 加载 Spinner */
        .spinner {
            display: none;
            width: 18px;
            height: 18px;
            border: 2px solid rgba(255, 255, 255, 0.3);
            border-top-color: #ffffff;
            border-radius: 50%;
            animation: spin 0.8s linear infinite;
        }

        /* SSO 按钮组 */
        .sso-group {
            display: flex;
            flex-direction: column;
            gap: 10px;
            margin-top: 0.5rem;
        }

        .sso-btn {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            padding: 11px 16px;
            background: rgba(255, 255, 255, 0.04);
            border: 1px solid var(--border-subtle);
            border-radius: var(--radius-md);
            color: var(--text-main);
            font-size: 0.88rem;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.2s;
        }

        .sso-btn:hover {
            background: rgba(255, 255, 255, 0.08);
            border-color: rgba(255, 255, 255, 0.2);
            transform: translateY(-1px);
        }

        .sso-btn svg {
            width: 18px;
            height: 18px;
        }



        /* 错误提示横幅 */
        .alert-error {
            display: none;
            margin-bottom: 1.25rem;
            padding: 12px 16px;
            background: var(--danger-bg);
            border: 1px solid var(--danger-border);
            border-radius: var(--radius-md);
            color: #fca5a5;
            font-size: 0.84rem;
            line-height: 1.45;
        }

        .alert-error.active {
            display: flex;
            gap: 10px;
            animation: shake 0.4s ease-in-out;
        }

        .alert-icon {
            width: 18px;
            height: 18px;
            flex-shrink: 0;
            color: var(--danger);
            margin-top: 1px;
        }

        .alert-content strong {
            display: block;
            color: #fecaca;
            font-weight: 600;
            margin-bottom: 2px;
        }

        .alert-audit-meta {
            font-size: 0.74rem;
            color: #f87171;
            margin-top: 4px;
            font-family: monospace;
        }

        /* 模态弹窗 (API Docs & Help) */
        .modal-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100vw;
            height: 100vh;
            background: rgba(0, 0, 0, 0.75);
            backdrop-filter: blur(8px);
            z-index: 100;
            display: none;
            align-items: center;
            justify-content: center;
            padding: 1.5rem;
        }

        .modal-overlay.active {
            display: flex;
        }

        .modal-box {
            background: #0f172a;
            border: 1px solid rgba(139, 92, 246, 0.3);
            border-radius: var(--radius-lg);
            width: 100%;
            max-width: 620px;
            padding: 2rem;
            box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
            position: relative;
        }

        .modal-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 1.2rem;
        }

        .modal-header h3 {
            font-size: 1.25rem;
            font-weight: 700;
            color: var(--text-main);
        }

        .modal-close {
            background: transparent;
            border: none;
            color: var(--text-muted);
            font-size: 1.4rem;
            cursor: pointer;
            padding: 4px;
        }

        .modal-close:hover {
            color: var(--text-main);
        }

        .code-block {
            background: #090d16;
            border: 1px solid var(--border-subtle);
            border-radius: var(--radius-sm);
            padding: 14px;
            font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
            font-size: 0.82rem;
            color: #38bdf8;
            overflow-x: auto;
            margin: 1rem 0;
            line-height: 1.5;
        }

        /* 底部 */
        footer {
            position: relative;
            z-index: 10;
            padding: 1.5rem;
            border-top: 1px solid var(--border-subtle);
            text-align: center;
            font-size: 0.78rem;
            color: var(--text-muted);
            line-height: 1.6;
        }

        footer a {
            color: var(--text-secondary);
            text-decoration: none;
            margin: 0 8px;
            transition: color 0.2s;
        }

        footer a:hover {
            color: #c4b5fd;
        }

        /* 动画定义 */
        @keyframes pulse-dot {
            0%, 100% { opacity: 1; transform: scale(1); }
            50% { opacity: 0.45; transform: scale(0.85); }
        }

        @keyframes spin {
            to { transform: rotate(360deg); }
        }

        @keyframes shake {
            0%, 100% { transform: translateX(0); }
            20%, 60% { transform: translateX(-6px); }
            40%, 80% { transform: translateX(6px); }
        }

        /* 移动端响应式 */
        @media (max-width: 960px) {
            .portal-wrapper {
                grid-template-columns: 1fr;
            }
            .info-panel {
                border-right: none;
                border-bottom: 1px solid var(--border-subtle);
                padding: 2.2rem 1.8rem;
            }
            .login-panel {
                padding: 2.2rem 1.8rem;
            }
            header {
                padding: 1rem 1.25rem;
            }
            .system-status {
                display: none;
            }
        }
