:root {
  --ink: #111827;
  --muted: #5c667a;
  --line: #d7dde8;
  --paper: #f7f9fc;
  --white: #ffffff;
  --teal: #0f766e;
  --blue: #2563eb;
  --coral: #e85d4f;
  --gold: #d99c2b;
  --night: #101624;
  --shadow: 0 24px 70px rgba(32, 43, 67, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Inter", "Noto Sans SC", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

.site-header {
  position: fixed;
  z-index: 20;
  top: 16px;
  left: 50%;
  width: min(1120px, calc(100% - 32px));
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 60px rgba(30, 41, 59, 0.12);
  backdrop-filter: blur(22px);
}

.brand,
nav,
.hero-actions,
.contact-inner,
.section-heading {
  display: flex;
  align-items: center;
}

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

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 12px;
  color: var(--white);
  background: linear-gradient(135deg, var(--teal), var(--blue));
}

nav {
  gap: 4px;
}

nav a {
  padding: 10px 13px;
  border-radius: 999px;
  color: #334155;
  font-size: 14px;
  font-weight: 700;
}

nav a:hover,
.nav-action {
  background: #e9eef7;
}

.section-band {
  position: relative;
  overflow: hidden;
}

.hero {
  min-height: 92vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  align-items: end;
  gap: 44px;
  padding: 148px max(24px, calc((100vw - 1120px) / 2)) 72px;
  color: var(--white);
  background:
    radial-gradient(circle at 22% 18%, rgba(232, 93, 79, 0.52), transparent 28%),
    linear-gradient(135deg, #121a2a 0%, #133a3f 54%, #1e293b 100%);
}

#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.78;
}

.hero-content,
.hero-panel {
  position: relative;
  z-index: 1;
}

.eyebrow,
.section-kicker,
.project-type {
  margin: 0 0 14px;
  color: var(--coral);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #9ee9df;
}

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

h1 {
  max-width: 880px;
  margin-bottom: 24px;
  font-size: clamp(46px, 7vw, 86px);
  line-height: 1.02;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.12;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 12px;
  font-size: 22px;
  line-height: 1.25;
}

.hero-copy {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 20px;
  line-height: 1.75;
}

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

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 900;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.16);
}

.button.primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--coral), var(--gold));
}

.button.secondary {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.26);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: none;
}

.hero-panel {
  display: grid;
  gap: 16px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(18px);
}

.hero-panel div {
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.hero-panel div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.metric-value {
  display: block;
  font-size: 34px;
  font-weight: 900;
}

.metric-label {
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  font-weight: 800;
}

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

.intro {
  padding-top: 64px;
  padding-bottom: 26px;
}

.intro-grid {
  display: grid;
  gap: 28px;
  align-items: start;
}

.intro-grid h2 {
  max-width: 860px;
  font-size: clamp(30px, 2.55vw, 44px);
  line-height: 1.16;
}

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

.intro-points article {
  min-height: 118px;
  margin: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 12px 34px rgba(32, 43, 67, 0.05);
}

.intro-points h3 {
  margin-bottom: 8px;
  color: var(--teal);
  font-size: 18px;
}

.intro-points p {
  margin: 0;
  font-size: 15px;
  line-height: 1.65;
}

.intro-grid p,
.section-heading p,
.timeline p,
.project-content p,
.skills-grid p {
  color: var(--muted);
  line-height: 1.8;
}

.section-heading {
  justify-content: flex-start;
  gap: 30px;
  margin-bottom: 36px;
}

.section-heading p {
  max-width: 430px;
  margin-bottom: 0;
}

.timeline {
  position: relative;
  display: grid;
  gap: 16px;
}

.timeline::before {
  position: absolute;
  top: 36px;
  bottom: 36px;
  left: 216px;
  width: 2px;
  background: linear-gradient(var(--teal), rgba(37, 99, 235, 0.18));
  content: "";
}

.timeline article,
.skills-grid article {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 12px 34px rgba(32, 43, 67, 0.06);
}

.timeline article {
  position: relative;
  display: grid;
  grid-template-columns: 150px 36px minmax(0, 1fr);
  align-items: start;
  gap: 18px;
  min-height: auto;
  padding: 26px 30px;
}

.timeline-meta {
  display: grid;
  gap: 6px;
}

.timeline-meta span {
  color: var(--teal);
  font-weight: 900;
}

.timeline-meta strong {
  color: #0f172a;
  font-size: 28px;
  line-height: 1;
}

.timeline-dot {
  position: relative;
  z-index: 1;
  width: 18px;
  height: 18px;
  margin: 6px auto 0;
  border: 4px solid #d9f5ef;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 8px #ffffff;
}

.timeline-body {
  min-width: 0;
}

.timeline-body h3 {
  margin-bottom: 10px;
}

.timeline p {
  max-width: 760px;
  margin-bottom: 0;
}

.timeline-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.timeline-tags span {
  padding: 7px 10px;
  border-radius: 999px;
  color: #0f766e;
  background: #e7f6f2;
  font-size: 13px;
  font-weight: 900;
}

.work {
  background: #edf2f8;
}

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

.project-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.project-card.dark {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.14);
  background: var(--night);
}

.project-visual {
  min-height: 330px;
  display: grid;
  place-items: center;
  padding: 26px;
}

.medkit-preview {
  background:
    linear-gradient(90deg, rgba(15, 118, 110, 0.1) 1px, transparent 1px),
    linear-gradient(rgba(15, 118, 110, 0.1) 1px, transparent 1px),
    #f3fbfa;
  background-size: 28px 28px;
}

