/* ============================================================
   365游戏入口 · 共享样式 /assets/site.css
   暗夜竞技指挥舱：深墨蓝底 + 珠宝色舱段 + 硬边框 + 斜切缺口
   ============================================================ */

:root {
  /* 底与面板 */
  --bg: #070D1B;
  --panel: #0E1830;
  --panel-2: #142242;
  /* 珠宝色舱段 */
  --violet: #1B1140;
  --deep-teal: #04262B;
  --wine: #2A0A16;
  /* 强调 */
  --cyan: #35E6E0;
  --orange: #FF7A2F;
  --amber: #F5C24A;
  /* 文本与边界 */
  --ink: #D7E3F2;
  --muted: #8FA0BF;
  --line: #2B3A5C;
  --hard: rgba(43, 58, 92, 0.55);
  /* 尺度 */
  --cut: 18px;
  --nav-h: 78px;
  --nav-h-stuck: 64px;
  --container: 1240px;
  --pad: 24px;
  /* 字体栈 */
  --font-display: "Source Han Serif SC", "Noto Serif SC", "Songti SC", STSong, SimSun, serif;
  --font-body: "Inter", "Source Han Sans SC", "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Menlo, Consolas, "Courier New", monospace;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background-color: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, video { max-width: 100%; }
img { display: block; height: auto; }
button { font: inherit; color: inherit; }
ul, ol { margin: 0; padding: 0; }
h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.18;
  color: #fff;
}
p { margin: 0; }
a { color: var(--cyan); }
::selection { background: var(--cyan); color: #04121A; }

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

/* ---------- 中文排版与基础工具 ---------- */
.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(--container);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.grid { display: grid; gap: 24px; }

.section { padding-block: clamp(40px, 6vw, 78px); }

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px 32px;
  margin-bottom: clamp(22px, 3vw, 36px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 12px;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 3px;
  background: var(--cyan);
  flex: 0 0 auto;
}

.section-title {
  font-size: clamp(22px, 3vw, 34px);
  max-width: 22ch;
}

.section-lead {
  max-width: 62ch;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
}

/* ---------- 按钮 ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.2;
  text-decoration: none;
  color: var(--ink);
  background: transparent;
  border: 3px solid transparent;
  cursor: pointer;
  overflow: hidden;
  transition: transform 180ms ease, box-shadow 180ms ease,
              border-color 180ms ease, background-color 180ms ease, color 180ms ease;
}
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 34%, rgba(255, 255, 255, 0.32) 50%, transparent 66%);
  transform: translateX(-125%);
  transition: transform 520ms ease;
  pointer-events: none;
}
.btn:hover::after { transform: translateX(125%); }

.btn-primary {
  background: var(--orange);
  color: #12060A;
  border-color: #12060A;
  box-shadow: 6px 6px 0 rgba(255, 122, 47, 0.28);
}
.btn-primary:hover {
  transform: translate(-2px, -2px);
  box-shadow: 8px 8px 0 rgba(255, 122, 47, 0.4);
}

.btn-ghost {
  background: transparent;
  color: var(--cyan);
  border-color: var(--line);
}
.btn-ghost:hover {
  border-color: var(--cyan);
  background: rgba(53, 230, 224, 0.08);
}

.btn-sm { padding: 8px 15px; font-size: 13px; }

/* ---------- 跳转链接 ---------- */
.skip-link {
  position: fixed;
  top: 0;
  left: 50%;
  z-index: 400;
  transform: translate(-50%, -130%);
  padding: 12px 22px;
  background: var(--cyan);
  color: #04121A;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-decoration: none;
  border: 3px solid #04121A;
  transition: transform 180ms ease;
}
.skip-link:focus-visible { transform: translate(-50%, 8px); }

/* ---------- 头部 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(7, 13, 27, 0.62);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid rgba(43, 58, 92, 0.6);
  transition: background-color 300ms ease, border-color 300ms ease, box-shadow 300ms ease;
}
.site-header[data-stuck] {
  background-color: var(--bg);
  border-bottom: 3px solid var(--line);
  box-shadow: 0 10px 0 rgba(0, 0, 0, 0.32);
}

.scroll-progress {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  transform: scaleX(0);
  transform-origin: left center;
  background: linear-gradient(90deg, var(--cyan), var(--amber) 55%, var(--orange));
  z-index: 2;
  pointer-events: none;
}

.header-inner {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: var(--nav-h);
  transition: min-height 260ms ease;
}
.site-header[data-stuck] .header-inner { min-height: var(--nav-h-stuck); }

/* 品牌 */
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  text-decoration: none;
  color: var(--ink);
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  background: linear-gradient(150deg, var(--orange), #C2450F);
  color: #0A0710;
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.03em;
  border: 3px solid #0B0F1E;
  box-shadow: 4px 4px 0 var(--hard);
  transform: skewX(-8deg);
}
.brand-mark > * { transform: skewX(8deg); }
.brand-text { display: flex; flex-direction: column; gap: 3px; }
.brand-name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: #fff;
  white-space: nowrap;
}
.brand-status {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.status-item { display: inline-flex; align-items: center; gap: 6px; }
.status-dot {
  width: 6px;
  height: 6px;
  background: var(--cyan);
  box-shadow: 0 0 9px rgba(53, 230, 224, 0.9);
  animation: statusPulse 2400ms ease-in-out infinite;
}
.status-value { color: var(--amber); font-weight: 700; }
@keyframes statusPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.32; }
}

