/* ==========================================================================
   万达娱乐 · 皮肤层 02 / cabinet
   站点外壳：左侧街机导轨、顶部状态条、跑马灯、页头、页脚、移动端抽屉。
   ========================================================================== */

/* ---------- 左侧街机导轨 ---------- */
.wd-rail {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  width: var(--rail);
  padding: 14px 10px 12px;
  border-right: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(24, 20, 38, 0.96), rgba(9, 7, 15, 0.98)),
    var(--ink-2);
  box-shadow: 14px 0 40px rgba(0, 0, 0, 0.4);
}

.wd-brand-cube {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin: 0 auto 6px;
  border-radius: 10px;
  background: linear-gradient(160deg, var(--neon), #8fe017);
  color: #0b0710;
  font-size: 20px;
  font-weight: 900;
  box-shadow: var(--glow-neon);
}

.wd-brand-sig {
  margin: 0 auto 16px;
  font-family: var(--lf);
  font-size: 9px;
  letter-spacing: 0.18em;
  color: var(--mute);
  text-align: center;
}

.wd-rail-nav {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 4px;
  overflow-y: auto;
  scrollbar-width: none;
}

.wd-rail-nav::-webkit-scrollbar { display: none; }

.wd-rail-key {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 7px 2px 6px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--text-2);
  transition: color 0.18s var(--ease), background 0.18s var(--ease), border-color 0.18s var(--ease);
}

.wd-rail-key b {
  display: grid;
  place-items: center;
  width: 34px;
  height: 24px;
  border: 1px solid var(--line-2);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.03);
  font-family: var(--lf);
  font-size: 10px;
  letter-spacing: 0.08em;
  font-weight: 600;
}

.wd-rail-key span {
  font-size: 11px;
  line-height: 1.2;
  letter-spacing: 0.02em;
}

.wd-rail-key:hover {
  color: var(--text);
  border-color: var(--line-2);
  background: rgba(255, 255, 255, 0.04);
}

.wd-rail-key:hover b { border-color: var(--neon); color: var(--neon); }

.wd-rail-key.is-on {
  color: var(--neon);
  border-color: rgba(216, 255, 62, 0.35);
  background: rgba(216, 255, 62, 0.08);
}

.wd-rail-key.is-on b {
  border-color: var(--neon);
  background: var(--neon);
  color: #0b0710;
  box-shadow: 0 0 14px rgba(216, 255, 62, 0.5);
}

.wd-rail-foot {
  display: grid;
  gap: 6px;
  padding-top: 10px;
  margin-top: 8px;
  border-top: 1px solid var(--line);
  font-family: var(--lf);
  font-size: 9px;
  letter-spacing: 0.14em;
  color: var(--mute);
  text-align: center;
}

.wd-led-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  color: var(--neon);
}

.wd-led-dot::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--neon);
  box-shadow: 0 0 8px var(--neon);
  animation: wd-pulse 2.6s var(--ease) infinite;
}

@keyframes wd-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

/* ---------- 顶部状态条 ---------- */
.wd-topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 16px;
  height: 62px;
  margin: 0 -34px;
  padding: 0 34px;
  border-bottom: 1px solid var(--line);
  background: rgba(8, 6, 12, 0.86);
  backdrop-filter: blur(14px);
}

.wd-topbar-home {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--lf);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--mute);
  white-space: nowrap;
}

.wd-topbar-home strong { color: var(--text); letter-spacing: 0.06em; }

.wd-topbar-sep { color: var(--line-2); }

.wd-ticker {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent);
}

.wd-ticker-track {
  display: flex;
  gap: 34px;
  width: max-content;
  animation: wd-scroll 46s linear infinite;
}

.wd-ticker-track > span {
  font-family: var(--lf);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--text-2);
  white-space: nowrap;
}

.wd-ticker-track i {
  font-style: normal;
  color: var(--hot);
  margin-right: 6px;
}

@keyframes wd-scroll {
  to { transform: translateX(-50%); }
}

.wd-clock {
  font-family: var(--lf);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--neon);
  white-space: nowrap;
}

.wd-topbar-cta {
  display: inline-flex;
  gap: 8px;
  flex: none;
}

.wd-topbar-cta a {
  padding: 7px 13px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.wd-topbar-cta a:hover { border-color: var(--neon); color: var(--neon); }

.wd-topbar-cta a.is-solid {
  background: var(--neon);
  border-color: var(--neon);
  color: #0b0710;
  font-weight: 700;
}

.wd-topbar-cta a.is-solid:hover { color: #0b0710; filter: brightness(1.08); }

/* 移动端触发按钮 */
.wd-burger {
  display: none;
  align-items: center;
  gap: 7px;
  padding: 6px 10px;
  border: 1px solid var(--line-2);
  border-radius: 6px;
  background: transparent;
  font-family: var(--lf);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--text);
}

/* ---------- 移动端抽屉 ---------- */
.wd-drawer {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 18px 20px 24px;
  background: rgba(8, 6, 12, 0.98);
  backdrop-filter: blur(18px);
}

.wd-drawer[hidden] { display: none; }

.wd-drawer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.wd-drawer-title {
  font-family: var(--lf);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--neon);
}

