:root {
  --bg: #f5f5f7;
  --bg-deep: #ebebf0;
  --surface: rgba(255, 255, 255, 0.8);
  --surface-strong: #ffffff;
  --surface-dark: #111317;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --line: rgba(29, 29, 31, 0.1);
  --blue: #0071e3;
  --blue-deep: #0062c3;
  --accent: #0a84ff;
  --shadow-soft: 0 10px 30px rgba(16, 24, 40, 0.08);
  --shadow-strong: 0 28px 80px rgba(15, 23, 42, 0.16);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 16px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  line-height: 1.72;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 0% 0%, #fbfcff 0%, transparent 48%),
    radial-gradient(circle at 100% 4%, #eef4ff 0%, transparent 42%),
    linear-gradient(180deg, var(--bg), var(--bg-deep));
  font-family:
    "SF Pro Display",
    "SF Pro Text",
    "PingFang SC",
    "Hiragino Sans GB",
    "Microsoft YaHei",
    "Helvetica Neue",
    sans-serif;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
}

.ambient {
  position: fixed;
  z-index: -1;
  filter: blur(70px);
  opacity: 0.35;
}

.ambient-1 {
  width: 420px;
  height: 420px;
  top: -120px;
  right: -160px;
  background: radial-gradient(circle at 35% 35%, #acd7ff, transparent 72%);
}

.ambient-2 {
  width: 460px;
  height: 460px;
  left: -200px;
  bottom: -200px;
  background: radial-gradient(circle at 55% 55%, #ffd5bd, transparent 72%);
}

.container {
  width: min(1140px, 92vw);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(245, 245, 247, 0.72);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(29, 29, 31, 0.07);
}

.scroll-progress {
  height: 2px;
  width: 100%;
  transform-origin: left center;
  transform: scaleX(0);
  background: linear-gradient(90deg, #8dc2ff, var(--blue));
}

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

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 13px;
  color: #fff;
  background: linear-gradient(160deg, #101216, #2a2f37);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.nav {
  display: flex;
  gap: 20px;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  position: relative;
  transition: color 0.22s ease;
}

.nav a:hover,
.nav a.active {
  color: var(--text);
}

.nav a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 2px;
  border-radius: 999px;
  background: var(--blue);
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid rgba(29, 29, 31, 0.16);
  background: rgba(255, 255, 255, 0.72);
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    background-color 0.2s ease;
}

.lang-switch:hover {
  transform: translateY(-1px);
  border-color: rgba(0, 113, 227, 0.4);
  background: rgba(255, 255, 255, 0.96);
}

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  padding: 0;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 99px;
  background: var(--text);
  margin: 5px 0;
}

.hero {
  padding: 92px 0 56px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 32px;
  align-items: start;
}

.eyebrow {
  margin: 0;
  display: inline-flex;
  align-items: center;
  padding: 8px 13px;
  border-radius: 999px;
  color: #24558a;
  font-size: 12px;
  font-weight: 600;
  background: rgba(0, 113, 227, 0.1);
  border: 1px solid rgba(0, 113, 227, 0.16);
}

h1 {
  margin: 14px 0 8px;
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.subtitle {
  margin: 0;
  color: #35363a;
  font-weight: 600;
  font-size: clamp(15px, 2.3vw, 20px);
}

.intro {
  margin-top: 14px;
  color: var(--muted);
  max-width: 700px;
}

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

.btn {
  appearance: none;
  border: 1px solid transparent;
  text-decoration: none;
  padding: 11px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  transition:
    transform 0.2s ease,
    box-shadow 0.24s ease,
    background-color 0.24s ease,
    border-color 0.24s ease;
}

.btn:hover {
  transform: translateY(-1px) scale(1.01);
}

.btn:active {
  transform: translateY(0) scale(0.99);
}

.btn-primary {
  color: #fff;
  background: linear-gradient(180deg, #0f7bf0, var(--blue));
  box-shadow: 0 8px 22px rgba(0, 113, 227, 0.28);
}

.btn-primary:hover {
  background: linear-gradient(180deg, #2788f1, var(--blue-deep));
}

.btn-ghost {
  color: var(--text);
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(29, 29, 31, 0.12);
  backdrop-filter: blur(12px);
}

.btn-ghost:hover {
  border-color: rgba(29, 29, 31, 0.2);
}

.meta-list {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  color: var(--muted);
}

.meta-list li + li {
  margin-top: 6px;
}

.hero-right {
  display: grid;
  gap: 16px;
}

.portrait-panel {
  position: relative;
  border-radius: var(--radius-xl);
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background:
    radial-gradient(circle at 12% 0%, rgba(255, 122, 0, 0.26), transparent 42%),
    linear-gradient(180deg, #15171d, #0f1115);
  box-shadow: var(--shadow-strong);
  transform-style: preserve-3d;
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.portrait-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.1);
  pointer-events: none;
}

.portrait-trigger {
  width: 100%;
  display: block;
  border: 0;
  padding: 0;
  border-radius: calc(var(--radius-xl) - 6px);
  overflow: hidden;
  background: transparent;
  cursor: zoom-in;
  position: relative;
}

.portrait-trigger img {
  width: 100%;
  display: block;
  border-radius: calc(var(--radius-xl) - 6px);
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.portrait-trigger:hover img {
  transform: scale(1.02);
}

.portrait-chip {
  position: absolute;
  left: 14px;
  bottom: 14px;
  padding: 8px 12px;
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
  letter-spacing: 0.02em;
  background: rgba(17, 17, 19, 0.56);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(8px);
}

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

.stat-grid article {
  border-radius: var(--radius-md);
  padding: 16px;
  background: var(--surface);
  border: 1px solid rgba(29, 29, 31, 0.08);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(8px);
}

.stat-grid h3 {
  margin: 0;
  font-size: 31px;
  letter-spacing: -0.02em;
}

.stat-grid p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.section {
  padding: 36px 0;
}

.section-title h2 {
  margin: 0;
  font-size: clamp(30px, 4.1vw, 44px);
  letter-spacing: -0.03em;
}

.section-title p {
  margin: 8px 0 0;
  color: var(--muted);
}

.about-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 16px;
}

.about-text {
  margin: 0;
  padding: 22px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid rgba(29, 29, 31, 0.09);
  box-shadow: var(--shadow-soft);
}

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

.tag-group span {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  color: #3a4a66;
  background: rgba(131, 176, 255, 0.16);
  border: 1px solid rgba(0, 113, 227, 0.15);
}

.profile-card {
  border: 1px solid rgba(29, 29, 31, 0.09);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-align: left;
  cursor: zoom-in;
  background: var(--surface-strong);
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  padding: 0;
}

.profile-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 38px rgba(16, 24, 40, 0.14);
}

.profile-card img {
  width: 100%;
  display: block;
}

.profile-card-body {
  display: block;
  padding: 14px 16px 16px;
}

.profile-card-body strong {
  display: block;
  font-size: 17px;
}

.profile-card-body small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
}

.timeline {
  margin-top: 16px;
  border-left: 2px solid rgba(0, 113, 227, 0.25);
  padding-left: 20px;
}

.timeline-item {
  margin-bottom: 14px;
  padding: 17px 18px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(29, 29, 31, 0.08);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  position: relative;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -27px;
  top: 24px;
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: var(--blue);
  box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.14);
}

.time {
  font-size: 12px;
  color: var(--muted);
}

.timeline-item h3 {
  margin: 8px 0;
  font-size: 20px;
}

.timeline-item p {
  margin: 4px 0;
  color: var(--muted);
}

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

.card {
  padding: 18px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(29, 29, 31, 0.08);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  transition:
    transform 0.24s ease,
    box-shadow 0.24s ease,
    border-color 0.24s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 113, 227, 0.25);
  box-shadow: 0 16px 34px rgba(16, 24, 40, 0.12);
}

.card h3 {
  margin: 0 0 8px;
  font-size: 20px;
  letter-spacing: -0.01em;
}

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

.columns {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.columns article {
  padding: 18px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(29, 29, 31, 0.08);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.columns h3 {
  margin: 0;
  font-size: 21px;
}

.columns ul {
  margin: 11px 0 0;
  padding-left: 19px;
}

.columns li {
  color: var(--muted);
}

.columns li + li {
  margin-top: 7px;
}

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

.contact-grid a {
  text-decoration: none;
  color: var(--text);
  border-radius: var(--radius-md);
  border: 1px solid rgba(29, 29, 31, 0.08);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  padding: 17px 18px;
  transition:
    transform 0.24s ease,
    box-shadow 0.24s ease,
    border-color 0.24s ease;
}

.contact-grid a:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 113, 227, 0.25);
  box-shadow: 0 16px 34px rgba(16, 24, 40, 0.12);
}

.contact-grid span {
  display: block;
  font-size: 12px;
  color: var(--muted);
}

.contact-grid strong {
  display: block;
  margin-top: 6px;
  font-size: 15px;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(10, 12, 16, 0.76);
  backdrop-filter: blur(10px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.lightbox.open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-content {
  width: min(900px, 94vw);
  transform: translateY(14px) scale(0.97);
  transition: transform 0.3s ease;
}

.lightbox.open .lightbox-content {
  transform: translateY(0) scale(1);
}

.lightbox-content img {
  display: block;
  width: 100%;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.36);
}

.lightbox-close {
  display: inline-block;
  margin: 0 0 10px auto;
  border: 1px solid rgba(255, 255, 255, 0.34);
  background: rgba(17, 20, 27, 0.7);
  color: #fff;
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
}

.site-footer {
  padding: 30px 0 40px;
}

.site-footer p {
  margin: 0;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}

.reveal {
  opacity: 0;
  transform: translateY(22px) scale(0.985);
  transition:
    opacity 0.62s ease,
    transform 0.62s ease;
  transition-delay: var(--reveal-delay, 0ms);
}

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

@media (max-width: 1060px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 70px;
  }

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

@media (max-width: 980px) {
  .header-actions {
    gap: 8px;
  }

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

  .nav {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(245, 245, 247, 0.97);
    border-bottom: 1px solid rgba(29, 29, 31, 0.08);
    display: grid;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
    z-index: 5;
  }

  .nav.open {
    max-height: 380px;
  }

  .nav a {
    padding: 12px 16px;
    border-top: 1px solid rgba(29, 29, 31, 0.06);
  }

  .nav a.active::after {
    display: none;
  }

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

@media (max-width: 700px) {
  h1 {
    font-size: clamp(34px, 14vw, 48px);
  }

  .section {
    padding: 28px 0;
  }

  .portrait-chip {
    font-size: 11px;
    padding: 7px 10px;
  }
}

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