/* ==========================================================================
   J9体育台 · 共享样式 /assets/site.css
   寒地夜赛控制台：深墨蓝底盘 + 电子青电流 + 荧光橙红数据高亮
   ========================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  background: #0B1A2F;
  scroll-behavior: smooth;
}

body,
h1, h2, h3, h4, h5, h6,
p, ul, ol, li, dl, dd, dt,
figure, blockquote, fieldset, legend {
  margin: 0;
  padding: 0;
}

ul[class],
ol[class] { list-style: none; }

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

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

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

table { border-collapse: collapse; width: 100%; }

/* 2. 设计令牌 ------------------------------------------------------------ */
:root {
  /* 色彩 */
  --j9-ink: #0B1A2F;
  --j9-ink-deep: #11151C;
  --j9-cyan: #00E5FF;
  --j9-cyan-deep: #006B7A;
  --j9-flame: #FF4D2E;
  --j9-flame-deep: #B82E1A;
  --j9-steel: #8FA6B8;
  --j9-mist: #C5D9E2;
  --j9-white: #FFFFFF;
  --j9-glass: rgba(255, 255, 255, 0.08);
  --j9-glass-strong: rgba(255, 255, 255, 0.15);
  --j9-line: rgba(143, 166, 184, 0.24);
  --j9-line-soft: rgba(143, 166, 184, 0.12);
  --j9-void: rgba(4, 9, 18, 0.72);

  /* 字体 */
  --j9-font-display: "Arial Narrow", "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --j9-font-mono: ui-monospace, "SF Mono", "Cascadia Mono", "Roboto Mono", Menlo, Consolas, "Courier New", monospace;
  --j9-font-body: "Inter", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* 尺寸 */
  --j9-shell: 1280px;
  --j9-gutter: clamp(18px, 4vw, 46px);
  --j9-header-h: 68px;
  --j9-radius: 2px;
  --j9-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* 3. 基础排版 ------------------------------------------------------------ */
body {
  position: relative;
  min-height: 100vh;
  background: var(--j9-ink);
  color: var(--j9-mist);
  font-family: var(--j9-font-body);
  font-size: clamp(15px, 0.55vw + 12px, 17px);
  line-height: 1.75;
  letter-spacing: 0.01em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* 冰面光晕 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(1100px 620px at 82% -12%, rgba(0, 229, 255, 0.15), transparent 62%),
    radial-gradient(900px 520px at 4% 104%, rgba(255, 77, 46, 0.11), transparent 66%),
    linear-gradient(180deg, #0B1A2F 0%, #0A1526 55%, #11151C 100%);
}

/* 扫描线噪点 */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.55;
  background-image: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.028) 0 1px,
    rgba(255, 255, 255, 0) 1px 4px
  );
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--j9-font-display);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.005em;
  text-transform: uppercase;
  color: var(--j9-white);
  font-stretch: condensed;
}

h1 { font-size: clamp(2.35rem, 5.4vw, 4.5rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.6rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.7rem); }
h4 { font-size: clamp(1.05rem, 1.4vw, 1.25rem); }

p { text-wrap: pretty; }

strong { color: var(--j9-white); font-weight: 700; }

a { transition: color 0.18s var(--j9-ease); }

::selection { background: var(--j9-cyan); color: #04121F; }

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

/* 4. 布局骨架 ------------------------------------------------------------ */
.j9-shell {
  width: 100%;
  max-width: var(--j9-shell);
  margin-inline: auto;
  padding-inline: var(--j9-gutter);
}

.j9-main {
  position: relative;
  z-index: 1;
  display: block;
}

.j9-section {
  position: relative;
  padding-block: clamp(46px, 7vw, 98px);
}

.j9-section--tight { padding-block: clamp(28px, 4vw, 54px); }

.j9-section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 28px;
  margin-bottom: clamp(22px, 3vw, 42px);
}

.j9-section__title { max-width: 22ch; }

.j9-section__lede {
  max-width: 58ch;
  font-size: clamp(14.5px, 0.5vw + 13px, 17px);
  color: var(--j9-mist);
}

.j9-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--j9-font-mono);
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--j9-cyan);
}

.j9-eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--j9-cyan);
  box-shadow: 0 0 10px var(--j9-cyan);
}

.j9-rule {
  height: 1px;
  border: 0;
  background: linear-gradient(90deg, transparent, var(--j9-line) 14%, var(--j9-line) 86%, transparent);
}

.j9-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;
}

