/* 1. 基础设置*/
/* 清除浏览器自带的默认边距 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 颜色变量：以后如果想换颜色，只需要改这里 */
:root {
    --blue: #2563eb;
    --blue-dark: #1e3a8a;
    --blue-light: #dbeafe;
    --text-main: #0f172a;
    --text-sub: #0f172a;
}

/* 整个页面的默认字体和背景 */
body {
    /* font-family: "Segoe UI", "Microsoft YaHei", Arial, sans-serif; */
    font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
    background: #ffffff;
    color: var(--text-main);
    line-height: 1.5;
}

/* 2. 上半部分：个人信息 */
/* 个人信息整体区域 */
.hero {
    max-width: 1180px;
    margin: 18px auto 4px;
    padding: 0 28px;
}

/*  profile 是照片 + 右侧文字的横向布局  display: flex 让照片和文字左右排列 */
.profile {
    padding: 16px 0px 16px;
    display: flex;
    align-items: center;
    gap: 42px;
}

/* 个人照片：圆角长方形 */
.profile img {
    width: 154px;
    height: 176px;
    object-fit: cover;
    border-radius: 15px;
    /* 照片阴影 */
    box-shadow: 0 10px 25px -20px rgba(0, 0, 0, 0.90);
}

/* 姓名 */
.profile-info h1 {
    font-size: 30px;
    margin-bottom: 5px;
    line-height: 1.1;
}

/* 职称、地点 */
.meta-line1 {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
    color: var(--text-sub);
    font-size: 15px;
    margin-bottom: 15px;
}

/* 个人介绍 */
.intro {
    max-width: 960px;
    color: #334155;
    font-size: 15px;
    line-height: 1.55;
    margin-bottom: 15px;
}

/* 邮箱、google学术 */
.meta-line2 {
    display: flex;
    flex-wrap: wrap;
    gap: 108px 24px;
    color: var(--text-sub);
    font-size: 15px;

}

.intro p {
    margin-bottom: 4px;
}

/* 3. 标签栏 */
/* 标签栏：position: sticky 让它滑动到顶部后固定 */
.tabs-sticky {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #ffffff;
    /* 页面唯一保留的横线 */
    border-bottom: 1px solid #e5e7eb;
}

/* 标签按钮的外层容器 */
.tabs {
    max-width: 1180px;
    margin: 0 auto;
    padding: 8px 28px 7px;
    display: flex;
    gap: 34px;
}

/* 每个标签按钮 */
.tab-button {
    border: none;
    background: transparent;
    color: var(--blue);
    font-size: 20px;
    font-weight: 650;
    cursor: pointer;
    padding: 5px 0;
    position: relative;
}

/* 标签下面的小蓝线 */
.tab-button::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -7px;
    width: 0;
    height: 2px;
    background: var(--blue);
    transition: 0.25s;
}

/* 鼠标悬停或当前选中时显示小蓝线 */
.tab-button:hover::after,
.tab-button.active::after {
    width: 100%;
}

/* 当前选中的标签文字颜色 */
.tab-button.active {
    color: var(--blue-dark);
}

/* 4. 下半部分：内容区域 */
.main {
    max-width: 1280px;
    margin: 18px auto 55px;
    padding: 0 28px;
}

/* 内容的内边距 */
.content-card {
    background: #ffffff;
    padding: 22px 52px;
    min-height: 720px;
}

/* 默认隐藏所有标签内容 */
.tab-content {
    display: none;
}

/* 当前选中的标签内容显示 */
.tab-content.active {
    display: block;
}

/* Publications 下面的小说明 */
.small-note {
    color: #64748b;
    font-size: 12px;
    margin-bottom: 18px;
}

/* 5. News 时间轴 */
/* 时间轴整体 */
.timeline {
    position: relative;
}

/* 连续竖线：left: 118px 表示竖线离左侧 118px 圆点也会按这个位置对齐 */
.timeline::before {
    content: "";
    position: absolute;
    left: 118px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: var(--blue-light);
}

/* 每一年是一行：左边年份，右边月份和新闻 */
.year-row {
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: 28px;
    margin-bottom: 18px;
}

/* 年份文字 */
.year {
    color: var(--blue);
    font-size: 15px;
    font-weight: 800;
    line-height: 1.3;
}

/* 月份新闻列表 */
.month-list {
    position: relative;
    padding-left: 34px;
}

/* 每一条新闻 */
.news-item {
    position: relative;
    margin-bottom: 18px;
}

/*  时间轴圆点： left: -40px 是为了让圆点中心和竖线中心对齐 */
.news-item::before {
    content: "";
    position: absolute;
    left: -40px;
    top: 5px;
    width: 12px;
    height: 12px;
    background: var(--blue);
    border-radius: 50%;
    /*  用 box-shadow 模拟白色外圈 这样不会影响圆点中心位置 */
    box-shadow: 0 0 0 3px #ffffff;
}

