:root {
  --jbo-red: #E1062C;
  --jbo-red-deep: #B70422;
  --jbo-black: #0B0D12;
  --jbo-panel: #151922;
  --jbo-paper: #F4F6F8;
  --jbo-cyan: #00F0D0;
  --jbo-violet: #7B4DFF;
  --jbo-yellow: #FFB800;
  --jbo-steel: #8A93A6;
  --jbo-green: #2ECC71;
  --jbo-orange: #FF6B4A;

  --ink: #0B0D12;
  --ink-soft: #2A2F3A;
  --line-dark: rgba(244, 246, 248, 0.12);
  --line-light: rgba(11, 13, 18, 0.14);

  --font-sans: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", "JetBrains Mono", Consolas, "Liberation Mono", monospace;

  --shell: 1320px;
  --gutter: clamp(1rem, 3.6vw, 3rem);
  --radius-lg: 34px;
  --radius-md: 20px;
  --radius-sm: 12px;
  --radius-pill: 999px;
  --header-h: 78px;
  --ease: cubic-bezier(0.22, 0.7, 0.24, 1);
}

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

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--jbo-paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

:focus-visible {
  outline: 3px solid var(--jbo-cyan);
  outline-offset: 2px;
  box-shadow: 0 0 0 6px rgba(11, 13, 18, 0.45);
  border-radius: 4px;
}

/* ---------- 排版与索引 ---------- */
.display {
  font-weight: 900;
  font-size: clamp(2.6rem, 7vw, 6.8rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
}

.display--slant {
  transform: skewX(-4deg);
  transform-origin: left bottom;
}

.headline {
  font-weight: 900;
  font-size: clamp(1.9rem, 3.8vw, 3.2rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
}

.index-label {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--jbo-steel);
}

.index-label::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--jbo-red);
}

.num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  font-weight: 800;
  letter-spacing: -0.01em;
}

/* ---------- 布局工具 ---------- */
.wrap {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.wrap--narrow { max-width: 860px; }

.section { padding-block: clamp(2.6rem, 6vw, 5.5rem); }
.section--tight { padding-block: clamp(1.6rem, 3vw, 2.6rem); }
.section--dark { background: var(--jbo-black); color: var(--jbo-paper); }
.section--panel { background: var(--jbo-panel); color: var(--jbo-paper); }

.grid {
  display: grid;
  gap: clamp(1rem, 2vw, 1.8rem);
}

.grid--3 {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 0.72em 1.35em;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s var(--ease), background 0.18s var(--ease),
    color 0.18s var(--ease), border-color 0.18s var(--ease);
}

.btn--primary { background: var(--jbo-red); color: #fff; }
.btn--primary:hover { background: var(--jbo-red-deep); transform: translateY(-2px); }

.btn--ghost {
  border-color: rgba(11, 13, 18, 0.24);
  color: var(--ink);
  background: transparent;
}
.btn--ghost:hover {
  border-color: var(--ink);
  background: rgba(11, 13, 18, 0.05);
  transform: translateY(-2px);
}

/* ---------- 卡片与标签 ---------- */
.card {
  background: #fff;
  border: 1px solid var(--line-light);
  border-radius: var(--radius-md);
  padding: clamp(1.1rem, 2.2vw, 1.7rem);
}

.card--dark {
  background: var(--jbo-panel);
  border-color: var(--line-dark);
  color: var(--jbo-paper);
}

.tag {
  display: inline-block;
  padding: 0.28em 0.72em;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  background: rgba(11, 13, 18, 0.06);
  color: var(--ink-soft);
}

.tag--live { background: rgba(225, 6, 44, 0.12); color: var(--jbo-red); }
.tag--data { background: rgba(123, 77, 255, 0.14); color: var(--jbo-violet); }
.tag--ok { background: rgba(46, 204, 113, 0.16); color: #197a45; }

/* ---------- 面包屑 ---------- */
.breadcrumbs { padding-block: 1.1rem; }

.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--jbo-steel);
}

.breadcrumb-item { display: inline-flex; align-items: center; }

.breadcrumb-item + .breadcrumb-item::before {
  content: "/";
  margin-right: 0.4rem;
  opacity: 0.6;
}

.breadcrumb-link { text-decoration: none; }
.breadcrumb-link:hover { color: var(--jbo-red); }

.breadcrumb-item[aria-current="page"] {
  color: var(--ink);
  font-weight: 600;
}

/* ---------- 响应式图片容器 ---------- */
.media-frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--jbo-panel);
  border: 1px solid var(--line-dark);
}

