/* ===========================================================
   BOB体官网 · 共享站点样式 / assets/site.css
   深海蓝数据场 · 电光青交互 · 琥珀金数据 · 珊瑚红提醒
   =========================================================== */

/* ---------- 1. 变量 ---------- */
:root {
  --abyss: #061826;
  --navy: #0B2A45;
  --cyan: #24D6E8;
  --cyan-soft: #9BEAF2;
  --amber: #FFB020;
  --coral: #FF6B5A;
  --mist: #EEF6FA;
  --steel: #5C7C93;
  --ink: #0A0E12;
  --white: #FFFFFF;

  --line: rgba(155, 234, 242, 0.16);
  --line-soft: rgba(155, 234, 242, 0.09);
  --line-strong: rgba(36, 214, 232, 0.48);

  --font-display: "Barlow Condensed", "思源黑体 Heavy", "Arial Narrow", "PingFang SC", sans-serif;
  --font-serif: "Noto Serif SC", "Songti SC", serif;
  --font-body: "Inter", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: "IBM Plex Mono", "JetBrains Mono", SFMono-Regular, "Courier New", monospace;

  --shell: 1320px;
  --gutter: clamp(16px, 3vw, 40px);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- 2. 重置与基础 ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--abyss);
  color: var(--mist);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
a { color: var(--cyan-soft); text-decoration: none; transition: color 0.18s var(--ease); }
a:hover { color: var(--cyan); }
[hidden] { display: none !important; }

:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  top: -120px;
  left: var(--gutter);
  z-index: 999;
  padding: 10px 20px;
  background: var(--amber);
  color: var(--ink);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.04em;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 12px; color: var(--ink); }

/* ---------- 3. 排版组件 ---------- */
.display-xl {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(48px, 7vw, 112px);
  line-height: 0.95;
  letter-spacing: -0.01em;
  color: var(--white);
}

.section-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1.05;
  letter-spacing: 0.005em;
  color: var(--white);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cyan);
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--amber);
}

.lede {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.72;
  color: var(--cyan-soft);
  max-width: 60ch;
}

.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  font-size: 18px;
  letter-spacing: 0.02em;
  color: var(--amber);
}

.serif-note {
  font-family: var(--font-serif);
  font-size: 15px;
  line-height: 1.8;
  color: var(--steel);
}

.rule {
  height: 1px;
  margin: 0;
  border: 0;
  background: var(--line);
}

/* ---------- 4. 按钮与标签 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border: 1px solid transparent;
  border-radius: 0;
  background: transparent;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.3;
  cursor: pointer;
  text-align: center;
  transition: background 0.18s var(--ease), color 0.18s var(--ease),
    border-color 0.18s var(--ease);
}

.btn--primary {
  background: var(--cyan);
  border-color: var(--cyan);
  color: var(--abyss);
}
.btn--primary:hover {
  background: var(--amber);
  border-color: var(--amber);
  color: var(--ink);
}

.btn--ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--cyan-soft);
}
.btn--ghost:hover {
  background: rgba(36, 214, 232, 0.1);
  border-color: var(--cyan);
  color: var(--white);
}

.btn--quiet {
  padding: 4px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  color: var(--steel);
}
.btn--quiet:hover { color: var(--cyan); border-color: var(--cyan); }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border: 1px solid currentColor;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  line-height: 1.5;
  text-transform: uppercase;
}
.tag--amber { color: var(--amber); }
.tag--coral { color: var(--coral); }

/* ---------- 5. 布局容器与网格 ---------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section { padding: clamp(40px, 6vw, 88px) 0; }

.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 32px);
}

.page-head {
  display: grid;
  gap: 14px;
  padding: clamp(28px, 4vw, 56px) 0 clamp(20px, 3vw, 36px);
  border-bottom: 1px solid var(--line);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--steel);
}
.breadcrumb li { display: inline-flex; align-items: center; gap: 8px; }
.breadcrumb li + li::before {
  content: "/";
  color: rgba(155, 234, 242, 0.34);
}
.breadcrumb a { color: var(--steel); }
.breadcrumb a:hover { color: var(--cyan); }

.prose {
  max-width: 72ch;
  font-size: 16px;
  line-height: 1.85;
  color: var(--mist);
}
.prose > * + * { margin-top: 1.1em; }
.prose h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(24px, 2.4vw, 32px);
  line-height: 1.15;
  color: var(--white);
  margin-top: 1.8em;
}
.prose h3 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 20px;
  line-height: 1.4;
  color: var(--cyan-soft);
  margin-top: 1.6em;
}
.prose a { border-bottom: 1px solid var(--line-strong); }
.prose ul { list-style: none; }
.prose ul li {
  position: relative;
  padding-left: 18px;
  margin-top: 0.45em;
}
.prose ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 7px;
  height: 1px;
  background: var(--amber);
}

/* ---------- 6. 媒体容器 ---------- */
.media-frame {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, var(--navy) 0%, var(--abyss) 62%);
}
.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    135deg,
    rgba(36, 214, 232, 0.09) 0 1px,
    transparent 1px 14px
  );
}
.media-frame img,
.media-frame picture,
.media-frame video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media-frame--wide { aspect-ratio: 16 / 9; }
.media-frame--tall { aspect-ratio: 3 / 4; }

