/* ============================================================
   银娱电子站 · 共享样式 /assets/site.css
   层次：背景色块层 → 玻璃信息层 → 实色数据层 → 走线索引层
   ============================================================ */

/* ---------- 1. Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 128px;
}

body,
h1, h2, h3, h4, h5,
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%; }

a { color: inherit; }

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

button { background: none; border: 0; }

/* ---------- 2. 变量 ---------- */
:root {
  --silver: #F1F3F7;
  --mist: #E4E8EF;
  --blue: #1C4ED8;
  --deep: #0A1733;
  --circuit: #7FA3FF;
  --orange: #FF7A2F;
  --orange-ink: #B3400A;
  --green: #12A47A;
  --amber: #F5A524;
  --warm: #FFF7EF;
  --ink: #0F172A;
  --ink-2: #475467;
  --line: #C9D1DC;
  --white: #FFFFFF;

  --max: 1320px;
  --gap: 24px;
  --radius: 14px;
  --radius-sm: 10px;
  --shell-h: 72px;

  --font-display: 'HarmonyOS Sans SC', 'Source Han Sans SC', 'Noto Sans SC', system-ui, sans-serif;
  --font-body: 'HarmonyOS Sans SC', 'PingFang SC', 'Microsoft YaHei', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --ease: cubic-bezier(.22, .61, .36, 1);
  --shadow: 0 18px 42px -30px rgba(10, 23, 51, .5);
  --shadow-soft: 0 12px 30px -24px rgba(10, 23, 51, .42);
}

/* ---------- 3. 中文排版基线 ---------- */
body {
  background: var(--silver);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.85;
  font-weight: 400;
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: -.02em;
  color: var(--ink);
}

h1 { font-size: clamp(2.2rem, 6vw, 5.5rem); }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.6rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.5rem); }
h4 { font-size: 1.05rem; letter-spacing: -.01em; }

p { max-width: 74ch; }

::selection { background: rgba(28, 78, 216, .18); color: var(--deep); }

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

.site-footer :focus-visible { outline-color: var(--circuit); }

.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;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 200;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 18px;
  background: var(--deep);
  color: var(--white);
  font-size: 14px;
  letter-spacing: .04em;
  text-decoration: none;
  border-radius: var(--radius-sm);
  border: 1px solid var(--circuit);
  transition: top .2s var(--ease);
}

.skip-link:focus { top: 12px; }

/* ---------- 4. 布局容器 ---------- */
.container {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: 24px;
}

.container--narrow { max-width: 880px; }

.section { padding: clamp(56px, 7vw, 96px) 0; }

.band {
  background: var(--mist);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: clamp(26px, 4vw, 44px) 0;
}

.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gap);
}

.grid-auto {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--gap);
}

/* ---------- 5. 通用字体与标记 ---------- */
.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: -.01em;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .22em;
  color: var(--blue);
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: currentColor;
  flex: none;
}

.annotation {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .3em;
  color: var(--ink-2);
  writing-mode: vertical-rl;
  text-orientation: mixed;
}

/* ---------- 6. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: .02em;
  text-decoration: none;
  cursor: pointer;
  transition: background .18s var(--ease), color .18s var(--ease),
              border-color .18s var(--ease), transform .18s var(--ease),
              box-shadow .18s var(--ease);
}

.btn:hover { transform: translateY(-2px); }

.btn--primary {
  background: var(--deep);
  color: var(--white);
  box-shadow: var(--shadow-soft);
}

.btn--primary:hover { background: var(--blue); }

.btn--ghost {
  background: rgba(255, 255, 255, .66);
  color: var(--deep);
  border-color: var(--line);
}

.btn--ghost:hover {
  background: var(--white);
  border-color: var(--circuit);
}

.btn--orange {
  background: var(--orange);
  color: var(--deep);
}

.btn--orange:hover { background: #FF9354; }

/* ---------- 7. 标签与状态点 ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .7);
  color: var(--ink-2);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .06em;
}

.tag--green {
  background: rgba(18, 164, 122, .14);
  border-color: rgba(18, 164, 122, .42);
  color: #0B6B52;
}

.tag--orange {
  background: rgba(255, 122, 47, .16);
  border-color: rgba(255, 122, 47, .46);
  color: var(--orange-ink);
}

.tag--amber {
  background: rgba(245, 165, 36, .2);
  border-color: rgba(245, 165, 36, .52);
  color: #7A5000;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(18, 164, 122, .18);
  flex: none;
}

/* ---------- 8. 玻璃层 / 实色层 / 数据 ---------- */
.glass {
  background: rgba(255, 255, 255, .62);
  border: 1px solid rgba(127, 163, 255, .55);
  border-radius: var(--radius);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  padding: clamp(20px, 2.4vw, 30px);
}

.slab {
  border-radius: var(--radius);
  padding: clamp(20px, 2.4vw, 32px);
  background: var(--deep);
  color: var(--white);
}

