@font-face {
  font-family: "Smiley Sans";
  src: url("smiley-sans-subset.woff2") format("woff2");
  font-display: swap;
}

:root {
  --bg-color: #050505;
  --card-color: rgba(17, 17, 17, 0.78);
  --card-strong: rgba(24, 24, 24, 0.92);
  --card-radius: 36px;
  --entrance-ease: cubic-bezier(0.16, 1, 0.3, 1);
  --text-color: #f5f5f5;
  --muted-color: #9f9f9f;
  --border-color: rgba(255, 255, 255, 0.08);
  --accent-color: #d6d6d6;
  --shadow-color: rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  position: relative;
  margin: 0;
  min-height: 100vh;
  background-color: #0a0a0a;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 40px 40px;
  background-position: center center;
  color: #ffffff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  overflow: hidden;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  isolation: isolate;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    repeating-linear-gradient(
      0deg,
      rgba(255, 255, 255, 0.016) 0,
      rgba(255, 255, 255, 0.016) 1px,
      transparent 1px,
      transparent 3px
    ),
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.012) 0,
      rgba(255, 255, 255, 0.012) 1px,
      transparent 1px,
      transparent 4px
    );
  opacity: 0.025;
  mix-blend-mode: soft-light;
  pointer-events: none;
  z-index: -2;
}

.background-glow {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 0;
  height: 0;
  overflow: visible;
  z-index: -1;
  pointer-events: none;
  will-change: transform;
}

.background-glow::before,
.background-glow::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 50%;
  pointer-events: none;
  mix-blend-mode: screen;
}

.background-glow::before {
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.075) 0%, rgba(255, 255, 255, 0.05) 14%, rgba(255, 255, 255, 0.028) 28%, rgba(255, 255, 255, 0.015) 42%, rgba(255, 255, 255, 0.007) 56%, rgba(255, 255, 255, 0.002) 66%, transparent 78%),
    radial-gradient(circle at 62% 40%, rgba(255, 255, 255, 0.022) 0%, rgba(255, 255, 255, 0.008) 18%, transparent 42%),
    radial-gradient(circle at 38% 64%, rgba(255, 255, 255, 0.018) 0%, transparent 38%);
  width: min(130vmax, 1600px);
  height: min(130vmax, 1600px);
  transform: translate(-50%, -50%);
  opacity: 0.78;
}

.background-glow::after {
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.022) 0%, rgba(255, 255, 255, 0.01) 22%, rgba(255, 255, 255, 0.003) 38%, transparent 56%),
    radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.012) 0%, transparent 30%),
    radial-gradient(circle at 72% 70%, rgba(255, 255, 255, 0.01) 0%, transparent 34%);
  width: min(88vmax, 1080px);
  height: min(88vmax, 1080px);
  transform: translate(-47%, -52%);
  opacity: 0.52;
}

.container {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem;
  overflow: hidden;
  opacity: 0;
  --card-aura-x: 50%;
  --card-aura-y: 50%;
  --card-aura-opacity: 0;
  --card-aura-scale: 0.9;
  transition: opacity 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.container.active {
  opacity: 1;
}

.hero-wall {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 100%;
  max-width: 100vw;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(0.35rem, 1.3vw, 1rem);
  padding: clamp(0.5rem, 1.6vw, 1.4rem) clamp(1rem, 4vw, 3.5rem);
  overflow: visible;
  pointer-events: none;
  z-index: 0;
  transform: translateX(-50%);
}

.hero-wall-line {
  display: block;
  width: max-content;
  max-width: none;
  font-family: "Archivo Black", Impact, Haettenschweiler, "Arial Black", sans-serif;
  font-size: clamp(6.8rem, 20vw, 16.5rem);
  line-height: 0.78;
  letter-spacing: -0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.06);
  text-shadow: 0 0 18px rgba(255, 255, 255, 0.02);
  opacity: 0;
  transform: translateY(28px);
}

.hero-wall-line:nth-child(1) {
  align-self: flex-start;
  text-align: left;
  margin-left: -8%;
  transform: translateY(28px);
}

.hero-wall-line:nth-child(2) {
  align-self: center;
  text-align: center;
  opacity: 0;
  transform: translateY(28px);
}

