/* ==========================================================================
   学术团队网站样式表
   风格参考：diegopuga.org（极简学术风）
   —— 衬线标题 + 无衬线正文，左对齐单栏，克制配色，蓝色链接，大量留白
   ========================================================================== */

/* ---------- 设计变量（可在此统一调整配色/字体） ---------- */
:root {
  --bg: #ffffff;
  --bg-soft: #f7f8fa;          /* 浅灰底，用于隔开区块 */
  --text: #1f2328;             /* 正文近黑 */
  --text-muted: #57606a;       /* 次要文字 */
  --text-faint: #8b949e;       /* 更弱的辅助文字 */
  --accent: #1a56a0;           /* 学术蓝（链接） */
  --accent-dark: #123f7a;
  --border: #e5e7eb;           /* 分隔线 */

  --font-serif: Georgia, "Times New Roman", "Songti SC", "STSong", SimSun, serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
               "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;

  --maxw: 920px;               /* 内容最大宽度，保证阅读舒适 */
  --gap: 2rem;
}

/* ---------- 基础重置 ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  word-break: break-word;
}

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ---------- 链接 ---------- */
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); text-decoration: underline; }
a:visited { color: var(--accent); }

/* ---------- 标题 ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.25;
  color: var(--text);
  margin: 0 0 0.6em;
}
h1 { font-size: 1.9rem; }
h2 { font-size: 1.45rem; margin-top: 2.4rem; }
h3 { font-size: 1.15rem; }

/* 区块标题：左侧一条短竖线，呼应论文页风格 */
h2.section-title {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--border);
}
h2.section-title::before {
  content: "";
  align-self: stretch;
  width: 3px;
  background: var(--accent);
  border-radius: 2px;
}

/* ---------- 页眉 ---------- */
.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}
.site-header .container {
  padding-top: 1.5rem;
  padding-bottom: 1.1rem;
}
.brand-name {
  display: inline-block;
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.5px;
}
.brand-name:hover { text-decoration: none; color: var(--text); }
.brand-sub {
  display: block;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
  letter-spacing: 0.3px;
}

.site-nav {
  margin-top: 0.9rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 0.4rem;
}
.nav-link {
  display: inline-block;
  padding: 0.3rem 0.75rem;
  border-radius: 4px;
  color: var(--text);
  font-size: 0.95rem;
}
.nav-link:hover { background: var(--bg-soft); text-decoration: none; color: var(--accent-dark); }
.nav-link.active { color: var(--accent); font-weight: 600; }

/* ---------- 主体 ---------- */
main { padding: 2.2rem 0 3rem; }
.lead {
  font-size: 1.05rem;
  color: var(--text);
  max-width: 46em;
}
.lead a { text-decoration: underline; }

p { max-width: 46em; }

/* 首页首屏：姓名/团队名 + 简介 */
.hero { padding-bottom: 1rem; }
.hero .team-name {
  font-family: var(--font-serif);
  font-size: 2.1rem;
  font-weight: 600;
  margin: 0 0 0.4rem;
}

/* ---------- 元信息（作者/期刊等小字） ---------- */
.meta {
  color: var(--text-muted);
  font-size: 0.92rem;
}
.meta a { color: var(--text-muted); text-decoration: underline; }

/* ---------- 新闻列表 ---------- */
.news-list { list-style: none; padding: 0; margin: 0; }
.news-list li {
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border);
}
.news-list li:last-child { border-bottom: none; }
.news-date {
  font-variant-numeric: tabular-nums;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-right: 0.5rem;
  white-space: nowrap;
}
.news-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 3px;
  padding: 0 0.4em;
  margin-right: 0.5rem;
  vertical-align: 1px;
}

/* ---------- 成员卡片 ---------- */
.members-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 1.6rem;
  margin-top: 1rem;
}
.member-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.3rem 1.3rem 1.2rem;
  background: var(--bg);
  transition: box-shadow .15s ease, border-color .15s ease;
}
.member-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.06); border-color: #cfd6dd; }
.member-name {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0 0 0.15rem;
}
.member-name-en { color: var(--text-muted); font-size: 0.9rem; }
.member-role {
  display: inline-block;
  margin: 0.4rem 0 0.55rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-dark);
  background: var(--bg-soft);
  border-radius: 3px;
  padding: 0.1rem 0.55rem;
}
.member-research { font-size: 0.92rem; color: var(--text); margin: 0 0 0.5rem; }
.member-research .label { color: var(--text-faint); }
.member-bio { font-size: 0.88rem; color: var(--text-muted); margin: 0 0 0.7rem; }
.member-links { font-size: 0.88rem; display: flex; flex-wrap: wrap; gap: 0.2rem 1rem; }

