:root {
  --bg: #020814;
  --bg-deep: #00030b;
  --panel: rgba(8, 18, 34, 0.74);
  --panel-strong: rgba(12, 28, 50, 0.88);
  --line: rgba(125, 220, 255, 0.2);
  --text: #ecfbff;
  --muted: #a8bfd1;
  --cyan: #42d9ff;
  --cyan-soft: #9eeaff;
  --violet: #8c7dff;
  --pink: #ff72d2;
  --lime: #b9ff8c;
  --shadow: 0 24px 80px rgba(0, 217, 255, 0.14);
  --radius: 8px;
  --mx: 50vw;
  --my: 50vh;
}

* {
  box-sizing: border-box;
}

html {
  max-width: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  width: 100%;
  min-height: 100vh;
  margin: 0;
  font-family: "Noto Sans TC", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at var(--mx) var(--my), rgba(66, 217, 255, 0.18), transparent 24rem),
    radial-gradient(circle at 20% 10%, rgba(140, 125, 255, 0.2), transparent 24rem),
    linear-gradient(135deg, var(--bg-deep), var(--bg) 46%, #06111f);
  overflow-x: clip;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(66, 217, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(66, 217, 255, 0.045) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), transparent 86%);
  z-index: -2;
}

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

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

#starfield {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -3;
}

.cursor-glow {
  position: fixed;
  left: var(--mx);
  top: var(--my);
  width: 18rem;
  height: 18rem;
  border-radius: 999px;
  pointer-events: none;
  translate: -50% -50%;
  background: radial-gradient(circle, rgba(66, 217, 255, 0.24), rgba(66, 217, 255, 0.06) 44%, transparent 70%);
  filter: blur(6px);
  mix-blend-mode: screen;
  z-index: 1;
}

.noise-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.18;
  z-index: 2;
  background-image: repeating-radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.14) 0 1px, transparent 1px 4px);
  mix-blend-mode: overlay;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1rem 0;
  backdrop-filter: blur(18px);
}

.brand,
.nav-links {
  display: flex;
  align-items: center;
}

.brand {
  min-height: 2.4rem;
  font-weight: 900;
  letter-spacing: 0;
}

.nav-links {
  gap: 0.35rem;
  padding: 0.3rem;
  border: 1px solid rgba(125, 220, 255, 0.14);
  border-radius: 999px;
  background: rgba(5, 12, 24, 0.62);
}

.nav-links a {
  min-width: 3.5rem;
  padding: 0.56rem 0.8rem;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.92rem;
  text-align: center;
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.nav-links a:hover {
  color: var(--text);
  background: rgba(66, 217, 255, 0.12);
  transform: translateY(-1px);
}

main {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.section-panel,
.intro-card,
.glass-tile,
.timeline-item,
.contact-card,
.host-section {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 42%),
    var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 5rem);
  min-height: calc(100vh - 5rem);
  padding: clamp(2rem, 6vw, 5rem);
  overflow: hidden;
}

.hero::after,
.mbti-section::after,
.contact-section::after {
  content: "";
  position: absolute;
  inset: auto -12% -28% 42%;
  height: 18rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(66, 217, 255, 0.2), transparent 68%);
  pointer-events: none;
}

.eyebrow {
  margin: 0 0 0.85rem;
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

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

h1 {
  max-width: 9ch;
  margin-bottom: 1.2rem;
  font-size: clamp(3.1rem, 10vw, 6.8rem);
  line-height: 0.98;
  font-weight: 900;
  text-shadow: 0 0 32px rgba(66, 217, 255, 0.34);
}

h2 {
  margin-bottom: 1rem;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.12;
}

h3 {
  margin-bottom: 0.7rem;
  color: var(--cyan-soft);
  font-size: 1.15rem;
}

p {
  color: var(--muted);
  line-height: 1.85;
}

.hero-text {
  max-width: 36rem;
  font-size: 1.1rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

.primary-button,
.ghost-button,
.host-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.85rem 1.25rem;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.primary-button {
  color: #00111a;
  background: linear-gradient(135deg, var(--cyan), var(--cyan-soft));
  box-shadow: 0 0 32px rgba(66, 217, 255, 0.4);
}

.ghost-button,
.host-link {
  border: 1px solid var(--line);
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.primary-button:hover,
.ghost-button:hover,
.host-link:hover,
.contact-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 46px rgba(66, 217, 255, 0.24);
}

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

.orbit-wrap {
  position: relative;
  display: grid;
  width: min(78vw, 24rem);
  aspect-ratio: 1;
  place-items: center;
  transform-style: preserve-3d;
}

.avatar {
  width: min(62vw, 17.5rem);
  aspect-ratio: 1;
  border: 2px solid rgba(158, 234, 255, 0.76);
  border-radius: 50%;
  object-fit: cover;
  box-shadow:
    0 0 0 0.75rem rgba(66, 217, 255, 0.07),
    0 0 70px rgba(66, 217, 255, 0.4);
  animation: hoverFloat 5s ease-in-out infinite;
}

.orbit,
.pulse-ring {
  position: absolute;
  inset: 2rem;
  border: 1px solid rgba(66, 217, 255, 0.34);
  border-radius: 50%;
}

.orbit-one {
  animation: spin 12s linear infinite;
}

.orbit-two {
  inset: 0.7rem;
  border-color: rgba(255, 114, 210, 0.28);
  transform: rotateX(62deg) rotateZ(25deg);
  animation: spinReverse 16s linear infinite;
}

.orbit::before,
.orbit::after {
  content: "";
  position: absolute;
  width: 0.72rem;
  height: 0.72rem;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 20px var(--cyan);
}

.orbit::before {
  top: 10%;
  left: 20%;
}

.orbit::after {
  right: 12%;
  bottom: 18%;
  background: var(--pink);
  box-shadow: 0 0 20px var(--pink);
}

.pulse-ring {
  inset: 3.4rem;
  border-width: 2px;
  animation: pulse 2.8s ease-out infinite;
}

.status-chip {
  position: absolute;
  right: 0;
  bottom: 1.6rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  max-width: 16rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--cyan-soft);
  background: rgba(2, 8, 20, 0.84);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.3);
}

