/* ==========================================================================
   欧宝娱乐主站 · 共享站点套件
   夜间赛场指挥中心 / 矿物深绿 + 荧光青 + 琥珀金 + 暖橙
   ========================================================================== */

:root {
  --ink: #06110F;
  --deep: #0B1F1B;
  --panel: #12312A;
  --line: #1E4A40;
  --cyan: #2FD9C5;
  --cyan-soft: #9CF2E6;
  --amber: #E8B44A;
  --orange: #F2762E;
  --text: #D9E4E0;
  --muted: #8AA39C;

  --rail-w: 232px;
  --shell: 1220px;
  --radius: 2px;

  --ease: cubic-bezier(.2, .8, .2, 1);

  --font-display: "Arial Narrow", "Helvetica Neue", "PingFang SC", "Microsoft YaHei", "Source Han Sans SC", sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", "Noto Sans CJK SC", sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, "Liberation Mono", "Courier New", monospace;
}

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

html {
  -webkit-text-size-adjust: 100%;
  background-color: var(--ink);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--ink);
  background-image:
    radial-gradient(1100px 620px at 84% -12%, rgba(47, 217, 197, .10), transparent 64%),
    radial-gradient(820px 540px at 4% 6%, rgba(232, 180, 74, .055), transparent 62%);
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, p, figure, blockquote, dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, svg, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }

::selection {
  background: rgba(47, 217, 197, .28);
  color: #F4FFFC;
}

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

/* ---------- typography utils ---------- */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: -.02em;
  line-height: 1.1;
  color: #EDF6F3;
}

h1 { font-size: clamp(2.4rem, 5vw, 5.2rem); }
h2 { font-size: clamp(1.5rem, 2.4vw, 2.4rem); }
h3 { font-size: clamp(1.15rem, 1.6vw, 1.5rem); letter-spacing: -.01em; }

.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  letter-spacing: .04em;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--amber);
}

.eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: currentColor;
  opacity: .85;
}

.lede {
  max-width: 62ch;
  font-size: clamp(16px, 1.3vw, 18px);
  line-height: 1.8;
  color: var(--muted);
}

/* ---------- layout utils ---------- */
.wrap {
  width: min(var(--shell), calc(100% - 48px));
  margin-inline: auto;
}

.section {
  padding-block: clamp(48px, 7vw, 96px);
}

.panel {
  background: linear-gradient(180deg, rgba(18, 49, 42, .94), rgba(11, 31, 27, .94));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(18px, 2.4vw, 28px);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: .01em;
  text-align: center;
  cursor: pointer;
  transition:
    background-color .18s var(--ease),
    border-color .18s var(--ease),
    color .18s var(--ease),
    transform .18s var(--ease);
}

.btn--primary {
  background: var(--orange);
  border-color: var(--orange);
  color: #1A0700;
}

.btn--primary:hover {
  background: #FF8A45;
  border-color: #FF8A45;
  transform: translateY(-1px);
}

.btn--ghost {
  background: rgba(18, 49, 42, .5);
  border-color: var(--line);
  color: var(--cyan-soft);
}

.btn--ghost:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  background: rgba(47, 217, 197, .08);
}

/* ---------- skip link ---------- */
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--cyan);
  color: #04100E;
  font-size: 14px;
  font-weight: 700;
  border-radius: var(--radius);
  transform: translateY(-180%);
  transition: transform .2s var(--ease);
}

.skip-link:focus,
.skip-link:focus-visible {
  transform: translateY(0);
  outline: 2px solid #04100E;
  outline-offset: 2px;
}

/* ==========================================================================
   头部 / 左侧轨道
   ========================================================================== */
.site-header {
  position: relative;
  z-index: 60;
}