/* 5. 按钮 ---------------------------------------------------------------- */
.j9-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  font-family: var(--j9-font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--j9-white);
  background: var(--j9-glass);
  border: 1px solid var(--j9-line);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%);
  transition: background-color 0.2s var(--j9-ease), color 0.2s var(--j9-ease),
    border-color 0.2s var(--j9-ease), transform 0.2s var(--j9-ease);
  white-space: nowrap;
}

.j9-btn:hover {
  transform: translateY(-1px);
  border-color: var(--j9-cyan);
  background: rgba(0, 229, 255, 0.12);
}

.j9-btn--accent {
  color: #04121F;
  background: linear-gradient(118deg, var(--j9-cyan) 0%, #4BF0D2 100%);
  border-color: transparent;
  box-shadow: 0 14px 32px -20px rgba(0, 229, 255, 0.95);
}

.j9-btn--accent:hover {
  color: #04121F;
  background: linear-gradient(118deg, #6BF3FF 0%, var(--j9-cyan) 100%);
  border-color: transparent;
}

.j9-btn--ghost { background: transparent; }

.j9-btn--flame {
  color: #1A0703;
  background: linear-gradient(118deg, var(--j9-flame) 0%, #FF8A4D 100%);
  border-color: transparent;
}

.j9-btn--flame:hover {
  color: #1A0703;
  background: linear-gradient(118deg, #FF6B45 0%, var(--j9-flame) 100%);
}

/* 6. 页头 ---------------------------------------------------------------- */
.j9-skip {
  position: absolute;
  left: 14px;
  top: -80px;
  z-index: 400;
  display: inline-block;
  padding: 11px 18px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #04121F;
  background: var(--j9-cyan);
  transition: top 0.2s var(--j9-ease);
}

.j9-skip:focus { top: 12px; }

.j9-header {
  position: sticky;
  top: 0;
  z-index: 120;
  color: var(--j9-white);
  background: linear-gradient(180deg, rgba(11, 26, 47, 0.94) 0%, rgba(17, 21, 28, 0.86) 100%);
  border-bottom: 1px solid var(--j9-line-soft);
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  transition: background 0.3s var(--j9-ease), border-color 0.3s var(--j9-ease),
    box-shadow 0.3s var(--j9-ease);
}

.j9-header[data-scrolled] {
  background: linear-gradient(180deg, rgba(9, 22, 41, 0.99) 0%, rgba(14, 18, 25, 0.97) 100%);
  border-bottom-color: var(--j9-line);
  box-shadow: 0 22px 44px -34px rgba(0, 0, 0, 0.95);
}

.j9-header__bar { position: relative; }

.j9-header__inner {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.6vw, 26px);
  min-height: var(--j9-header-h);
}

/* 品牌 */
.j9-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex-shrink: 0;
  padding: 6px 0;
}

.j9-brand__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  font-family: var(--j9-font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #04121F;
  background: linear-gradient(140deg, var(--j9-cyan) 0%, #9CF6FF 58%, var(--j9-flame) 190%);
  clip-path: polygon(0 0, 100% 0, 100% 66%, 68% 100%, 0 100%);
  box-shadow: 0 0 20px -4px rgba(0, 229, 255, 0.6);
}

.j9-brand__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.05;
}

.j9-brand__name {
  font-family: var(--j9-font-display);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--j9-white);
}

.j9-brand__slogan {
  font-size: 10px;
  letter-spacing: 0.28em;
  color: var(--j9-steel);
}

/* 导航 */
.j9-nav { margin-left: auto; }

.j9-nav__list {
  display: flex;
  align-items: center;
  gap: clamp(0px, 0.5vw, 8px);
}

.j9-nav__item { display: flex; }

.j9-nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 12px 12px 14px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--j9-mist);
  transition: color 0.18s var(--j9-ease), background-color 0.18s var(--j9-ease);
}

.j9-nav__link:hover {
  color: var(--j9-white);
  background: var(--j9-glass);
}

.j9-nav__idx {
  font-family: var(--j9-font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--j9-cyan);
  opacity: 0;
  transform: translateY(-5px);
  transition: opacity 0.2s var(--j9-ease), transform 0.2s var(--j9-ease);
}

.j9-nav__link:hover .j9-nav__idx,
.j9-nav__link[aria-current="page"] .j9-nav__idx {
  opacity: 1;
  transform: none;
}

.j9-nav__link::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 6px;
  height: 2px;
  background: var(--j9-cyan);
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.85);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.24s var(--j9-ease);
}

.j9-nav__link:hover::after { transform: scaleX(0.36); }

