﻿/* ==========================================================================
   V8 · 活素材 / LIVE CATCH
   开场是实时渲染的鱼（真模型 + 真贴图），下面把拆包出来的材质直接摊开。
   ========================================================================== */

@font-face {
  font-family: "RF Sans";
  src: url("../fonts/Roboto-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "RF Sans";
  src: url("../fonts/Roboto-Medium.ttf") format("truetype");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "RF Cond";
  src: url("../fonts/RobotoCondensed-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}

:root {
  --deep: #05121a;
  --deep-2: #071a23;
  --cream: #eef1ec;
  --cream-70: rgba(238, 241, 236, 0.7);
  --cream-45: rgba(238, 241, 236, 0.45);
  --line: rgba(238, 241, 236, 0.14);
  --amber: #e0a35c;
  --brick: #a8401f;
  --sans: "RF Sans", "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
  --cond: "RF Cond", "RF Sans", "Microsoft YaHei", sans-serif;
  --mono: "Consolas", "SF Mono", monospace;
  --pad: clamp(20px, 5vw, 72px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--deep);
  color: var(--cream);
  font: 400 15px/1.8 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
::selection { background: var(--amber); color: #1a1006; }

/* --------------------------------------------------- 顶栏 */
.top {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px var(--pad);
  background: linear-gradient(180deg, rgba(5, 18, 26, 0.72), transparent);
  pointer-events: none;
}
.top > * { pointer-events: auto; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 32px; height: 33px; filter: brightness(0) invert(1); opacity: 0.92; }
.brand b { font-size: 14px; font-weight: 500; letter-spacing: 0.14em; }
.brand span { color: var(--cream-45); font-size: 12px; }
.top nav { display: flex; align-items: center; gap: 26px; font-size: 13.5px; color: var(--cream-70); }
.top nav a:hover { color: var(--cream); }
.top .enter {
  padding: 9px 18px;
  border: 1px solid rgba(238, 241, 236, 0.4);
  font-size: 13px;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.top .enter:hover { background: var(--cream); color: var(--deep); border-color: var(--cream); }

/* --------------------------------------------------- 开场：WebGL */
.hero {
  position: relative;
  height: 100dvh;
  min-height: 640px;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
  background:
    radial-gradient(120% 90% at 68% 18%, rgba(96, 190, 210, 0.24), transparent 58%),
    radial-gradient(80% 70% at 22% 88%, rgba(224, 163, 92, 0.12), transparent 62%),
    linear-gradient(180deg, #07202b 0%, #051018 48%, #04121a 100%);
}
#gl {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  cursor: grab;
  touch-action: none;
}
#gl.grabbing { cursor: grabbing; }
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(4, 22, 32, 0.72) 0%, rgba(4, 22, 32, 0.28) 30%, transparent 52%),
    linear-gradient(180deg, rgba(4, 22, 32, 0.58) 0%, rgba(4, 22, 32, 0.12) 12%, transparent 26%, transparent 66%, rgba(4, 20, 30, 0.86) 100%);
}
.hero-in {
  position: absolute;
  z-index: 2;
  left: var(--pad);
  right: var(--pad);
  bottom: clamp(56px, 9vh, 104px);
}
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--cond);
  font-size: 12px;
  letter-spacing: 0.24em;
  color: var(--cream-45);
  margin-bottom: 22px;
}
.kicker::before { content: ""; width: 26px; height: 1px; background: var(--amber); }
h1 {
  margin: 0;
  font-size: clamp(38px, 5.3vw, 78px);
  line-height: 1.04;
  font-weight: 800;
  letter-spacing: -0.03em;
  max-width: 18ch;
}
h1 em { font-style: normal; color: var(--amber); }
.sub {
  margin: 22px 0 0;
  max-width: 44ch;
  font-size: clamp(14px, 1.25vw, 16.5px);
  line-height: 1.9;
  color: var(--cream-70);
}
.hero-cta { display: flex; align-items: center; gap: 26px; margin-top: 32px; flex-wrap: wrap; }
.btn-play {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  height: 56px;
  padding: 0 28px;
  background: var(--cream);
  color: var(--deep);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.04em;
  transition: transform 0.2s ease, background 0.2s ease;
}
.btn-play:hover { transform: translateY(-1px); background: #fff; }
.btn-play svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.alt { font-size: 13px; color: var(--cream-45); border-bottom: 1px solid var(--line); padding-bottom: 3px; }
.alt:hover { color: var(--cream); border-color: var(--cream-70); }

.hero-side {
  position: absolute;
  z-index: 3;
  right: var(--pad);
  top: 50%;
  transform: translateY(-50%);
  width: 190px;
  display: grid;
  gap: 30px;
}
.picker { display: grid; }
.picker button {
  text-shadow: 0 1px 8px rgba(3, 18, 26, 0.85);
  display: grid;
  gap: 1px;
  padding: 7px 0;
  background: none;
  border: 0;
  border-bottom: 1px solid rgba(238, 241, 236, 0.08);
  text-align: left;
  color: rgba(238, 241, 236, 0.66);
  font-size: 13px;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, padding-left 0.2s ease;
}
.picker button em {
  font-style: normal;
  font-family: var(--cond);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.55;
}
.picker button:hover { color: var(--cream); padding-left: 4px; }
.picker button.on { color: var(--cream); border-bottom-color: var(--amber); }
.picker button.on em { color: var(--amber); opacity: 0.8; }

.drag-hint {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: clamp(30px, 5vh, 52px);
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(6, 20, 26, 0.45);
  backdrop-filter: blur(6px);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--cream-70);
  transition: opacity 0.5s ease, transform 0.5s ease;
  pointer-events: none;
}
.drag-hint svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 1.6; }
.drag-hint.gone { opacity: 0; transform: translate(-50%, 8px); }

/* 声音开关 */
.sound {
  position: fixed;
  z-index: 55;
  right: var(--pad);
  top: 76px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  background: rgba(6, 20, 26, 0.5);
  backdrop-filter: blur(8px);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--cream-70);
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.sound:hover { border-color: var(--cream-45); color: var(--cream); }
.sound .bars { display: inline-flex; align-items: flex-end; gap: 2px; height: 12px; }
.sound .bars i { width: 2px; height: 4px; background: currentColor; transition: height 0.25s ease; }
.sound.is-on .bars i { animation: bars 1.1s ease-in-out infinite; }
.sound.is-on .bars i:nth-child(2) { animation-delay: 0.18s; }
.sound.is-on .bars i:nth-child(3) { animation-delay: 0.36s; }
@keyframes bars { 0%, 100% { height: 4px; } 50% { height: 12px; } }
.sound.is-on { color: var(--amber); border-color: rgba(224, 163, 92, 0.5); }

/* --------------------------------------------------- 通用块 */
.section { padding: clamp(70px, 11vh, 140px) var(--pad); border-top: 1px solid var(--line); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; margin-bottom: 44px; flex-wrap: wrap; }
.section-head h2 { margin: 0; font-size: clamp(26px, 3.4vw, 46px); line-height: 1.15; font-weight: 800; letter-spacing: -0.02em; max-width: 22ch; }
.section-head p { margin: 0; max-width: 40ch; font-size: 14px; line-height: 1.95; color: var(--cream-45); }
.label { display: block; font-family: var(--cond); font-size: 11.5px; letter-spacing: 0.22em; color: var(--amber); margin-bottom: 14px; }

/* 素材墙 */
.wall { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.tile { position: relative; overflow: hidden; background: #0a1a22; }
.tile img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  transform: scale(1.02);
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1), filter 0.4s ease;
  filter: saturate(0.95) contrast(1.02);
}
.tile:hover img { transform: scale(1.08); filter: saturate(1.05) contrast(1.05); }
.tile .cap {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--cream-70);
}
.tile .cap span:last-child { font-family: var(--mono); font-size: 11px; color: var(--cream-45); }

