/* =========================================================
   OG视讯娱乐 — 共享样式 /assets/site.css
   夜航指挥舱：深空底 + 品牌轨道 + 命令栏 + 切角框景
   ========================================================= */

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

html {
  -webkit-text-size-adjust: 100%;
  background-color: #05070E;
  scroll-behavior: smooth;
  scroll-padding-top: 130px;
}

body, h1, h2, h3, h4, h5, p, ul, ol, li, figure, figcaption, blockquote, dl, dt, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
table { border-collapse: collapse; }
input, textarea, select { font: inherit; color: inherit; }
hr { border: 0; height: 1px; background: #24314C; }

/* ---------- tokens ---------- */
:root {
  --ink: #05070E;
  --hull: #0C1424;
  --panel: #14213A;
  --cyan: #38E1E6;
  --violet: #7C5CFF;
  --amber: #F0B24A;
  --white: #F2F6FF;
  --muted: #93A6C4;
  --green: #48D6A0;
  --coral: #FF6B57;
  --line: #24314C;

  --font-cn: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", "SFMono-Regular", ui-monospace, monospace;

  --rail-w: 88px;
  --cmd-h: 60px;
  --nav-h: 46px;
  --shell-pad: clamp(18px, 4vw, 56px);
  --maxw: 1240px;
  --cut: 14px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- base ---------- */
html, body { min-height: 100%; }

body {
  position: relative;
  background: transparent;
  color: var(--white);
  font-family: var(--font-cn);
  font-size: 16px;
  line-height: 1.75;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  padding-left: var(--rail-w);
  padding-top: calc(var(--cmd-h) + var(--nav-h));
  overflow-x: hidden;
}

/* 18s 缓慢漂移的柔光晕（位移 < 6%） */
body::before {
  content: "";
  position: fixed;
  inset: -4%;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(58vw 58vw at 78% 10%, rgba(124, 92, 255, .20), transparent 62%),
    radial-gradient(50vw 50vw at 12% 74%, rgba(56, 225, 230, .13), transparent 66%),
    radial-gradient(38vw 38vw at 52% 44%, rgba(240, 178, 74, .045), transparent 70%);
  animation: glow-drift 18s ease-in-out infinite alternate;
}

@keyframes glow-drift {
  from { transform: scale(1) translate3d(0, 0, 0); }
  to   { transform: scale(1.06) translate3d(-2%, 1.6%, 0); }
}

@keyframes breathe {
  0%, 100% { opacity: .6; }
  50%      { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  body::before { animation: none; }
  .lamp--green { animation: none; opacity: 1; }
}

/* ---------- focus ---------- */
:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 2px;
}

.btn:focus-visible,
.site-nav__link:focus-visible,
.nav-toggle:focus-visible,
.to-top:focus-visible,
.foot-door:focus-visible {
  outline-offset: -3px;
}

/* ---------- skip link ---------- */
.skip-link {
  position: fixed;
  top: 10px;
  left: calc(var(--rail-w) + 10px);
  z-index: 200;
  padding: 10px 20px;
  background: var(--amber);
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
  transform: translateY(-180%);
  transition: transform .18s linear;
}
.skip-link:focus { transform: translateY(0); }

/* ---------- 左侧品牌轨道 ---------- */
.brand-rail {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--rail-w);
  z-index: 40;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: 18px 0 18px;
  background: linear-gradient(180deg, var(--hull) 0%, #080D18 60%, var(--ink) 100%);
  border-right: 1px solid var(--line);
}

.brand-rail__mark {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px 0 12px;
  width: 100%;
  border-bottom: 1px solid var(--line);
}

.brand-rail__og {
  font-family: var(--font-mono);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--white);
  line-height: 1;
}

.brand-rail__cn {
  font-size: 11px;
  letter-spacing: .38em;
  text-indent: .38em;
  color: var(--cyan);
  line-height: 1.4;
}

.brand-rail__scale {
  flex: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 12px;
}

.brand-rail__scale i {
  display: block;
  height: 1px;
  background: #1B2A45;
}
.brand-rail__scale i:nth-child(odd)  { width: 30px; }
.brand-rail__scale i:nth-child(even) { width: 14px; background: #14213A; }

.brand-rail__icp {
  writing-mode: vertical-rl;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 300;
  letter-spacing: .14em;
  line-height: 1.5;
  color: var(--muted);
  opacity: .8;
}

/* ---------- 头部 ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: var(--rail-w);
  right: 0;
  z-index: 35;
  background: rgba(5, 7, 14, .88);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

/* 阅读进度条 */
.readbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 70;
  background: rgba(36, 49, 76, .5);
}
.readbar__fill {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--cyan), var(--violet));
}