.signal-dot {
  width: 0.62rem;
  height: 0.62rem;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 18px var(--lime);
  animation: blink 1.6s ease-in-out infinite;
}

.split-section {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin: 1rem 0;
}

.intro-card,
.mbti-section,
.timeline-section,
.contact-section,
.host-section {
  position: relative;
  padding: clamp(1.4rem, 4vw, 2.5rem);
}

.card-index {
  display: inline-flex;
  margin-bottom: 1.5rem;
  color: var(--cyan);
  font-size: 0.8rem;
  font-weight: 900;
}

.soft-note {
  margin-bottom: 0;
  color: rgba(168, 191, 209, 0.62);
  font-size: 0.82rem;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.tag-cloud span {
  padding: 0.65rem 0.85rem;
  border: 1px solid rgba(125, 220, 255, 0.18);
  border-radius: 999px;
  color: var(--text);
  background: rgba(66, 217, 255, 0.08);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.tag-cloud span:hover {
  transform: translateY(-3px) scale(1.02);
  border-color: rgba(66, 217, 255, 0.52);
  background: rgba(66, 217, 255, 0.16);
}

.mbti-section,
.timeline-section,
.contact-section,
.host-section {
  margin: 1rem 0;
}

.section-heading {
  max-width: 42rem;
  margin-bottom: 1.4rem;
}

.mbti-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.glass-tile {
  min-height: 14rem;
  padding: 1.25rem;
  transition: transform 180ms ease, border-color 180ms ease;
}

.glass-tile:hover,
.intro-card:hover {
  border-color: rgba(66, 217, 255, 0.46);
}

.timeline {
  position: relative;
  display: grid;
  gap: 1rem;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 1.8rem;
  bottom: 1.8rem;
  left: 1.25rem;
  width: 1px;
  background: linear-gradient(var(--cyan), rgba(66, 217, 255, 0.04));
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  gap: 1rem;
  padding: 1.2rem;
}

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

.timeline-dot {
  position: relative;
  z-index: 1;
  width: 0.9rem;
  height: 0.9rem;
  margin: 0.5rem auto 0;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 24px var(--cyan);
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(280px, 1.2fr);
  align-items: center;
  gap: 1rem;
  overflow: hidden;
}

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

.contact-card {
  display: grid;
  gap: 0.55rem;
  min-height: 8.5rem;
  padding: 1.25rem;
  user-select: text;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.contact-card span {
  color: var(--cyan);
  font-weight: 900;
}

.contact-card strong {
  overflow-wrap: anywhere;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
}

.host-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.host-section p {
  margin-bottom: 0;
}

.host-link {
  flex: 0 0 auto;
}

.site-footer {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2rem 0 2.5rem;
  text-align: center;
}

.site-footer p {
  margin: 0;
  font-size: 0.88rem;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms ease, transform 700ms ease;
}

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

.magnetic {
  will-change: transform;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes spinReverse {
  to {
    transform: rotateX(62deg) rotateZ(-335deg);
  }
}

@keyframes pulse {
  0% {
    transform: scale(0.82);
    opacity: 0.7;
  }
  100% {
    transform: scale(1.22);
    opacity: 0;
  }
}

@keyframes hoverFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-14px);
  }
}

@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.45;
  }
}

@media (max-width: 900px) {
  .site-header {
    position: relative;
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    width: 100%;
    justify-content: space-between;
    overflow-x: auto;
  }

  .nav-links a {
    flex: 1 0 auto;
  }

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

  .hero {
    min-height: auto;
  }

  .hero-visual {
    order: -1;
    min-height: 20rem;
  }

  .status-chip {
    right: 50%;
    bottom: 0;
    translate: 50% 0;
  }

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

  .glass-tile {
    min-height: auto;
  }
}

@media (max-width: 560px) {
  main,
  .site-header,
  .site-footer {
    width: min(100% - 1rem, 1120px);
  }

  .hero,
  .intro-card,
  .mbti-section,
  .timeline-section,
  .contact-section,
  .host-section {
    padding: 1.2rem;
  }

  h1 {
    max-width: 8ch;
  }

  .hero-actions {
    display: grid;
  }

  .primary-button,
  .ghost-button,
  .host-link {
    width: 100%;
  }

  .host-section {
    align-items: stretch;
    flex-direction: column;
  }

  .timeline-item {
    grid-template-columns: 1.8rem 1fr;
    padding: 1rem;
  }

  .timeline::before {
    left: 0.9rem;
  }

  .cursor-glow {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
