/* ============================================================
   壹乐娱乐 · 共享样式 /assets/site.css
   夜间娱乐场 × 极简文字建筑
   ============================================================ */

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

:root {
  --ink: #071426;
  --ink-deep: #050f1c;
  --panel: #0D2238;
  --panel-2: #122b45;
  --cyan: #35F2D0;
  --orange: #FF9E3D;
  --violet: #8C5BFF;
  --ice: #F4FAFF;
  --mist: #A8BED4;
  --line: #18364A;
  --coral: #FF5D7A;

  --rail-w: 254px;
  --wrap: 1180px;
  --gutter: clamp(18px, 3.6vw, 46px);
  --head-h: 60px;

  --font-display: 'Noto Sans SC', 'Source Han Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-body: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;

  --r-sm: 4px;
  --r-md: 10px;
  --r-lg: 18px;
  --ease: cubic-bezier(.22, .68, .32, 1);
}

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

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  min-height: 100dvh;
  background:
    radial-gradient(90% 58% at 88% -8%, rgba(140, 91, 255, .16), transparent 62%),
    radial-gradient(64% 46% at 6% 2%, rgba(53, 242, 208, .09), transparent 60%),
    var(--ink);
  color: var(--ice);
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: .01em;
  margin: 0 0 .5em;
  color: var(--ice);
}

p { margin: 0 0 1em; }
ul, ol { margin: 0; }
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }

::selection { background: rgba(53, 242, 208, .32); color: var(--ice); }

:focus-visible {
  outline: 2px solid var(--ice);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(53, 242, 208, .55);
  border-radius: 4px;
}

/* ---------- 跳转链接 ---------- */
.skip-link {
  position: fixed;
  top: 12px;
  inset-inline-start: 12px;
  z-index: 300;
  padding: 10px 18px;
  background: var(--cyan);
  color: #04121f;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: .04em;
  text-decoration: none;
  border-radius: var(--r-md);
  transform: translateY(-180%);
  transition: transform .18s var(--ease);
}
.skip-link:focus,
.skip-link:focus-visible { transform: translateY(0); }

/* ---------- 阅读进度 ---------- */
.rail-progress {
  display: none;
  position: fixed;
  top: 0;
  bottom: 0;
  inset-inline-start: calc(var(--rail-w) - 3px);
  width: 3px;
  z-index: 62;
  background: rgba(24, 54, 74, .55);
  pointer-events: none;
}
.rail-progress-fill {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleY(0);
  transform-origin: top center;
  background: linear-gradient(180deg, var(--cyan) 0%, var(--violet) 58%, var(--orange) 100%);
}

/* ============================================================
   头部 · 左侧纵向轨道
   ============================================================ */
