:root {
  --bg: #f7f9fc;
  --panel: rgba(255, 255, 255, 0.82);
  --panel-strong: rgba(255, 255, 255, 0.96);
  --text: #172033;
  --muted: #61708a;
  --primary: #2f6df6;
  --primary-2: #16a3b8;
  --accent: #b7791f;
  --border: rgba(23, 32, 51, 0.12);
  --shadow: 0 22px 60px rgba(37, 56, 88, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: "Inter", "Noto Sans SC", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  overflow-x: hidden;
}

body.nav-open {
  overflow: hidden;
}

body::selection {
  background: rgba(124, 92, 255, 0.35);
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.page-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 12%, rgba(47, 109, 246, 0.13), transparent 30%),
    radial-gradient(circle at 84% 10%, rgba(22, 163, 184, 0.12), transparent 28%),
    linear-gradient(145deg, #fbfcff 0%, #f2f6fb 55%, #eef7f8 100%);
}

.grid-layer {
  position: absolute;
  inset: 0;
  opacity: 0.42;
  background-image:
    linear-gradient(rgba(23, 32, 51, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 32, 51, 0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, #000, transparent 86%);
}

.gradient-orb {
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 999px;
  filter: blur(20px);
  opacity: 0.44;
  animation: float 12s ease-in-out infinite;
}

.orb-one {
  left: -120px;
  top: 140px;
  background: #cfe1ff;
}

.orb-two {
  right: -160px;
  bottom: 120px;
  background: #c9f2f6;
  animation-delay: -4s;
}

@keyframes float {
  0%, 100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(40px, -28px, 0) scale(1.06);
  }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(20px);
  background: rgba(255, 255, 255, 0.78);
  border-bottom: 1px solid rgba(23, 32, 51, 0.08);
}

.navbar {
  width: min(1120px, calc(100% - 40px));
  height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow: 0 12px 30px rgba(124, 92, 255, 0.32);
}

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

.nav-links a {
  padding: 10px 14px;
  color: var(--muted);
  font-size: 14px;
  border-radius: 999px;
  transition: 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
  background: rgba(47, 109, 246, 0.08);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.78);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  border-radius: 999px;
  background: var(--text);
}

.section-shell {
  width: min(1060px, calc(100% - 40px));
  margin: 0 auto;
  padding: 58px 0;
}

.about-compact {
  min-height: auto;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(42px, 7vw, 84px);
  padding-top: 76px;
  padding-bottom: 62px;
}

.about-name {
  position: relative;
  padding-left: 24px;
}

.about-name::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  bottom: 4px;
  width: 4px;
  border-radius: 999px;
  background: linear-gradient(to bottom, var(--primary), var(--primary-2));
  box-shadow: 0 0 24px rgba(47, 109, 246, 0.28);
}

.about-name h1 {
  max-width: 520px;
  margin-bottom: 12px;
  font-size: clamp(48px, 6.4vw, 76px);
  line-height: 0.94;
  letter-spacing: -0.06em;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
}

.contact-links a,
.contact-links span,
.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 0 12px;
  color: var(--primary);
  font-size: 13px;
  font-weight: 800;
  border: 1px solid rgba(47, 109, 246, 0.16);
  border-radius: 999px;
  background: rgba(47, 109, 246, 0.06);
}

.contact-icon {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  fill: currentColor;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 24px;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.07em;
}

h1 span,
.section-heading h2 span {
  background: linear-gradient(135deg, #fff, #a9b9ff 38%, #7cf1ff);
  -webkit-background-clip: text;
  color: transparent;
}

.section-heading h2 span {
  display: block;
  margin-top: 12px;
  font-size: clamp(16px, 2vw, 22px);
  letter-spacing: 0;
  line-height: 1.5;
}

.hero-copy {
  width: min(680px, 100%);
  color: var(--muted);
  font-size: 18px;
  line-height: 1.9;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn.primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow: 0 18px 36px rgba(124, 92, 255, 0.28);
}

.btn.secondary {
  color: var(--text);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.72);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 46px;
}

.hero-stats div,
.profile-card,
.about-panel,
.skill-card,
.project-card,
.timeline-item,
.contact-card,
.resume-card,
.news-list,
.publication-card {
  border: 1px solid var(--border);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(247, 250, 255, 0.68));
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero-stats div {
  padding: 18px;
  border-radius: 24px;
}

.hero-stats strong {
  display: block;
  font-size: 28px;
}

.hero-stats span,
.quick-info span,
.project-meta,
.timeline-item span,
.resume-head span {
  color: var(--muted);
  font-size: 13px;
}

.profile-card {
  position: relative;
  padding: 28px;
  border-radius: 34px;
  overflow: hidden;
}