/* 主导航 */
.site-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}
.nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-list a {
  position: relative;
  display: block;
  padding: 10px 12px;
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
  border: 1px solid transparent;
  transition: color 180ms ease;
}
.nav-list a::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 4px;
  height: 2px;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 180ms ease;
}
.nav-list a:hover { color: var(--cyan); }
.nav-list a:hover::after { transform: scaleX(1); }
.nav-list a[aria-current="page"] {
  color: var(--cyan);
  background: rgba(53, 230, 224, 0.08);
}
.nav-list a[aria-current="page"]::after { transform: scaleX(1); }

.nav-cta { display: none; }

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

/* 移动菜单按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 9px 13px;
  background: transparent;
  border: 3px solid var(--line);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: border-color 180ms ease, color 180ms ease;
}
.nav-toggle:hover { border-color: var(--cyan); color: var(--cyan); }
.nav-toggle-icon {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 18px;
  height: 12px;
}
.nav-toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  background: currentColor;
  transition: transform 200ms ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:first-child { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:last-child { transform: translateY(-5px) rotate(-45deg); }

/* ---------- 内容组件 ---------- */
.panel {
  position: relative;
  padding: 24px;
  background: var(--panel);
  border: 3px solid var(--line);
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%);
  filter: drop-shadow(8px 8px 0 var(--hard));
  transition: border-color 180ms ease, filter 180ms ease;
}
.panel::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: var(--cut);
  height: var(--cut);
  background: linear-gradient(45deg, transparent 44%, var(--line) 44%, var(--line) 56%, transparent 56%);
  pointer-events: none;
}
.panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 36%, rgba(53, 230, 224, 0.14) 50%, transparent 64%);
  transform: translateX(-125%);
  transition: transform 560ms ease;
  pointer-events: none;
}
.panel:hover { border-color: rgba(53, 230, 224, 0.85); filter: drop-shadow(10px 10px 0 rgba(53, 230, 224, 0.18)); }
.panel:hover::after { transform: translateX(125%); }

.panel-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 16px;
  margin-bottom: 14px;
}
.panel-title {
  font-size: 20px;
  line-height: 1.3;
  color: #fff;
}
.panel-meta {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.panel-body { color: var(--muted); font-size: 15.5px; line-height: 1.72; }

.data-num {
  display: inline-block;
  font-family: var(--font-mono);
  font-weight: 700;
  font-style: normal;
  color: var(--amber);
  font-variant-numeric: tabular-nums;
  transform: skewX(-7deg);
  letter-spacing: -0.01em;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--muted);
  background: rgba(143, 160, 191, 0.08);
  border: 1px solid var(--line);
}
.tag[data-tone="cyan"] { color: var(--cyan); border-color: rgba(53, 230, 224, 0.5); background: rgba(53, 230, 224, 0.1); }
.tag[data-tone="amber"] { color: var(--amber); border-color: rgba(245, 194, 74, 0.5); background: rgba(245, 194, 74, 0.1); }
.tag[data-tone="orange"] { color: var(--orange); border-color: rgba(255, 122, 47, 0.5); background: rgba(255, 122, 47, 0.12); }

.tick-rule {
  height: 1px;
  width: 100%;
  border: 0;
  margin: 0;
  background: repeating-linear-gradient(90deg, var(--amber) 0 10px, transparent 10px 20px);
  opacity: 0.45;
}

