/* 防止全局样式污染 */
.select-account-main *,
.select-account-main *::before,
.select-account-main *::after {
    box-sizing: border-box;
}



/* 固定容器尺寸 */
.select-account-main {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 440px;
    height: 480px;
    background: #ffffff;
    box-shadow: 0px 0px 20px 1px rgba(138, 142, 153, 0.1);
    border-radius: 20px 20px 20px 20px;
    opacity: 1;
    z-index: 99999;
    font-family: "OPPOSans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    display: flex;
    flex-direction: column;
    overflow: hidden; /* 禁止整体溢出 */
    padding: 0 !important;
}

/* 头部区域：不滚动 */
.select-account-header-area {
    padding: 20px 20px 0;
    flex-shrink: 0;
}

.select-account-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 12px;
    border-bottom: 1px solid #e9e9e9;
}

.select-account-back-btn {
    color: #FA3E40;
    text-decoration: none;
    font-size: 20px;
    line-height: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-style: normal;
    text-transform: none;
    text-align: center;
    cursor: pointer
}

.select-account-back-btn::before {
    content: "<";
    font-weight: bold;
}

.select-account-title {
    height: 28px;
    font-weight: 700;
    font-size: 32px;
    color: #333333;
    line-height: 28px;
    text-align: center;
    margin-top: 24px;
}

.select-account-subtitle {
    height: 28px;
    font-weight: 400;
    font-size: 16px;
    color: #727272;
    line-height: 28px;
    text-align: center;
    margin-top: 15px;
}

/* 可滚动的列表区域 */
.select-account-scrollable {
    flex: 1;
    padding: 0 20px 20px;
    overflow-y: auto;
    height: 280px;
    overflow-x: hidden; /* 禁止水平滚动条 */
}

/* 自定义滚动条 - WebKit 浏览器 */
.select-account-scrollable::-webkit-scrollbar {
    width: 5px;
}

.select-account-scrollable::-webkit-scrollbar-thumb {
    background: #B8B8B8;
    border-radius: 230px;
}

.select-account-scrollable::-webkit-scrollbar-track {
    background: transparent;
}

/* Firefox 简易支持 */
.select-account-scrollable {
    scrollbar-width: thin;
    scrollbar-color: #B8B8B8 transparent;
}

.select-account-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 23px;
}

/* 账号选项 */
.select-account-item {
    position: relative;
    height: 115px;
    background: #F8F9FA;
    border: 1px solid rgba(69, 122, 247, 0.1);
    border-radius: 9px;
    padding: 0 15px;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.select-account-label {
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 68px;
    height: 27px;
    color: white;
    z-index: 2;
    padding-left: 10px;
    border-top-left-radius: 9px;
    border-bottom-right-radius: 9px;
}

.select-account-label.sub { background-color: #457AF7; }
.select-account-label.main { background-color: #FF5441; }

.select-account-label-text {
    width: 48px;
    height: 18px;
    font-weight: 700;
    font-size: 16px;
    color: #FFFFFF;
    line-height: 17px;
    text-align: left;
    font-style: normal;
    text-transform: none;
}

.select-account-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 1px solid #457AF7;
    object-fit: cover;
    flex-shrink: 0;
}

.select-account-avatar.master {
    border-color: #FF5441;
}

.select-account-info {
    flex: 1;
    margin-left: 16px;
    display: flex;
    flex-direction: column;
}

.select-account-name-role {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}


.select-account-name {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 18px;
    font-family: OPPOSans, OPPOSans;
    font-weight: 700;
    font-size: 21px;
    color: #3D3D3D;
    line-height: 18px;
    font-style: normal;
    text-transform: none;
}

.select-account-role {
    font-family: OPPOSans, OPPOSans;
    font-weight: 500;
    font-size: 16px;
    color: #457AF7;
    text-align: left;
    font-style: normal;
    text-transform: none;
    padding: 2px 8px;
    border-radius: 4px;
}

.select-account-role.sub { background-color: #d0d0ff; color: #4a67d0; }
.select-account-role.main { background-color: #ffe5d0; color: #d04a2c; }

.select-account-desc {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 500;
    font-size: 16px;
    color: #3D3D3D;
    text-align: left;
    font-style: normal;
    text-transform: none;
    word-break: break-all;

    /* 行高：让文字不拥挤 */
    line-height: 1.4; /* ≈ 22.4px */

    /* 限制最多两行高度 */
    max-height: calc(1.4em * 2); /* 更健壮，避免 px 写死 */


}

.select-account-last-login {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 16px;
    color: #457AF7;
    cursor: pointer;
}