/* 说明 + 数字 */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: clamp(32px, 6vw, 96px); align-items: start; }
.split h2 { margin: 0; font-size: clamp(26px, 3.6vw, 48px); line-height: 1.2; font-weight: 800; letter-spacing: -0.02em; }
.split h2 em { font-style: normal; color: var(--amber); }
.split p { margin: 20px 0 0; font-size: 14.5px; line-height: 2; color: var(--cream-45); max-width: 46ch; }
.facts { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.facts li { display: flex; justify-content: space-between; gap: 18px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.facts span { color: var(--cream-45); }
.facts b { font-weight: 400; font-family: var(--cond); letter-spacing: 0.06em; }

.numbers { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.numbers div { padding: clamp(26px, 3.4vw, 40px) var(--pad); border-left: 1px solid var(--line); }
.numbers div:first-child { border-left: 0; }
.numbers dt { font-size: 12px; letter-spacing: 0.12em; color: var(--cream-45); }
.numbers dd { margin: 10px 0 0; font-family: var(--cond); font-size: clamp(28px, 3.4vw, 44px); }
.numbers dd small { font-size: 12px; letter-spacing: 0.08em; color: var(--cream-45); margin-left: 8px; }

/* 结尾 */
.final {
  position: relative;
  min-height: 78dvh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 90px var(--pad);
  overflow: hidden;
}
.final img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 45%;
  filter: blur(3px) brightness(0.42) saturate(0.95);
  transform: scale(1.06);
}
.final::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(58% 58% at 50% 52%, rgba(4, 18, 26, 0.2), rgba(4, 18, 26, 0.92) 76%);
}
.final-in { position: relative; z-index: 2; }
.final h2 { margin: 0 0 18px; font-size: clamp(32px, 4.6vw, 68px); line-height: 1.06; font-weight: 800; letter-spacing: -0.025em; }
.final p { margin: 0 auto 32px; max-width: 40ch; font-size: 15px; line-height: 1.9; color: var(--cream-70); }
.btn-solid {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  height: 56px;
  padding: 0 30px;
  background: var(--brick);
  color: #fdf6ec;
  font-size: 15.5px;
  font-weight: 500;
  letter-spacing: 0.04em;
  transition: background 0.2s ease, transform 0.2s ease;
}
.btn-solid:hover { background: #bd4a25; transform: translateY(-1px); }
.btn-solid svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.live { margin-top: 20px; font-family: var(--cond); font-size: 12px; letter-spacing: 0.14em; color: var(--cream-45); }

/* 页脚 */
.foot { padding: 44px var(--pad) 52px; display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: start; border-top: 1px solid var(--line); }
.foot b { font-size: 13px; font-weight: 500; letter-spacing: 0.12em; }
.foot p { margin: 8px 0 0; font-size: 12px; line-height: 1.9; color: var(--cream-45); max-width: 64ch; }
.foot nav { display: flex; gap: 20px; font-size: 12.5px; color: var(--cream-45); }
.foot nav a:hover { color: var(--cream); }

/* 进场 */
[data-reveal] { opacity: 0; transform: translate3d(0, 18px, 0); transition: opacity 0.85s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.85s cubic-bezier(0.2, 0.7, 0.2, 1); }
[data-reveal].is-in { opacity: 1; transform: none; }

/* --------------------------------------------------- 注册页 */
.reg { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); min-height: 100dvh; }
.reg-media { position: sticky; top: 0; height: 100dvh; overflow: hidden; background: #05121a; }
.reg-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 46% 52%; }
.reg-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(4, 18, 26, 0.55) 0%, rgba(4, 18, 26, 0.05) 32%, rgba(4, 18, 26, 0.6) 74%, rgba(4, 18, 26, 0.96) 100%); }
.reg-media .cap { position: absolute; left: clamp(22px, 3vw, 44px); right: clamp(22px, 3vw, 44px); bottom: clamp(30px, 6vh, 68px); z-index: 2; }
.reg-media .cap h2 { margin: 12px 0 10px; font-size: clamp(24px, 2.5vw, 38px); line-height: 1.2; font-weight: 800; letter-spacing: -0.015em; }
.reg-media .cap p { margin: 0; font-size: 13px; line-height: 1.85; color: var(--cream-70); max-width: 34ch; }
.reg-form-wrap { position: relative; background: var(--deep); display: flex; flex-direction: column; justify-content: center; padding: 96px clamp(24px, 5vw, 84px) 60px; }
.reg-top { position: absolute; top: 0; right: 0; display: flex; gap: 20px; padding: 24px clamp(24px, 5vw, 84px); font-size: 13px; color: var(--cream-45); }
.reg-top a:hover { color: var(--cream); }
.reg-form { width: 100%; max-width: 440px; }
.reg-form h1 { font-size: 30px; font-weight: 800; letter-spacing: -0.01em; margin: 0 0 6px; }
.reg-form .lead { margin: 0 0 28px; font-size: 13.5px; color: var(--cream-45); line-height: 1.9; }