.media-frame {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 3px solid var(--line);
  background:
    repeating-linear-gradient(0deg, rgba(143, 160, 191, 0.09) 0 1px, transparent 1px 22px),
    repeating-linear-gradient(90deg, rgba(143, 160, 191, 0.09) 0 1px, transparent 1px 22px),
    linear-gradient(150deg, #11203C, #050A15);
}
.media-frame > img,
.media-frame > svg {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media-frame[data-ratio="4:3"] { aspect-ratio: 4 / 3; }
.media-frame[data-ratio="1:1"] { aspect-ratio: 1 / 1; }
.media-frame[data-ratio="3:4"] { aspect-ratio: 3 / 4; }
.media-frame[data-ratio="21:9"] { aspect-ratio: 21 / 9; }

.prose {
  max-width: 72ch;
  font-size: 16.5px;
  line-height: 1.8;
}
.prose p { margin-bottom: 1.2em; }
.prose h2 { font-size: clamp(22px, 3vw, 30px); margin: 1.6em 0 0.6em; }
.prose h3 { font-size: 20px; margin: 1.4em 0 0.5em; }
.prose ul, .prose ol { margin: 0 0 1.2em; padding-left: 1.35em; }
.prose li { margin-bottom: 0.45em; }
.prose a {
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 2px solid rgba(53, 230, 224, 0.4);
}
.prose a:hover { border-bottom-color: var(--cyan); }
.prose strong { color: #fff; }
.prose mark {
  background: rgba(255, 122, 47, 0.26);
  color: var(--ink);
  padding: 0 0.22em;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding-block: 18px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--muted);
  list-style: none;
}
.breadcrumb li { display: inline-flex; align-items: center; gap: 8px; }
.breadcrumb a {
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 160ms ease, border-color 160ms ease;
}
.breadcrumb a:hover { color: var(--cyan); border-bottom-color: var(--cyan); }
.breadcrumb [aria-current="page"] { color: var(--amber); }
.breadcrumb li + li::before { content: "/"; color: var(--line); }

/* 显现动画协议 */
[data-spy-link][aria-current="true"] {
  color: var(--cyan);
  border-color: var(--cyan);
}

@media (prefers-reduced-motion: no-preference) {
  [data-reveal="pending"] {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 500ms ease, transform 500ms ease;
  }
  [data-reveal="done"] {
    opacity: 1;
    transform: none;
    transition: opacity 500ms ease, transform 500ms ease;
  }
}

/* ---------- 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(56px, 8vw, 104px);
  background: var(--wine);
  border-top: 3px solid var(--line);
  color: var(--ink);
}

.footer-tick {
  height: 3px;
  background: repeating-linear-gradient(90deg, var(--amber) 0 14px, transparent 14px 28px);
  opacity: 0.55;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.2fr 1.6fr 1fr;
  gap: 24px 48px;
  padding-block: 56px 44px;
  align-items: start;
}

.footer-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.footer-brand-name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #fff;
}
.footer-summary {
  max-width: 40ch;
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.footer-col-title {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 14px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a {
  display: inline-block;
  font-size: 14.5px;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 160ms ease, border-color 160ms ease;
}
.footer-col a:hover { color: var(--cyan); border-bottom-color: var(--cyan); }

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px;
  background: rgba(7, 13, 27, 0.42);
  border: 3px solid var(--line);
}
.footer-contact .footer-col-title { margin-bottom: 4px; }
.footer-contact-line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--ink);
  word-break: break-word;
}
.footer-contact-label {
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--cyan);
}
.footer-contact .footer-summary { max-width: none; margin-top: 6px; font-size: 12.5px; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 28px;
  padding-block: 22px;
  border-top: 1px solid rgba(215, 227, 242, 0.14);
}
.footer-legal {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.footer-copy {
  font-size: 12.5px;
  letter-spacing: 0.02em;
  color: var(--muted);
}

/* ---------- 返回顶部 ---------- */
.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 90;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  padding: 0;
  background: var(--panel);
  border: 3px solid var(--line);
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 6px 6px 0 var(--hard);
  opacity: 0;
  transform: translateY(24px);
  pointer-events: none;
  transition: opacity 240ms ease, transform 240ms ease,
              border-color 180ms ease, background-color 180ms ease;
}
.back-to-top[data-visible] {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.back-to-top:hover { border-color: var(--cyan); background: rgba(53, 230, 224, 0.12); }

/* ---------- 响应式 ---------- */
@media (max-width: 1180px) {
  .header-actions .btn-primary { display: none; }
  .nav-toggle { display: inline-flex; }

  .site-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: -1;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: calc(var(--nav-h) + 18px) var(--pad) 30px;
    max-height: 100dvh;
    overflow-y: auto;
    background: #0A1226;
    border-bottom: 3px solid var(--cyan);
    box-shadow: 0 18px 0 rgba(0, 0, 0, 0.42);
  }
  .site-nav[data-open] { display: flex; }

  .nav-list { flex-direction: column; align-items: stretch; gap: 0; width: 100%; }
  .nav-list li { width: 100%; }
  .nav-list a {
    padding: 16px 4px;
    font-size: 17px;
    border-bottom: 1px solid var(--line);
  }
  .nav-list a::after { display: none; }
  .nav-list a[aria-current="page"] { background: rgba(53, 230, 224, 0.06); }

  .nav-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
  }
  .nav-cta .btn { flex: 1 1 160px; }
}

@media (max-width: 980px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .footer-brand { grid-column: 1 / -1; }
  .footer-contact { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  :root { --pad: 18px; --cut: 14px; --nav-h: 68px; --nav-h-stuck: 60px; }
  body { font-size: 16px; }
  .brand-name { font-size: 17px; }
  .brand-mark { width: 38px; height: 38px; font-size: 13px; }
  .panel { padding: 18px; filter: drop-shadow(5px 5px 0 var(--hard)); }
  .panel:hover { filter: drop-shadow(6px 6px 0 rgba(53, 230, 224, 0.18)); }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .back-to-top { right: 14px; bottom: 14px; width: 46px; height: 46px; }
}

@media (max-width: 560px) {
  .brand-status { display: none; }
  .footer-cols { grid-template-columns: 1fr; }
  .nav-toggle-label { display: none; }
  .nav-toggle { padding: 9px 10px; }
}

@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;
  }
  .status-dot { animation: none; }
  .btn::after, .panel::after { display: none; }
  [data-reveal="pending"] { opacity: 1 !important; transform: none !important; }
  .back-to-top { transition: none; }
}
