/* 九博娱乐 · 共享站点样式 /assets/site.css */
:root {
  --ink: #0B1026;
  --ink-2: #111A3D;
  --glass: #1A2650;
  --line: #33406E;
  --line-hot: #4B5C96;
  --cyan: #7BE7E0;
  --amber: #F2B84B;
  --coral: #FF8E7A;
  --mint: #8FE3B8;
  --text: #E8ECF8;
  --muted: #A7B0CE;
  --white: #FFFFFF;
  --wrap: 1160px;
  --gutter: 24px;
  --radius: 14px;
  --font: "HarmonyOS Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", "SFMono-Regular", ui-monospace, Menlo, Consolas, "Courier New", monospace;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body, h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: var(--cyan); text-decoration: none; }
img, svg, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
table { border-collapse: collapse; width: 100%; }

body {
  min-height: 100vh;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.75;
  color: var(--text);
  background-color: var(--ink);
  background-image:
    radial-gradient(1200px 620px at 84% -12%, rgba(123, 231, 224, .10), transparent 62%),
    radial-gradient(900px 520px at 6% 2%, rgba(242, 184, 75, .08), transparent 60%),
    linear-gradient(180deg, #0B1026 0%, #0B1026 58%, #090E22 100%);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-weight: 800; line-height: 1.2; letter-spacing: -.02em; }
h1 { font-size: clamp(34px, 5vw, 56px); }
h2 { font-size: clamp(26px, 3.4vw, 40px); }
h3 { font-size: 22px; }
h4 { font-size: 17px; }
p { text-wrap: pretty; }
strong { color: var(--white); font-weight: 700; }

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- 容器与页面基础组件 ---------- */
.jb-wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.jb-skip {
  position: absolute;
  top: -80px;
  left: 16px;
  z-index: 999;
  padding: 10px 18px;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  background: var(--cyan);
  border-radius: 0 0 10px 10px;
  transition: top .16s var(--ease);
}
.jb-skip:focus { top: 0; }

.jb-main { display: block; padding-block: clamp(26px, 4vw, 48px) 0; }
.jb-section { display: grid; gap: 20px; margin-bottom: clamp(28px, 4vw, 48px); }

.jb-display {
  font-size: clamp(32px, 6vw, 72px);
  font-weight: 900;
  line-height: 1.06;
  letter-spacing: -.03em;
}

.jb-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: .16em;
  color: var(--cyan);
}
.jb-eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--cyan);
  border-radius: 2px;
  transform: rotate(45deg);
}

.jb-mono {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  color: var(--amber);
  letter-spacing: 0;
}

.jb-link {
  color: var(--cyan);
  padding-bottom: 2px;
  background-image: linear-gradient(var(--cyan), var(--cyan));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0 1px;
  transition: background-size .18s var(--ease), color .16s var(--ease);
}
.jb-link:hover { color: var(--white); background-size: 100% 1px; }

