:root {
  color-scheme: dark;
  --bg: #0b0f18;
  --panel: rgba(20, 24, 34, 0.72);
  --panel-strong: rgba(28, 34, 48, 0.92);
  --text: #f4f7ff;
  --muted: #aeb6c4;
  --accent: #7dd6ff;
  --accent-strong: #9f7bff;
  --line: rgba(255, 255, 255, 0.08);
  --glow: rgba(133, 198, 255, 0.35);
  --shadow: 0 30px 60px rgba(5, 10, 24, 0.6);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Helvetica Neue", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  background: radial-gradient(circle at top, rgba(82, 113, 255, 0.15), transparent 50%),
    radial-gradient(circle at 20% 20%, rgba(125, 214, 255, 0.18), transparent 45%),
    radial-gradient(circle at 70% 10%, rgba(159, 123, 255, 0.18), transparent 45%),
    var(--bg);
  color: var(--text);
  line-height: 1.7;
  letter-spacing: 0.02em;
  min-height: 100vh;
  overflow-x: hidden;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 96px;
  padding: 72px 8vw 60px;
  position: relative;
  z-index: 1;
}

.hero {
  padding-top: 24px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 48px;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}

.hero__content {
  max-width: 720px;
}

.hero__headline {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 8px;
}

.hero__eyebrow {
  color: var(--muted);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  margin-bottom: 18px;
  animation: fadeIn 1.2s ease forwards;
  opacity: 0;
}

.hero__name {
  font-size: clamp(2.8rem, 4vw, 4rem);
  font-weight: 600;
  margin-bottom: 8px;
  animation: fadeIn 1.2s ease 0.2s forwards;
  opacity: 0;
}

.hero__en {
  font-size: clamp(1.3rem, 2.4vw, 2rem);
  color: var(--muted);
  margin-bottom: 24px;
  animation: fadeIn 1.2s ease 0.4s forwards;
  opacity: 0;
}

.hero__slogan {
  font-size: 1.2rem;
  max-width: 560px;
  min-height: 2.4rem;
  animation: fadeIn 1.4s ease 0.6s forwards;
  opacity: 0;
}

.hero__meta {
  margin-top: 24px;
  color: var(--accent);
  font-size: 0.95rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  animation: fadeIn 1.4s ease 0.8s forwards;
  opacity: 0;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 18px;
  border-radius: 999px;
  background: linear-gradient(120deg, rgba(125, 214, 255, 0.12), rgba(159, 123, 255, 0.18));
  border: 1px solid rgba(125, 214, 255, 0.25);
  box-shadow: 0 10px 30px rgba(10, 18, 40, 0.4);
}

.hero__actions {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  animation: fadeIn 1.4s ease 1s forwards;
  opacity: 0;
}

.hero__aside {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 24px;
}

.hero__portrait {
  width: 96px;
  height: 96px;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(125, 214, 255, 0.22);
  box-shadow: 0 18px 36px rgba(8, 16, 36, 0.5);
  position: relative;
  background: rgba(18, 22, 34, 0.7);
  transform-style: preserve-3d;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero__portrait::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(125, 214, 255, 0.25), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.hero__portrait:hover {
  box-shadow: 0 36px 80px rgba(10, 20, 50, 0.7);
}

.hero__portrait:hover::after {
  opacity: 1;
}

.hero__portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.05) contrast(1.05);
}

.hero__card {
  background: linear-gradient(150deg, rgba(26, 32, 48, 0.85), rgba(18, 22, 34, 0.85));
  border-radius: 24px;
  padding: 28px;
  border: 1px solid rgba(125, 214, 255, 0.18);
  box-shadow: 0 24px 50px rgba(9, 16, 34, 0.55);
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero__card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(125, 214, 255, 0.18), transparent 55%);
  opacity: 0.8;
  pointer-events: none;
}

.hero__card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(159, 123, 255, 0.25), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.hero__card:hover {
  box-shadow: 0 32px 70px rgba(10, 20, 45, 0.65);
}

.hero__card:hover::before {
  opacity: 1;
}

