/* =========================================================
   万象城登录口 · 共享站点样式 site.css
   夜间导航台：深墨蓝底 / 霓虹青强调 / 暖金版本号
   ========================================================= */

/* ---------- 1. Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body,
h1, h2, h3, h4, h5, h6,
p, ul, ol, li, figure, blockquote, dl, dd { margin: 0; }

h1, h2, h3, h4, h5, h6 {
  font-size: inherit;
  font-weight: inherit;
  line-height: 1.25;
}

ul, ol { padding: 0; list-style: none; }

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

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

table { border-collapse: collapse; width: 100%; }

/* ---------- 2. 变量 ---------- */
:root {
  --ink: #08121F;
  --panel: #0F2033;
  --panel-2: #0B1A2B;
  --footer-bg: #06101B;
  --line: #1C3A57;
  --cyan: #5FE9DA;
  --gold: #E5B25A;
  --white: #F1F5F8;
  --muted: #A7B6C4;
  --dim: #6E8496;
  --ok: #4CC38A;
  --alert: #E2674F;

  --font-body: "Noto Sans SC", "Source Han Sans SC", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --font-mono: ui-monospace, "JetBrains Mono", "Source Han Mono",
    "SFMono-Regular", Menlo, Consolas, monospace;

  --wrap: 1200px;
  --gutter: 24px;
  --radius: 2px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

@media (max-width: 640px) {
  :root { --gutter: 20px; }
}

/* ---------- 3. 基础排版 ---------- */
body {
  min-height: 100vh;
  background-color: var(--ink);
  background-image:
    radial-gradient(1200px 620px at 50% -8%, rgba(95, 233, 218, .055), transparent 62%),
    radial-gradient(900px 520px at 100% 108%, rgba(229, 178, 90, .04), transparent 60%);
  background-attachment: fixed;
  background-repeat: no-repeat;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.8;
  font-weight: 400;
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
}

@media (max-width: 640px) {
  body { font-size: 16px; }
}

::selection {
  background: var(--cyan);
  color: #04211F;
}

a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
  border-radius: var(--radius);
}

.skip-link {
  position: absolute;
  left: 50%;
  top: -120px;
  transform: translateX(-50%);
  z-index: 90;
  padding: 10px 20px;
  background: var(--cyan);
  color: #04211F;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .04em;
  border-radius: var(--radius);
  transition: top .2s var(--ease);
}

.skip-link:focus {
  top: 10px;
}

/* ---------- 4. 工具与容器 ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: .05em;
}

.section { padding: 72px 0; }
.section--tight { padding: 48px 0; }

@media (max-width: 640px) {
  .section { padding: 52px 0; }
  .section--tight { padding: 36px 0; }
}

.band {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--panel-2);
  padding: 44px 0;
}

.band--cyan {
  border-color: rgba(95, 233, 218, .3);
  background: #0A1E2B;
}

/* ---------- 5. 标题与文字 ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 18px;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: currentColor;
  opacity: .75;
}

.h-display {
  font-size: clamp(40px, 9vw, 132px);
  font-weight: 200;
  line-height: .96;
  letter-spacing: -.02em;
  color: var(--white);
}

.h1 {
  font-size: clamp(30px, 4.4vw, 44px);
  font-weight: 200;
  line-height: 1.16;
  letter-spacing: -.01em;
}

.h2 {
  font-size: clamp(22px, 2.6vw, 34px);
  font-weight: 300;
  line-height: 1.28;
  letter-spacing: -.005em;
}

.h3 {
  font-size: clamp(18px, 1.8vw, 24px);
  font-weight: 400;
  line-height: 1.4;
}

.lead {
  font-size: 20px;
  line-height: 1.75;
  color: var(--muted);
  max-width: 42em;
}

.prose {
  max-width: 44em;
  color: var(--muted);
  line-height: 1.8;
}

.prose p + p { margin-top: 1.05em; }

.prose strong { color: var(--white); font-weight: 500; }

.text-dim { color: var(--dim); }
.text-gold { color: var(--gold); }
.text-cyan { color: var(--cyan); }

@media (max-width: 640px) {
  .lead { font-size: 17px; }
}

/* ---------- 6. 网格与布局 ---------- */
.grid {
  display: grid;
  gap: 20px;
}

.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.split {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 48px;
  align-items: start;
}

.with-rail {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}

@media (max-width: 1024px) {
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .split,
  .with-rail {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }
}

@media (max-width: 640px) {
  .grid--2,
  .grid--3,
  .grid--4 { grid-template-columns: minmax(0, 1fr); }
  .grid { gap: 16px; }
}

/* ---------- 7. 面板 / 按钮 / 标签 ---------- */
.panel {
  position: relative;
  padding: 26px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.panel--flush { padding: 0; }

.panel--link {
  display: block;
  transition: border-color .25s var(--ease), transform .25s var(--ease),
    background-color .25s var(--ease);
}

.panel--link:hover {
  border-color: var(--cyan);
  background: #10243A;
  transform: translateY(-2px);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  color: var(--white);
  font-size: 14px;
  letter-spacing: .06em;
  transition: border-color .2s var(--ease), color .2s var(--ease),
    background-color .2s var(--ease), transform .2s var(--ease);
}

.btn:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  transform: translateY(-1px);
}

