﻿
:root {
    --wl-main-blue: #0F3460;
    --wl-blue-deep: #0b284b;
    --wl-blue-light: #174379;
    --wl-orange: #e67e22;
    --wl-text-dark: #1a2436;
    --wl-text-normal: #445064;
    --wl-border-line: #d1dbe8;
    --wl-white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft Yahei", system-ui, sans-serif;
}

html, body {
    height: 100%;
    color: #1a2436;
    background: url("/style/img/bg.jpg") center center no-repeat;
    background-size: cover;
    background-attachment: fixed;
    position: relative;
    overflow: hidden; /*禁止页面全局滚动条*/
}

    body::before {
        content: "";
        position: absolute;
        left: 0;
        top: 0;
        right: 0;
        bottom: 0;
        background: rgba(11, 40, 75, 0.55);
        z-index: 1;
        pointer-events: none;
    }

#form1 {
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 2;
}

.site-header {
    width: 100%;
    background-color: rgba(255,255,255,0.08);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.15), inset 0 -1px 0 rgba(0,0,0,0.2);
    text-align: center;
    color: #ffffff;
    font-size: 14px;
    flex-shrink: 0;
}

.header-inner {
    max-width: 1600px;
    margin: 0 auto;
    height: 84px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 14px;
    color: #ffffff;
    text-decoration: none;
    font-size: 24px;
    font-weight: 700;
}

.main-nav a {
    color: #ffffff;
    text-decoration: none;
    font-size: 17px;
    margin: 0 10px;
    transition: 0.24s;
}

    .main-nav a:hover {
        color: #ffffff;
    }

.register-main {
     flex: 1 1 auto;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center; /* 修改这里：由flex-end改为center，整体居中 */
    padding: 10px 80px;
    overflow: hidden;
}

.register-panel {
    position: relative;
    z-index: 3;
    width: 480px;
    max-height: calc(100vh - 180px);
    background: var(--wl-white);
    border-radius: 16px;
    box-shadow: 0 12px 45px rgba(0,0,0,0.28);
    padding: 30px 40px;
    overflow-y: auto; /*面板内部小高度才滚动，页面整体无滚动条*/
}

.register-title {
    margin-bottom: 20px;
    text-align: left;
}

    .register-title h2 {
        font-size: 24px;
        color: var(--wl-main-blue);
    }

    .register-title p {
        margin-top: 4px;
        font-size: 14px;
        color: var(--wl-text-normal);
    }

/* Tab账户类型切换 */
.tab-wrap {
    display: flex;
    border: 1px solid var(--wl-border-line);
    border-radius: 8px;
    margin-bottom: 18px;
    overflow: hidden;
}

.tab-item {
    flex: 1;
    text-align: center;
    padding: 10px 4px;
    font-size: 15px;
    cursor: pointer;
    transition: 0.24s;
    user-select: none;
}

    .tab-item.active {
        background-color: var(--wl-main-blue);
        color: #fff;
    }

    .tab-item:not(.active) {
        background: #fff;
        color: var(--wl-text-normal);
    }

        .tab-item:not(.active):hover {
            background: #f3f7fc;
        }

.form-item {
    margin-bottom: 14px;
}

    .form-item label {
        display: block;
        font-size: 14px;
        color: var(--wl-text-normal);
        margin-bottom: 6px;
    }

.input-wrap {
    position: relative;
}

    .input-wrap i {
        position: absolute;
        left: 18px;
        top: 50%;
        transform: translateY(-50%);
        color: #8894a6;
        font-size: 18px;
        z-index: 2;
    }

    .input-wrap input {
        width: 100%;
        height: 42px;
        border: 1px solid var(--wl-border-line);
        border-radius: 8px;
        padding-left: 50px;
        padding-right: 16px;
        font-size: 15px;
        transition: 0.25s;
    }

        .input-wrap input:focus {
            outline: none;
            border-color: var(--wl-main-blue);
            box-shadow: 0 0 0 3px rgba(15,52,96,0.13);
        }

