:root {
  --bg: #060910;
  --text: #f3f6ff;
  --muted: #9aa4bf;
  --line: rgba(255, 255, 255, 0.12);
  --accent: #c9ad78;
  --accent-2: #9fc5ff;
  --scroll: 0;
}

* {
  box-sizing: border-box;
}

html {
  background-color: var(--bg);
  background-image: radial-gradient(circle at 26% 6%, #111a2f 0%, var(--bg) 50%, var(--bg) 100%);
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  color: var(--text);
  /* 透明：避免盖住 z-index:0 的星空层（负 z-index 会沉到 body 背景下面） */
  background: transparent;
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

.container {
  width: min(1120px, 90%);
  margin: 0 auto;
}

.sky-layer {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  /* 高于视口：滚动视差上移时底部不会露出与 body 不同色的空隙 */
  height: calc(100vh + 40vh);
  min-height: calc(100vh + 40vh);
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background-color: var(--bg);
  background-image: radial-gradient(circle at 26% 6%, #111a2f 0%, var(--bg) 50%, var(--bg) 100%);
  transform: translateY(calc(var(--scroll) * -10vh));
  transition: transform 0.15s linear;
}

main,
.site-footer {
  position: relative;
  z-index: 1;
}

main {
  min-height: 200vh;
}

.stars {
  position: absolute;
  top: -40%;
  left: -40%;
  width: 180%;
  height: 180%;
  will-change: transform;
}

.star {
  position: absolute;
  width: 2px;
  height: 2px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 6px rgba(174, 210, 255, 0.8);
  animation: twinkle 4s ease-in-out infinite;
}

.nebula {
  position: absolute;
  width: 40vw;
  height: 40vw;
  border-radius: 50%;
  filter: blur(42px);
  opacity: 0.2;
}

.nebula-a {
  top: -14vw;
  left: -12vw;
  background: radial-gradient(circle, rgba(114, 172, 255, 0.42), transparent 68%);
}

.nebula-b {
  bottom: -16vw;
  right: -14vw;
  background: radial-gradient(circle, rgba(206, 167, 99, 0.38), transparent 68%);
}

.comet {
  position: absolute;
  top: -10vh;
  left: -20vw;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(242, 248, 255, 1), rgba(176, 212, 255, 0.88) 60%, rgba(176, 212, 255, 0.05) 100%);
  filter: drop-shadow(0 0 10px rgba(180, 215, 255, 0.9));
  --tail-speed: 0.95s;
  transform: rotate(28deg);
}

.comet::before {
  content: "";
  position: absolute;
  top: 50%;
  right: 100%;
  width: 120px;
  height: 1px;
  transform: translateY(-50%);
  background: linear-gradient(90deg, rgba(170, 208, 255, 0), rgba(170, 208, 255, 0.75));
  opacity: 0.85;
  transform-origin: right center;
  animation: tailPulse var(--tail-speed) ease-in-out infinite;
}

.comet::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 1px solid rgba(175, 212, 255, 0.28);
  opacity: 0.7;
}

.comet-a {
  --tail-speed: 0.95s;
  animation: meteorSweepA 9.5s linear infinite;
}

.comet-b {
  top: -18vh;
  left: -35vw;
  width: 8px;
  height: 8px;
  filter: drop-shadow(0 0 8px rgba(220, 191, 130, 0.9));
  --tail-speed: 0.78s;
  transform: rotate(24deg);
  animation: meteorSweepB 12.5s linear infinite -4.5s;
}

.comet-b::before {
  width: 90px;
  background: linear-gradient(90deg, rgba(201, 173, 120, 0), rgba(201, 173, 120, 0.72));
  animation-delay: -0.2s;
}

.comet-b::after {
  border-color: rgba(209, 178, 116, 0.24);
}

.site-header {
  position: sticky;
  top: 0;
  backdrop-filter: blur(10px);
  background: rgba(7, 11, 20, 0.55);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  z-index: 10;
}

.nav-wrap {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--text);
  text-decoration: none;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.brand-logo {
  display: block;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
}

.brand-text {
  line-height: 1.3;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 116px;
  min-height: 42px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 500;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  transition: transform 0.2s ease, background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

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

.btn-outline {
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #d7e0f2;
}

.btn-solid {
  background: linear-gradient(120deg, #d7bd8d, #b99657);
  color: #1d1608;
}

.scene {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.scene-hero {
  max-width: 700px;
  padding-top: 0;
  padding-bottom: 10vh;
  margin-top: -4vh;
}

.hero-tag {
  margin: 0;
  color: var(--accent-2);
  letter-spacing: 0.14em;
  font-size: 0.76rem;
}

.scene-hero h1 {
  margin: 12px 0 14px;
  font-size: clamp(2.8rem, 9vw, 6.2rem);
  line-height: 1.02;
  font-weight: 300;
  letter-spacing: 0.08em;
}

.hero-sub {
  margin: 0;
  max-width: 360px;
  color: var(--muted);
  font-size: 0.96rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

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

.scene-end {
  justify-content: flex-end;
  padding-bottom: 18vh;
}

.scene-quote {
  margin: 0;
  max-width: 28em;
}

.scene-quote p {
  margin: 0;
  font-size: clamp(1.05rem, 2.2vw, 1.45rem);
  font-weight: 300;
  line-height: 1.75;
  color: #d2daf0;
  letter-spacing: 0.06em;
}

.scene-quote cite {
  display: block;
  margin-top: 1.1em;
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 300;
  letter-spacing: 0.2em;
  color: #7c889f;
}

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

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.footer-brand h3 {
  margin: 0;
  font-weight: 300;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  color: var(--muted);
}

.footer-contact {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: clamp(28px, 6vw, 72px);
}

.contact-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: min(100%, 200px);
}

.contact-label {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  color: #6b768f;
}

.contact-value {
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--text);
  letter-spacing: 0.04em;
}

.contact-link {
  font-size: 0.9rem;
  font-weight: 300;
  color: #c5cde3;
  text-decoration: none;
  letter-spacing: 0.02em;
  word-break: break-all;
  width: fit-content;
  max-width: 100%;
  transition: color 0.25s ease, opacity 0.25s ease;
}

.contact-link:hover {
  color: var(--text);
  opacity: 1;
}

.copyright {
  text-align: left;
  margin: 0;
  color: #6f7a92;
  font-size: 0.72rem;
  font-weight: 300;
  letter-spacing: 0.14em;
}

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

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

@keyframes twinkle {
  0%,
  100% {
    opacity: 0.22;
  }
  50% {
    opacity: 1;
  }
}

@keyframes tailPulse {
  0% {
    opacity: 0.35;
    transform: translateY(-50%) scaleX(0.5);
    filter: blur(0.2px);
  }
  35% {
    opacity: 0.95;
    transform: translateY(-50%) scaleX(1.08);
    filter: blur(0);
  }
  65% {
    opacity: 0.72;
    transform: translateY(-50%) scaleX(0.82);
    filter: blur(0.1px);
  }
  100% {
    opacity: 0.4;
    transform: translateY(-50%) scaleX(0.56);
    filter: blur(0.2px);
  }
}

@keyframes meteorSweepA {
  0% {
    opacity: 0;
    transform: translate3d(0, 0, 0) rotate(28deg);
  }
  8% {
    opacity: 1;
  }
  78% {
    opacity: 1;
    transform: translate3d(145vw, 105vh, 0) rotate(28deg);
  }
  100% {
    opacity: 0;
    transform: translate3d(185vw, 130vh, 0) rotate(28deg);
  }
}

@keyframes meteorSweepB {
  0% {
    opacity: 0;
    transform: translate3d(0, 0, 0) rotate(24deg);
  }
  10% {
    opacity: 0.95;
  }
  80% {
    opacity: 0.95;
    transform: translate3d(150vw, 112vh, 0) rotate(24deg);
  }
  100% {
    opacity: 0;
    transform: translate3d(188vw, 136vh, 0) rotate(24deg);
  }
}

@media (max-width: 860px) {
  .scene {
    min-height: 100vh;
    padding: 16vh 0 10vh;
  }

  .scene-hero h1 {
    letter-spacing: 0.04em;
  }

  .footer-contact {
    flex-direction: column;
    gap: 24px;
  }
}

@media (max-width: 640px) {
  .container {
    width: 92%;
  }

  .nav-wrap {
    min-height: 72px;
    gap: 12px;
  }

  .brand {
    gap: 10px;
    min-width: 0;
  }

  .brand-logo {
    width: 30px;
    height: 30px;
  }

  .brand-text {
    font-size: 0.82rem;
    letter-spacing: 0.06em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 56vw;
  }

  .btn-outline {
    min-width: 88px;
    min-height: 36px;
    font-size: 0.72rem;
    letter-spacing: 0.06em;
  }

  .scene {
    min-height: 100vh;
    padding: 14vh 0 8vh;
  }

  .scene-hero {
    padding-bottom: 6vh;
    margin-top: -10vh;
  }

  .scene-hero h1 {
    margin: 10px 0 12px;
    font-size: clamp(2.2rem, 14vw, 3.2rem);
    letter-spacing: 0.02em;
  }

  .hero-sub {
    max-width: 100%;
    font-size: 0.84rem;
    letter-spacing: 0.18em;
  }

  .scene-end {
    padding-bottom: 12vh;
  }

  .scene-quote p {
    font-size: 1rem;
    line-height: 1.85;
    letter-spacing: 0.04em;
  }

  .scene-quote cite {
    margin-top: 1.2em;
    font-size: 0.74rem;
    letter-spacing: 0.14em;
  }

  .site-footer {
    padding: 32px 0 24px;
  }

  .footer-inner {
    gap: 28px;
  }

  .footer-brand h3 {
    letter-spacing: 0.1em;
    font-size: 0.74rem;
  }
}

@media (max-width: 420px) {
  .scene-hero {
    margin-top: -12vh;
  }

  .brand-text {
    max-width: 52vw;
    font-size: 0.78rem;
  }

  .btn-outline {
    min-width: 78px;
    min-height: 34px;
    font-size: 0.68rem;
  }

  .hero-tag {
    font-size: 0.68rem;
    letter-spacing: 0.1em;
  }

  .scene-hero h1 {
    font-size: clamp(2rem, 16vw, 2.9rem);
  }

  .hero-sub {
    letter-spacing: 0.14em;
  }

  .contact-label {
    font-size: 0.66rem;
    letter-spacing: 0.14em;
  }

  .contact-value,
  .contact-link {
    font-size: 0.86rem;
  }
}
