:root {
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --soft: rgba(255, 255, 255, 0.78);
  --line: rgba(0, 0, 0, 0.08);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.08);
  --accent: #0071e3;
  --accent-soft: #e8f2ff;
  --mint: #d8f5ec;
  --gold: #8b7a54;
  --green: #17372f;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 112px;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: "Inter", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  background:
    radial-gradient(circle at 12% 4%, rgba(255, 255, 255, 0.95), transparent 28%),
    radial-gradient(circle at 86% 8%, rgba(226, 238, 255, 0.72), transparent 24%),
    linear-gradient(180deg, #fbfbfd 0%, #f5f5f7 42%, #ffffff 100%);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(0, 0, 0, 0.025) 1px, transparent 1px);
  background-size: 100% 80px;
  opacity: 0.5;
}

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

img {
  display: block;
  max-width: 100%;
}

.page-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.bubble {
  position: absolute;
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 50%;
  box-shadow: inset 0 0 24px rgba(255, 255, 255, 0.58);
  animation: drift 10s ease-in-out infinite;
}

.bubble-a {
  width: 118px;
  height: 118px;
  left: -42px;
  top: 18%;
}

.bubble-b {
  width: 88px;
  height: 88px;
  right: 4%;
  top: 48%;
  animation-delay: -4s;
}

.bubble-c {
  width: 42px;
  height: 42px;
  right: 18%;
  top: 22%;
  animation-delay: -7s;
}

.bubble-d {
  width: 160px;
  height: 160px;
  left: 4%;
  bottom: -6%;
  animation-delay: -2s;
}

@keyframes drift {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(10px, -18px, 0); }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 14px 7vw 0;
}

.nav-shell {
  min-height: 70px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 12px 22px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.06);
  backdrop-filter: blur(22px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: white;
  font-weight: 800;
  border-radius: 50%;
  background: var(--ink);
}

.brand-text {
  font-weight: 700;
  letter-spacing: 4px;
  font-size: 17px;
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: 6px;
}

.nav-links a,
.resume-link {
  padding: 12px 17px;
  border-radius: 999px;
  color: #4f4f54;
  font-size: 14px;
  font-weight: 700;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover,
.resume-link:hover {
  transform: translateY(-1px);
  background: rgba(0, 0, 0, 0.04);
}

.nav-links a.active {
  color: #fff;
  background: var(--ink);
  box-shadow: 0 10px 22px rgba(32, 33, 31, 0.18);
}

.resume-link {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.7);
}

.menu-button {
  display: none;
}

.section {
  position: relative;
  z-index: 1;
  width: min(1210px, calc(100% - 40px));
  margin: 0 auto;
  padding: 112px 0;
}

.hero {
  min-height: calc(100vh - 88px);
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(360px, 0.86fr);
  align-items: center;
  gap: 56px;
  padding-top: 54px;
}

.hero h1 {
  margin: 0;
  max-width: 700px;
  color: #111113;
  font-size: clamp(42px, 5.2vw, 72px);
  line-height: 1.08;
  letter-spacing: 0;
}

.role {
  width: fit-content;
  margin: 28px 0 18px;
  color: var(--accent);
  font-size: clamp(24px, 2.8vw, 38px);
  font-weight: 850;
  background: linear-gradient(transparent 68%, rgba(0, 113, 227, 0.12) 0);
}

.intro {
  max-width: 690px;
  margin: 0;
  color: #6a625c;
  font-size: 17px;
  line-height: 1.9;
}

.tag-row,
.project-tags,
.experience-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.tag-row span,
.project-tags span,
.experience-tags span {
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: #515154;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
  font-size: 14px;
  font-weight: 700;
}

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

.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 26px;
  border-radius: 16px;
  border: 1px solid var(--line);
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
  color: #fff;
  background: var(--ink);
  box-shadow: 0 18px 32px rgba(32, 33, 31, 0.18);
}

