/* ============================================================
   电玩777游 · /assets/site.css
   共享外壳：reset / 变量 / 中文排版 / 头部 / 页脚 / 通用组件
   ============================================================ */

:root {
  --ink-900: #080B10;
  --ink-850: #0A0F16;
  --ink-800: #0B1118;
  --ink-700: #111823;
  --line: #1D2836;
  --line-soft: #16202C;

  --cyan: #19E6FF;
  --cyan-deep: #0B7F8C;
  --magenta: #FF2E88;
  --amber: #FFB800;
  --silver: #A7B0BF;
  --white: #F2F6FF;
  --green: #4DFFB0;
  --red: #FF5C5C;

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

  --shell-max: 1440px;
  --gutter: 5vw;
  --header-h: 122px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

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

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

body {
  margin: 0;
  padding-top: var(--header-h);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  color: var(--white);
  background-color: var(--ink-900);
  background-image:
    radial-gradient(900px 520px at 10% -10%, rgba(25, 230, 255, .13), transparent 64%),
    radial-gradient(760px 460px at 92% 2%, rgba(255, 46, 136, .09), transparent 62%),
    linear-gradient(180deg, #080B10 0%, #0B1118 42%, #080B10 100%);
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: repeating-linear-gradient(180deg, rgba(255, 255, 255, .03) 0 1px, transparent 1px 4px);
  opacity: .38;
  mix-blend-mode: screen;
}

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

a { color: var(--cyan); }

img { display: block; max-width: 100%; height: auto; }

button { font: inherit; }

#main-content { scroll-margin-top: calc(var(--header-h) + 18px); }

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

/* ---------- 限宽容器 ---------- */
.container,
.header-top__inner,
.header-main__inner,
.footer-inner {
  width: 100%;
  max-width: var(--shell-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ============================================================
   头部
   ============================================================ */

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 200;
  transform: translateY(-160%);
  padding: 10px 16px;
  background: var(--cyan);
  color: #06111A;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .08em;
  text-decoration: none;
  transition: transform .18s var(--ease);
}

.skip-link:focus { transform: translateY(0); }

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  background: rgba(8, 11, 16, .95);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .45);
  transition: box-shadow .25s var(--ease);
}

.site-header[data-stuck] {
  box-shadow: 0 20px 48px rgba(0, 0, 0, .72), 0 1px 0 rgba(25, 230, 255, .3);
}

/* 上层状态甲板 */
.header-top {
  max-height: 56px;
  overflow: hidden;
  background: linear-gradient(90deg, #0B1118 0%, #0A1017 55%, #0B1118 100%);
  border-bottom: 1px solid var(--line-soft);
  transition: max-height .3s var(--ease), opacity .2s var(--ease);
}

.site-header[data-stuck] .header-top {
  max-height: 0;
  opacity: 0;
}

.header-top__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 44px;
}

.header-top__note {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .06em;
  color: var(--silver);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.header-top__note::before {
  content: "";
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  background: var(--green);
  box-shadow: 0 0 8px rgba(77, 255, 176, .9);
}

.header-util {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 0 0 auto;
}

.header-util__link {
  padding: 5px 9px;
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--silver);
  text-decoration: none;
  border: 1px solid transparent;
  transition: color .18s var(--ease), border-color .18s var(--ease);
}

.header-util__link:hover,
.header-util__link:focus-visible {
  color: var(--cyan);
  border-color: rgba(25, 230, 255, .45);
}

.header-cta {
  margin-left: 10px;
  display: inline-flex;
  align-items: center;
  padding: 7px 15px;
  background: var(--amber);
  color: #0A0D12;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .1em;
  text-decoration: none;
  clip-path: polygon(9px 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%, 0 9px);
  transition: transform .18s var(--ease), filter .18s var(--ease);
}

.header-cta:hover { transform: translateY(-1px); filter: brightness(1.12); }

.header-cta:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 0;
  box-shadow: inset 0 0 0 2px #080B10, inset 0 0 0 4px var(--cyan);
}

