/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #f0f5ff;
    color: #333;
    line-height: 1.6;
    font-size: 16px;
}

/* 登录页面容器 */
.login-page {
    /*min-height: 100vh;*/
    /*display: flex;*/
    /*flex-direction: column;*/
    height: 100vh;
    position: relative;
    overflow: hidden;
}

/* 顶部导航 */
.header {
    width: 100%;

    background-color: transparent;
    color: #ffffff;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
}

.header:before {
    content: "";
    display: block;
    position: absolute;
    left: 0;
    top: -.5rem;
    right: 0;
    height: 1.2rem;
    background: url("../images/new/header-bg.png") center repeat-x;
    background-size: auto 99%;
    z-index: -1;
    pointer-events: none;
    transition: .5s
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 1.28rem;
}

.logo {    display: flex;    align-items: center;}

.logo-img {    height: .56rem;    margin-right: .1rem;    object-fit: contain;}

.logo-separator {
    color: #ffffff;
    margin: 0 .16rem;
    font-size: .28rem;
}

.logo-desc {
    font-size: .28rem;
    color: #ffffff;
}

.language-dropdown {
    position: relative;
}

.language-trigger {
    color: #ffffff;
    text-decoration: none;
    font-size: .16rem;
    display: flex;
    align-items: center;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.language-trigger:hover {
    /* color: #007bff; */
}

.language-trigger i {
    margin-left: .05rem;
    font-size: .12rem;
    transition: transform 0.3s ease;
}

.language-dropdown:hover .language-trigger i {
    transform: rotate(180deg);
}

.language-options {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: white;
    border-radius: .08rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 8px 0;
    margin-top: 5px;
    display: none;
    min-width: 120px;
    z-index: 200;
}

.language-dropdown:hover .language-options {
    display: block;
}

.language-option {
    display: block;
    color: #666;
    text-decoration: none;
    font-size: .14rem;
    padding: .08rem .16rem;
    text-align: left;
    transition: background-color 0.2s ease;
}

.language-option:hover {
    background-color: #f5f5f5;
    color: #671482;
}

/* 主要内容区域 */
.main-content {
    /*flex: 1;*/
    position: absolute;
    top: .8rem;
    left: 0;
    right: 0;
    bottom: .6rem;
    display: flex;
    align-items: center;
    /*padding: 80px 20px;*/
    /*position: relative;*/
    padding: 0 .2rem;
    z-index: 5;
}

/* 内容容器 */
.content-container {
    position: relative;
    display: flex;
    justify-content: flex-end;
    /*height: 100%;*/
    align-items: center;
}

/* 背景轮播样式 - Swiper组件 */
.carousel-container, .swiper-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.swiper-wrapper {
    width: 100%;
    height: 100%;
}

.swiper-slide {
    position: relative;
    width: 100%;
    height: 100%;
}



.carousel-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-.3rem) rotate(180deg);
    }
}

/* 登录容器 */
.login-container {
    position: relative;
    z-index: 10;
    /* IE兼容：确保元素在IE中正确定位 */
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    flex-shrink: 0;
    max-width: 6.4rem;
    min-height: 4.4rem;
    border-radius: .08rem;
    border: 1px solid #fff;
    background-size: cover;
    background-position: center;
    overflow: hidden;
    -webkit-backdrop-filter: blur(25px);
    backdrop-filter: blur(25px);
    background-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 .1rem .4rem rgba(0, 0, 0, 0.08);

}
.qr-box {
    width: 2.35rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    background-image: url("../images/new/login-qr-bg.png");
    background-size: cover;
    background-position: left -.1rem;
}

/* 左侧扫码面板 */
.qr-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    height: 100%;
    padding: .25rem .18rem .16rem;
}

.qr-title {
    width: 100%;
    font-size: .2rem;
    font-weight: 600;
    color: #333;
    text-align: center;
    padding: .1rem 0 .5rem;
}

.qr-code-wrap {
    background: #ffffff;
    padding: .07rem;
    border-radius: .06rem;
    box-shadow: 0 .02rem .1rem rgba(0, 0, 0, 0.1);
}

.qr-code-wrap iframe {
    width: 1.8rem !important;
    height: 1.8rem !important;
    border: none;
}

.qr-image {
    width: 1.5rem;
    height: 1.5rem;
    display: block;
}