.slab--blue { background: linear-gradient(135deg, var(--blue), #3F6DF0 68%, var(--circuit)); }
.slab--deep { background: var(--deep); }
.slab--orange { background: var(--orange); color: var(--deep); }
.slab--warm { background: var(--warm); color: var(--ink); border: 1px solid var(--line); }

.stat { display: grid; gap: 6px; }

.stat__num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.15;
  letter-spacing: -.02em;
}

.stat__label {
  font-size: 12.5px;
  letter-spacing: .08em;
  color: var(--ink-2);
}

.slab .stat__label,
.slab--deep .stat__label { color: rgba(214, 226, 247, .8); }

/* ---------- 9. 走线分隔线 ---------- */
.trace-rule {
  position: relative;
  height: 1px;
  background: var(--line);
  margin: clamp(40px, 6vw, 72px) 0;
}

.trace-rule::before {
  content: "";
  position: absolute;
  top: -3px;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue);
}

.trace-rule--dot::after {
  content: "";
  position: absolute;
  top: -3px;
  right: 18%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--orange);
}

/* ---------- 10. 图片容器基础规则 ---------- */
.media-frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--mist);
  box-shadow: var(--shadow-soft);
}

.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.media-frame--21x9 { aspect-ratio: 21 / 9; }
.media-frame--16x9 { aspect-ratio: 16 / 9; }
.media-frame--4x3  { aspect-ratio: 4 / 3; }
.media-frame--1x1  { aspect-ratio: 1 / 1; }

.media-frame__caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 12px 16px;
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--white);
  background: linear-gradient(to top, rgba(10, 23, 51, .88), rgba(10, 23, 51, 0));
}

/* ---------- 11. 面包屑与正文 ---------- */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 18px 0;
  font-size: 12.5px;
  color: var(--ink-2);
}

.breadcrumbs li { display: inline-flex; align-items: center; gap: 10px; }

.breadcrumbs li + li::before {
  content: "/";
  font-family: var(--font-mono);
  color: var(--line);
}

.breadcrumbs a {
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  transition: border-color .18s var(--ease), color .18s var(--ease);
}

.breadcrumbs a:hover { color: var(--blue); border-bottom-color: var(--blue); }

.breadcrumbs [aria-current="page"] { color: var(--ink); font-weight: 600; }

.prose { max-width: 74ch; font-size: 17px; line-height: 1.9; }
.prose > * + * { margin-top: 1em; }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.3em; }

.prose ul > li {
  position: relative;
  padding-left: 20px;
}

.prose ul > li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: .85em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
}

.prose strong { font-weight: 700; color: var(--deep); }

/* ---------- 12. 页头 · 命令栏 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(241, 243, 247, .88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}

.cmdbar {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: var(--shell-h);
  padding-block: 8px;
}

.cmdbar__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  position: relative;
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--blue), var(--circuit));
  display: grid;
  place-items: center;
  box-shadow: 0 10px 20px -14px rgba(28, 78, 216, .9);
}

.brand-mark__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, .26);
}

.brand-text { display: grid; gap: 0; min-width: 0; }

.brand-name {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: .01em;
  line-height: 1.25;
  white-space: nowrap;
}

.brand-line {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .18em;
  color: var(--ink-2);
  line-height: 1.4;
  white-space: nowrap;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .66);
  font-size: 11.5px;
  letter-spacing: .06em;
  color: var(--ink-2);
  white-space: nowrap;
}

.cmdbar__nav { margin-left: auto; }

.nav-index {
  display: flex;
  align-items: stretch;
  gap: 2px;
}

.nav-index__link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 9px 12px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-size: 14.5px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: background .18s var(--ease), color .18s var(--ease),
              border-color .18s var(--ease), transform .18s var(--ease);
}

.nav-index__link:hover {
  background: rgba(255, 255, 255, .8);
  border-color: var(--line);
  transform: translateY(-2px);
}

.nav-index__num {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .04em;
  color: var(--blue);
}

.nav-index__link[aria-current="page"] {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--white);
  box-shadow: 0 12px 26px -18px rgba(28, 78, 216, .95);
}

.nav-index__link[aria-current="page"] .nav-index__num { color: rgba(255, 255, 255, .78); }

.nav-index__actions { display: none; }

.cmdbar__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  margin-left: auto;
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, .72);
  color: var(--ink);
  font-size: 13px;
  letter-spacing: .08em;
  cursor: pointer;
  transition: border-color .18s var(--ease), background .18s var(--ease);
}

.nav-toggle:hover { border-color: var(--circuit); background: var(--white); }

.nav-toggle__bars {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  width: 16px;
}

.nav-toggle__bars span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--blue);
  transition: transform .2s var(--ease);
}

.site-header[data-open] .nav-toggle__bars span:first-child { transform: translateY(3px) rotate(45deg); }
.site-header[data-open] .nav-toggle__bars span:last-child { transform: translateY(-3px) rotate(-45deg); }

.cmdbar__note {
  background: var(--mist);
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--ink-2);
  letter-spacing: .02em;
}

.cmdbar__note-inner {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 34px;
  padding-block: 6px;
}

.note-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 3px rgba(245, 165, 36, .2);
  flex: none;
}

.scroll-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--blue), var(--circuit) 62%, var(--orange));
  pointer-events: none;
}

/* ---------- 13. 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(64px, 8vw, 104px);
  background-color: var(--deep);
  background-image:
    linear-gradient(rgba(127, 163, 255, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(127, 163, 255, .07) 1px, transparent 1px);
  background-size: 64px 64px;
  color: #C7D3EA;
  overflow: hidden;
  font-size: 14.5px;
  line-height: 1.8;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: -220px;
  left: -10%;
  width: 60%;
  height: 460px;
  background: radial-gradient(circle at 35% 50%, rgba(28, 78, 216, .5), transparent 64%);
  pointer-events: none;
}

.foot-trace { position: relative; height: 26px; }

.foot-trace svg { width: 100%; height: 26px; display: block; }

.foot-trace path {
  fill: none;
  stroke: var(--circuit);
  stroke-width: 1.4;
  stroke-linejoin: round;
  stroke-linecap: round;
  opacity: .72;
}

.foot-trace circle { fill: var(--orange); }

.foot-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  gap: 44px 32px;
  padding: 52px 0 36px;
}

.foot-main { min-width: 0; }

.foot-brand {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 800;
  letter-spacing: .01em;
  color: var(--white);
  margin-bottom: 6px;
}

.foot-tag {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .22em;
  color: var(--circuit);
  margin-bottom: 18px;
}

.foot-scope {
  max-width: 36ch;
  color: #B9C7E2;
  margin-bottom: 12px;
}

.foot-note {
  max-width: 38ch;
  font-size: 12.5px;
  color: #8FA2C4;
}

.foot-col__title {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .24em;
  color: var(--circuit);
  margin-bottom: 16px;
}

.foot-list { display: grid; gap: 10px; }

.foot-link {
  display: inline-block;
  color: #D5DFF2;
  font-size: 15px;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .18s var(--ease), border-color .18s var(--ease);
}

.foot-link:hover { color: var(--white); border-bottom-color: var(--orange); }

.foot-contact {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px 32px;
  padding: 28px 0;
  border-top: 1px solid rgba(127, 163, 255, .24);
  border-bottom: 1px solid rgba(127, 163, 255, .24);
}

.foot-contact__item { max-width: none; }

.foot-contact__item--wide { grid-column: 1 / -1; max-width: 78ch; }

.foot-contact__key {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .2em;
  color: var(--circuit);
  margin-bottom: 4px;
}

.foot-contact__value { color: #E6EDFA; }

.foot-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 28px;
  padding: 22px 0 38px;
  font-size: 12.5px;
  color: #8FA2C4;
}

.foot-icp { color: #A9B9D8; }
.foot-rule { max-width: 62ch; }

/* ---------- 14. 显现动效 ---------- */
html[data-reveal-ready] [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}