.j9-nav__link[aria-current="page"] {
  color: var(--j9-white);
  background: rgba(0, 229, 255, 0.07);
}

.j9-nav__link[aria-current="page"]::after { transform: scaleX(1); }

/* 移动开关 */
.j9-nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 10px 12px;
  color: var(--j9-mist);
  background: var(--j9-glass);
  border: 1px solid var(--j9-line);
  transition: color 0.2s var(--j9-ease), border-color 0.2s var(--j9-ease);
}

.j9-nav-toggle:hover { color: var(--j9-white); border-color: var(--j9-cyan); }

.j9-nav-toggle__bars {
  position: relative;
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  transition: background-color 0.2s var(--j9-ease);
}

.j9-nav-toggle__bars::before,
.j9-nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: currentColor;
  transition: transform 0.22s var(--j9-ease), opacity 0.22s var(--j9-ease);
}

.j9-nav-toggle__bars::before { top: -6px; }
.j9-nav-toggle__bars::after { top: 6px; }

.j9-nav-toggle[aria-expanded="true"] { color: var(--j9-cyan); border-color: var(--j9-cyan); }
.j9-nav-toggle[aria-expanded="true"] .j9-nav-toggle__bars { background: transparent; }
.j9-nav-toggle[aria-expanded="true"] .j9-nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.j9-nav-toggle[aria-expanded="true"] .j9-nav-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

.j9-nav-toggle__text {
  font-family: var(--j9-font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

/* 滚动进度光带 */
.j9-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  overflow: hidden;
  pointer-events: none;
  background: rgba(143, 166, 184, 0.14);
}

.j9-progress__fill {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--j9-cyan) 0%, #7DECFF 46%, var(--j9-flame) 100%);
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.7);
}

/* 7. 页脚 ---------------------------------------------------------------- */
.j9-footer {
  position: relative;
  z-index: 1;
  margin-top: clamp(60px, 9vw, 120px);
  color: var(--j9-mist);
  background: linear-gradient(180deg, rgba(17, 21, 28, 0) 0%, rgba(17, 21, 28, 0.9) 14%, #11151C 100%);
  border-top: 1px solid var(--j9-line-soft);
  overflow: hidden;
}

.j9-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--j9-cyan) 20%, var(--j9-flame) 82%, transparent 100%);
  opacity: 0.8;
}

.j9-footer__glow {
  position: absolute;
  top: -160px;
  right: -140px;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 229, 255, 0.17), transparent 68%);
  pointer-events: none;
}

.j9-footer__main {
  position: relative;
  display: grid;
  grid-template-columns: minmax(260px, 1.25fr) repeat(3, minmax(140px, 0.75fr));
  gap: clamp(24px, 4vw, 56px);
  padding-block: clamp(46px, 6vw, 80px) clamp(30px, 4vw, 50px);
}

.j9-footer__brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.j9-footer__pitch {
  max-width: 34ch;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--j9-steel);
}

.j9-copy {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  width: 100%;
  max-width: 340px;
  padding: 13px 15px;
  text-align: left;
  background: var(--j9-glass);
  border: 1px solid var(--j9-line);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%);
  transition: background-color 0.2s var(--j9-ease), border-color 0.2s var(--j9-ease);
}

.j9-copy:hover {
  background: rgba(0, 229, 255, 0.1);
  border-color: rgba(0, 229, 255, 0.45);
}

.j9-copy__key {
  flex: 0 0 auto;
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--j9-steel);
}

.j9-copy__value {
  flex: 1 1 140px;
  min-width: 0;
  font-family: var(--j9-font-mono);
  font-size: 13px;
  color: var(--j9-white);
  overflow-wrap: anywhere;
}

.j9-copy__state {
  flex: 0 0 auto;
  font-family: var(--j9-font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--j9-cyan);
}

.j9-footer__grid {
  display: contents;
}

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

.j9-footer__title {
  margin-bottom: 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--j9-steel);
}

.j9-footer__list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.j9-footer__list--plain { gap: 8px; }

.j9-footer__link {
  display: inline-block;
  padding: 5px 0;
  font-size: 15px;
  color: var(--j9-mist);
  transition: color 0.18s var(--j9-ease), transform 0.18s var(--j9-ease);
}

.j9-footer__link:hover {
  color: var(--j9-cyan);
  transform: translateX(4px);
}

.j9-footer__text {
  font-size: 14px;
  line-height: 1.65;
  color: var(--j9-steel);
  overflow-wrap: anywhere;
}

