/* ===========================================================
   亿游互娱品牌 · 共享样式表 /assets/site.css
   墨蓝底 + 电光青 / 暖金 / 霓虹紫；侧边品牌轨道 + 紧凑命令栏
   =========================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--cmdbar-h) + 24px);
}

body { margin: 0; }

h1, h2, h3, h4, h5, h6, p, figure, blockquote { margin: 0; }

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

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

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

button, input, select, textarea { font: inherit; color: inherit; }

button { background: none; border: 0; cursor: pointer; }

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

/* ---------- 2 · Tokens ---------- */
:root {
  --ink-900: #070C1B;
  --ink-800: #0E1630;
  --slate-600: #24304F;
  --mist-100: #E8EDF7;
  --mist-400: #9AA6C4;
  --cyan-400: #29E0D6;
  --cyan-900: #063A3D;
  --gold-300: #F5C46B;
  --violet-400: #A26BFF;
  --white: #FFFFFF;

  --rail-w: 96px;
  --cmdbar-h: 76px;
  --maxw: 1280px;
  --gutter: clamp(20px, 4vw, 56px);

  --r-xl: 32px;
  --r-lg: 24px;
  --r-md: 20px;
  --r-pill: 999px;

  --slant: -14deg;
  --ease: cubic-bezier(.22, .61, .36, 1);

  --font-head: "HarmonyOS Sans SC", "Source Han Sans SC", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-body: "Inter", "Source Han Sans SC", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "LXGW WenKai Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

/* ---------- 3 · 中文排版与正文基底 ---------- */
body {
  min-height: 100vh;
  padding-left: var(--rail-w);
  padding-top: var(--cmdbar-h);
  overflow-x: hidden;
  background:
    radial-gradient(1100px 620px at 82% -8%, rgba(162, 107, 255, .10), transparent 62%),
    radial-gradient(880px 520px at 4% 12%, rgba(41, 224, 214, .07), transparent 60%),
    var(--ink-900);
  color: var(--mist-100);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.8;
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -.01em;
}

::selection { background: rgba(41, 224, 214, .3); color: var(--white); }

:focus-visible {
  outline: 2px solid var(--cyan-400);
  outline-offset: 3px;
  border-radius: 6px;
}

#main-content { display: block; }

/* ---------- 4 · 跳至正文 ---------- */
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 200;
  transform: translateY(-220%);
  padding: 11px 20px;
  border-radius: var(--r-pill);
  background: var(--cyan-400);
  color: #04140F;
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 800;
  transition: transform .22s var(--ease);
}
.skip-link:focus { transform: translateY(0); }

/* ---------- 5 · 顶部外壳 ---------- */
.site-header { position: relative; z-index: 80; }

/* 5.1 品牌轨道 */
.rail {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--rail-w);
  z-index: 70;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 22px 0 26px;
  background: linear-gradient(180deg, #101A38 0%, #0B1329 58%, #060A16 100%);
  border-right: 1px solid var(--slate-600);
}

.rail__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.rail__glyph {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 16px;
  border: 1px solid rgba(41, 224, 214, .5);
  background:
    radial-gradient(circle at 28% 22%, rgba(41, 224, 214, .38), rgba(162, 107, 255, .18) 62%, transparent);
  color: var(--white);
  font-family: var(--font-head);
  font-size: 21px;
  font-weight: 800;
  letter-spacing: 0;
}

.rail__word {
  writing-mode: vertical-rl;
  color: var(--mist-100);
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .34em;
}

.rail__tag {
  writing-mode: vertical-rl;
  color: var(--mist-400);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .26em;
}

.rail__dot {
  margin-top: auto;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--violet-400);
  box-shadow: 0 0 0 5px rgba(162, 107, 255, .14);
  animation: railPulse 3.2s ease-in-out infinite;
}

@keyframes railPulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(162, 107, 255, .12); }
  50%      { box-shadow: 0 0 0 10px rgba(162, 107, 255, .04); }
}

/* 5.2 命令栏 */
.cmdbar {
  position: fixed;
  top: 0;
  left: var(--rail-w);
  right: 0;
  height: var(--cmdbar-h);
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 var(--gutter);
  background: linear-gradient(180deg, rgba(14, 22, 48, .97), rgba(7, 12, 27, .95));
  border-bottom: 1px solid var(--slate-600);
}

