:root {
    --bank-red: #B91C1C;
    --bank-red-deep: #7F1D1D;
    --bank-red-dark: #450A0A;
    --ink: #0F172A;
    --muted: #64748B;
    --line: #E2E8F0;
    --soft-line: #F1F5F9;
    --paper: #FFFFFF;
    --teal: #0F766E;
    --blue: #1D4ED8;
    --gold-dim: #A8893C;
    --gold-bright: #D4A853;
    --gold-pale: rgba(212,168,83,0.18);
}

/* 暗色模式覆盖登录页变量 */
[data-theme="dark"] {
    --ink: #e0e0e8;
    --muted: #8a91a0;
    --line: #252544;
    --soft-line: #181830;
    --paper: #1e1e36;
}

* { box-sizing: border-box; letter-spacing: 0; }

body {
    min-height: 100vh;
    margin: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 470px;
    color: var(--ink);
    background:var(--bg-surface-2);
    font-family: 'Inter', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

.hero-pane {
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    display: grid;
    align-content: center;
    padding: 80px 80px;
    color:var(--txt-on-color);
    background:
        radial-gradient(ellipse at 5% 10%, rgba(212,168,83,0.18), transparent 35%),
        radial-gradient(ellipse at 85% 15%, rgba(15,118,110,0.20), transparent 32%),
        radial-gradient(ellipse at 50% 90%, rgba(185,28,28,0.42), transparent 52%),
        linear-gradient(155deg, #5F1217 0%, #74151A 18%, #8A1A20 38%, #A21D23 56%, #C91F25 100%);
    isolation: isolate;
}

.hero-pane::before,
.hero-pane::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

.hero-pane::before {
    background:
        linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px),
        linear-gradient(0deg, rgba(255,255,255,0.04) 1px, transparent 1px);
    background-size: 80px 80px;
    mask-image: linear-gradient(105deg, rgba(0,0,0,0.68), rgba(0,0,0,0.14));
}

.hero-pane::after {
    background:
        linear-gradient(110deg, transparent 0 33%, rgba(212,168,83,0.10) 33.15% 33.5%, transparent 33.65% 100%),
        linear-gradient(24deg, transparent 0 62%, rgba(255,255,255,0.05) 62.1% 62.35%, transparent 62.5% 100%),
        radial-gradient(ellipse at 72% 80%, rgba(255,255,255,0.10), transparent 28%);
    mix-blend-mode: screen;
}

#particleCanvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.92;
}

.market-tape {
    position: absolute;
    z-index: 2;
    left: 42px;
    right: 42px;
    top: 32px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    opacity: 0.85;
}

.tape-item {
    min-height: 48px;
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.14);
    background: rgba(255,255,255,0.06);
    backdrop-filter: blur(16px);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
    transition: background 0.3s ease;
}

.tape-item:hover {
    background: rgba(255,255,255,0.10);
}

.tape-item small {
    display: block;
    color: rgba(255,255,255,0.58);
    font-size: 0.62rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.tape-item strong {
    display: block;
    margin-top: 2px;
    color:var(--txt-on-color);
    font-size: 0.84rem;
    font-weight: 820;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 920px;
}

.brand-mark {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 32px;
    color: var(--gold-bright);
    background: rgba(212,168,83,0.08);
    border: 1px solid rgba(212,168,83,0.22);
    box-shadow: 0 0 0 1px rgba(212,168,83,0.06), 0 0 48px rgba(212,168,83,0.10);
    backdrop-filter: blur(16px);
    transition: box-shadow 0.4s ease;
}

.brand-mark i { font-size: 1.55rem; }

.system-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 32px;
    margin-bottom: 20px;
    padding: 6px 13px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.18);
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.82);
    font-size: 0.7rem;
    font-weight: 820;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    backdrop-filter: blur(12px);
}

.signal-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #4ADE80;
    box-shadow: 0 0 0 6px rgba(74,222,128,0.10), 0 0 24px rgba(74,222,128,0.65);
    animation: signalPulse 2.4s ease-in-out infinite;
}

@keyframes signalPulse {
    0%, 100% { box-shadow: 0 0 0 4px rgba(74,222,128,0.08), 0 0 20px rgba(74,222,128,0.55); }
    50% { box-shadow: 0 0 0 12px rgba(74,222,128,0.01), 0 0 34px rgba(74,222,128,0.80); }
}