.medkit-showcase {
  display: grid;
  grid-template-columns: minmax(0, 210px) 170px;
  align-items: center;
  gap: 22px;
}

.app-shot {
  margin: 0;
  overflow: hidden;
  border: 8px solid #111827;
  border-radius: 30px;
  background: #ffffff;
  box-shadow: 0 24px 42px rgba(15, 23, 42, 0.22);
}

.app-shot img {
  display: block;
  width: 100%;
  aspect-ratio: 1220 / 2712;
  object-fit: cover;
  object-position: center top;
}

.qr-card {
  margin: 0;
  padding: 14px;
  border: 1px solid #dbe6f2;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 20px 44px rgba(15, 23, 42, 0.12);
}

.qr-card img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  border-radius: 6px;
}

.qr-card figcaption {
  margin-top: 10px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 900;
  text-align: center;
}

.race-preview {
  background:
    radial-gradient(circle at 20% 20%, rgba(37, 99, 235, 0.48), transparent 30%),
    radial-gradient(circle at 80% 72%, rgba(232, 93, 79, 0.42), transparent 28%),
    #101624;
}

.ai-race-shot {
  width: min(100%, 520px);
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: #1f2024;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.24);
}

.ai-race-titlebar {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 34px;
  padding: 0 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  background: #222426;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot.red {
  background: #ff5f57;
}

.dot.yellow {
  background: #febc2e;
}

.dot.green {
  background: #28c840;
}

.ai-race-titlebar strong {
  margin-left: 8px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
}

.ai-race-shot img {
  display: block;
  width: 100%;
  aspect-ratio: 3308 / 1920;
  object-fit: cover;
  object-position: center top;
}

.project-content {
  padding: 30px;
}

.project-card.dark .project-content p,
.project-card.dark li {
  color: rgba(255, 255, 255, 0.68);
}

.project-content ul {
  display: grid;
  gap: 10px;
  margin: 22px 0 0;
  padding-left: 19px;
}

.project-content li {
  color: #475569;
  line-height: 1.65;
}

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

.skills-grid h3 {
  font-size: 20px;
}

.skills-grid p {
  margin-bottom: 0;
}

.contact {
  color: var(--white);
  background: linear-gradient(135deg, #0f766e, #1d4ed8 58%, #111827);
}

.contact-inner {
  justify-content: space-between;
  gap: 28px;
}

.contact .section-kicker {
  color: #9ee9df;
}

.contact h2 {
  max-width: 720px;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 30px 0;
  color: var(--muted);
  font-size: 14px;
}

@media (min-width: 1200px) {
  .site-header,
  .section-wrap,
  footer {
    width: min(1280px, calc(100% - 96px));
  }

  .hero {
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 64px;
    padding-right: max(48px, calc((100vw - 1280px) / 2));
    padding-left: max(48px, calc((100vw - 1280px) / 2));
  }

  .hero-copy {
    max-width: 820px;
  }

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

  .section-heading p {
    max-width: 520px;
  }

  .intro {
    padding-top: 62px;
    padding-bottom: 24px;
  }

  #experience {
    padding-top: 36px;
  }

  .intro-grid {
    gap: 30px;
  }

  .intro-points article {
    min-height: 116px;
  }

  #experience .section-heading h2 {
    font-size: 56px;
  }

  .timeline article {
    grid-template-columns: 170px 42px minmax(0, 1fr);
    gap: 22px;
    padding: 30px 36px;
  }

  .timeline::before {
    left: 249px;
  }

  .timeline p {
    max-width: 880px;
  }

  .work-grid {
    gap: 30px;
  }

  .project-visual {
    min-height: 390px;
  }

  .skills-grid {
    gap: 22px;
  }
}

@media (max-width: 900px) {
  .site-header {
    align-items: flex-start;
    border-radius: 22px;
  }

  nav {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .hero,
  .intro-grid,
  .work-grid,
  .skills-grid {
    grid-template-columns: 1fr;
  }

  .intro-points {
    grid-template-columns: 1fr;
  }

  .intro-points article {
    min-height: auto;
  }

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

  .timeline::before {
    left: 48px;
  }

  .timeline article {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 14px;
  }

  .timeline-meta {
    grid-column: 2;
    grid-row: 1;
    display: flex;
    align-items: baseline;
    gap: 10px;
  }

  .timeline-meta strong {
    font-size: 20px;
  }

  .timeline-dot {
    grid-column: 1;
    grid-row: 1 / span 2;
    margin-top: 4px;
  }

  .timeline-body {
    grid-column: 2;
  }

  .section-heading,
  .contact-inner,
  footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .site-header {
    position: absolute;
    top: 12px;
    width: calc(100% - 24px);
  }

  .brand span:last-child,
  nav a:not(.nav-action) {
    display: none;
  }

  .hero {
    padding: 116px 20px 48px;
  }

  h1 {
    font-size: 42px;
  }

  .hero-copy {
    font-size: 17px;
  }

  .section-wrap {
    width: calc(100% - 32px);
    padding: 68px 0;
  }

  .project-visual {
    min-height: 270px;
  }

  .medkit-showcase {
    grid-template-columns: minmax(0, 170px) 132px;
    gap: 14px;
  }
}

.beian {
  display: flex;
  align-items: center;
}

.beian img {
  width: 16px;
  margin-right: .25rem;
}