/* 月份 */
.news-date {
    color: var(--blue);
    font-weight: 750;
    margin-bottom: 3px;
    line-height: 1.3;
}

/* 新闻正文 */
.news-item p {
    color: var(--text-sub);
    font-size: 15px;
}

/* 6. Publications */
/* 每一条论文：左边图片，右边文字 */
.publication {
    display: flex;
    gap: 22px;
    padding-top: 6px;
    padding-bottom: 30px;
}

/* 论文图片 */
.publication img {
    margin-top: 2px;
    width: 180px;
    height: 100px;
    object-fit: cover;
    border-radius: 10px;
    background: var(--blue-light);
    flex-shrink: 0;
    /* 照片阴影 */
    box-shadow: 0 10px 25px -10px rgba(0, 0, 0, 0.90);
}

/* 论文标题 */
.publication-info h3 {
    font-size: 15px;
    margin-bottom: 5px;
    line-height: 1.35;
}

/* 作者、会议、年份 */
.publication-info .meta {
    color: var(--blue);
    font-weight: 650;
    margin-bottom: 6px;
    font-size: 15px;
}

/* 论文说明 */
.publication-info p {
    color: var(--text-sub);
    margin-bottom: 5px;
    font-size: 15px;
}

/* 7. Services / Education / Awards */
/* 通用内容块 */
.card {
    padding: 10px 0;
}

/* 小标题 */
.card h3 {
    font-size: 15px;
    margin-bottom: 4px;
}

/* 正文和列表 */
.card p,
.card li {
    color: var(--text-sub);
    font-size: 15px;
}

.card ul {
    padding-left: 22px;
}

/* Education 和 Awards 两个区块 */
.section-block {
    margin-bottom: 28px;
}

/* Education / Awards 标题 */
.section-label {
    color: var(--blue);
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 4px;
}

.section-label2 {
    color: var(--blue);
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 4px;
    margin-top: 20px;
}

.p-date-button {
    padding-left: 5px;
    padding-right: 5px;
    padding-top: 0px;
    padding-bottom: 0px;
    border-radius: 3px;
    text-decoration: none;
    font-size: 16px;
    /* border: 1px solid #2563eb; */


    display: inline-block;
    /* background-color: #1b64e3c5; */
    background: linear-gradient(90deg, #0150ed, #94b7f4);
    color: #ffffff;
}

.pub-year-button1 {
    padding-left: 5px;
    padding-right: 5px;
    padding-top: 0px;
    padding-bottom: 0px;
    border-radius: 3px;
    text-decoration: none;
    font-size: 18px;
    color: var(--blue);
}

.pub-year-button2 {
    padding-left: 5px;
    padding-right: 5px;
    padding-top: 0px;
    padding-bottom: 0px;
    border-radius: 3px;
    text-decoration: none;
    font-size: 18px;
    width: 600px;
    /* border: 1px solid #2563eb; */
    display: inline-block;
    /* background-color: #1b64e3c5; */
    background: linear-gradient(90deg, #0150ed, #94b7f4);
    color: #ffffff;
}

/* 8. 手机端适配 */
@media (max-width: 850px) {
    .hero {
        margin-top: 14px;
        padding: 0 18px;
    }

    .profile {
        padding: 22px 0 12px;
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .profile img {
        width: 185px;
        height: 235px;
    }

    .profile-info h1 {
        font-size: 30px;
    }

    .meta-line1 {
        justify-content: center;
        font-size: 12px;
    }

    .intro {
        font-size: 15px;
    }

    .meta-line2 {
        justify-content: center;
        font-size: 15px;
    }

    .tabs {
        overflow-x: auto;
        gap: 24px;
        padding: 8px 18px 7px;
    }

    .tab-button {
        white-space: nowrap;
    }

    .main {
        padding: 0 18px;
        margin-top: 16px;
    }

    .content-card {
        padding: 20px 0;
    }

    /* 手机端时间轴位置 */
    .timeline::before {
        left: 7px;
    }

    .year-row {
        grid-template-columns: 1fr;
        gap: 8px;
        padding-left: 20px;
    }

    .month-list {
        padding-left: 0;
    }

    .news-item::before {
        left: -33px;
    }

    .publication {
        flex-direction: column;
    }

    .publication img {
        width: 100%;
        height: 190px;
    }
}

a,
a:visited {
    color: var(--blue);
    text-decoration: none;
}

a:hover {
    color: var(--blue-dark);
    text-decoration: none;
}

.pdf-button {
    /* padding-left: 5px;
    padding-right: 5px;
    padding-top: 2px;
    padding-bottom: 2px; */
    /* border-radius: 5px; */
    text-decoration: none;
    font-size: 15px;
    /* border: 1px solid #2563eb; */

}