.hero-title {
    margin: 0;
    max-width: none;
    font-size: 4.35rem;
    line-height: 1.05;
    font-weight: 880;
    color:var(--txt-on-color);
    white-space: nowrap;
    word-break: keep-all;
}

.hero-copy {
    max-width: 660px;
    margin: 22px 0 0;
    color: rgba(255,255,255,0.80);
    font-size: 1.02rem;
    line-height: 1.82;
    font-weight: 420;
}

.console-grid {
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    gap: 14px;
    margin-top: 44px;
    max-width: 780px;
}

.signal-panel,
.metric-panel {
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.15);
    background: linear-gradient(180deg, rgba(255,255,255,0.10), rgba(255,255,255,0.05));
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.14), 0 20px 48px rgba(10,10,20,0.25);
    backdrop-filter: blur(18px);
    transition: box-shadow 0.4s ease;
}

.signal-panel { padding: 18px 18px 12px; }
.metric-panel { padding: 18px; display: grid; gap: 14px; }

.panel-label {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: rgba(255,255,255,0.56);
    font-size: 0.66rem;
    font-weight: 820;
    text-transform: uppercase;
    letter-spacing: 0.07em;
}

.panel-label span:last-child {
    color: rgba(212,168,83,0.72);
}

.wave-bars {
    display: grid;
    grid-template-columns: repeat(22, 1fr);
    align-items: end;
    gap: 5px;
    height: 82px;
    margin-top: 22px;
}

.wave-bars span {
    display: block;
    min-height: 12px;
    border-radius: 999px 999px 4px 4px;
    background: linear-gradient(180deg, rgba(255,255,255,0.82), rgba(255,255,255,0.14));
    animation: pulseBar 2.8s ease-in-out infinite;
}

.wave-bars span:nth-child(3n) { background: linear-gradient(180deg, rgba(74,222,128,0.72), rgba(74,222,128,0.10)); }
.wave-bars span:nth-child(4n) { background: linear-gradient(180deg, rgba(212,168,83,0.76), rgba(212,168,83,0.10)); }
.wave-bars span:nth-child(1) { height: 34px; animation-delay: 0.05s; }
.wave-bars span:nth-child(2) { height: 52px; animation-delay: 0.16s; }
.wave-bars span:nth-child(3) { height: 28px; animation-delay: 0.24s; }
.wave-bars span:nth-child(4) { height: 66px; animation-delay: 0.32s; }
.wave-bars span:nth-child(5) { height: 40px; animation-delay: 0.4s; }
.wave-bars span:nth-child(6) { height: 72px; animation-delay: 0.48s; }
.wave-bars span:nth-child(7) { height: 38px; animation-delay: 0.56s; }
.wave-bars span:nth-child(8) { height: 58px; animation-delay: 0.64s; }
.wave-bars span:nth-child(9) { height: 30px; animation-delay: 0.72s; }
.wave-bars span:nth-child(10) { height: 68px; animation-delay: 0.8s; }
.wave-bars span:nth-child(11) { height: 48px; animation-delay: 0.88s; }
.wave-bars span:nth-child(12) { height: 76px; animation-delay: 0.96s; }
.wave-bars span:nth-child(13) { height: 34px; animation-delay: 1.04s; }
.wave-bars span:nth-child(14) { height: 55px; animation-delay: 1.12s; }
.wave-bars span:nth-child(15) { height: 42px; animation-delay: 1.2s; }
.wave-bars span:nth-child(16) { height: 70px; animation-delay: 1.28s; }
.wave-bars span:nth-child(17) { height: 36px; animation-delay: 1.36s; }
.wave-bars span:nth-child(18) { height: 62px; animation-delay: 1.44s; }
.wave-bars span:nth-child(19) { height: 44px; animation-delay: 1.52s; }
.wave-bars span:nth-child(20) { height: 74px; animation-delay: 1.6s; }
.wave-bars span:nth-child(21) { height: 36px; animation-delay: 1.68s; }
.wave-bars span:nth-child(22) { height: 54px; animation-delay: 1.76s; }

