@charset "utf-8";

:root {
  --dartmouth-green: #00693e;
  --dartmouth-green-light: #238C5E;
  --dartmouth-green-dark: #004C2C;
  --header-green: #00843e;    /* 明亮的绿色用于标题 */
  --link-color: #2563eb;      /* 保持链接的蓝色 */
  --link-hover: #1e40af;      /* 保持链接悬停颜色 */
  --text-dark: #000000;       /* 纯黑色用于主要文字 */
  --text-gray: #4A5568;       /* 深灰色用于次要文字 */
  --primary-blue: #0A192F;
  --primary-blue-light: #172A45;
  --border-color: #2D3748;    /* 边框颜色 */
}

body {
    font-family: "Source Serif Pro", "Merriweather", serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.8;
    letter-spacing: -0.02em;  /* 减小字间距 */
    padding-top: 0;
    color: #000000;
}

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

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

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

.navbar {
    background-color: white !important;
    border-bottom: 1px solid #eee;
}

.navbar-light .navbar-nav .nav-link {
    color: var(--link-color);
}

.navbar-light .navbar-nav .nav-link:hover {
    color: var(--link-hover);
}

.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-container {
    margin-top: 0.2rem;
}

.abstract-body {
    font-size: 0.9rem;
    line-height: 1.35;
    color: var(--text-dark);
}

.abstract-full {
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--text-dark);
}

.abstract-toggle {
    color: var(--link-color);
    cursor: pointer;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.abstract-toggle:hover {
    color: var(--link-hover);
    text-decoration: underline;
}

.publication-item {
    margin-bottom: 2.5rem;
    padding-bottom: 0;
    border-bottom: none;
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    min-height: 180px;  /* 调整最小高度 */
}

.publication-cover {
    flex-shrink: 0;
    width: 400px;     /* 从250px增加到300px */
}

.publication-cover img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    border: 1px solid #eee;
    object-fit: cover;
    aspect-ratio: 2/1;  /* 保持长方形比例 */
}

.publication-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: start;
    min-height: 200px;  /* 与图片高度保持一致 (300px * 2/3) */
}

.publication-title {
    font-size: 1.15rem;
    line-height: 1.3;
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.publication-authors {
    font-size: 0.92rem;
    margin-bottom: 0.2rem;
}

.publication-authors strong {
    font-weight: 700;  /* 可以调整加粗程度 */
    color: var(--text-dark);  /* 可以设置特定颜色 */
}

.publication-venue {
    font-size: 0.92rem;
    margin-bottom: 0.3rem;
    display: flex;
    gap: 0.8rem;
    align-items: baseline;
}

.publication-venue i {
    font-style: italic;
}

.publication-links {
    margin-top: auto;
    padding-top: 0.4rem;
}

.publication-links a {
    font-size: 0.9rem;
    color: var(--link-color);
    text-decoration: none;
    padding: 0.2rem 0;
}

.publication-links a:hover {
    text-decoration: underline;
}

/* 移除原有的白色背景和阴影 */
.my-3.p-3.bg-white.shadow-sm.rounded-sm {
    background: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

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: Courier, monospace;
}

.portrait {
    max-width: 100%;
    height: auto;
    object-fit: cover;
    margin-bottom: 0.5rem;
    flex-grow: 1;
}

.name {
    font-family: "Crimson Text", serif;
    color: var(--text-dark);
    font-size: 3.2rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    line-height: 1.2;
}

.secondary-name {
    font-family: "Crimson Text", serif;
    color: var(--text-dark);
    font-size: 2.2rem;
    margin-left: 1.8rem;
}

.positions {
    font-size: 1.2rem;
    line-height: 1.6;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.position-item {
    margin-bottom: 0.3rem;
}

.position-logo {
    height: 45px;
    width: auto;
    margin-right: 0.8rem;
    vertical-align: middle;
    object-fit: contain;
}

/* 社交链接容器样式 */
.contact-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
}

/* 所有链接的基本样式 */
.contact-links a {
    color: var(--link-color);
    text-decoration: none;
    transition: color 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    margin-right: 1rem;
}

/* CV 链接样式 - 第二行 */
.contact-links a[href$="CV.pdf"] {
    flex-basis: 100%;
    margin-top: 0.5rem;
}

.contact-links a:hover {
    color: var(--link-hover);
    text-decoration: underline;
}

/* 图标和文字间距 */
.contact-links a i {
    margin-right: 0.3rem;
}

.contact-text {
    font-size: 1rem;
    color: var(--text-dark);
}

.bio {
    font-size: 0.95rem;
    line-height: 1.3;
    color: var(--text-dark);
    margin-top: 0.5rem;
    text-align: justify;
    font-weight: 500;
}

.bio a {
    font-weight: 600;
}

.bio p {
    margin-bottom: 0.4rem;
}

/* Section styles */
.section-title {
    font-family: "Crimson Text", serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--dartmouth-green);
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid var(--dartmouth-green);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 120px;
    height: 3px;
    background-color: #004d2e;
}

@media (max-width: 768px) {
    .portrait {
        max-width: 60%;
        margin: 0 auto 2rem;
    }
    
    .name {
        font-size: 2rem;
        text-align: center;
    }
    
    .secondary-name {
        display: block;
        margin-left: 0;
        margin-top: 0.5rem;
    }

    .container {
        padding-left: 1.5rem;    /* 移动端稍微减小一点边距 */
        padding-right: 1.5rem;
    }
}

/* Education section styles - 改进字体和布局 */
.education-section {
    margin-bottom: 2rem;
}

.education-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    border-left: 3px solid var(--dartmouth-green);
    padding-left: 1.2rem;
    position: relative;
    transition: transform 0.2s ease;
}

