* {
    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: space-between;
    padding: 0 8%;
    max-width: 1600px;
    margin: 0 auto;
}

/* 左侧内容 */
.left {
    flex: 1;
    text-align: center;
}

.top-title {
    justify-content: flex-start;
    width: 800px;
    display: flex;
    margin: 0px auto;
    font-size: 48px;
    font-weight: bold;
    color: #ffd700;
    text-shadow: 0 0 20px rgba(255,215,0,0.8);
}

    .top-title img {
        padding-bottom: 20px;
    }

/* 轮播图 */
.slider-wrapper {
    max-width: 800px;
    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(-800px);
    }

    69.99%, 100% {
        transform: translateX(-1600px);
    }
}

.bottom-text {
    justify-content: flex-end;
    width: 800px;
    display: flex;
    margin: 0px auto;
    font-size: 36px;
    color: #ffca5c;
    text-shadow: 0 0 15px #ffca5c;
}

    .bottom-text img {
        padding-top: 20px;
    }
/* 右侧登录框 */
.login-panel {
    width: 430px;
    background: #2E2A2A;
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 30px 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);
    }
