/* ==========================================================================
   NG娱乐 · 共享站点样式 /assets/site.css
   深夜控制台式 Bento 信息板 · 深墨蓝底 + 霓虹青 / 琥珀金双强调
   ========================================================================== */

/* ---------- 设计变量 ---------- */
:root {
  --ink-950: #07131F;
  --ink-900: #0B1B2B;
  --ink-800: #102A43;
  --cream: #F3E7D3;
  --amber: #E8A33D;
  --amber-soft: #F2C879;
  --flame: #D9533F;
  --cyan: #38D6D6;
  --violet: #6E6A8A;
  --stone: #9AA7B4;
  --brown: #2B2119;
  --green: #4FB286;
  --alert: #C0453B;

  --line: rgba(110, 106, 138, 0.28);
  --line-strong: rgba(110, 106, 138, 0.45);
  --panel: rgba(16, 42, 67, 0.72);
  --panel-soft: rgba(16, 42, 67, 0.5);

  --radius-s: 10px;
  --radius: 16px;
  --radius-l: 24px;
  --shadow: 0 18px 44px rgba(3, 10, 18, 0.42);

  --sans: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

  --pad: clamp(16px, 4vw, 40px);
  --header-h: 72px;
}

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

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

body,
h1, h2, h3, h4,
p, ul, ol, li, figure, blockquote, dl, dd { margin: 0; }

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

img, svg, video { display: block; max-width: 100%; }

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

a { color: inherit; }

/* ---------- 中文排版与全局底色 ---------- */
body {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.75;
  color: var(--cream);
  background-color: var(--ink-900);
  background-image:
    linear-gradient(rgba(110, 106, 138, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(110, 106, 138, 0.09) 1px, transparent 1px),
    radial-gradient(120% 90% at 88% -10%, rgba(56, 214, 214, 0.13), transparent 62%),
    radial-gradient(90% 70% at 2% 4%, rgba(232, 163, 61, 0.10), transparent 64%);
  background-size: 64px 64px, 64px 64px, auto, auto;
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.24;
  color: var(--cream);
}

h1 { font-size: clamp(2rem, 4.4vw, 3.2rem); }
h2 { font-size: clamp(1.4rem, 2.4vw, 2rem); }
h3 { font-size: clamp(1.1rem, 1.6vw, 1.35rem); }

strong { font-weight: 700; }

::selection { background: var(--amber); color: var(--brown); }

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

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

/* ---------- 容器 ---------- */
.wrap {
  width: 100%;
  max-width: 1220px;
  margin-inline: auto;
  padding-inline: var(--pad);
}

/* ---------- 跳转链接 ---------- */
.skip-link {
  position: absolute;
  left: 16px;
  top: -72px;
  z-index: 300;
  padding: 10px 18px;
  border-radius: 0 0 var(--radius-s) var(--radius-s);
  background: var(--amber);
  color: var(--brown);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 0; }

/* ---------- 头部 ---------- */
.ng-header {
  position: sticky;
  top: 0;
  z-index: 120;
  background: linear-gradient(180deg, rgba(11, 27, 43, 0.99), rgba(11, 27, 43, 0.94));
  border-bottom: 1px solid var(--line-strong);
  box-shadow: 0 10px 34px rgba(3, 10, 18, 0.45);
}

.ng-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: var(--header-h);
  padding-block: 10px;
}

.ng-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  pointer-events: none;
}
.ng-progress__bar {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--amber) 55%, var(--flame));
  box-shadow: 0 0 12px rgba(56, 214, 214, 0.5);
  transition: width 0.12s linear;
}

/* 品牌 */
.ng-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  min-width: 0;
}
.ng-brand__mark {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(140deg, var(--amber), var(--flame));
  color: var(--brown);
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.06em;
  box-shadow: 0 0 0 1px rgba(242, 200, 121, 0.4), 0 10px 24px rgba(232, 163, 61, 0.22);
}
.ng-brand__text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.ng-brand__name {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
  color: var(--cream);
}
.ng-brand__tag {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  line-height: 1.4;
  color: var(--stone);
  white-space: nowrap;
}

