/* ============================================================
   银河娱乐 · /assets/site.css
   共享层：reset / 变量 / 中文排版 / 页头 / 页脚 / 基础组件
   ============================================================ */

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

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

body, h1, h2, h3, h4, h5, p, ul, ol, li, figure, blockquote, address { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
address { font-style: normal; }

:root {
  --void: #04050c;
  --deep: #070a14;
  --ink: #0d1222;
  --panel: rgba(18, 24, 44, 0.68);
  --panel-solid: #101729;
  --line: rgba(150, 162, 220, 0.16);
  --line-2: rgba(150, 162, 220, 0.34);
  --violet: #7b5cff;
  --violet-2: #a98cff;
  --cyan: #48e9d0;
  --cyan-2: #2ec8ff;
  --magenta: #ff5cd6;
  --amber: #ffb454;
  --amber-2: #ffd692;
  --text: #eceaf7;
  --text-2: #b4b0d0;
  --text-3: #7c789b;
  --focus: #48e9d0;
  --radius: 16px;
  --radius-s: 9px;
  --maxw: 1260px;
  --gutter: clamp(18px, 4vw, 44px);
  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC",
    "Noto Sans CJK SC", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;
}

body {
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: clamp(15px, 1.05vw, 16.5px);
  line-height: 1.85;
  letter-spacing: 0.012em;
  color: var(--text);
  background-color: var(--void);
  background-image:
    radial-gradient(1100px 700px at 12% -8%, rgba(123, 92, 255, 0.20), transparent 62%),
    radial-gradient(900px 640px at 96% 4%, rgba(72, 233, 208, 0.13), transparent 60%),
    radial-gradient(1200px 900px at 58% 108%, rgba(255, 92, 214, 0.10), transparent 66%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.5;
  background-image:
    radial-gradient(1.4px 1.4px at 30px 40px, rgba(255, 255, 255, 0.60) 50%, transparent 51%),
    radial-gradient(1.1px 1.1px at 132px 92px, rgba(150, 220, 255, 0.55) 50%, transparent 51%),
    radial-gradient(1.6px 1.6px at 244px 182px, rgba(255, 255, 255, 0.38) 50%, transparent 51%),
    radial-gradient(1px 1px at 92px 222px, rgba(200, 170, 255, 0.55) 50%, transparent 51%);
  background-size: 300px 300px;
}

#main-content {
  display: block;
  position: relative;
  z-index: 1;
  scroll-margin-top: 92px;
}

a, button, [tabindex] { -webkit-tap-highlight-color: transparent; }

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

/* ---------- 排版基础 ---------- */

h1, h2, h3, h4 {
  line-height: 1.26;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.06em;
}

p { color: var(--text-2); }

.mono { font-family: var(--font-mono); letter-spacing: 0.06em; }
.text-dim { color: var(--text-3); font-size: 0.86em; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- 布局容器 ---------- */

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--cyan);
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan));
}

.section-title {
  margin-top: 14px;
  font-size: clamp(24px, 3.4vw, 42px);
}

.section-lead {
  margin-top: 16px;
  max-width: 64ch;
  font-size: 15px;
  color: var(--text-2);
}

/* ---------- 网格 ---------- */

.grid { display: grid; gap: clamp(16px, 2vw, 26px); }
.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)); }

/* ---------- 按钮 ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 12px 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.1em;
  white-space: nowrap;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease,
    color 0.2s ease, border-color 0.2s ease;
}

.btn-primary {
  color: #1a1204;
  background: linear-gradient(135deg, var(--amber), var(--amber-2));
  box-shadow: 0 10px 26px rgba(255, 180, 84, 0.26);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(255, 180, 84, 0.36);
}

.btn-ghost {
  color: var(--text-2);
  border-color: var(--line-2);
}
.btn-ghost:hover {
  color: #fff;
  border-color: var(--cyan);
  background: rgba(72, 233, 208, 0.09);
}

.btn-quiet {
  padding-inline: 4px;
  color: var(--cyan);
  letter-spacing: 0.08em;
}
.btn-quiet:hover { color: #fff; }

/* ---------- 面板 ---------- */

.panel,
.panel-solid {
  border-radius: var(--radius);
  padding: clamp(18px, 2.4vw, 30px);
}

.panel {
  border: 1px solid var(--line);
  background: var(--panel);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
}

.panel-solid {
  border: 1px solid var(--line);
  background: var(--panel-solid);
}

/* ---------- 数据／标签／轨迹 ---------- */

.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
  overflow: hidden;
}

.stat { background: var(--deep); padding: 20px 22px; }

.stat-value {
  font-family: var(--font-mono);
  font-size: clamp(20px, 2.4vw, 28px);
  letter-spacing: 0.04em;
  color: #fff;
}

