* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", Arial, sans-serif;
    height: 100vh;
    background: url(/Style/images/bg.png);
    overflow: hidden;
    position: relative;
    /*color: #fff;*/
}

/* 数字雨背景 */
.matrix {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    overflow: hidden;
    z-index: 1;
}

    .matrix span {
        position: absolute;
        color: #0f0;
        font-family: monospace;
        font-size: 14px;
        opacity: 0.6;
        animation: fall linear infinite;
    }

@keyframes fall {
    0% {
        transform: translateY(-100vh);
        opacity: 0.8;
    }

    100% {
        transform: translateY(100vh);
        opacity: 0;
    }
}

.container {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(20px, 4vw, 60px) clamp(15px, 3vw, 50px);
    max-width: 1400px;
    margin: 0 auto;
    gap: clamp(15px, 2vw, 30px);
}

/* 左侧内容 */
.left {
    flex: 0 1 auto;
    min-width: 0; /* 允许收缩 */
    max-width: min(800px, 55vw); /* 最大宽度限制，小屏幕自适应 */
    text-align: center;
}

.top-title {
    justify-content: flex-start;
    width: 100%;
    max-width: 800px;
    display: flex;
    margin: 0px auto;
    font-size: clamp(28px, 3vw, 48px);
    font-weight: bold;
    color: #ffd700;
    text-shadow: 0 0 20px rgba(255,215,0,0.8);
}

    .top-title img {
        padding-bottom: clamp(10px, 1.5vw, 20px);
        max-width: 100%;
        height: auto;
    }

/* 轮播图 */
.slider-wrapper {
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.8);
    cursor: grab; /* 关键：鼠标变成小手 */
    user-select: none;
}

    .slider-wrapper:active {
        cursor: grabbing;
    }

.slider {
    display: flex;
    width: 100%;
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

    .slider img {
        width: 100%;
        flex-shrink: 0;
        object-fit: contain;
        pointer-events: none; /* 防止图片干扰拖拽 */
        -webkit-user-drag: none;
    }

@keyframes slide {
    0%, 33.33% {
        transform: translateX(0);
    }

    36.66%, 66.66% {
        transform: translateX(-100%);
    }

    69.99%, 100% {
        transform: translateX(-200%);
    }
}

.bottom-text {
    justify-content: flex-end;
    width: 100%;
    max-width: 800px;
    display: flex;
    margin: 0px auto;
    font-size: clamp(20px, 2.5vw, 36px);
    color: #ffca5c;
    text-shadow: 0 0 15px #ffca5c;
}

    .bottom-text img {
        padding-top: clamp(10px, 1.5vw, 20px);
        max-width: 100%;
        height: auto;
    }
/* 右侧登录框 */
.login-panel {
    width: clamp(320px, 30vw, 430px);
    min-width: 320px; /* 最小宽度保证表单可用 */
    max-width: 430px; /* 最大宽度限制 */
    flex-shrink: 0; /* 防止被压缩 */
    background: #2E2A2A;
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: clamp(20px, 2.5vw, 30px) clamp(20px, 2vw, 25px);
    box-shadow: 0 10px 40px rgba(0,0,0,0.6);
    opacity: 0.7;
}

.logo {
    text-align: center;
    margin-bottom: 20px;
}

    .logo img {
        height: 60px;
    }

.panel-title {
    text-align: center;
    font-size: 24px;
    margin-bottom: 25px;
    color: #fff;
}

.input-group {
    margin-bottom: 45px;
}

.input-box {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 8px;
    height: 50px;
    padding: 0 15px;
    color: #fff;
    font-size: 16px;
    width: 100%;
}

    .input-box::placeholder {
        color: #aaa;
    }

.captcha {
    display: flex;
    gap: 10px;
    margin-bottom: 45px;
}

    .captcha input {
        flex: 1;
    }

    .captcha img {
        width: 100px;
        height: 50px;
        border-radius: 6px;
        background: #333;
    }

.login-btn {
    width: 100%;
    height: 52px;
    background: linear-gradient(90deg, #ff0000, #ff4444);
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(255,0,0,0.5);
    transition: all 0.3s;
}

    .login-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(255,0,0,0.6);
    }

.lang-select {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0,0,0,0.5);
    color: #fff;
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    z-index: 10;
}