/* ---------- 出版物/成果列表 ---------- */
.pub-group { margin-top: 1.6rem; }
.pub-year {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 0.4rem;
}
.pub-item {
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}
.pub-item:last-child { border-bottom: none; }
.pub-title { font-weight: 600; font-size: 1.02rem; color: var(--text); margin: 0 0 0.2rem; }
.pub-title a { color: var(--text); }
.pub-title a:hover { color: var(--accent-dark); }
.pub-authors { font-size: 0.92rem; color: var(--text-muted); }
.pub-venue { font-size: 0.92rem; color: var(--text-muted); font-style: italic; }
.pub-venue .type-badge { font-style: normal; }
.pub-abstract {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0.45rem 0 0.4rem;
  max-width: 56em;
}
.pub-links { font-size: 0.85rem; display: flex; flex-wrap: wrap; gap: 0.3rem 0.9rem; margin-top: 0.3rem; }

/* 类型标签 */
.type-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  border-radius: 3px;
  padding: 0 0.45em;
  margin-left: 0.4rem;
  vertical-align: 1px;
  border: 1px solid var(--border);
  color: var(--text-muted);
}
.type-badge.journal { color: #1a56a0; border-color: #c8d8ea; background: #f2f7fc; }
.type-badge.working { color: #8a4b08; border-color: #ecd7b8; background: #fdf7ef; }
.type-badge.data { color: #1f7a4d; border-color: #c6e6d2; background: #f1faf4; }
.type-badge.project { color: #7a3bb8; border-color: #e2d3f0; background: #f8f4fc; }

/* 主题标签（研究方向分组用） */
.theme-tag {
  display: inline-block;
  font-size: 0.78rem;
  color: var(--accent);
  background: #eef4fb;
  border-radius: 3px;
  padding: 0.05rem 0.55rem;
  margin-right: 0.4rem;
}

/* ---------- 研究方向 / 数据 / 项目卡片 ---------- */
.direction-item { margin-bottom: 1.4rem; }
.direction-item h3 { margin-bottom: 0.3rem; }
.direction-item h3 .num {
  font-family: var(--font-serif);
  color: var(--accent);
  margin-right: 0.5rem;
}
.direction-item p { margin: 0; color: var(--text-muted); }

.resource-card {
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 6px;
  padding: 1rem 1.2rem;
  margin-bottom: 1rem;
  background: var(--bg-soft);
}
.resource-card h3 { margin-bottom: 0.3rem; font-size: 1.05rem; }
.resource-card p { margin: 0 0 0.4rem; color: var(--text-muted); font-size: 0.92rem; }
.resource-card .resource-meta { font-size: 0.82rem; color: var(--text-faint); }

/* ---------- 联系方式 ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.2rem;
  margin-top: 1rem;
}
.contact-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.2rem;
}
.contact-card h3 { margin-bottom: 0.6rem; font-size: 1.05rem; }
.contact-card p { margin: 0.25rem 0; font-size: 0.94rem; }
.contact-card .label { color: var(--text-faint); font-size: 0.82rem; }

/* ---------- 提示/告示框 ---------- */
.note {
  border: 1px solid #f0d9a8;
  background: #fffaf0;
  color: #7a5b12;
  border-radius: 6px;
  padding: 0.7rem 1rem;
  font-size: 0.9rem;
  margin: 1.4rem 0;
}

/* ---------- 页脚 ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-soft);
  color: var(--text-muted);
  font-size: 0.86rem;
  padding: 2rem 0 2.5rem;
  margin-top: 1rem;
}
.site-footer .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; }
.site-footer a { color: var(--text-muted); text-decoration: underline; }
.site-footer .footer-updated { color: var(--text-faint); }

/* ---------- 响应式 ---------- */
@media (max-width: 640px) {
  body { font-size: 15px; }
  h1 { font-size: 1.6rem; }
  .hero .team-name { font-size: 1.7rem; }
  .brand-name { font-size: 1.25rem; }
  .site-header .container { padding-top: 1.1rem; padding-bottom: 0.9rem; }
  main { padding: 1.6rem 0 2.4rem; }
  .members-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .site-footer .container { flex-direction: column; }
}

/* ---------- 打印友好 ---------- */
@media print {
  .site-nav, .site-footer { display: none; }
  a { color: var(--text); }
}
