/* ============================================================
   ab娱乐最新 · 共享样式 /assets/site.css
   分 段：重置 / 变量 / 排版 / 布局件 / 组件 / 头部 / 页脚 / 动效 / 响应式
   ============================================================ */

/* ---------- 1. 重置 ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body, h1, h2, h3, h4, h5, h6, p, ul, ol, li, figure, blockquote, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img, svg, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; }
a { color: inherit; }
table { border-collapse: collapse; }

/* ---------- 2. 变量 ---------- */
:root {
  --ink: #0A1224;
  --panel: #101C36;
  --night: #16233F;
  --paper: #F3EBDC;
  --paper-stripe: #E2D6BE;
  --cyan: #35E6D8;
  --violet: #8B5CF6;
  --amber: #FFB63D;
  --text: #E8EEF7;
  --muted: #8A98B3;
  --line: #2A3A5C;

  --font-display: "Barlow Condensed", "Oswald", "Noto Sans SC", "PingFang SC", sans-serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;

  --rail-w: 264px;
  --mast-h: 64px;
  --shell: 1220px;
  --radius: 14px;
  --radius-sm: 10px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --shadow-soft: 0 1px 0 rgba(255, 255, 255, .03), 0 18px 40px -28px rgba(0, 0, 0, .9);
}

@media (min-width: 1025px) { :root { --mast-h: 72px; } }

