@charset "utf-8";
body {
    font-family: "Lato", sans-serif;
    font-weight: 400;
    padding-top: 5.0rem;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    font-weight: 700;
}

.card {
    border-radius: 0.8rem!important;
}

.card-img-overlay {
    border-radius: 0.8rem!important;
}

.rounded-xl {
    border-radius: 0.8rem!important;
}

.rounded-xl-bottom {
    border-bottom-right-radius: 0.8rem !important;
    border-bottom-left-radius: 0.8rem !important;
}

.rounded-xl-top {
    border-top-left-radius: 0.8rem !important;
    border-top-right-radius: 0.8rem !important;
}


.text-profile-position {
    font-weight: 400;
}

.text-profile-bio {
    /* font-family: "Raleway"; */
    font-weight: 400;
}

.navbar {
    opacity: 0.95;
}

.inline-badge {
    height: 16px;
    vertical-align: -10%;
    margin-right: 2px;
    line-break: unset;
}

.no-break {
    white-space: nowrap;
}

.cover-image {
    width: 180px;
    max-height: 120px;
}

.abstract-body {
    min-height: 100px;
}

img.lazy {
    background-image: url('images/loading.gif');
    background-repeat: no-repeat;
    background-position: 50% 50%;
    background-size: 50px 50px;
    min-height: 80px;
}

div.lazy {
    background-image: url('images/loading.gif');
    background-repeat: no-repeat;
    background-position: 50% 50%;
    background-size: 50px 50px;
    min-height: 80px;
}

.badge-publication {
    font-size: 100%;
}

.email-text {
    font-family: Source Code Pro, monospace;
}

/* 实现 2 行截断的核心样式 */
/* 容器设为相对定位 */
.abstract-container {
    position: relative;
    line-height: 1.5;
}

/* 摘要文字：默认折叠状态 */
.abstract-content {
    display: -webkit-box;
    -webkit-line-clamp: 2; /* 初始显示2行 */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-right: 0; /* 默认不留白 */
    transition: all 0.3s ease;
}

/* 展开后的状态：取消行数限制 */
.abstract-content.expanded {
    -webkit-line-clamp: unset;
    display: block;
    margin-bottom: 25px; /* 展开后给底部的按钮留出一点空间 */
}

/* 按钮定位到右下角 */
.abstract-toggle-btn {
    position: absolute;
    bottom: 0;
    right: 0;
    padding-left: 20px; /* 左侧留白，配合渐变背景 */
    /* 添加半透明渐变背景，使按钮与文字衔接更自然 */
    background: linear-gradient(to right, rgba(255,255,255,0), white 40%); 
    text-decoration: none !important;
    font-weight: 500;
}

.abstract-toggle-btn:hover {
    text-decoration: underline !important;
}