.hero__card-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.hero__card-subtitle {
  font-size: 0.95rem;
  color: var(--muted);
  margin-bottom: 24px;
}

.hero__metrics {
  display: grid;
  gap: 16px;
}

.metric {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.metric__value {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--accent);
}

.metric__label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 26px;
  border-radius: 999px;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border 0.3s ease;
  position: relative;
  overflow: hidden;
}

.button--primary {
  background: linear-gradient(120deg, var(--accent), var(--accent-strong));
  color: #0b0f18;
  font-weight: 600;
  box-shadow: 0 18px 36px rgba(125, 214, 255, 0.35);
}

.button--primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.4), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.button--primary:hover::after {
  opacity: 1;
}

.button--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 40px rgba(125, 214, 255, 0.45);
}

.button--ghost {
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--text);
  background: rgba(15, 18, 30, 0.4);
  backdrop-filter: blur(10px);
}

.button--ghost::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 70% 30%, rgba(125, 214, 255, 0.25), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.button--ghost:hover {
  border-color: rgba(125, 214, 255, 0.6);
  transform: translateY(-2px);
}

.button--ghost:hover::after {
  opacity: 1;
}

.section {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 32px;
  border-radius: 20px;
  background: linear-gradient(160deg, rgba(22, 27, 40, 0.82), rgba(20, 26, 38, 0.5));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
}

.section--projects {
  overflow: visible;
}

main {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.section::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--glow-x, 20%) var(--glow-y, 10%), rgba(125, 214, 255, 0.18), transparent 55%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.section > * {
  position: relative;
  z-index: 1;
}

.section:hover::after {
  opacity: 1;
}

.section--split {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  align-items: center;
  gap: 32px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.chip {
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(125, 214, 255, 0.12);
  border: 1px solid rgba(125, 214, 255, 0.2);
  font-size: 0.85rem;
  color: var(--text);
}

.section__title {
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--muted);
}

.section__text {
  max-width: 720px;
  font-size: 1.05rem;
}

.section__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 18px;
}

.card {
  background: linear-gradient(140deg, rgba(28, 34, 48, 0.9), rgba(18, 22, 34, 0.9));
  padding: 20px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 16px 28px rgba(8, 14, 30, 0.5);
  transition: border 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
  transform: perspective(900px) rotateX(var(--rotate-x, 0deg)) rotateY(var(--rotate-y, 0deg)) scale(var(--scale, 1));
  position: relative;
}

.card:hover {
  border-color: rgba(143, 210, 255, 0.3);
  transform: perspective(900px) rotateX(var(--rotate-x, 0deg)) rotateY(var(--rotate-y, 0deg)) scale(var(--scale, 1.03));
  box-shadow: 0 24px 36px rgba(10, 18, 40, 0.6);
}

.card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--glow-x, 30%) var(--glow-y, 20%), rgba(125, 214, 255, 0.25), transparent 60%);
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.card:hover::after {
  opacity: 1;
}

.card__text {
  font-size: 0.98rem;
  color: var(--text);
}

.projects {
  display: grid;
  gap: 20px;
}

.project {
  padding: 22px;
  border-radius: 16px;
  background: var(--panel-strong);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 32px rgba(8, 14, 30, 0.45);
  display: grid;
  gap: 12px;
  transition: transform 0.2s ease, border 0.3s ease, box-shadow 0.3s ease;
  transform: perspective(900px) rotateX(var(--rotate-x, 0deg)) rotateY(var(--rotate-y, 0deg)) scale(var(--scale, 1));
  position: relative;
  overflow: hidden;
}

.project:hover {
  transform: perspective(900px) rotateX(var(--rotate-x, 0deg)) rotateY(var(--rotate-y, 0deg)) scale(var(--scale, 1.02));
  border-color: rgba(125, 214, 255, 0.4);
  box-shadow: 0 26px 40px rgba(12, 22, 48, 0.55);
}

.project::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--glow-x, 30%) var(--glow-y, 20%), rgba(159, 123, 255, 0.2), transparent 60%);
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.project:hover::after {
  opacity: 1;
}