@keyframes pulseBar {
    0%, 100% { transform: scaleY(0.72); opacity: 0.68; }
    50% { transform: scaleY(1); opacity: 1; }
}

.metric-row {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.10);
}

.metric-row:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.metric-row span {
    color: rgba(255,255,255,0.54);
    font-size: 0.7rem;
    font-weight: 720;
    letter-spacing: 0.04em;
}

.metric-row strong {
    color:var(--txt-on-color);
    font-size: 0.84rem;
    font-weight: 840;
}

.login-pane {
    min-height: 100vh;
    position: relative;
    display: grid;
    align-content: center;
    padding: 56px 52px;
    background:
        radial-gradient(ellipse at 85% 6%, rgba(212,168,83,0.07), transparent 28%),
        radial-gradient(ellipse at 15% 94%, rgba(185,28,28,0.04), transparent 24%),
        linear-gradient(185deg, #FDFDFE 0%, #F6F7FA 60%, #F1F3F7 100%);
    border-left: 1px solid rgba(15,23,42,0.06);
}

.login-pane::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(15,23,42,0.022) 1px, transparent 1px),
        linear-gradient(0deg, rgba(15,23,42,0.016) 1px, transparent 1px);
    background-size: 48px 48px;
    pointer-events: none;
}

.login-pane > .site-filing {
    position: absolute;
    z-index: 1;
    right: 24px;
    bottom: 20px;
    left: 24px;
}

.login-shell {
    position: relative;
    z-index: 1;
}

.login-card {
    position: relative;
    overflow: hidden;
    padding: 34px 32px;
    border: 1px solid rgba(203,213,225,0.86);
    border-radius: 12px;
    background: rgba(255,255,255,0.92);
    box-shadow:
        0 1px 0 rgba(255,255,255,0.96) inset,
        0 0 0 1px rgba(212,168,83,0.04),
        0 2px 8px rgba(15,23,42,0.04),
        0 12px 32px rgba(15,23,42,0.06),
        0 32px 84px rgba(15,23,42,0.09);
    backdrop-filter: blur(20px);
    transition: box-shadow 0.4s ease;
}

.login-card::before {
    content: '';
    position: absolute;
    inset: 0;
    top: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 8%, rgba(212,168,83,0.48) 35%, rgba(185,28,28,0.38) 65%, transparent 92%);
    pointer-events: none;
}

.login-card::after {
    content: '';
    position: absolute;
    top: -80px;
    right: -80px;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212,168,83,0.06), transparent 70%);
    pointer-events: none;
}

.login-header {
    margin-bottom: 32px;
    position: relative;
}

.login-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--gold-dim);
    font-size: 0.7rem;
    font-weight: 840;
    margin-bottom: 14px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.login-title {
    margin: 0;
    color: var(--ink);
    font-size: 1.8rem;
    font-weight: 860;
    letter-spacing: -0.02em;
}

.login-subtitle {
    margin-top: 8px;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.6;
    font-weight: 440;
}

.field-group {
    margin-bottom: 18px;
}

.field-label {
    display: block;
    margin-bottom: 8px;
    color:var(--txt-primary);
    font-size: 0.8rem;
    font-weight: 740;
    letter-spacing: 0.01em;
}

.field-wrap {
    position: relative;
}

.field-wrap > i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color:var(--txt-muted);
    font-size: 0.95rem;
    transition: color 0.22s ease;
}

.field-input {
    width: 100%;
    height: 50px;
    padding: 0 46px;
    border:1.5px solid var(--border-strong);
    border-radius: 10px;
    outline: none;
    color: var(--ink);
    background:var(--bg-surface-1);
    font-size: 0.94rem;
    font-weight: 440;
    transition: border-color 0.18s ease, box-shadow 0.22s ease, background 0.18s ease;
}

.field-input:hover {
    border-color:var(--border-strong);
    background: var(--bg-surface-1);
}

.field-input:focus {
    border-color:var(--danger);
    background: var(--bg-surface-1);
    box-shadow: 0 0 0 4px rgba(185,28,28,0.08), 0 0 0 1px rgba(185,28,28,0.12), 0 8px 24px rgba(15,23,42,0.04);
}

.field-wrap:focus-within > i {
    color: #B91C1C;
}