.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-frame--cinema { aspect-ratio: 16 / 9; border-radius: var(--radius-lg); }
.media-frame--wide { aspect-ratio: 21 / 9; }
.media-frame--portrait { aspect-ratio: 3 / 4; }

.media-frame--cut {
  border-radius: var(--radius-md);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 22px), 0 100%);
}

/* ---------- 跳至主内容 ---------- */
.skip-link {
  position: fixed;
  top: 0.6rem;
  left: 0.6rem;
  z-index: 220;
  padding: 0.7em 1.2em;
  border-radius: var(--radius-pill);
  background: var(--jbo-cyan);
  color: #04231f;
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-180%);
  transition: transform 0.2s var(--ease);
}

.skip-link:focus { transform: translateY(0); }

/* ---------- 头部 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(11, 13, 18, 0.95);
  color: var(--jbo-paper);
  border-bottom: 1px solid var(--line-dark);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: clamp(0.6rem, 1.6vw, 1.6rem);
  width: 100%;
  max-width: var(--shell);
  min-height: var(--header-h);
  margin-inline: auto;
  padding: 12px var(--gutter);
  transition: min-height 0.28s var(--ease), padding 0.28s var(--ease);
}

.site-header[data-scrolled] .header-inner {
  min-height: 58px;
  padding-block: 7px;
}

.brand-island {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-right: clamp(0.5rem, 1.5vw, 1.4rem);
  border-right: 1px solid var(--line-dark);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: inherit;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.35em 0.62em;
  background: var(--jbo-red);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  clip-path: polygon(10% 0, 100% 0, 90% 100%, 0 100%);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.brand-name {
  font-size: 1.02rem;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.brand-sub {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.2em;
  color: var(--jbo-steel);
}

.brand-tagline {
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  line-height: 1.4;
  color: var(--jbo-steel);
  transition: opacity 0.22s var(--ease);
}

.site-header[data-scrolled] .brand-tagline { opacity: 0; }

.site-nav {
  margin-inline: auto;
  padding: 4px;
  background: var(--jbo-panel);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-pill);
}

.nav-list {
  display: flex;
  gap: 2px;
}

.nav-item { display: block; }

.nav-link {
  display: block;
  padding: 0.5em 0.86em;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  white-space: nowrap;
  text-decoration: none;
  color: rgba(244, 246, 248, 0.76);
  transition: color 0.18s var(--ease), background 0.18s var(--ease);
}

.nav-link:hover {
  color: #fff;
  background: rgba(244, 246, 248, 0.08);
}

.nav-link[aria-current="page"] {
  background: var(--jbo-red);
  color: #fff;
}

.header-utility {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 0.55em 0.9em;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  white-space: nowrap;
  text-decoration: none;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease),
    background 0.18s var(--ease);
}

.pill--ghost {
  color: var(--jbo-paper);
  border-color: rgba(244, 246, 248, 0.22);
}

.pill--ghost:hover {
  color: var(--jbo-cyan);
  border-color: var(--jbo-cyan);
}

.pill--accent {
  background: var(--jbo-cyan);
  color: #04231f;
}

.pill--accent:hover { background: #4bffe8; }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
  padding: 0.55em 0.9em;
  border: 1px solid rgba(244, 246, 248, 0.24);
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--jbo-paper);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  cursor: pointer;
}

.nav-toggle-bars {
  display: inline-flex;
  flex-direction: column;
  gap: 3px;
  width: 16px;
}

.nav-toggle-bar {
  display: block;
  height: 2px;
  width: 100%;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.2s var(--ease), opacity 0.2s var(--ease);
}

.site-header[data-nav-open] .nav-toggle-bar:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.site-header[data-nav-open] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.site-header[data-nav-open] .nav-toggle-bar:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

.scroll-progress {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--jbo-red);
}

/* ---------- 页脚 ---------- */
.site-footer {
  position: relative;
  padding: clamp(2.6rem, 6vw, 5rem) var(--gutter) 1.6rem;
  background: var(--jbo-black);
  color: rgba(244, 246, 248, 0.72);
  border-top: 1px solid var(--line-dark);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr 1.6fr;
  gap: clamp(1.5rem, 3vw, 2.6rem);
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.footer-brand-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--jbo-paper);
}

