/* AI 3D 登录弹框 — 对齐 3d-web loginpop，独立样式不污染全局 LoginModal */
.ai3d-login-overlay {
    position: fixed;
    inset: 0;
    z-index: 10050;
    background: rgba(0, 0, 0, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.ai3d-login-dialog {
    width: 720px;
    max-width: 96vw;
    height: 500px;
    max-height: 92vh;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.32);
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.25);
}

.ai3d-login-content {
    display: flex;
    width: 100%;
    height: 100%;
    background-image: url("/public/images/ai-3d/login/login-bg.jpg");
    background-size: 100% 100%;
    background-repeat: no-repeat;
    box-sizing: border-box;
}

.ai3d-login-left {
    display: flex;
    flex-direction: column;
    width: 320px;
    height: 100%;
    padding: 29px;
    box-sizing: border-box;
    overflow: hidden;
    flex-shrink: 0;
}

.ai3d-login-left .brand-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 40px 0 0 12px;
}

.ai3d-login-left .logo {
    width: fit-content;
    height: 25px;
    margin: 0;
    flex-shrink: 0;
}

.ai3d-login-left .headline {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.04em;
    color: #fff;
    background: linear-gradient(135deg, #f5e6b8 0%, #d4af69 55%, #f0d78c 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    white-space: nowrap;
}

.ai3d-login-left .info {
    padding-top: 14px;
    padding-left: 12px;
    display: flex;
    align-items: center;
}

.ai3d-login-left .info span {
    font-size: 14px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.9);
}

.ai3d-login-left .info .line {
    width: 1px;
    height: 17px;
    margin: 0 7px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, #fff 44.29%, rgba(255, 255, 255, 0) 100%);
}

.ai3d-login-left .kong { flex: 1; }

.ai3d-login-left .li {
    font-weight: 400;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 16px;
    margin-top: 22px;
    display: flex;
    align-items: center;
    padding-left: 14px;
}

.ai3d-login-left .li img {
    width: 26px;
    margin-right: 10px;
}

.ai3d-login-left .li:last-of-type { margin-bottom: 50px; }

.ai3d-login-right {
    position: relative;
    flex: 1;
    height: 100%;
    overflow: hidden;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    padding: 56px 20px 36px;
    background: #fff;
}

.ai3d-login-right .close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.ai3d-login-right .panel-wrap {
    flex: 1;
    overflow: hidden;
    text-align: center;
    min-height: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.ai3d-login-right .panel.weixin {
    height: auto;
}

.ai3d-login-right .qrcode {
    position: relative;
    width: 213px;
    height: 213px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 25px;
    background: #fff;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.14);
    isolation: isolate;
}

.ai3d-login-right .Overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.8);
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #fff;
    z-index: 30;
    box-sizing: border-box;
    padding: 16px;
    text-align: center;
    border-radius: 25px;
}

.ai3d-login-right .Overlay.show { display: flex; }

.ai3d-login-right .Overlay span {
    font-size: 14px;
    line-height: 1.6;
    text-shadow: 0 1px 2px rgba(0,0,0,.45);
}

/* 容器固定裁切；iframe 水平居中，避免二维码错位 */
.ai3d-login-right .ewm,
#ai3dEwm {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #fff;
}

.ai3d-login-right .ewm iframe,
#ai3dEwm iframe {
    width: 300px !important;
    height: 400px !important;
    max-width: none !important;
    border: 0 !important;
    display: block !important;
    margin: 0 !important;
    position: absolute !important;
    left: 50% !important;
    top: 0 !important;
    transform: translateX(-50%) !important;
}

.ai3d-qr-loading {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 13px;
    line-height: 1.6;
    text-align: center;
    background: rgba(255, 255, 255, 0.92);
    pointer-events: none;
}

.ai3d-login-right .phone {
    width: 100%;
    padding: 20px 15px 0;
}

.ai3d-login-right .phone-input,
.ai3d-login-right .code-input {
    width: 100%;
    height: 47px;
    border-radius: 12px;
    border: 1px solid #d0d0d0;
    background: #fff;
    color: #343a42;
    font-size: 14px;
    padding: 0 14px;
    outline: none;
    box-sizing: border-box;
    font-family: inherit;
}

.ai3d-login-right .phone-input:focus,
.ai3d-login-right .code-input:focus {
    border-color: #d4af69;
    box-shadow: 0 0 0 2px rgba(212, 175, 105, 0.2);
}

.ai3d-login-right .yzmcontent {
    display: flex;
    margin-top: 18px;
    gap: 10px;
}

.ai3d-login-right .code-input { flex: 1; }

.ai3d-login-right .yzmBtn {
    min-width: 110px;
    height: 47px;
    border-radius: 12px;
    border: 1px solid #333;
    background: #000;
    color: #d4af69;
    font-size: 13px;
    cursor: pointer;
    padding: 0 10px;
    white-space: nowrap;
}

.ai3d-login-right .yzmBtn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.ai3d-login-right .submit-btn {
    width: 100%;
    height: 47px;
    border-radius: 12px;
    margin-top: 18px;
    border: none;
    font-size: 14px;
    color: #111;
    cursor: pointer;
    background: linear-gradient(135deg, #d4af69 0%, #f0d78c 100%);
    position: relative;
    overflow: hidden;
}

.ai3d-login-right .submit-btn::before {
    content: "";
    background: linear-gradient(0deg, hsla(0, 0%, 100%, 0), hsla(0, 0%, 100%, 0.5), hsla(0, 0%, 100%, 0));
    width: 100%;
    height: 100%;
    left: -100%;
    top: 0;
    position: absolute;
    transform: skewX(-25deg);
    transition: left 0.7s;
}

.ai3d-login-right .submit-btn:hover::before { left: 100%; }

.ai3d-login-right .control-btn {
    text-align: center;
    margin-top: 8px;
}

.ai3d-login-right .control-btn .tips {
    font-size: 14px;
    color: #111;
    line-height: 16px;
}

.ai3d-login-right .quick-methods {
    margin: 8px auto 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 210px;
    height: 45px;
    border-radius: 9px;
    border: 1px solid #999;
    cursor: pointer;
}

.ai3d-login-right .quick-methods img {
    width: 16px;
    height: 16px;
    margin-right: 16px;
}

.ai3d-login-right .quick-methods span {
    font-weight: 600;
    font-size: 12px;
    color: #333;
}

.ai3d-login-right .checkText {
    color: #818181;
    margin-top: 18px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    font-size: 12px;
}

.ai3d-login-right .checkText .cs {
    color: #343a42;
    text-decoration: none;
    font-size: 12px;
}

.ai3d-login-right .agree-label {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    gap: 6px;
}

.ai3d-login-toast {
    position: fixed;
    left: 50%;
    top: 72px;
    transform: translateX(-50%);
    z-index: 10060;
    background: rgba(30, 30, 30, 0.94);
    color: #fff;
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 13px;
    display: none;
}

@media (max-width: 760px) {
    .ai3d-login-dialog { height: auto; min-height: 480px; }
    .ai3d-login-content { flex-direction: column; }
    .ai3d-login-left { width: 100%; height: auto; padding: 20px; }
    .ai3d-login-left .kong,
    .ai3d-login-left .li:nth-child(n+5) { display: none; }
    .ai3d-login-left .brand-row { margin: 8px 0 0 12px; }
    .ai3d-login-left .logo { margin: 0; }
    .ai3d-login-right { padding: 40px 16px 24px; }
}
