/* ============================================
   Personal Website — Minimal Stylesheet
   ============================================ */

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Palatino Linotype", "Book Antiqua", Palatino, serif;
  color: #1a1a1a;
  background: #f0ebe3;
  line-height: 1.5;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  font-weight: 700;
  text-decoration: none;
  transition: opacity 0.2s;
}
a:hover {
  opacity: 0.6;
}

/* ---------- Navbar ---------- */
.navbar {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 860px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  background: #f0ebe3;
  z-index: 100;
}

.nav-logo {
  font-weight: 700;
  font-size: 1.2rem;
  color: #1a1a1a;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.nav-links a {
  color: #555;
  font-size: 1rem;
}
.nav-links a:hover {
  color: #1a1a1a;
}

.lang-toggle a {
  padding: 0.15rem 0.5rem;
  border: 1px solid #aaa;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 600;
}

/* ---------- Sections ---------- */
.section {
  max-width: 860px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

.section + .section {
  border-top: 1px solid #e5e7eb;
}

h1, h2 {
  font-family: "Palatino Linotype", "Book Antiqua", Palatino, serif;
}

h2 {
  font-size: 1.4rem;
  margin-bottom: 0.8rem;
  letter-spacing: -0.02em;
}

/* ---------- About Grid ---------- */
.about-grid {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

.about-photo img {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid #e5e7eb;
}

.about-text h1 {
  font-size: 1.75rem;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.zh-name {
  font-weight: 400;
  font-size: 1.1rem;
  color: #666;
  margin-left: 0.3rem;
}

.subtitle {
  color: #555;
  margin: 0.2rem 0 0.5rem;
  font-size: 1rem;
}

.about-text p {
  margin-bottom: 0.4rem;
  font-size: 1rem;
  color: #333;
  line-height: 1.5;
}

/* ---------- Social Links ---------- */
.social-links {
  display: flex;
  gap: 0.6rem;
  margin-top: 0.8rem;
  flex-wrap: wrap;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid #d1d5db;
  border-radius: 50%;
  color: #555;
  transition: all 0.2s;
}
.social-links a:hover {
  background: #2563eb;
  color: #fff;
  border-color: #2563eb;
}
.social-links a svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* ---------- Timeline ---------- */
.timeline {
  list-style: none;
}

.timeline li {
  position: relative;
  padding: 0.15rem 0 0.15rem 1.1rem;
  font-size: 1rem;
  line-height: 1.4;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 6px;
  height: 6px;
  background: #2563eb;
  border-radius: 50%;
}

.date {
  display: inline;
  font-size: 0.82rem;
  color: #888;
  margin-left: 0.4rem;
}

/* ---------- Resume Embed ---------- */
.resume-embed {
  width: 100%;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
}

.resume-embed iframe {
  width: 100%;
  height: 920px;
  border: none;
  display: block;
}

h2 .resume-download {
  display: inline-flex;
  align-items: center;
  margin-left: 0.4rem;
  color: #888;
  vertical-align: middle;
}
h2 .resume-download:hover {
  color: #2563eb;
}

/* ---------- Placeholder ---------- */
.placeholder {
  color: #aaa;
  font-style: italic;
}

/* ---------- Publication List ---------- */
.pub-list {
  list-style: none;
  counter-reset: pub-counter;
}

.pub-list li {
  position: relative;
  padding: 0.5rem 0 0.5rem 2.2rem;
  font-size: 0.95rem;
  line-height: 1.45;
  counter-increment: pub-counter;
}

.pub-list li::before {
  content: "[" counter(pub-counter) "]";
  position: absolute;
  left: 0;
  color: #888;
  font-size: 0.85rem;
}

.pub-list li + li {
  border-top: 1px solid #f0f0f0;
}

.pub-list a {
  font-size: 0.85rem;
  margin-right: 0.2rem;
}

/* ---------- Footer ---------- */
.footer {
  text-align: center;
  padding: 2rem 1.5rem;
  font-size: 0.82rem;
  color: #aaa;
  border-top: 1px solid #e5e7eb;
}

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
  .about-grid {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .social-links {
    justify-content: center;
  }

  .navbar {
    flex-direction: column;
    gap: 0.5rem;
  }
}