.hero-wall-line:nth-child(3) {
  align-self: flex-end;
  text-align: right;
  margin-right: -3.5%;
  transform: translateY(28px);
}

.container.active .hero-wall-line {
  animation: heroWallReveal 1s var(--entrance-ease) forwards;
}

.container.active .hero-wall-line:nth-child(2) {
  animation-delay: 0.08s;
}

.container.active .hero-wall-line:nth-child(3) {
  animation-delay: 0.16s;
}

.card-aura {
  position: absolute;
  top: var(--card-aura-y);
  left: var(--card-aura-x);
  width: min(42vw, 560px);
  aspect-ratio: 1;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  opacity: var(--card-aura-opacity);
  transform: translate(-50%, -50%) scale(var(--card-aura-scale));
  will-change: transform, opacity;
  mix-blend-mode: screen;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.065) 0%, rgba(255, 255, 255, 0.04) 14%, rgba(146, 216, 255, 0.04) 24%, rgba(146, 216, 255, 0.02) 34%, rgba(146, 216, 255, 0.008) 46%, transparent 66%),
    radial-gradient(circle at 34% 32%, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.014) 18%, transparent 42%),
    radial-gradient(circle at 70% 68%, rgba(168, 216, 255, 0.035) 0%, transparent 34%);
}

.card-aura::before,
.card-aura::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
}

.card-aura::before {
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.035) 0%, rgba(255, 255, 255, 0.012) 24%, transparent 56%);
  transform: scale(1.18);
  opacity: 0.52;
}

.card-aura::after {
  background:
    radial-gradient(circle at 48% 48%, rgba(255, 255, 255, 0.018) 0%, transparent 40%);
  transform: scale(1.36);
  opacity: 0.34;
}

.profile-card {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 4rem;
  padding: 4rem;
  max-width: 960px;
  border-radius: var(--card-radius);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(64px);
  -webkit-backdrop-filter: blur(64px);
  background: rgba(12, 12, 12, 0.88);
  opacity: 0;
  transform: translateY(34px) scale(0.965) rotateX(9deg);
  filter: blur(12px);
  transform-origin: center center;
  will-change: transform, opacity, filter;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.24);
  transition: border-color 0.55s cubic-bezier(0.22, 1, 0.36, 1), background 0.55s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  overflow: hidden;
  isolation: isolate;
  --pointer-x: 50%;
  --pointer-y: 50%;
  --pointer-glow: 0;
  --glass-shift-x: 0px;
  --glass-shift-y: 0px;
  --pointer-pop: 0.92;
}

.container.active .profile-card {
  animation: cardEntrance 1.1s var(--entrance-ease) forwards;
}

.profile-card::before,
.profile-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
}

.profile-card::before {
  inset: -1px;
  background:
    radial-gradient(circle 180px at var(--pointer-x) var(--pointer-y), rgba(255, 255, 255, 0.13) 0%, rgba(255, 255, 255, 0.072) 16%, rgba(255, 255, 255, 0.026) 30%, rgba(255, 255, 255, 0.008) 42%, transparent 60%),
    radial-gradient(circle 320px at var(--pointer-x) var(--pointer-y), rgba(120, 190, 255, 0.045) 0%, rgba(120, 190, 255, 0.018) 24%, transparent 56%);
  mix-blend-mode: screen;
  opacity: calc(var(--pointer-glow) * 0.72);
  transform: scale(var(--pointer-pop));
}

.profile-card::after {
  inset: 1px;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0.025) 22%, transparent 38%),
    radial-gradient(circle 128px at calc(var(--pointer-x) + 6%) calc(var(--pointer-y) - 10%), rgba(255, 255, 255, 0.09) 0%, rgba(255, 255, 255, 0.03) 24%, transparent 58%);
  mix-blend-mode: screen;
  opacity: calc(var(--pointer-glow) * 0.5);
  transform: translate(var(--glass-shift-x), var(--glass-shift-y)) scale(calc(0.96 + (var(--pointer-pop) - 0.92) * 0.9));
}

.profile-card:hover {
  border-color: rgba(255, 255, 255, 0.16);
  background: var(--card-strong);
  box-shadow: 0 34px 96px rgba(0, 0, 0, 0.34);
}

