:root {
  --bg: #f5f7fb;
  --paper: #ffffff;
  --ink: #1d2329;
  --muted: #66717d;
  --line: #d9e1e8;
  --accent: #176b5f;
  --accent-strong: #0f4f47;
  --warm: #c3562d;
  --cool: #2c5f9e;
  --shadow: 0 18px 50px rgba(29, 35, 41, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(135deg, rgba(191, 106, 50, 0.08), transparent 30%),
    linear-gradient(315deg, rgba(44, 95, 158, 0.11), transparent 32%),
    var(--bg);
  color: var(--ink);
  font-family:
    Inter, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.65;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(217, 225, 232, 0.9);
  background: rgba(245, 247, 251, 0.86);
  backdrop-filter: blur(16px);
}

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

.brand,
.nav-links {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  font-size: 0.95rem;
}

.nav-links {
  gap: 8px;
}

.nav-links a {
  padding: 8px 12px;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 650;
}

.nav-links a:hover,
.nav-links a.is-active {
  color: var(--accent-strong);
}

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

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.55fr);
  align-items: center;
  gap: 56px;
  min-height: calc(100vh - 68px);
  padding: 64px 0 86px;
}

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

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

h1 {
  max-width: 780px;
  margin-bottom: 14px;
  font-size: clamp(3rem, 10vw, 7.8rem);
  line-height: 0.96;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 5vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.hero-subtitle {
  margin-bottom: 18px;
  color: var(--cool);
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  font-weight: 750;
}

.hero-text {
  max-width: 660px;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 1.06rem;
}

.hero-actions,
.contact-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button,
.contact-link,
.copy-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 16px;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

.button:hover,
.contact-link:hover,
.copy-button:hover {
  transform: translateY(-1px);
  border-color: var(--accent);
}

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

.secondary,
.contact-link,
.copy-button {
  background: rgba(255, 255, 255, 0.76);
  color: var(--ink);
}

.profile-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow);
}

.profile-name {
  margin-bottom: 4px;
  font-size: 1.35rem;
  font-weight: 850;
}

.profile-role {
  margin-bottom: 22px;
  color: var(--muted);
}

.profile-meta {
  display: grid;
  gap: 12px;
  margin: 0;
}

.profile-meta div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.profile-meta dt {
  color: var(--muted);
}

.profile-meta dd {
  margin: 0;
  font-weight: 750;
  text-align: right;
}

.about,
.skills,
.contact {
  padding: 86px 0;
  border-top: 1px solid rgba(217, 225, 232, 0.95);
}

.section-heading {
  display: grid;
  gap: 6px;
  margin-bottom: 34px;
}

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

.skill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.skill-list span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink);
  font-weight: 750;
}

.copy-button {
  color: var(--accent-strong);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1120px, calc(100% - 40px));
  min-height: 84px;
  margin: 0 auto;
  border-top: 1px solid rgba(217, 225, 232, 0.95);
  color: var(--muted);
}

.site-footer a {
  font-weight: 750;
}

@media (max-width: 840px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    min-height: 92px;
    padding: 14px 0;
  }

  .nav-links {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .nav-links a {
    flex: 0 0 auto;
  }

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

  .profile-panel {
    max-width: 420px;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .section-shell,
  .nav,
  .site-footer {
    width: min(100% - 28px, 1120px);
  }

  .hero-actions,
  .contact-row {
    flex-direction: column;
  }

  .button,
  .contact-link,
  .copy-button {
    width: 100%;
  }

  .profile-meta div {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .profile-meta dd {
    text-align: left;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
  }
}
