/* 元扬首页：左介绍（区域内滚动）+ 右登录固定视口 */
html, body {
    height: 100%;
    margin: 0;
    overflow: hidden;
}

body.yy-landing {
    font-family: "PingFang SC", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #eef3f8;
    color: #2c3e50;
    height: 100vh;
    overflow: hidden;
    --yy-footer-h: 36px;
}

.yy-shell {
    display: flex;
    height: calc(100vh - var(--yy-footer-h));
    max-width: none;
    width: 100%;
    margin: 0;
    overflow: hidden;
}

.yy-site-footer {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 900;
    height: var(--yy-footer-h);
    line-height: var(--yy-footer-h);
    text-align: center;
    font-size: 12px;
    color: #7a8a9a;
    background: rgba(238, 243, 248, 0.96);
    border-top: 1px solid #dde5ee;
    box-sizing: border-box;
    padding: 0 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.yy-site-footer-copy {
    margin-right: 10px;
}

.yy-site-footer-beian {
    color: #5a6b7d;
    text-decoration: none;
}

.yy-site-footer-beian:hover {
    color: #1e4d8c;
    text-decoration: underline;
}

/* 左侧：固定高度，仅内部介绍区滚动 */
.yy-left {
    flex: 1 1 58%;
    min-width: 0;
    height: calc(100vh - var(--yy-footer-h));
    display: flex;
    flex-direction: column;
    border-right: 1px solid #dde5ee;
    background: #eef3f8;
    overflow: hidden;
}

.home-company-intro {
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 28px 24px 40px;
    box-sizing: border-box;
}

.home-company-inner {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.home-company-intro::-webkit-scrollbar {
    width: 8px;
}

.home-company-intro::-webkit-scrollbar-thumb {
    background: rgba(30, 77, 140, 0.25);
    border-radius: 4px;
}

.home-company-intro::-webkit-scrollbar-track {
    background: transparent;
}

.home-official-link-wrap {
    margin-bottom: 20px;
    text-align: center;
}

.home-official-link {
    display: inline-block;
    background: #f5b800;
    color: #1a1a1a;
    font-size: 13px;
    font-weight: 600;
    padding: 8px 18px;
    border-radius: 999px;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(245, 184, 0, 0.35);
}

.home-official-link:hover {
    color: #000;
    background: #ffc933;
    text-decoration: none;
}

.company-logo-wrap {
    margin: 8px auto 24px;
    text-align: center;
}

.company-logo {
    display: inline-block;
    max-width: 150px;
    width: auto;
    height: auto;
    vertical-align: middle;
}

.company-block {
    margin-bottom: 8px;
    padding-bottom: 8px;
}

.company-block--product {
    padding-bottom: 24px;
}

.company-section-title {
    font-size: 20px;
    font-weight: 700;
    color: #1e4d8c;
    margin: 24px 0 14px;
    text-align: center;
}

.company-section-title--lg {
    font-size: 22px;
    margin-top: 28px;
}

.company-subtitle {
    font-size: 16px;
    font-weight: 600;
    color: #2c5282;
    margin: 16px 0 12px;
    text-align: center;
}

.company-text {
    font-size: 14px;
    line-height: 1.9;
    color: #4a5568;
    margin: 0 auto 14px;
    max-width: 540px;
    text-align: center;
}

.company-text--lines {
    line-height: 2;
    letter-spacing: 0.02em;
}

.company-img-wrap {
    margin: 14px auto 18px;
    padding: 0;
    text-align: center;
}

.company-img {
    display: inline-block;
    max-width: 100%;
    width: auto;
    max-width: 480px;
    height: auto;
    margin: 0 auto;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(30, 60, 100, 0.12);
    vertical-align: middle;
}

/* 右侧：整列占满视口，登录卡垂直居中 */
.yy-right {
    flex: 0 0 42%;
    width: 42%;
    max-width: 520px;
    min-width: 320px;
    height: calc(100vh - var(--yy-footer-h));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 28px;
    box-sizing: border-box;
    background: linear-gradient(180deg, #f4f7fb 0%, #eef3f8 100%);
    overflow: hidden;
    position: relative;
}

.yy-auth-card {
    width: 100%;
    max-width: 380px;
    max-height: calc(100vh - 48px);
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(30, 60, 100, 0.1);
    overflow: hidden;
    flex-shrink: 0;
}

.yy-auth-tabs {
    display: flex;
    border-bottom: 1px solid #e8edf2;
    flex-shrink: 0;
}

.yy-auth-tabs a {
    flex: 1;
    text-align: center;
    padding: 16px 12px;
    font-size: 16px;
    font-weight: 600;
    color: #8896a6;
    text-decoration: none;
    border-bottom: 3px solid transparent;
    margin-bottom: -1px;
}

.yy-auth-tabs a.active {
    color: #1e4d8c;
    border-bottom-color: #f5b800;
}

.yy-auth-body {
    padding: 24px 28px 28px;
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.yy-auth-panel {
    display: none;
    flex: 1 1 auto;
    min-height: 0;
    flex-direction: column;
}

.yy-auth-panel.active {
    display: flex;
}

#panel-login form {
    flex: 0 0 auto;
}

.yy-field label {
    display: block;
    font-size: 13px;
    color: #6b7c93;
    margin-bottom: 6px;
    font-weight: 500;
}

.yy-field {
    margin-bottom: 16px;
}

.yy-field .form-control {
    height: 44px;
    border-radius: 8px;
    border: 1px solid #d8e0ea;
    box-shadow: none;
    font-size: 14px;
}

.yy-field .form-control:focus {
    border-color: #f5b800;
    outline: none;
    box-shadow: 0 0 0 3px rgba(245, 184, 0, 0.2);
}

.yy-remember {
    margin: -4px 0 16px;
    font-size: 13px;
    color: #5a6b7d;
}

.yy-remember label {
    font-weight: normal;
    margin: 0;
    cursor: pointer;
}

.yy-btn-primary {
    width: 100%;
    height: 46px;
    border: none;
    border-radius: 10px;
    background: #f5b800;
    color: #1a1a1a;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(245, 184, 0, 0.4);
}

.yy-btn-primary:hover {
    background: #ffc933;
    color: #000;
}

.yy-forgot {
    float: right;
    font-size: 12px;
    color: #1e4d8c;
}

/* 注册表单过长时仅在卡片内滚动 */
.yy-register-scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-right: 6px;
    margin-right: -4px;
}

.yy-register-scroll::-webkit-scrollbar {
    width: 6px;
}

.yy-register-scroll::-webkit-scrollbar-thumb {
    background: rgba(30, 77, 140, 0.2);
    border-radius: 3px;
}

/* 注册验证码：输入框在上，图片/按钮居中在下，校验提示在输入框下方 */
.yy-field-captcha .yy-captcha-box {
    width: 100%;
}

.yy-field-captcha .input-group {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    position: relative;
    border-collapse: separate;
}

.yy-field-captcha .input-group .form-control {
    display: block;
    width: 100%;
    float: none;
    order: 1;
    margin-bottom: 10px;
    border-radius: 8px;
}

.yy-field-captcha .input-group .input-group-btn {
    display: block;
    width: 100%;
    order: 2;
    padding: 0;
    border: none;
    text-align: center;
    vertical-align: middle;
    white-space: normal;
}

.yy-field-captcha .input-group .input-group-btn img {
    display: inline-block;
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    cursor: pointer;
    vertical-align: middle;
}

.yy-field-captcha .input-group .input-group-btn .btn {
    float: none;
    display: inline-block;
    margin: 0 auto;
}

.yy-field-captcha .input-group > .msg-box,
.yy-field-captcha .input-group > .msg-box.n-right,
.yy-field-captcha .msg-box.n-right {
    position: static !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    width: 100% !important;
    max-width: 100%;
    order: 3;
    margin: 8px 0 0 !important;
    text-align: center !important;
    display: block;
}

.yy-field-captcha .input-group > .msg-box .msg-wrap,
.yy-field-captcha .input-group > .msg-box.n-right .msg-wrap {
    position: static !important;
    text-align: center;
}

.yy-fab-consult {
    position: fixed;
    right: 24px;
    bottom: calc(var(--yy-footer-h) + 12px);
    z-index: 1000;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 22px;
    background: #1e6fd9;
    color: #fff !important;
    font-size: 15px;
    font-weight: 600;
    border-radius: 999px;
    text-decoration: none !important;
    box-shadow: 0 6px 20px rgba(30, 111, 217, 0.45);
}

.yy-fab-consult:hover {
    background: #1558b0;
    color: #fff;
}

@media (max-width: 991px) {
    html, body, body.yy-landing {
        overflow: auto;
        height: auto;
    }

    body.yy-landing {
        --yy-footer-h: auto;
    }

    .yy-site-footer {
        position: relative;
        height: auto;
        line-height: 1.6;
        padding: 10px 12px 12px;
        white-space: normal;
    }

    .yy-site-footer-copy {
        display: block;
        margin-right: 0;
        margin-bottom: 4px;
    }

    .yy-shell {
        flex-direction: column;
        height: auto;
        min-height: calc(100vh - 52px);
        overflow: visible;
    }

    .yy-left {
        flex: none;
        height: auto;
        max-height: 55vh;
    }

    .home-company-intro {
        max-height: 55vh;
    }

    .yy-right {
        flex: none;
        width: 100%;
        max-width: none;
        min-width: 0;
        height: auto;
        min-height: auto;
        padding: 24px 16px 72px;
    }

    .yy-auth-card {
        max-height: none;
    }
}