/* 验证码行布局 */
.code-row {
    display: flex;
    gap: 10px;
}

    .code-row .input-wrap {
        flex: 1;
    }

.btn-get-code {
    white-space: nowrap;
    height: 42px;
    padding: 0 16px;
    border-radius: 8px;
    border: 1px solid var(--wl-main-blue);
    background-color: var(--wl-main-blue);
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    transition: 0.24s;
}

    .btn-get-code:hover {
        background-color: var(--wl-blue-light);
    }

    .btn-get-code:disabled {
        background: #8894a6;
        border-color: #8894a6;
        cursor: not-allowed;
    }

/* 协议勾选 */
.agreement-item {
    margin: 12px 0 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--wl-text-normal);
}

    .agreement-item input[type="checkbox"] {
        width: 16px;
        height: 16px;
        cursor: pointer;
    }

    .agreement-item a {
        color: var(--wl-main-blue);
        text-decoration: none;
    }

        .agreement-item a:hover {
            text-decoration: underline;
        }

.submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 44px;
    background: var(--wl-main-blue);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.25s;
    margin-top: 4px;
    text-decoration: none;
}

    .submit-btn:hover {
        background: var(--wl-blue-light);
        color: #ffffff;
    }

.divider-line {
    margin: 18px 0 10px;
    height: 1px;
    background: var(--wl-border-line);
}

.login-tip {
    font-size: 14px;
    color: var(--wl-text-normal);
}

    .login-tip a {
        color: var(--wl-orange);
        font-weight: 600;
        text-decoration: none;
    }

        .login-tip a:hover {
            text-decoration: underline;
        }

.site-footer {
    width: 100%;
    background-color: rgba(255,255,255,0.08);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.15), inset 0 -1px 0 rgba(0,0,0,0.2);
    padding: 10px 20px;
    text-align: center;
    color: #ffffff;
    font-size: 13px;
    flex-shrink: 0;
}

    .site-footer p {
        margin-top: 4px;
    }

@media(max-width:1200px) {
    .register-main {
        justify-content: center; /*小屏幕自动居中*/
        padding: 10px;
    }
}

@media(max-width:540px) {
    .register-panel {
        width: 100%;
        max-width: 480px;
        padding: 22px 18px;
        max-height: calc(100vh - 160px);
    }

    .header-inner {
        padding: 0 12px;
        height: 70px;
    }

    .main-nav a {
        font-size: 13px;
        margin: 0 4px;
    }

    .tab-wrap {
        flex-wrap: wrap;
    }

    .tab-item {
        flex-basis: 33.333%;
        padding: 8px 2px;
        font-size: 13px;
    }

    .code-row {
        flex-direction: column;
        gap: 8px;
    }
}

/*协议 弹窗遮罩 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 弹窗遮罩 */
.lxr_agreement_mask {
    display: none;
    position: fixed;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0,0,0,0.55);
    z-index: 9990;
}
/* 弹窗容器 */
.lxr_agreement_modal {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 920px;
    height: 85vh;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.lxr_agreement_header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 18px;
    background: #0f3b73;
    color: #fff;
}

.lxr_agreement_close {
    cursor: pointer;
    font-size: 22px;
    user-select: none;
}

.lxr_agreement_iframe_wrap {
    flex: 1;
}

.lxr_agreement_iframe {
    width: 100%;
    height: 100%;
    border: none;
}
/* 按钮 */
.lxr_btn_show {
    padding: 8px 18px;
    background: #0f3b73;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

@media(max-width:640px) {
    .lxr_agreement_modal {
        height: 92vh;
    }
}


.tab-item_1 {
    flex: 1;
    text-align: center;
    padding: 10px 4px;
    font-size: 15px;
    cursor: pointer;
    transition: 0.24s;
    user-select: none;
}


    .tab-item_1.active {
        background-color:red;
        color: #fff;
    }

    .tab-item_1:not(.active) {
        background: #fff;
        color: var(--wl-text-normal);
    }

        .tab-item_1:not(.active):hover {
            background: #f3f7fc;
        }