.logo_box.has-wecom-tabs {
    height: auto;
    min-height: 400px;
    margin-top: -280px;
}

.logo_box.has-wecom-tabs.is-wecom-mode {
    margin-top: -280px;
}

.login-head {
    height: auto !important;
    margin: 0 0 8px;
    padding: 0;
}

.login-mode-title {
    text-align: center;
    color: #fff;
    font-size: 16px;
    margin: 0 0 18px;
}

.login-mode-tabs {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
    margin: 0 0 22px;
    padding: 0 10px;
}

.login-mode-tab {
    position: relative;
    padding: 0 0 8px;
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.72);
    font-size: 15px;
    line-height: 1.4;
    cursor: pointer;
    outline: none;
}

.login-mode-tab:hover {
    color: rgba(255, 255, 255, 0.92);
}

.login-mode-tab.is-active {
    color: #fff;
    font-weight: 600;
}

.login-mode-tab.is-active::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    border-radius: 2px;
    background: #fff;
}

.login-mode-tab[disabled] {
    opacity: 0.55;
    cursor: not-allowed;
}

.login-wecom-panel {
    display: none;
}

.login-wecom-panel.is-active {
    display: block;
}

.login-wecom-panel__qr {
    width: 320px;
    max-width: 100%;
    min-height: 340px;
    margin: 0 auto;
    overflow: hidden;
}

.login-wecom-panel__qr iframe {
    display: block;
    margin: 0 auto;
    border: none;
}

.login-wecom-panel__error {
    min-height: 120px;
    color: #ffb4b4;
    font-size: 14px;
    line-height: 1.6;
    text-align: center;
    padding: 20px 10px;
}

.login-pwd-panel.is-hidden {
    display: none;
}

/* 绑定 / 选择账号子页 */
.logo_box.wecom-sub-page {
    width: 400px;
    max-width: 92vw;
    height: auto;
    min-height: 420px;
    margin-top: -280px;
    padding-bottom: 10px;
}

.logo_box.wecom-sub-page h3 {
    height: auto;
    margin: 0 0 6px;
    padding-top: 4px;
    line-height: 1.5;
    font-size: 18px;
    font-weight: 600;
}

.wecom-bind-desc,
.wecom-select-desc {
    color: rgba(255, 255, 255, 0.88);
    font-size: 13px;
    line-height: 1.65;
    margin: 0 auto 18px;
    padding: 0 12px;
    max-width: 340px;
    text-align: center;
}

.wecom-action-group {
    margin-top: 8px;
    padding-top: 4px;
}

.wecom-action-group .submit {
    margin-top: 0;
    margin-bottom: 0;
}

.login-wecom-back-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    max-width: 400px;
    margin: 18px auto 0;
    padding: 11px 20px;
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff !important;
    font-size: 14px;
    line-height: 1.4;
    text-decoration: none !important;
    box-sizing: border-box;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.login-wecom-back-btn:hover {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.85);
    color: #fff !important;
    text-decoration: none !important;
}

.login-wecom-back-btn__icon {
    font-size: 15px;
    line-height: 1;
    opacity: 0.9;
}

.wecom-select-list {
    margin: 0 0 6px;
    padding: 0;
    list-style: none;
}

.wecom-select-item {
    margin-bottom: 12px;
}

.wecom-select-item:last-child {
    margin-bottom: 0;
}

.wecom-select-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border: 1px solid rgba(255, 255, 255, 0.38);
    border-radius: 12px;
    color: #fff;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.07);
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.wecom-select-card:hover {
    border-color: rgba(255, 255, 255, 0.62);
    background: rgba(255, 255, 255, 0.1);
}

.wecom-select-card:has(.wecom-select-input:checked) {
    border-color: rgba(81, 190, 243, 0.95);
    background: rgba(0, 150, 230, 0.2);
    box-shadow: 0 0 0 1px rgba(81, 190, 243, 0.28);
}

.wecom-select-input {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    border: 0;
    clip: rect(0, 0, 0, 0);
    overflow: hidden;
}

.wecom-select-radio {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.55);
    border-radius: 50%;
    box-sizing: border-box;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.wecom-select-card:has(.wecom-select-input:checked) .wecom-select-radio {
    border-color: #51bef3;
    background: radial-gradient(circle, #51bef3 0 5px, transparent 5px);
}

.wecom-select-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    flex: 1;
}

.wecom-select-item .account-name {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
}

.wecom-select-item .account-username {
    font-size: 13px;
    line-height: 1.35;
    color: rgba(255, 255, 255, 0.78);
}
