:root {
  --bg: #f7faf9;
  --surface: #ffffff;
  --surface-tinted: #edf5f3;
  --text: #182825;
  --muted: #60716d;
  --primary: #0e6f67;
  --primary-dark: #084d49;
  --line: #d9e5e2;
  --shadow: 0 18px 50px rgba(25, 57, 52, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(217, 229, 226, 0.8);
  background: rgba(247, 250, 249, 0.92);
  backdrop-filter: blur(16px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 16px 0;
}

.logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: var(--primary);
  color: #ffffff;
  font-weight: 800;
  letter-spacing: 0;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
}

.nav-links a:hover,
.nav-links a:focus {
  color: var(--primary);
}

.language-toggle {
  min-width: 54px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--primary-dark);
  cursor: pointer;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 800;
}

.language-toggle:hover,
.language-toggle:focus {
  border-color: var(--primary);
  color: var(--primary);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--text);
}

.section {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 88px 0;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
  gap: 56px;
  align-items: center;
  min-height: calc(100vh - 75px);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 10px;
  font-size: clamp(3rem, 7vw, 6.2rem);
  line-height: 0.95;
  letter-spacing: 0;
}

h2 {
  max-width: 760px;
  margin-bottom: 0;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.2rem;
  line-height: 1.25;
}

.hero-title {
  margin-bottom: 20px;
  color: var(--primary-dark);
  font-size: 1.35rem;
  font-weight: 700;
}

.hero-intro {
  max-width: 680px;
  color: var(--muted);
  font-size: 1.2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 8px;
  font-weight: 700;
}

.button.primary {
  background: var(--primary);
  color: #ffffff;
}

.button.primary:hover,
.button.primary:focus {
  background: var(--primary-dark);
}

.button.secondary {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--primary-dark);
}

.hero-side {
  display: grid;
  gap: 18px;
}

.profile-photo {
  overflow: hidden;
  margin: 0;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.profile-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 48%;
}

.hero-card,
.experience-card,
.project-card,
.contact-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.hero-card {
  display: grid;
  gap: 2px;
  overflow: hidden;
}

.hero-card div {
  padding: 28px;
  background: linear-gradient(135deg, #ffffff, #f0f7f5);
}

.metric {
  display: block;
  margin-bottom: 8px;
  color: var(--primary-dark);
  font-size: 1.45rem;
  font-weight: 800;
}

.hero-card span:last-child {
  color: var(--muted);
}

.section-heading {
  margin-bottom: 34px;
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 36px;
  color: var(--muted);
  font-size: 1.05rem;
}

.tinted {
  width: 100%;
  max-width: none;
  padding-right: max(20px, calc((100% - 1120px) / 2));
  padding-left: max(20px, calc((100% - 1120px) / 2));
  background: var(--surface-tinted);
}

.timeline {
  display: grid;
  gap: 24px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 18px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(14, 111, 103, 0.18);
}

.timeline-item:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.timeline-marker {
  width: 14px;
  height: 14px;
  margin-top: 7px;
  border: 3px solid var(--primary);
  border-radius: 50%;
  background: #ffffff;
}

.item-subtitle {
  margin-bottom: 10px;
  color: var(--primary-dark);
  font-weight: 700;
}

.timeline-item p:last-child,
.project-card p,
.clean-list {
  color: var(--muted);
}

.experience-card {
  padding: 32px;
}

.experience-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.pill {
  flex: 0 0 auto;
  border-radius: 999px;
  background: #e2f1ee;
  color: var(--primary-dark);
  padding: 6px 12px;
  font-size: 0.82rem;
  font-weight: 800;
}

.clean-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding-left: 20px;
}

.skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.skills-grid span {
  border: 1px solid rgba(14, 111, 103, 0.18);
  border-radius: 8px;
  background: #ffffff;
  color: var(--primary-dark);
  padding: 12px 16px;
  font-weight: 700;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.project-card {
  padding: 26px;
  box-shadow: none;
}

.contact-section {
  padding-bottom: 60px;
}

.contact-card {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 16px;
  padding: 26px;
  color: var(--muted);
  font-weight: 700;
}

.contact-card a {
  color: var(--primary-dark);
}

.contact-card a:hover,
.contact-card a:focus {
  color: var(--primary);
}

.footer {
  border-top: 1px solid var(--line);
  padding: 28px 20px;
  color: var(--muted);
  text-align: center;
}

.footer p {
  margin: 0;
}

@media (max-width: 820px) {
  .nav {
    width: min(100% - 32px, 1120px);
  }

  .nav-actions {
    gap: 10px;
  }

  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 75px;
    right: 16px;
    left: 16px;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: var(--shadow);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    width: 100%;
    padding: 15px 18px;
    border-bottom: 1px solid var(--line);
  }

  .nav-links a:last-child {
    border-bottom: 0;
  }

  .section {
    width: min(100% - 32px, 1120px);
    padding: 64px 0;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    gap: 36px;
    padding-top: 72px;
  }

  h1 {
    font-size: clamp(3.2rem, 14vw, 5.2rem);
  }

  .content-grid,
  .project-grid,
  .contact-card {
    grid-template-columns: 1fr;
  }

  .tinted {
    width: 100%;
    padding-right: 16px;
    padding-left: 16px;
  }

  .experience-header {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .experience-card,
  .project-card,
  .contact-card {
    padding: 22px;
  }
}