.cmdbar__home {
  display: none;
  flex-direction: column;
  flex: 0 0 auto;
  line-height: 1.2;
}

.cmdbar__mark {
  font-family: var(--font-head);
  font-size: 17px;
  font-weight: 800;
  color: var(--white);
  letter-spacing: .04em;
}

.cmdbar__sub {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .22em;
  color: var(--cyan-400);
}

.nav { flex: 0 1 auto; min-width: 0; }

.nav__list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav__link {
  display: flex;
  align-items: baseline;
  gap: 6px;
  padding: 9px 12px;
  border-radius: var(--r-pill);
  color: var(--mist-400);
  font-size: 13.5px;
  line-height: 1.2;
  white-space: nowrap;
  transition: color .18s var(--ease), background-color .18s var(--ease);
}

.nav__idx {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  color: rgba(154, 166, 196, .6);
  transition: color .18s var(--ease);
}

.nav__label { position: relative; }

.nav__link:hover {
  color: var(--mist-100);
  background: rgba(41, 224, 214, .08);
}

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

.nav__link[aria-current="page"] {
  color: var(--white);
  background: rgba(162, 107, 255, .16);
}

.nav__link[aria-current="page"] .nav__idx { color: var(--violet-400); }

.nav__link[aria-current="page"] .nav__label::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -5px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--violet-400), rgba(162, 107, 255, 0));
}

/* 5.3 命令栏工具区 */
.cmdbar__tools {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.tool {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border: 1px solid var(--slate-600);
  border-radius: var(--r-pill);
  color: var(--mist-400);
  font-size: 13px;
  line-height: 1.2;
  white-space: nowrap;
  transition: color .18s var(--ease), border-color .18s var(--ease), background-color .18s var(--ease);
}

.tool:hover {
  color: var(--cyan-400);
  border-color: rgba(41, 224, 214, .5);
}

.tool[aria-expanded="true"] {
  color: var(--cyan-400);
  border-color: var(--cyan-400);
  background: rgba(41, 224, 214, .1);
}

.tool__icon {
  position: relative;
  width: 13px;
  height: 13px;
  border: 1.6px solid currentColor;
  border-radius: 50%;
}

.tool__icon::after {
  content: "";
  position: absolute;
  right: -5px;
  bottom: -4px;
  width: 7px;
  height: 1.6px;
  border-radius: 2px;
  background: currentColor;
  transform: rotate(45deg);
}

.tool__bars { display: grid; gap: 4px; }

.tool__bars i {
  display: block;
  width: 15px;
  height: 1.6px;
  border-radius: 2px;
  background: currentColor;
}

.tool--menu { display: none; }

/* 5.4 滚动进度 */
.progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  overflow: hidden;
}

.progress__bar {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--cyan-400), var(--violet-400));
  transition: width .12s linear;
}

