/* ============================================================
   壹乐游艺 · 共享样式表 /assets/site.css
   夜间游艺场 + 数字控制台
   ============================================================ */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h, 64px) + 16px);
}

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

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

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

a { color: inherit; }

button { font: inherit; color: inherit; background: none; border: 0; }

main { display: block; }

/* ---------- 2. 设计变量 ---------- */
:root {
  /* 色彩 */
  --ink-950: #07131F;
  --ink-900: #0A1B2A;
  --ink-800: #0F2436;
  --ink-700: #173349;
  --orange: #FF7A2F;
  --orange-soft: #FFA262;
  --terracotta: #C9562F;
  --cyan: #23E5D7;
  --cyan-soft: #63F0E6;
  --patina: #5C8F6D;
  --yellow: #FFE45C;
  --stone: #8FA0AD;
  --mist: #F5F1E6;
  --paper: #FBF7EE;

  --line: rgba(143, 160, 173, 0.22);
  --line-strong: rgba(143, 160, 173, 0.38);
  --mist-dim: rgba(245, 241, 230, 0.72);
  --mist-faint: rgba(245, 241, 230, 0.58);

  /* 字体 */
  --font-display: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --font-body: var(--font-display);
  --font-serif: "Noto Serif SC", "Songti SC", "Source Han Serif SC", Georgia, "Times New Roman", serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* 形状 */
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;

  /* 动效 */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 260ms;

  /* 尺度 */
  --shell: 1180px;
  --header-h: 64px;
  --gutter: clamp(18px, 4vw, 44px);
}

/* ---------- 3. 基础排版 ---------- */
body {
  background-color: var(--ink-950);
  color: var(--mist);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.75;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.015em;
}

p { max-width: 68ch; }

::selection {
  background: var(--orange);
  color: var(--ink-950);
}

/* ---------- 4. 焦点可访问 ---------- */
:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 4px;
}

.yl-skip {
  position: fixed;
  top: -120px;
  left: clamp(12px, 3vw, 28px);
  z-index: 200;
  padding: 11px 18px;
  border-radius: 0 0 10px 10px;
  background: var(--cyan);
  color: var(--ink-950);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: top var(--dur) var(--ease);
}

.yl-skip:focus,
.yl-skip:focus-visible { top: 0; }

/* ---------- 5. 布局工具 ---------- */
.yl-container {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

.yl-section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px 20px;
  margin-bottom: clamp(22px, 3vw, 38px);
}

.yl-grid {
  display: grid;
  gap: clamp(16px, 2.4vw, 28px);
  grid-template-columns: repeat(var(--cols, 1), minmax(0, 1fr));
}

@media (min-width: 720px) {
  .yl-grid { grid-template-columns: repeat(var(--cols-md, 2), minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
  .yl-grid { grid-template-columns: repeat(var(--cols-lg, 3), minmax(0, 1fr)); }
}

/* ---------- 6. 排版组件 ---------- */
.yl-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cyan);
}

.yl-eyebrow::before {
  content: "";
  width: 20px;
  height: 1px;
  background: var(--cyan);
  flex: 0 0 auto;
}

.yl-display {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(48px, 8vw, 104px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  color: var(--mist);
}

.yl-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(22px, 3vw, 32px);
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: var(--mist);
}

.yl-lede {
  font-size: clamp(15px, 1.5vw, 17px);
  line-height: 1.85;
  color: var(--mist-dim);
  max-width: 58ch;
}

.yl-serif {
  font-family: var(--font-serif);
  letter-spacing: 0.01em;
}

.yl-mono {
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
}

.yl-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(15, 36, 54, 0.62);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--stone);
  white-space: nowrap;
}

.yl-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border-radius: 6px;
  background: var(--yellow);
  color: #241a00;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.yl-rule {
  height: 1px;
  border: 0;
  margin-block: clamp(28px, 4vw, 56px);
  background: linear-gradient(90deg, var(--line-strong), rgba(143, 160, 173, 0));
}

/* ---------- 7. 面包屑 ---------- */
.yl-crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding-block: 18px 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--stone);
}

.yl-crumbs__link {
  color: var(--stone);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.yl-crumbs__link:hover {
  color: var(--cyan);
  border-bottom-color: var(--cyan);
}

.yl-crumbs__sep {
  color: rgba(143, 160, 173, 0.5);
}

.yl-crumbs [aria-current="page"] {
  color: var(--mist);
}

/* ---------- 8. 按钮 ---------- */
.yl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--dur) var(--ease),
    color var(--dur) var(--ease),
    border-color var(--dur) var(--ease),
    transform var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease);
}

.yl-btn--primary {
  background: var(--orange);
  color: var(--ink-950);
  box-shadow: 0 10px 26px -14px rgba(255, 122, 47, 0.95);
}

.yl-btn--primary:hover {
  background: var(--orange-soft);
  transform: translateY(-1px);
}

.yl-btn--ghost {
  background: transparent;
  color: var(--mist);
  border-color: var(--line-strong);
}

