:root {
  --bg: #060b14;
  --bg-deep: #09111d;
  --surface: rgba(10, 17, 30, 0.84);
  --surface-strong: rgba(14, 24, 41, 0.96);
  --surface-soft: rgba(255, 255, 255, 0.035);
  --line: rgba(157, 197, 255, 0.12);
  --line-strong: rgba(157, 197, 255, 0.22);
  --text: #eef4ff;
  --muted: #93a4bf;
  --accent: #6ce2ff;
  --accent-strong: #30c5ff;
  --accent-warm: #d6b379;
  --glow: rgba(108, 226, 255, 0.2);
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;
  --shell: min(1240px, calc(100% - 40px));
  --body: clamp(15px, 0.18vw + 14px, 17px);
  --h1: clamp(3.4rem, 7vw, 6.6rem);
  --h2: clamp(2rem, 3vw, 3.2rem);
  --h3: clamp(1.12rem, 0.9vw + 0.92rem, 1.5rem);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", sans-serif;
  font-size: var(--body);
  line-height: 1.75;
  background:
    radial-gradient(circle at 12% 0%, rgba(48, 197, 255, 0.14), transparent 22%),
    radial-gradient(circle at 100% 12%, rgba(214, 179, 121, 0.1), transparent 16%),
    radial-gradient(circle at 50% 110%, rgba(85, 116, 255, 0.12), transparent 24%),
    linear-gradient(180deg, #050911 0%, #07101b 38%, #050913 100%);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(circle at center, black 12%, transparent 82%);
}

img {
  display: block;
  width: 100%;
  height: auto;
}

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

button,
summary {
  font: inherit;
}

h1,
h2,
h3,
h4,
summary,
.brand-copy strong {
  margin: 0;
  font-family: "Baskerville", "Songti SC", serif;
}

h1 {
  font-size: var(--h1);
  line-height: 0.94;
}

h2 {
  font-size: var(--h2);
  line-height: 1.08;
}

h3,
h4,
summary {
  font-size: var(--h3);
  line-height: 1.25;
}

p,
ul {
  margin: 0;
}

.shell {
  width: var(--shell);
  margin: 0 auto;
}

.page-glow {
  position: fixed;
  inset: -10% auto auto -10%;
  z-index: -2;
  width: 48vw;
  height: 48vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(48, 197, 255, 0.18), transparent 62%);
  filter: blur(20px);
  pointer-events: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(22px);
  background: rgba(5, 11, 20, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  isolation: isolate;
}

.topbar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  min-height: 76px;
  position: relative;
  z-index: 2;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.03);
  color: var(--accent-warm);
  font-size: 1.2rem;
}

.brand-copy {
  display: grid;
  gap: 2px;
}

.brand-copy span,
.section-heading p,
.metric-card p,
.resume-panel-head p,
.resume-summary-card p,
.flow-card p,
.resume-copy p,
.pdf-card-top p,
.qr-panel p,
.footer-meta p,
.hero-text,
.hero-lead,
.activity-card figcaption span {
  color: var(--muted);
}

.brand-copy strong {
  font-size: 1.18rem;
}

.brand-copy span {
  font-size: 0.86rem;
}

.site-nav {
  display: inline-flex;
  justify-self: end;
  gap: 10px;
  align-items: center;
  position: relative;
  z-index: 3;
}

.site-nav a,
.resume-tab,
.track-button,
.button {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.03);
  transition:
    border-color 180ms ease,
    background 180ms ease,
    color 180ms ease,
    transform 180ms ease,
    box-shadow 180ms ease;
}

.site-nav a {
  color: var(--muted);
  position: relative;
  z-index: 4;
  pointer-events: auto;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a.is-active,
.resume-tab:hover,
.resume-tab:focus-visible,
.resume-tab.is-active,
.track-button:hover,
.track-button:focus-visible,
.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.2);
}

.site-nav a.is-active,
.resume-tab.is-active {
  color: var(--text);
  background: linear-gradient(180deg, rgba(48, 197, 255, 0.18), rgba(48, 197, 255, 0.07));
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
}

.menu-toggle span {
  width: 18px;
  height: 1.5px;
  background: currentColor;
}

.section {
  padding: 64px 0;
  scroll-margin-top: 92px;
}

.eyebrow {
  margin-bottom: 14px;
  color: var(--accent);
  font-size: 0.78rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.section-heading {
  display: grid;
  gap: 8px;
  margin-bottom: 24px;
  max-width: 760px;
}

.section-heading-inline {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}

.compact-heading {
  margin-bottom: 18px;
}

.hero {
  padding-top: 34px;
  min-height: calc(100vh - 76px);
  display: flex;
  align-items: center;
}

.hero-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  align-items: center;
}

.hero-copy {
  position: relative;
  z-index: 1;
}

.hero-role {
  margin-top: 18px;
  font-size: clamp(1.16rem, 0.9vw + 1rem, 1.58rem);
  color: rgba(238, 244, 255, 0.96);
}

