/* ==========================================================================
   极悦娱乐港 · 共享站点样式 /assets/site.css
   午夜霓虹 × 转盘弧线：外壳层（reset / 变量 / 页头 / 页脚 / 通用组件）
   ========================================================================== */

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

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

body,
h1, h2, h3, h4, h5, p, ul, ol, li, figure, blockquote { margin: 0; }

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

a { color: inherit; text-decoration: none; }

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

svg { display: block; }

img { display: block; max-width: 100%; }

[hidden] { display: none !important; }

/* --- 2. 变量与基础排版 --------------------------------------------------- */
:root {
  /* 色板 */
  --jx-void: #08050F;
  --jx-night: #140B29;
  --jx-panel: #1E1240;
  --jx-edge: #332060;
  --jx-crown: #7A55E8;
  --jx-dusk: #B49BFF;
  --jx-star: #EDE9FF;
  --jx-neon: #2FF3D6;
  --jx-gold: #FFC14D;
  --jx-pulse: #FF5C7A;

  /* 结构与排版 */
  --jx-shell: 1240px;
  --jx-gutter: clamp(18px, 4vw, 44px);
  --jx-radius: 24px;
  --jx-radius-sm: 14px;
  --jx-header-h: 70px;

  --jx-font-display: "Archivo Black", "Space Grotesk", "Source Han Sans Heavy",
    "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --jx-font-body: "Inter", "Noto Sans SC", "Source Han Sans SC", "PingFang SC",
    "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
  --jx-font-mono: "JetBrains Mono", "SFMono-Regular", "Consolas",
    "Liberation Mono", "Courier New", monospace;
}

html { background: var(--jx-void); }

body {
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(920px 640px at 84% -8%, rgba(122, 85, 232, .30), transparent 62%),
    radial-gradient(720px 540px at -12% 24%, rgba(47, 243, 214, .10), transparent 60%),
    var(--jx-void);
  background-attachment: fixed;
  color: var(--jx-star);
  font-family: var(--jx-font-body);
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

[id] { scroll-margin-top: calc(var(--jx-header-h) + 20px); }

::selection { background: rgba(47, 243, 214, .28); color: #04120F; }

/* 可见焦点 */
:focus-visible {
  outline: 2px solid var(--jx-neon);
  outline-offset: 3px;
  border-radius: 6px;
}

/* --- 3. 布局容器 --------------------------------------------------------- */
.jx-shell {
  width: 100%;
  max-width: var(--jx-shell);
  margin-inline: auto;
  padding-inline: var(--jx-gutter);
}

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

.jx-section__head {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 62ch;
  margin-bottom: clamp(24px, 3.4vw, 44px);
}

.jx-lead {
  max-width: 56ch;
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.7;
  color: var(--jx-dusk);
}

.jx-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--jx-neon);
}

.jx-eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: currentColor;
  opacity: .75;
}

.jx-h2 {
  font-family: var(--jx-font-display);
  font-weight: 900;
  font-size: clamp(26px, 3.2vw, 46px);
  line-height: 1.15;
  letter-spacing: -.01em;
  color: var(--jx-star);
}

.jx-rule {
  height: 1px;
  margin-block: clamp(28px, 4vw, 56px);
  border: 0;
  background: linear-gradient(90deg, var(--jx-edge), rgba(51, 32, 96, 0) 92%);
}

/* --- 4. 正文与网格基础 --------------------------------------------------- */
.jx-prose {
  max-width: 68ch;
  font-size: 17px;
  line-height: 1.75;
  color: var(--jx-star);
}

.jx-prose p + p { margin-top: 1.1em; }
.jx-prose strong { color: var(--jx-neon); font-weight: 700; }
.jx-prose h3 {
  margin-top: 1.6em;
  font-family: var(--jx-font-display);
  font-size: clamp(20px, 2.2vw, 28px);
  line-height: 1.3;
  font-weight: 900;
}
.jx-prose a {
  color: var(--jx-neon);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.jx-grid {
  display: grid;
  gap: clamp(18px, 2.4vw, 32px);
}
.jx-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.jx-grid--wide { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
.jx-grid--narrow { grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); }

@media (max-width: 820px) {
  .jx-grid--2,
  .jx-grid--wide,
  .jx-grid--narrow { grid-template-columns: minmax(0, 1fr); }
}

/* --- 5. 通用组件 --------------------------------------------------------- */
.jx-panel {
  position: relative;
  padding: clamp(20px, 2.4vw, 32px);
  border: 1px solid var(--jx-edge);
  border-radius: var(--jx-radius);
  background: linear-gradient(160deg, rgba(30, 18, 64, .95), rgba(20, 11, 41, .88));
  box-shadow:
    inset 0 1px 0 rgba(237, 233, 255, .09),
    0 20px 46px rgba(0, 0, 0, .42);
}

.jx-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border: 1px solid rgba(255, 193, 77, .42);
  border-radius: 999px;
  background: rgba(255, 193, 77, .1);
  color: var(--jx-gold);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
}
.jx-tag--neon {
  border-color: rgba(47, 243, 214, .42);
  background: rgba(47, 243, 214, .1);
  color: var(--jx-neon);
}