/* 下层品牌与导航 */
.header-main { position: relative; }

.header-main__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
  transition: min-height .3s var(--ease);
}

.site-header[data-stuck] .header-main__inner { min-height: 60px; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  text-decoration: none;
  color: var(--white);
}

.brand__mark {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .14em;
  padding: 6px 8px;
  color: var(--cyan);
  border: 2px solid var(--cyan);
  box-shadow: 0 0 18px rgba(25, 230, 255, .35), inset 0 0 14px rgba(25, 230, 255, .18);
  text-shadow: 0 0 10px rgba(25, 230, 255, .9);
  transition: box-shadow .2s var(--ease);
}

.brand:hover .brand__mark,
.brand:focus-visible .brand__mark {
  box-shadow: 0 0 26px rgba(25, 230, 255, .6), inset 0 0 16px rgba(25, 230, 255, .3);
}

.brand__name {
  display: block;
  font-size: 17px;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: .06em;
}

.brand__sub {
  display: block;
  margin-top: 3px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: .26em;
  color: var(--silver);
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 9px 12px;
  background: #0E1520;
  border: 1px solid rgba(25, 230, 255, .45);
  color: var(--cyan);
  font-size: 12.5px;
  letter-spacing: .1em;
  cursor: pointer;
  transition: border-color .18s var(--ease), background .18s var(--ease);
}

.nav-toggle:hover { background: rgba(25, 230, 255, .1); }

.nav-toggle__bars {
  display: inline-flex;
  flex-direction: column;
  gap: 3px;
  width: 16px;
}

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

.site-header[data-open] .nav-toggle__bars i:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.site-header[data-open] .nav-toggle__bars i:nth-child(2) { opacity: 0; }
.site-header[data-open] .nav-toggle__bars i:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

.nav-toggle__label { font-weight: 700; }

.site-nav { display: block; }

.site-nav__list {
  display: flex;
  align-items: center;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav__item { display: block; }

.site-nav__link {
  position: relative;
  display: block;
  padding: 12px 11px;
  font-size: 14.5px;
  letter-spacing: .02em;
  color: #C3CEDD;
  text-decoration: none;
  white-space: nowrap;
  transition: color .18s var(--ease);
}

.site-nav__link::after {
  content: "";
  position: absolute;
  left: 11px;
  right: 11px;
  bottom: 3px;
  height: 2px;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .22s var(--ease), box-shadow .22s var(--ease);
}

.site-nav__link:hover { color: var(--white); }
.site-nav__link:hover::after { transform: scaleX(1); }

.site-nav__link[aria-current="page"] {
  color: var(--cyan);
  text-shadow: 0 0 14px rgba(25, 230, 255, .6);
}

.site-nav__link[aria-current="page"]::after {
  transform: scaleX(1);
  box-shadow: 0 0 10px rgba(25, 230, 255, .9);
}

/* 阅读进度 */
.readout {
  height: 2px;
  background: rgba(29, 40, 54, .85);
  overflow: hidden;
}

.readout__bar {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--cyan-deep), var(--cyan));
  box-shadow: 0 0 12px rgba(25, 230, 255, .9);
}

/* ============================================================
   页脚
   ============================================================ */