.hero-lead {
  margin-top: 18px;
  max-width: 42rem;
  font-size: 1.04rem;
}

.hero-text {
  margin-top: 14px;
  max-width: 42rem;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
}

.button-primary {
  color: #071019;
  border-color: rgba(108, 226, 255, 0.26);
  background: linear-gradient(135deg, #7de7ff, #d6b379);
}

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

.hero-ribbon li {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(238, 244, 255, 0.92);
}

.hero-stage {
  display: grid;
  gap: 18px;
}

.hero-spotlight,
.hero-card,
.profile-card,
.metric-card,
.activity-card,
.resume-browser,
.resume-panel,
.resume-summary-card,
.flow-card,
.pdf-card,
.qr-panel,
.qr-card,
.site-footer {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.025));
  box-shadow: var(--shadow);
}

.hero-spotlight::before,
.hero-card::before,
.profile-card::before,
.resume-panel::before,
.pdf-card::before,
.qr-panel::before {
  content: "";
  position: absolute;
  inset: auto -10% 100% auto;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(108, 226, 255, 0.12), transparent 68%);
  pointer-events: none;
}

.hero-spotlight {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(240px, 0.85fr);
  gap: 18px;
  padding: 18px;
  border-radius: var(--radius-xl);
  min-height: 260px;
}

.hero-spotlight-copy {
  display: grid;
  align-content: end;
  gap: 10px;
}

.hero-spotlight-copy p,
.card-label,
.resume-panel-head span,
.resume-badge,
.card-index,
.metric-card span,
.flow-card span {
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero-spotlight-copy strong {
  font-family: "Baskerville", "Songti SC", serif;
  font-size: clamp(1.3rem, 2vw, 2rem);
  line-height: 1.2;
}

.hero-spotlight-copy span {
  color: var(--muted);
}

.hero-spotlight img,
.hero-card img,
.activity-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

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

.hero-card {
  border-radius: var(--radius-lg);
}

.hero-card-info {
  display: grid;
  gap: 12px;
  align-content: center;
  padding: 20px;
  min-height: 190px;
}

.hero-card-info strong {
  font-size: 1.55rem;
  line-height: 1.15;
}

.hero-card-info span,
.hero-card-info a {
  color: var(--muted);
}

.hero-card-media {
  min-height: 190px;
}

.hero-card-wide {
  min-height: 176px;
}

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

.profile-card {
  padding: 22px;
  border-radius: var(--radius-lg);
  transition: transform 220ms ease, border-color 220ms ease;
}

.profile-card:hover,
.profile-card:focus-within {
  transform: translateY(-4px);
  border-color: var(--line-strong);
}

.card-topline {
  width: 64px;
  height: 2px;
  margin-bottom: 18px;
  background: linear-gradient(90deg, var(--accent), transparent);
}

.card-index {
  display: inline-block;
  margin-bottom: 10px;
}

.profile-card h3 {
  margin-bottom: 12px;
}

.profile-card p {
  color: var(--muted);
}

.profile-card ul {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 18px 0 0;
  list-style: none;
}

.profile-card li {
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
  color: rgba(238, 244, 255, 0.9);
}

.metrics-board {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.metric-card {
  padding: 18px;
  border-radius: 20px;
}

.metric-card strong {
  display: block;
  margin: 10px 0 8px;
  font-family: "Baskerville", "Songti SC", serif;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1;
}

.track-controls {
  display: inline-flex;
  gap: 10px;
}

.track-button {
  width: 46px;
  height: 46px;
  padding: 0;
  color: var(--text);
}

.activity-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(300px, 34vw);
  gap: 18px;
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
}

.activity-track::-webkit-scrollbar {
  height: 8px;
}

.activity-track::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
}

.activity-card {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  min-height: 340px;
  border-radius: var(--radius-lg);
  scroll-snap-align: start;
}

.activity-card figcaption {
  display: grid;
  gap: 6px;
  padding: 16px 18px 18px;
}

.activity-card strong {
  font-size: 1rem;
}

.activity-card-poster {
  min-height: 520px;
}

.activity-card-square {
  min-height: 400px;
}

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

.resume-nav {
  display: grid;
  gap: 12px;
  position: sticky;
  top: 96px;
}

.resume-tab {
  display: grid;
  gap: 6px;
  width: 100%;
  padding: 16px 18px;
  color: var(--muted);
  text-align: left;
  cursor: pointer;
  border-radius: 20px;
}

.resume-tab strong {
  font-family: "Baskerville", "Songti SC", serif;
  font-size: 1.08rem;
  color: var(--text);
}

.resume-tab small,
.resume-tab-time {
  color: var(--muted);
}

.resume-tab-time {
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.resume-browser {
  padding: 18px;
  border-radius: var(--radius-xl);
}

.resume-panel {
  display: none;
  padding: 24px;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.018)),
    linear-gradient(135deg, rgba(108, 226, 255, 0.06), transparent 40%);
}

.resume-panel.is-active {
  display: block;
}

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