.secondary-button {
  color: #2a2926;
  background: rgba(255, 255, 255, 0.82);
}

.primary-button:hover,
.secondary-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(69, 55, 41, 0.16);
}

.disabled {
  cursor: not-allowed;
  opacity: 0.64;
}

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

.portrait-halo {
  position: absolute;
  width: 82%;
  aspect-ratio: 1;
  right: 4%;
  bottom: 42px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(233, 242, 255, 0.92), rgba(245, 245, 247, 0.75) 58%, rgba(255, 255, 255, 0.1) 72%);
  border: 1px solid rgba(0, 0, 0, 0.04);
  filter: drop-shadow(0 24px 44px rgba(0, 0, 0, 0.08));
}

.hero-visual img {
  position: relative;
  width: min(560px, 100%);
  aspect-ratio: 1.06;
  height: auto;
  object-fit: cover;
  object-position: 42% center;
  border-radius: 34px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.1);
}

.float-card {
  position: absolute;
  right: 4%;
  bottom: 112px;
  padding: 20px 22px;
  border-radius: 18px;
  max-width: 310px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
}

.float-card span {
  color: var(--accent);
  font-weight: 850;
  font-size: 18px;
}

.float-card strong,
.float-card small {
  display: block;
  margin-top: 8px;
}

.float-card small {
  color: #7c7771;
}

.section-heading {
  text-align: center;
  margin-bottom: 52px;
}

.section-heading.align-left {
  text-align: left;
}

.section-heading p {
  margin: 0 0 14px;
  color: #86868b;
  font-weight: 850;
  letter-spacing: 3px;
}

.section-heading h2 {
  margin: 0;
  color: #1d1d1f;
  font-size: clamp(38px, 5vw, 70px);
  line-height: 1.12;
  font-weight: 500;
}

.education-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 34px;
  padding: 40px;
  border-radius: 34px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.62);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.education-grid::after {
  content: "成长路径";
  position: absolute;
  left: 50%;
  top: 50%;
  color: rgba(0, 0, 0, 0.16);
  transform: translate(-50%, -50%);
  font-weight: 700;
  letter-spacing: 4px;
}

.education-card,
.experience-card,
.project-card,
.skill-panel {
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
}

.education-card {
  overflow: hidden;
}

.school-media {
  height: 275px;
  display: grid;
  place-items: center;
  padding: 34px;
  background: #fbfbfd;
}

.school-media img {
  max-height: 214px;
  object-fit: contain;
}

.card-body {
  padding: 28px 32px 34px;
}

.date {
  margin: 0 0 12px;
  color: #7a6a44;
  font-weight: 850;
}

h3 {
  margin: 0;
  color: #282722;
  font-size: 28px;
  line-height: 1.25;
}

.card-body strong,
.role-line {
  display: block;
  margin-top: 12px;
  color: #6b625a;
  font-weight: 850;
}

.card-body p:not(.date),
.experience-content li,
.project-info p,
.skill-panel p {
  color: var(--muted);
  line-height: 1.82;
}

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

.timeline::before {
  content: "";
  position: absolute;
  top: 18px;
  bottom: 18px;
  left: 84px;
  width: 2px;
  background: rgba(0, 0, 0, 0.08);
}

.experience-card {
  position: relative;
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 28px;
  padding: 30px;
}

.company-logo {
  width: 106px;
  height: 106px;
  display: grid;
  place-items: center;
  align-self: start;
  border-radius: 22px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.08);
}

.company-logo img {
  width: 82%;
  max-height: 82%;
  object-fit: contain;
}

.blackrock-logo img {
  width: 88%;
  max-width: 88%;
  max-height: 58%;
  object-fit: contain;
}

.zuru-logo {
  background: #fff;
}

.sfi-logo {
  background: #8d3174;
}

.experience-content ul {
  margin: 20px 0 0;
  padding-left: 20px;
}

.experience-content li + li {
  margin-top: 12px;
}