/* 面板：实色内容层与玻璃层并置 */
.jb-panel {
  position: relative;
  padding: clamp(20px, 3vw, 32px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.jb-panel--solid { background: var(--ink-2); }
.jb-panel--glass {
  background: rgba(26, 38, 80, .58);
  border-color: rgba(123, 231, 224, .22);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

/* 标签：四种栏目符号 */
.jb-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 3px 11px;
  border: 1px solid;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.6;
}
.jb-tag--review { color: var(--amber); border-color: rgba(242, 184, 75, .45); background: rgba(242, 184, 75, .10); }
.jb-tag--tool { color: var(--cyan); border-color: rgba(123, 231, 224, .45); background: rgba(123, 231, 224, .10); }
.jb-tag--rule { color: var(--coral); border-color: rgba(255, 142, 122, .45); background: rgba(255, 142, 122, .10); }
.jb-tag--ver { color: var(--mint); border-color: rgba(143, 227, 184, .45); background: rgba(143, 227, 184, .10); }
.jb-tag--review::before { content: ""; width: 7px; height: 7px; background: currentColor; border-radius: 1px; transform: rotate(45deg); }
.jb-tag--tool::before { content: ""; width: 8px; height: 8px; border: 2px solid currentColor; border-radius: 50%; }
.jb-tag--rule::before { content: ""; width: 8px; height: 8px; background: currentColor; }
.jb-tag--ver::before { content: ""; width: 7px; height: 7px; background: currentColor; border-radius: 2px; }

/* 悬浮数据面板 */
.jb-data {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 15px;
  border: 1px solid rgba(123, 231, 224, .34);
  border-radius: 10px;
  background: rgba(26, 38, 80, .72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transform: translate(8px, -8px);
}
.jb-data__num {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.15;
  color: var(--white);
}
.jb-data__label { font-size: 13px; line-height: 1.5; color: var(--muted); }

/* 网格 */
.jb-grid { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 720px) {
  .jb-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .jb-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* 图片容器基础规则（页面阶段放置 img / 内联 SVG） */
.jb-media {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--line);
  border-radius: 12px;
  background:
    linear-gradient(150deg, #16224A 0%, #0C1330 58%, #101A3D 100%);
}
.jb-media--wide { aspect-ratio: 21 / 9; }
.jb-media--tall { aspect-ratio: 3 / 4; }
.jb-media > img,
.jb-media > svg { width: 100%; height: 100%; object-fit: cover; }
.jb-media__cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 8px 12px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  background: linear-gradient(180deg, rgba(11, 16, 38, 0), rgba(11, 16, 38, .88));
}

/* 面包屑 */
.jb-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--muted);
}
.jb-breadcrumb li { display: flex; align-items: center; gap: 8px; }
.jb-breadcrumb li + li::before { content: "/"; color: var(--line-hot); }
.jb-breadcrumb__link { color: var(--muted); transition: color .16s var(--ease); }
.jb-breadcrumb__link:hover { color: var(--cyan); }

/* ---------- 按钮 ---------- */
.jb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 15px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  transition: color .16s var(--ease), background .16s var(--ease), border-color .16s var(--ease), transform .16s var(--ease);
}
.jb-btn--ghost {
  color: var(--text);
  border-color: var(--line);
  background: rgba(26, 38, 80, .45);
}
.jb-btn--ghost:hover {
  color: var(--cyan);
  border-color: var(--cyan);
  background: rgba(123, 231, 224, .10);
  transform: translateY(-2px);
}
.jb-btn--accent {
  color: #0B1026;
  background: var(--amber);
  border-color: var(--amber);
}
.jb-btn--accent:hover {
  background: #FFCB6B;
  border-color: #FFCB6B;
  transform: translateY(-2px);
}
.jb-btn--sm { padding: 6px 12px; font-size: 13px; }

/* ---------- 刊头 ---------- */
.jb-header { position: relative; z-index: 60; }

.jb-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 80;
  background: rgba(51, 64, 110, .35);
  pointer-events: none;
}
.jb-progress__bar {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--amber) 68%, var(--coral));
  box-shadow: 0 0 10px rgba(123, 231, 224, .55);
}

.jb-masthead {
  position: relative;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(620px 200px at 50% -70%, rgba(123, 231, 224, .16), transparent 72%),
    linear-gradient(180deg, rgba(26, 38, 80, .92), rgba(17, 26, 61, .78));
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.jb-header.is-stuck .jb-masthead {
  border-bottom-color: var(--line-hot);
  box-shadow: 0 20px 44px -30px rgba(0, 0, 0, .95);
}

.jb-masthead__inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px 24px;
  padding-block: 18px;
}
.jb-masthead__brand { min-width: 0; text-align: center; }

.jb-ver {
  justify-self: start;
  padding: 6px 10px;
  border: 1px solid rgba(242, 184, 75, .42);
  border-radius: 6px;
  background: rgba(242, 184, 75, .08);
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.4;
  color: var(--amber);
  white-space: nowrap;
}

.jb-wordmark {
  position: relative;
  display: inline-block;
  font-size: clamp(26px, 3.6vw, 40px);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -.03em;
  color: var(--text);
  transition: color .16s var(--ease);
}
.jb-wordmark::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -3px;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--amber));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .18s var(--ease);
}
.jb-wordmark:hover { color: var(--white); }
.jb-wordmark:hover::after { transform: scaleX(1); }

