/* ============================================================
   /assets/site.css — 大神娱乐中心 共享样式
   夜间导航台：深墨蓝底 · 电光青路径 · 琥珀金数字 · 霓虹紫活动
   ============================================================ */

/* ---------- 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, hr {
  margin: 0;
}

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

img, svg, video, canvas { max-width: 100%; height: auto; }

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

a { color: inherit; }

/* ---------- tokens ---------- */
:root {
  --ink: #07111F;
  --ink-2: #0D1B2E;
  --panel: #132A44;
  --cyan: #38E8FF;
  --amber: #FFB84D;
  --violet: #B14DFF;
  --fog: #EAF6FF;
  --mist: #8FB3C9;
  --coral: #FF6B7A;

  --line: rgba(143, 179, 201, 0.16);
  --line-strong: rgba(56, 232, 255, 0.34);

  --font-sans: 'Noto Sans SC', 'Source Han Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-mono: 'JetBrains Mono', 'IBM Plex Mono', 'SFMono-Regular', Consolas, 'Courier New', monospace;

  --wrap: 1200px;
  --gutter: clamp(1.1rem, 4vw, 2.5rem);
  --radius: 14px;
  --shadow: 0 26px 60px -42px rgba(0, 0, 0, 0.95);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- base typography ---------- */
body {
  min-height: 100vh;
  background-color: var(--ink);
  background-image:
    radial-gradient(900px 520px at 84% -8%, rgba(177, 77, 255, 0.16), transparent 70%),
    radial-gradient(760px 460px at 6% 2%, rgba(56, 232, 255, 0.12), transparent 68%),
    radial-gradient(1100px 700px at 50% 108%, rgba(255, 184, 77, 0.07), transparent 72%);
  background-repeat: no-repeat;
  color: var(--fog);
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.75;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-weight: 900;
  line-height: 1.16;
  letter-spacing: -0.02em;
  color: var(--fog);
}

h1 { font-size: clamp(2.2rem, 5vw, 5.4rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.6rem); }
h3 { font-size: clamp(1.12rem, 2vw, 1.5rem); letter-spacing: -0.01em; }
h4 { font-size: 1rem; letter-spacing: 0; }

p { max-width: 68ch; }

strong, b { font-weight: 800; color: var(--fog); }

::selection { background: rgba(56, 232, 255, 0.3); color: #ffffff; }

#main-content { display: block; }

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

/* ---------- layout ---------- */
.wrap {
  width: min(100% - (var(--gutter) * 2), var(--wrap));
  margin-inline: auto;
}

.section { padding-block: clamp(2.5rem, 6vw, 4.5rem); }

.section--shade {
  background-image: linear-gradient(180deg, rgba(13, 27, 46, 0.92), rgba(7, 17, 31, 0.2));
  border-block: 1px solid var(--line);
}

.grid {
  display: grid;
  gap: clamp(1rem, 2.2vw, 1.6rem);
}

.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 262px), 1fr)); }

.rule {
  height: 1px;
  border: 0;
  background-image: linear-gradient(90deg, var(--line-strong), rgba(56, 232, 255, 0));
  margin-block: clamp(1.5rem, 4vw, 2.5rem);
}

/* ---------- text helpers ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cyan);
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background-color: var(--cyan);
}

.lede {
  font-size: clamp(1rem, 1.35vw, 1.15rem);
  line-height: 1.85;
  color: var(--mist);
  max-width: 60ch;
}

.mono {
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}

.key-num {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(1.7rem, 3.6vw, 2.5rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--amber);
}

.section-head {
  display: grid;
  gap: 0.8rem;
  margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
  max-width: 64ch;
}

.section-title {
  position: relative;
  padding-top: 1.05rem;
}

.section-title::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 48px;
  height: 3px;
  border-radius: 3px;
  background-image: linear-gradient(90deg, var(--cyan), rgba(56, 232, 255, 0));
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 0.82em 1.3em;
  border: 1px solid transparent;
  border-radius: 10px;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s var(--ease), filter 0.18s var(--ease),
              border-color 0.18s var(--ease), background-color 0.18s var(--ease),
              color 0.18s var(--ease);
}

.btn--primary {
  background-image: linear-gradient(120deg, var(--cyan), #2ec3ff);
  color: #04121e;
  box-shadow: 0 12px 28px -16px rgba(56, 232, 255, 0.85);
}

.btn--ghost {
  background-color: rgba(56, 232, 255, 0.06);
  border-color: var(--line-strong);
  color: var(--fog);
}

.btn--amber {
  background-image: linear-gradient(120deg, var(--amber), #ffa02e);
  color: #1a1204;
  box-shadow: 0 12px 28px -18px rgba(255, 184, 77, 0.85);
}

.btn--primary:hover,
.btn--amber:hover { transform: translateY(-1px); filter: brightness(1.06); }

.btn--ghost:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  background-color: rgba(56, 232, 255, 0.12);
}

.btn:active { transform: translateY(0); }

/* ---------- tags ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.28em 0.72em;
  border: 1px solid rgba(143, 179, 201, 0.4);
  border-radius: 999px;
  background-color: rgba(143, 179, 201, 0.08);
  color: var(--mist);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.6;
}

.tag--cyan { color: var(--cyan); border-color: rgba(56, 232, 255, 0.45); background-color: rgba(56, 232, 255, 0.1); }
.tag--amber { color: var(--amber); border-color: rgba(255, 184, 77, 0.45); background-color: rgba(255, 184, 77, 0.1); }
.tag--violet { color: var(--violet); border-color: rgba(177, 77, 255, 0.5); background-color: rgba(177, 77, 255, 0.14); }

/* ---------- panels ---------- */
.panel {
  position: relative;
  padding: clamp(1.1rem, 2.4vw, 1.7rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background-image: linear-gradient(155deg, rgba(19, 42, 68, 0.9), rgba(13, 27, 46, 0.92));
  box-shadow: var(--shadow);
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.panel:hover { border-color: rgba(56, 232, 255, 0.4); }

.panel--cut {
  border-radius: 0;
  clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 20px 100%, 0 calc(100% - 20px));
}

/* ---------- media frames（图片占位基础规则） ---------- */
.media-frame {
  position: relative;
  display: block;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background-color: var(--panel);
  background-image:
    linear-gradient(140deg, rgba(56, 232, 255, 0.14), rgba(177, 77, 255, 0.12) 55%, rgba(255, 184, 77, 0.1));
}

.media-frame--wide { aspect-ratio: 21 / 9; }
.media-frame--tall { aspect-ratio: 3 / 4; }

.media-frame > img,
.media-frame > picture,
.media-frame > picture > img,
.media-frame > svg,
.media-frame > video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- breadcrumb ---------- */
.breadcrumb {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.breadcrumb li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--mist);
}

