/* ------------------ 全局字体 ------------------ */
body {
    font-family: "Helvetica Neue", Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #fefefe;
    color: #333;
}

/* ------------------ Header ------------------ */
.header-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px 0;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.navbar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin-top: 10px;
}

.navbar a {
    text-decoration: none;
    color: #333;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 8px 15px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.navbar a:hover {
    background-color: #1a237e;
    color: #fff;
    transform: scale(1.05);
}

.navbar a.active {
    background-color: #303f9f;
    color: #fff;
}

/* ------------------ Footer ------------------ */
footer {
    text-align: center;
    padding: 15px 0;
    background-color: #f5f5f5;
    margin-top: 50px;
    font-size: 0.9rem;
}

/* ------------------ 首页动态标题 ------------------ */
.typewriter {
    font-family: "Helvetica Neue", Arial, sans-serif;
    font-size: 3rem;
    font-weight: bold;
    white-space: nowrap;
    overflow: hidden;
    border-right: 3px solid #333;
    width: max-content;
    margin: 100px auto 0 auto;
}

@keyframes blink {
  0%, 100% { border-color: transparent; }
  50% { border-color: #333; }
}

.typewriter {
    animation: blink 0.7s infinite;
}

/* ------------------ Publications 卡片布局 ------------------ */
/* ------------------ Publications 卡片布局 ------------------ */
.pub-section {
    max-width: 1200px;
    margin: 50px auto;
    padding: 0 20px;
    text-align: center;
}

.pub-intro {
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: #555;
}

.year-section {
    margin-bottom: 50px;
}

.year-section h2 {
    font-size: 2rem;
    font-weight: bold;
    color: #1a237e;
    margin-bottom: 15px;
    text-align: center; /* 年份居中 */
}

.pub-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px; /* 卡片间距 */
}

.pub-card {
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    overflow: hidden;
    flex: 1 1 45%;      /* 宽度自适应，一行两个 */
    max-width: 500px;   /* 防止过宽 */
    min-width: 280px;   /* 防止过窄 */
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pub-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.25);
}

/* 图片自适应宽度，高度固定，同时保持比例 */
.pub-card img {
    width: 100%;
    height: 200px;       /* 固定高度保持统一 */
    object-fit: cover;
    transition: transform 0.3s ease;
    background-color: #f5f5f5;
}

.pub-card img:hover {
    transform: scale(1.03);
}

/* 文字区域高度统一，标题、作者、期刊均匀分布 */
.pub-info {
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1;
    min-height: 120px;  /* 保证卡片高度基本一致 */
}

.pub-title {
    font-weight: bold;
    color: #1a237e;
    text-decoration: none;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.pub-title:hover {
    text-decoration: underline;
}

.pub-authors,
.pub-journal {
    font-size: 0.9rem;
    color: #555;
    margin: 5px 0;
    word-wrap: break-word; /* 防止文字过长撑出卡片 */
}

.pub-intro {
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: #555;
}

/* 响应式处理：小屏幕单列显示 */
@media (max-width: 900px) {
    .pub-card {
        flex: 1 1 100%;
        max-width: 100%;
    }
}


/* Welcome section */
.welcome-section {
    text-align: center;
    margin-top: 50px;
    padding: 0 20px;
}

.welcome-img {
    width: 150px;       /* 可根据需要调整 */
    height: auto;
    margin-bottom: 30px;
    border-radius: 15px; /* 可选：圆角效果 */
}

.typewriter {
    font-family: "Helvetica Neue", Arial, sans-serif;
    font-size: 3rem;
    font-weight: bold;
    white-space: nowrap;
    overflow: hidden;
    border-right: 3px solid #333;
    width: max-content;
    margin: 0 auto 20px auto;
}

.welcome-section .welcome-desc {
    font-size: 1.2rem;
    color: #555;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}
.welcome-llm-img {
    width: auto;
    max-width: 800px;   /* 最大宽度限制，避免太宽 */
    height: auto;       /* 保持比例 */
    margin: 40px auto 0 auto; /* 上下间距 + 居中 */
    display: block;
    border-radius: 15px; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.research-summary {
    max-width: 800px;
    margin: 30px auto 0 auto;
    text-align: center;
    font-size: 1.1rem;
    line-height: 1.6;
    color: #555;
}

.research-summary p {
    margin: 10px 0;
}

/* Software 页面网格 */
/* 软件页面 Header */
.software-header {
    text-align: center;
    margin: 50px auto 30px auto;
}

.software-header h1 {
    font-size: 3rem;
    color: #1a237e;
    margin-bottom: 15px;
}

.software-header .intro {
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 5px;
}

.software-header .sub-intro {
    font-size: 1rem;
    color: #777;
    font-style: italic;
}

/* 分类标题 */
.category-title {
    font-size: 2rem;
    color: #303f9f;
    margin: 40px 0 20px 0;
    border-bottom: 2px solid #1a237e;
    display: inline-block;
    padding-bottom: 5px;
}

/* 软件网格 */
.soft-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 30px;
}

/* 软件卡片 */
.soft-card {
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.soft-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.2);
}

.soft-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.soft-card:hover img {
    transform: scale(1.05);
}

.soft-info {
    padding: 20px;
    text-align: center;
}

.soft-title {
    font-weight: bold;
    color: #1a237e;
    font-size: 1.2rem;
    text-decoration: none;
}

.soft-title:hover {
    text-decoration: underline;
}

.soft-desc {
    font-size: 0.95rem;
    color: #555;
    margin-top: 10px;
    line-height: 1.5;
}

.soft-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.soft-card {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.soft-card:hover {
    transform: translateY(-5px);
}

.soft-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.soft-info {
    padding: 15px;
    text-align: center;
}

.soft-title {
    font-weight: bold;
    color: #1a237e;
    font-size: 1.1rem;
    text-decoration: none;
}

.soft-title:hover {
    text-decoration: underline;
}

.soft-desc {
    font-size: 0.95rem;
    color: #555;
    margin-top: 8px;
}

/* ------------------ Members Section ------------------ */
.members-section {
    max-width: 1200px;
    margin: 50px auto;
    padding: 0 20px;
}

.role-title {
    margin-top: 40px;
    margin-bottom: 20px;
    font-size: 2rem;
    color: #1a237e;
    text-align: left;
    border-bottom: 2px solid #1a237e;
    padding-bottom: 5px;
}

.member-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
}

.member-card {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    text-align: center;
    padding: 20px 10px;
    transition: transform 0.3s ease;
}

.member-card:hover {
    transform: translateY(-5px);
}

.member-img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 10px;
}

.member-title {
    font-size: 0.95rem;
    color: #555;
    margin: 5px 0;
}

.member-detail-section {
    max-width: 700px;
    margin: 50px auto;
    text-align: center;
}

.member-detail-card {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.15);
    padding: 30px;
}

.member-detail-img {
    width: 180px;
    height: 180px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 20px;
}

.member-bio {
    margin-top: 15px;
    line-height: 1.6;
    color: #555;
    text-align: left;
}

.back-link {
    display: inline-block;
    margin-top: 20px;
    color: #1a237e;
    text-decoration: none;
    font-weight: bold;
}

.back-link:hover {
    text-decoration: underline;
}