.profile-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 10%, rgba(255, 207, 90, 0.22), transparent 34%);
  pointer-events: none;
}

.avatar-wrap,
.profile-card h2,
.profile-card p,
.quick-info {
  position: relative;
}

.avatar-wrap {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 28px;
}

.avatar {
  width: 112px;
  height: 112px;
  display: grid;
  place-items: center;
  border-radius: 34px;
  font-size: 52px;
  font-weight: 900;
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.95), rgba(40, 213, 255, 0.9));
}

.status-dot {
  padding: 8px 12px;
  color: #bfffdc;
  font-size: 13px;
  font-weight: 800;
  border: 1px solid rgba(122, 255, 174, 0.28);
  border-radius: 999px;
  background: rgba(50, 255, 128, 0.12);
}

.profile-card h2 {
  margin-bottom: 8px;
  font-size: 30px;
}

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

.quick-info {
  display: grid;
  gap: 12px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.quick-info li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.62);
}

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

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

.section-heading h2 {
  margin-bottom: 0;
  font-size: clamp(32px, 4.6vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

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

.about-panel {
  position: relative;
  padding: 34px;
  border-radius: 30px;
  overflow: hidden;
}

.about-panel::after {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  right: -80px;
  top: -90px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(22, 163, 184, 0.14), transparent 70%);
  pointer-events: none;
}

.panel-label {
  display: block;
  margin-bottom: 14px;
  color: var(--primary);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.research-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.research-tags span {
  padding: 7px 11px;
  color: #42526d;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid rgba(47, 109, 246, 0.12);
  border-radius: 999px;
  background: rgba(47, 109, 246, 0.055);
}

.about-panel p,
.skill-card p,
.project-card p,
.timeline-item p,
.contact-card p,
.resume-card p,
.resume-points,
.news-item p,
.publication-card p,
.company-card p {
  color: var(--muted);
  line-height: 1.8;
}

.about-panel > p {
  margin-bottom: 0;
}

.news-list {
  display: grid;
  gap: 12px;
  padding: 22px;
  border-radius: 24px;
}

.news-item {
  display: grid;
  grid-template-columns: 12px 1fr;
  align-items: start;
  gap: 12px;
}

.news-item p {
  margin-bottom: 0;
}

.news-dot {
  width: 9px;
  height: 9px;
  margin-top: 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow: 0 0 0 5px rgba(47, 109, 246, 0.1);
}

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

.company-card {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(247, 250, 255, 0.68));
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.company-card:hover {
  transform: translateY(-4px);
  border-color: rgba(40, 213, 255, 0.45);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 255, 0.82));
}

.company-card h3 {
  margin-bottom: 6px;
  font-size: 24px;
}

.company-card p {
  margin-bottom: 0;
}

.company-logo {
  position: relative;
  flex: 0 0 74px;
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  border-radius: 24px;
  overflow: hidden;
}

.wechat-logo {
  background: linear-gradient(135deg, #19c15f, #0ba84b);
}

.wechat-logo span:first-child,
.wechat-logo span:last-child {
  position: absolute;
  border-radius: 999px;
  background: #fff;
}

.wechat-logo span:first-child {
  width: 42px;
  height: 32px;
  left: 14px;
  top: 17px;
}

.wechat-logo span:last-child {
  width: 36px;
  height: 28px;
  right: 12px;
  bottom: 15px;
  background: rgba(255, 255, 255, 0.86);
}

.kuaishou-logo {
  background: linear-gradient(135deg, #ff7a1a, #ff3d00);
}

.kuaishou-logo span {
  position: relative;
  width: 34px;
  height: 34px;
  border: 7px solid #fff;
  border-radius: 12px;
}

.kuaishou-logo span::before,
.kuaishou-logo span::after {
  content: "";
  position: absolute;
  top: -21px;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: #fff;
}

.kuaishou-logo span::before {
  left: -11px;
}

.kuaishou-logo span::after {
  right: -11px;
}

.about-panel p:last-child,
.skill-card p:last-child,
.timeline-item p:last-child,
.contact-card p:last-child {
  margin-bottom: 0;
}

.resume-list,
.publication-list {
  display: grid;
  gap: 14px;
}

.resume-card,
.publication-card {
  border-radius: 28px;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.resume-card {
  padding: 28px;
}

.resume-card:hover,
.publication-card:hover {
  transform: translateY(-4px);
  border-color: rgba(40, 213, 255, 0.45);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.08));
}

.highlight-card {
  background:
    radial-gradient(circle at 15% 20%, rgba(124, 92, 255, 0.26), transparent 28%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(247, 250, 255, 0.74));
}

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

.resume-head h3,
.publication-card h3 {
  margin-bottom: 8px;
  font-size: 22px;
  line-height: 1.45;
}

.resume-head p,
.publication-card p {
  margin-bottom: 0;
}

.resume-head span {
  flex: 0 0 auto;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
}

.resume-points {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 20px;
}

.resume-points strong,
.publication-card strong {
  color: var(--text);
}

.publication-card {
  display: grid;
  grid-template-columns: 190px 1fr;
  align-items: start;
  gap: 22px;
  padding: 22px;
}

.pub-media {
  display: grid;
  gap: 10px;
}

.pub-media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  display: block;
  object-fit: cover;
  border: 1px solid rgba(23, 32, 51, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 10px 26px rgba(37, 56, 88, 0.1);
}

.pub-venue {
  align-self: start;
  display: inline-flex;
  width: fit-content;
  padding: 9px 13px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.4;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
}

.pub-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.pub-links a {
  padding: 8px 13px;
  color: var(--primary);
  font-size: 13px;
  font-weight: 900;
  border: 1px solid rgba(159, 234, 255, 0.26);
  border-radius: 999px;
  background: rgba(159, 234, 255, 0.08);
}

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

.skill-card,
.project-card {
  padding: 28px;
  border-radius: 28px;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.skill-card:hover,
.project-card:hover {
  transform: translateY(-6px);
  border-color: rgba(124, 92, 255, 0.5);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.08));
}