.rail {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--rail-w);
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 22px 0 20px;
  background: linear-gradient(180deg, #0B1F1B 0%, #081614 58%, #06110F 100%);
  border-right: 1px solid var(--line);
  z-index: 60;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.rail::-webkit-scrollbar { width: 4px; }
.rail::-webkit-scrollbar-thumb { background: var(--line); }

.rail::after {
  content: "";
  position: absolute;
  top: 0;
  right: -1px;
  bottom: 0;
  width: 1px;
  background: repeating-linear-gradient(180deg, var(--line) 0 12px, transparent 12px 26px);
  opacity: .8;
  pointer-events: none;
}

/* 品牌 */
.rail__brand { flex: 0 0 auto; }

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 22px;
  transition: opacity .18s var(--ease);
}

.brand:hover { opacity: .88; }

.brand__mark {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 20px;
  line-height: 1;
  color: var(--cyan);
  background:
    radial-gradient(circle at 28% 22%, rgba(47, 217, 197, .26), transparent 70%),
    var(--panel);
  border: 1px solid var(--line);
  clip-path: polygon(0 0, 100% 0, 100% 70%, 70% 100%, 0 100%);
}

.brand__text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.brand__name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 17px;
  line-height: 1.25;
  letter-spacing: -.01em;
  color: #EDF6F3;
  white-space: nowrap;
}

.brand__tagline {
  margin-top: 3px;
  font-size: 11px;
  line-height: 1.5;
  letter-spacing: .02em;
  color: var(--muted);
  white-space: nowrap;
}

/* 导航 */
.rail__nav {
  flex: 0 0 auto;
  padding: 12px 0;
  border-top: 1px solid rgba(30, 74, 64, .7);
  border-bottom: 1px solid rgba(30, 74, 64, .7);
}

.rail__list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.rail__link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 22px;
  font-size: 15px;
  font-weight: 500;
  color: var(--muted);
  transition: color .18s var(--ease), background-color .18s var(--ease);
}

.rail__link::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  bottom: 9px;
  width: 2px;
  background: var(--cyan);
  opacity: 0;
  transform: scaleY(.25);
  transform-origin: center;
  transition: opacity .2s var(--ease), transform .24s var(--ease);
}

.rail__link:hover {
  color: var(--cyan-soft);
  background: rgba(47, 217, 197, .05);
}

.rail__link:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: -2px;
}

.rail__link[aria-current="page"] {
  color: var(--cyan-soft);
  background: linear-gradient(90deg, rgba(47, 217, 197, .14), rgba(47, 217, 197, 0) 82%);
}

.rail__link[aria-current="page"]::before {
  opacity: 1;
  transform: scaleY(1);
}

.rail__idx {
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--line);
  transition: color .18s var(--ease);
}

.rail__link:hover .rail__idx { color: var(--cyan); }

.rail__link[aria-current="page"] .rail__idx { color: var(--amber); }

.rail__label {
  min-width: 0;
  letter-spacing: .01em;
}

/* 轨道底部 */
.rail__foot {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0 22px 4px;
}

.rail__cta { width: 100%; }

.rail__note {
  font-size: 12px;
  line-height: 1.65;
  color: var(--muted);
}

.rail__note a {
  color: var(--cyan);
  border-bottom: 1px solid rgba(47, 217, 197, .4);
  transition: color .16s var(--ease), border-color .16s var(--ease);
}

.rail__note a:hover {
  color: var(--cyan-soft);
  border-bottom-color: var(--cyan-soft);
}

/* ---------- 移动指挥条 ---------- */
.topbar {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 58px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 16px;
  background: rgba(11, 31, 27, .94);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  z-index: 70;
}

.topbar__brand {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 16px;
  letter-spacing: -.01em;
  color: #EDF6F3;
}

.topbar__brand::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 8px;
  vertical-align: 2px;
  background: var(--amber);
  clip-path: polygon(0 0, 100% 0, 100% 72%, 72% 100%, 0 100%);
}

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 42px;
  height: 42px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color .18s var(--ease), background-color .18s var(--ease);
}

.nav-toggle:hover {
  border-color: var(--cyan);
  background: rgba(47, 217, 197, .08);
}

.nav-toggle__bar {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--cyan-soft);
  transition: transform .24s var(--ease), opacity .18s var(--ease);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- 抽屉遮罩 ---------- */
