:root {
  color-scheme: light;
  --background: #f7f8fb;
  --panel: #ffffff;
  --panel-muted: #f2f5f8;
  --text: #111827;
  --muted: #667085;
  --soft: #98a2b3;
  --border: #d9e0e8;
  --border-strong: #c7d0dc;
  --primary: #2563eb;
  --primary-foreground: #ffffff;
  --accent: #0f766e;
  --warm: #b45309;
  --shadow: 0 18px 42px rgba(16, 24, 40, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  font-family: Inter, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--background);
  color: var(--text);
}

a {
  color: inherit;
}

.page-shell {
  width: min(1080px, calc(100% - 40px));
  margin: 0 auto;
  padding: 24px 0 64px;
}

.site-header {
  position: sticky;
  top: 12px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
  padding: 10px;
  border: 1px solid rgba(217, 224, 232, 0.88);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 12px 30px rgba(16, 24, 40, 0.06);
  backdrop-filter: blur(16px);
}

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

.brand {
  gap: 10px;
  padding: 4px 8px 4px 4px;
  text-decoration: none;
  font-weight: 700;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--text);
  color: #ffffff;
  font-size: 16px;
}

.nav-links {
  gap: 4px;
}

.nav-links a {
  border-radius: 8px;
  padding: 9px 12px;
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.18s ease, background 0.18s ease;
}

.nav-links a:hover {
  background: var(--panel-muted);
  color: var(--text);
}

main {
  display: grid;
  gap: 18px;
}

.panel {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  align-items: stretch;
  gap: 20px;
  padding: 24px;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 360px;
  padding: 24px;
  border-radius: 8px;
  background: #f8fafc;
  border: 1px solid #e4e7ec;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.hero h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(40px, 6vw, 68px);
  line-height: 1.04;
}

.subtitle {
  max-width: 700px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 10px 15px;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button svg {
  width: 18px;
  height: 18px;
}

.primary-button {
  background: var(--primary);
  color: var(--primary-foreground);
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.18);
}

.secondary-button {
  background: #ffffff;
  color: var(--text);
  border-color: var(--border-strong);
}

.profile-card {
  display: grid;
  align-content: start;
  gap: 18px;
  padding: 24px;
  border: 1px solid #e4e7ec;
  border-radius: 8px;
  background: #ffffff;
}

.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 76px;
  height: 76px;
  border-radius: 8px;
  background: #111827;
  color: #ffffff;
  font-size: 32px;
  font-weight: 800;
}

.profile-name {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
}

.profile-role {
  margin: 6px 0 0;
  color: var(--muted);
}

.stats-grid {
  display: grid;
  gap: 10px;
  margin: 8px 0 0;
}

.stats-grid div {
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--panel-muted);
}

.stats-grid dt {
  color: var(--muted);
  font-size: 13px;
}

.stats-grid dd {
  margin: 6px 0 0;
  font-size: 18px;
  font-weight: 800;
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 18px;
}

.section-grid .panel,
#skills,
#contact {
  padding: 26px;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.section-title svg {
  width: 20px;
  height: 20px;
  color: var(--accent);
}

.section-title h2 {
  margin: 0;
  font-size: 22px;
}

.panel p {
  margin: 0;
  color: #344054;
  line-height: 1.9;
}

.panel p + p {
  margin-top: 14px;
}

.story-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 0;
  margin: 0;
}

.story-list li {
  min-height: 52px;
  padding: 13px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fbfcfe;
  color: #344054;
  line-height: 1.55;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tags span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 13px;
  border: 1px solid #b9d7d2;
  border-radius: 8px;
  background: #eff8f6;
  color: #0f766e;
  font-size: 14px;
  font-weight: 700;
}

.contact-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
}

.contact-head .section-title {
  margin-bottom: 0;
}

.section-description {
  max-width: 460px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

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

.contact-card {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 112px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fbfcfe;
  color: inherit;
  text-decoration: none;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.contact-card[href]:hover {
  transform: translateY(-2px);
  border-color: #93b4e8;
  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.12);
}

.contact-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: #eaf1ff;
  color: var(--primary);
}

.dark-icon {
  background: #111827;
  color: #ffffff;
}

.warm-icon {
  background: #fff7ed;
  color: var(--warm);
}

.contact-icon svg,
.contact-arrow {
  width: 19px;
  height: 19px;
}

.contact-body {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.contact-label {
  color: var(--muted);
  font-size: 13px;
}

.contact-value {
  color: #1d2939;
  font-weight: 800;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.contact-arrow {
  flex: 0 0 auto;
  margin-left: auto;
  color: var(--soft);
}

.muted-card {
  opacity: 0.86;
}

.copy-feedback {
  min-height: 22px;
  margin: 14px 0 0;
  color: var(--accent);
  font-size: 14px;
}

@media (max-width: 920px) {
  .page-shell {
    width: min(100% - 28px, 1080px);
    padding-top: 18px;
  }

  .hero,
  .section-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    min-height: 320px;
  }

  .profile-card {
    grid-template-columns: auto 1fr;
    align-items: center;
  }

  .stats-grid {
    grid-column: 1 / -1;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .contact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .page-shell {
    width: min(100% - 20px, 1080px);
    padding-bottom: 44px;
  }

  .site-header {
    position: static;
    align-items: stretch;
    flex-direction: column;
  }

  .nav-links {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .nav-links a {
    text-align: center;
  }

  .hero {
    padding: 14px;
  }

  .hero-copy,
  .profile-card,
  .section-grid .panel,
  #skills,
  #contact {
    padding: 20px;
  }

  .hero h1 {
    font-size: clamp(34px, 11vw, 48px);
  }

  .subtitle {
    font-size: 16px;
    line-height: 1.75;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .profile-card,
  .stats-grid,
  .story-list,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .contact-head {
    display: block;
  }

  .section-description {
    margin-top: 10px;
  }

  .contact-card {
    min-height: 96px;
  }
}

@media (max-width: 420px) {
  .page-shell {
    width: min(100% - 16px, 1080px);
    padding-top: 12px;
  }

  .brand {
    font-size: 15px;
  }

  .hero-copy,
  .profile-card,
  .section-grid .panel,
  #skills,
  #contact {
    padding: 16px;
  }

  .hero h1 {
    font-size: clamp(31px, 12vw, 40px);
  }

  .button {
    width: 100%;
  }

  .tags span {
    width: 100%;
    justify-content: center;
  }

  .contact-arrow {
    display: none;
  }
}