.j9-footer__note {
  position: relative;
  background: rgba(0, 0, 0, 0.2);
  border-top: 1px solid var(--j9-line-soft);
}

.j9-footer__note p {
  padding-block: 14px;
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--j9-steel);
}

.j9-footer__bottom {
  position: relative;
  background: rgba(0, 0, 0, 0.3);
  border-top: 1px solid var(--j9-line-soft);
}

.j9-footer__bottom-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 20px;
  padding-block: 16px;
}

.j9-footer__legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
  font-size: 12px;
  color: var(--j9-steel);
}

.j9-footer__icp { font-family: var(--j9-font-mono); color: var(--j9-mist); }

.j9-to-top {
  position: fixed;
  right: clamp(14px, 3vw, 32px);
  bottom: clamp(14px, 3vw, 28px);
  z-index: 110;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 15px;
  font-family: var(--j9-font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--j9-steel);
  background: rgba(11, 26, 47, 0.72);
  border: 1px solid var(--j9-line);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0.62;
  transition: opacity 0.22s var(--j9-ease), color 0.22s var(--j9-ease),
    border-color 0.22s var(--j9-ease), background-color 0.22s var(--j9-ease);
}

.j9-to-top:hover,
.j9-to-top[data-visible] {
  opacity: 1;
  color: var(--j9-white);
  border-color: var(--j9-cyan);
  background: rgba(0, 229, 255, 0.14);
}

/* 8. 通用组件 ------------------------------------------------------------ */
.j9-breadcrumb { padding-top: clamp(14px, 2vw, 24px); }

.j9-breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  letter-spacing: 0.05em;
}

.j9-breadcrumb__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.j9-breadcrumb__link { color: var(--j9-steel); }
.j9-breadcrumb__link:hover { color: var(--j9-cyan); }

.j9-breadcrumb__sep {
  font-family: var(--j9-font-mono);
  color: rgba(143, 166, 184, 0.45);
}

.j9-breadcrumb__current { color: var(--j9-mist); }

.j9-panel {
  position: relative;
  padding: clamp(18px, 2.4vw, 28px);
  background: var(--j9-glass);
  border: 1px solid var(--j9-line);
  border-radius: var(--j9-radius);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background-color 0.24s var(--j9-ease), border-color 0.24s var(--j9-ease),
    transform 0.24s var(--j9-ease);
}

.j9-panel:hover {
  background: var(--j9-glass-strong);
  border-color: rgba(0, 229, 255, 0.4);
}

.j9-panel--solid {
  background: linear-gradient(160deg, #0E2038 0%, #11151C 100%);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.j9-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--j9-line-soft);
}

.j9-panel__title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--j9-mist);
}

.j9-panel__meta {
  font-family: var(--j9-font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--j9-steel);
}

.j9-stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.j9-stat__value {
  font-family: var(--j9-font-mono);
  font-size: clamp(1.9rem, 4.4vw, 3.2rem);
  font-weight: 700;
  line-height: 1;
  color: var(--j9-white);
  font-variant-numeric: tabular-nums;
}

.j9-stat__label {
  font-size: 11.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--j9-steel);
}

.j9-stat--cyan .j9-stat__value { color: var(--j9-cyan); }
.j9-stat--flame .j9-stat__value { color: var(--j9-flame); }

.j9-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  font-family: var(--j9-font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--j9-cyan);
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid rgba(0, 229, 255, 0.34);
}

.j9-tag--live {
  font-weight: 700;
  color: #1A0703;
  background: var(--j9-flame);
  border-color: transparent;
}

.j9-tag--live::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #1A0703;
  animation: j9-pulse 1.6s ease-in-out infinite;
}

@keyframes j9-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.65); }
}

.j9-figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--j9-line);
  background: linear-gradient(150deg, rgba(0, 229, 255, 0.09) 0%, rgba(255, 77, 46, 0.06) 100%);
}

.j9-figure__media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: rgba(11, 26, 47, 0.65);
}

.j9-figure__media--wide { aspect-ratio: 21 / 9; }
.j9-figure__media--tall { aspect-ratio: 3 / 4; }
.j9-figure__media--square { aspect-ratio: 1 / 1; }

.j9-figure__media > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.06) contrast(1.06);
}

.j9-figure__media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.05) 0 1px,
    rgba(255, 255, 255, 0) 1px 4px
  );
  mix-blend-mode: screen;
}

.j9-figure__caption {
  display: block;
  padding: 10px 14px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--j9-steel);
  border-top: 1px solid var(--j9-line-soft);
}

.j9-accordion {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--j9-line);
}