.btn--primary {
  background: var(--cyan);
  border-color: var(--cyan);
  color: #04211F;
  font-weight: 500;
}

.btn--primary:hover {
  background: #84F1E5;
  border-color: #84F1E5;
  color: #04211F;
}

.btn--gold {
  border-color: rgba(229, 178, 90, .55);
  color: var(--gold);
  background: transparent;
}

.btn--gold:hover {
  border-color: var(--gold);
  background: rgba(229, 178, 90, .08);
  color: var(--gold);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--muted);
  white-space: nowrap;
}

.tag--ok { color: var(--ok); border-color: rgba(76, 195, 138, .42); }
.tag--gold { color: var(--gold); border-color: rgba(229, 178, 90, .45); }
.tag--alert { color: var(--alert); border-color: rgba(226, 103, 79, .45); }
.tag--cyan { color: var(--cyan); border-color: rgba(95, 233, 218, .45); }

/* ---------- 8. 图片容器 ---------- */
.fig {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-2);
}

.fig > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.62) brightness(.78) contrast(1.06);
  transition: filter .35s var(--ease), transform .35s var(--ease);
}

.fig:hover > img {
  filter: saturate(.82) brightness(.92) contrast(1.02);
  transform: scale(1.015);
}

.fig--wide { aspect-ratio: 21 / 9; }
.fig--tall { aspect-ratio: 4 / 5; }
.fig--square { aspect-ratio: 1 / 1; }

.fig__cap {
  display: block;
  margin-top: 9px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .05em;
  color: var(--dim);
}

/* ---------- 9. 版本时间轴 ---------- */
.rail {
  position: sticky;
  top: 32px;
  padding-left: 26px;
  border-left: 1px solid var(--line);
}

.rail__item {
  position: relative;
  padding-bottom: 26px;
}

.rail__item:last-child { padding-bottom: 0; }

.rail__node {
  position: relative;
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--dim);
  transition: color .25s var(--ease);
}

.rail__node::before {
  content: "";
  position: absolute;
  left: -31px;
  top: 7px;
  width: 9px;
  height: 9px;
  border: 1px solid var(--line);
  background: var(--ink);
  transform: rotate(45deg);
  transition: border-color .25s var(--ease), background-color .25s var(--ease);
}

.rail__node:hover { color: var(--muted); }

.rail__item[data-active] .rail__node {
  color: var(--cyan);
}

.rail__item[data-active] .rail__node::before {
  border-color: var(--cyan);
  background: var(--cyan);
  box-shadow: 0 0 0 4px rgba(95, 233, 218, .14);
}

.rail__note {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}

@media (max-width: 900px) {
  .rail { position: static; top: auto; }
}

/* ---------- 10. 面包屑 ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  padding: 20px 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--dim);
}

.breadcrumb a {
  color: var(--muted);
  transition: color .18s var(--ease);
}

.breadcrumb a:hover { color: var(--cyan); }

.breadcrumb__sep { color: var(--line); }

.breadcrumb [aria-current="page"] { color: var(--white); }

/* ---------- 11. 显现 ---------- */
html[data-reveal="ready"] .reveal {
  opacity: 0;
  transform: translateY(14px);
}

html[data-reveal="ready"] .reveal.is-in {
  opacity: 1;
  transform: none;
  transition: opacity .55s var(--ease), transform .55s var(--ease);
}

/* ---------- 12. 页头 ---------- */
.masthead {
  position: relative;
  z-index: 30;
  border-bottom: 1px solid var(--line);
  background: rgba(8, 18, 31, .92);
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: 0 50%;
  z-index: 60;
  pointer-events: none;
}

.statusbar { border-bottom: 1px solid var(--line); }

.statusbar__inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--dim);
}

.statusbar__lines {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

.line-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
}

.line-chip b {
  font-weight: 400;
  color: var(--dim);
}

.line-chip__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 3px rgba(76, 195, 138, .16);
  flex: none;
}

.line-chip__dot--soft {
  background: var(--dim);
  box-shadow: 0 0 0 3px rgba(110, 132, 150, .14);
}

.statusbar__ver {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--gold);
  white-space: nowrap;
}

.statusbar__ver span { color: var(--dim); }

.statusbar__ver b { font-weight: 500; }

.masthead__head { position: relative; }

.masthead__head-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 32px var(--gutter) 24px;
  text-align: center;
}

.masthead__kicker {
  font-size: 11px;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 16px;
}

.brand {
  display: inline-block;
  font-size: clamp(26px, 4.6vw, 46px);
  font-weight: 200;
  line-height: 1.12;
  letter-spacing: .18em;
  text-indent: .09em;
  color: var(--white);
  transition: color .22s var(--ease);
}

.brand:hover { color: var(--cyan); }

.masthead__sub {
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .18em;
  color: var(--dim);
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .1em;
  transition: border-color .2s var(--ease), color .2s var(--ease);
}