.site-header {
  position: fixed;
  inset-block: 0;
  inset-inline-start: 0;
  z-index: 70;
  width: var(--rail-w);
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 24px 18px 20px;
  overflow-y: auto;
  overscroll-behavior: contain;
  background:
    repeating-linear-gradient(0deg, rgba(53, 242, 208, .045) 0 1px, transparent 1px 5px),
    radial-gradient(130% 44% at 0% 0%, rgba(140, 91, 255, .34), transparent 66%),
    linear-gradient(180deg, #0a1a2e 0%, #071426 56%, #050f1c 100%);
  border-inline-end: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 2px;
  text-decoration: none;
  color: var(--ice);
}
.brand-mark {
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 23px;
  font-weight: 900;
  line-height: 1;
  color: #04121f;
  background: linear-gradient(135deg, var(--cyan) 0%, #7ef7e2 46%, var(--violet) 100%);
  clip-path: polygon(0 0, 100% 0, 100% 74%, 74% 100%, 0 100%);
}
.brand-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.brand-name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 900;
  letter-spacing: .06em;
  line-height: 1.2;
  transform: skewX(-4deg);
  transform-origin: left center;
}
.brand-descriptor {
  font-size: 11px;
  line-height: 1.4;
  letter-spacing: .12em;
  color: var(--mist);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.brand--footer .brand-mark { width: 40px; height: 40px; font-size: 20px; }
.brand--footer .brand-name { font-size: 18px; }

/* 移动端汉堡按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(13, 34, 56, .92);
  color: var(--ice);
  cursor: pointer;
  transition: border-color .18s var(--ease), background .18s var(--ease);
}
.nav-toggle:hover { border-color: var(--cyan); background: rgba(53, 242, 208, .12); }
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  position: relative;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform .2s var(--ease), background .2s var(--ease);
}
.nav-toggle-bars::before,
.nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

/* 导航 */
.nav-rail {
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1 1 auto;
  min-height: 0;
}
.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 3px;
}
.nav-link {
  position: relative;
  display: grid;
  grid-template-columns: 22px 1fr;
  align-items: center;
  gap: 9px;
  padding: 10px 12px 10px 10px;
  border-inline-start: 2px solid transparent;
  border-radius: 0 12px 12px 0;
  color: var(--mist);
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .02em;
  transition: color .18s var(--ease), background .18s var(--ease),
              border-color .18s var(--ease), transform .18s var(--ease);
}
.nav-index {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  font-variant-numeric: tabular-nums;
  color: rgba(168, 190, 212, .55);
}
.nav-label { min-width: 0; }
.nav-link:hover {
  color: var(--ice);
  background: rgba(53, 242, 208, .09);
  border-inline-start-color: var(--orange);
  transform: translateX(2px);
}
.nav-link[aria-current="page"] {
  color: #04121f;
  background: linear-gradient(90deg, var(--cyan) 0%, rgba(53, 242, 208, .74) 100%);
  border-inline-start-color: var(--orange);
  box-shadow: 0 6px 18px rgba(53, 242, 208, .18);
}
.nav-link[aria-current="page"] .nav-index { color: rgba(4, 18, 31, .62); }

.rail-tools {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
}
.tool-chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 11px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--mist);
  text-decoration: none;
  background: rgba(13, 34, 56, .82);
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: color .18s var(--ease), background .18s var(--ease),
              border-color .18s var(--ease), transform .18s var(--ease);
}
.tool-chip:hover {
  color: #1a0d00;
  background: var(--orange);
  border-color: var(--orange);
  transform: translateY(-1px);
}
.rail-foot {
  margin: 0;
  font-size: 11px;
  line-height: 1.6;
  letter-spacing: .04em;
  color: rgba(168, 190, 212, .68);
}

/* ============================================================
   移动端 / 平板 —— 贴顶条 + 抽屉
   ============================================================ */
