:root {
    --primary-color: #00a8ff;
    --secondary-color: #0097e6;
    --accent-color: #00d2d3;
    --dark-color: #192a56;
    --light-color: #f5f6fa;
    --success-color: #4cd137;
    --warning-color: #fbc531;
    --danger-color: #e84118;
    --neon-color: #00f3ff;
    --font-tech: 'Orbitron', 'DS-Digital', 'Digital-7', sans-serif;
    --font-digital: 'DS-Digital', 'Digital-7', monospace;
    --font-euro: 'Eurostile', 'Orbitron', sans-serif;
    --font-alibaba: 'AlibabaPuHuiTi-Bold', var(--font-tech);
    --smoke-color-1: rgba(255, 0, 128, 0.7);
    --smoke-color-2: rgba(0, 255, 255, 0.7);
    --smoke-color-3: rgba(255, 255, 0, 0.7);
    --smoke-color-4: rgba(128, 0, 255, 0.7);
    --smoke-color-5: rgba(0, 255, 128, 0.7);
}

/* 导入AlibabaPuHuiTi-Bold字体 */
@font-face {
    font-family: 'AlibabaPuHuiTi-Bold';
    src: url('../Fonts/AlibabaPuHuiTi-Bold.woff2') format('woff2');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

body {
    background-color: #0c0c0c;
    font-family: "Microsoft YaHei", "微软雅黑", Arial, sans-serif;
    color: var(--light-color);
    overflow: hidden;
    position: relative;
}

body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(0, 168, 255, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(0, 210, 211, 0.15) 0%, transparent 50%);
    z-index: -1;
}

/* 粒子效果 */
.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.particle {
    position: absolute;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    pointer-events: none;
    animation: float 15s infinite linear;
}

/* 技术线条 */
.tech-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.tech-line {
    position: absolute;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    height: 1px;
    width: 100%;
    opacity: 0.3;
}

.tech-line:nth-child(1) { top: 10%; }
.tech-line:nth-child(2) { top: 30%; }
.tech-line:nth-child(3) { top: 50%; }
.tech-line:nth-child(4) { top: 70%; }
.tech-line:nth-child(5) { top: 90%; }

/* 技术圆圈 */
.tech-circle {
    position: absolute;
    border: 1px solid rgba(0, 168, 255, 0.3);
    border-radius: 50%;
}

.tech-circle:nth-child(1) {
    top: -100px;
    right: -100px;
    width: 200px;
    height: 200px;
}

.tech-circle:nth-child(2) {
    bottom: -150px;
    left: -150px;
    width: 300px;
    height: 300px;
}

.tech-circle:nth-child(3) {
    top: 50%;
    right: -50px;
    width: 100px;
    height: 100px;
}

/* 运动元素 */
.sports-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.sport-icon {
    position: absolute;
    color: rgba(0, 168, 255, 0.1);
    font-size: 24px;
}

.sport-icon:nth-child(1) { top: 10%; left: 10%; }
.sport-icon:nth-child(2) { top: 20%; right: 15%; }
.sport-icon:nth-child(3) { bottom: 15%; left: 20%; }
.sport-icon:nth-child(4) { bottom: 25%; right: 10%; }

/* 登录容器 */
.login-container {
    max-width: 400px;
    margin: 100px auto;
    padding: 30px;
    background: rgba(25, 42, 86, 0.7);
    border-radius: 10px;
    box-shadow: 0 0 30px rgba(0, 168, 255, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.login-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(0, 168, 255, 0.1),
        transparent
    );
    transform: rotate(45deg);
    animation: shine 3s infinite;
}

/* 登录头部 */
.login-header {
    text-align: center;
    margin-bottom: 30px;
    position: relative;
}

    .login-header h2 {
        font-family: var(--font-tech);
        color: var(--neon-color);
        text-shadow: 0 0 5px rgba(0, 243, 255, 0.5), 0 0 15px rgba(0, 243, 255, 0.3);
        position: relative;
        font-weight: 800;
        font-size: 28px;
        text-transform: uppercase;
        letter-spacing: 3px;
        margin-bottom: 10px;
        padding: 0 10px;
        background: linear-gradient(to right, var(--neon-color), var(--primary-color), var(--neon-color));
        background-size: 200% auto;
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
        animation: shine-text 3s linear infinite;
    }

.login-header h2::before,
.login-header h2::after {
    content: '';
    position: absolute;
    height: 2px;
    width: 30px;
    background: linear-gradient(90deg, transparent, var(--neon-color), transparent);
    top: 50%;
    transform: translateY(-50%);
}

.login-header h2::before {
    left: -40px;
}

.login-header h2::after {
    right: -40px;
}

.login-header p {
    font-family: var(--font-euro);
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
    letter-spacing: 1px;
    text-transform: uppercase;
    position: relative;
    display: inline-block;
    padding: 0 15px;
}

.login-header p::before,
.login-header p::after {
    content: '>';
    position: absolute;
    color: var(--neon-color);
    font-family: var(--font-digital);
    font-weight: bold;
    opacity: 0.8;
}

.login-header p::before {
    left: 0;
}

.login-header p::after {
    right: 0;
}

/* 二维码容器 */
.qr-container {
    text-align: center;
    margin-bottom: 20px;
    position: relative;
    width: 220px;
    height: 220px;
    margin: auto;
}

.qr-code, .qrcode-mask {
    width: 200px;
    height: 200px;
    margin: 0 auto 15px;
    background-color: #fff;
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 0 15px rgba(0, 168, 255, 0.3);
    position:relative;
    overflow: hidden;
}