.resume-panel-head h3 {
  margin: 10px 0 10px;
}

.resume-badge {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  white-space: nowrap;
}

.resume-summary-grid,
.resume-flow,
.qr-grid,
.attachments-layout {
  display: grid;
  gap: 16px;
}

.resume-summary-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 14px;
}

.resume-summary-card,
.flow-card,
.qr-card {
  padding: 18px;
  border-radius: 18px;
}

.resume-summary-card h4,
.flow-card h4 {
  margin-bottom: 10px;
}

.resume-flow {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 14px;
}

.flow-card span {
  display: inline-block;
  margin-bottom: 10px;
}

.resume-detail {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
}

.resume-detail summary {
  cursor: pointer;
  padding: 18px 20px;
  list-style: none;
}

.resume-detail summary::-webkit-details-marker {
  display: none;
}

.resume-detail[open] summary {
  border-bottom: 1px solid var(--line);
}

.resume-copy {
  display: grid;
  gap: 12px;
  padding: 18px 20px 20px;
}

.attachments-layout {
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  align-items: start;
}

.pdf-card,
.qr-panel {
  padding: 22px;
  border-radius: var(--radius-xl);
}

.pdf-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

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

.pdf-frame {
  overflow: hidden;
  min-height: 760px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.02);
}

.pdf-frame iframe {
  display: block;
  width: 100%;
  min-height: 760px;
  border: 0;
}

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

.qr-card {
  display: grid;
  gap: 12px;
  align-items: center;
  justify-items: center;
  text-align: center;
}

.qr-card img {
  width: min(100%, 180px);
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 14px;
  background: #fff;
}

.qr-card-feature {
  grid-column: 1 / -1;
}

.qr-card-feature img {
  width: min(100%, 240px);
}

.site-footer {
  margin: 0 0 28px;
  border-radius: var(--radius-xl);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02)),
    linear-gradient(120deg, rgba(108, 226, 255, 0.08), transparent 36%);
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 20px;
  padding: 24px 0;
}

.footer-copy,
.footer-meta {
  padding: 0 24px;
}

.footer-copy a {
  color: var(--accent);
}

@media (max-width: 1180px) {
  .hero-layout,
  .attachments-layout,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .resume-layout {
    grid-template-columns: 1fr;
  }

  .resume-nav {
    position: static;
    grid-template-columns: repeat(5, minmax(180px, 1fr));
    overflow-x: auto;
    padding-bottom: 6px;
  }

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

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

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

  .pdf-frame,
  .pdf-frame iframe {
    min-height: 680px;
  }
}

@media (max-width: 860px) {
  :root {
    --shell: min(100% - 28px, 1000px);
  }

  .topbar {
    grid-template-columns: auto auto;
    justify-content: space-between;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 10px);
    right: 14px;
    left: 14px;
    display: grid;
    gap: 10px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(6, 11, 20, 0.96);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease, transform 180ms ease;
  }

  .site-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .site-nav a {
    display: block;
    text-align: center;
  }

  .hero-ribbon,
  .hero-stack,
  .profile-grid,
  .resume-summary-grid,
  .resume-flow {
    grid-template-columns: 1fr;
  }

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

  .hero-spotlight {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero {
    min-height: auto;
    display: block;
  }

  .hero-card-tall {
    grid-row: auto;
    min-height: 400px;
  }

  .section-heading-inline,
  .resume-panel-head,
  .pdf-card-top {
    flex-direction: column;
    align-items: start;
  }

  .resume-nav {
    grid-template-columns: repeat(5, minmax(220px, 1fr));
    gap: 10px;
  }

  .resume-tab {
    padding: 14px 16px;
  }

  .activity-track {
    grid-auto-columns: minmax(82vw, 82vw);
  }

  .pdf-card,
  .qr-panel,
  .resume-panel,
  .resume-browser {
    padding: 18px;
  }

  .pdf-frame,
  .pdf-frame iframe {
    min-height: 560px;
  }

  .footer-copy,
  .footer-meta {
    padding: 0 18px;
  }
}

@media (max-width: 560px) {
  .section {
    padding: 52px 0;
  }

  .site-header {
    background: rgba(5, 11, 20, 0.82);
  }

  .topbar {
    min-height: 68px;
  }

  .brand-copy span {
    display: none;
  }

  .hero {
    padding-top: 24px;
  }

  .hero-role {
    margin-top: 14px;
  }

  .hero-actions,
  .pdf-actions {
    width: 100%;
  }

  .button {
    width: 100%;
  }

  .hero-card-wide {
    min-height: 180px;
  }

  .activity-card,
  .activity-card-poster,
  .activity-card-square {
    min-height: auto;
  }

  .activity-track {
    grid-auto-columns: minmax(86vw, 86vw);
  }

  .metrics-board,
  .qr-grid {
    grid-template-columns: 1fr;
  }

  .resume-badge {
    white-space: normal;
  }

  .pdf-frame,
  .pdf-frame iframe {
    min-height: 360px;
  }
}
