﻿/* ================== 基础 ================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
    font-family: "Microsoft YaHei", Arial, sans-serif;
    overflow: hidden;
    /* 深空背景 */
    background: radial-gradient(circle at center, #081a3a 0%, #020610 100%);
}

    /* ================== 科技网格背景 ================== */
    body::before {
        content: "";
        position: absolute;
        width: 100%;
        height: 100%;
        background-image: linear-gradient(rgba(0,180,255,0.08) 1px, transparent 1px), linear-gradient(90deg, rgba(0,180,255,0.08) 1px, transparent 1px);
        background-size: 60px 60px;
        z-index: 0;
        opacity: 0.5;
    }

/* ================== 粒子层 ================== */
#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* ================== 标题（大屏HUD风） ================== */
.apTitle {
    position: absolute;
    top: 6%;
    width: 100%;
    text-align: center;
    font-size: 46px;
    font-weight: bold;
    letter-spacing: 6px;
    color: #00d9ff;
    text-shadow: 0 0 10px rgba(0,217,255,0.8), 0 0 30px rgba(0,217,255,0.4);
}

/* ================== 登录容器 ================== */
.logcon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
}

/* ================== 登录卡片（核心大屏风） ================== */
.login-box {
    width: 380px;
    padding: 45px 35px;
    background: rgba(10, 25, 60, 0.6);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(0, 217, 255, 0.3);
    border-radius: 16px;
    box-shadow: 0 0 25px rgba(0, 217, 255, 0.2), inset 0 0 20px rgba(0, 217, 255, 0.1);
    display: flex;
    flex-direction: column;
    gap: 22px;
    position: relative;
    overflow: hidden;
}

    /* 外发光扫描线 */
    .login-box::before {
        content: "";
        position: absolute;
        top: -50%;
        left: -50%;
        width: 200%;
        height: 200%;
        background: linear-gradient( 120deg, transparent, rgba(0,217,255,0.2), transparent );
        transform: rotate(25deg);
        animation: scan 4s linear infinite;
    }

@keyframes scan {
    0% {
        transform: translateX(-100%) rotate(25deg);
    }

    100% {
        transform: translateX(100%) rotate(25deg);
    }
}

/* ================== 标题 ================== */
.login-box h2 {
    color: #00d9ff;
    font-size: 22px;
    text-align: center;
    letter-spacing: 2px;
    z-index: 2;
}

/* ================== 输入框 ================== */
.input-item {
    width: 100%;
    padding: 14px 16px;
    background: rgba(0, 20, 50, 0.6);
    border: 1px solid rgba(0, 217, 255, 0.3);
    border-radius: 10px;
    color: #ffffff;
    font-size: 15px;
    outline: none;
    transition: all 0.3s ease;
    z-index: 2;
}

    /* placeholder */
    .input-item::placeholder {
        color: rgba(0, 217, 255, 0.6);
    }

    /* focus 发光 */
    .input-item:focus {
        border-color: #00d9ff;
        box-shadow: 0 0 10px rgba(0,217,255,0.8), 0 0 20px rgba(0,217,255,0.4);
    }

/* ================== 按钮（大屏高亮） ================== */
.login-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(90deg, #00d9ff, #007bff);
    border: none;
    border-radius: 10px;
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    z-index: 2;
}

    /* hover */
    .login-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 0 15px rgba(0,217,255,0.8), 0 0 30px rgba(0,123,255,0.5);
    }

    /* 点击 */
    .login-btn:active {
        transform: scale(0.98);
    }

    /* 流光 */
    .login-btn::after {
        content: "";
        position: absolute;
        top: 0;
        left: -120%;
        width: 100%;
        height: 100%;
        background: linear-gradient( 120deg, transparent, rgba(255,255,255,0.5), transparent );
        transition: 0.6s;
    }

    .login-btn:hover::after {
        left: 120%;
    }

/* ================== 粒子层修复 ================== */
canvas {
    display: block;
}
/* ================== 全屏遮罩 ================== */
.loading-mask {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(6px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

/* ================== 旋转加载圈 ================== */
.loader {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(0, 217, 255, 0.2);
    border-top: 4px solid #00d9ff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* 旋转动画 */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* ================== 加载文字 ================== */
.loading-text {
    margin-top: 15px;
    color: #00d9ff;
    font-size: 16px;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(0,217,255,0.6);
}
.footer-beian {
    position: fixed;
    bottom: 12px;
    left: 0;
    width: 100%;
    text-align: center;
    z-index: 9999;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.55);
    letter-spacing: 0.5px;
}

    .footer-beian p {
        display: inline-flex;
        align-items: center;
        gap: 10px;
        padding: 6px 14px;
        border-radius: 20px;
        background: rgba(0, 0, 0, 0.25);
        backdrop-filter: blur(6px);
        border: 1px solid rgba(255, 255, 255, 0.08);
    }

    .footer-beian a {
        color: rgba(255, 255, 255, 0.65);
        text-decoration: none;
        transition: all 0.2s ease;
        display: inline-flex;
        align-items: center;
        gap: 6px;
    }

        .footer-beian a:hover {
            color: #00e5ff;
            text-shadow: 0 0 8px rgba(0, 229, 255, 0.4);
        }

    .footer-beian img {
        width: 14px;
        height: 14px;
        vertical-align: middle;
    }

    .footer-beian .split {
        opacity: 0.4;
    }