.site-footer {
  position: relative;
  margin-top: 110px;
  background: linear-gradient(180deg, #0B1118 0%, #0A0F16 45%, #080B10 100%);
  border-top: 1px solid var(--line);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 4px;
  background: repeating-linear-gradient(90deg,
    var(--cyan) 0 22px,
    var(--magenta) 22px 44px,
    var(--amber) 44px 66px,
    var(--line) 66px 88px);
  opacity: .8;
}

.footer-inner { padding-block: 58px 28px; }

.footer-crest {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px 28px;
  padding-bottom: 34px;
  border-bottom: 1px solid var(--line-soft);
}

.footer-crest__mark {
  font-family: var(--font-mono);
  font-size: clamp(52px, 8vw, 104px);
  line-height: .8;
  letter-spacing: .04em;
  color: transparent;
  -webkit-text-stroke: 2px rgba(25, 230, 255, .45);
  text-shadow: 0 0 44px rgba(25, 230, 255, .28);
}

.footer-crest__text {
  flex: 1 1 240px;
  min-width: 0;
}

.footer-crest__word {
  font-size: 20px;
  font-weight: 900;
  letter-spacing: .1em;
}

.footer-crest__tag {
  margin-top: 6px;
  font-size: 13.5px;
  letter-spacing: .04em;
  color: var(--silver);
}

.footer-readout {
  flex: 0 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  background: rgba(8, 11, 16, .7);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
}

.footer-readout__key { color: rgba(167, 176, 191, .78); }

.footer-readout__val {
  color: var(--amber);
  font-variant-numeric: tabular-nums;
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  padding-block: 40px;
  border-bottom: 1px solid var(--line-soft);
}

.footer-col { min-width: 0; }

.footer-col__title {
  position: relative;
  margin: 0 0 16px;
  padding-left: 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .2em;
  color: var(--cyan);
}

.footer-col__title::before {
  content: "";
  position: absolute;
  left: 0;
  top: .45em;
  width: 6px;
  height: 6px;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
}

.footer-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-link {
  position: relative;
  display: inline-block;
  padding: 6px 0;
  font-size: 14px;
  color: #B9C4D4;
  text-decoration: none;
  transition: color .18s var(--ease), transform .18s var(--ease);
}

.footer-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 2px;
  width: 0;
  height: 1px;
  background: var(--cyan);
  transition: width .2s var(--ease);
}

.footer-link:hover { color: var(--cyan); transform: translateX(2px); }
.footer-link:hover::after { width: 100%; }

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .03em;
  color: var(--silver);
  overflow-wrap: anywhere;
}

.footer-contact__line { display: block; }

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
  padding-block: 22px 0;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--silver);
}

.footer-legal__links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
}

.footer-legal .footer-link {
  padding: 2px 0;
  font-size: 12px;
  color: var(--silver);
}

.footer-legal__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin-left: auto;
  font-variant-numeric: tabular-nums;
}

.footer-legal__icp { color: var(--silver); }
.footer-legal__copy { color: rgba(167, 176, 191, .7); }

.footer-note {
  padding-block: 14px 34px;
  font-size: 12px;
  letter-spacing: .03em;
  color: rgba(167, 176, 191, .7);
}

/* ============================================================
   通用组件（页面阶段使用）
   ============================================================ */

.section { padding-block: 64px; }

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

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

.divider {
  height: 1px;
  border: 0;
  background: linear-gradient(90deg, var(--line), rgba(29, 40, 54, 0));
}

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

.span-4 { grid-column: span 4; }
.span-5 { grid-column: span 5; }
.span-6 { grid-column: span 6; }
.span-7 { grid-column: span 7; }
.span-8 { grid-column: span 8; }
.span-12 { grid-column: span 12; }

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  background: var(--cyan);
  border: 2px solid var(--cyan);
  color: #06111A;
  font-family: inherit;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .06em;
  text-decoration: none;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background .18s var(--ease), color .18s var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(25, 230, 255, .28);
}

.btn:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 0;
  box-shadow: inset 0 0 0 2px #080B10, inset 0 0 0 4px var(--white);
}

.btn--ghost {
  background: transparent;
  border-color: rgba(25, 230, 255, .6);
  color: var(--cyan);
}

.btn--ghost:hover {
  background: rgba(25, 230, 255, .1);
  box-shadow: 0 12px 28px rgba(25, 230, 255, .18);
}

/* 面包屑 */
.breadcrumb {
  margin: 26px 0 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--silver);
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.breadcrumb li { display: flex; align-items: center; gap: 8px; }

.breadcrumb li + li::before {
  content: "/";
  color: rgba(167, 176, 191, .45);
}

.breadcrumb a {
  color: var(--silver);
  text-decoration: none;
  transition: color .18s var(--ease);
}

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