.avatar-wrapper {
  width: 164px;
  height: 164px;
  margin-bottom: 1.75rem;
  padding: 4px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0.04));
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.4);
  transition: transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
}

.profile-card:hover .avatar-wrapper {
  transform: scale(1.02) rotate(-0.65deg);
}

.profile-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  flex-shrink: 0;
  opacity: 0;
  transform: translateY(18px);
}

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

.avatar-container {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  padding: 5px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent);
  position: relative;
  overflow: hidden;
}

/* 骨架屏闪烁占位 */
.avatar-container::before {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.06) 25%,
    rgba(255, 255, 255, 0.14) 50%,
    rgba(255, 255, 255, 0.06) 75%
  );
  background-size: 200% 100%;
  animation: avatarShimmer 1.4s ease-in-out infinite;
  z-index: 0;
  transition: opacity 0.4s ease;
}

/* 图片加载完成后隐藏骨架屏 */
.avatar-container.loaded::before {
  opacity: 0;
  pointer-events: none;
}

@keyframes avatarShimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.avatar {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: 50%;
  position: relative;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

/* 图片加载完成后淡入 */
.avatar-container.loaded .avatar {
  opacity: 1;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.profile-right {
  text-align: left;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  padding-left: 4rem;
  opacity: 0;
  transform: translateY(22px);
}

.container.active .profile-left {
  animation: sectionEntrance 0.72s var(--entrance-ease) 0.24s forwards;
}

.container.active .profile-right {
  animation: sectionEntrance 0.8s var(--entrance-ease) 0.34s forwards;
}

.hero-tag {
  margin: 0 0 1rem;
  color: rgba(214, 214, 214, 0.9);
  font-family: "SFMono-Regular", "Cascadia Code", "Fira Code", Consolas, monospace;
  font-size: 0.82rem;
  letter-spacing: 0.22rem;
  text-transform: uppercase;
}

.hero-display {
  margin: 0 0 1.9rem;
  font-family: "Archivo Black", Impact, Haettenschweiler, "Arial Black", sans-serif;
  font-size: clamp(4rem, 8.2vw, 6.8rem);
  line-height: 0.88;
  letter-spacing: -0.06em;
  color: #f6f7fb;
}

.hero-display-line {
  display: block;
  position: relative;
  white-space: nowrap;
}

.hero-display-lead {
  margin-bottom: 0.4em;
  font-size: clamp(2.2rem, 4.7vw, 3.8rem);
  letter-spacing: -0.04em;
  text-transform: none;
}

.hero-display-liquid-wrapper {
  display: inline-block;
  position: relative;
  width: fit-content;
  margin-left: 0.01em;
  z-index: 1;
}

.hero-display-liquid-wrapper::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.02em;
  height: 0.55em;
  background: rgba(79, 117, 230, 0.6);
  z-index: -1;
}

.hero-display-liquid {
  display: inline-block;
  position: relative;
  font-family: "Smiley Sans", sans-serif;
  padding: 0.12em 0.08em 0 0.08em;
  letter-spacing: -0.08em;
  color: #c9defe;
  background: linear-gradient(180deg, rgba(178, 209, 255, 1) 0%, rgba(134, 174, 255, 0.98) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-intro {
  margin-bottom: 1.35rem;
}

.hero-roles {
  margin: 1.5rem 0 0;
  font-size: clamp(1rem, 1.5vw, 1.18rem);
  line-height: 1.55;
  color: rgba(244, 246, 250, 0.92);
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.container.active .hero-tag,
.container.active .hero-display {
  animation: titleFloatIn 0.82s var(--entrance-ease) 0.42s both;
}

.container.active .hero-roles {
  animation: titleFloatIn 0.82s var(--entrance-ease) 0.6s both;
}

.manifesto-sub {
  margin: 0;
  max-width: 34rem;
  font-size: 0.96rem;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.75);
  font-weight: 300;
}

.container.active .manifesto-sub {
  animation: titleFloatIn 0.88s var(--entrance-ease) 0.72s both;
}

.eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.72rem;
  letter-spacing: 0.28rem;
  color: var(--muted-color);
}

h1 {
  margin: 0;
  font-size: 3rem;
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.bio {
  margin: 1rem 0 0;
  font-size: 1rem;
  color: #d4d4d4;
}

.intro {
  margin: 1.25rem 0 0;
  max-width: 34rem;
  line-height: 1.85;
  color: var(--muted-color);
}

.links {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  align-items: center;
  margin-top: 2rem;
}

.icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: #a0a0a0;
  transition: all 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  text-decoration: none;
  backdrop-filter: blur(5px);
}

.icon-btn svg {
  width: 20px;
  height: 20px;
  transition: all 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.icon-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5), 0 0 15px rgba(255, 255, 255, 0.05);
}

.btn {
  position: relative;
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 1.4rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-color);
  text-decoration: none;
  overflow: hidden;
  transition: transform 0.28s ease, border-color 0.28s ease, background 0.28s ease;
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.16), transparent);
  transform: translateX(-120%);
  transition: transform 0.5s ease;
}