/* 命令栏 */
.cmdbar {
  height: var(--cmd-h);
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 var(--shell-pad);
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  background: var(--panel);
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--white);
}
.nav-toggle__glyph { display: flex; flex-direction: column; gap: 3px; width: 14px; }
.nav-toggle__glyph i { display: block; height: 1px; background: var(--cyan); }
.nav-toggle__text { font-family: var(--font-mono); }

.status {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-right: auto;
  flex-wrap: wrap;
}

.status__item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 300;
  letter-spacing: .12em;
  color: var(--muted);
  white-space: nowrap;
}

.lamp {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex: 0 0 auto;
}
.lamp--amber { background: var(--amber); box-shadow: 0 0 0 3px rgba(240, 178, 74, .16); }
.lamp--cyan  { background: var(--cyan);  box-shadow: 0 0 0 3px rgba(56, 225, 230, .16); }
.lamp--green {
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(72, 214, 160, .16);
  animation: breathe 2.4s ease-in-out infinite;
}

.cmdbar__acts {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 36px;
  padding: 0 16px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .06em;
  line-height: 1;
  white-space: nowrap;
  color: var(--white);
  background: var(--panel);
  border: 1px solid var(--line);
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  transition: background .18s linear, border-color .18s linear, color .18s linear;
}
.btn:hover { color: var(--cyan); border-color: var(--cyan); }

.btn--ghost { background: transparent; }

.btn--gold {
  color: var(--amber);
  border-color: var(--amber);
  background: rgba(240, 178, 74, .09);
}
.btn--gold:hover {
  color: var(--ink);
  background: var(--amber);
  border-color: var(--amber);
}

/* ---------- 导航 ---------- */
.site-nav {
  height: var(--nav-h);
  display: flex;
  align-items: stretch;
  padding: 0 var(--shell-pad);
  border-top: 1px solid var(--line);
  overflow-x: auto;
  scrollbar-width: none;
}
.site-nav::-webkit-scrollbar { display: none; }

.site-nav__list {
  display: flex;
  align-items: stretch;
  gap: 2px;
}

.site-nav__link {
  display: flex;
  align-items: center;
  gap: 9px;
  height: 100%;
  padding: 0 15px;
  font-size: 13px;
  letter-spacing: .04em;
  white-space: nowrap;
  color: var(--muted);
  border-left: 2px solid transparent;
  transition: color .18s linear, background .18s linear, border-color .18s linear;
}
.site-nav__link:hover { color: var(--white); background: rgba(20, 33, 58, .65); }

.site-nav__no {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 300;
  letter-spacing: .16em;
  color: #4B5F80;
  transition: color .18s linear;
}

.site-nav__link[aria-current="page"] {
  color: var(--white);
  border-left-color: var(--amber);
  background: rgba(240, 178, 74, .07);
}
.site-nav__link[aria-current="page"] .site-nav__no { color: var(--amber); }

/* ---------- 通用容器 / 网格 ---------- */
.wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--shell-pad);
}

.grid { display: grid; gap: 24px; }
.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)); }
.grid--12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }

/* ---------- 品牌档案式文本层级 ---------- */
.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 300;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--cyan);
}

.h-xl {
  font-size: clamp(44px, 7vw, 96px);
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.03;
}
.h-lg {
  font-size: clamp(26px, 3.4vw, 48px);
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.18;
}