.qr-desc {
    font-size: .12rem;
    color: #888;
    padding: .15rem 0 .2rem;
    text-align: center;
}

/* 扫码方式切换：圆形图标按钮，水平居中 */
.qr-methods {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: .12rem;
    width: 100%;
    /* margin-top: auto; */
    padding-top: .12rem;
}

.qr-method-btn {
    width: .36rem;
    height: .36rem;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: #ffffff;
    border: 1px solid #e3e6eb;
    color: #666;
    font-size: .17rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.qr-method-btn:hover {
    color: #671482;
    border-color: #671482;
}

.qr-method-btn.active {
    color: #ffffff;
    background-color: #671482;
    border-color: #671482;
}

.login-box {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: .2rem .3rem;
    min-width: 0;
}

.welcome-title {
    font-size: .2rem;
    font-weight: 600;
    color: #333;
    margin-bottom: .1rem;
    text-align: center;
}

/* 登录方式切换 */
.login-tabs {
    display: flex;
    margin-bottom: .2rem;
    border-bottom: 2px solid #e9ecef;
}

.tab-btn {
    flex: 1;
    padding: .1rem 0;
    background: none;
    border: none;
    font-size: .18rem;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.tab-btn.active {
    color: #671482;
    font-weight: 500;
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: .02rem;
    left: 0;
    width: 100%;
    height: .02rem;
    background-color: #671482;
}

/* 登录表单 */
.login-form {
    display: none;
    flex-direction: column;
    /* flex: 1; */
}

.login-form.active {
    display: flex;
}

/* 帮助信息（激活账号链接） */
.login-help {
    margin-top: .1rem;
    font-size: .14rem;
    color: #333;
}

.help-link {
    color: #f95158;
    font-size: .14rem;
    text-decoration: none;
}

.help-link:hover {
    text-decoration: underline;
}

/* 建议浏览器 */
.browser-suggest {
    display: flex;
    align-items: center;
    margin-top: .08rem;
}

.browser-label {
    font-size: .14rem;
    color: #999;
    white-space: nowrap;
}

.browser-list {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.browser-item {
    display: flex;
    align-items: center;
    font-size: .13rem;
    color: #666;
    margin-right: .12rem;
    white-space: nowrap;
}

/* 浏览器图标（browser.png 竖排雪碧图：谷歌/火狐/Opera/Edge） */
.browser-icon {
    display: inline-block;
    width: .18rem;
    height: .18rem;
    margin-right: .04rem;
    background: url("../images/new/browser.png") no-repeat;
    background-size: .18rem auto;
}

.icon-chrome { background-position: 0 0; }
.icon-firefox { background-position: 0 33.333%; }
.icon-opera { background-position: 0 66.667%; }
.icon-edge { background-position: 0 100%; }
.form-group {
    margin-bottom: .15rem;
    position: relative;
}

.form-input {
    width: 100%;
    padding: .12rem;
    border: 1px solid #e9ecef;
    border-radius: .05rem;
    font-size: .16rem;
    transition: all 0.3s ease;
    background-color: #f8f9fa;
}

.form-input:focus {
    outline: none;
    border-color: #671482;
    background-color: white;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.form-input::placeholder {
    color: #999;
}
#codeInput {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}
#codeInput .form-input {
    width: calc(100% - 1.1rem);
}

#code {
    width: 1.1rem;
    height: .44rem;
    color: #000000;
    background-color: #eeeeee;
    font-size: .22rem;
    line-height: .44rem;
    text-align: center;
    cursor: pointer;
}

/* 密码显示/隐藏按钮 */
.toggle-password {
    position: absolute;
    right: .15rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #666;
    font-size: .16rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.toggle-password:hover {
    color: #671482;
}

/* 验证码输入组 */
.code-group {
    display: flex;
    gap: .1rem;
}

.code-group .form-input {
    flex: 1;
}

.get-code-btn {
    padding: 0 .12rem;
    background-color: #671482;
    color: white;
    border: none;
    border-radius: .05rem;
    font-size: .14rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.get-code-btn:hover {
    background-color: #671482;
}

.get-code-btn:disabled {
    background-color: #6c757d;
    cursor: not-allowed;
}

/* 登录按钮 */
.login-btn {
    width: 100%;
    padding: .12rem;
    background-color: #671482;
    color: white;
    border: none;
    border-radius: .05rem;
    font-size: .16rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: .1rem;
}

.login-btn:hover {
    background-color: #671482;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(122, 51, 158, 0.3);
}

/* 忘记密码 */
.forgot-password {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.forgot-password a {
    color: #671482;
    text-decoration: none;
    font-size: .14rem;
    transition: color 0.3s ease;
}

.forgot-password a:hover {
    color: #671482;
    text-decoration: underline;
}

/* 底部版权信息 */
.footer {
    text-align: center;
    padding: .2rem;
    background-color: transparent;
    color: #ffffff;
    font-size: .16rem;
    z-index: 100;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
}

/* 响应式设计 */
@media (max-width: 1300px) {

    .header-container {
        width: 100%;
        padding: 0 .15rem;
    }

    .content-container {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    /* 小屏：页面可滚动，内容高出屏幕时不受影响 */
    .login-page {
        height: auto;
        min-height: 100vh;
        overflow-x: hidden;
    }

    .header-container {
        height: 1.1rem;
        padding: 0 .3rem;
    }

    .logo-img {
        height: .64rem;
        margin-right: .1rem;
    }

    .logo-separator {
        margin: 0 .12rem;
        font-size: .3rem;
    }

    .logo-desc {
        font-size: .3rem;
    }

    .language-trigger {
        font-size: .26rem;
    }

    .language-trigger i {
        font-size: .2rem;
        margin-left: .08rem;
    }

    /* 由绝对定位改为相对定位：顶部让出固定头部，底部让出固定页脚 */
    .main-content {
        position: relative;
        top: auto;
        bottom: auto;
        min-height: 100vh;
        padding: 1.3rem .3rem 1rem;
    }

    .content-container {
        width: 100%;
        justify-content: center;
    }

    /* 小屏幕下隐藏左侧扫码区，仅保留登录表单 */
    .qr-box {
        display: none;
    }

    /* 大卡片：圆角更大、近乎全宽 */
    .login-container {
        width: 100%;
        max-width: 7rem;
        min-height: 0;
        margin: 0 auto;
        border-radius: .16rem;
    }

    .login-box {
        padding: .5rem .4rem .4rem;
        width: 100%;
        max-width: none;
        height: auto;
        min-height: 0;
    }

    /* 标签：大字号、粗下划线 */
    .login-tabs {
        margin-bottom: .4rem;
    }

    .tab-btn {
        padding: .2rem 0;
        font-size: .32rem;
    }

    .tab-btn.active::after {
        height: .04rem;
    }

    /* 输入框：大内边距、大字号、圆角 */
    .form-group {
        margin-bottom: .3rem;
    }

    .form-input {
        padding: .24rem;
        font-size: .3rem;
        border-radius: .1rem;
    }

    #codeInput .form-input {
        width: calc(100% - 2.2rem);
    }

    #code {
        width: 2.2rem;
        height: .9rem;
        font-size: .4rem;
        line-height: .9rem;
        border-radius: .1rem;
    }

    .toggle-password {
        font-size: .3rem;
        right: .2rem;
    }

    /* 大按钮 */
    .login-btn {
        padding: .26rem;
        font-size: .32rem;
        border-radius: .5rem;
        margin-top: .1rem;
        margin-bottom: .2rem;
    }

    .forgot-password a {
        font-size: .28rem;
    }

    /* 帮助文本：居中、灰色、可读字号 */
    .login-help {
        margin-top: .2rem;
        text-align: center;
    }

    .login-help p {
        font-size: .26rem;
        color: #666;
        line-height: 1.6;
    }

    .help-link {
        font-size: .28rem;
    }

    /* 建议浏览器：底部居中、放大 */
    .browser-suggest {
        justify-content: center;
        margin-top: .3rem;
    }

    .browser-label {
        font-size: .26rem;
    }

    .browser-item {
        font-size: .26rem;
        margin-right: .2rem;
    }

    .browser-icon {
        width: .32rem;
        height: .32rem;
        margin-right: .06rem;
        background-size: .32rem auto;
    }

    .get-code-btn {
        padding: 0 .24rem;
        font-size: .28rem;
        border-radius: .1rem;
        white-space: nowrap;
    }

    .footer {
        font-size: .24rem;
        padding: .15rem;
    }
}

@media (max-width: 640px) {
    .header-container {
        padding: 0 .1rem;
    }

    .logo-img {
        height: .56rem;
        margin-right: 0;
    }

    .logo-separator {
        margin: 0 .08rem;
        font-size: .18rem;
    }

    .logo-desc {
        font-size: .18rem;
    }

    .main-content {
        padding: 1.2rem .25rem .9rem;
    }
}

@media (max-width: 480px) {
    .header-container {
        height: 1.2rem;
        padding: 0 .2rem;
    }

    .logo-img {
        height: .56rem;
        margin-right: .08rem;
    }

    .logo-separator {
        margin: 0 .08rem;
        font-size: .26rem;
    }

    .logo-desc {
        font-size: .26rem;
    }

    .language-trigger {
        font-size: .24rem;
    }

    .main-content {
        padding: 1.15rem .2rem .9rem;
    }

    .login-box {
        padding: .4rem .3rem .3rem;
    }

    .login-tabs {
        margin-bottom: .3rem;
    }

    .tab-btn {
        padding: .15rem 0;
        font-size: .3rem;
    }

    .form-group {
        margin-bottom: .24rem;
    }

    .form-input {
        padding: .2rem;
        font-size: .28rem;
    }

    #codeInput .form-input {
        width: calc(100% - 2rem);
    }

    #code {
        width: 2rem;
        height: .8rem;
        font-size: .36rem;
        line-height: .8rem;
    }

    .login-btn {
        padding: .22rem;
        font-size: .3rem;
    }

    .login-help p {
        font-size: .24rem;
    }

    .browser-label,
    .browser-item {
        font-size: .24rem;
    }

    .browser-icon {
        width: .28rem;
        height: .28rem;
        margin-right: .05rem;
        background-size: .28rem auto;
    }

    .get-code-btn {
        padding: 0 .2rem;
        font-size: .26rem;
    }
}

/* 加载动画样式 */
#loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

#loading-overlay.active {
    opacity: 1;
    visibility: visible;
}

.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.spinner {
    width: .5rem;
    height: .5rem;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #671482;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-spinner p {
    color: #666;
    font-size: .14rem;
}

/* 消息提示样式 */
#message-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1001;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.message {
    padding: 12px 20px;
    border-radius: 8px;
    color: white;
    font-size: .14rem;
    box-shadow: 0 .04rem .12rem rgba(0, 0, 0, 0.15);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    max-width: 300px;
    word-wrap: break-word;
}