.rail-scrim {
  display: none;
  position: fixed;
  inset: 0;
  padding: 0;
  border: 0;
  background: rgba(6, 17, 15, .74);
  opacity: 0;
  pointer-events: none;
  cursor: pointer;
  z-index: 55;
  transition: opacity .28s var(--ease);
}

/* ---------- 滚动指示线 ---------- */
.scroll-meter {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 2px;
  background: rgba(30, 74, 64, .35);
  pointer-events: none;
  z-index: 90;
}

.scroll-meter__fill {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleY(0);
  transform-origin: top center;
  background: linear-gradient(180deg, var(--cyan) 0%, var(--cyan-soft) 42%, var(--amber) 100%);
  will-change: transform;
}

/* ==========================================================================
   页脚
   ========================================================================== */
.site-footer {
  position: relative;
  margin-top: clamp(72px, 10vw, 140px);
  padding-bottom: 0;
  background:
    linear-gradient(180deg, rgba(6, 17, 15, 0) 0%, rgba(11, 31, 27, .82) 20%, #081614 100%);
  border-top: 1px solid var(--line);
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 140px;
  background: repeating-linear-gradient(90deg, rgba(47, 217, 197, .16) 0 1px, transparent 1px 44px);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0%, transparent 100%);
  pointer-events: none;
}

.footer__inner {
  position: relative;
  width: min(var(--shell), calc(100% - 48px));
  margin-inline: auto;
  padding-top: clamp(44px, 5vw, 68px);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.1fr 2fr;
  gap: 44px 56px;
  padding-bottom: clamp(28px, 3.4vw, 40px);
  border-bottom: 1px solid rgba(30, 74, 64, .65);
}

.footer__brand { max-width: 40ch; }

.footer__logo {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.5rem, 2vw, 2rem);
  line-height: 1.1;
  letter-spacing: -.02em;
  color: #EDF6F3;
}

.footer__logo::after {
  content: "";
  display: block;
  width: 46px;
  height: 2px;
  margin-top: 12px;
  background: linear-gradient(90deg, var(--cyan), rgba(47, 217, 197, 0));
}

.footer__claim {
  margin-top: 14px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--muted);
}

.footer__brand .btn { margin-top: 20px; }

.footer__cols {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px 20px;
}

.footer__title {
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .16em;
  color: var(--amber);
  line-height: 1.4;
}

.footer__title::before {
  content: "";
  display: block;
  width: 16px;
  height: 1px;
  margin-bottom: 10px;
  background: var(--line);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.footer__links a {
  display: inline-block;
  padding: 5px 0;
  font-size: 15px;
  color: var(--muted);
  transition: color .16s var(--ease), transform .2s var(--ease);
}

.footer__links a:hover {
  color: var(--cyan-soft);
  transform: translateX(3px);
}

.footer__contact {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(248px, 1fr));
  gap: 14px 32px;
  padding: clamp(24px, 3vw, 32px) 0;
  border-bottom: 1px solid rgba(30, 74, 64, .55);
}

.footer__contact-item {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
  min-width: 0;
  font-size: 14px;
  line-height: 1.6;
}

.footer__key {
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .16em;
  color: var(--amber);
}

.footer__val {
  min-width: 0;
  color: var(--text);
  word-break: break-word;
}

.footer__base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  padding: 24px 0 clamp(56px, 8vw, 116px);
}

.footer__legal,
.footer__meta {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .06em;
  color: var(--muted);
}

.footer__legal { color: var(--text); }

/* ==========================================================================
   通用组件
   ========================================================================== */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .08em;
  color: var(--muted);
}

.breadcrumb a {
  color: var(--muted);
  transition: color .16s var(--ease);
}

.breadcrumb a:hover { color: var(--cyan); }

.breadcrumb__sep {
  color: var(--line);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  -webkit-appearance: none;
  appearance: none;
  padding: 7px 14px;
  background: rgba(18, 49, 42, .65);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .06em;
  color: var(--muted);
  cursor: pointer;
  transition:
    color .16s var(--ease),
    border-color .16s var(--ease),
    background-color .16s var(--ease);
}