.stat-label {
  margin-top: 6px;
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--text-3);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-2);
}
.chip--cyan { color: var(--cyan); border-color: rgba(72, 233, 208, 0.42); background: rgba(72, 233, 208, 0.08); }
.chip--violet { color: var(--violet-2); border-color: rgba(123, 92, 255, 0.46); background: rgba(123, 92, 255, 0.12); }
.chip--amber { color: var(--amber); border-color: rgba(255, 180, 84, 0.42); background: rgba(255, 180, 84, 0.1); }

.orbit-list { position: relative; padding-left: 26px; }
.orbit-list::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: linear-gradient(180deg, var(--violet), var(--cyan), transparent);
}
.orbit-item { position: relative; padding-block: 12px; }
.orbit-item::before {
  content: "";
  position: absolute;
  left: -24px;
  top: 21px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 3px rgba(72, 233, 208, 0.16);
}

/* ---------- 面包屑 ---------- */

.breadcrumbs { padding-block: 20px; font-size: 12.5px; color: var(--text-3); }

.breadcrumb-list { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.breadcrumb-list li { display: flex; align-items: center; gap: 8px; }
.breadcrumb-list li + li::before { content: "/"; color: var(--text-3); opacity: 0.5; }
.breadcrumb-link { color: var(--text-2); transition: color 0.2s ease; }
.breadcrumb-link:hover { color: var(--cyan); }

/* ---------- 图片容器基础 ---------- */

.media-frame {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(120% 120% at 20% 12%, rgba(123, 92, 255, 0.28), transparent 60%),
    radial-gradient(90% 90% at 88% 88%, rgba(72, 233, 208, 0.22), transparent 62%),
    #0a0e1c;
}
.media-frame img { width: 100%; height: 100%; object-fit: cover; }
.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.08), transparent 42%);
}
.media-frame--wide { aspect-ratio: 21 / 9; }
.media-frame--square { aspect-ratio: 1 / 1; }
.media-frame--tall { aspect-ratio: 3 / 4; }

.media-caption {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.7;
  letter-spacing: 0.04em;
  color: var(--text-3);
}

/* ---------- 滚动显现 ---------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.7, 0.3, 1);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ============================================================
   页头
   ============================================================ */

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: 0;
  z-index: 80;
  padding: 10px 18px;
  border-radius: 0 0 10px 10px;
  background: var(--amber);
  color: #1a1204;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  transform: translateY(-130%);
  transition: transform 0.18s ease;
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(6, 8, 18, 0.95), rgba(6, 8, 18, 0.74));
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
}

.header-orbit { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.header-orbit::before {
  content: "";
  position: absolute;
  right: -6%;
  top: -170px;
  width: 560px;
  height: 330px;
  background: radial-gradient(closest-side, rgba(123, 92, 255, 0.34), transparent 72%);
}
.header-orbit::after {
  content: "";
  position: absolute;
  left: 24%;
  bottom: 0;
  width: 190px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
}

.header-inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(14px, 3vw, 40px);
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding: 0 var(--gutter);
  min-height: clamp(64px, 7vw, 78px);
}

.brand { display: flex; align-items: center; gap: 12px; flex: none; }

.brand-mark {
  position: relative;
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 50%;
  background: conic-gradient(from 210deg, #7b5cff, #48e9d0, #ff5cd6, #ffb454, #7b5cff);
  box-shadow: 0 0 20px rgba(123, 92, 255, 0.55);
}
.brand-mark::before {
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: 50%;
  background: var(--deep);
}
.brand-mark::after {
  content: "";
  position: absolute;
  inset: 11px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffffff, #48e9d0 55%, #7b5cff);
  box-shadow: 0 0 12px rgba(72, 233, 208, 0.8);
}

.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-size: clamp(17px, 1.5vw, 20px); font-weight: 800; letter-spacing: 0.14em; color: #fff; }
.brand-sub {
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-3);
}

.nav-shell { display: flex; align-items: center; gap: clamp(12px, 2vw, 26px); }

.nav-list { display: flex; align-items: center; gap: clamp(2px, 0.9vw, 6px); }