@media (max-width: 1079px) {
  .site-header {
    position: sticky;
    inset-block: auto;
    inset-inline-start: auto;
    top: 0;
    width: 100%;
    z-index: 80;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 16px;
    overflow: visible;
    border-inline-end: 0;
    border-block-end: 1px solid var(--line);
    background:
      radial-gradient(90% 160% at 0% 0%, rgba(140, 91, 255, .28), transparent 68%),
      linear-gradient(180deg, #0a1a2e, #071426);
  }
  .brand { padding: 0; gap: 9px; }
  .brand-mark { width: 38px; height: 38px; font-size: 19px; }
  .brand-name { font-size: 17px; }
  .brand-descriptor { display: none; }
  .nav-toggle { display: inline-flex; flex: 0 0 auto; }

  [data-nav] {
    position: fixed;
    inset: 0;
    z-index: 75;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: calc(var(--head-h) + 24px) 18px 28px;
    overflow-y: auto;
    background:
      radial-gradient(120% 50% at 100% 0%, rgba(140, 91, 255, .26), transparent 64%),
      linear-gradient(180deg, #0b1c31 0%, #071426 100%);
    border-block-start: 1px solid var(--line);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s var(--ease);
  }
  [data-nav][data-open="true"] {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }
  [data-nav] .nav-list { gap: 6px; }
  [data-nav] .nav-link { font-size: 17px; padding: 13px 12px; }
  [data-nav] .rail-tools { margin-top: 6px; border-top: 1px dashed var(--line); padding-top: 18px; }
  [data-nav] .tool-chip { padding: 8px 15px; font-size: 13px; }
  [data-nav] .rail-foot { margin-top: auto; font-size: 12px; }

  body.nav-open { overflow: hidden; }
}

@media (max-width: 420px) {
  .brand-name { font-size: 16px; }
  .brand-mark { width: 34px; height: 34px; font-size: 17px; }
}

/* ============================================================
   页脚 · 错层网格 + 印刷标签
   ============================================================ */
.site-footer {
  position: relative;
  margin-top: clamp(56px, 8vw, 108px);
  padding: clamp(38px, 5.5vw, 74px) var(--gutter) 26px;
  overflow: hidden;
  background:
    repeating-linear-gradient(90deg, rgba(168, 190, 212, .04) 0 1px, transparent 1px 26px),
    radial-gradient(120% 88% at 100% 0%, rgba(140, 91, 255, .20), transparent 58%),
    linear-gradient(180deg, #08182b 0%, #05101d 72%);
  border-block-start: 1px solid var(--line);
}
.site-footer::before {
  content: "";
  position: absolute;
  top: -1px;
  left: var(--gutter);
  width: 132px;
  height: 3px;
  background: linear-gradient(90deg, var(--cyan), var(--violet) 58%, var(--orange));
}
.footer-inner {
  position: relative;
  max-width: var(--wrap);
  margin-inline: auto;
}
.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.9fr);
  gap: clamp(26px, 4vw, 56px);
  align-items: start;
}
.footer-brand { display: flex; flex-direction: column; gap: 14px; }
.footer-tagline {
  margin: 0;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--cyan);
  transform: skewX(-4deg);
  transform-origin: left center;
}
.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px 26px;
}
.footer-col { min-width: 0; }
.footer-col-title {
  display: inline-block;
  margin: 0 0 14px;
  padding: 5px 13px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .16em;
  line-height: 1.4;
  color: var(--ice);
  background: rgba(53, 242, 208, .09);
  border: 1px solid rgba(53, 242, 208, .34);
  border-radius: 3px;
  transform: rotate(-1.2deg);
}
.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 9px;
}
.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 14.5px;
  color: var(--mist);
  text-decoration: none;
  transition: color .18s var(--ease);
}
.footer-links a::before {
  content: "";
  width: 10px;
  height: 1px;
  background: var(--line);
  transition: width .18s var(--ease), background .18s var(--ease);
}
.footer-links a:hover { color: var(--cyan); }
.footer-links a:hover::before { width: 20px; background: var(--orange); }

.footer-contact {
  margin: clamp(28px, 4vw, 46px) 0 0;
  padding-top: clamp(20px, 3vw, 30px);
  border-top: 1px dashed var(--line);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px 30px;
  font-style: normal;
}
.fc-item { display: grid; gap: 3px; min-width: 0; }
.fc-label {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .2em;
  color: var(--orange);
}
.fc-value {
  font-size: 14.5px;
  color: var(--ice);
  overflow-wrap: anywhere;
}
.footer-contact-note {
  grid-column: 1 / -1;
  margin: 0;
  max-width: 68ch;
  font-size: 12.5px;
  line-height: 1.75;
  color: var(--mist);
}
.footer-bottom {
  margin-top: clamp(22px, 3vw, 34px);
  padding-top: 16px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  align-items: center;
  justify-content: space-between;
}
.footer-legal {
  margin: 0;
  font-size: 12.5px;
  letter-spacing: .02em;
  color: rgba(168, 190, 212, .78);
}