/* 面板 */
.panel {
  position: relative;
  padding: 24px;
  background: linear-gradient(180deg, #111823, #0C121A);
  border: 1px solid var(--line);
}

.panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), rgba(25, 230, 255, 0));
}

/* 标签 */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  border: 1px solid currentColor;
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .08em;
  line-height: 1.6;
}

.tag--magenta { color: var(--magenta); }
.tag--amber { color: var(--amber); }

/* 筛选 chips */
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  padding: 8px 14px;
  background: #0E1520;
  border: 1px solid var(--line);
  color: #C3CEDD;
  font-family: inherit;
  font-size: 13.5px;
  letter-spacing: .04em;
  cursor: pointer;
  transition: color .18s var(--ease), border-color .18s var(--ease), background .18s var(--ease);
}

.chip:hover,
.chip[aria-pressed="true"] {
  color: var(--cyan);
  border-color: var(--cyan);
  background: rgba(25, 230, 255, .1);
}

/* 图片容器 */
.media {
  position: relative;
  display: block;
  overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, #111823, #0A0F16);
}

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

.media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(180deg, rgba(8, 11, 16, .26) 0 2px, transparent 2px 4px);
  opacity: .6;
}

.media--16x9 { aspect-ratio: 16 / 9; }
.media--4x3 { aspect-ratio: 4 / 3; }
.media--1x1 { aspect-ratio: 1 / 1; }

.media__ph {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .18em;
  color: rgba(167, 176, 191, .72);
  background:
    radial-gradient(circle at 28% 18%, rgba(25, 230, 255, .2), transparent 60%),
    radial-gradient(circle at 82% 88%, rgba(255, 46, 136, .16), transparent 56%),
    #0A0F16;
}

/* ============================================================
   响应式
   ============================================================ */

@media (max-width: 1120px) {
  :root { --header-h: 114px; }

  .header-main__inner { min-height: 68px; }
  .site-header[data-stuck] .header-main__inner { min-height: 56px; }

  .nav-toggle { display: inline-flex; }

  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    display: none;
    padding: 10px var(--gutter) 22px;
    background: linear-gradient(180deg, #0B1118, #080B10);
    border-bottom: 2px solid var(--cyan);
    box-shadow: 0 30px 60px rgba(0, 0, 0, .72);
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }

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

  .site-nav__list {
    flex-direction: column;
    align-items: stretch;
  }

  .site-nav__link {
    padding: 15px 6px;
    font-size: 16px;
    border-bottom: 1px solid var(--line-soft);
  }

  .site-nav__link::after { left: 6px; right: auto; width: 0; bottom: 8px; transform: none; }
  .site-nav__link:hover::after { width: 42px; }
  .site-nav__link[aria-current="page"]::after { width: 42px; transform: none; }

  .span-4, .span-5, .span-6, .span-7, .span-8 { grid-column: span 12; }
  .grid { gap: 18px; }
}

@media (max-width: 900px) {
  .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; }
  .footer-crest { align-items: flex-start; }
}

@media (max-width: 720px) {
  :root { --header-h: 102px; }

  .header-top__inner { min-height: 38px; gap: 12px; }
  .header-top__note { font-size: 10.5px; letter-spacing: .02em; }
  .header-util__link { display: none; }
  .header-cta { margin-left: 0; padding: 6px 12px; font-size: 11px; }

  .header-main__inner { min-height: 62px; gap: 14px; }
  .brand__name { font-size: 15.5px; }
  .brand__sub { display: none; }
  .brand__mark { font-size: 12.5px; padding: 5px 7px; }

  .section { padding-block: 44px; }
  .site-footer { margin-top: 72px; }
  .footer-inner { padding-block: 40px 22px; }
}

@media (max-width: 620px) {
  .footer-cols { grid-template-columns: 1fr; }
  .footer-crest__mark { font-size: 64px; }
  .footer-legal__meta { margin-left: 0; }
  .btn { width: 100%; justify-content: center; }
}

/* ============================================================
   动效克制
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

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