.jx-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: linear-gradient(120deg, var(--jx-neon), #6ff2d8);
  color: #04160F;
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: .04em;
  box-shadow: 0 0 0 1px rgba(47, 243, 214, .3), 0 10px 26px rgba(47, 243, 214, .18);
  transition: transform .22s ease, box-shadow .22s ease, background .22s ease, color .22s ease;
}
.jx-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 0 1px rgba(47, 243, 214, .55), 0 14px 32px rgba(47, 243, 214, .3);
}
.jx-btn--quiet {
  background: rgba(30, 18, 64, .68);
  border-color: var(--jx-edge);
  color: var(--jx-dusk);
  box-shadow: none;
}
.jx-btn--quiet:hover {
  color: var(--jx-star);
  border-color: var(--jx-crown);
  box-shadow: 0 10px 24px rgba(122, 85, 232, .22);
}
.jx-btn--gold {
  background: linear-gradient(120deg, var(--jx-gold), #ffd98a);
  color: #2A1700;
  box-shadow: 0 0 0 1px rgba(255, 193, 77, .36), 0 10px 26px rgba(255, 193, 77, .2);
}

.jx-breadcrumb {
  padding-top: 20px;
  font-size: 13px;
  color: var(--jx-dusk);
}
.jx-breadcrumb__list { display: flex; flex-wrap: wrap; align-items: center; }
.jx-breadcrumb__item { display: flex; align-items: center; }
.jx-breadcrumb__item + .jx-breadcrumb__item::before {
  content: "/";
  margin-inline: 9px;
  color: #4A3A7A;
}
.jx-breadcrumb__link { transition: color .2s ease; }
.jx-breadcrumb__link:hover { color: var(--jx-neon); }

/* 显现动效 */
[data-reveal] {
  transition: opacity .42s ease, transform .42s cubic-bezier(.2, .8, .2, 1);
}
[data-reveal].is-hidden {
  opacity: 0;
  transform: translateY(12px);
}
[data-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* 图片容器基础（页面阶段直接放 <img>） */
.jx-media {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid var(--jx-edge);
  border-radius: var(--jx-radius);
  aspect-ratio: 16 / 9;
  background:
    radial-gradient(90% 120% at 18% 0%, rgba(122, 85, 232, .42), transparent 62%),
    linear-gradient(150deg, #1D1140, #0B0719);
}
.jx-media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    repeating-radial-gradient(circle at 76% 24%,
      rgba(237, 233, 255, .06) 0 1px, transparent 1px 44px);
  opacity: .9;
}
.jx-media img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.jx-media__caption {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  z-index: 2;
  padding: 7px 11px;
  border: 1px solid var(--jx-edge);
  border-radius: 10px;
  background: rgba(8, 5, 15, .74);
  color: var(--jx-dusk);
  font-size: 12px;
  letter-spacing: .06em;
}
.jx-media--square { aspect-ratio: 1 / 1; }
.jx-media--wide { aspect-ratio: 21 / 9; }
.jx-media--tall { aspect-ratio: 3 / 4; }

@media (max-width: 640px) {
  .jx-media--wide { aspect-ratio: 16 / 9; }
  .jx-media--tall { aspect-ratio: 4 / 5; }
}

/* --- 6. 跳转链接 --------------------------------------------------------- */
.jx-skip {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 200;
  padding: 11px 22px;
  border-radius: 0 0 14px 14px;
  background: var(--jx-neon);
  color: #04160F;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .04em;
  transform: translate(-50%, -150%);
  transition: transform .25s ease;
}
.jx-skip:focus {
  transform: translate(-50%, 0);
}

/* --- 7. 页头：紧凑命令栏 ------------------------------------------------- */
.jx-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: linear-gradient(180deg, rgba(20, 11, 41, .95), rgba(11, 6, 24, .92));
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--jx-edge);
}

.jx-header__glow {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg,
    transparent, var(--jx-neon) 22%, var(--jx-crown) 58%, transparent);
  opacity: .5;
  pointer-events: none;
}

.jx-progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 2px;
  transform: scaleX(var(--jx-progress, 0));
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--jx-neon), var(--jx-gold));
  box-shadow: 0 0 12px rgba(47, 243, 214, .6);
  pointer-events: none;
}

