/* ==========================================================================
   百家家乐中心 · /assets/site.css
   赛博巴蜀外壳：深空黑底层 + 霓虹青结构线 + 品红脉冲 + 年份金编号
   ========================================================================== */

:root {
  --ink: #07080C;
  --ink-2: #0E1420;
  --ink-3: #05060A;
  --cyan: #22E3D2;
  --magenta: #FF3D8B;
  --violet: #8A5CFF;
  --gold: #E8B04B;
  --mist: #F4F7FA;
  --graphite: #8C94A6;
  --graphite-2: #A8B2C4;
  --mint: #C8FFF7;
  --coral: #FF6B5E;

  --line: rgba(244, 247, 250, 0.12);
  --line-soft: rgba(244, 247, 250, 0.07);
  --line-cyan: rgba(34, 227, 210, 0.42);
  --line-magenta: rgba(255, 61, 139, 0.42);
  --line-gold: rgba(232, 176, 75, 0.42);

  --font-sans: "Source Han Sans SC", "Noto Sans SC", "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo,
    Consolas, "Noto Sans Mono", monospace;

  --header-h: 64px;
  --max: 1240px;
  --gutter: clamp(18px, 4vw, 48px);
  --r: 2px;
  --shadow-soft: inset 0 1px 0 rgba(244, 247, 250, 0.05);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

@media (min-width: 768px) {
  :root { --header-h: 76px; }
}

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

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

body {
  margin: 0;
  padding-top: var(--header-h);
  background: var(--ink);
  color: var(--mist);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.85;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, p, figure, blockquote { margin: 0; }
ul, ol { list-style: none; margin: 0; padding: 0; }
img, svg, video, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
table { border-collapse: collapse; width: 100%; }

::selection { background: var(--magenta); color: #FFFFFF; }

a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: var(--r);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- 通用容器与网格 ---------- */
.bjj-shell {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.bjj-section {
  position: relative;
  padding-top: clamp(46px, 7vw, 104px);
  padding-bottom: clamp(46px, 7vw, 104px);
}

.bjj-grid {
  display: grid;
  gap: clamp(16px, 2vw, 24px);
}
.bjj-grid--2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.bjj-grid--3 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.bjj-grid--cards { grid-template-columns: repeat(auto-fill, minmax(238px, 1fr)); }

/* ---------- 文字层级 ---------- */
.bjj-eyebrow {
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cyan);
}

.bjj-title {
  margin: 0 0 18px;
  font-size: clamp(1.9rem, 4vw, 3.4rem);
  line-height: 1.14;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--mist);
}

.bjj-title--xl {
  font-size: clamp(2.6rem, 7vw, 6rem);
  line-height: 1;
  letter-spacing: -0.02em;
}

.bjj-lead {
  margin: 0 0 24px;
  max-width: 64ch;
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.8;
  color: var(--graphite-2);
}

.bjj-meta {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--graphite);
}

.bjj-year {
  font-family: var(--font-mono);
  font-size: clamp(2.4rem, 8vw, 5rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--gold);
}

/* ---------- 正文 ---------- */
.bjj-prose {
  max-width: 74ch;
  font-size: 17px;
  line-height: 1.85;
  color: #E1E7F0;
}
.bjj-prose p { margin: 0 0 1.35em; }
.bjj-prose h2 {
  margin: 1.8em 0 0.7em;
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  line-height: 1.3;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--mist);
}
.bjj-prose h3 {
  margin: 1.5em 0 0.6em;
  font-size: clamp(1.12rem, 1.6vw, 1.3rem);
  line-height: 1.45;
  font-weight: 700;
  color: var(--mist);
}
.bjj-prose a {
  color: var(--cyan);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.bjj-prose a:hover { color: var(--mist); }
.bjj-prose strong { color: var(--mist); font-weight: 700; }
.bjj-prose ul { list-style: disc; padding-left: 1.5em; margin: 0 0 1.35em; }
.bjj-prose ol { list-style: decimal; padding-left: 1.5em; margin: 0 0 1.35em; }
.bjj-prose li { margin: 0.4em 0; }
.bjj-prose blockquote {
  margin: 1.6em 0;
  padding: 4px 0 4px 20px;
  border-left: 1px solid var(--line-cyan);
  color: var(--graphite-2);
}
.bjj-prose code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  color: var(--gold);
}
.bjj-prose--light {
  background: var(--mint);
  color: #0B1A1C;
  padding: clamp(22px, 3.4vw, 44px);
  border-radius: var(--r);
}
.bjj-prose--light h2,
.bjj-prose--light h3,
.bjj-prose--light strong { color: #06171A; }
.bjj-prose--light a { color: #0A6C63; }
.bjj-prose--light blockquote { border-left-color: rgba(10, 108, 99, 0.5); color: #2C4A4C; }

/* ---------- 面包屑 ---------- */
.bjj-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 26px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--graphite);
}
.bjj-breadcrumb a { color: var(--graphite-2); transition: color 0.2s var(--ease); }
.bjj-breadcrumb a:hover { color: var(--cyan); }
.bjj-breadcrumb__sep { color: rgba(140, 148, 166, 0.6); }

/* ---------- 卡片 / 标签 / 分隔 ---------- */
.bjj-card {
  position: relative;
  display: block;
  padding: clamp(18px, 2.2vw, 26px);
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow-soft);
  transition: border-color 0.24s var(--ease), transform 0.24s var(--ease),
    background-color 0.24s var(--ease);
}
.bjj-card:hover { border-color: var(--line-cyan); transform: translateY(-3px); }
.bjj-card__title {
  margin: 0 0 10px;
  font-size: 19px;
  line-height: 1.45;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--mist);
}
.bjj-card__text {
  margin: 0;
  font-size: 15px;
  line-height: 1.75;
  color: var(--graphite-2);
}
.bjj-card--feature {
  border-color: var(--line-cyan);
  background: linear-gradient(150deg, rgba(34, 227, 210, 0.1), rgba(14, 20, 32, 0.92) 62%);
}

