:root {
  --bg: #f7f8fb;
  --surface: #ffffff;
  --surface-soft: #f1f5f9;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --blue: #0052ff;
  --blue-2: #4d7cff;
  --shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
  --shadow-soft: 0 10px 28px rgba(15, 23, 42, 0.06);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 85% 4%, rgba(0, 82, 255, 0.08), transparent 30%),
    radial-gradient(circle at 0% 36%, rgba(77, 124, 255, 0.08), transparent 28%),
    var(--bg);
  color: var(--ink);
  font-family: Inter, "Microsoft YaHei", system-ui, sans-serif;
  line-height: 1.65;
}

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

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

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  background: rgba(247, 248, 251, 0.86);
  backdrop-filter: blur(18px);
}

.nav {
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand,
.brand-mark,
.button,
.label,
.pill,
.tag {
  display: inline-flex;
  align-items: center;
}

.brand {
  gap: 12px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.brand-mark {
  width: 38px;
  height: 38px;
  justify-content: center;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--blue), var(--blue-2));
  color: #fff;
  box-shadow: 0 10px 24px rgba(0, 82, 255, 0.25);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-links a {
  border-radius: 999px;
  padding: 9px 13px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.nav-links a:hover {
  background: #eef4ff;
  color: var(--blue);
}

.button {
  min-height: 44px;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 13px;
  padding: 11px 17px;
  background: linear-gradient(135deg, var(--blue), var(--blue-2));
  color: #fff;
  box-shadow: 0 10px 22px rgba(0, 82, 255, 0.22);
  font-weight: 800;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(0, 82, 255, 0.28);
}

.button.secondary {
  background: #fff;
  color: var(--ink);
  border-color: var(--line);
  box-shadow: none;
}

.button.secondary:hover {
  border-color: rgba(0, 82, 255, 0.3);
  color: var(--blue);
}

.hero {
  padding: 76px 0 34px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  align-items: stretch;
}

.hero-main,
.panel,
.resume-card,
.timeline-item {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow-soft);
}

.hero-main {
  position: relative;
  overflow: hidden;
  padding: 42px;
}

.hero-main::after {
  content: "";
  position: absolute;
  right: -80px;
  top: -90px;
  width: 260px;
  height: 260px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(0, 82, 255, 0.16), transparent 62%);
}

.label {
  gap: 9px;
  width: max-content;
  border: 1px solid rgba(0, 82, 255, 0.22);
  border-radius: 999px;
  background: rgba(0, 82, 255, 0.06);
  padding: 8px 13px;
  color: var(--blue);
  font-family: "JetBrains Mono", Consolas, monospace;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.label::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--blue);
  animation: pulse 2s ease-in-out infinite;
}

.kicker {
  margin-top: 20px;
  color: var(--muted);
  font-weight: 700;
}

