:root {
  color-scheme: light;
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --page-start: #fbfbfd;
  --page-mid: #f1f7ff;
  --page-end: #ffffff;
  --hero-wash: rgba(229, 243, 255, 0.84);
  --panel: rgba(255, 255, 255, 0.82);
  --line: rgba(29, 29, 31, 0.12);
  --blue: #007aff;
  --blue-dark: #005ecb;
  --accent-soft: #dceeff;
  --accent-tint: rgba(0, 122, 255, 0.11);
  --brand-surface: linear-gradient(145deg, #ffffff, #e5f2ff);
  --brand-ink: #19212f;
  --brand-subtle: rgba(25, 33, 47, 0.64);
  --title-gradient: linear-gradient(100deg, #111827 0%, #1d1d1f 58%, #007aff 100%);
  --button-gradient: linear-gradient(135deg, #007aff, #00a6ff);
  --section-wash: linear-gradient(135deg, #ffffff 0%, #f4faff 52%, #edf6ff 100%);
  --section-ink: #1d1d1f;
  --section-muted: #576070;
  --shadow: 0 28px 90px rgba(29, 29, 31, 0.14);
  --accent-shadow: rgba(0, 122, 255, 0.2);
  --accent-line: rgba(0, 122, 255, 0.22);
  --laptop-edge: linear-gradient(180deg, #fdfefe, #d9e2eb 54%, #aeb8c2);
  --contact-wash: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(237, 247, 255, 0.88));
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
}

:root[data-theme="aurora"] {
  --ink: #1f1d2e;
  --muted: #716c82;
  --page-start: #fffbff;
  --page-mid: #f5f1ff;
  --page-end: #ffffff;
  --hero-wash: rgba(238, 231, 255, 0.86);
  --panel: rgba(255, 255, 255, 0.86);
  --line: rgba(83, 69, 122, 0.14);
  --blue: #7c5cff;
  --blue-dark: #5f43db;
  --accent-soft: #eee8ff;
  --accent-tint: rgba(124, 92, 255, 0.11);
  --brand-surface: linear-gradient(145deg, #ffffff, #eee9ff);
  --brand-ink: #28233d;
  --brand-subtle: rgba(40, 35, 61, 0.64);
  --title-gradient: linear-gradient(100deg, #1f1d2e 0%, #2b2940 55%, #7c5cff 100%);
  --button-gradient: linear-gradient(135deg, #7c5cff, #ff7ab6);
  --section-wash: linear-gradient(135deg, #ffffff 0%, #f8f5ff 52%, #f0edff 100%);
  --section-ink: #1f1d2e;
  --section-muted: #716c82;
  --shadow: 0 28px 86px rgba(83, 69, 122, 0.15);
  --accent-shadow: rgba(124, 92, 255, 0.2);
  --accent-line: rgba(124, 92, 255, 0.24);
  --laptop-edge: linear-gradient(180deg, #ffffff, #ddd7ef 54%, #b7abc9);
  --contact-wash: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(246, 241, 255, 0.88));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, var(--page-start) 0%, var(--page-mid) 44%, var(--page-end) 100%);
  color: var(--ink);
  line-height: 1.65;
  transition: background 220ms ease, color 220ms ease;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 56px;
  padding: 0 40px;
  border-bottom: 1px solid transparent;
  background: rgba(251, 251, 253, 0.64);
  backdrop-filter: blur(22px) saturate(180%);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  transition: border-color 180ms ease, background 180ms ease;
}

.site-header[data-elevated="true"] {
  border-color: var(--line);
  background: rgba(251, 251, 253, 0.9);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
}

.brand-mark {
  display: inline-grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  background: var(--button-gradient);
  color: #fff;
  font-size: 13px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.theme-switcher {
  display: flex;
  gap: 3px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.66);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.theme-switcher button {
  min-height: 30px;
  padding: 5px 10px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.theme-switcher button[aria-pressed="true"] {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 6px 16px rgba(29, 29, 31, 0.08);
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  color: var(--muted);
  font-size: 13px;
}

.site-nav a {
  padding: 18px 0;
  transition: color 160ms ease;
}

.site-nav a:hover,
.site-nav a[aria-current="true"] {
  color: var(--ink);
}

.print-button,
.primary-action,
.secondary-action {
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.print-button {
  padding: 8px 16px;
  background: var(--button-gradient);
  color: #fff;
  font-size: 13px;
}

.print-button:hover,
.primary-action:hover {
  background: var(--blue-dark);
}

main {
  overflow: hidden;
}

.hero {
  position: relative;
  display: grid;
  min-height: min(760px, calc(100vh - 56px));
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.72fr);
  align-items: center;
  gap: clamp(32px, 6vw, 84px);
  padding: clamp(56px, 9vw, 108px) clamp(24px, 7vw, 108px) clamp(42px, 7vw, 72px);
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 253, 0.88) 46%, var(--hero-wash) 100%),
    linear-gradient(90deg, var(--accent-tint), rgba(255, 255, 255, 0.12)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1200' height='900' viewBox='0 0 1200 900'%3E%3Cg fill='none' stroke='%23bfc4cc' stroke-opacity='.28' stroke-width='1'%3E%3Cpath d='M0 720h1200M0 540h1200M0 360h1200M0 180h1200M240 0v900M480 0v900M720 0v900M960 0v900'/%3E%3C/g%3E%3C/svg%3E");
  background-size: cover, cover, 960px 720px;
}

.hero::after {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: min(1120px, calc(100% - 48px));
  height: 1px;
  background: var(--line);
  content: "";
  transform: translateX(-50%);
}

.hero-visual {
  position: relative;
  display: grid;
  min-height: auto;
  place-items: center;
}

.resume-device {
  position: relative;
  width: min(100%, 430px);
  padding: clamp(20px, 4vw, 30px);
  border: 10px solid rgba(255, 255, 255, 0.88);
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.58)),
    linear-gradient(145deg, rgba(13, 19, 31, 0.06), var(--accent-tint));
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(28px) saturate(160%);
  -webkit-backdrop-filter: blur(28px) saturate(160%);
}

.resume-device::after {
  position: absolute;
  right: 8%;
  bottom: -28px;
  left: 8%;
  height: 22px;
  border-radius: 0 0 28px 28px;
  background: var(--laptop-edge);
  box-shadow: 0 24px 46px rgba(29, 29, 31, 0.12);
  content: "";
}

.resume-device::before {
  position: absolute;
  inset: 16px;
  z-index: -1;
  border-radius: 28px;
  background:
    linear-gradient(135deg, var(--accent-tint), transparent 48%),
    linear-gradient(315deg, rgba(255, 255, 255, 0.54), transparent 42%);
  content: "";
}

.device-profile {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: clamp(18px, 4vw, 24px);
  border-radius: 24px;
  background: var(--brand-surface);
  color: var(--brand-ink);
}

.profile-badge {
  display: grid;
  width: 62px;
  height: 62px;
  place-items: center;
  border-radius: 19px;
  background: var(--button-gradient);
  color: #fff;
  font-size: 28px;
  font-weight: 800;
}

.device-profile strong,
.device-profile span {
  display: block;
}

.device-profile strong {
  font-size: 25px;
  line-height: 1.1;
}

.device-profile span {
  color: var(--brand-subtle);
  font-size: 13px;
}

.device-metric {
  margin: 18px 0;
  padding: clamp(22px, 4vw, 28px);
  border-radius: 26px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.78));
  box-shadow: 0 16px 40px rgba(17, 24, 39, 0.08);
}

.device-metric span,
.device-metric strong {
  display: block;
}

.device-metric span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.device-metric strong {
  margin-top: 6px;
  font-size: clamp(52px, 7vw, 78px);
  line-height: 1;
  white-space: nowrap;
}

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

.info-grid div {
  min-height: 88px;
  padding: 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 0 0 1px rgba(29, 29, 31, 0.06);
}

.info-grid span,
.info-grid strong {
  display: block;
}

.info-grid span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.info-grid strong {
  margin-top: 4px;
  font-size: 24px;
  line-height: 1.1;
}

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

.device-tags span {
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  color: #3a3a3c;
  font-size: 13px;
  font-weight: 700;
  box-shadow: inset 0 0 0 1px rgba(29, 29, 31, 0.08);
}

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

.eyebrow {
  margin: 0 0 12px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 20px;
  background: var(--title-gradient);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  font-size: clamp(64px, 11vw, 144px);
  line-height: 0.96;
}

.hero-copy {
  max-width: 780px;
  margin-bottom: 34px;
  color: #424245;
  font-size: clamp(19px, 2.4vw, 28px);
  line-height: 1.42;
}

.hero-actions,
.contact-layout {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.primary-action,
.secondary-action {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
}

.primary-action {
  background: var(--button-gradient);
  color: #fff;
  box-shadow: 0 14px 30px var(--accent-shadow);
}

.secondary-action {
  border: 1px solid var(--accent-line);
  background: rgba(255, 255, 255, 0.76);
  color: var(--blue);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

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

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

.section-heading h2 {
  margin-bottom: 0;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.08;
}

.intro-panel {
  display: grid;
  gap: 16px;
  margin-bottom: 18px;
  padding: clamp(26px, 4vw, 40px);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 28px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.88), rgba(250, 253, 255, 0.68)),
    linear-gradient(90deg, var(--accent-tint), rgba(255, 255, 255, 0.16));
  box-shadow: 0 24px 70px rgba(29, 29, 31, 0.07);
}

.intro-panel p {
  max-width: 980px;
  margin: 0;
  color: #424245;
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.58;
}

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

.metric-card,
.capability-card,
.timeline-content,
.education-panel,
.contact-section {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 10px 38px rgba(29, 29, 31, 0.04);
}

.metric-card {
  position: relative;
  overflow: hidden;
  min-height: 136px;
  padding: 24px;
}

.metric-card::after {
  position: absolute;
  right: -34px;
  bottom: -46px;
  width: 108px;
  height: 108px;
  border-radius: 32px;
  background: linear-gradient(145deg, var(--accent-tint), rgba(255, 255, 255, 0.2));
  content: "";
  transform: rotate(28deg);
}

.metric-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1;
}

.metric-card span,
.muted {
  color: var(--muted);
}

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

.capability-card {
  position: relative;
  padding: 26px;
}

.capability-card::before {
  display: block;
  width: 38px;
  height: 5px;
  margin-bottom: 18px;
  border-radius: 999px;
  background: var(--button-gradient);
  content: "";
}

.capability-card h3,
.timeline-content h3,
.education-panel h3 {
  margin-bottom: 10px;
  font-size: 24px;
  line-height: 1.2;
}

.capability-card p,
.timeline-content p,
.education-panel p,
.contact-section p {
  margin-bottom: 0;
}

.timeline-item {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 28px;
}

.experience-section {
  position: relative;
  width: min(1180px, calc(100% - 48px));
  padding: 84px 44px;
  border-radius: 34px;
  border: 1px solid var(--line);
  background: var(--section-wash);
  color: var(--section-ink);
  box-shadow: 0 28px 80px rgba(29, 29, 31, 0.08);
}

.experience-section .eyebrow,
.experience-section .role {
  color: var(--blue);
}

.experience-section .section-heading h2,
.experience-section .timeline-content h3 {
  color: var(--section-ink);
}

.experience-section .timeline-date {
  color: var(--section-muted);
}

.experience-section .timeline-content {
  border-color: rgba(255, 255, 255, 0.68);
  background: rgba(255, 255, 255, 0.66);
  box-shadow: 0 16px 44px rgba(29, 29, 31, 0.06);
}

.experience-section .work-list {
  color: var(--section-muted);
}

.timeline-date {
  padding-top: 26px;
  color: var(--muted);
  font-weight: 700;
}

.timeline-content {
  padding: 34px;
}

.role {
  color: var(--blue);
  font-size: 15px;
  font-weight: 700;
}

.work-list {
  margin: 20px 0 0;
  padding-left: 20px;
}

.work-list li {
  margin-bottom: 10px;
}

.split-section {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 40px;
  align-items: start;
}

.education-panel {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 28px;
  padding: 34px;
}

.education-summary {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.68;
}

.contact-section {
  width: min(1120px, calc(100% - 48px));
  padding: 42px;
  margin-bottom: 72px;
  background:
    var(--contact-wash),
    linear-gradient(90deg, var(--accent-tint), rgba(255, 255, 255, 0.16));
}

.contact-section .section-heading {
  margin-bottom: 22px;
}

.contact-layout {
  justify-content: space-between;
}

.contact-lead {
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 700;
  line-height: 1.18;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 1100px) {
  .site-header {
    flex-wrap: wrap;
    gap: 10px 18px;
    padding: 12px 24px;
  }

  .site-nav {
    order: 3;
    width: 100%;
    padding: 5px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.58);
  }

  .site-nav a {
    flex: 1;
    min-width: 0;
    padding: 9px 8px;
    text-align: center;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding-top: 56px;
  }

  .hero-visual {
    justify-items: stretch;
  }

  .resume-device {
    width: 100%;
    max-width: 760px;
  }

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

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

@media (max-width: 900px) {
  .site-header {
    padding: 0 20px;
  }

  .capability-grid,
  .timeline-item,
  .split-section,
  .education-panel {
    grid-template-columns: 1fr;
  }

  .timeline-date {
    padding-top: 0;
  }

  .section {
    padding: 68px 0;
  }

  .experience-section {
    padding: 64px 28px;
  }
}

@media (max-width: 560px) {
  .print-button {
    display: none;
  }

  .site-header {
    align-items: flex-start;
    padding: 10px 14px;
  }

  .brand {
    min-height: 36px;
  }

  .header-actions {
    margin-left: auto;
  }

  .theme-switcher button {
    min-height: 28px;
    padding: 4px 8px;
    font-size: 11px;
  }

  .site-nav {
    border-radius: 18px;
  }

  .site-nav a {
    font-size: 12px;
  }

  .hero,
  .section,
  .contact-section {
    width: auto;
  }

  .hero {
    padding-right: 20px;
    padding-left: 20px;
    padding-top: 42px;
  }

  .hero-visual {
    min-height: auto;
  }

  .resume-device {
    width: 100%;
    min-height: auto;
    padding: 18px;
    border-radius: 28px;
    transform: none;
  }

  h1 {
    font-size: clamp(58px, 19vw, 84px);
  }

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

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .primary-action,
  .secondary-action {
    width: 100%;
  }

  .device-profile {
    padding: 18px;
    border-radius: 22px;
  }

  .profile-badge {
    width: 54px;
    height: 54px;
  }

  .device-metric {
    padding: 22px;
  }

  .device-metric strong {
    font-size: clamp(44px, 14vw, 52px);
  }

  .section,
  .contact-section {
    width: calc(100% - 32px);
  }

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

  .metric-card,
  .capability-card,
  .timeline-content,
  .education-panel,
  .contact-section {
    padding: 22px;
  }

  .experience-section {
    padding: 50px 18px;
    border-radius: 26px;
  }

  .site-footer {
    flex-direction: column;
    padding: 24px 20px;
  }
}

@media print {
  .site-header,
  .hero-actions,
  .site-footer,
  .hero-visual {
    display: none;
  }

  body {
    background: #fff;
  }

  .hero {
    display: block;
    min-height: 0;
    padding: 24px 0;
    background: #fff;
  }

  .hero,
  .section,
  .contact-section {
    width: 100%;
  }

  .section,
  .contact-section {
    padding: 20px 0;
    margin-bottom: 0;
  }

  .metric-card,
  .capability-card,
  .timeline-content,
  .education-panel,
  .contact-section {
    border-color: #ddd;
    box-shadow: none;
  }
}