.bjj-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--graphite-2);
}
.bjj-tag--cyan { color: var(--cyan); border-color: var(--line-cyan); }
.bjj-tag--magenta { color: var(--magenta); border-color: var(--line-magenta); }
.bjj-tag--gold { color: var(--gold); border-color: var(--line-gold); }

.bjj-divider {
  height: 1px;
  border: 0;
  margin: clamp(28px, 4vw, 56px) 0;
  background: linear-gradient(
    90deg,
    transparent,
    var(--line-cyan) 12%,
    rgba(255, 61, 139, 0.35) 62%,
    transparent
  );
}

/* ---------- 图片占位容器 ---------- */
.bjj-media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: linear-gradient(140deg, #0E1420 0%, #07080C 55%, rgba(138, 92, 255, 0.2) 100%);
}
.bjj-media--wide { aspect-ratio: 21 / 9; }
.bjj-media--tall { aspect-ratio: 4 / 5; }
.bjj-media--square { aspect-ratio: 1 / 1; }
.bjj-media__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ---------- 按钮 ---------- */
.bjj-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: transparent;
  color: var(--mist);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.22s var(--ease), color 0.22s var(--ease),
    border-color 0.22s var(--ease), transform 0.22s var(--ease);
}
.bjj-btn:hover { transform: translateY(-1px); }
.bjj-btn--sm { padding: 8px 14px; font-size: 13px; }
.bjj-btn--neon {
  background: var(--cyan);
  border-color: var(--cyan);
  color: #04100F;
}
.bjj-btn--neon:hover { background: #5BF0E3; border-color: #5BF0E3; color: #04100F; }
.bjj-btn--ghost {
  border-color: var(--line-cyan);
  color: var(--cyan);
}
.bjj-btn--ghost:hover { background: rgba(34, 227, 210, 0.12); color: var(--cyan); }
.bjj-btn--magenta {
  border-color: var(--line-magenta);
  color: var(--magenta);
}
.bjj-btn--magenta:hover { background: rgba(255, 61, 139, 0.14); color: var(--magenta); }

/* ---------- 分段切换 ---------- */
.bjj-tabs { display: block; }
.bjj-tabs__list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 24px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: rgba(14, 20, 32, 0.7);
}
.bjj-tabs__btn {
  appearance: none;
  padding: 9px 16px;
  border: 1px solid transparent;
  border-radius: var(--r);
  background: transparent;
  color: var(--graphite-2);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease),
    border-color 0.2s var(--ease);
}
.bjj-tabs__btn:hover { color: var(--mist); }
.bjj-tabs__btn[aria-selected="true"] {
  background: var(--cyan);
  border-color: var(--cyan);
  color: #04100F;
}
.bjj-tabs__panel { padding: 0; }
.bjj-tabs__panel[hidden] { display: none; }