.education-item:hover {
    transform: translateX(5px);
}

.education-content {
    flex: 1;
    padding-left: 1.2rem;
}

.education-logo-container {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: white;
    border-radius: 50%;
    overflow: hidden;
}

.education-logo {
    width: 50px;
    height: auto;
    max-height: 50px;
    object-fit: contain;
}

.education-name {
    font-family: "Crimson Text", serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dartmouth-green);
    margin-bottom: 0.3rem;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.education-degree {
    font-family: "Source Serif Pro", serif;
    font-size: 1.15rem;
    font-weight: 600;
    font-style: italic;
    color: #333;
    margin-bottom: 0.2rem;
    line-height: 1.3;
}

.education-details {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    margin-bottom: 0.2rem;
    font-family: "Source Sans Pro", sans-serif;
    font-size: 0.95rem;
    color: var(--text-gray);
}

.education-location {
    margin-right: 0;
    font-weight: 500;
}

.education-date {
    color: var(--text-gray);
    font-size: 0.95rem;
    margin-left: 0.2rem;
    font-weight: 400;
}

/* 在location和date之间添加分隔符 */
.education-location:after {
    content: " - ";
    margin: 0 0.1rem;
}

.education-items {
    font-family: "Source Sans Pro", sans-serif;
    font-size: 0.95rem;
    line-height: 1.4;
    margin-top: 0.4rem;
    color: #444;
}

/* News section styles - 改进样式 */
.news-outer {
    position: relative;
    margin-bottom: 1.5rem;
}

.news-section {
    max-height: 350px;
    overflow-y: auto;
    padding-right: 15px;
}

.news-item {
    display: flex;
    align-items: baseline;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    transition: background-color 0.2s ease;
    padding: 0.75rem;
    border-radius: 4px;
}

.news-item:hover {
    background-color: rgba(0, 105, 62, 0.05);
}

.news-date {
    color: #555;
    font-family: "Source Sans Pro", sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    margin-right: 1.2rem;
    white-space: nowrap;
    min-width: 110px;
}

.news-title {
    color: var(--text-dark);
    flex: 1;
    font-family: "Source Serif Pro", serif;
    font-size: 1.05rem;
    line-height: 1.4;
}

.news-title a {
    color: var(--dartmouth-green);
    text-decoration: none;
    transition: color 0.2s ease;
}

.news-title a:hover {
    color: var(--dartmouth-green-dark);
    text-decoration: underline;
}

/* 更新正文容器样式 */
.profile-content {
    padding-left: 1rem;
    padding-right: 1rem;
    padding-top: 1rem;
}

/* 更新文字基础样式 */
body {
    font-family: "Source Serif Pro", "Merriweather", serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.8;
    letter-spacing: -0.02em;  /* 减小字间距 */
    color: #000000;
}

/* 更新链接样式 */
a, 
.navbar-light .navbar-nav .nav-link,
.contact-links a,
.news-title a {
    color: var(--link-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover,
.navbar-light .navbar-nav .nav-link:hover,
.contact-links a:hover,
.news-title a:hover {
    color: var(--link-hover);
    text-decoration: underline;
}

/* 更新bio样式 */
.bio {
    font-size: 0.95rem;
    line-height: 1.3;
    color: var(--text-dark);
    margin-top: 0.5rem;
    text-align: justify;
    font-weight: 500;
}

/* 更新name样式 */
.name {
    font-family: "Crimson Text", serif;
    color: var(--text-dark);
    font-size: 3.2rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    line-height: 1.2;
}

.secondary-name {
    font-family: "Crimson Text", serif;
    color: var(--text-dark);
    font-size: 2.2rem;
    margin-left: 1.8rem;
}

/* 更新position样式 */
.positions {
    font-size: 1.2rem;
    line-height: 1.6;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

/* 调整照片容器样式 */
.profile-photo-container {
    height: 100%;
    display: flex;
    flex-direction: column;
    padding-top: 1rem;
}

/* 照片说明文字样式 */
.portrait-caption {
    font-size: 0.9rem;
    color: var(--text-gray);
    text-align: center;
}

/* 调整container的上边距 */
.container {
    padding-top: 0.5rem;
    max-width: 1000px;        /* 减小容器最大宽度 */
    padding-left: 2rem;       /* 增大左边距 */
    padding-right: 2rem;      /* 增大右边距 */
}

/* 更新name容器样式 */
.name-container {
    border-bottom: 2px solid var(--text-dark);  /* 添加下边框作为分割线 */
    margin-bottom: 1.5rem;  /* 增加一点底部间距 */
    padding-bottom: 0.5rem;  /* 添加一些内部底部间距 */
}

/* 调整name的margin，因为现在container会处理间距 */
.name {
    margin-bottom: 0.3rem;  /* 减小底部margin，因为container会提供间距 */
}

/* 确保文本内容也使用相同的字间距 */
.news-title, 
.bio, 
.education-content,
.publication-title,
.publication-authors,
.publication-venue {
    letter-spacing: -0.02em;
}

.publication-list {
    margin-bottom: 1rem;
}

.publication-list:last-child {
    margin-bottom: 0;
}

/* 页脚样式 */
.footer {
    padding: 1rem 0;
    margin-top: 2rem;
}

/* 确保会议名称加粗显示 */
.publication-venue i,
.conference-name {
  font-weight: 700;
  font-style: normal;
}

/* Remove the duplicated/conflicting styles for publication-thumbnail below if they exist */
/* .publication-thumbnail { ... } */
/* .publication-thumbnail img, .publication-thumbnail svg { ... } */