/* 导航 */
.ng-nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 26px);
}
.ng-nav__list {
  display: flex;
  align-items: center;
  gap: 2px;
}
.ng-nav__item { position: relative; }
.ng-nav__link {
  position: relative;
  display: block;
  padding: 10px 12px;
  border-radius: var(--radius-s);
  color: var(--stone);
  font-size: 15px;
  text-decoration: none;
  transition: color 0.18s ease, background-color 0.18s ease;
}
.ng-nav__link:hover {
  color: var(--cream);
  background: rgba(56, 214, 214, 0.09);
}
.ng-nav__link[aria-current="page"] { color: var(--cream); }
.ng-nav__link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 3px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--amber), var(--flame));
}
.ng-nav__foot {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* 移动导航按钮 */
.ng-nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 9px 15px 9px 13px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--ink-800);
  color: var(--cream);
  cursor: pointer;
}
.ng-nav-toggle__bars { display: grid; gap: 4px; width: 18px; }
.ng-nav-toggle__bar {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--cyan);
}
.ng-nav-toggle__bar:nth-child(2) { background: var(--amber); }
.ng-nav-toggle__bar:nth-child(3) { background: var(--flame); }
.ng-nav-toggle__label {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--ink-800);
  color: var(--cream);
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s ease, background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, filter 0.18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--amber {
  background: linear-gradient(120deg, var(--amber), var(--amber-soft));
  color: var(--brown);
  box-shadow: 0 10px 24px rgba(232, 163, 61, 0.24);
}
.btn--amber:hover { filter: brightness(1.05); }
.btn--ghost {
  background: transparent;
  border-color: rgba(56, 214, 214, 0.45);
  color: var(--cyan);
}
.btn--ghost:hover { background: rgba(56, 214, 214, 0.11); }
.btn--block { width: 100%; }

/* ---------- 页脚 ---------- */
.ng-footer {
  margin-top: clamp(48px, 7vw, 96px);
  background: linear-gradient(180deg, rgba(16, 42, 67, 0.6), rgba(7, 19, 31, 0.98));
  border-top: 1px solid var(--line-strong);
}
.ng-footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(24px, 4vw, 48px);
  padding-block: clamp(36px, 5vw, 64px);
}
.ng-footer__brand { min-width: 0; }
.ng-footer__name {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--cream);
}
.ng-footer__line {
  margin-top: 6px;
  font-size: 14.5px;
  color: var(--stone);
}
.ng-footer__line--muted { color: var(--violet); }
.ng-footer__stats {
  margin-top: 14px;
  font-size: 12px;
  line-height: 1.7;
  color: var(--amber);
}
.ng-footer__title {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber);
}
.ng-footer__list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}
.ng-footer__item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--stone);
}
.ng-footer__item--wide { align-items: flex-start; }
.ng-footer__key {
  flex: 0 0 auto;
  min-width: 34px;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--violet);
}
.ng-footer__value {
  color: var(--cream);
  word-break: break-word;
}
.ng-footer__link {
  color: var(--stone);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.18s ease, border-color 0.18s ease;
}
.ng-footer__link:hover {
  color: var(--cyan);
  border-bottom-color: rgba(56, 214, 214, 0.6);
}
.ng-copy {
  padding: 3px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--stone);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: color 0.18s ease, border-color 0.18s ease;
}
.ng-copy:hover { color: var(--cyan); border-color: rgba(56, 214, 214, 0.5); }
.ng-copy[data-copied] { color: var(--green); border-color: rgba(79, 178, 134, 0.6); }

.ng-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  padding-block: 18px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--stone);
}
.ng-footer__legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.ng-footer__sep { color: var(--violet); }
.ng-footer__icp { font-size: 12.5px; color: var(--stone); }
.ng-footer__copy { font-size: 13px; }

/* ---------- 基础内容组件 ---------- */
.section { padding-block: clamp(34px, 6vw, 78px); }
.section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px 24px;
  margin-bottom: clamp(18px, 3vw, 32px);
}
.section__title { max-width: 26ch; }
.section__note {
  font-size: 14px;
  color: var(--stone);
  max-width: 42ch;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber);
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: currentColor;
  opacity: 0.85;
}

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