.nav-toggle:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

.nav-toggle__bars {
  display: grid;
  gap: 4px;
  width: 16px;
}

.nav-toggle__bars i {
  display: block;
  height: 1px;
  background: currentColor;
  transition: transform .22s var(--ease), opacity .22s var(--ease);
}

.masthead[data-open] .nav-toggle__bars i:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
}

.masthead[data-open] .nav-toggle__bars i:nth-child(2) {
  opacity: 0;
}

.masthead[data-open] .nav-toggle__bars i:nth-child(3) {
  transform: translateY(-5px) rotate(-45deg);
}

.masthead__nav { border-top: 1px solid var(--line); }

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 15px 20px;
  font-size: 14px;
  letter-spacing: .06em;
  color: var(--muted);
  transition: color .2s var(--ease), background-color .2s var(--ease);
}

.nav__link::before {
  content: attr(data-index);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--dim);
  transition: color .2s var(--ease);
}

.nav__link:hover {
  color: var(--white);
  background: rgba(95, 233, 218, .07);
}

.nav__link:hover::before { color: var(--cyan); }

.nav__link[aria-current="page"] {
  color: var(--white);
  background: rgba(95, 233, 218, .07);
}

.nav__link[aria-current="page"]::before { color: var(--cyan); }

.nav__link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 0;
  height: 2px;
  background: var(--cyan);
}

@media (max-width: 860px) {
  .masthead__head-inner {
    padding: 18px 84px 14px;
    text-align: center;
  }

  .masthead__kicker,
  .masthead__sub { display: none; }

  .brand { font-size: clamp(19px, 5.6vw, 27px); }

  .nav-toggle {
    display: inline-flex;
    position: absolute;
    right: var(--gutter);
    top: 50%;
    transform: translateY(-50%);
    flex-direction: column;
    gap: 6px;
    width: 58px;
    padding: 9px 6px;
    font-size: 10px;
  }

  .nav-toggle:hover { transform: translateY(-50%); }

  .nav-toggle__text {
    font-size: 10px;
    letter-spacing: .08em;
  }

  .masthead__nav {
    display: none;
    background: var(--panel-2);
  }

  .masthead[data-open] .masthead__nav { display: block; }

  .nav {
    flex-direction: column;
    padding: 4px 0 8px;
  }

  .nav__item {
    border-bottom: 1px solid var(--line);
  }

  .nav__item:last-child { border-bottom: 0; }

  .nav__item[data-tier="more"] { display: none; }

  .nav__link {
    width: 100%;
    padding: 16px var(--gutter);
    font-size: 16px;
  }

  .nav__link[aria-current="page"] { background: rgba(95, 233, 218, .09); }

  .nav__link[aria-current="page"]::after {
    left: 0;
    right: auto;
    top: 0;
    bottom: 0;
    width: 3px;
    height: auto;
  }
}

/* ---------- 13. 页脚 ---------- */
.footer {
  margin-top: 96px;
  border-top: 1px solid var(--line);
  background: var(--footer-bg);
}

.footer__inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 56px var(--gutter) 40px;
  display: grid;
  grid-template-columns: minmax(200px, 1fr) minmax(0, 2.8fr);
  gap: 48px;
}

.footer__logo {
  display: inline-block;
  font-size: 22px;
  font-weight: 200;
  letter-spacing: .16em;
  color: var(--white);
  transition: color .2s var(--ease);
}

.footer__logo:hover { color: var(--cyan); }

.footer__desc {
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.75;
  color: var(--dim);
}

.footer__ver {
  margin-top: 16px;
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--gold);
}

.footer__ver b { font-weight: 500; }

.footer__cols {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 34px 24px;
}

.footer__title {
  padding-bottom: 11px;
  margin-bottom: 13px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--dim);
}

.footer__list {
  display: grid;
  gap: 9px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}

.footer__list a {
  display: inline-block;
  transition: color .18s var(--ease), transform .18s var(--ease);
}

.footer__list a:hover {
  color: var(--cyan);
  transform: translateX(3px);
}

.footer__list--plain li { color: var(--dim); }

.footer__mail {
  color: var(--muted);
  overflow-wrap: anywhere;
}

.footer__legal {
  border-top: 1px solid var(--line);
}

.footer__legal-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 18px var(--gutter) 22px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 30px;
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--dim);
}

.footer__legal-item { min-width: 0; }
.footer__legal-item .mono { color: var(--muted); }

@media (max-width: 1024px) {
  .footer__inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
  }
}

@media (max-width: 720px) {
  .footer { margin-top: 64px; }

  .footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; }

  .footer__inner { padding: 40px var(--gutter) 32px; }

  .footer__legal-inner { gap: 8px 20px; }
}

@media (max-width: 400px) {
  .footer__cols { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- 14. 减少动态 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }

  html[data-reveal="ready"] .reveal,
  html[data-reveal="ready"] .reveal.is-in {
    opacity: 1;
    transform: none;
  }

  .btn:hover,
  .panel--link:hover,
  .footer__list a:hover { transform: none; }
}