.input-group,
.captcha {
    position: relative !important; /* 必须有，绝对定位错误提示用 */
    margin-bottom: 45px; /* 保持你原来的间距 */
}

label.error {
    position: absolute !important;
    left: 0;
    right: 0;
    top: 100%;
    margin-top: 6px;
    padding-left: 18px;
    color: #ff4d4f;
    font-size: 15px !important; /* 字体更大更醒目 */
    font-weight: 500;
    line-height: 1.4;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="%23ff4d4f" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"></circle><line x1="12" y1="8" x2="12" y2="12"></line><line x1="12" y1="16" x2="12.01" y2="16"></line></svg>') no-repeat left center;
    background-size: 15px 15px;
    opacity: 0;
    transform: translateY(-4px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    z-index: 10;
}

    label.error.show {
        opacity: 1;
        transform: translateY(0);
    }

/* 出错时输入框红色边框 + 发光效果 */
.input-box.error {
    border: 2px solid #ff4d4f !important;
    box-shadow: 0 0 12px rgba(255, 77, 79, 0.4);
    background-color: rgba(255, 77, 79, 0.05);
}

    /* 可选：聚焦时也保持红色（更强提醒） */
    .input-box.error:focus {
        border-color: #ff4d4f !important;
        box-shadow: 0 0 15px rgba(255, 77, 79, 0.5);
    }

/* 响应式媒体查询 - 针对常见屏幕尺寸优化 */
/* 1440×900 及以下 */
@media screen and (max-width: 1440px) {
    .container {
        max-width: 1300px;
        padding: clamp(15px, 3vw, 40px) clamp(12px, 2.5vw, 40px);
        gap: clamp(12px, 1.8vw, 25px);
    }
    
    .left {
        max-width: min(700px, 55vw);
    }
    
    .login-panel {
        width: clamp(320px, 28vw, 400px);
        padding: clamp(18px, 2vw, 25px) clamp(18px, 1.8vw, 22px);
    }
}

/* 1366×768 及以下 */
@media screen and (max-width: 1366px) {
    .container {
        max-width: 1200px;
        padding: clamp(12px, 2.5vw, 30px) clamp(10px, 2vw, 30px);
        gap: clamp(10px, 1.5vw, 20px);
    }
    
    .left {
        max-width: min(600px, 50vw);
    }
    
    .login-panel {
        width: clamp(320px, 26vw, 380px);
        padding: clamp(15px, 1.8vw, 22px) clamp(15px, 1.5vw, 20px);
    }
    
    .input-group,
    .captcha {
        margin-bottom: clamp(30px, 3vw, 40px);
    }
}

/* 1280×720/800 及以下 */
@media screen and (max-width: 1280px) {
    .container {
        max-width: 1100px;
        padding: clamp(10px, 2vw, 25px) clamp(8px, 1.8vw, 25px);
        gap: clamp(8px, 1.2vw, 15px);
    }
    
    .left {
        max-width: min(500px, 48vw);
    }
    
    .login-panel {
        width: clamp(320px, 24vw, 360px);
        padding: clamp(15px, 1.5vw, 20px) clamp(12px, 1.2vw, 18px);
    }
    
    .input-group,
    .captcha {
        margin-bottom: clamp(25px, 2.5vw, 35px);
    }
    
    .input-box {
        height: clamp(45px, 4vw, 50px);
        padding: 0 clamp(12px, 1vw, 15px);
        font-size: clamp(14px, 1.2vw, 16px);
    }
    
    .login-btn {
        height: clamp(48px, 4vw, 52px);
        font-size: clamp(18px, 1.5vw, 20px);
    }
}

/* 超小屏幕（小于1024px） - 可选：改为垂直布局 */
@media screen and (max-width: 1024px) {
    .container {
        flex-direction: column;
        justify-content: center;
        padding: 20px;
        gap: 30px;
        overflow-y: auto;
    }
    
    .left {
        max-width: 100%;
        width: 100%;
    }
    
    .login-panel {
        width: clamp(320px, 90vw, 400px);
        margin: 0 auto;
    }
}