.project__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.project__header h4 {
  font-size: 1.05rem;
}

.project__tag {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(159, 123, 255, 0.15);
  font-size: 0.75rem;
  color: var(--accent);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.project__desc {
  color: var(--muted);
  font-size: 0.95rem;
}

.project__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.8rem;
  color: var(--text);
}

.project__meta span {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(18, 22, 34, 0.7);
}

.timeline {
  display: grid;
  gap: 18px;
}

.timeline__item {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr);
  gap: 16px;
  padding: 16px;
  border-radius: 14px;
  background: rgba(18, 22, 34, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.timeline__time {
  font-size: 0.9rem;
  color: var(--accent);
  font-weight: 600;
}

.timeline__content h4 {
  font-size: 1rem;
  margin-bottom: 6px;
}

.timeline__content p {
  color: var(--muted);
  font-size: 0.92rem;
}

.ghost-button {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text);
  padding: 10px 24px;
  border-radius: 999px;
  font-size: 0.95rem;
  cursor: pointer;
  transition: border 0.3s ease, color 0.3s ease;
  position: relative;
  overflow: hidden;
}

.ghost-button:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.ghost-button::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--glow-x, 50%) var(--glow-y, 50%), rgba(125, 214, 255, 0.35), transparent 60%);
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.ghost-button:hover::after {
  opacity: 1;
}

.contact {
  display: grid;
  gap: 16px;
}

.contact__item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.98rem;
}

.contact__label {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.8rem;
}

.contact a {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  width: fit-content;
  transition: border 0.3s ease;
}

.contact a:hover {
  border-bottom-color: var(--accent);
}

.qr {
  margin-top: 24px;
  display: flex;
  justify-content: flex-start;
}

.qr__card {
  padding: 18px;
  border-radius: 16px;
  background: rgba(18, 22, 34, 0.8);
  border: 1px solid rgba(125, 214, 255, 0.2);
  box-shadow: 0 18px 32px rgba(8, 14, 30, 0.45);
  display: grid;
  gap: 12px;
  width: min(220px, 100%);
}

.qr__label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
}

.qr__placeholder {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(125, 214, 255, 0.18), rgba(159, 123, 255, 0.2));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  font-size: 0.85rem;
  text-align: center;
  padding: 12px;
}

.footer {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  color: var(--muted);
  font-size: 0.85rem;
  text-align: center;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.background {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.orb {
  position: absolute;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  filter: blur(0px);
  opacity: 0.6;
  mix-blend-mode: screen;
  animation: float 12s ease-in-out infinite;
}

.orb--primary {
  top: -120px;
  right: -80px;
  background: radial-gradient(circle, rgba(125, 214, 255, 0.7), transparent 65%);
}

.orb--secondary {
  bottom: -140px;
  left: -120px;
  background: radial-gradient(circle, rgba(159, 123, 255, 0.7), transparent 65%);
  animation-delay: 1.5s;
}

.orb--tertiary {
  top: 40%;
  right: 10%;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(90, 255, 196, 0.45), transparent 65%);
  animation-delay: 3s;
}

.grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(circle at top, rgba(255, 255, 255, 0.6), transparent 65%);
}

.sparkles {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.4) 1px, transparent 1px);
  background-size: 120px 120px;
  opacity: 0.35;
  animation: twinkle 8s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(20px);
  }
}

@keyframes twinkle {
  0%,
  100% {
    opacity: 0.25;
  }
  50% {
    opacity: 0.6;
  }
}

@media (max-width: 720px) {
  .page {
    padding: 48px 6vw;
    gap: 72px;
  }

  .hero {
    padding-bottom: 36px;
  }

  .hero__meta {
    letter-spacing: 0.12em;
  }

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

  .hero__aside {
    justify-content: flex-start;
  }

  .section {
    padding: 24px;
  }

  .hero__actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero__headline {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero__portrait {
    width: 88px;
    height: 88px;
  }

  .section--split {
    grid-template-columns: 1fr;
  }

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