/* ---------- 显现动效协议 ---------- */
.js-ready [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.24s var(--ease), transform 0.24s var(--ease);
}
.js-ready [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* ==========================================================================
   页头
   ========================================================================== */
.bjj-skip {
  position: fixed;
  left: 16px;
  top: 14px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--cyan);
  color: #04100F;
  font-size: 14px;
  font-weight: 700;
  border-radius: var(--r);
  transform: translateY(-240%);
  transition: transform 0.2s var(--ease);
}
.bjj-skip:focus { transform: translateY(0); }

.bjj-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 80;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color 0.28s var(--ease), border-color 0.28s var(--ease);
}
.bjj-header[data-scrolled="true"] {
  background: rgba(7, 8, 12, 0.9);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line-cyan);
}
.bjj-header[data-open] {
  background: rgba(7, 8, 12, 0.97);
  border-bottom-color: var(--line-cyan);
}

.bjj-header__bar {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 34px);
  width: 100%;
  max-width: var(--max);
  height: var(--header-h);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.bjj-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  min-width: 0;
}
.bjj-brand__mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  border: 1px solid var(--line-cyan);
  border-radius: var(--r);
  background: rgba(34, 227, 210, 0.08);
  box-shadow: inset 0 0 14px rgba(34, 227, 210, 0.2);
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
}
.bjj-brand__text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.bjj-brand__name {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.2;
  color: var(--mist);
  white-space: nowrap;
}
.bjj-brand__tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  line-height: 1.5;
  color: var(--graphite);
  white-space: nowrap;
}

.bjj-nav { flex: 1 1 auto; min-width: 0; }
.bjj-nav__list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 1.5vw, 26px);
}
.bjj-nav__item { flex: 0 0 auto; }
.bjj-nav__item--action { display: none; }
.bjj-nav__link {
  position: relative;
  display: inline-block;
  padding: 6px 2px;
  font-size: 15px;
  letter-spacing: 0.02em;
  color: var(--graphite-2);
  white-space: nowrap;
  transition: color 0.2s var(--ease);
}
.bjj-nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 1px;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.24s var(--ease);
}
.bjj-nav__link:hover,
.bjj-nav__link:focus-visible { color: var(--mist); }
.bjj-nav__link:hover::after,
.bjj-nav__link:focus-visible::after { transform: scaleX(1); }
.bjj-nav__link[aria-current="page"] { color: var(--cyan); }
.bjj-nav__link[aria-current="page"]::after { transform: scaleX(1); }

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

.bjj-nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  margin-left: auto;
  padding: 9px 12px;
  border: 1px solid var(--line-cyan);
  border-radius: var(--r);
  background: rgba(14, 20, 32, 0.7);
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease),
    background-color 0.2s var(--ease);
}
.bjj-nav-toggle:hover { background: rgba(34, 227, 210, 0.12); }
.bjj-nav-toggle__bars {
  display: block;
  width: 17px;
  height: 11px;
  border-top: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transition: border-color 0.2s var(--ease);
}
.bjj-nav-toggle__label { line-height: 1; }
.bjj-header[data-open] .bjj-nav-toggle {
  color: var(--magenta);
  border-color: var(--line-magenta);
}
.bjj-header[data-open] .bjj-nav-toggle__bars { border-color: var(--magenta); }