.lede {
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.8;
  color: var(--stone);
  max-width: 64ch;
}

.stack > * + * { margin-top: 16px; }

/* ---------- 面板 ---------- */
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(18px, 2.4vw, 28px);
}
.panel--soft { background: var(--panel-soft); }
.panel--cream {
  background: var(--cream);
  color: var(--brown);
  border-color: rgba(43, 33, 25, 0.16);
}
.panel--cream :is(h1, h2, h3, h4) { color: var(--brown); }
.panel--cream a { color: var(--brown); }
.panel--focus {
  border-color: rgba(232, 163, 61, 0.5);
  box-shadow: 0 0 0 1px rgba(232, 163, 61, 0.16), var(--shadow);
}

/* ---------- Bento 栅格 ---------- */
.bento {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(12px, 1.6vw, 20px);
}
.bento__cell {
  grid-column: span 12;
  min-width: 0;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(16px, 2.2vw, 26px);
}
.bento__cell--cream {
  background: var(--cream);
  color: var(--brown);
  border-color: rgba(43, 33, 25, 0.16);
}
.bento__cell--cream :is(h1, h2, h3, h4) { color: var(--brown); }
.bento__cell--focus {
  border-color: rgba(232, 163, 61, 0.5);
  box-shadow: 0 0 0 1px rgba(232, 163, 61, 0.16), var(--shadow);
}
@media (min-width: 700px) {
  .bento__cell--4 { grid-column: span 4; }
  .bento__cell--5 { grid-column: span 5; }
  .bento__cell--6 { grid-column: span 6; }
  .bento__cell--7 { grid-column: span 7; }
  .bento__cell--8 { grid-column: span 8; }
}

/* ---------- 双栏对照 ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(12px, 1.8vw, 20px);
}
.split__col {
  min-width: 0;
  padding: clamp(16px, 2.2vw, 24px);
  background: var(--panel-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
@media (min-width: 860px) {
  .split { grid-template-columns: 1fr 1fr; }
}

/* ---------- 状态药丸 ---------- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--stone);
  white-space: nowrap;
}
.pill--ok {
  color: var(--green);
  border-color: rgba(79, 178, 134, 0.5);
  background: rgba(79, 178, 134, 0.1);
}
.pill--info {
  color: var(--cyan);
  border-color: rgba(56, 214, 214, 0.5);
  background: rgba(56, 214, 214, 0.1);
}
.pill--warn {
  color: var(--amber);
  border-color: rgba(232, 163, 61, 0.5);
  background: rgba(232, 163, 61, 0.12);
}
.pill--alert {
  color: var(--alert);
  border-color: rgba(192, 69, 59, 0.55);
  background: rgba(192, 69, 59, 0.12);
}

/* ---------- 数据条 ---------- */
.bar {
  position: relative;
  height: 8px;
  border-radius: 999px;
  background: rgba(110, 106, 138, 0.24);
  overflow: hidden;
}
.bar__fill {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--cyan), var(--amber));
  transition: width 1.1s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.reveal.is-in .bar__fill { width: var(--bar, 50%); }

/* ---------- 标签页 ---------- */
.tabs__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tabs__btn {
  padding: 9px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--stone);
  font-size: 14px;
  cursor: pointer;
  transition: color 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}
.tabs__btn:hover { color: var(--cream); border-color: rgba(56, 214, 214, 0.45); }
.tabs__btn[aria-selected="true"] {
  color: var(--cream);
  border-color: rgba(56, 214, 214, 0.6);
  background: rgba(56, 214, 214, 0.14);
}
.tabs__panel { padding-top: 16px; }
.tabs__panel[hidden] { display: none; }

/* ---------- 折叠面板 ---------- */
.fold {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-soft);
  overflow: hidden;
}
.fold + .fold { margin-top: 12px; }
.fold__summary {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 16px 18px;
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  color: var(--cream);
}
.fold__summary::-webkit-details-marker { display: none; }
.fold__summary::after {
  content: "+";
  margin-left: auto;
  font-family: var(--mono);
  color: var(--amber);
}
.fold[open] .fold__summary::after { content: "–"; }
.fold__index {
  flex: 0 0 auto;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--amber);
}
.fold__body {
  padding: 16px 18px 20px;
  border-top: 1px solid var(--line);
  color: var(--stone);
  font-size: 15.5px;
}