.chip:hover {
  color: var(--cyan-soft);
  border-color: var(--cyan);
}

.chip[aria-pressed="true"],
.chip.is-active {
  background: rgba(47, 217, 197, .14);
  border-color: var(--cyan);
  color: var(--cyan-soft);
}

.chip:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

/* 图片容器 */
.img-frame {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(140deg, rgba(18, 49, 42, .95), rgba(6, 17, 15, .95));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  aspect-ratio: 16 / 9;
}

.img-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(47, 217, 197, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(47, 217, 197, .07) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

.img-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: relative;
  z-index: 1;
}

.img-frame--wide { aspect-ratio: 21 / 9; }
.img-frame--tall { aspect-ratio: 3 / 4; }
.img-frame--square { aspect-ratio: 1 / 1; }
.img-frame--strip { aspect-ratio: 4 / 1; }

.img-frame__caption {
  margin-top: 10px;
  font-size: 12px;
  line-height: 1.6;
  letter-spacing: .02em;
  color: var(--muted);
}

/* 渐显 */
[data-reveal] {
  transition: opacity .34s var(--ease), transform .34s var(--ease);
}

.js-reveal [data-reveal] {
  opacity: 0;
  transform: translateY(8px);
}

.js-reveal [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

.js-reveal [data-reveal-delay="1"] { transition-delay: .06s; }
.js-reveal [data-reveal-delay="2"] { transition-delay: .12s; }
.js-reveal [data-reveal-delay="3"] { transition-delay: .18s; }

/* ==========================================================================
   响应式
   ========================================================================== */

/* 平板：轨道收窄为刻度尺 */
@media (min-width: 768px) and (max-width: 1079px) {
  :root { --rail-w: 88px; }

  .rail {
    padding-top: 18px;
    gap: 16px;
  }

  .brand {
    justify-content: center;
    padding: 0;
  }

  .brand__text { display: none; }

  .rail__nav { padding: 10px 0; }

  .rail__link {
    justify-content: center;
    padding: 13px 4px;
  }

  .rail__label { display: none; }

  .rail__idx { font-size: 12px; color: var(--muted); }

  .rail__foot { padding: 0 10px 4px; }

  .rail__cta {
    padding: 9px 2px;
    font-size: 12px;
    line-height: 1.3;
    letter-spacing: 0;
  }

  .rail__note { display: none; }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (min-width: 768px) {
  body { padding-left: var(--rail-w); }

  .topbar { display: none; }

  .rail-scrim { display: none; }
}

/* 移动端：抽屉 */
@media (max-width: 767px) {
  body { padding-top: 58px; }

  #main-content { scroll-margin-top: 72px; }

  .topbar { display: flex; }

  .rail-scrim { display: block; }

  .rail {
    width: min(86vw, 320px);
    padding-top: 20px;
    transform: translateX(-102%);
    transition: transform .32s var(--ease);
    box-shadow: none;
  }

  .rail[data-open] {
    transform: translateX(0);
    box-shadow: 24px 0 64px rgba(0, 0, 0, .62);
  }

  .rail-scrim[data-open] {
    opacity: 1;
    pointer-events: auto;
  }

  body.nav-locked { overflow: hidden; }

  .brand { padding: 0 20px; }

  .brand__tagline { white-space: normal; }

  .rail__link { padding: 12px 20px; }

  .rail__foot { padding: 0 20px 6px; }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer__cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 16px;
  }

  .wrap,
  .footer__inner {
    width: calc(100% - 32px);
  }

  .footer__base {
    justify-content: flex-start;
    padding-bottom: clamp(44px, 12vw, 72px);
  }
}

@media (max-width: 420px) {
  .topbar__brand { font-size: 15px; }
  .footer__cols { grid-template-columns: 1fr; }
}

/* 宽屏：略微放大轨道留白 */
@media (min-width: 1440px) {
  :root { --rail-w: 248px; }
}

/* ==========================================================================
   降低动效
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }

  .js-reveal [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .scroll-meter__fill { transition: none; }
}