/* ---------- 3. 基础排版 ---------- */
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  min-height: 100%;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(680px 420px at 88% -8%, rgba(139, 92, 246, .26), transparent 66%),
    radial-gradient(560px 380px at 4% 96%, rgba(53, 230, 216, .14), transparent 68%),
    radial-gradient(420px 300px at 64% 110%, rgba(255, 182, 61, .09), transparent 72%);
}
h1, h2, h3, h4 { line-height: 1.22; font-weight: 700; }
h1 { font-family: var(--font-display); font-size: clamp(2.4rem, 5vw, 4.2rem); letter-spacing: .02em; }
h2 { font-family: var(--font-display); font-size: clamp(1.5rem, 2.6vw, 2.2rem); letter-spacing: .02em; }
h3 { font-size: 1.125rem; }
p { line-height: 1.75; }
::selection { background: rgba(53, 230, 216, .3); color: #fff; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }
[id] { scroll-margin-top: calc(var(--mast-h) + 18px); }

.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; letter-spacing: .04em; }
.num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; letter-spacing: .04em; color: var(--amber); }
.eyebrow {
  font-family: var(--font-mono);
  font-size: .75rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--cyan);
}
.section-title { font-family: var(--font-display); font-size: clamp(1.5rem, 2.6vw, 2.2rem); letter-spacing: .02em; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* ---------- 4. 布局件 ---------- */
.container {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: clamp(1.15rem, 3vw, 2.5rem);
}
.section { position: relative; padding-block: clamp(2.5rem, 5vw, 4.5rem); }
.paper { background: var(--paper); color: var(--night); padding-block: clamp(2.5rem, 5vw, 4.5rem); }
.paper h2, .paper h3, .paper .section-title { color: #101C36; }
.paper .prose a { color: #0E5C63; border-bottom-color: rgba(14, 92, 99, .4); }
.paper .tag { background: rgba(226, 214, 190, .75); border-color: var(--paper-stripe); color: #3A4560; }

.grid { display: grid; gap: clamp(1rem, 2vw, 1.5rem); }
.grid--split { grid-template-columns: 1fr; }
.grid--cards { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
@media (min-width: 900px) {
  .grid--split { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: start; }
}

.prose { max-width: 64ch; }
.prose p { margin-bottom: 1em; }
.prose a { color: var(--cyan); text-decoration: none; border-bottom: 1px solid rgba(53, 230, 216, .38); }

#main-content {
  position: relative;
  z-index: 1;
  padding-top: var(--mast-h);
  min-height: 60vh;
}
@media (min-width: 1025px) { #main-content { margin-left: var(--rail-w); } }

/* ---------- 5. 通用组件 ---------- */
.skip-link {
  position: fixed;
  top: -80px;
  left: 14px;
  z-index: 200;
  padding: .6rem 1rem;
  border-radius: 8px;
  background: var(--cyan);
  color: #04121F;
  font-weight: 700;
  font-size: .875rem;
  text-decoration: none;
  transition: top .22s var(--ease);
}
.skip-link:focus { top: 14px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  padding: .62rem 1.05rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: .875rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease),
              border-color .18s var(--ease), color .18s var(--ease), background .18s var(--ease);
}
.btn--primary {
  background: linear-gradient(120deg, #35E6D8, #8DF6EC);
  color: #04121F;
  box-shadow: 0 6px 22px rgba(53, 230, 216, .22), 0 0 0 1px rgba(139, 92, 246, .25);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(53, 230, 216, .34); }
.btn--ghost { border-color: var(--line); color: var(--text); background: rgba(16, 28, 54, .55); }
.btn--ghost:hover { border-color: var(--cyan); color: var(--cyan); transform: translateY(-2px); }

.tag {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .26rem .62rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(22, 35, 63, .72);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.tag--cyan { border-color: rgba(53, 230, 216, .45); color: var(--cyan); }
.tag--amber { border-color: rgba(255, 182, 61, .5); color: var(--amber); }

.card {
  position: relative;
  overflow: hidden;
  padding: clamp(1.1rem, 2vw, 1.5rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--panel), #0E1830);
  box-shadow: var(--shadow-soft);
}
.card__title { font-size: 1.125rem; margin-bottom: .4rem; }
.card__text { color: var(--muted); font-size: .9375rem; }
.card--paper { background: var(--paper); border-color: var(--paper-stripe); color: var(--night); }
.card--paper .card__text { color: #4A5568; }

.stat {
  padding: .9rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(16, 28, 54, .74);
}
.stat__label { display: block; font-size: .8125rem; color: var(--muted); }
.stat__value {
  display: block;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 1.5rem;
  letter-spacing: .04em;
  color: var(--amber);
}

.media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background:
    linear-gradient(135deg, #101C36 0%, #16233F 55%, #0A1224 100%);
}
.media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(58% 62% at 78% 10%, rgba(139, 92, 246, .36), transparent 70%),
    radial-gradient(52% 58% at 12% 88%, rgba(53, 230, 216, .24), transparent 72%);
}
.media > img, .media > svg, .media > picture { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.media--wide { aspect-ratio: 21 / 9; }
.media--tall { aspect-ratio: 4 / 5; }
.media--square { aspect-ratio: 1 / 1; }
.media__caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 1;
  padding: .7rem 1rem;
  font-size: .8125rem;
  color: var(--text);
  background: linear-gradient(180deg, transparent, rgba(10, 18, 36, .9));
}

.filter-bar { display: flex; flex-wrap: wrap; gap: .5rem; }
.filter-btn {
  padding: .42rem .82rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(16, 28, 54, .7);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: .78rem;
  letter-spacing: .05em;
  cursor: pointer;
  transition: color .2s var(--ease), border-color .2s var(--ease), background .2s var(--ease);
}
.filter-btn:hover { color: var(--text); border-color: rgba(53, 230, 216, .5); }
.filter-btn.is-active,
.filter-btn[aria-pressed="true"] {
  color: var(--text);
  border-color: var(--cyan);
  background: linear-gradient(120deg, rgba(53, 230, 216, .22), rgba(139, 92, 246, .18));
}
[data-filter-item].is-hidden { display: none; }
.filter-empty { font-size: .875rem; color: var(--muted); padding: .5rem 0; }
.filter-empty[hidden] { display: none; }

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
  padding-block: 1rem;
  font-family: var(--font-mono);
  font-size: .75rem;
  letter-spacing: .06em;
  color: var(--muted);
}
.breadcrumb a { color: var(--muted); text-decoration: none; transition: color .18s var(--ease); }
.breadcrumb a:hover { color: var(--cyan); }
.breadcrumb__sep { color: var(--line); }
.breadcrumb [aria-current="page"] { color: var(--text); }

/* ---------- 6. 头部：侧边轨道 + 顶条 ---------- */
.site-header { position: relative; z-index: 60; }

.rail {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 90;
  width: var(--rail-w);
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  padding: 1.5rem 1.15rem 1.25rem;
  overflow-y: auto;
  background: linear-gradient(180deg, #0A1224 0%, #0C1730 55%, #0A1224 100%);
  border-right: 1px solid var(--line);
  box-shadow: 1px 0 0 rgba(139, 92, 246, .12);
}
.rail::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 230px;
  pointer-events: none;
  background: radial-gradient(180px 160px at 22% 0%, rgba(139, 92, 246, .34), transparent 72%);
}
.rail__brand {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: .25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}
.rail__mark {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: .05em;
  color: var(--text);
}
.rail__mark-accent { color: var(--cyan); }
.rail__tag {
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .12em;
  color: var(--muted);
}
.rail__nav { position: relative; display: flex; flex-direction: column; gap: .6rem; }
.rail__label {
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
}
.rail__list { display: flex; flex-direction: column; gap: 2px; }
.rail__item { display: block; }
.rail__link {
  position: relative;
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: .58rem .7rem .58rem .9rem;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-size: .95rem;
  text-decoration: none;
  transition: color .18s var(--ease), background .18s var(--ease),
              border-color .18s var(--ease), transform .18s var(--ease);
}
.rail__link::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  width: 2px; height: 0;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--cyan), var(--violet));
  transform: translateY(-50%);
  transition: height .18s var(--ease);
}
.rail__link:hover {
  color: var(--text);
  background: rgba(53, 230, 216, .07);
  border-color: rgba(53, 230, 216, .26);
  transform: translateX(2px);
}
.rail__link[aria-current="page"] {
  color: var(--text);
  border-color: rgba(53, 230, 216, .45);
  background: linear-gradient(90deg, rgba(53, 230, 216, .18), rgba(139, 92, 246, .1));
}
.rail__link[aria-current="page"]::before { height: 62%; }
.rail__num {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .06em;
  color: var(--muted);
}
.rail__link[aria-current="page"] .rail__num { color: var(--cyan); }
.rail__text { flex: 1; }
.rail__foot {
  position: relative;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: .45rem;
}
.rail__note { font-size: .78rem; color: var(--muted); }
.rail__contact {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .875rem;
  font-weight: 600;
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color .18s var(--ease);
}
.rail__contact:hover { border-bottom-color: var(--cyan); }

.rail-scrim {
  position: fixed;
  inset: 0;
  z-index: 85;
  background: rgba(6, 10, 22, .72);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s var(--ease), visibility .3s var(--ease);
}
.rail-scrim[data-open] { opacity: 1; visibility: visible; }
@media (min-width: 1025px) { .rail-scrim { display: none; } }

.masthead {
  position: fixed;
  top: 0;
  left: var(--rail-w);
  right: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: var(--mast-h);
  padding-inline: clamp(1rem, 3vw, 2.25rem);
  background: rgba(10, 18, 36, .86);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.masthead__meta {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .16em;
  color: var(--muted);
}
.masthead__actions { display: flex; align-items: center; gap: .55rem; }

.brand { display: none; flex-direction: column; text-decoration: none; line-height: 1.25; }
.brand__name { font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; letter-spacing: .04em; color: var(--text); }
.brand__tag { font-family: var(--font-mono); font-size: .65rem; letter-spacing: .14em; color: var(--muted); }

.nav-toggle {
  display: none;
  align-items: center;
  gap: .5rem;
  padding: .48rem .8rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  cursor: pointer;
  transition: border-color .18s var(--ease), color .18s var(--ease), background .18s var(--ease);
}
.nav-toggle:hover { border-color: var(--cyan); color: var(--cyan); background: rgba(53, 230, 216, .08); }
.nav-toggle__text { font-family: var(--font-mono); font-size: .75rem; letter-spacing: .12em; }
.nav-toggle__bars { position: relative; display: block; width: 16px; height: 10px; }
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 1.5px;
  border-radius: 2px;
  background: currentColor;
  transition: top .24s var(--ease), transform .24s var(--ease);
}
.nav-toggle__bars::before { top: 0; }
.nav-toggle__bars::after { top: 8px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { top: 4px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { top: 4px; transform: rotate(-45deg); }

.scroll-meter {
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 2px;
  overflow: hidden;
  pointer-events: none;
}
.scroll-meter__fill {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  background: linear-gradient(90deg, var(--cyan), var(--violet));
  transition: transform .12s linear;
}

/* ---------- 7. 页脚 ---------- */
.site-footer {
  position: relative;
  z-index: 2;
  overflow: hidden;
  margin-top: clamp(3rem, 6vw, 5rem);
  padding: clamp(2.25rem, 4vw, 3.5rem) clamp(1.15rem, 3vw, 2.5rem) 1.5rem;
  background: linear-gradient(180deg, #0A1224, #0C1529 60%, #080E1C);
  border-top: 1px solid var(--line);
}
.site-footer::before {
  content: "";
  position: absolute;
  top: -40px; right: -60px;
  width: 360px; height: 240px;
  pointer-events: none;
  background: radial-gradient(closest-side, rgba(139, 92, 246, .22), transparent 72%);
}
@media (min-width: 1025px) { .site-footer { margin-left: var(--rail-w); } }

.footer__inner {
  position: relative;
  display: grid;
  gap: clamp(1.75rem, 3vw, 3rem);
  grid-template-columns: 1fr;
  max-width: var(--shell);
  margin-inline: auto;
}
@media (min-width: 900px) {
  .footer__inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); }
}
.footer__brand { display: flex; flex-direction: column; gap: .75rem; }
.footer__brandline {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--text);
}
.footer__tagline { font-size: .875rem; color: var(--muted); max-width: 34ch; }
.footer__meta { display: flex; flex-direction: column; gap: .45rem; }
.footer__meta-item {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .5rem;
  font-size: .875rem;
}
.footer__meta-key {
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .12em;
  color: var(--muted);
  min-width: 4.6rem;
}
.footer__meta-val { color: var(--text); }
.copy-btn {
  padding: .18rem .6rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .08em;
  cursor: pointer;
  transition: color .2s var(--ease), border-color .2s var(--ease), background .2s var(--ease);
}
.copy-btn:hover { color: var(--cyan); border-color: rgba(53, 230, 216, .5); }
.copy-btn.is-done { color: var(--amber); border-color: rgba(255, 182, 61, .6); background: rgba(255, 182, 61, .1); }

.footer__cols {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}
.footer__col { display: flex; flex-direction: column; gap: .6rem; }
.footer__coltitle {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--cyan);
}
.footer__list { display: flex; flex-direction: column; gap: .35rem; }
.footer__link {
  display: inline-block;
  font-size: .9375rem;
  color: var(--muted);
  text-decoration: none;
  transition: color .18s var(--ease), transform .18s var(--ease);
}
.footer__link:hover { color: var(--text); transform: translateX(2px); }
.footer__link--mail { color: var(--text); }

.footer__legal {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .5rem 1.5rem;
  max-width: var(--shell);
  margin: clamp(2rem, 4vw, 2.75rem) auto 0;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
  font-size: .8125rem;
  color: var(--muted);
}
.footer__copy { font-family: var(--font-mono); letter-spacing: .04em; }
.footer__copy [data-year] { color: var(--amber); }
.footer__icp { font-family: var(--font-mono); letter-spacing: .04em; }

/* ---------- 8. 动效 ---------- */
html.js-reveal [data-reveal] {
  opacity: 0;
  transform: translateY(12px);
}
html.js-reveal [data-reveal].is-visible {
  opacity: 1;
  transform: none;
  transition: opacity .32s var(--ease), transform .32s var(--ease);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js-reveal [data-reveal] { opacity: 1; transform: none; }
  .scroll-meter__fill { transition: none; }
  .rail { transition: none; }
  .btn:hover, .rail__link:hover, .footer__link:hover { transform: none; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

/* ---------- 9. 响应式 ---------- */
@media (max-width: 1024px) {
  .rail {
    width: min(86vw, 320px);
    transform: translateX(-102%);
    transition: transform .32s var(--ease);
    box-shadow: 0 0 44px rgba(0, 0, 0, .62);
  }
  .rail[data-open] { transform: translateX(0); }
  .masthead { left: 0; }
  .masthead__meta { display: none; }
  .brand { display: flex; }
  .nav-toggle { display: inline-flex; }
  html.nav-open, html.nav-open body { overflow: hidden; }
}

@media (max-width: 720px) {
  .masthead { gap: .5rem; padding-inline: 1rem; }
  .masthead__cta-secondary { display: none; }
  .masthead__actions { gap: .4rem; }
  .btn { padding: .55rem .9rem; font-size: .8125rem; }
  .footer__legal { flex-direction: column; align-items: flex-start; }
  .footer__meta-key { min-width: 4.2rem; }
}

@media (max-width: 400px) {
  .btn--primary { padding: .5rem .7rem; font-size: .78rem; }
  .nav-toggle__text { display: none; }
}