/* ---------- 图片容器 ---------- */
.media-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(120% 120% at 18% 8%, rgba(56, 214, 214, 0.18), transparent 62%),
    radial-gradient(110% 110% at 92% 92%, rgba(232, 163, 61, 0.18), transparent 62%),
    linear-gradient(160deg, rgba(16, 42, 67, 0.92), rgba(7, 19, 31, 0.92));
}
.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(154, 167, 180, 0.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(154, 167, 180, 0.14) 1px, transparent 1px);
  background-size: 40px 40px;
}
.media-frame > img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media-frame--wide { aspect-ratio: 21 / 9; }
.media-frame--16x9 { aspect-ratio: 16 / 9; }
.media-frame--4x3 { aspect-ratio: 4 / 3; }
.media-frame--square { aspect-ratio: 1 / 1; }
.media-frame--tall { aspect-ratio: 3 / 4; }

/* ---------- 面包屑 ---------- */
.breadcrumb {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--stone);
}
.breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.breadcrumb__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.breadcrumb__item + .breadcrumb__item::before {
  content: "/";
  color: var(--violet);
}
.breadcrumb__link {
  color: var(--stone);
  text-decoration: none;
  border-bottom: 1px dashed transparent;
  transition: color 0.18s ease, border-color 0.18s ease;
}
.breadcrumb__link:hover {
  color: var(--cyan);
  border-bottom-color: rgba(56, 214, 214, 0.6);
}
.breadcrumb__item[aria-current="page"] { color: var(--amber); }

/* ---------- 滚动显现 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: opacity, transform;
}
.reveal.is-in {
  opacity: 1;
  transform: none;
}

/* ---------- 平板断点 ---------- */
@media (min-width: 640px) {
  .ng-footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1000px) {
  .ng-footer__grid { grid-template-columns: 1.5fr 1fr 1fr 1.5fr; }
}

/* 桌面中等宽度收起次级按钮，避免导航拥挤 */
@media (min-width: 1001px) and (max-width: 1140px) {
  .ng-nav__foot .btn--ghost { display: none; }
}

/* ---------- 移动导航抽屉 ---------- */
@media (max-width: 1000px) {
  .ng-nav-toggle { display: inline-flex; }

  html[data-nav-open] { overflow: hidden; }

  .ng-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: auto;
    z-index: 130;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: min(88vw, 360px);
    padding: 88px 22px 28px;
    overflow-y: auto;
    background: linear-gradient(180deg, #102A43 0%, #0B1B2B 100%);
    border-left: 1px solid var(--line-strong);
    box-shadow: -24px 0 64px rgba(0, 0, 0, 0.5);
    transform: translateX(104%);
    visibility: hidden;
    transition: transform 0.28s ease, visibility 0.28s ease;
  }
  .ng-header[data-open] .ng-nav {
    transform: translateX(0);
    visibility: visible;
  }

  .ng-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
  }
  .ng-nav__link {
    padding: 14px 10px;
    border-bottom: 1px dashed rgba(110, 106, 138, 0.3);
    border-radius: 0;
    font-size: 16px;
  }
  .ng-nav__link[aria-current="page"]::after {
    left: 0;
    right: auto;
    bottom: 50%;
    width: 3px;
    height: 18px;
    transform: translateY(50%);
    background: linear-gradient(180deg, var(--amber), var(--flame));
  }
  .ng-nav__link[aria-current="page"] { padding-left: 18px; }

  .ng-nav__foot {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    margin-top: auto;
    padding-top: 22px;
  }
  .ng-nav__foot .btn { width: 100%; }
  .ng-nav__foot .btn--ghost { display: inline-flex; }
}

/* ---------- 动效降级 ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  .bar__fill { width: var(--bar, 50%); }
  .btn:hover { transform: none; }
}