@media (max-width: 1079px) {
  .bjj-header__actions { display: none; }
  .bjj-nav-toggle { display: inline-flex; }

  .bjj-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex: none;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
    padding: 10px var(--gutter) 26px;
    background: #080A11;
    border-bottom: 1px solid var(--line);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.22s var(--ease), transform 0.22s var(--ease),
      visibility 0.22s linear;
  }
  .bjj-header[data-open] .bjj-nav {
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .bjj-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .bjj-nav__item { flex: 1 1 auto; }
  .bjj-nav__link {
    display: block;
    padding: 15px 4px;
    font-size: 16px;
    border-bottom: 1px solid var(--line-soft);
  }
  .bjj-nav__link::after { display: none; }
  .bjj-nav__link[aria-current="page"] {
    border-bottom-color: var(--line-cyan);
    background: rgba(34, 227, 210, 0.06);
  }
  .bjj-nav__item--action { display: block; padding-top: 14px; }
  .bjj-nav__item--action .bjj-btn { width: 100%; }
}

@media (min-width: 1080px) {
  .bjj-nav__item--action { display: none; }
}

/* ==========================================================================
   页脚
   ========================================================================== */
.bjj-footer {
  position: relative;
  overflow: hidden;
  background: var(--ink-3);
  border-top: 1px solid rgba(34, 227, 210, 0.22);
  color: var(--graphite-2);
}
.bjj-footer__glow {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -40%;
  height: 360px;
  pointer-events: none;
  background:
    radial-gradient(60% 100% at 18% 100%, rgba(34, 227, 210, 0.16), transparent 70%),
    radial-gradient(50% 100% at 82% 100%, rgba(255, 61, 139, 0.14), transparent 70%);
}

.bjj-footer__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(28px, 4vw, 58px);
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(44px, 6vw, 84px) var(--gutter) clamp(28px, 4vw, 46px);
}
@media (min-width: 900px) {
  .bjj-footer__inner {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.5fr) minmax(0, 1fr);
  }
}

.bjj-footer__lead { min-width: 0; }
.bjj-footer__brand {
  margin: 0 0 6px;
  font-size: clamp(19px, 2.3vw, 25px);
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--mist);
}
.bjj-footer__tagline {
  margin: 0 0 18px;
  font-size: 14px;
  letter-spacing: 0.08em;
  color: var(--graphite);
}
.bjj-footer__year {
  margin: 0;
  font-family: var(--font-mono);
  font-size: clamp(3.2rem, 9vw, 6.4rem);
  font-weight: 700;
  line-height: 0.92;
  letter-spacing: -0.03em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(232, 176, 75, 0.85);
  text-shadow: 0 0 34px rgba(232, 176, 75, 0.18);
}
@supports not ((-webkit-text-stroke: 1px #E8B04B)) {
  .bjj-footer__year { color: var(--gold); }
}
.bjj-footer__range {
  margin: 10px 0 0;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.18em;
  color: var(--graphite);
}
.bjj-footer__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.bjj-footer__cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: clamp(18px, 2.6vw, 34px);
  align-content: start;
}
.bjj-footer__col { min-width: 0; }
.bjj-footer__title {
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
}
.bjj-footer__list {
  display: grid;
  gap: 10px;
}
.bjj-footer__link {
  display: inline-block;
  font-size: 15px;
  line-height: 1.6;
  color: var(--graphite-2);
  transition: color 0.2s var(--ease), padding-left 0.2s var(--ease);
}
.bjj-footer__link:hover,
.bjj-footer__link:focus-visible {
  color: var(--cyan);
  padding-left: 6px;
}

.bjj-footer__contact {
  display: grid;
  gap: 12px;
  align-content: start;
  min-width: 0;
}
.bjj-footer__contact-row {
  display: flex;
  gap: 12px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--graphite-2);
  word-break: break-word;
}
.bjj-footer__contact-label {
  flex: 0 0 auto;
  min-width: 42px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--graphite);
  padding-top: 3px;
}

.bjj-footer__legal {
  position: relative;
  border-top: 1px solid var(--line-soft);
}
.bjj-footer__legal-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 26px;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px var(--gutter) 30px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--graphite);
}
.bjj-footer__copy { margin: 0; }
.bjj-footer__legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}
.bjj-footer__legal-links .bjj-footer__link { font-size: 13px; }

/* ==========================================================================
   降低动效偏好
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0ms !important;
  }
  .js-ready [data-reveal] {
    opacity: 1;
    transform: none;
  }
  .bjj-skip { transform: none; opacity: 0; }
  .bjj-skip:focus { opacity: 1; }
}
