* {
        box-sizing: border-box;
    }

    html,
    body {
        height: 100%;
        margin: 0;
        padding: 0;
        background: #0b1e3f;
    }

    /* 保留站点顶部导航与弹窗登录宿主，隐藏其余站点区块，让登录区铺满导航以下的剩余视口 */
    .common-body,
    .footer {
        display: none !important;
    }

    .base-body-box {
        display: flex;
        flex-direction: column;
        min-height: 100%;
    }

    .base-index-top {
        flex: 0 0 auto;
    }

    .pjax-container {
        flex: 1 0 auto;
        display: flex;
        flex-direction: column;
        padding: 0 !important;
        position: relative;
    }

    .login-page {
        position: relative;
        flex: 1 0 auto;
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
        background: linear-gradient(135deg, #081833 0%, #0e2350 28%, #1e3a8a 55%, #165DFF 82%, #36CFC9 125%);
        background-attachment: fixed;
        font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
            "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
        padding: 32px 0;
    }

    /* ===== 动态背景 ===== */
    .bg-grid {
        position: absolute;
        inset: 0;
        background-image:
            linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
            linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
        background-size: 64px 64px;
        pointer-events: none;
        -webkit-mask-image: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.9) 0%, transparent 75%);
        mask-image: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.9) 0%, transparent 75%);
    }

    .bg-blob {
        position: absolute;
        border-radius: 50%;
        filter: blur(90px);
        opacity: 0.6;
        pointer-events: none;
    }

    .bg-blob-1 {
        width: 560px;
        height: 560px;
        top: -140px;
        left: -120px;
        background: radial-gradient(circle, rgba(22, 93, 255, 0.9) 0%, transparent 70%);
        animation: blobFloat 18s ease-in-out infinite;
    }

    .bg-blob-2 {
        width: 500px;
        height: 500px;
        bottom: -120px;
        right: -80px;
        background: radial-gradient(circle, rgba(54, 207, 201, 0.75) 0%, transparent 70%);
        animation: blobFloat 24s ease-in-out infinite reverse;
    }

    .bg-blob-3 {
        width: 420px;
        height: 420px;
        top: 42%;
        left: 52%;
        background: radial-gradient(circle, rgba(99, 102, 241, 0.8) 0%, transparent 70%);
        animation: blobFloat 30s ease-in-out infinite;
    }

    @keyframes blobFloat {
        0%,
        100% {
            transform: translate(0, 0) scale(1);
        }
        33% {
            transform: translate(50px, -35px) scale(1.12);
        }
        66% {
            transform: translate(-40px, 30px) scale(0.94);
        }
    }

    .particle {
        position: absolute;
        bottom: -12px;
        border-radius: 50%;
        background: radial-gradient(circle, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.25) 60%, transparent 100%);
        box-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
        pointer-events: none;
        animation-name: particleUp;
        animation-timing-function: linear;
        animation-iteration-count: infinite;
    }

    @keyframes particleUp {
        0% {
            transform: translateY(0);
            opacity: 0;
        }
        12% {
            opacity: 0.8;
        }
        85% {
            opacity: 0.35;
        }
        100% {
            transform: translateY(-115vh);
            opacity: 0;
        }
    }

    /* ===== 布局 ===== */
    .login-layout {
        position: relative;
        z-index: 2;
        width: 100%;
        max-width: 1160px;
        margin: 0 auto;
        padding: 24px 28px;
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 460px);
        gap: 60px;
        align-items: center;
    }

    /* 左侧广告位 */
    .login-aside {
        border-radius: 24px;
        background: linear-gradient(160deg, rgba(255, 255, 255, 0.10) 0%, rgba(255, 255, 255, 0.04) 100%);
        border: 1px solid rgba(255, 255, 255, 0.16);
        -webkit-backdrop-filter: blur(8px);
        backdrop-filter: blur(8px);
        min-height: 460px;
        padding: 48px 40px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
        color: #ffffff;
    }

    .aside-badge {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 6px 14px;
        border-radius: 999px;
        background: rgba(54, 207, 201, 0.18);
        border: 1px solid rgba(54, 207, 201, 0.45);
        color: #7df3ec;
        font-size: 13px;
        letter-spacing: 1px;
        margin-bottom: 22px;
    }

    .aside-title {
        font-size: 30px;
        font-weight: 700;
        line-height: 1.35;
        margin: 0 0 14px;
    }

    .aside-sub {
        font-size: 15px;
        line-height: 1.8;
        opacity: 0.82;
        margin: 0 0 30px;
        max-width: 420px;
    }

    .aside-ad {
        width: 100%;
        min-height: 190px;
        border: 2px dashed rgba(255, 255, 255, 0.35);
        border-radius: 16px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 10px;
        color: rgba(255, 255, 255, 0.72);
        font-size: 15px;
        letter-spacing: 3px;
    }

    .aside-ad i {
        font-size: 26px;
        opacity: 0.8;
    }

    /* 右侧登录卡片 */
    .login-card {
        width: 100%;
        max-width: 460px;
        margin: 0 auto;
        background: rgba(255, 255, 255, 0.94);
        -webkit-backdrop-filter: blur(20px);
        backdrop-filter: blur(20px);
        border-radius: 20px;
        box-shadow: 0 24px 70px rgba(3, 10, 35, 0.45);
        border: 1px solid rgba(255, 255, 255, 0.55);
        padding: 40px 38px;
        animation: cardIn 0.65s ease both;
    }

    @keyframes cardIn {
        from {
            opacity: 0;
            transform: translateY(26px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .login-head {
        text-align: center;
        margin-bottom: 24px;
    }

    .login-brand {
        width: 58px;
        height: 58px;
        border-radius: 16px;
        margin: 0 auto 16px;
        background: linear-gradient(135deg, #165DFF 0%, #4f46e5 55%, #36CFC9 100%);
        display: flex;
        align-items: center;
        justify-content: center;
        color: #ffffff;
        font-size: 26px;
        box-shadow: 0 10px 26px rgba(22, 93, 255, 0.35);
    }

    .login-title {
        font-size: 24px;
        font-weight: 700;
        color: #0f172a;
        margin: 0;
    }

    .login-subtitle {
        font-size: 14px;
        color: #64748b;
        margin-top: 6px;
    }

    /* 顶部说明提示条 */
    .login-notice {
        display: flex;
        align-items: flex-start;
        gap: 8px;
        background: linear-gradient(135deg, rgba(22, 93, 255, 0.09) 0%, rgba(54, 207, 201, 0.09) 100%);
        border: 1px solid rgba(22, 93, 255, 0.18);
        border-radius: 10px;
        padding: 10px 12px;
        margin-bottom: 22px;
        color: #1e3a8a;
        font-size: 13px;
        line-height: 1.6;
    }

    .login-notice i {
        margin-top: 2px;
        color: #165DFF;
        font-size: 14px;
    }

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

    .login-field .el-input__wrapper {
        border-radius: 10px;
    }

    .login-error {
        display: flex;
        align-items: flex-start;
        gap: 8px;
        background: #fef2f2;
        border: 1px solid #fecaca;
        color: #dc2626;
        border-radius: 10px;
        padding: 10px 12px;
        font-size: 13px;
        line-height: 1.5;
        margin-bottom: 16px;
    }

    .login-error i {
        margin-top: 2px;
        color: #ef4444;
        font-size: 14px;
    }

    .login-switch-tip {
        margin: -8px 0 16px;
        text-align: left;
    }

    .login-switch-tip .el-button {
        padding: 0;
        font-size: 13px;
    }

    .login-btn {
        width: 100%;
        height: 48px;
        font-size: 16px;
        font-weight: 500;
        letter-spacing: 2px;
        border-radius: 10px;
        border: none;
        background: linear-gradient(135deg, #165DFF 0%, #4f46e5 100%);
        box-shadow: 0 8px 20px rgba(22, 93, 255, 0.28);
        margin-top: 4px;
    }

    .login-btn:hover {
        background: linear-gradient(135deg, #0e52e6 0%, #4338ca 100%);
        box-shadow: 0 10px 26px rgba(22, 93, 255, 0.38);
    }

    .login-divider {
        display: flex;
        align-items: center;
        gap: 12px;
        margin: 26px 0 16px;
        color: #94a3b8;
        font-size: 12px;
        white-space: nowrap;
    }

    .login-divider::before,
    .login-divider::after {
        content: '';
        flex: 1;
        height: 1px;
        background: #e2e8f0;
    }

    .oauth-tip {
        text-align: center;
        color: #64748b;
        font-size: 13px;
        margin-bottom: 14px;
    }

    .oauth-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        width: 100%;
        height: 46px;
        border-radius: 10px;
        background: #ffffff;
        border: 1px solid #d6dbe4;
        color: #334155;
        font-size: 14px;
        font-weight: 500;
        text-decoration: none;
        transition: all 0.25s ease;
    }

    .oauth-btn:hover {
        border-color: #165DFF;
        color: #165DFF;
        box-shadow: 0 6px 18px rgba(22, 93, 255, 0.14);
        transform: translateY(-1px);
    }

    .oauth-icon {
        width: 24px;
        height: 24px;
        border-radius: 7px;
        background: linear-gradient(135deg, #165DFF 0%, #36CFC9 100%);
        color: #ffffff;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 14px;
        flex-shrink: 0;
    }

    /* ===== Tab 切换 ===== */
    .login-tabs {
        display: flex;
        border-bottom: 1px solid #e2e8f0;
        margin-bottom: 22px;
    }

    .login-tab {
        flex: 1;
        text-align: center;
        padding: 10px 0 12px;
        font-size: 15px;
        font-weight: 500;
        color: #64748b;
        cursor: pointer;
        border-bottom: 2px solid transparent;
        margin-bottom: -1px;
        user-select: none;
        transition: color 0.25s ease;
    }

    .login-tab:hover {
        color: #165DFF;
    }

    .login-tab.is-active {
        color: #165DFF;
        border-bottom-color: #165DFF;
    }

    .login-tab.is-error {
        color: #ef4444;
    }

    /* ===== 手机号注册 / 登录 ===== */
    .phone-code-row {
        display: flex;
        gap: 10px;
        align-items: center;
    }

    .phone-code-row .el-input {
        flex: 1;
    }

    .code-btn {
        flex-shrink: 0;
        height: 40px;
        padding: 0 16px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border: none;
        border-radius: 10px;
        background: linear-gradient(135deg, #165DFF 0%, #4f46e5 100%);
        color: #ffffff;
        font-size: 14px;
        font-weight: 500;
        font-family: inherit;
        cursor: pointer;
        white-space: nowrap;
        transition: background 0.25s ease, box-shadow 0.25s ease;
    }

    .code-btn:hover {
        background: linear-gradient(135deg, #0e52e6 0%, #4338ca 100%);
    }

    .code-btn:disabled {
        background: #d1d5db;
        cursor: not-allowed;
        box-shadow: none;
    }

    /* ===== 微信登录 ===== */
    .wechat-qr-box {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 12px;
        padding: 18px 0 4px;
    }

    .wechat-qr {
        width: 180px;
        height: 180px;
        display: flex;
        align-items: center;
        justify-content: center;
        border: 1px solid #e2e8f0;
        background: #ffffff;
        overflow: hidden;
    }

    .wechat-qr img,
    .wechat-qr canvas {
        display: block;
    }

    .wechat-qr-tip {
        color: #64748b;
        font-size: 13px;
        line-height: 1.6;
        text-align: center;
    }

    .wechat-refresh {
        width: 100%;
        height: 44px;
        margin-top: 12px;
    }

    /* ===== 响应式 ===== */
    @media (max-width: 991.98px) {
        .login-layout {
            grid-template-columns: 1fr;
            gap: 0;
            padding: 16px;
        }

        .login-aside {
            display: none;
        }

        .login-card {
            padding: 32px 24px;
        }
    }

    @media (max-width: 480px) {
        .login-page {
            padding: 16px 0;
        }

        .login-card {
            padding: 28px 20px;
            border-radius: 16px;
        }

        .login-title {
            font-size: 21px;
        }

        .login-btn {
            height: 50px;
        }

        .oauth-btn {
            height: 50px;
        }
    }