.breadcrumb li + li::before {
  content: "/";
  color: rgba(143, 179, 201, 0.5);
}

.breadcrumb a { text-decoration: none; color: var(--mist); }
.breadcrumb a:hover { color: var(--cyan); }
.breadcrumb [aria-current="page"] { color: var(--fog); }

/* ---------- reveal ---------- */
.js-on [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.24s var(--ease), transform 0.24s var(--ease);
}

.js-on [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ============================================================
   HEADER
   ============================================================ */
.skip-link {
  position: fixed;
  top: -100px;
  left: 1rem;
  z-index: 400;
  padding: 0.7rem 1.15rem;
  border-radius: 8px;
  background-color: var(--cyan);
  color: #04121e;
  font-weight: 800;
  text-decoration: none;
  transition: top 0.18s var(--ease);
}

.skip-link:focus { top: 0.6rem; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 120;
  background-color: rgba(7, 17, 31, 0.94);
  border-bottom: 1px solid var(--line);
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease),
              box-shadow 0.2s var(--ease);
}

@supports (backdrop-filter: blur(1px)) {
  .site-header { backdrop-filter: blur(10px); }
}

.site-header[data-scrolled="true"] {
  background-color: rgba(7, 17, 31, 0.99);
  border-bottom-color: rgba(56, 232, 255, 0.32);
  box-shadow: 0 14px 34px -26px rgba(56, 232, 255, 0.75);
}

.header-rail {
  border-bottom: 1px solid rgba(143, 179, 201, 0.12);
}

.rail-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 34px;
  padding-block: 0.3rem;
}

.rail-brand {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--mist);
}

.rail-status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--amber);
  white-space: nowrap;
}

.rail-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--amber);
  box-shadow: 0 0 0 3px rgba(255, 184, 77, 0.16);
}

.header-deck {
  position: relative;
  background-image: linear-gradient(180deg, rgba(13, 27, 46, 0.62), rgba(7, 17, 31, 0.28));
}

.deck-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 74px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--fog);
}

.brand-mark {
  display: inline-flex;
  align-items: flex-end;
  gap: 3px;
  width: 36px;
  height: 36px;
  padding: 7px;
  border: 1px solid rgba(56, 232, 255, 0.38);
  border-radius: 11px;
  background-image: linear-gradient(140deg, rgba(56, 232, 255, 0.2), rgba(177, 77, 255, 0.18));
}

.brand-mark i {
  display: block;
  width: 4px;
  border-radius: 2px;
}

.brand-mark i:nth-child(1) { height: 8px; background-color: var(--cyan); opacity: 0.6; }
.brand-mark i:nth-child(2) { height: 14px; background-color: var(--amber); }
.brand-mark i:nth-child(3) { height: 20px; background-color: var(--violet); }

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-name {
  font-size: 1.06rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  color: var(--fog);
}

.brand-sub {
  margin-top: 0.22rem;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--mist);
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.55rem;
  position: relative;
  z-index: 95;
  padding: 0.6rem 0.9rem;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background-color: rgba(56, 232, 255, 0.08);
  color: var(--fog);
  font-family: var(--font-sans);
  font-size: 0.84rem;
  font-weight: 800;
  cursor: pointer;
}

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

.nav-toggle-bars {
  position: relative;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background-color: var(--cyan);
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background-color: var(--cyan);
  transition: transform 0.2s var(--ease), top 0.2s var(--ease);
}

