.intro-collapse.popup {
    position: relative;
    height: auto; /* 改为自动高度 */
    display: flex;
    align-items: flex-start;
}

.intro-collapse.popup .intro-wrapper {
    flex: 1;
    position: relative;
    min-height: 1.5em; /* 最小高度 */
    overflow: visible; /* 允许内容溢出 */
}

.intro-collapse.popup .intro-popup {
    position: absolute;
    bottom: 100%; /* 向上弹出 */
    left: 0;
    right: 0;
    background: white;
    z-index: 100;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    padding: 10px;
    border: 1px solid #eee;
    max-height: 120px; /* 设置最大高度 */
    overflow-y: auto; /* 内容超出时显示垂直滚动条 */
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    visibility: hidden;
}

.intro-collapse.popup.expanded .intro-popup {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}

.intro-collapse.popup .intro-content {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-right: 40px; /* 为toggle按钮留出空间 */
}

.intro-collapse.popup .intro-full {
    display: block;
}

.intro-toggle.inline-toggle {
    color: #3c7dee;
    cursor: pointer;
    font-weight: bold;
    position: absolute;
    right: 0;
    top: 0;
    display: inline-block;
    margin-top: 0;
    padding: 0 5px;
    background: white;
}