.jx-header__inner {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.4vw, 34px);
  min-height: var(--jx-header-h);
}

/* 品牌 */
.jx-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  min-width: 0;
}
.jx-brand__mark {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(180, 155, 255, .42);
  border-radius: 13px;
  background: linear-gradient(150deg, var(--jx-crown), #3B1F78 72%);
  color: var(--jx-neon);
  box-shadow:
    0 0 22px rgba(122, 85, 232, .5),
    inset 0 0 12px rgba(47, 243, 214, .24);
}
.jx-brand__mark svg { width: 22px; height: 22px; }
.jx-brand__text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  line-height: 1.15;
  min-width: 0;
}
.jx-brand__name {
  font-family: var(--jx-font-display);
  font-size: 19px;
  font-weight: 900;
  letter-spacing: .01em;
  color: var(--jx-star);
  white-space: nowrap;
}
.jx-brand__note {
  font-size: 11px;
  letter-spacing: .16em;
  color: var(--jx-dusk);
  white-space: nowrap;
}
.jx-brand--footer .jx-brand__mark { width: 46px; height: 46px; border-radius: 15px; }
.jx-brand--footer .jx-brand__name { font-size: 21px; }

/* 命令栏导航 */
.jx-command {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(10px, 1.6vw, 22px);
  flex: 1 1 auto;
  min-width: 0;
}
.jx-command__list {
  display: flex;
  align-items: center;
  gap: 2px;
}
.jx-command__item { display: flex; }
.jx-command__link {
  position: relative;
  display: block;
  padding: 9px 13px;
  border-radius: 10px;
  color: var(--jx-dusk);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .02em;
  white-space: nowrap;
  transition: color .2s ease, background-color .2s ease;
}
.jx-command__link::after {
  content: "";
  position: absolute;
  left: 13px;
  right: 13px;
  bottom: 4px;
  height: 1px;
  background: var(--jx-neon);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform .28s cubic-bezier(.2, .8, .2, 1);
}
.jx-command__link:hover {
  color: var(--jx-star);
  background: rgba(122, 85, 232, .16);
}
.jx-command__link:hover::after { transform: scaleX(1); }
.jx-command__link[aria-current="page"],
.jx-command__link.is-active {
  color: var(--jx-neon);
  background: rgba(47, 243, 214, .1);
  box-shadow: 0 0 18px rgba(47, 243, 214, .14);
}
.jx-command__link[aria-current="page"]::after,
.jx-command__link.is-active::after { transform: scaleX(1); }

.jx-command__tail {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.jx-header__icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--jx-edge);
  border-radius: 12px;
  background: rgba(30, 18, 64, .72);
  color: var(--jx-dusk);
  transition: color .2s ease, border-color .2s ease, background-color .2s ease;
}
.jx-header__icon:hover {
  color: var(--jx-neon);
  border-color: rgba(47, 243, 214, .5);
}
.jx-header__icon[aria-expanded="true"] {
  color: var(--jx-neon);
  border-color: var(--jx-neon);
  background: rgba(47, 243, 214, .12);
}
.jx-header__icon svg { width: 17px; height: 17px; }

.jx-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border: 1px solid var(--jx-neon);
  border-radius: 999px;
  background: linear-gradient(120deg, rgba(47, 243, 214, .14), rgba(122, 85, 232, .2));
  color: var(--jx-neon);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .04em;
  white-space: nowrap;
  transition: box-shadow .25s ease, transform .25s ease, background-color .25s ease;
}
.jx-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 22px rgba(47, 243, 214, .45);
}
.jx-cta:focus-visible {
  outline: 2px solid var(--jx-gold);
  outline-offset: 3px;
}

