:root {
  color-scheme: dark;
  --bg: #071013;
  --panel: rgba(12, 27, 31, 0.78);
  --panel-strong: rgba(17, 38, 43, 0.9);
  --text: #eaf4f1;
  --muted: #9fb5b2;
  --line: rgba(172, 216, 205, 0.18);
  --cyan: #57d7c9;
  --green: #9be86f;
  --gold: #d5b45f;
  --coral: #ff8f70;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 15% 20%, rgba(87, 215, 201, 0.18), transparent 28rem),
    radial-gradient(circle at 82% 4%, rgba(213, 180, 95, 0.12), transparent 22rem),
    linear-gradient(140deg, #071013 0%, #0a171b 48%, #111311 100%);
  color: var(--text);
  font-family:
    Inter, "SF Pro Display", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.7;
}

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

#signal-canvas {
  position: fixed;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  opacity: 0.46;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 72px;
  padding: 0 clamp(16px, 4vw, 52px);
  border-bottom: 1px solid var(--line);
  background: rgba(7, 16, 19, 0.72);
  backdrop-filter: blur(18px);
}

.brand {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(87, 215, 201, 0.42);
  border-radius: 8px;
  color: var(--cyan);
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0;
}

.nav {
  display: flex;
  gap: clamp(16px, 4vw, 46px);
  color: var(--muted);
  font-size: 0.95rem;
}

.nav a,
.header-link,
.hero-actions a,
.project-meta a {
  transition:
    color 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.nav a:hover,
.header-link:hover,
.hero-actions a:hover,
.project-meta a:hover {
  color: var(--cyan);
}

.header-link {
  min-width: 88px;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  text-align: center;
}

main {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: clamp(28px, 6vw, 84px);
  align-items: end;
  min-height: calc(100vh - 72px);
  padding: clamp(72px, 12vh, 130px) 0 72px;
}

.hero-content {
  max-width: 780px;
}

.eyebrow,
.section-kicker,
.panel-label {
  margin: 0 0 14px;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 22px;
  font-size: clamp(4.2rem, 13vw, 8.6rem);
  line-height: 0.92;
  letter-spacing: 0;
}

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

h3 {
  margin-bottom: 12px;
  color: #f4fbf8;
  font-size: 1.08rem;
  letter-spacing: 0;
}

.hero-summary {
  max-width: 700px;
  margin-bottom: 30px;
  color: #c5d8d4;
  font-size: clamp(1.06rem, 2vw, 1.32rem);
}

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

.hero-actions a {
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  color: #dbe9e6;
  font-size: 0.92rem;
}

.hero-panel,
.info-block,
.skill-grid article,
.project {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.22);
}

.hero-panel {
  padding: 26px;
}

.portrait-panel {
  display: grid;
  gap: 22px;
  padding: 14px;
}

.portrait-panel img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 6px;
  object-fit: cover;
  border: 1px solid rgba(172, 216, 205, 0.16);
  filter: saturate(0.92) contrast(1.04);
}

.portrait-panel div {
  padding: 0 12px 12px;
}

.hero-panel strong {
  display: block;
  margin-bottom: 14px;
  font-size: 1.4rem;
  line-height: 1.35;
}

.hero-panel p,
.info-block p,
.skill-grid p,
.project p,
.project li {
  color: var(--muted);
}

.section {
  padding: 94px 0;
  border-top: 1px solid var(--line);
}

.two-column {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: clamp(28px, 7vw, 86px);
}

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

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

.advantage-block {
  grid-column: 1 / -1;
  background:
    linear-gradient(135deg, rgba(87, 215, 201, 0.12), transparent 46%),
    var(--panel-strong);
}

.advantage-block p {
  max-width: 860px;
  margin-bottom: 12px;
  font-size: 1.02rem;
}

.advantage-block p:last-child {
  margin-bottom: 0;
}

.info-block,
.skill-grid article,
.project {
  padding: 24px;
}

dl {
  display: grid;
  gap: 12px;
  margin: 0;
}

dl div {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(172, 216, 205, 0.1);
}

dt {
  color: var(--muted);
  font-size: 0.88rem;
}

dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
}

.timeline {
  display: grid;
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline li {
  position: relative;
  padding-left: 22px;
}

.timeline li::before {
  position: absolute;
  top: 8px;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--gold);
  content: "";
}

.timeline span,
.project-meta span,
.skill-grid span {
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 700;
}

.timeline strong {
  display: block;
  margin: 5px 0 2px;
}

.timeline p {
  margin-bottom: 0;
}

.skill-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.skill-grid article {
  min-height: 220px;
  background: linear-gradient(180deg, rgba(17, 38, 43, 0.9), rgba(9, 21, 24, 0.82));
}

.skill-grid span {
  display: block;
  margin-bottom: 34px;
}

.project-list {
  display: grid;
  gap: 18px;
}

.project {
  background: var(--panel-strong);
}

.project-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.project-meta a {
  flex: 0 0 auto;
  padding: 6px 10px;
  border: 1px solid rgba(87, 215, 201, 0.35);
  border-radius: 8px;
  color: var(--cyan);
  font-size: 0.86rem;
}

.project ul {
  display: grid;
  gap: 9px;
  margin: 18px 0 0;
  padding-left: 1.15rem;
}

.footer {
  display: flex;
  justify-content: space-between;
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 30px 0 44px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

@media (max-width: 980px) {
  .hero,
  .two-column,
  .profile-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 92px;
  }

  .hero-panel {
    max-width: 520px;
  }

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

@media (max-width: 680px) {
  .site-header {
    min-height: 64px;
  }

  .nav {
    display: none;
  }

  .header-link {
    min-width: 74px;
  }

  .hero {
    padding: 66px 0 52px;
  }

  h1 {
    font-size: clamp(3.5rem, 22vw, 5.3rem);
  }

  .section {
    padding: 68px 0;
  }

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

  .skill-grid article {
    min-height: auto;
  }

  dl div,
  .project-meta,
  .footer {
    grid-template-columns: 1fr;
    align-items: flex-start;
  }

  .footer,
  .project-meta {
    flex-direction: column;
  }
}
