/* ============ 全局重置 ============ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
}

html, body {
    height: 100%;
}

/* ============ 背景轮播 ============ */
.bg-carousel {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.bg-slide {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.6s ease;
}

    .bg-slide.active {
        opacity: 1;
    }

/* ============ 遮罩 ============ */
.mask {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.40);
    z-index: -1;
}

/* ============ 容器 ============ */
.container {
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 2rem 1rem;
}

/* ============ 头部 ============ */
.header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.logo-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
}

    .logo-placeholder img {
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
    }

.logo-box {
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.2);
    border-radius: 8px;
}

.platform-title {
    font-size: 32px;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 0 12px rgba(0,0,0,0.8), 0 2px 6px rgba(0,0,0,0.7), 1px 1px 2px rgba(0,0,0,0.5);
    letter-spacing: 1.5px;
    text-align: center;
}

/* ============ 登录卡片 ============ */
.login-card {
    background: rgba(255,255,255,0.4);
    border-radius: 16px;
    max-width: 440px;
    margin: 0 auto;
    padding: 36px 32px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.25);
    backdrop-filter: blur(6px);
}

    .login-card h2 {
        text-align: center;
        font-size: 24px;
        margin-bottom: 28px;
        color: #222;
    }

/* ============ 表单 ============ */
.form-group {
    margin-bottom: 20px;
}

    .form-group label {
        display: block;
        margin-bottom: 6px;
        color: #333;
        font-size: 14px;
    }

    .form-group input {
        width: 100%;
        padding: 14px 16px;
        border: 1px solid #ddd;
        border-radius: 10px;
        font-size: 15px;
    }

        .form-group input:focus {
            outline: none;
            border-color: #0d6cb6;
            box-shadow: 0 0 0 3px rgba(13,108,182,0.15);
        }

/* ============ 验证码行 ============ */
.captcha-row {
    display: flex;
    gap: 10px;
}

    .captcha-row input {
        flex: 1;
    }

.captcha-code, .btn-send {
    width: 130px;
    border-radius: 10px;
    border: none;
    background: #0d6cb6;
    color: white;
    font-size: 14px;
    display: grid;
    place-items: center;
    cursor: pointer;
}

    .btn-send:disabled {
        background: #999;
    }

/* ============ 密码框 + 眼睛图标 ============ */
.pwd-wrap {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
}

    .pwd-wrap input {
        width: 100%;
        padding-right: 44px; /* 给眼睛图标留空间 */
    }

.pwd-eye {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    cursor: pointer;
    z-index: 10; /* ★ 关键：高于输入框 */
    opacity: 0.55;
    transition: opacity 0.2s;
    pointer-events: auto; /* ★ 关键：确保可点击 */
    -webkit-user-select: none;
    user-select: none;
}

    .pwd-eye:hover {
        opacity: 1;
    }

/* ============ 登录按钮 ============ */
.form-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    font-size: 14px;
    flex-wrap: wrap;
    gap: 8px;
}

.remember {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #555;
}

.forgot {
    color: #0d6cb6;
    text-decoration: none;
}

    .forgot:hover {
        text-decoration: underline;
    }

/* 微信绑定链接 */
.wx {
    color: #1E9FFF;
    text-decoration: none;
    font-size: 13px;
    padding: 2px 6px;
    border: 1px solid #1E9FFF;
    border-radius: 4px;
    transition: all 0.2s;
}

    .wx:hover {
        background: #1E9FFF;
        color: #fff;
        text-decoration: none;
    }

/* ============ 登录按钮 ============ */
.btn-login {
    width: 100%;
    padding: 15px;
    border-radius: 10px;
    background: #0d6cb6;
    color: white;
    font-size: 16px;
    font-weight: bold;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
}

    .btn-login:hover {
        background: #0b5a99;
    }

/* ============ 页脚 ============ */
.footer {
    text-align: center;
    color: rgba(255,255,255,0.85);
    font-size: 13px;
    margin-top: auto;
    padding-top: 20px;
}

/* ============ 忘记密码弹窗 ============ */
.modal {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 99;
    display: none;
    align-items: center;
    justify-content: center;
}

.modal-box {
    background: white;
    border-radius: 16px;
    padding: 32px;
    width: 90%;
    max-width: 420px;
    position: relative;
}

.modal-close {
    position: absolute;
    right: 20px;
    top: 16px;
    font-size: 24px;
    cursor: pointer;
    color: #666;
}

.modal-box h3 {
    text-align: center;
    margin-bottom: 24px;
}

.btn-reset {
    width: 100%;
    padding: 15px;
    border-radius: 10px;
    background: #0d6cb6;
    color: white;
    border: none;
    font-size: 15px;
    margin-top: 10px;
    cursor: pointer;
}

/* ============ Toast ============ */
.toast {
    position: fixed;
    left: 50%;
    top: 30px;
    transform: translateX(-50%);
    padding: 12px 24px;
    background: #222;
    color: white;
    border-radius: 8px;
    z-index: 100;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 14px;
}

    .toast.show {
        opacity: 1;
    }

/* ============ ★ 微信绑定弹窗样式 ============ */
.wx-bind-body {
    text-align: center;
    padding: 10px 20px 20px;
}

.wx-bind-tip {
    font-size: 15px;
    color: #333;
    line-height: 1.8;
    margin-bottom: 20px;
}

.wx-qrcode-wrap {
    position: relative;
    display: inline-block;
    padding: 16px;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    margin-bottom: 16px;
}

.wx-qrcode-img {
    display: block;
    width: 280px;
    height: 280px;
    object-fit: contain;
}
/* 二维码中间的校徽logo */
.wx-qrcode-logo {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 56px;
    height: 56px;
    border-radius: 8px;
    background: #fff;
    padding: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    object-fit: contain;
}

.wx-bind-hint {
    font-size: 13px;
    color: #999;
    line-height: 1.6;
}

/* ============ 响应式 ============ */
@media (max-width: 768px) {
    .platform-title {
        font-size: 24px;
    }

    .login-card {
        padding: 28px 20px;
    }

    .wx-qrcode-img {
        width: 220px;
        height: 220px;
    }

    .wx-qrcode-logo {
        width: 44px;
        height: 44px;
    }
}

@media (max-width: 480px) {
    .platform-title {
        font-size: 20px;
    }

    .form-row {
        font-size: 12px;
    }
}