/* 站内检索提示 */
.jx-search-tip {
  margin-bottom: 14px;
  padding: 12px 16px;
  border: 1px solid rgba(47, 243, 214, .34);
  border-radius: 14px;
  background: rgba(30, 18, 64, .88);
  color: var(--jx-dusk);
  font-size: 14px;
}
.jx-search-tip a {
  color: var(--jx-neon);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* 汉堡按钮（仅移动端可见） */
.jx-burger {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 9px 14px;
  border: 1px solid var(--jx-edge);
  border-radius: 999px;
  background: rgba(30, 18, 64, .72);
  color: var(--jx-star);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .08em;
  transition: color .2s ease, border-color .2s ease;
}
.jx-burger__bars {
  display: flex;
  flex-direction: column;
  gap: 3px;
  width: 16px;
}
.jx-burger__bars span {
  display: block;
  height: 1.5px;
  border-radius: 2px;
  background: currentColor;
  transition: transform .25s ease, opacity .2s ease;
}
.jx-burger[aria-expanded="true"] {
  color: var(--jx-neon);
  border-color: var(--jx-neon);
}
.jx-burger[aria-expanded="true"] .jx-burger__bars span:nth-child(1) {
  transform: translateY(4.5px) rotate(45deg);
}
.jx-burger[aria-expanded="true"] .jx-burger__bars span:nth-child(2) { opacity: 0; }
.jx-burger[aria-expanded="true"] .jx-burger__bars span:nth-child(3) {
  transform: translateY(-4.5px) rotate(-45deg);
}

/* 移动端命令面板 */
@media (max-width: 980px) {
  .jx-burger { display: inline-flex; }

  .jx-command {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: block;
    max-height: calc(100vh - var(--jx-header-h));
    overflow-y: auto;
    padding: 14px var(--jx-gutter) 22px;
    border-bottom: 1px solid var(--jx-edge);
    background: linear-gradient(180deg, rgba(20, 11, 41, .99), rgba(8, 5, 15, .99));
    box-shadow: 0 24px 44px rgba(0, 0, 0, .55);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity .24s ease, transform .24s ease, visibility .24s linear;
  }
  .jx-command[data-open] {
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .jx-command__list {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }
  .jx-command__link {
    padding: 13px 14px;
    border-bottom: 1px solid rgba(51, 32, 96, .55);
    border-radius: 10px;
    font-size: 16px;
  }
  .jx-command__link::after { display: none; }
  .jx-command__link[aria-current="page"],
  .jx-command__link.is-active {
    box-shadow: inset 3px 0 0 var(--jx-neon);
  }
  .jx-command__tail {
    justify-content: space-between;
    margin-top: 16px;
  }
  .jx-cta {
    flex: 1 1 auto;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .jx-brand__note { display: none; }
  .jx-burger__label { display: none; }
}

/* --- 8. 页脚 ------------------------------------------------------------- */
.jx-footer {
  position: relative;
  overflow: hidden;
  margin-top: clamp(56px, 8vw, 120px);
  border-top: 1px solid var(--jx-edge);
  background: linear-gradient(180deg, var(--jx-night) 0%, #0B0718 62%, var(--jx-void) 100%);
}

.jx-footer__arc {
  position: absolute;
  top: -320px;
  right: -160px;
  width: 640px;
  height: 640px;
  border-radius: 50%;
  background: conic-gradient(from 200deg,
    rgba(47, 243, 214, .18),
    rgba(122, 85, 232, .12),
    rgba(255, 193, 77, .16),
    transparent 72%);
  filter: blur(60px);
  opacity: .5;
  pointer-events: none;
}

.jx-footer__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1.6fr);
  gap: clamp(30px, 4vw, 64px);
  padding-block: clamp(44px, 6vw, 80px) clamp(28px, 4vw, 48px);
}

.jx-footer__brand { min-width: 0; }

.jx-footer__lede {
  max-width: 34ch;
  margin-top: 18px;
  color: var(--jx-dusk);
  font-size: 15px;
  line-height: 1.7;
}

.jx-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}
.jx-stats__item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 104px;
  padding: 12px 16px;
  border: 1px solid var(--jx-edge);
  border-radius: 16px;
  background: rgba(30, 18, 64, .72);
}
.jx-stats__num {
  font-family: var(--jx-font-mono);
  font-size: 22px;
  line-height: 1.2;
  color: var(--jx-gold);
  font-variant-numeric: tabular-nums;
}
.jx-stats__label {
  font-size: 11px;
  letter-spacing: .16em;
  color: var(--jx-dusk);
}

.jx-footer__cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 40px);
}

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

.jx-footer__col-title {
  margin-bottom: 16px;
  color: var(--jx-neon);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .2em;
}

.jx-footer__list {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.jx-footer__link {
  display: inline-block;
  color: var(--jx-dusk);
  font-size: 14.5px;
  line-height: 1.6;
  word-break: break-word;
  transition: color .2s ease, padding-left .2s ease;
}
.jx-footer__link:hover {
  color: var(--jx-star);
  padding-left: 6px;
}

.jx-footer__base {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 28px;
  padding-block: 20px 26px;
  border-top: 1px solid var(--jx-edge);
  color: var(--jx-dusk);
  font-size: 13px;
}

.jx-footer__legal {
  font-family: var(--jx-font-mono);
  letter-spacing: .02em;
  font-variant-numeric: tabular-nums;
}
.jx-footer__closing { max-width: 46ch; }
.jx-footer__cta a {
  color: var(--jx-neon);
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 900px) {
  .jx-footer__inner { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .jx-footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .jx-footer__base { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 460px) {
  .jx-footer__cols { grid-template-columns: minmax(0, 1fr); }
}

/* --- 9. 降级 ------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  [data-reveal].is-hidden {
    opacity: 1;
    transform: none;
  }
}