.footer-brand-mark {
  padding: 0.3em 0.6em;
  background: var(--jbo-red);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  clip-path: polygon(10% 0, 100% 0, 90% 100%, 0 100%);
}

.footer-brand-name {
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.footer-summary {
  font-size: 0.86rem;
  line-height: 1.8;
  color: rgba(244, 246, 248, 0.7);
}

.footer-note {
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  line-height: 1.7;
  color: var(--jbo-steel);
}

.footer-col { min-width: 0; }

.footer-col-title {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.9rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--jbo-steel);
}

.footer-col-title::before {
  content: "";
  width: 14px;
  height: 2px;
  border-radius: 2px;
  background: var(--jbo-red);
}

.footer-list {
  display: grid;
  gap: 0.5rem;
}

.footer-link {
  display: inline-block;
  font-size: 0.86rem;
  text-decoration: none;
  color: rgba(244, 246, 248, 0.78);
  transition: color 0.18s var(--ease), transform 0.18s var(--ease);
}

.footer-link:hover {
  color: var(--jbo-cyan);
  transform: translateX(3px);
}

.footer-contact { min-width: 0; }

.contact-list {
  display: grid;
  gap: 0.9rem;
}

.contact-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.15rem 0.8rem;
  align-items: baseline;
}

.contact-label {
  grid-column: 1 / -1;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  color: var(--jbo-steel);
}

.contact-value {
  font-size: 0.86rem;
  line-height: 1.65;
  color: rgba(244, 246, 248, 0.88);
  overflow-wrap: anywhere;
}

.contact-value.num { font-size: 0.92rem; letter-spacing: 0.04em; }

.copy-btn {
  justify-self: start;
  align-self: center;
  padding: 0.25em 0.72em;
  border: 1px solid rgba(0, 240, 208, 0.4);
  border-radius: var(--radius-pill);
  background: rgba(0, 240, 208, 0.1);
  color: var(--jbo-cyan);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.18s var(--ease), color 0.18s var(--ease),
    border-color 0.18s var(--ease);
}

.copy-btn:hover { background: rgba(0, 240, 208, 0.2); }

.copy-btn[data-copied="true"] {
  background: var(--jbo-cyan);
  border-color: var(--jbo-cyan);
  color: #04231f;
}

.copy-btn[data-copied="false"] {
  border-color: rgba(255, 107, 74, 0.6);
  color: var(--jbo-orange);
}

.footer-base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 1.4rem;
  width: 100%;
  max-width: var(--shell);
  margin: clamp(1.6rem, 3vw, 2.6rem) auto 0;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line-dark);
  font-size: 0.76rem;
  letter-spacing: 0.05em;
  color: var(--jbo-steel);
}

.footer-legal,
.footer-icp { margin: 0; }

.to-top {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  margin-left: auto;
  padding: 0.55em 1em;
  border: 1px solid rgba(244, 246, 248, 0.24);
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--jbo-paper);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: background 0.18s var(--ease), border-color 0.18s var(--ease),
    color 0.18s var(--ease);
}

.to-top:hover {
  background: var(--jbo-red);
  border-color: var(--jbo-red);
  color: #fff;
}

.to-top-arrow {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  line-height: 1;
}

/* ---------- 平板与移动端 ---------- */
@media (max-width: 1180px) {
  .header-utility { display: none; }

  .nav-toggle { display: inline-flex; }

  .brand-island {
    border-right: 0;
    padding-right: 0;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 8px);
    left: var(--gutter);
    right: var(--gutter);
    display: none;
    margin: 0;
    padding: 8px;
    border-radius: 26px;
    background: var(--jbo-panel);
    border: 1px solid rgba(244, 246, 248, 0.14);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5);
    max-height: calc(100vh - 120px);
    overflow-y: auto;
  }

  .site-nav[data-open] { display: block; }

  .nav-list { flex-direction: column; gap: 2px; }

  .nav-link {
    padding: 0.8em 1em;
    border-radius: 14px;
    font-size: 0.95rem;
  }

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

  .footer-brand,
  .footer-contact { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  :root { --header-h: 66px; }

  .brand-name { font-size: 0.94rem; }
  .brand-tagline { display: none; }

  .nav-toggle-label { display: none; }

  .site-footer { padding-bottom: 1.4rem; }

  .footer-grid { grid-template-columns: 1fr; gap: 1.6rem; }

  .footer-base { flex-direction: column; align-items: flex-start; }

  .to-top { margin-left: 0; }

  .display--slant { transform: skewX(-2deg); }
}

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