.nav-link {
  position: relative;
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 14px;
  letter-spacing: 0.08em;
  color: var(--text-2);
  transition: color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 3px;
  height: 1px;
  background: linear-gradient(90deg, var(--cyan), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.nav-link:hover { color: #fff; background: rgba(123, 92, 255, 0.14); }
.nav-link:hover::after { transform: scaleX(1); }

.nav-link[aria-current="page"] {
  color: #ffffff;
  background: rgba(72, 233, 208, 0.12);
  box-shadow: inset 0 0 0 1px rgba(72, 233, 208, 0.35);
}
.nav-link[aria-current="page"]::after { transform: scaleX(1); }

.header-rail {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-left: clamp(8px, 1.4vw, 18px);
  border-left: 1px solid var(--line);
}

.rail-link {
  padding: 7px 13px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-size: 12.5px;
  letter-spacing: 0.1em;
  color: var(--text-2);
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.rail-link:hover { color: #fff; border-color: var(--cyan); background: rgba(72, 233, 208, 0.1); }

.rail-link--amber {
  color: #1a1204;
  font-weight: 700;
  border-color: transparent;
  background: linear-gradient(135deg, var(--amber), var(--amber-2));
  box-shadow: 0 6px 18px rgba(255, 180, 84, 0.28);
}
.rail-link--amber:hover {
  color: #1a1204;
  border-color: transparent;
  background: linear-gradient(135deg, #ffc774, #ffe2b0);
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-size: 12.5px;
  letter-spacing: 0.16em;
  color: var(--text-2);
  transition: color 0.2s ease, border-color 0.2s ease;
}
.nav-toggle:hover { color: #fff; border-color: var(--cyan); }

.nav-toggle-label {
  font-family: var(--font-mono);
  text-transform: uppercase;
}

.nav-toggle-bars { position: relative; display: block; width: 18px; height: 12px; }
.nav-toggle-bars span {
  position: absolute;
  left: 0;
  right: 0;
  height: 1.5px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.22s ease, opacity 0.22s ease;
}
.nav-toggle-bars span:nth-child(1) { top: 0; }
.nav-toggle-bars span:nth-child(2) { top: 5.25px; }
.nav-toggle-bars span:nth-child(3) { top: 10.5px; }

.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(1) { transform: translateY(5.25px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(3) { transform: translateY(-5.25px) rotate(-45deg); }

.scroll-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  pointer-events: none;
}
.scroll-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--violet), var(--cyan), var(--amber));
  box-shadow: 0 0 10px rgba(72, 233, 208, 0.6);
  transition: width 0.1s linear;
}

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

.site-footer {
  position: relative;
  z-index: 2;
  margin-top: clamp(60px, 10vw, 120px);
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, #070912, var(--void) 72%);
  overflow: hidden;
}

.footer-orbit {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(700px 320px at 88% 0%, rgba(123, 92, 255, 0.20), transparent 68%),
    radial-gradient(520px 300px at 6% 100%, rgba(72, 233, 208, 0.12), transparent 70%);
}

.footer-inner {
  position: relative;
  z-index: 2;
  max-width: var(--maxw);
  margin-inline: auto;
  padding: clamp(40px, 6vw, 72px) var(--gutter) 26px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.4fr;
  gap: clamp(22px, 3vw, 48px);
}

.footer-brand-mark {
  display: block;
  width: 58px;
  height: 3px;
  margin-bottom: 16px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--violet), var(--cyan), var(--amber));
}

.footer-brand-name {
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #fff;
}

.footer-brand-desc {
  margin-top: 12px;
  max-width: 34ch;
  font-size: 13.5px;
  line-height: 1.9;
  color: var(--text-3);
}

.footer-mail {
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--cyan);
  word-break: break-all;
}

.footer-col-title {
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-3);
}

.footer-list { display: flex; flex-direction: column; gap: 9px; }

.footer-link {
  display: inline-block;
  font-size: 14px;
  color: var(--text-2);
  transition: color 0.2s ease, transform 0.2s ease;
}
.footer-link:hover { color: var(--cyan); transform: translateX(3px); }

.footer-address { display: flex; flex-direction: column; gap: 8px; }

.footer-line {
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--text-2);
}

.footer-note {
  max-width: 32ch;
  font-size: 12.5px;
  line-height: 1.85;
  color: var(--text-3);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: clamp(28px, 4vw, 48px);
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.footer-copy,
.footer-icp {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.08em;
  color: var(--text-3);
}

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

@media (max-width: 1180px) {
  .header-rail { display: none; }
}

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

@media (max-width: 900px) {
  body { background-attachment: scroll; }

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

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

  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    padding: 14px var(--gutter) 26px;
    border-bottom: 1px solid var(--line-2);
    background: rgba(7, 9, 20, 0.98);
    backdrop-filter: blur(18px) saturate(150%);
    -webkit-backdrop-filter: blur(18px) saturate(150%);
  }

  .site-nav[data-open] {
    display: block;
    animation: navDrop 0.22s ease both;
  }

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

  .nav-link {
    display: block;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 16px;
  }
  .nav-link::after { left: 14px; right: auto; width: 34px; bottom: 8px; }
}

@keyframes navDrop {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: none; }
}

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

  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-bottom { flex-direction: column; align-items: flex-start; }

  .brand-sub { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .scroll-progress span { transition: none; }
}