.field { margin-bottom: 19px; }
.field label { display: block; font-size: 12px; letter-spacing: 0.1em; color: var(--cream-45); margin-bottom: 7px; }
.field input, .field select {
  width: 100%; height: 42px; padding: 0 2px;
  background: transparent; border: 0; border-bottom: 1px solid var(--line);
  color: var(--cream); font: 400 15px/1.4 var(--sans); outline: none;
  transition: border-color 0.2s ease;
}
.field select { color-scheme: dark; }
.field input::placeholder { color: rgba(238, 241, 236, 0.24); }
.field input:focus, .field select:focus { border-color: var(--amber); }
.field.has-error input, .field.has-error select { border-color: #c2543a; }
.hint { margin: 6px 0 0; font-size: 11.5px; color: rgba(238, 241, 236, 0.32); }
.err { display: none; margin: 6px 0 0; font-size: 11.5px; color: #e08a6a; }
.field.has-error .err { display: block; }
.err-line { margin: 6px 0 0; font-size: 12px; color: #e08a6a; }
.err-line:empty { display: none; }

.captcha { display: grid; grid-template-columns: 1fr 44px 148px; gap: 12px; align-items: center; }
.captcha .refresh {
  height: 42px; border: 1px solid var(--line);
  background: transparent url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23eef1ec' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='15 5 20 5 20 10'/><path d='M20 5l-4.6 4.6A7 7 0 1 0 19 14'/></svg>") center / 17px no-repeat;
  cursor: pointer; transition: border-color 0.2s ease;
}
.captcha .refresh:hover { border-color: var(--cream-45); }
.captcha .pic { height: 42px; border: 1px solid var(--line); background: #f2efe6; overflow: hidden; }
.captcha .pic img { width: 100%; height: 100%; object-fit: contain; }

.checks { display: grid; gap: 10px; margin: 20px 0 22px; }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: 12.5px; color: var(--cream-70); }
.check a { color: var(--amber); text-decoration: underline; text-underline-offset: 3px; }
.check input { appearance: none; flex: 0 0 auto; width: 15px; height: 15px; margin: 2px 0 0; border: 1px solid var(--cream-45); background: transparent; cursor: pointer; position: relative; }
.check input:checked { background: var(--cream); border-color: var(--cream); }
.check input:checked::after { content: ""; position: absolute; left: 4px; top: 1px; width: 4px; height: 8px; border: solid var(--deep); border-width: 0 1.5px 1.5px 0; transform: rotate(42deg); }

.form-alert { display: none; margin: 0 0 18px; padding: 10px 12px; font-size: 12.5px; line-height: 1.7; color: #f0b9a0; border: 1px solid rgba(194, 84, 58, 0.5); background: rgba(194, 84, 58, 0.12); }
.form-alert.is-on { display: block; }

.submit {
  width: 100%; height: 52px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--brick); border: 1px solid var(--brick); color: #fdf6ec;
  font-size: 15px; font-weight: 500; letter-spacing: 0.05em; cursor: pointer;
  transition: background 0.2s ease;
}
.submit:hover { background: #bd4a25; }
.submit[disabled] { cursor: progress; filter: saturate(0.7); }
.spinner { display: none; width: 13px; height: 13px; border: 1.5px solid rgba(253, 246, 236, 0.35); border-top-color: #fdf6ec; border-radius: 50%; animation: spin 0.7s linear infinite; }
.submit[disabled] .spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.links { margin: 16px 0 0; font-size: 12.5px; color: var(--cream-45); }
.links a { color: var(--cream); border-bottom: 1px solid var(--line); padding-bottom: 2px; }

.success { display: none; }
.success.is-on { display: block; }
.success .mark { width: 34px; height: 34px; border: 1px solid var(--amber); display: grid; place-items: center; color: var(--amber); margin-bottom: 18px; }
.success .mark svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.success h3 { margin: 0 0 10px; font-size: 24px; font-weight: 800; }
.success p { margin: 0 0 8px; font-size: 13px; line-height: 1.9; color: var(--cream-45); }
.success .acct { font-family: var(--cond); font-size: 18px; color: var(--amber); margin-bottom: 16px; }

/* --------------------------------------------------- 响应式 */
@media (max-width: 980px) {
  .wall { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; gap: 30px; }
  .numbers { grid-template-columns: 1fr 1fr; }
  .numbers div:nth-child(3) { border-left: 0; }
  .numbers div:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }
  .hero-side {
    left: var(--pad);
    right: var(--pad);
    top: auto;
    bottom: 18px;
    transform: none;
    width: auto;
    display: flex;
    align-items: flex-end;
    gap: 16px;
  }
  .picker {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
  }
  .picker::-webkit-scrollbar { display: none; }
  .picker button { white-space: nowrap; padding: 4px 0; border-bottom-width: 1px; font-size: 12.5px; }
  .picker button em { display: none; }
  .drag-hint { display: none; }
  .foot { grid-template-columns: 1fr; }
  .top nav { display: none; }
  .reg { grid-template-columns: 1fr; min-height: 0; }
  .reg-media { position: relative; height: 32vh; min-height: 210px; }
  .reg-media .cap { bottom: 18px; }
  .reg-media .cap h2 { font-size: 22px; }
  .reg-media .cap p { display: none; }
  .reg-form-wrap { padding: 32px 20px 56px; }
  .reg-top { padding: 18px 20px; }
  .captcha { grid-template-columns: 1fr 42px 116px; gap: 10px; }
}

@media (max-width: 640px) {
  .wall { grid-template-columns: 1fr; }
  .numbers { grid-template-columns: 1fr; }
  .numbers div { border-left: 0; border-bottom: 1px solid var(--line); }
  .numbers div:last-child { border-bottom: 0; }
  h1 { font-size: clamp(32px, 9vw, 44px); }
  .sound { top: 72px; bottom: auto; right: 16px; padding: 7px 12px; font-size: 11.5px; }
  .btn-play, .btn-solid { height: 50px; padding: 0 22px; font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; }
  .sound .bars i { animation: none !important; }
}

/* Homepage navigation stays reachable after removing the extra entry button.
   Scope to this page: registration/login reuse the same stylesheet. */
.home-page .top nav { margin-left: auto; flex-shrink: 0; }
@media (max-width: 980px) {
  .home-page .top { gap: 12px; }
  .home-page .top nav { display: flex; gap: 16px; }
  .home-page .brand span { display: none; }
  .home-page .hero-side .picker { min-width: 0; max-width: 100%; }
}