.experience-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.experience-tags span {
  padding: 8px 12px;
  font-size: 13px;
}

.mini-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  margin-top: 18px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--accent);
  background: #f5f9ff;
  font-size: 14px;
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease;
}

.mini-button:hover {
  transform: translateY(-1px);
  background: var(--accent-soft);
}

.mini-button.dark {
  color: #fff;
  background: var(--ink);
}

.project-card {
  display: grid;
  grid-template-columns: minmax(0, 1.14fr) minmax(360px, 0.86fr);
  gap: 34px;
  padding: 38px;
  overflow: hidden;
}

.project-gallery {
  position: relative;
  min-height: 650px;
}

.gallery-item {
  position: absolute;
  padding: 0;
  border: 0;
  border-radius: 18px;
  background: white;
  box-shadow: 0 20px 48px rgba(55, 74, 87, 0.14);
  cursor: zoom-in;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left top;
  border-radius: 18px;
  border: 10px solid rgba(255, 255, 255, 0.9);
  background: white;
  transition: filter 0.25s ease, transform 0.25s ease;
}

.gallery-item span {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  color: #fff;
  background: rgba(0, 0, 0, 0.36);
  opacity: 0;
  font-size: 22px;
  font-weight: 850;
  transition: opacity 0.25s ease;
}

.gallery-item:hover {
  transform: scale(1.025);
  box-shadow: 0 28px 62px rgba(0, 0, 0, 0.16);
}

.gallery-item:hover img {
  filter: brightness(0.62);
  transform: scale(1.02);
}

.gallery-item:hover span {
  opacity: 1;
}

.main-shot {
  left: 0;
  top: 0;
  width: 92%;
  height: 340px;
}

.workflow-shot {
  right: 4%;
  top: 294px;
  width: 62%;
  height: 250px;
  transform: rotate(2deg);
}

.matrix-shot {
  left: 4%;
  bottom: 0;
  width: 56%;
  height: 230px;
  transform: rotate(-1.5deg);
}

.project-info {
  align-self: center;
}

.project-index {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 28px;
  color: #fff;
  border-radius: 16px;
  background: var(--ink);
  font-weight: 850;
}

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

.skill-panel {
  padding: 28px;
}

.hobby-panel {
  grid-column: 1 / -1;
  background: rgba(245, 245, 247, 0.9);
}

.contact-section {
  width: min(1320px, calc(100% - 40px));
  padding-bottom: 54px;
}