.qrcode-mask {
    background: #000;
    position: absolute;
    top: 0px;
    left: 10px;
    vertical-align: middle;
    text-align: center;
    opacity: 0.8;
}

.qr-code::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(0, 168, 255, 0.1),
        transparent
    );
    transform: rotate(45deg);
    animation: shine 3s infinite;
}

.qr-code img {
    width: 100%;
    height: 100%;
}

.qr-tip {
    font-family: var(--font-euro);
    color: rgba(255, 255, 255, 0.8);
    font-size: 16px;
    margin-bottom: 10px;
    letter-spacing: 1px;
    text-transform: uppercase;
    position: relative;
    display: inline-block;
    padding: 0 10px;
}

.qr-tip::before,
.qr-tip::after {
    content: '[';
    position: absolute;
    color: var(--neon-color);
    font-family: var(--font-digital);
    font-weight: bold;
    opacity: 0.8;
}

.qr-tip::before {
    left: -0px;
}

.qr-tip::after {
    content: ']';
    right: 0px;
}

.qr-tip strong {
    font-family: var(--font-tech);
    color: var(--neon-color);
    font-weight: 700;
    letter-spacing: 1px;
    position: relative;
    display: inline-block;
    padding: 0 5px;
}

.qr-tip strong::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--neon-color);
    box-shadow: 0 0 5px var(--neon-color);
}

.qr-status {
    font-family: var(--font-digital);
    display: block;  
    font-size: 14px;
    color: rgba(255, 255, 255,1);
    letter-spacing: 1px;
    width:100%; 
    margin-top:70px;
}

.loginpswd {
    justify-content:center;
    text-align:center;
    margin-top:2.5rem;
    color: var(--neon-color);
    font-family: var(--font-tech);
}
.loginpswd a {
    color: var(--neon-color);
    font-family: var(--font-tech);
}
/* Removed the > symbol
.qr-status::before {
    content: '>';
    position: absolute;
    left: 0;
    color: var(--neon-color);
    opacity: 0.8;
}
*/

.qr-status.scanning {
    color: var(--warning-color);
}

.qr-status.success {
    color: var(--success-color);
}

.qr-status.error {
    color: var(--danger-color);
}

/* 二维码过期计时器 */
.qr-expiration {
    font-family: var(--font-digital);
    margin-top: 10px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 1px;
    position: relative;
    display: inline-block;
    padding: 0 5px;
}

#qrTimeRemaining {
    font-family: var(--font-digital);
    font-size: 16px;
    color: var(--success-color);
    font-weight: bold;
}

#qrTimeRemaining.warning {
    color: var(--warning-color);
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.qr-refresh {
    font-family: var(--font-euro);
    display: inline-block;
    color: var(--primary-color);
    cursor: pointer;
    margin-top: 10px;
    font-size: 14px;
    transition: all 0.3s ease;
    letter-spacing: 1px;
    text-transform: uppercase;
    position: relative;
    display: inline-block;
    padding: 0 10px;
}

.qr-refresh:hover {
    color: var(--neon-color);
    text-shadow: 0 0 5px rgba(0, 243, 255, 0.5);
}

.qr-refresh::before,
.qr-refresh::after {
    content: '<';
    position: absolute;
    color: var(--neon-color);
    font-family: var(--font-digital);
    font-weight: bold;
    opacity: 0.8;
}

.qr-refresh::after {
    content: '>';
    right: 0;
}

.qr-refresh i {
    margin-right: 5px;
    animation: spin 2s linear infinite;
}

/* 动画效果 */
@keyframes float {
    0% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 0.8;
    }
    90% {
        opacity: 0.8;
    }
    100% {
        transform: translateY(-100vh) translateX(100px);
        opacity: 0;
    }
}

@keyframes shine {
    0% {
        transform: translateX(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) rotate(45deg);
    }
}

@keyframes shine-text {
    to {
        background-position: 200% center;
    }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 打字机效果 */
.typing-effect {
    overflow: hidden;
    border-right: 2px solid var(--neon-color);
    white-space: nowrap;
    margin: 0 auto;
    animation: typing 3.5s steps(40, end), blink-caret 0.75s step-end infinite;
}

@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}

@keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: var(--neon-color) }
}

/* 鼠标跟随烟雾效果 */
.cursor-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
}

.cursor-trail {
    position: absolute;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    opacity: 0;
    transform: scale(0.5);
    transition: opacity 0.3s ease, transform 0.3s ease;
    mix-blend-mode: screen;
    will-change: transform, opacity;
}

.cursor-trail::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle, var(--color) 0%, transparent 50%);
    filter: blur(1px);
}

.cursor-trail.active {
    opacity: 1;
    transform: scale(1);
    animation: fadeOut 5s ease-out forwards;
}

@keyframes fadeOut {
    0% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.9;
        transform: scale(1.1);
    }
    100% {
        opacity: 0;
        transform: scale(1.3);
    }
}

/* 移动端适配 */
@media screen and (max-width: 768px) {
    .login-container {
        margin: 90px auto; /* 调整移动端下与头部的距离为 60px */
        max-width: 90%; /* 调整移动端下的最大宽度 */
        padding: 30px; /* 调整移动端下的内边距 */
    }
    
    .login-header h2 {
        font-size: 24px; /* 调整移动端下的标题大小 */
    }
    
    .login-header p {
        font-size: 14px; /* 调整移动端下的文字大小 */
    }
  
}

/* 小屏幕设备适配 */
@media screen and (max-width: 480px) {
    .login-container {
        margin: 90px auto;
        padding: 30px;
    }
    
    .login-header h2 {
        font-size: 20px;
    }
    
    .login-header p {
        font-size: 12px;
    }
    
   
}