.j9-accordion__item + .j9-accordion__item { border-top: 1px solid var(--j9-line-soft); }

.j9-accordion__trigger {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 16px 18px;
  text-align: left;
  font-family: var(--j9-font-display);
  font-size: clamp(15px, 1.4vw, 18px);
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--j9-white);
  transition: background-color 0.18s var(--j9-ease);
}

.j9-accordion__trigger:hover { background: rgba(0, 229, 255, 0.08); }

.j9-accordion__index {
  flex: 0 0 auto;
  font-family: var(--j9-font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--j9-cyan);
}

.j9-accordion__icon {
  position: relative;
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  margin-left: auto;
}

.j9-accordion__icon::before,
.j9-accordion__icon::after {
  content: "";
  position: absolute;
  background: var(--j9-cyan);
  transition: transform 0.2s var(--j9-ease);
}

.j9-accordion__icon::before { left: 0; right: 0; top: 6px; height: 2px; }
.j9-accordion__icon::after { top: 0; bottom: 0; left: 6px; width: 2px; }

.j9-accordion__trigger[aria-expanded="true"] .j9-accordion__icon::after { transform: scaleY(0); }

.j9-accordion__panel {
  padding: 0 18px 20px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--j9-mist);
}

.j9-accordion__panel[hidden] { display: none; }

/* 9. 正文容器 ------------------------------------------------------------ */
.j9-prose { max-width: 72ch; }

.j9-prose > * + * { margin-top: 1.05em; }

.j9-prose p { color: var(--j9-mist); }

.j9-prose a {
  color: var(--j9-cyan);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

.j9-prose a:hover { color: var(--j9-white); }

.j9-prose ul,
.j9-prose ol {
  padding-left: 1.2em;
  list-style: disc;
}

.j9-prose ol { list-style: decimal; }

.j9-prose li + li { margin-top: 0.4em; }

/* 10. 响应式 ------------------------------------------------------------- */
@media (max-width: 1100px) {
  .j9-nav__link { padding: 12px 9px 14px; font-size: 13.5px; }
}

@media (max-width: 960px) {
  :root { --j9-header-h: 62px; }

  .j9-header__inner { gap: 10px; }

  .j9-nav-toggle {
    display: inline-flex;
    margin-left: auto;
    order: 3;
  }

  .j9-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-left: 0;
    padding: 10px var(--j9-gutter) 20px;
    max-height: calc(100vh - var(--j9-header-h));
    overflow-y: auto;
    background: rgba(9, 21, 38, 0.98);
    border-bottom: 1px solid var(--j9-line);
    box-shadow: 0 34px 66px -34px rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 0.2s var(--j9-ease), transform 0.24s var(--j9-ease), visibility 0.24s;
  }

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

  .j9-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .j9-nav__item {
    display: block;
    border-top: 1px solid var(--j9-line-soft);
  }

  .j9-nav__item:first-child { border-top: 0; }

  .j9-nav__link {
    display: flex;
    justify-content: flex-start;
    padding: 15px 4px;
    font-size: 16px;
  }

  .j9-nav__link::after {
    left: 4px;
    right: auto;
    bottom: 9px;
    width: 28px;
    transform: scaleX(0);
  }

  .j9-nav__link:hover::after,
  .j9-nav__link[aria-current="page"]::after { transform: scaleX(1); }

  .j9-nav__idx { opacity: 1; transform: none; }

  .j9-header__cta {
    margin-left: 6px;
    padding: 10px 14px;
    font-size: 12px;
    letter-spacing: 0.12em;
  }

  .j9-footer__main { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .j9-footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  .j9-section__head { align-items: flex-start; }

  .j9-to-top {
    padding: 9px 12px;
    font-size: 11px;
    letter-spacing: 0.12em;
  }
}

@media (max-width: 620px) {
  .j9-header__cta { display: none; }
  .j9-brand__slogan { display: none; }

  .j9-footer__main { grid-template-columns: 1fr; }
  .j9-footer__bottom-inner { flex-direction: column; align-items: flex-start; }

  .j9-figure__media--wide { aspect-ratio: 16 / 9; }
}

@media (max-width: 420px) {
  .j9-nav-toggle__text { display: none; }
}

/* 11. 无障碍与降级 ------------------------------------------------------- */
@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;
    scroll-behavior: auto !important;
  }
}

@media print {
  .j9-header,
  .j9-to-top,
  .j9-footer__glow,
  body::after { display: none !important; }

  body { background: #fff; color: #111; }
  body::before { display: none; }
}
