/* ========== 内嵌头部组件专属样式（原 header.html 内联样式提取） ========== */

.ai-chat-popup {
    position: fixed;
    right: 110px;
    bottom: 10%;
    width: 620px;
    height: 660px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, .15);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    overflow: hidden
}

.ai-chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 18px;
    background: #63065F;
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    flex-wrap: nowrap
}

.ai-chat-header > span {
    white-space: nowrap;
    flex-shrink: 0
}

.ai-chat-header .el-icon-close {
    cursor: pointer;
    font-size: 18px;
    flex-shrink: 0
}

.ai-chat-header .el-icon-close:hover {
    opacity: .8
}

.ai-chat-body {
    flex: 1;
    overflow: hidden
}

.ai-chat-body iframe {
    width: 100%;
    height: 100%;
    border: none
}

@media (max-width:480px) {
    .ai-chat-popup {
        right: 0;
        bottom: 0;
        width: 100%;
        height: 100%;
        border-radius: 0
    }
}

.sidebar-no-border {
    border-bottom: none !important;
    padding-bottom: 0 !important
}

.register-hover-dropdown {
    position: relative;
    display: inline-flex;
    align-items: center
}

.register-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 6px;
    min-width: 140px;
    background: #fff;
    border: 1px solid #e4e7ed;
    border-radius: 4px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .1);
    padding: 5px 0;
    z-index: 2000;
    list-style: none
}

.register-hover-dropdown:hover .register-dropdown-menu {
    display: block
}

.register-dropdown-menu::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 0;
    right: 0;
    height: 6px
}

.register-dropdown-menu li a {
    display: block;
    padding: 8px 16px;
    color: #606266;
    font-size: 14px;
    text-decoration: none;
    white-space: nowrap
}

.register-dropdown-menu li a:hover {
    background: #f5f7fa;
    color: #63065F
}

/* ========== 多身份选择弹窗 ========== */
.identity-dialog {
    border-radius: 14px;
    overflow: hidden;
}

.identity-dialog .el-dialog__header {
    display: none;
}

.identity-dialog .el-dialog__body {
    padding: 0;
}

.identity-picker {
    padding: 30px 26px 26px;
}

.identity-picker-head {
    text-align: center;
    margin-bottom: 22px;
}

.identity-picker-icon {
    width: 58px;
    height: 58px;
    margin: 0 auto 14px;
    border-radius: 50%;
    background: #EFE6EF;
    color: #63065F;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

.identity-picker-title {
    font-size: 18px;
    font-weight: 600;
    color: #1F2937;
    line-height: 1.4;
}

.identity-picker-desc {
    font-size: 13px;
    color: #9CA3AF;
    margin-top: 6px;
    line-height: 1.5;
}

.identity-picker-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.identity-option {
    display: flex;
    align-items: center;
    padding: 13px 16px;
    border: 1px solid #EAEAEA;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.25s;
    background: #fff;
}

.identity-option:hover {
    border-color: #63065F;
    background: #FAF6FA;
}

.identity-option.is-current {
    border-color: #63065F;
    background: #F4ECF4;
}

.identity-option.is-loading {
    opacity: .6;
    pointer-events: none;
}

.identity-option-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #EFE6EF;
    color: #63065F;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    margin-right: 12px;
    flex-shrink: 0;
}

.identity-option-text {
    font-size: 15px;
    color: #1F2937;
    font-weight: 500;
    flex: 1;
    text-align: left;
}

.identity-current-badge {
    font-size: 12px;
    color: #63065F;
    background: #fff;
    border: 1px solid #E8D6E8;
    border-radius: 10px;
    padding: 2px 9px;
    margin-right: 8px;
    flex-shrink: 0;
}

.identity-option-arrow {
    color: #C0C4CC;
    font-size: 14px;
    flex-shrink: 0;
}

.identity-option:hover .identity-option-arrow,
.identity-option.is-current .identity-option-arrow {
    color: #63065F;
}