.hero h1 {
  margin-top: 18px;
  font-family: Calistoga, Georgia, serif;
  font-size: clamp(48px, 7vw, 82px);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.gradient-text {
  background: linear-gradient(90deg, var(--blue), var(--blue-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.summary {
  max-width: 700px;
  margin-top: 22px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.85;
}

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

.quick-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 30px;
}

.fact {
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.fact strong {
  display: block;
  font-size: 23px;
  line-height: 1.2;
}

.fact span {
  color: var(--muted);
  font-size: 13px;
}

.panel {
  padding: 24px;
}

.profile-card {
  display: grid;
  gap: 18px;
}

.avatar {
  display: grid;
  width: 78px;
  height: 78px;
  place-items: center;
  border-radius: 24px;
  background: linear-gradient(135deg, var(--blue), var(--blue-2));
  color: #fff;
  box-shadow: 0 18px 36px rgba(0, 82, 255, 0.26);
  font-size: 32px;
  font-weight: 900;
}

.contact-list {
  display: grid;
  gap: 10px;
}

.contact-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  border-radius: 16px;
  background: var(--surface-soft);
  padding: 12px 14px;
}

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

.contact-row strong {
  text-align: right;
  font-size: 14px;
}

.section {
  padding: 36px 0;
}

.section-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
}

.section-title h2 {
  margin-top: 12px;
  font-family: Calistoga, Georgia, serif;
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 400;
  line-height: 1.12;
}

.section-title p {
  max-width: 430px;
  color: var(--muted);
}

.resume-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 22px;
  align-items: start;
}

.resume-stack {
  display: grid;
  gap: 18px;
}

.resume-card {
  padding: 26px;
}

.resume-card h3 {
  font-size: 21px;
  letter-spacing: -0.02em;
}

.resume-card p {
  margin-top: 8px;
  color: var(--muted);
}

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

.timeline-item {
  display: grid;
  grid-template-columns: 108px 1fr;
  gap: 18px;
  padding: 22px;
}

.time-badge {
  display: grid;
  width: 82px;
  height: 82px;
  place-items: center;
  border-radius: 22px;
  background: linear-gradient(135deg, var(--blue), var(--blue-2));
  color: #fff;
  box-shadow: 0 14px 30px rgba(0, 82, 255, 0.22);
  font-family: "JetBrains Mono", Consolas, monospace;
  font-weight: 800;
}

.timeline-meta {
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
}

.timeline-item ul {
  margin: 12px 0 0;
  padding-left: 20px;
  color: var(--muted);
}

.timeline-item li + li {
  margin-top: 6px;
}

.side-stack {
  display: grid;
  gap: 16px;
  position: sticky;
  top: 92px;
}

.tag-list,
.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.tag,
.pill {
  border: 1px solid rgba(0, 82, 255, 0.18);
  border-radius: 999px;
  background: rgba(0, 82, 255, 0.06);
  color: var(--blue);
  padding: 7px 11px;
  font-size: 13px;
  font-weight: 800;
}

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

.skill-card {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  padding: 20px;
  box-shadow: var(--shadow-soft);
}

.skill-card strong {
  display: block;
  font-size: 18px;
}

.skill-card span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
}

.dark-band {
  margin-top: 34px;
  padding: 42px 0;
  background:
    radial-gradient(circle at 82% 20%, rgba(77, 124, 255, 0.18), transparent 34%),
    var(--ink);
  color: #fff;
}

.dark-band .resume-card,
.dark-band .skill-card {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: none;
}

.dark-band p,
.dark-band span,
.dark-band li {
  color: rgba(255, 255, 255, 0.72);
}

.time-card {
  overflow: hidden;
}

.time-display {
  margin-top: 10px;
  font-family: "JetBrains Mono", Consolas, monospace;
  font-size: 38px;
  letter-spacing: -0.06em;
  line-height: 1;
}

.time-meta,
.time-progress-label {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
}

.time-progress {
  height: 9px;
  margin-top: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--surface-soft);
}

.time-progress span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), var(--blue-2));
  transition: width 0.6s ease;
}

.live-dot {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--blue);
  font-family: "JetBrains Mono", Consolas, monospace;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.live-dot::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--blue);
  animation: pulse 1.8s ease-in-out infinite;
}

.footer {
  padding: 34px 0;
  border-top: 1px solid var(--line);
  background: #fff;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.35);
    opacity: 0.55;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

@media (max-width: 900px) {
  .nav-links {
    display: none;
  }

  .nav .button {
    display: none;
  }

  .hero {
    padding-top: 44px;
  }

  .hero-grid,
  .resume-layout,
  .timeline-item,
  .section-title,
  .footer-inner {
    grid-template-columns: 1fr;
    display: grid;
  }

  .hero-main,
  .panel,
  .resume-card,
  .timeline-item {
    border-radius: 22px;
  }

  .hero-main {
    padding: 28px;
  }

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

  .side-stack {
    position: static;
  }

  .actions .button {
    width: 100%;
  }
}