@media (max-width: 860px) {
  .footer-top { grid-template-columns: 1fr; }
  .footer-nav { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
}

/* ============================================================
   通用组件
   ============================================================ */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.breadcrumb {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  margin: 0 0 20px;
  padding: 0;
  font-size: 12.5px;
  letter-spacing: .04em;
  color: var(--mist);
}
.breadcrumb a {
  color: var(--mist);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .18s var(--ease), border-color .18s var(--ease);
}
.breadcrumb a:hover { color: var(--cyan); border-bottom-color: var(--cyan); }
.breadcrumb li + li::before {
  content: "/";
  margin-inline-end: 10px;
  color: rgba(168, 190, 212, .42);
}
.breadcrumb [aria-current="page"] { color: var(--ice); font-weight: 600; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 24px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .05em;
  line-height: 1.3;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  transition: transform .18s var(--ease), background .18s var(--ease),
              border-color .18s var(--ease), color .18s var(--ease),
              box-shadow .18s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn--primary {
  background: var(--cyan);
  color: #04121f;
  box-shadow: 0 10px 26px rgba(53, 242, 208, .18);
}
.btn--primary:hover { background: #61fbe2; box-shadow: 0 12px 30px rgba(53, 242, 208, .28); }
.btn--ghost {
  background: rgba(13, 34, 56, .74);
  border-color: var(--line);
  color: var(--ice);
}
.btn--ghost:hover { border-color: var(--orange); color: var(--orange); }
.btn--orange {
  background: var(--orange);
  color: #1a0d00;
  box-shadow: 0 10px 24px rgba(255, 158, 61, .2);
}
.btn--orange:hover { background: #ffb266; }

.panel {
  position: relative;
  background: linear-gradient(180deg, rgba(13, 34, 56, .95), rgba(9, 24, 40, .95));
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(18px, 2.4vw, 28px);
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px 16px;
  margin-bottom: clamp(16px, 2.4vw, 24px);
}
.section-kicker {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .26em;
  color: var(--cyan);
  text-transform: uppercase;
}
.section-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(26px, 3.6vw, 42px);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: .01em;
  color: var(--ice);
  transform: skewX(-3deg);
  transform-origin: left center;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .03em;
  line-height: 1.5;
  color: var(--mist);
  background: rgba(13, 34, 56, .72);
  border: 1px solid var(--line);
  border-radius: 999px;
}
.tag--cyan { color: var(--cyan); border-color: rgba(53, 242, 208, .45); background: rgba(53, 242, 208, .10); }
.tag--orange { color: var(--orange); border-color: rgba(255, 158, 61, .45); background: rgba(255, 158, 61, .10); }
.tag--violet { color: #c9b5ff; border-color: rgba(140, 91, 255, .5); background: rgba(140, 91, 255, .16); }

.dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 3px rgba(53, 242, 208, .18);
  flex: 0 0 auto;
}

.grid { display: grid; gap: clamp(16px, 2.4vw, 26px); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(235px, 1fr)); }
.grid--split { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
@media (max-width: 860px) {
  .grid--split { grid-template-columns: minmax(0, 1fr); }
}

.prose {
  max-width: 68ch;
  font-size: 16.5px;
  line-height: 1.85;
  color: var(--mist);
}
.prose h2 {
  font-size: clamp(24px, 3vw, 32px);
  margin: 1.7em 0 .55em;
  color: var(--ice);
}
.prose h3 {
  font-size: clamp(18px, 2.2vw, 23px);
  margin: 1.5em 0 .45em;
  color: var(--ice);
}
.prose p { margin: 0 0 1.1em; }
.prose a { color: var(--cyan); text-decoration-color: rgba(53, 242, 208, .45); }
.prose ul, .prose ol { padding-inline-start: 1.25em; margin: 0 0 1.1em; }
.prose li { margin-bottom: .45em; }
.prose strong { color: var(--ice); font-weight: 700; }

.media {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(140, 91, 255, .22), rgba(53, 242, 208, .10) 58%, rgba(255, 158, 61, .12));
}
.media img { width: 100%; height: 100%; object-fit: cover; }
.media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(7, 20, 38, .22) 0 1px, transparent 1px 4px);
}
.media--wide { aspect-ratio: 16 / 9; }
.media--square { aspect-ratio: 1 / 1; }
.media--tall { aspect-ratio: 3 / 4; }

/* ============================================================
   桌面端轨道布局偏移
   ============================================================ */
@media (min-width: 1080px) {
  body { padding-inline-start: var(--rail-w); }
  .rail-progress { display: block; }
  .skip-link { inset-inline-start: calc(var(--rail-w) + 16px); }
}

/* ============================================================
   减少动态
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .nav-link:hover,
  .tool-chip:hover,
  .btn:hover { transform: none; }
}