.sec-no {
  display: block;
  font-family: var(--font-mono);
  font-weight: 200;
  font-size: clamp(64px, 10vw, 144px);
  line-height: .8;
  letter-spacing: -.04em;
  color: rgba(147, 166, 196, .22);
  user-select: none;
}

.lead { font-size: clamp(16px, 1.4vw, 20px); line-height: 1.72; color: #C8D4E8; }
.note { font-size: 14px; line-height: 1.75; color: var(--muted); }
code, .mono { font-family: var(--font-mono); font-size: .92em; letter-spacing: .02em; }

/* ---------- 框景面板 ---------- */
.frame {
  position: relative;
  background: linear-gradient(158deg, rgba(20, 33, 58, .92), rgba(12, 20, 36, .78));
  border: 1px solid var(--line);
  padding: clamp(20px, 3vw, 36px);
}

.frame--cut {
  clip-path: polygon(
    var(--cut) 0, 100% 0,
    100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%,
    0 100%, 0 var(--cut)
  );
}

.frame--ticks::before,
.frame--ticks::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  pointer-events: none;
}
.frame--ticks::before {
  top: 0; left: 0;
  border-top: 1px solid var(--cyan);
  border-left: 1px solid var(--cyan);
}
.frame--ticks::after {
  bottom: 0; right: 0;
  border-bottom: 1px solid var(--cyan);
  border-right: 1px solid var(--cyan);
}

/* ---------- 状态标签 ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 24px;
  padding: 0 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 300;
  letter-spacing: .1em;
  color: var(--muted);
  background: rgba(20, 33, 58, .7);
  border: 1px solid var(--line);
}
.tag--ok { color: var(--green); border-color: rgba(72, 214, 160, .35); }

/* ---------- 面包屑 ---------- */
.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 300;
  letter-spacing: .14em;
  color: var(--muted);
}
.crumbs li { display: inline-flex; align-items: center; }
.crumbs li + li::before {
  content: "/";
  margin: 0 10px;
  color: #31415F;
}
.crumbs a { color: var(--muted); transition: color .18s linear; }
.crumbs a:hover { color: var(--cyan); }
.crumbs [aria-current="page"] { color: var(--white); }

/* ---------- 图片容器基础规则 ---------- */
.media {
  position: relative;
  display: block;
  overflow: hidden;
  background:
    linear-gradient(140deg, #0E1830 0%, #0A1120 55%, #131E36 100%);
  border: 1px solid var(--line);
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
}
.media > img,
.media > svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    180deg,
    rgba(56, 225, 230, .055) 0 1px,
    transparent 1px 4px
  );
  mix-blend-mode: screen;
}
.media--ratio-16-9 { aspect-ratio: 16 / 9; }
.media--ratio-3-2  { aspect-ratio: 3 / 2; }
.media--ratio-4-3  { aspect-ratio: 4 / 3; }
.media--ratio-1-1  { aspect-ratio: 1 / 1; }

.media__cap {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 300;
  letter-spacing: .1em;
  color: var(--muted);
}

/* ---------- 返回顶部（JS 注入） ---------- */
.to-top {
  position: fixed;
  right: 24px;
  bottom: 26px;
  z-index: 50;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(12, 20, 36, .94);
  border: 1px solid var(--line);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .2s linear, transform .2s linear, visibility .2s, border-color .18s linear;
}
.to-top.is-on { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { border-color: var(--cyan); }
.to-top__ring { position: absolute; inset: 0; width: 100%; height: 100%; }
.to-top__track { stroke: #24314C; }
.to-top__arc { stroke: var(--cyan); stroke-linecap: round; }
.to-top__txt {
  position: relative;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 300;
  letter-spacing: .12em;
  color: var(--white);
}

/* ---------- 页脚 ---------- */
.site-footer {
  position: relative;
  z-index: 1;
  margin-top: clamp(64px, 9vw, 120px);
  background: linear-gradient(180deg, var(--hull) 0%, #070B14 78%, var(--ink) 100%);
  border-top: 1px solid var(--line);
}

.site-footer__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(40px, 6vw, 68px) var(--shell-pad) 30px;
}

/* 四入口 */
.foot-doors {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.foot-door {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 22px 20px 24px;
  background: #080D18;
  transition: background .18s linear;
}
.foot-door:hover { background: var(--panel); }

.foot-door__no {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 300;
  letter-spacing: .18em;
  color: var(--cyan);
}
.foot-door__t {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--white);
}
.foot-door__d {
  font-size: 12.5px;
  line-height: 1.62;
  color: var(--muted);
}

/* 中部两栏 */
.foot-mid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(30px, 5vw, 72px);
  margin-top: clamp(36px, 5vw, 58px);
}

.foot-block__h {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--cyan);
  padding-bottom: 12px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.foot-facts { display: grid; gap: 10px; }
.foot-facts > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 9px;
  border-bottom: 1px dashed rgba(36, 49, 76, .7);
}
.foot-facts dt { font-size: 13px; color: var(--muted); }
.foot-facts dd {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 300;
  letter-spacing: .04em;
  color: var(--white);
  text-align: right;
}