/* ---------- 7. 页头 ---------- */
.masthead {
  position: sticky;
  top: 0;
  z-index: 60;
  background: linear-gradient(180deg, #061826 0%, rgba(6, 24, 38, 0.96) 100%);
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.masthead__inner {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 9fr);
  align-items: stretch;
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.brand-rail {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  padding: 16px clamp(16px, 2vw, 32px) 16px 0;
  border-right: 1px solid var(--line);
}
.brand-rail::before {
  content: "";
  position: absolute;
  top: 16px;
  right: -1px;
  width: 1px;
  height: 30px;
  background: var(--cyan);
}

.brand-mark {
  display: flex;
  flex-direction: column;
  gap: 5px;
  color: var(--white);
}
.brand-mark__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(21px, 2.1vw, 29px);
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--white);
}
.brand-mark:hover .brand-mark__name { color: var(--cyan); }
.brand-mark__rule {
  display: block;
  width: 42px;
  height: 3px;
  background: var(--amber);
}
.brand-mark__desc {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.12em;
  color: var(--steel);
}

.status-flag {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  max-width: 34ch;
  padding-left: 9px;
  border-left: 2px solid var(--coral);
  font-size: 12px;
  line-height: 1.45;
  color: var(--cyan-soft);
}
.status-dot {
  flex: 0 0 auto;
  width: 6px;
  height: 6px;
  margin-top: 5px;
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 0 0 3px rgba(255, 107, 90, 0.16);
}

.masthead__main {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: 14px 0 14px clamp(16px, 2.4vw, 36px);
}

.utility-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  padding-bottom: 9px;
  border-bottom: 1px solid var(--line-soft);
}
.utility-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: var(--steel);
}
.utility-item + .utility-item::before {
  content: "";
  width: 1px;
  height: 10px;
  background: var(--line);
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 0;
  background: transparent;
  color: var(--cyan-soft);
  cursor: pointer;
  transition: border-color 0.18s var(--ease), color 0.18s var(--ease);
}
.nav-toggle:hover { border-color: var(--cyan); color: var(--white); }
.nav-toggle__bars {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 16px;
}
.nav-toggle__bars span {
  display: block;
  height: 2px;
  background: currentColor;
  transition: transform 0.2s var(--ease);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:first-child {
  transform: translateY(3px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:last-child {
  transform: translateY(-3px) rotate(-45deg);
}
.nav-toggle__text {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
}

.masthead__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 10px;
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(10px, 1.6vw, 26px);
}

.nav-link {
  position: relative;
  display: inline-block;
  padding: 6px 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(14px, 1.15vw, 16px);
  letter-spacing: 0.06em;
  line-height: 1.3;
  white-space: nowrap;
  color: var(--cyan-soft);
  transition: color 0.18s var(--ease);
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--amber);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.2s var(--ease);
}
.nav-link:hover { color: var(--white); }
.nav-link:hover::after { transform: scaleX(1); }
.nav-link[aria-current="page"] { color: var(--white); }
.nav-link[aria-current="page"]::after { transform: scaleX(1); }

.masthead__cta { flex: 0 0 auto; }

.progress-rail {
  height: 3px;
  background: rgba(155, 234, 242, 0.12);
  overflow: hidden;
}
.progress-rail__fill {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--cyan) 0%, var(--amber) 100%);
  transition: width 0.08s linear;
}