.card-icon {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 30px;
  color: var(--bg);
  font-weight: 900;
  border-radius: 14px;
  background: var(--accent);
}

.skill-card h3,
.project-card h3,
.timeline-item h3 {
  margin-bottom: 12px;
  font-size: 22px;
}

.project-grid {
  grid-template-columns: 1.2fr 0.9fr 0.9fr;
  margin-top: 34px;
}

.project-card.featured {
  min-height: 330px;
  background:
    radial-gradient(circle at 20% 20%, rgba(47, 109, 246, 0.14), transparent 34%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(247, 250, 255, 0.78));
}

.project-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 78px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.project-card a {
  display: inline-block;
  margin-top: 12px;
  color: #9feaff;
  font-weight: 800;
}

.timeline {
  position: relative;
  display: grid;
  gap: 16px;
  width: min(760px, 100%);
  margin: 0 auto;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 104px;
  top: 24px;
  bottom: 24px;
  width: 1px;
  background: rgba(255, 255, 255, 0.18);
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 34px;
  padding: 24px;
  border-radius: 26px;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: 98px;
  top: 32px;
  width: 13px;
  height: 13px;
  border: 3px solid var(--bg);
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(255, 207, 90, 0.16);
}

.contact-section {
  padding-top: 64px;
}

.contact-card {
  padding: clamp(30px, 6vw, 64px);
  border-radius: 38px;
  text-align: center;
  background:
    radial-gradient(circle at 50% 0%, rgba(22, 163, 184, 0.14), transparent 30%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(247, 250, 255, 0.78));
}

.contact-card h2 {
  width: min(780px, 100%);
  margin: 0 auto 18px;
  font-size: clamp(30px, 5vw, 54px);
  line-height: 1.12;
  letter-spacing: -0.05em;
}

.contact-card p {
  width: min(620px, 100%);
  margin: 0 auto;
}

.contact-actions {
  justify-content: center;
}

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

.site-footer p {
  margin-bottom: 0;
}

.site-footer a {
  color: var(--text);
  font-weight: 800;
}

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

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

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

  .nav-links {
    position: fixed;
    left: 20px;
    right: 20px;
    top: 86px;
    display: grid;
    gap: 8px;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow);
    transform: translateY(-16px);
    opacity: 0;
    pointer-events: none;
    transition: 0.2s ease;
  }

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

  .about-compact,
  .hero,
  .split-section,
  .project-grid {
    grid-template-columns: 1fr;
  }

  .hero,
  .about-compact {
    min-height: auto;
    padding-top: 46px;
  }

  .about-name {
    max-width: 620px;
  }

  .profile-card {
    max-width: 460px;
  }

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

  .project-meta {
    margin-bottom: 42px;
  }

  .publication-card {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .pub-media {
    max-width: 340px;
  }

  .company-grid {
    grid-template-columns: 1fr;
  }

  .resume-head {
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .navbar,
  .section-shell,
  .site-footer {
    width: min(100% - 28px, 1120px);
  }

  .section-shell {
    padding: 52px 0;
  }

  .about-name {
    padding-left: 18px;
  }

  .about-name h1 {
    font-size: clamp(42px, 13vw, 58px);
  }

  .about-panel {
    padding: 26px 22px;
  }

  .contact-links,
  .footer-links {
    justify-content: flex-start;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .quick-info li,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .timeline::before,
  .timeline-item::before {
    display: none;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}