html[data-reveal-ready] [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* ---------- 15. 响应式 ---------- */
@media (max-width: 1180px) {
  .status-chip { display: none; }
  .nav-index__link { padding: 9px 10px; font-size: 14px; }
}

@media (max-width: 1080px) {
  :root { --shell-h: 64px; }

  .cmdbar {
    flex-wrap: wrap;
    gap: 10px;
    padding-block: 10px;
  }

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

  .cmdbar__actions .btn--ghost { display: none; }

  .cmdbar__nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    margin-left: 0;
    padding: 16px 24px 22px;
    background: var(--deep);
    border-bottom: 1px solid rgba(127, 163, 255, .3);
    box-shadow: 0 30px 60px -40px rgba(10, 23, 51, .95);
    max-height: calc(100vh - var(--shell-h));
    overflow-y: auto;
  }

  .site-header[data-open] .cmdbar__nav { display: block; }

  .nav-index {
    flex-direction: column;
    gap: 6px;
  }

  .nav-index__link {
    justify-content: flex-start;
    min-height: 48px;
    padding: 11px 14px;
    color: #E8EDF8;
    border-color: rgba(127, 163, 255, .2);
    background: rgba(255, 255, 255, .04);
  }

  .nav-index__link:hover {
    background: rgba(127, 163, 255, .16);
    border-color: var(--circuit);
    transform: none;
  }

  .nav-index__num { color: var(--circuit); min-width: 22px; }

  .nav-index__link[aria-current="page"] {
    background: var(--blue);
    border-color: var(--blue);
    color: var(--white);
  }

  .nav-index__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid rgba(127, 163, 255, .24);
  }

  .foot-grid { padding-top: 44px; }
}

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

  .foot-main { grid-column: 1 / -1; }

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

@media (max-width: 720px) {
  body { font-size: 16px; }

  .container { padding-inline: 18px; }

  .cmdbar__note { font-size: 12px; }

  .cmdbar__note-inner { align-items: flex-start; }

  .foot-contact { grid-template-columns: 1fr; }

  .foot-bottom { padding-bottom: 30px; }
}

@media (max-width: 560px) {
  .brand-line { display: none; }
  .cmdbar__actions { display: none; }
  .foot-grid { grid-template-columns: 1fr; }

  .grid-12 { grid-template-columns: 1fr; }

  .btn { padding: 10px 14px; font-size: 14px; }
}

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

  html[data-reveal-ready] [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .btn:hover,
  .nav-index__link:hover { transform: none; }
}