/* 5.5 检索带 */
.searchband {
  position: fixed;
  top: var(--cmdbar-h);
  left: var(--rail-w);
  right: 0;
  z-index: 59;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  padding: 18px var(--gutter) 20px;
  background: linear-gradient(180deg, #101A38, rgba(9, 15, 33, .98));
  border-bottom: 1px solid var(--slate-600);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s linear;
}

.searchband[data-open] {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.searchband__label {
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .22em;
  color: var(--cyan-400);
}

.searchband__input {
  flex: 1 1 300px;
  min-width: 0;
  padding: 12px 22px;
  border: 1px solid var(--slate-600);
  border-radius: var(--r-pill);
  background: rgba(7, 12, 27, .82);
  color: var(--mist-100);
  font-size: 15px;
  outline: none;
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}

.searchband__input::placeholder { color: rgba(154, 166, 196, .72); }

.searchband__input:focus {
  border-color: var(--cyan-400);
  box-shadow: 0 0 0 4px rgba(41, 224, 214, .16);
}

.searchband__hint {
  flex: 1 1 100%;
  font-size: 13px;
  line-height: 1.6;
  color: var(--mist-400);
}

/* ---------- 6 · 通用按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background-color .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease);
}

.btn--cta {
  background: linear-gradient(135deg, var(--cyan-400), #1CB2AA);
  color: #04140F;
  box-shadow: 0 6px 22px rgba(41, 224, 214, .26);
}

.btn--cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(41, 224, 214, .4);
}

.btn--gold {
  background: linear-gradient(135deg, var(--gold-300), #DFA746);
  color: #1A1204;
  box-shadow: 0 6px 22px rgba(245, 196, 107, .22);
}

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

.btn--ghost {
  border-color: var(--slate-600);
  color: var(--mist-100);
}

.btn--ghost:hover {
  border-color: rgba(41, 224, 214, .55);
  color: var(--cyan-400);
}

/* ---------- 7 · 版式与基础组件 ---------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(48px, 7vw, 96px); }

.band {
  min-height: 160px;
  padding: clamp(28px, 4vw, 48px) var(--gutter);
  border-block: 1px solid var(--slate-600);
  background: linear-gradient(115deg, var(--ink-800) 0%, #0A1124 62%, var(--ink-900) 100%);
}

.band--cyan {
  background: linear-gradient(115deg, var(--cyan-900) 0%, #08303A 52%, var(--ink-900) 100%);
  border-block-color: rgba(41, 224, 214, .28);
}

.band--ink { background: var(--ink-800); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .24em;
  color: var(--cyan-400);
}

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

.mono {
  font-family: var(--font-mono);
  font-size: .86em;
  letter-spacing: .06em;
  color: var(--mist-400);
}

.lead {
  max-width: 36ch;
  font-size: 18px;
  line-height: 1.85;
  color: var(--mist-400);
}

.card {
  padding: clamp(20px, 2.6vw, 30px);
  border: 1px solid var(--slate-600);
  border-radius: var(--r-lg);
  background: linear-gradient(160deg, rgba(14, 22, 48, .92), rgba(9, 14, 30, .92));
  transition: transform .18s var(--ease), border-color .18s var(--ease);
}

.card:hover {
  transform: translateY(-6px);
  border-color: rgba(41, 224, 214, .45);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border: 1px solid var(--slate-600);
  border-radius: var(--r-pill);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--mist-400);
}

.tag--gold { color: var(--gold-300); border-color: rgba(245, 196, 107, .45); }

.tag--violet { color: var(--violet-400); border-color: rgba(162, 107, 255, .45); }

.hairline {
  display: block;
  height: 1px;
  border: 0;
  background: linear-gradient(90deg, rgba(41, 224, 214, .8), rgba(41, 224, 214, 0));
  transform: rotate(var(--slant));
  transform-origin: left center;
}

/* 7.1 图片容器（页面阶段放入 img） */
.frame {
  position: relative;
  display: block;
  overflow: hidden;
  border: 1px solid var(--slate-600);
  border-radius: var(--r-md);
  background: linear-gradient(135deg, var(--ink-800), #0A1122 70%, var(--ink-900));
}

.frame > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.frame--16-9 { aspect-ratio: 16 / 9; }
.frame--4-3  { aspect-ratio: 4 / 3; }
.frame--1-1  { aspect-ratio: 1 / 1; }
.frame--3-4  { aspect-ratio: 3 / 4; }

.frame__cap {
  position: absolute;
  left: 14px;
  bottom: 12px;
  padding: 4px 12px;
  border-radius: var(--r-pill);
  background: rgba(7, 12, 27, .74);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--mist-100);
}

/* ---------- 8 · 检索命中态（由 JS 添加） ---------- */
[data-searchable].is-search-hit {
  outline: 1px solid rgba(41, 224, 214, .85);
  outline-offset: 6px;
  border-radius: var(--r-md);
}

[data-searchable].is-search-dim { opacity: .3; }

/* ---------- 9 · 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(56px, 9vw, 120px);
  padding: clamp(40px, 6vw, 76px) var(--gutter) 26px;
  background: linear-gradient(180deg, var(--ink-800) 0%, #090F22 46%, #05080F 100%);
  border-top: 1px solid var(--slate-600);
}

.footer__beam {
  position: absolute;
  top: -1px;
  left: 0;
  width: min(460px, 52%);
  height: 2px;
  background: linear-gradient(90deg, var(--cyan-400), rgba(41, 224, 214, 0));
  transform: rotate(var(--slant));
  transform-origin: left top;
}

.footer__inner {
  max-width: var(--maxw);
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(220px, 1.5fr) minmax(140px, .8fr) minmax(150px, .9fr) minmax(250px, 1.5fr);
  gap: clamp(24px, 3vw, 52px);
}

.footer__mark {
  font-family: var(--font-head);
  font-size: 24px;
  font-weight: 800;
  color: var(--white);
  letter-spacing: .04em;
}

.footer__tag {
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .2em;
  color: var(--cyan-400);
}

.footer__note {
  margin-top: 16px;
  max-width: 34ch;
  font-size: 13.5px;
  line-height: 1.85;
  color: var(--mist-400);
}

.footer__title {
  margin-bottom: 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .26em;
  color: var(--cyan-400);
}

.footer__list > li + li { margin-top: 9px; }

.footer__list a {
  font-size: 14.5px;
  color: var(--mist-400);
  transition: color .18s var(--ease);
}

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

.footer__meta {
  margin-top: 20px;
  font-size: 13px;
  line-height: 1.9;
  color: var(--mist-400);
}

.footer__list--mono { font-family: var(--font-mono); }

.footer__item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
}

.footer__key {
  flex: 0 0 auto;
  min-width: 42px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .18em;
  color: var(--gold-300);
}

.footer__val {
  flex: 1 1 160px;
  min-width: 0;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.7;
  color: var(--mist-100);
  word-break: break-word;
}

.footer__item--stack .footer__val { flex: 1 1 100%; }

.copy {
  flex: 0 0 auto;
  padding: 4px 12px;
  border: 1px solid var(--slate-600);
  border-radius: var(--r-pill);
  color: var(--mist-400);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .06em;
  transition: color .18s var(--ease), border-color .18s var(--ease), background-color .18s var(--ease);
}

.copy:hover {
  color: var(--gold-300);
  border-color: rgba(245, 196, 107, .5);
}

.copy[data-copied="true"] {
  color: var(--cyan-400);
  border-color: var(--cyan-400);
  background: rgba(41, 224, 214, .1);
}

.footer__legal {
  max-width: var(--maxw);
  margin: clamp(32px, 4vw, 52px) auto 0;
  padding-top: 20px;
  border-top: 1px solid var(--slate-600);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 28px;
}

.footer__legal-line {
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.8;
  color: var(--mist-400);
}

.footer__legal-line--quiet { color: rgba(154, 166, 196, .68); }

/* ---------- 10 · 响应式 ---------- */
@media (max-width: 1320px) {
  .nav__idx { display: none; }
}

@media (max-width: 1150px) {
  :root { --rail-w: 0px; --cmdbar-h: 68px; }

  body { padding-left: 0; }

  .rail { display: none; }

  .cmdbar { left: 0; gap: 12px; }

  .cmdbar__home { display: flex; }

  .nav {
    position: fixed;
    top: var(--cmdbar-h);
    left: 0;
    right: 0;
    z-index: 58;
    display: none;
    max-height: calc(100vh - var(--cmdbar-h));
    overflow-y: auto;
    padding: 14px 16px 24px;
    background: linear-gradient(180deg, #101A38, #070C1B);
    border-bottom: 1px solid var(--slate-600);
    box-shadow: 0 24px 48px rgba(0, 0, 0, .5);
  }

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

  .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
  }

  .nav__link {
    justify-content: flex-start;
    padding: 14px 16px;
    border-radius: 16px;
    font-size: 16px;
  }

  .nav__idx { display: inline; min-width: 24px; }

  .nav__link[aria-current="page"] .nav__label::after { bottom: -6px; }

  .tool--menu { display: inline-flex; }

  .searchband { left: 0; }
}

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

  .footer__brand,
  .footer__col--contact { grid-column: 1 / -1; }

  .footer__note { max-width: 52ch; }
}

@media (max-width: 720px) {
  :root { --cmdbar-h: 62px; }

  body { font-size: 16px; }

  .cmdbar { padding-inline: 14px; gap: 10px; }

  .cmdbar__sub { display: none; }

  .tool { padding: 8px 12px; }

  .btn { padding: 10px 16px; font-size: 13px; }

  .searchband { padding: 14px 14px 16px; gap: 10px; }

  .searchband__input { flex: 1 1 100%; padding: 11px 18px; font-size: 14px; }

  .lead { max-width: none; font-size: 16.5px; }

  .footer__inner { grid-template-columns: minmax(0, 1fr); }

  .footer__legal { flex-direction: column; }
}

@media (max-width: 420px) {
  .tool__text { display: none; }
  .tool--menu .tool__text { display: inline; }
}

/* ---------- 11 · 动效降级 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

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

  .card:hover { transform: none; }
  .btn--cta:hover, .btn--gold:hover { transform: none; }
}
