/* 梦核门户 — 参考：拱门望景 / 悬浮珠体 / 胶片颗粒 / 极简奢华
 *
 * 字体（均自托管于 /static/portal/fonts/）：
 * - 英文：Ableton Futura 气质 → Jost（可变字体，可用字重范围）
 * - 中文：方正准圆 FZY3JW（单字重文件；须为 400/500/600/700 各声明一条，勿写 100–900）
 */
@font-face {
  font-family: "Jost";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/static/portal/fonts/jost-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Jost";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/static/portal/fonts/jost-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "DreamcoreZH";
  src:
    url("/static/portal/fonts/FZY3JW.woff2") format("woff2"),
    url("/static/portal/fonts/FZY3JW.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "DreamcoreZH";
  src:
    url("/static/portal/fonts/FZY3JW.woff2") format("woff2"),
    url("/static/portal/fonts/FZY3JW.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "DreamcoreZH";
  src:
    url("/static/portal/fonts/FZY3JW.woff2") format("woff2"),
    url("/static/portal/fonts/FZY3JW.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "DreamcoreZH";
  src:
    url("/static/portal/fonts/FZY3JW.woff2") format("woff2"),
    url("/static/portal/fonts/FZY3JW.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #0b1018;
  --navy: #121826;
  --ivory: #f7f3ec;
  --mist: rgba(247, 243, 236, 0.72);
  --line: rgba(247, 243, 236, 0.28);
  --font-en: "Jost", "Futura PT", Futura, "Century Gothic", sans-serif;
  --font-zh: "DreamcoreZH", "PingFang SC", "Microsoft YaHei", sans-serif;
  /* 拉丁走 Jost；中文 Jost 无字形再落到 DreamcoreZH */
  --font-ui: var(--font-en), var(--font-zh);
  --font-display: var(--font-ui);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--ink);
  color: var(--ivory);
  font-family: var(--font-ui);
  font-feature-settings: "ss01" 1; /* Jost 单层 a，更接近 Futura */
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

.frame {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-shot {
  position: absolute;
  inset: 0;
  background:
    url("/static/portal/dreamcore-hero.jpg") center / cover no-repeat;
  transform: scale(1.04);
  will-change: transform;
  animation: kenburns 28s ease-in-out infinite alternate;
}

.veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(11, 16, 24, 0.62) 0%, rgba(11, 16, 24, 0.22) 26%, rgba(11, 16, 24, 0.28) 52%, rgba(11, 16, 24, 0.72) 100%),
    radial-gradient(ellipse at 50% 46%, rgba(11, 16, 24, 0.28) 0%, rgba(11, 16, 24, 0.08) 28%, rgba(11, 16, 24, 0.45) 100%);
}

.grain {
  position: absolute;
  inset: 0;
  opacity: 0.28;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
  background-size: 160px 160px;
}

.orb {
  position: absolute;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 28%, rgba(255, 255, 255, 0.95), rgba(230, 236, 240, 0.55) 38%, rgba(160, 180, 190, 0.25) 62%, transparent 72%);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
  filter: blur(0.2px);
  opacity: 0.78;
}

.orb-1 {
  width: min(14vw, 150px);
  height: min(14vw, 150px);
  top: 16%;
  left: 14%;
  animation: float-a 16s ease-in-out infinite;
}

.orb-2 {
  width: min(9vw, 96px);
  height: min(9vw, 96px);
  top: 22%;
  right: 18%;
  opacity: 0.7;
  animation: float-b 19s ease-in-out infinite;
}

.orb-3 {
  width: min(6vw, 64px);
  height: min(6vw, 64px);
  bottom: 28%;
  right: 28%;
  opacity: 0.55;
  animation: float-a 22s ease-in-out infinite reverse;
}

.bubble {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.35), transparent 55%);
  box-shadow: inset -4px -6px 12px rgba(255, 180, 200, 0.12);
  animation: bubble-rise linear infinite;
}

.b1 { width: 28px; height: 28px; left: 22%; bottom: 8%; animation-duration: 18s; }
.b2 { width: 16px; height: 16px; left: 48%; bottom: 4%; animation-duration: 23s; animation-delay: -6s; }
.b3 { width: 40px; height: 40px; left: 68%; bottom: 10%; animation-duration: 26s; animation-delay: -11s; }
.b4 { width: 12px; height: 12px; left: 36%; bottom: 2%; animation-duration: 15s; animation-delay: -3s; }

.nav,
.center,
.foot {
  position: relative;
  z-index: 1;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.35rem clamp(1.25rem, 4vw, 3rem);
  background: linear-gradient(180deg, rgba(11, 16, 24, 0.72), transparent);
}