.yl-btn--ghost:hover {
  color: var(--cyan);
  border-color: var(--cyan);
}

.yl-btn--cyan {
  background: var(--cyan);
  color: var(--ink-950);
}

.yl-btn--cyan:hover {
  background: var(--cyan-soft);
  transform: translateY(-1px);
}

/* ---------- 9. 媒体容器 ---------- */
.yl-media {
  position: relative;
  display: block;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(150deg, var(--ink-800), var(--ink-950));
  box-shadow: 0 22px 50px -32px rgba(0, 0, 0, 0.95);
}

.yl-media::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(35, 229, 215, 0.09);
  pointer-events: none;
}

.yl-media--wide { aspect-ratio: 16 / 9; }
.yl-media--tall { aspect-ratio: 3 / 4; }
.yl-media--square { aspect-ratio: 1 / 1; }

.yl-media__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ---------- 10. 页头 / 命令栏 ---------- */
.yl-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(7, 19, 31, 0.9);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
  border-bottom: 1px solid var(--line);
}

.yl-header__inner {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.6vw, 26px);
  width: 100%;
  max-width: 1320px;
  min-height: var(--header-h);
  margin-inline: auto;
  padding-inline: clamp(14px, 3vw, 32px);
}

/* 品牌 */
.yl-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  text-decoration: none;
}

.yl-brand__mark {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: conic-gradient(from 200deg,
    var(--orange),
    var(--yellow) 28%,
    var(--cyan) 62%,
    var(--orange));
  box-shadow: inset 0 0 0 7px var(--ink-950), 0 0 18px rgba(35, 229, 215, 0.32);
  transition: box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.yl-brand:hover .yl-brand__mark {
  transform: rotate(-18deg);
  box-shadow: inset 0 0 0 7px var(--ink-950), 0 0 26px rgba(255, 122, 47, 0.55);
}

.yl-brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.12;
}

.yl-brand__name {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--mist);
}

.yl-brand__sub {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--stone);
}

/* 导航 */
.yl-nav {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  justify-content: center;
}

.yl-nav__list {
  display: flex;
  align-items: center;
  gap: 2px;
}

.yl-nav__item { display: flex; }

.yl-nav__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border: 1px solid transparent;
  border-radius: 9px;
  color: var(--mist-dim);
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--dur) var(--ease),
    background-color var(--dur) var(--ease),
    border-color var(--dur) var(--ease);
}

.yl-nav__idx {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  color: var(--stone);
  opacity: 0.9;
}

.yl-nav__link:hover {
  color: var(--mist);
  background: rgba(35, 229, 215, 0.1);
}

.yl-nav__link:hover .yl-nav__idx { color: var(--cyan); }

.yl-nav__link[aria-current="page"] {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--ink-950);
  font-weight: 700;
  box-shadow: 0 6px 20px -12px rgba(255, 122, 47, 0.95);
}

.yl-nav__link[aria-current="page"] .yl-nav__idx {
  color: rgba(7, 19, 31, 0.55);
  opacity: 1;
}

/* 右侧动作区 */
.yl-header__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  margin-left: auto;
}

.yl-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: none;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--stone);
  white-space: nowrap;
}

.yl-status__dot {
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--cyan);
  animation: yl-pulse 2.6s var(--ease) infinite;
}

.yl-status__label { display: inline-block; }

@keyframes yl-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(35, 229, 215, 0.55); }
  50%      { box-shadow: 0 0 0 6px rgba(35, 229, 215, 0); }
}

/* 移动端索引按钮 */
.yl-nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: rgba(15, 36, 54, 0.8);
  color: var(--mist);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  cursor: pointer;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.yl-nav-toggle__bars {
  position: relative;
  display: block;
  width: 14px;
  height: 10px;
}

.yl-nav-toggle__bars::before,
.yl-nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 1.5px;
  border-radius: 2px;
  background: currentColor;
  transition: transform var(--dur) var(--ease),
    top var(--dur) var(--ease);
}

.yl-nav-toggle__bars::before { top: 0; }
.yl-nav-toggle__bars::after  { top: 8px; }

.yl-nav-toggle__text { line-height: 1; }

.yl-header[data-open] .yl-nav-toggle__bars::before {
  top: 4px;
  transform: rotate(45deg);
}

.yl-header[data-open] .yl-nav-toggle__bars::after {
  top: 4px;
  transform: rotate(-45deg);
}

.yl-header[data-open] .yl-nav-toggle {
  color: var(--cyan);
  border-color: var(--cyan);
}

/* 滚动进度 */
.yl-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  overflow: hidden;
  pointer-events: none;
}

.yl-progress__bar {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg,
    var(--orange) 0%,
    var(--yellow) 48%,
    var(--cyan) 100%);
  box-shadow: 0 0 12px rgba(35, 229, 215, 0.55);
}