.password-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color:var(--txt-muted);
    cursor: pointer;
    font-size: 0.92rem;
    transition: background 0.18s ease, color 0.18s ease;
}

.password-toggle:hover {
    background:var(--bg-hover);
    color:var(--txt-secondary);
}

.login-button {
    width: 100%;
    height: 50px;
    margin-top: 8px;
    border: 0;
    border-radius: 10px;
    color:var(--txt-on-color);
    font-size: 0.94rem;
    font-weight: 840;
    letter-spacing: 0.03em;
    background: linear-gradient(135deg, #B91C1C 0%, #991B1B 40%, #7F1D1D 100%);
    box-shadow:
        0 1px 0 rgba(255,255,255,0.18) inset,
        0 0 0 1px rgba(153,27,27,0.22),
        0 12px 28px rgba(185,28,28,0.24),
        0 4px 8px rgba(15,23,42,0.08);
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.22s ease, filter 0.18s ease;
    position: relative;
    overflow: hidden;
}

.login-button::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 10px;
    background: linear-gradient(180deg, rgba(255,255,255,0.10), transparent 40%);
    pointer-events: none;
}

.login-button:hover:not(:disabled) {
    transform: translateY(-1.5px);
    filter: saturate(1.08) brightness(1.04);
    box-shadow:
        0 1px 0 rgba(255,255,255,0.20) inset,
        0 0 0 1px rgba(153,27,27,0.28),
        0 18px 38px rgba(185,28,28,0.32),
        0 6px 12px rgba(15,23,42,0.10);
}

.login-button:active:not(:disabled) {
    transform: translateY(0);
    transition: transform 0.06s ease;
}

.login-button:disabled {
    opacity: 0.84;
    cursor: not-allowed;
}

.trust-panel {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 20px;
}

.trust-item {
    min-height: 66px;
    padding: 12px 10px;
    border-radius: 10px;
    border:1.5px solid var(--border-strong);
    background:var(--bg-surface-1);
    text-align: center;
    transition: border-color 0.24s ease, box-shadow 0.24s ease;
}

.trust-item:hover {
    border-color:var(--border-strong);
    box-shadow: 0 4px 12px rgba(15,23,42,0.04);
}

.trust-item i {
    color: var(--gold-dim);
    font-size: 0.96rem;
}

.trust-item span {
    display: block;
    margin-top: 6px;
    color:var(--txt-secondary);
    font-size: 0.67rem;
    font-weight: 780;
    letter-spacing: 0.02em;
}

.login-footer {
    margin-top: 24px;
    display: grid;
    gap: 12px;
}

.security-line,
.runtime-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    color: var(--muted);
    font-size: 0.74rem;
    padding: 12px 0 0;
    border-top: 1px solid #EEF2F6;
    font-weight: 480;
}

.security-line:first-child {
    margin-top: 4px;
}

.status-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    margin-right: 7px;
    background: #10B981;
    box-shadow: 0 0 0 4px rgba(16,185,129,0.10), 0 0 16px rgba(16,185,129,0.30);
    animation: signalPulse 3s ease-in-out infinite;
}

.alert {
    border: 0;
    border-radius: 10px;
    font-size: 0.85rem;
}

@media (max-width: 1360px) {
    .hero-title {
        font-size: 3.9rem;
    }
}

@media (max-width: 1120px) {
    body {
        grid-template-columns: 1fr;
    }

    .hero-pane {
        min-height: auto;
        padding: 82px 32px 48px;
    }

    .market-tape {
        left: 24px;
        right: 24px;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hero-title {
        font-size: 3.6rem;
    }

    .login-pane {
        min-height: auto;
        padding: 38px 28px 92px;
    }

    .login-card {
        max-width: 520px;
        margin: 0 auto;
    }
}

@media (max-width: 720px) {
    .hero-pane {
        padding-top: 130px;
    }

    .hero-title {
        font-size: 2.6rem;
        white-space: normal;
    }

    .console-grid,
    .trust-panel {
        grid-template-columns: 1fr;
    }

    .login-card {
        padding: 26px 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .login-button,
    .field-input,
    .wave-bars span,
    .signal-dot,
    .status-dot {
        transition: none;
        animation: none;
    }
}