.jb-tagline {
  margin-top: 6px;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.5;
  letter-spacing: .06em;
  color: var(--muted);
}

.jb-masthead__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.jb-navtoggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 44px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  transition: border-color .16s var(--ease), color .16s var(--ease);
}
.jb-navtoggle:hover { color: var(--cyan); border-color: var(--cyan); }
.jb-navtoggle__bar {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform .18s var(--ease), opacity .16s var(--ease);
}
.jb-navtoggle[aria-expanded="true"] .jb-navtoggle__bar:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.jb-navtoggle[aria-expanded="true"] .jb-navtoggle__bar:nth-child(2) { opacity: 0; }
.jb-navtoggle[aria-expanded="true"] .jb-navtoggle__bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- 栏目索引条 ---------- */
.jb-navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgba(9, 14, 33, .88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.jb-nav { display: block; }
.jb-nav__list {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 2px;
  overflow-x: auto;
  scrollbar-width: none;
}
.jb-nav__list::-webkit-scrollbar { display: none; }
.jb-nav__link {
  position: relative;
  display: block;
  padding: 14px 16px 15px;
  font-size: 15px;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
  transition: color .16s var(--ease), background .16s var(--ease);
}
.jb-nav__link::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 9px;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--amber));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .18s var(--ease);
}
.jb-nav__link:hover { color: var(--text); background: rgba(123, 231, 224, .06); }
.jb-nav__link:hover::after { transform: scaleX(1); }
.jb-nav__link[aria-current="page"] { color: var(--white); font-weight: 700; }
.jb-nav__link[aria-current="page"]::after { transform: scaleX(1); background: var(--cyan); }

/* ---------- 左侧悬浮索引 ---------- */
.jb-rail { display: none; }
.jb-rail__title {
  padding: 0 8px 8px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .18em;
  color: var(--muted);
}
.jb-rail__link {
  display: block;
  padding: 7px 8px;
  border-left: 2px solid transparent;
  border-radius: 0 6px 6px 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
  transition: color .16s var(--ease), background .16s var(--ease), border-color .16s var(--ease);
}
.jb-rail__link:hover {
  color: var(--cyan);
  background: rgba(123, 231, 224, .08);
  border-left-color: var(--cyan);
}
.jb-rail__link[aria-current="page"] {
  color: var(--white);
  background: rgba(123, 231, 224, .12);
  border-left-color: var(--cyan);
}
.jb-rail__top {
  margin-top: 8px;
  width: 100%;
  padding: 8px 6px;
  border: 1px dashed var(--line);
  border-radius: 6px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  transition: color .16s var(--ease), border-color .16s var(--ease);
}
.jb-rail__top:hover { color: var(--amber); border-color: var(--amber); }

@media (min-width: 1280px) {
  .jb-rail {
    position: fixed;
    top: 50%;
    left: max(16px, calc(50vw - var(--wrap) / 2 - 118px));
    z-index: 45;
    width: 106px;
    flex-direction: column;
    gap: 2px;
    padding: 12px 10px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(26, 38, 80, .55);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transform: translateY(-50%);
  }
  .jb-header.is-stuck .jb-rail { display: flex; }
}

/* ---------- 页脚 ---------- */
.jb-footer {
  position: relative;
  margin-top: clamp(48px, 7vw, 96px);
  border-top: 1px solid var(--line);
  color: var(--text);
  background:
    radial-gradient(900px 320px at 12% 0%, rgba(123, 231, 224, .10), transparent 62%),
    radial-gradient(700px 300px at 88% 8%, rgba(242, 184, 75, .08), transparent 60%),
    linear-gradient(180deg, #101838 0%, #080D1E 100%);
}
.jb-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--cyan), var(--amber) 42%, var(--coral) 72%, var(--mint));
  opacity: .85;
}
.jb-footer__inner { padding-block: clamp(36px, 5vw, 60px) 26px; }