.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }

.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background-color: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { top: 0; transform: rotate(-45deg); }

.nav-toggle-label { letter-spacing: 0.08em; }

.nav-zone {
  display: flex;
  align-items: center;
  gap: clamp(0.9rem, 2vw, 1.6rem);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(0.35rem, 1.4vw, 1.1rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-link {
  position: relative;
  display: inline-block;
  padding: 0.45rem 0.1rem;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--mist);
  transition: color 0.18s var(--ease);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background-image: linear-gradient(90deg, var(--cyan), var(--violet));
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.2s var(--ease);
}

.nav-link:hover { color: var(--fog); }
.nav-link:hover::after { transform: scaleX(1); }

.nav-link[aria-current="page"] { color: var(--cyan); }
.nav-link[aria-current="page"]::after { transform: scaleX(1); }

.header-cta {
  flex: none;
  padding: 0.62em 1.05em;
  font-size: 0.82rem;
}

.progress-rail {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  pointer-events: none;
  background-color: transparent;
}

.progress-bar {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  background-image: linear-gradient(90deg, var(--cyan), var(--amber) 62%, var(--violet));
}

body.nav-locked { overflow: hidden; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  margin-top: clamp(3rem, 8vw, 6rem);
  padding-block: clamp(2.25rem, 5vw, 3.5rem) 1.5rem;
  border-top: 1px solid rgba(56, 232, 255, 0.18);
  background-image: linear-gradient(180deg, var(--ink-2), #050c16 82%);
  color: var(--mist);
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 2fr);
  gap: clamp(1.75rem, 4vw, 3.5rem);
  align-items: start;
}

.footer-brand { display: grid; gap: 0.9rem; justify-items: start; }

.footer-mark {
  margin: 0;
  font-size: clamp(1.3rem, 2.4vw, 1.85rem);
  font-weight: 900;
  letter-spacing: 0.01em;
  color: var(--fog);
}

.footer-summary {
  margin: 0;
  max-width: 30ch;
  font-size: 0.94rem;
  line-height: 1.8;
  color: var(--mist);
}

.footer-cta { font-size: 0.84rem; }

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.25rem, 3vw, 2.25rem);
}

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

.footer-title {
  margin: 0 0 0.9rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cyan);
}

.footer-list {
  display: grid;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-list a {
  font-size: 0.9rem;
  text-decoration: none;
  color: var(--mist);
  transition: color 0.18s var(--ease);
}

.footer-list a:hover {
  color: var(--fog);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.footer-contact {
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  line-height: 1.85;
  letter-spacing: 0.01em;
  color: var(--mist);
  word-break: break-word;
}

.footer-contact li { color: var(--mist); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  margin-top: clamp(1.75rem, 4vw, 2.4rem);
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
}

.footer-note {
  margin: 0;
  max-width: 52ch;
  font-size: 0.78rem;
  line-height: 1.8;
  color: var(--mist);
}

.footer-legal {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  color: var(--mist);
}

.to-top {
  position: fixed;
  right: clamp(1rem, 3vw, 2rem);
  bottom: clamp(1rem, 3vw, 2rem);
  z-index: 140;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.68em 1em;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background-color: rgba(19, 42, 68, 0.95);
  color: var(--fog);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease),
              visibility 0.2s, border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.to-top::before { content: "↑"; font-size: 0.9rem; line-height: 1; }

.to-top:hover { border-color: var(--cyan); color: var(--cyan); }

.to-top.is-on {
  opacity: 1;
  visibility: visible;
  transform: none;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .header-rail { display: none; }

  .deck-inner { min-height: 64px; gap: 0.75rem; }

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

  .nav-zone {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding: 5.25rem var(--gutter) 2.5rem;
    overflow-y: auto;
    background-image: linear-gradient(180deg, rgba(7, 17, 31, 0.99), rgba(13, 27, 46, 0.99));
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0.2s;
  }

  .nav-zone[data-open="true"] {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .site-nav {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border-top: 1px solid var(--line);
  }

  .site-nav li { border-bottom: 1px solid var(--line); }

  .nav-link {
    display: block;
    padding: 1rem 0.25rem;
    font-size: 1.05rem;
  }

  .nav-link::after { display: none; }

  .nav-link[aria-current="page"] { padding-left: 0.95rem; }

  .nav-link[aria-current="page"]::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 4px;
    height: 18px;
    border-radius: 2px;
    background-color: var(--cyan);
    transform: translateY(-50%);
  }

  .header-cta {
    margin-top: 1.4rem;
    justify-content: center;
    padding: 0.95em 1.2em;
    font-size: 0.95rem;
  }

  .footer-top { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-col--wide { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  .brand-sub { display: none; }
  .brand-mark { width: 32px; height: 32px; padding: 6px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-summary { max-width: none; }
  .footer-bottom { align-items: flex-start; }
  .to-top { font-size: 0.66rem; padding: 0.62em 0.9em; }
}

/* ============================================================
   MOTION PREFERENCES
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

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

  .js-on [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .progress-bar { transition: none; }
}