.contact-card {
  min-height: 560px;
  padding: clamp(38px, 8vw, 90px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 36px;
  color: rgba(255, 255, 255, 0.92);
  background:
    radial-gradient(circle at 82% 22%, rgba(65, 120, 255, 0.22), transparent 26%),
    linear-gradient(135deg, #1d1d1f, #2c2c2e 58%, #111113);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.2);
}

.contact-card p:first-child {
  margin: 0 0 24px;
  color: #a6c8ff;
  font-weight: 850;
  letter-spacing: 3px;
}

.contact-card h2 {
  max-width: 840px;
  margin: 0;
  font-size: clamp(46px, 7vw, 96px);
  line-height: 1.12;
  font-weight: 400;
}

.contact-copy {
  max-width: 720px;
  margin: 34px 0 0;
  color: rgba(255, 255, 255, 0.62);
  line-height: 1.9;
  font-size: 18px;
}

.mint {
  color: #18352c;
  background: var(--mint);
}

.contact-card .secondary-button {
  color: rgba(255, 255, 255, 0.82);
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
}

.contact-meta {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 86px;
  color: rgba(255, 255, 255, 0.58);
  font-weight: 700;
}

.scroll-more {
  position: fixed;
  left: 50%;
  bottom: 18px;
  z-index: 10;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 13px 18px 13px 24px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 999px;
  color: #515154;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(18px);
  transform: translateX(-50%);
  cursor: pointer;
  font-weight: 800;
}

.scroll-more span {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  color: #fff;
  border-radius: 50%;
  background: var(--accent);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 28px;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(12px);
}

.lightbox.open {
  display: flex;
}

.lightbox figure {
  width: min(1120px, 96vw);
  max-height: 90vh;
  margin: 0;
}

.lightbox img {
  width: 100%;
  max-height: 82vh;
  object-fit: contain;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.36);
}

.lightbox figcaption {
  margin-top: 14px;
  color: #fff;
  text-align: center;
  font-weight: 800;
}

.lightbox-close {
  position: absolute;
  top: 22px;
  right: 24px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  color: #1d1d1f;
  background: rgba(255, 255, 255, 0.9);
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .site-header {
    padding-inline: 18px;
  }

  .nav-shell {
    grid-template-columns: auto auto;
    gap: 14px;
  }

  .resume-link {
    display: none;
  }

  .menu-button {
    justify-self: end;
    display: grid;
    gap: 5px;
    width: 44px;
    height: 44px;
    place-content: center;
    border: 1px solid rgba(32, 33, 31, 0.12);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.62);
  }

  .menu-button span {
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: var(--ink);
  }

  .nav-links {
    display: none;
    grid-column: 1 / -1;
    justify-content: stretch;
    flex-direction: column;
    padding-top: 12px;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    text-align: center;
  }

  .hero,
  .project-card {
    grid-template-columns: 1fr;
  }

  .hero {
    gap: 28px;
  }

  .hero-visual {
    min-height: 560px;
  }

  .education-grid,
  .skills-layout {
    grid-template-columns: 1fr;
  }

  .education-grid::after {
    display: none;
  }
}

@media (max-width: 680px) {
  html {
    scroll-padding-top: 92px;
  }

  .section {
    width: min(100% - 28px, 1210px);
    padding: 74px 0;
  }

  .brand-text {
    font-size: 14px;
    letter-spacing: 3px;
  }

  .nav-shell {
    min-height: 62px;
    padding: 9px 12px;
    border-radius: 20px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .hero {
    padding-top: 42px;
    gap: 26px;
  }

  .hero h1 {
    max-width: 100%;
    font-size: clamp(34px, 10vw, 44px);
    line-height: 1.12;
  }

  .role {
    font-size: clamp(21px, 6vw, 27px);
  }

  .intro {
    font-size: 15px;
  }

  .hero-actions,
  .project-actions,
  .contact-actions {
    flex-direction: column;
  }

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

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

  .hero-visual img {
    width: 100%;
    aspect-ratio: 1.18;
    height: auto;
    object-fit: cover;
    object-position: 34% center;
    border-radius: 28px;
  }

  .portrait-halo {
    width: 92%;
  }

  .float-card {
    right: 16px;
    bottom: 24px;
    max-width: 176px;
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.86);
  }

  .float-card span {
    font-size: 15px;
  }

  .float-card strong {
    font-size: 14px;
    margin-top: 6px;
  }

  .float-card small {
    font-size: 12px;
    line-height: 1.45;
    margin-top: 5px;
  }

  .education-grid,
  .project-card {
    padding: 18px;
    border-radius: 26px;
  }

  .school-media {
    height: 220px;
  }

  .experience-card {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 22px;
  }

  .timeline::before,
  .experience-card::before {
    display: none;
  }

  .company-logo {
    width: 92px;
    height: 92px;
  }

  h3 {
    font-size: 23px;
  }

  .project-gallery {
    min-height: auto;
    display: grid;
    gap: 16px;
  }

  .gallery-item,
  .main-shot,
  .workflow-shot,
  .matrix-shot {
    position: relative;
    inset: auto;
    width: 100%;
    height: 240px;
    transform: none;
  }

  .workflow-shot,
  .matrix-shot {
    height: 220px;
  }

  .contact-meta {
    flex-direction: column;
    margin-top: 48px;
  }

  .scroll-more {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