.wd-drawer-close {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  background: transparent;
  font-size: 18px;
  line-height: 1;
  color: var(--text);
}

.wd-drawer nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  align-content: start;
  padding: 18px 0;
  overflow-y: auto;
}

.wd-drawer nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 14px;
  color: var(--text-2);
}

.wd-drawer nav a b {
  font-family: var(--lf);
  font-size: 10px;
  color: var(--mute);
}

.wd-drawer nav a.is-on {
  border-color: rgba(216, 255, 62, 0.4);
  background: rgba(216, 255, 62, 0.08);
  color: var(--neon);
}

.wd-drawer-foot {
  display: grid;
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-family: var(--lf);
  font-size: 11px;
  color: var(--mute);
}

/* ---------- 页头 ---------- */
.wd-head {
  position: relative;
  padding: 54px 0 34px;
  border-bottom: 1px solid var(--line);
}

.wd-head::after {
  content: attr(data-code);
  position: absolute;
  right: 0;
  top: 22px;
  font-family: var(--lf);
  font-size: 72px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.045);
  pointer-events: none;
}

.wd-head h1 {
  margin: 12px 0 14px;
  font-size: clamp(28px, 4vw, 46px);
  letter-spacing: -0.02em;
}

.wd-head .wd-lead { max-width: 62ch; }

.wd-head-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 22px;
  font-family: var(--lf);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--mute);
}

.wd-head-meta span { display: inline-flex; align-items: center; gap: 6px; }
.wd-head-meta b { color: var(--text-2); font-weight: 500; }

.wd-crumb {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 4px;
  font-family: var(--lf);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--mute);
}

.wd-crumb a { color: var(--text-2); }
.wd-crumb li::after { content: "/"; margin-left: 6px; color: var(--line-2); }
.wd-crumb li:last-child::after { content: ""; }

/* ---------- 区块 ---------- */
.wd-sec { padding: 54px 0; border-bottom: 1px solid var(--line); }
.wd-sec:last-of-type { border-bottom: 0; }

.wd-sec-hd {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
}

.wd-sec-hd h2 {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-size: clamp(20px, 2.4vw, 27px);
}

.wd-sec-hd h2 i {
  font-family: var(--lf);
  font-style: normal;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--neon);
}

.wd-sec-hd p {
  max-width: 44ch;
  font-size: 13px;
  line-height: 1.8;
  color: var(--mute);
  text-align: right;
}

.wd-sec-more {
  font-family: var(--lf);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--neon);
  white-space: nowrap;
}

.wd-sec-more::after { content: " →"; }

/* ---------- 页脚 ---------- */
.wd-foot {
  padding: 48px 0 26px;
  margin-top: 20px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, transparent, rgba(216, 255, 62, 0.03));
}

.wd-foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.3fr;
  gap: 30px;
}

.wd-foot-brand p {
  margin-top: 10px;
  max-width: 34ch;
  font-size: 13px;
  line-height: 1.85;
  color: var(--mute);
}

.wd-foot h3 {
  margin-bottom: 12px;
  font-family: var(--lf);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--text-2);
}

.wd-foot ul { display: grid; gap: 7px; }

.wd-foot li a,
.wd-foot li span {
  font-size: 13px;
  color: var(--mute);
}

.wd-foot li a:hover { color: var(--neon); }

.wd-foot-note {
  margin-top: 26px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: rgba(255, 255, 255, 0.02);
  font-size: 12px;
  line-height: 1.85;
  color: var(--mute);
}

.wd-foot-note b { color: var(--text-2); font-weight: 600; }

.wd-foot-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px dashed var(--line);
  font-family: var(--lf);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--mute);
}

/* ---------- 响应式 ---------- */
@media (max-width: 1080px) {
  :root { --rail: 0px; }

  .wd-rail { display: none; }

  .wd-main { padding: 0 20px; }

  .wd-topbar { margin: 0 -20px; padding: 0 20px; height: 58px; }

  .wd-burger { display: inline-flex; }

  .wd-topbar-home strong,
  .wd-topbar-sep,
  .wd-clock { display: none; }

  .wd-topbar-cta a { padding: 6px 10px; font-size: 11px; }

  .wd-head { padding: 34px 0 26px; }
  .wd-head::after { font-size: 48px; top: 14px; }
  .wd-sec { padding: 40px 0; }
  .wd-sec-hd { flex-direction: column; align-items: flex-start; gap: 10px; }
  .wd-sec-hd p { text-align: left; }
  .wd-foot-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
}

@media (max-width: 620px) {
  .wd-main { padding: 0 14px; }
  .wd-topbar { margin: 0 -14px; padding: 0 14px; gap: 10px; }
  .wd-topbar-cta a:not(.is-solid) { display: none; }
  .wd-foot-grid { grid-template-columns: 1fr; }
  .wd-head h1 { font-size: 26px; }
}