.message.active {
    transform: translateX(0);
}

.message.success {
    background-color: #28a745;
}

.message.error {
    background-color: #dc3545;
}

/* 表单输入错误状态 */
.form-input.error {
    border-color: #dc3545;
}

.form-input.error:focus {
    outline-color: #dc3545;
}


.advbox {
    position: fixed;
    bottom: .2rem;
    left: .1rem;
    z-index: 1000;
    display: block;  /* 默认显示，如需默认隐藏可改为none，通过JS控制 */
    max-width: 360px;
    min-width: 280px;
}

.advbox .advpic {
    position: relative;
    background: #ffffff;
    border-radius: .08rem;
    box-shadow: 0 .04rem .2rem rgba(0,0,0,0.2);
    padding: .16rem .2rem;
    border-left: .04rem solid #1a73e8;
    overflow: hidden;
}



.advbox .advpic .notice-title {
    font-size: .16rem;
    font-weight: 600;
    color: #1a73e8;
    margin-bottom: .08rem;
}

.advbox .advpic .notice-body {
    font-size: .13rem;
    color: #333333;
    line-height: 1.6;
}

.advbox .advpic .notice-body p {
    margin: .04rem 0;
}

.advbox .advpic .notice-body a {
    color: #1a73e8;
    text-decoration: underline;
    cursor: pointer;
}

.advbox .advpic .notice-body strong {
    color: #d93025;
}

.advbox .advpic .closebtn {
    width: .44rem;
    text-align: center;
    line-height: .26rem;
    font-size: .12rem;
    color: #999999;
    position: absolute;
    right: .08rem;
    top: .08rem;
    z-index: 99;
    cursor: pointer;
    border-radius: .04rem;
    transition: background 0.2s;
}

.advbox .advpic .closebtn:hover {
    background: #f0f0f0;
    color: #333;
}