* { box-sizing: border-box; }

body {
  max-width: 680px;
  margin: 0 auto;
  padding: 3em 1.5em;
  font-family: -apple-system, "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: #222;
  background: #fff;
  overflow-x: hidden;
}

a {
  color: #111;
  text-decoration: underline;
  text-underline-offset: 3px;
}
a:hover { color: #666; }

h1 {
  font-size: 1.6em;
  font-weight: 600;
  margin: 0 0 0.3em;
}
h1 .en {
  font-weight: 400;
  color: #888;
  font-size: 0.7em;
}

h2 {
  font-size: 1em;
  font-weight: 600;
  margin: 2em 0 0.8em;
  padding-bottom: 0.3em;
  border-bottom: 1px solid #eee;
}

.title {
  color: #555;
  margin: 0 0 1.5em;
  font-size: 0.95em;
}

/* 头像与姓名区块 */
.profile {
  display: flex;
  align-items: stretch;
  gap: 1.5em;
  margin-bottom: 1.5em;
}

.avatar {
  width: 160px;
  object-fit: cover;
  object-position: top;
  flex-shrink: 0;
  align-self: stretch;
}

.profile-text h1 { margin: 0 0 0.3em; }
.profile-text .title { margin: 0; }

/* 导航栏 —— 修复了 font-size:0 的 bug */
nav {
  font-size: 0.95em;
  margin-bottom: 2em;
}
nav a { margin-right: 0.2em; }

/* 列表 */
.pub-list {
  padding-left: 1.2em;
  line-height: 1.7;
}
.pub-list li {
  margin-bottom: 0.6em;
  word-wrap: break-word;
  overflow-wrap: anywhere;
}

ul.selected, ul.recent, ul.pub-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
ul.selected li, ul.recent li, ul.pub-list li {
  padding: 0.4em 0;
  border-bottom: 1px solid #f5f5f5;
  font-size: 0.95em;
}

footer {
  margin-top: 4em;
  padding-top: 1.5em;
  border-top: 1px solid #eee;
  font-size: 0.9em;
  color: #777;
}

header.sub { margin-bottom: 3em; }
header.sub .back {
  font-weight: 500;
  text-decoration: none;
  color: #111;
  display: block;
  margin-bottom: 1em;
}
header.sub nav { font-size: 0.9em; }

/* 动态页 */
.news-list { margin-top: 2em; }
.news-item {
  padding-bottom: 2.5em;
  margin-bottom: 2.5em;
  border-bottom: 1px solid #eee;
}
.news-item:last-child { border-bottom: none; }

.news-date {
  font-size: 0.85em;
  color: #999;
  margin: 0 0 0.2em;
  letter-spacing: 0.05em;
}
.news-item h3 {
  font-size: 1.05em;
  font-weight: 500;
  margin: 0 0 0.8em;
}

.news-gallery {
  display: flex;
  gap: 0.6em;
  flex-wrap: wrap;
  margin-bottom: 1em;
}
.news-gallery img {
  width: 100%;
  max-width: 280px;
  height: 180px;
  object-fit: cover;
  filter: grayscale(15%);
  transition: filter 0.3s;
}
.news-gallery img:hover { filter: grayscale(0%); }

.news-text {
  color: #333;
  font-size: 0.95em;
}

/* 团队页 */
.team-intro {
  color: #555;
  margin: 1.5em 0 2em;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 2em 1em;
  margin-bottom: 3em;
}

.team-card {
  text-align: center;
}

.team-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 0.8em;
}

.team-name {
  font-weight: 500;
  font-size: 0.95em;
  margin-bottom: 0.2em;
  line-height: 1.4;
}

.team-year {
  color: #999;
  font-size: 0.85em;
}


/* 手机端 */
@media (max-width: 480px) {
  .profile {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }
  .avatar { width: 140px; height: auto; }
}