.nav-brand {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
}

.nav-zh {
  font-family: var(--font-zh);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.38em;
}

.nav-en {
  font-size: 0.62rem;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: rgba(247, 243, 236, 0.55);
}

.nav-enter {
  color: var(--ivory);
  text-decoration: none;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  padding: 0.7rem 1.15rem;
  border: 1px solid var(--line);
  background: rgba(247, 243, 236, 0.06);
  backdrop-filter: blur(10px);
  transition: background 0.25s ease, border-color 0.25s ease;
}

.nav-enter:hover {
  background: rgba(247, 243, 236, 0.14);
  border-color: rgba(247, 243, 236, 0.5);
}

.center {
  min-height: calc(100vh - 9rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 1.25rem 4rem;
}

.kicker {
  margin: 0;
  font-family: var(--font-zh);
  font-size: 0.68rem;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: rgba(247, 243, 236, 0.72);
  animation: rise 1.1s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.title {
  margin: 1rem 0 0;
  font-family: var(--font-zh);
  font-weight: 500;
  font-size: clamp(4.8rem, 14vw, 9.5rem);
  line-height: 0.92;
  letter-spacing: 0.28em;
  text-indent: 0.28em;
  text-shadow:
    0 1px 0 rgba(0, 0, 0, 0.25),
    0 18px 60px rgba(0, 0, 0, 0.45);
  animation: rise 1.2s cubic-bezier(0.22, 1, 0.36, 1) 0.08s both;
}

.subtitle {
  margin: 1.1rem 0 0;
  font-family: var(--font-en);
  font-style: normal;
  font-weight: 500;
  font-size: clamp(0.85rem, 1.8vw, 1.05rem);
  letter-spacing: 0.48em;
  text-indent: 0.48em;
  color: rgba(247, 243, 236, 0.78);
  animation: rise 1.2s cubic-bezier(0.22, 1, 0.36, 1) 0.16s both;
}

.lede {
  margin: 1.35rem 0 0;
  max-width: 28rem;
  font-family: var(--font-zh);
  font-style: normal;
  font-weight: 400;
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  line-height: 1.55;
  color: var(--mist);
  animation: rise 1.2s cubic-bezier(0.22, 1, 0.36, 1) 0.24s both;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem 1rem;
  margin-top: 2.2rem;
  animation: rise 1.2s cubic-bezier(0.22, 1, 0.36, 1) 0.32s both;
}

.btn-solid,
.btn-line {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0 1.55rem;
  text-decoration: none;
  font-family: var(--font-zh);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  border-radius: 14px;
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.btn-solid {
  background: var(--ivory);
  color: var(--ink);
  border: 1px solid var(--ivory);
}

.btn-solid:hover {
  transform: translateY(-2px);
  background: #fff;
}

.btn-line {
  color: var(--ivory);
  border: 1px solid var(--line);
  background: rgba(11, 16, 24, 0.28);
  backdrop-filter: blur(8px);
}

.btn-line:hover {
  border-color: rgba(247, 243, 236, 0.55);
  transform: translateY(-2px);
}

.foot {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.55rem;
  padding: 0 1.25rem 1.35rem;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  color: rgba(247, 243, 236, 0.42);
}

.foot .dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.7;
}

.foot a.beian {
  color: inherit;
  text-decoration: none;
  letter-spacing: 0.08em;
}

.foot a.beian:hover {
  color: rgba(247, 243, 236, 0.72);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

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

@keyframes kenburns {
  from {
    transform: scale(1.04) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.1) translate3d(-1.2%, -0.8%, 0);
  }
}

@keyframes float-a {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(12px, -18px, 0);
  }
}

@keyframes float-b {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(-14px, 12px, 0);
  }
}

@keyframes bubble-rise {
  0% {
    transform: translate3d(0, 20px, 0);
    opacity: 0;
  }
  15% {
    opacity: 0.7;
  }
  100% {
    transform: translate3d(18px, -72vh, 0);
    opacity: 0;
  }
}

@media (max-width: 720px) {
  .nav-enter {
    display: none;
  }

  .title {
    letter-spacing: 0.16em;
    text-indent: 0.16em;
  }

  .subtitle {
    letter-spacing: 0.22em;
    text-indent: 0.22em;
  }

  .actions {
    width: 100%;
  }

  .btn-solid,
  .btn-line {
    width: 100%;
  }

  .orb-1 {
    width: 72px;
    height: 72px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .kicker,
  .title,
  .subtitle,
  .lede,
  .actions {
    opacity: 1;
  }

  .hero-shot {
    transform: none;
  }
}