.foot-contact {
  margin-top: 20px;
  display: grid;
  gap: 8px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
  word-break: break-word;
}
.foot-contact li { display: flex; gap: 12px; }
.foot-contact__k {
  flex: 0 0 40px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 300;
  letter-spacing: .12em;
  color: #5B7096;
  padding-top: 2px;
}

.foot-index {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px 22px;
}
.foot-index a {
  display: block;
  padding: 6px 0;
  font-size: 13.5px;
  color: var(--muted);
  transition: color .18s linear, padding-left .18s linear;
}
.foot-index a:hover { color: var(--cyan); padding-left: 6px; }

/* 底部行 */
.foot-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 28px;
  margin-top: clamp(34px, 5vw, 56px);
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 300;
  letter-spacing: .08em;
  color: var(--muted);
}
.foot-sign { color: var(--white); letter-spacing: .14em; }
.foot-legal { color: var(--amber); opacity: .85; }

/* ---------- 平板 ---------- */
@media (max-width: 1080px) {
  .status { gap: 14px; }
  .status__item:last-child { display: none; }
  .foot-mid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--12 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .foot-doors { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- 移动端：折叠轨道 + 下拉导航 ---------- */
@media (max-width: 960px) {
  :root {
    --rail-w: 0px;
    --cmd-h: 56px;
    --nav-h: 0px;
    --shell-pad: 16px;
  }

  html { scroll-padding-top: 84px; }

  body {
    padding-left: 0;
    padding-top: var(--cmd-h);
  }

  .brand-rail { display: none; }

  .site-header { left: 0; }

  .skip-link { left: 10px; }

  .cmdbar {
    gap: 10px;
    padding: 0 14px;
  }

  .nav-toggle {
    display: inline-flex;
    margin-right: auto;
  }

  .status { display: none; }

  .cmdbar__acts { margin-left: 0; gap: 8px; }
  .cmdbar__acts .btn--ghost { display: none; }
  .cmdbar__acts .btn { height: 32px; padding: 0 12px; font-size: 12px; }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: auto;
    display: none;
    flex-direction: column;
    padding: 8px 0 16px;
    background: rgba(7, 11, 20, .98);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 48px rgba(0, 0, 0, .55);
    overflow: visible;
  }
  .site-nav[data-open] { display: flex; }

  .site-nav__list { flex-direction: column; gap: 0; }

  .site-nav__link {
    height: 50px;
    padding: 0 18px;
    border-left-width: 2px;
    border-bottom: 1px solid rgba(36, 49, 76, .6);
    font-size: 14px;
  }

  .foot-index { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .to-top { right: 16px; bottom: 18px; width: 46px; height: 46px; }
}

@media (max-width: 560px) {
  .foot-doors { grid-template-columns: 1fr; }
  .foot-index { grid-template-columns: 1fr; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .grid--12 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sec-no { font-size: clamp(56px, 18vw, 96px); }
  .foot-bottom { flex-direction: column; align-items: flex-start; }
}

/* ---------- 减动效 ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .to-top { transition: none; }
}