/* ---------- 11. 页脚 ---------- */
.yl-footer {
  position: relative;
  padding-top: clamp(40px, 6vw, 72px);
  background: linear-gradient(180deg, var(--ink-950) 0%, #040C14 68%);
}

.yl-footer__band {
  display: block;
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  background: linear-gradient(90deg,
    var(--orange) 0%,
    var(--terracotta) 28%,
    var(--patina) 52%,
    var(--cyan) 78%,
    var(--yellow) 100%);
  opacity: 0.9;
}

.yl-footer__inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.45fr;
  gap: clamp(24px, 3.4vw, 48px);
  padding-bottom: clamp(32px, 4vw, 56px);
}

.yl-footer__brand { max-width: 34ch; }

.yl-footer__name {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--mist);
  max-width: none;
}

.yl-footer__tag {
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--cyan);
  max-width: none;
}

.yl-footer__desc {
  margin-top: 14px;
  font-family: var(--font-serif);
  font-size: 14px;
  line-height: 1.9;
  color: var(--mist-faint);
}

.yl-footer__col { min-width: 0; }

.yl-footer__title {
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--stone);
}

.yl-footer__list {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.yl-footer__link {
  position: relative;
  display: inline-block;
  font-size: 14px;
  color: var(--mist-dim);
  text-decoration: none;
  transition: color var(--dur) var(--ease), padding-left var(--dur) var(--ease);
}

.yl-footer__link::before {
  content: "";
  position: absolute;
  left: -12px;
  top: 50%;
  width: 0;
  height: 1px;
  background: var(--cyan);
  transition: width var(--dur) var(--ease);
}

.yl-footer__link:hover {
  color: var(--cyan);
  padding-left: 10px;
}

.yl-footer__link:hover::before { width: 8px; }

.yl-footer__contact { min-width: 0; }

.yl-footer__contact-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.yl-footer__contact-item {
  display: grid;
  gap: 2px;
}

.yl-footer__contact-key {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: var(--stone);
}

.yl-footer__contact-val {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.6;
  color: rgba(245, 241, 230, 0.86);
  overflow-wrap: anywhere;
}

.yl-footer__legal-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 22px;
  padding-block: 20px clamp(22px, 3vw, 30px);
  border-top: 1px solid var(--line);
}

.yl-footer__legal {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: var(--stone);
  max-width: none;
}

.yl-footer__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}

.yl-footer__meta-link {
  font-size: 12px;
  color: var(--stone);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.yl-footer__meta-link:hover {
  color: var(--cyan);
  border-bottom-color: var(--cyan);
}

/* ---------- 12. 显现协议 ---------- */
[data-reveal] {
  opacity: 1;
  transform: none;
}

.yl-js [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 14px, 0);
  transition: opacity 0.52s var(--ease), transform 0.52s var(--ease);
  will-change: opacity, transform;
}

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

/* ---------- 13. 响应式 ---------- */
@media (max-width: 1120px) {
  .yl-status { display: none; }
}

@media (max-width: 1000px) {
  .yl-footer__inner {
    grid-template-columns: 1fr 1fr;
  }
  .yl-footer__brand {
    grid-column: 1 / -1;
    max-width: none;
  }
}

@media (max-width: 940px) {
  :root { --header-h: 58px; }

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

  .yl-nav {
    position: fixed;
    left: 0;
    right: 0;
    top: var(--header-h);
    z-index: 89;
    display: block;
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    padding: 10px clamp(16px, 5vw, 28px) 26px;
    background: rgba(7, 19, 31, 0.98);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.95);
    opacity: 0;
    visibility: hidden;
    transform: translate3d(0, -10px, 0);
    pointer-events: none;
    transition: opacity var(--dur) var(--ease),
      transform var(--dur) var(--ease),
      visibility var(--dur) var(--ease);
  }

  .yl-header[data-open] .yl-nav {
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
  }

  .yl-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
  }

  .yl-nav__item { display: block; }

  .yl-nav__link {
    justify-content: flex-start;
    width: 100%;
    padding: 13px 12px;
    border-radius: 10px;
    border-bottom: 1px solid rgba(143, 160, 173, 0.12);
    font-size: 16px;
  }

  .yl-nav__link[aria-current="page"] {
    border-bottom-color: transparent;
  }

  .yl-nav__idx {
    width: 24px;
    font-size: 11px;
    flex: 0 0 auto;
  }

  .yl-header[data-open] .yl-progress { display: none; }
}

@media (max-width: 640px) {
  .yl-brand__sub { display: none; }

  .yl-header__actions { gap: 8px; }

  .yl-btn { padding: 9px 15px; font-size: 13px; }

  .yl-footer__inner { grid-template-columns: 1fr; }

  .yl-footer__legal-bar {
    flex-direction: column;
    align-items: flex-start;
  }

  .yl-section__head { gap: 8px 14px; }
}

/* ---------- 14. 减少动态 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

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

  .yl-status__dot { animation: none; }

  .yl-brand:hover .yl-brand__mark { transform: none; }

  .yl-btn:hover,
  .yl-btn--primary:hover,
  .yl-btn--cyan:hover { transform: none; }

  .yl-footer__link:hover { padding-left: 0; }

  .yl-footer__link:hover::before { width: 0; }
}