/* ---------- 8. 页脚 ---------- */
.site-footer {
  position: relative;
  padding: clamp(40px, 5vw, 72px) 0 0;
  background: var(--navy);
  border-top: 1px solid var(--line-strong);
  color: var(--mist);
}
.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: min(38%, 420px);
  height: 3px;
  background: var(--amber);
}

.footer-shell {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 6fr) minmax(0, 3fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
}

.footer-brand__line {
  max-width: 22ch;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.25;
  letter-spacing: 0.02em;
  color: var(--white);
}
.footer-brand__note {
  max-width: 30ch;
  margin-top: 14px;
  padding-left: 12px;
  border-left: 2px solid var(--cyan);
  font-size: 13px;
  line-height: 1.7;
  color: var(--steel);
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 32px);
}

.footer-col__title {
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.footer-links a {
  font-size: 14px;
  color: var(--mist);
  opacity: 0.86;
  border-bottom: 1px solid transparent;
  transition: color 0.18s var(--ease), opacity 0.18s var(--ease),
    border-color 0.18s var(--ease);
}
.footer-links a:hover {
  color: var(--cyan);
  opacity: 1;
  border-bottom-color: var(--line-strong);
}

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

.contact-line {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.contact-line li {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.contact-line__key {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--steel);
}
.contact-value {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.6;
  color: var(--white);
  overflow-wrap: anywhere;
}

.footer-bottom {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px 24px;
  align-items: center;
  margin-top: clamp(32px, 4vw, 56px);
  padding: 18px 0 22px;
  border-top: 1px solid var(--line);
}
.footer-legal {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--steel);
}
.footer-note {
  font-size: 12px;
  line-height: 1.6;
  color: var(--steel);
  text-align: center;
}
.back-top {
  justify-self: end;
  padding: 7px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 0;
  background: transparent;
  color: var(--cyan-soft);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: background 0.18s var(--ease), color 0.18s var(--ease),
    border-color 0.18s var(--ease);
}
.back-top:hover {
  background: var(--cyan);
  border-color: var(--cyan);
  color: var(--abyss);
}

/* ---------- 9. 筛选协议 ---------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.filter-btn {
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--cyan-soft);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: background 0.18s var(--ease), color 0.18s var(--ease),
    border-color 0.18s var(--ease);
}
.filter-btn:hover { border-color: var(--cyan); color: var(--white); }
.filter-btn.is-active {
  background: var(--cyan);
  border-color: var(--cyan);
  color: var(--abyss);
}

.filter-item { min-width: 0; }
.filter-item.is-in { animation: filterIn 0.18s var(--ease) both; }

@keyframes filterIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

@keyframes navIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}

/* ---------- 10. 响应式 ---------- */
@media (max-width: 1000px) {
  .masthead__inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .brand-rail {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 20px;
    padding: 14px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .brand-rail::before { display: none; }
  .status-flag { max-width: none; font-size: 11px; }

  .masthead__main {
    padding: 10px 0 14px;
  }

  .utility-bar { display: none; }

  .nav-toggle {
    display: inline-flex;
    align-self: flex-end;
  }

  .masthead__nav {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
    max-height: calc(100vh - 200px);
    overflow-y: auto;
  }
  .masthead__nav[data-open] {
    display: flex;
    animation: navIn 0.2s var(--ease) both;
  }

  .nav-list {
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 0;
  }
  .nav-list li + li { border-top: 1px solid var(--line-soft); }
  .nav-link {
    display: block;
    padding: 12px 4px;
    font-size: 16px;
    letter-spacing: 0.08em;
  }
  .nav-link::after { display: none; }
  .nav-link[aria-current="page"] {
    padding-left: 12px;
    border-left: 2px solid var(--amber);
    color: var(--amber);
  }

  .masthead__cta {
    align-self: flex-start;
    margin-top: 14px;
  }
}

@media (max-width: 1024px) {
  .footer-top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  .footer-top { grid-template-columns: minmax(0, 1fr); }
  .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-bottom {
    grid-template-columns: minmax(0, 1fr);
    justify-items: start;
  }
  .footer-note { text-align: left; }
  .back-top { justify-self: start; }
}

@media (max-width: 480px) {
  .footer-cols { grid-template-columns: minmax(0, 1fr); }
  .status-flag { font-size: 11px; }
}

/* ---------- 11. 动效降级 ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .progress-rail__fill { transition: none; }
  .filter-item.is-in { animation: none; }
  .masthead__nav[data-open] { animation: none; }
}
