﻿body {
    margin: 0;
    background: #fff; /* 增加背景色，避免透明错乱 */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 核心修正：改为 flex 布局，并设置居中 */
.container {
    line-height: 1.15;
    -webkit-text-size-adjust: 100%;
    height: 90vh;
    display: block;
    justify-content: center;
    align-items: center;
}

.head_img {
    width: 100%;
    height: 50vw;
    max-height: 300px; /* 限制最大高度，避免过大 */
    background-image: url('/Img/title.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.he_txt {
    padding-top: 80px;
    margin-left: 30px;
    font-size: 23px;
    font-weight: 600;
}

.hed_txt {
    margin-top: 10px;
    margin-left: 30px;
    font-size: 16px;
    font-weight: 500;
}

.container_body {
    width: 90%; /* 固定宽度，避免自适应错乱 */
    max-width: 500px; /* 限制最大宽度，适配大屏 */
    margin: 20px auto 0; /* 居中对齐 */
}

/* 其余样式保持不变，仅补充以下缺失样式 */
.login-tab {
    display: flex;
    width: 100%; /* 改为100%适配容器 */
    margin: 0 auto 20px;
    border-bottom: 1px solid #e5e5e5;
}

.tab-item {
    flex: 1;
    text-align: center;
    padding: 12px 0;
    font-size: 17px;
    color: #999;
    cursor: pointer;
    position: relative;
    transition: all 0.3s;
}

    .tab-item.active {
        color: #007EC6;
        font-weight: 500;
    }

        .tab-item.active::after {
            content: '';
            position: absolute;
            bottom: -1px;
            left: 0;
            width: 100%;
            height: 2px;
            background-color: #007EC6;
        }

.account {
    display: block;
    margin-top: 20px;
    width: 100%; /* 占满父容器宽度 */
}

.account_title {
    display: flex;
    align-items: center; /* 改为center，避免底部对齐错乱 */
}

.acc_img {
    display: inline-block;
    width: 23px;
    height: 23px;
    margin-right: 8px;
}

.acc_txt {
    font-size: 15px;
}

.verify-code-container {
    display: flex;
    align-items: center; /* 改为center，匹配原有样式 */
    gap: 10px;
    width: 100%;
}

.verify-code-input {
    flex: 1;
    padding: 8px 0;
    margin-top: 15px;
    font-size: 16px;
    border: none;
    outline: none;
    border-bottom: 1px solid #ccc;
    color: #333;
    height: 40px;
    box-sizing: border-box;
    background-color: transparent !important;
}

    .verify-code-input:focus {
        border-color: #007EC6;
        box-shadow: 0 0 3px rgba(0, 126, 198, 0.3);
    }

.captcha-image {
    width: 100px;
    border: 1px solid #ddd;
    border-radius: 5px;
    height: 40px; /* 固定高度，避免拉伸 */
    object-fit: cover; /* 保持图片比例 */
}

.account_input {
    padding: 8px 0;
    margin-top: 15px;
    border: none;
    font-size: 16px;
    border-bottom: 1px solid #ccc;
    width: 100%; /* 改为100%占满 */
    height: 40px;
    outline: none;
    box-sizing: border-box;
    background-color: transparent !important;
}

    .account_input:not(:placeholder-shown) {
        background-color: transparent !important;
    }

.agree {
    margin-top: 30px;
    width: 100%;
}

.agree_label {
    font-size: 14px;
}

.btnLogin {
    height: 40px;
    width: 100%; /* 改为100%占满 */
    background: linear-gradient(135deg, #2196f3 0%, #21cbf3 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .btnLogin:hover {
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(33, 150, 243, 0.4);
    }

    .btnLogin:active {
        transform: translateY(0);
    }

    .btnLogin:disabled {
        background: #bdc3c7;
        cursor: not-allowed;
        transform: none;
        box-shadow: none;
    }

.reg {
    margin-top: 10px;
    font-size: 13px;
    text-align: center; /* 居中对齐 */
}

    .reg a {
        color: #007EC6;
        text-decoration: none;
        font-size: 13px;
    }

.sms-code-container {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}



.btn-sms-code {
    white-space: nowrap;
    padding: 8px 12px;
    background-color: #007EC6;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
}

    .btn-sms-code:disabled {
        background-color: #ccc;
        cursor: not-allowed;
    }

.login-method {
    display: none;
    width: 100%; /* 增加宽度适配 */
    margin-top: 40px;
}

    .login-method.active {
        display: block;
    }