.jb-footer__brand {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 20px;
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(51, 64, 110, .7);
}
.jb-wordmark--footer { font-size: 26px; }
.jb-footer__tag {
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}
.jb-footer__ver { font-size: 13px; color: var(--muted); }

.jb-footer__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px 28px;
}
.jb-footer__col { min-width: 0; }
.jb-footer__title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .16em;
  color: var(--cyan);
}
.jb-footer__title::before {
  content: "";
  width: 7px;
  height: 7px;
  background: var(--cyan);
  border-radius: 1px;
  transform: rotate(45deg);
}
.jb-footer__col:nth-child(2) .jb-footer__title { color: var(--amber); }
.jb-footer__col:nth-child(2) .jb-footer__title::before {
  background: var(--amber);
  border-radius: 50%;
  transform: none;
}
.jb-footer__col:nth-child(3) .jb-footer__title { color: var(--coral); }
.jb-footer__col:nth-child(3) .jb-footer__title::before {
  background: var(--coral);
  border-radius: 0;
  transform: none;
}
.jb-footer__col:nth-child(4) .jb-footer__title { color: var(--mint); }
.jb-footer__col:nth-child(4) .jb-footer__title::before {
  background: var(--mint);
  border-radius: 2px;
  transform: none;
}

.jb-footer__list {
  display: grid;
  gap: 9px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--muted);
}
.jb-footer__link {
  position: relative;
  display: inline-block;
  padding-bottom: 2px;
  color: var(--muted);
  transition: color .16s var(--ease);
}
.jb-footer__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .18s var(--ease);
}
.jb-footer__link:hover { color: var(--text); }
.jb-footer__link:hover::after { transform: scaleX(1); }

.jb-footer__note {
  margin-top: 28px;
  padding: 14px 18px;
  border-left: 3px solid var(--coral);
  border-radius: 0 10px 10px 0;
  background: rgba(255, 142, 122, .08);
  font-size: 14px;
  line-height: 1.7;
  color: var(--text);
}
.jb-footer__legal {
  display: grid;
  gap: 6px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px dashed rgba(51, 64, 110, .85);
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}
.jb-footer__copy { color: var(--muted); }
.jb-footer__legal-text { color: var(--muted); }

/* ---------- 响应式 ---------- */
@media (max-width: 1080px) {
  .jb-masthead__actions .jb-btn--ghost { display: none; }
}

@media (max-width: 900px) {
  .jb-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  :root { --gutter: 18px; }
  body { font-size: 16px; }

  .jb-masthead__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 12px;
    padding-block: 14px;
  }
  .jb-masthead__brand { order: 1; flex: 1 1 100%; text-align: left; }
  .jb-ver { order: 2; }
  .jb-masthead__actions { order: 3; margin-left: auto; }
  .jb-tagline { font-family: var(--font); font-size: 13px; letter-spacing: 0; }

  .jb-navtoggle { display: inline-flex; }

  .jb-navbar {
    position: relative;
    z-index: 70;
    border-bottom: 0;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .jb-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    border-bottom: 1px solid var(--line-hot);
    background: linear-gradient(180deg, #131D45 0%, #0C1330 100%);
    box-shadow: 0 30px 52px -22px rgba(0, 0, 0, .9);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity .2s var(--ease), transform .22s var(--ease), visibility .2s var(--ease);
  }
  .jb-nav[data-open] {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  .jb-nav__list {
    flex-direction: column;
    justify-content: flex-start;
    gap: 0;
    padding: 8px 12px 16px;
    overflow: visible;
  }
  .jb-nav__link {
    padding: 13px 16px;
    border-radius: 8px;
    font-size: 17px;
  }
  .jb-nav__link::after { display: none; }
  .jb-nav__link[aria-current="page"] {
    color: var(--cyan);
    background: rgba(123, 231, 224, .12);
  }
}

@media (max-width: 560px) {
  .jb-footer__grid { grid-template-columns: minmax(0, 1fr); }
  .jb-footer__brand { gap: 6px 14px; }
  .jb-wordmark--footer { font-size: 23px; }
  .jb-btn { padding: 8px 13px; font-size: 13px; }
  .jb-data { transform: translate(0, 0); }
}

@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;
  }
}