.btn:hover::before {
  transform: translateX(120%);
}

.btn:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.28);
}

.btn-primary {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.08));
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.03);
}

.reveal-text {
  opacity: 0;
  transform: translateY(16px);
  animation: fadeUp 0.9s ease forwards;
}

.eyebrow.reveal-text {
  animation-delay: 0.1s;
}

h1.reveal-text {
  animation-delay: 0.18s;
}

.bio.reveal-text {
  animation-delay: 0.28s;
}

.intro.reveal-text {
  animation-delay: 0.38s;
}

.links.reveal-text {
  animation-delay: 0.5s;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes cardEntrance {
  0% {
    opacity: 0;
    transform: translateY(34px) scale(0.965) rotateX(9deg);
    filter: blur(12px);
  }

  56% {
    opacity: 1;
    transform: translateY(-4px) scale(1.006) rotateX(0deg);
    filter: blur(0);
  }

  76% {
    opacity: 1;
    transform: translateY(1px) scale(0.999);
    filter: blur(0);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1) rotateX(0deg);
    filter: blur(0);
  }
}

@keyframes sectionEntrance {
  0% {
    opacity: 0;
    transform: translateY(18px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes titleFloatIn {
  0% {
    opacity: 0;
    transform: translateY(12px);
    filter: blur(8px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@keyframes heroWallReveal {
  0% {
    opacity: 0;
    filter: blur(8px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

.site-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  text-align: center;
  padding: 1rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.35);
  z-index: 10;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  transition: color 0.3s ease;
}

.site-footer a:hover {
  color: rgba(255, 255, 255, 0.8);
}

@media (prefers-reduced-motion: reduce) {
  .container,
  .profile-card,
  .reveal-text,
  .hero-wall-line,
  .icon-btn,
  .social-btn,
  .btn {
    transition: none !important;
    animation: none !important;
  }

  .container,
  .profile-card,
  .reveal-text {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
}

@media (max-width: 768px) {
  body {
    overflow: auto;
  }

  .container {
    padding: 1.25rem;
  }

  .profile-card {
    flex-direction: column;
    text-align: center;
    padding: 3rem 2rem;
    gap: 2.5rem;
    margin: 1rem;
    border-radius: 28px;
  }

  .profile-right {
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-left: 0;
    padding-top: 2.5rem;
    text-align: center;
  }

  .hero-greeting {
    font-size: clamp(2.3rem, 11vw, 4rem);
    line-height: 1;
  }

  .hero-tag {
    font-size: 0.72rem;
    letter-spacing: 0.16rem;
  }

  .hero-wall {
    justify-content: flex-start;
    padding-top: 1.4rem;
    width: 100%;
    left: 0;
    transform: none;
  }

  .hero-wall-line {
    font-size: clamp(4.6rem, 24vw, 7.4rem);
    line-height: 0.84;
  }

  .hero-wall-line:nth-child(1) {
    margin-left: -6%;
    transform: translateY(20px);
  }

  .hero-wall-line:nth-child(2) {
    transform: translateY(20px);
  }

  .hero-wall-line:nth-child(3) {
    margin-right: -3%;
    transform: translateY(20px);
  }

  .hero-display {
    margin-bottom: 1.35rem;
    font-size: clamp(3.4rem, 17vw, 5.2rem);
  }

  .hero-display-line {
    white-space: normal;
  }

  .hero-roles {
    margin-top: 1.15rem;
    font-size: 0.98rem;
  }
}
