/* ===== Global ===== */
body {
  font-family: "Computer Modern Serif", "Times New Roman", serif;
  font-size: 16px;
  line-height: 1.6;
  color: #111;
  background: #fff;
  margin: 0 auto;
  padding: 0 20px;
  max-width: 900px;
}

/* ===== Header / Name ===== */
header {
  text-align: center;
  margin-top: 36px;
}

header .name {
  font-size: 32px;
  font-weight: 600;
  margin-bottom: 8px;
  font-family: "Computer Modern Serif", "Times New Roman", serif;
}

/* ===== Strong Divider ===== */
hr.divider {
  border: none;
  border-top: 2px solid #cfcfcf;  /* 明显一点 */
  margin: 18px 0 22px 0;
}

/* ===== Navigation ===== */
.nav-bar {
  text-align: center;
  font-size: 15px;
  margin-bottom: 8px;
}

.nav-bar a {
  color: #003366;
  text-decoration: none;
  margin: 0 6px;
}

.nav-bar a:hover {
  text-decoration: underline;
}

/* ===== Intro Section ===== */
.intro-section {
  display: flex;
  align-items: center;         /* ✅ 垂直方向居中 */
  justify-content: flex-start;
  gap: 40px;                   /* 左右间距 */
  margin-bottom: 40px;
  flex-wrap: nowrap;
}

.photo {
  flex: 0 0 200px;             /* 左栏固定宽度 */
  display: flex;
  align-items: center;         /* ✅ 让头像在左栏内部垂直居中 */
  justify-content: center;
}

.profile-pic {
  width: 160px;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.description {
  flex: 1;
  min-width: 0;
  text-align: left;
}

/* ===== News ===== */
.news {
  margin-top: 18px;
}

.news h2 {
  font-size: 20px;
  margin: 0 0 12px 0;
  color: #222;
}

.news-content p,
.news-content li {
  margin-bottom: 8px;
}

.news-content a {
  color: #003366;
}

/* ===== Travel ===== */
.travel-section {
  margin: 30px 0 40px;
}

.travel-section h2 {
  margin: 0 0 12px;
  font-size: 24px;
  font-weight: 600;
}

.travel-intro {
  max-width: 680px;
  margin: 0 0 28px;
  color: #444;
}

.travel-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.travel-photo {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 6px;
  background: #f3f1ed;
}

.travel-card {
  min-width: 0;
  margin: 0;
}

.travel-card figcaption {
  margin-top: 8px;
  color: #555;
  font-size: 14px;
  text-align: center;
  overflow-wrap: anywhere;
}

.travel-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.travel-photo:focus-visible {
  outline: 3px solid #003366;
  outline-offset: 4px;
}

.travel-photo-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #777;
  font-size: 14px;
}

@media (max-width: 700px) {
  .travel-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 440px) {
  .travel-gallery {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ===== Footer ===== */
footer {
  text-align: center;
  font-size: 13px;
  color: #555;
  margin: 36px 0 28px 0;
}

/* ===== Responsive ===== */
@media (max-width: 700px) {
  .intro-section {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .photo { margin-bottom: 14px; }
  .profile-pic { width: 132px; }   /* 移动端稍大，便于识别 */
}

/* ===== Fix Markdown codeblock misrendering ===== */
.description pre,
.description code {
  font-family: inherit;     /* 用普通字体 */
  font-size: 16px;
  background: transparent;
  border: none;
  white-space: normal;      /* 不要保持等宽空格 */
  padding: 0;
  margin: 0;
}
