/* =========================================================
   9博服务 · 共享 Site Kit
   深渊墨蓝基底 / 索引栏作为页面边框 / 切角与斜向渐变
   ========================================================= */

:root {
  --ink: #07111F;
  --ink-deep: #0C1B2E;
  --ink-lift: #0A1725;
  --rock: #2A3948;
  --paper: #E8EDF2;
  --paper-72: rgba(232, 237, 242, 0.72);
  --paper-56: rgba(232, 237, 242, 0.56);
  --paper-42: rgba(232, 237, 242, 0.42);
  --paper-30: rgba(232, 237, 242, 0.3);
  --line: rgba(232, 237, 242, 0.12);
  --line-soft: rgba(232, 237, 242, 0.08);
  --cyan: #37E6FF;
  --amber: #FFB45C;
  --moss: #6F8F7A;
  --clay: #C97A5A;
  --grad: linear-gradient(135deg, #37E6FF 0%, #FFB45C 100%);
  --rail-w: 272px;
  --quick-h: 56px;
  --topbar-h: 64px;
  --quick-m-h: 44px;
  --gutter: clamp(20px, 3.2vw, 44px);
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --sans: system-ui, -apple-system, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --cut: polygon(0 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%);
  --cut-lg: polygon(0 0, 100% 0, 100% calc(100% - 22px), calc(100% - 22px) 100%, 0 100%);
}

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

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

body {
  margin: 0;
  padding-left: var(--rail-w);
  padding-top: var(--quick-h);
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.8;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, p, figure, blockquote, dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, svg, picture, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
main { display: block; }
[id] { scroll-margin-top: calc(var(--quick-h) + 16px); }

::selection { background: var(--cyan); color: #06121D; }

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

/* ---------- 基础排版 ---------- */

h1, h2, h3, h4 {
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.16;
  color: var(--paper);
}

h1 { font-size: clamp(2.4rem, 6vw, 4.6rem); font-weight: 900; }
h2 { font-size: clamp(1.6rem, 3vw, 2.5rem); }
h3 { font-size: clamp(1.15rem, 1.8vw, 1.5rem); }
h4 { font-size: 1.02rem; letter-spacing: -0.01em; }

p { max-width: 46em; color: var(--paper-72); }
strong { color: var(--paper); font-weight: 700; }

.mono {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 400;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--paper-42);
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--cyan);
}

/* ---------- 容器与网格 ---------- */

.shell {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gutter);
}

/* ---------- 通用按钮 ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding: 14px 22px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--paper);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.01em;
  cursor: pointer;
  clip-path: var(--cut);
  transition: background 0.25s var(--ease), color 0.25s var(--ease),
    border-color 0.25s var(--ease);
}

.btn--amber { background: var(--amber); color: #20160A; }
.btn--amber:hover { background: #FFC983; }

.btn--cyan { background: var(--cyan); color: #04121B; }
.btn--cyan:hover { background: #7DEFFF; }

.btn--ghost { border-color: rgba(232, 237, 242, 0.28); color: var(--paper); }
.btn--ghost:hover { border-color: var(--cyan); color: var(--cyan); }

/* ---------- 面包屑 ---------- */

.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding-top: 20px;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--paper-42);
}

.crumbs a { color: var(--paper-56); transition: color 0.2s var(--ease); }
.crumbs a:hover { color: var(--cyan); }
.crumbs__sep { color: var(--paper-30); }

/* ---------- 图片容器（页面阶段使用） ---------- */

.media {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 10% 0%, rgba(55, 230, 255, 0.16), transparent 60%),
    linear-gradient(160deg, #0C1B2E 0%, #132A44 62%, #0A1725 100%);
  border: 1px solid var(--line);
  clip-path: var(--cut-lg);
}

.media > img,
.media > video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media--16x9 { aspect-ratio: 16 / 9; }
.media--4x3 { aspect-ratio: 4 / 3; }
.media--1x1 { aspect-ratio: 1 / 1; }
.media--tall { aspect-ratio: 3 / 4; }

.media__noise {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.5;
  background-image:
    repeating-linear-gradient(0deg, rgba(232, 237, 242, 0.05) 0 1px, transparent 1px 4px);
}

.media__label {
  position: absolute;
  left: 14px;
  bottom: 12px;
  padding: 4px 8px;
  background: rgba(7, 17, 31, 0.72);
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--paper-72);
}

/* ---------- 跳转链接 ---------- */

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 300;
  padding: 11px 18px;
  background: var(--amber);
  color: #1A1206;
  font-size: 0.85rem;
  font-weight: 700;
  clip-path: var(--cut);
  transform: translateY(-180%);
  transition: transform 0.22s var(--ease);
}

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

/* ---------- 头部：左侧索引栏 + 顶部快捷条 ---------- */

.site-header {
  position: relative;
  z-index: 70;
}

.rail {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 90;
  width: var(--rail-w);
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 24px 20px 18px;
  background:
    radial-gradient(130% 55% at 0% 0%, rgba(55, 230, 255, 0.14), transparent 62%),
    linear-gradient(180deg, #0C1B2E 0%, #07111F 58%, #0A1725 100%);
  border-right: 1px solid var(--line);
}

.rail::after {
  content: "";
  position: absolute;
  top: 0;
  right: -1px;
  width: 1px;
  height: 100%;
  background: linear-gradient(
    180deg,
    var(--cyan) 0%,
    rgba(55, 230, 255, 0) 36%,
    rgba(255, 180, 92, 0.8) 68%,
    rgba(255, 180, 92, 0) 100%
  );
  opacity: 0.6;
  pointer-events: none;
}

.rail__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
  color: var(--paper);
}

.brand__mark {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  background: var(--grad);
  color: #06121D;
  font-family: var(--mono);
  font-size: 1rem;
  font-weight: 700;
  clip-path: polygon(0 0, 100% 0, 100% 68%, 68% 100%, 0 100%);
}

.brand__type {
  display: flex;
  flex-direction: column;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.25;
  color: var(--paper);
  white-space: nowrap;
}

.brand__sub {
  margin-top: 3px;
  font-family: var(--mono);
  font-style: normal;
  font-size: 0.6rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--paper-42);
}

.navtoggle {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 8px 11px;
  background: rgba(7, 17, 31, 0.6);
  border: 1px solid rgba(232, 237, 242, 0.22);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 0.22s var(--ease), color 0.22s var(--ease);
}

.navtoggle:hover { border-color: var(--cyan); color: var(--cyan); }

.navtoggle__bars {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  width: 16px;
}

.navtoggle__bars i {
  display: block;
  width: 100%;
  height: 2px;
  background: currentColor;
  transition: transform 0.25s var(--ease), width 0.25s var(--ease);
}

.navtoggle__bars i:last-child { width: 62%; }

.site-header[data-open] .navtoggle__bars i:first-child {
  transform: translateY(3px) rotate(45deg);
}

.site-header[data-open] .navtoggle__bars i:last-child {
  width: 100%;
  transform: translateY(-3px) rotate(-45deg);
}

.navtoggle__label { line-height: 1; }

.nav {
  flex: 1 1 auto;
  margin-top: 20px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.nav__list {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.nav__list a {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 10px 12px;
  border-left: 1px solid var(--line-soft);
  color: var(--paper-72);
  font-size: 0.93rem;
  font-weight: 600;
  transition: color 0.22s var(--ease), background 0.22s var(--ease),
    border-color 0.22s var(--ease);
}

.nav__num {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  color: rgba(232, 237, 242, 0.36);
  transition: color 0.22s var(--ease);
}

.nav__text { display: inline-block; }

.nav__list a:hover {
  color: var(--paper);
  background: rgba(55, 230, 255, 0.08);
  border-left-color: rgba(55, 230, 255, 0.6);
}

.nav__list a:hover .nav__num { color: var(--cyan); }

.nav__list a[aria-current="page"] {
  color: #FFFFFF;
  background: linear-gradient(90deg, rgba(55, 230, 255, 0.2), rgba(55, 230, 255, 0) 92%);
  border-left-color: var(--cyan);
}

.nav__list a[aria-current="page"] .nav__num { color: var(--amber); }

.nav__list a[aria-current="page"]::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 12px;
  width: 6px;
  height: 6px;
  margin-top: -3px;
  background: var(--amber);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}

.rail__foot {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.rail__meta {
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  color: rgba(232, 237, 242, 0.38);
}

.rail__status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.76rem;
  color: var(--moss);
}

.dot {
  width: 6px;
  height: 6px;
  background: var(--moss);
  box-shadow: 0 0 0 3px rgba(111, 143, 122, 0.22);
  animation: kit-pulse 3.4s var(--ease) infinite;
}

.rail__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 12px;
  background: var(--amber);
  color: #20160A;
  font-size: 0.8rem;
  font-weight: 700;
  clip-path: var(--cut);
  transition: background 0.22s var(--ease);
}

.rail__cta:hover { background: #FFC983; }

@keyframes kit-pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(111, 143, 122, 0.22); }
  50% { box-shadow: 0 0 0 6px rgba(111, 143, 122, 0.06); }
}

/* ---------- 顶部快捷条 ---------- */

.quickbar {
  position: fixed;
  top: 0;
  left: var(--rail-w);
  right: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  gap: 18px;
  height: var(--quick-h);
  padding: 0 var(--gutter);
  background: rgba(7, 17, 31, 0.88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.quickbar__label {
  flex: 0 0 auto;
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  color: rgba(232, 237, 242, 0.4);
  white-space: nowrap;
}

.quickbar__list {
  display: flex;
  align-items: center;
  gap: 22px;
  flex: 1 1 auto;
  min-width: 0;
}

.quickbar__list a {
  position: relative;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--paper-72);
  white-space: nowrap;
  transition: color 0.22s var(--ease);
}

.quickbar__list a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 1px;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}

.quickbar__list a:hover { color: var(--paper); }
.quickbar__list a:hover::after { transform: scaleX(1); }

.quickbar__cta {
  flex: 0 0 auto;
  margin-left: auto;
  padding: 9px 15px;
  background: var(--grad);
  color: #06121D;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
  clip-path: var(--cut);
  transition: filter 0.22s var(--ease);
}

.quickbar__cta:hover { filter: brightness(1.12); }

/* ---------- 页脚 ---------- */

.site-footer {
  position: relative;
  margin-top: 80px;
  padding: 60px var(--gutter) 34px;
  background: linear-gradient(180deg, #07111F 0%, #0C1B2E 58%, #0A1725 100%);
  border-top: 1px solid rgba(232, 237, 242, 0.14);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: min(340px, 46%);
  height: 1px;
  background: linear-gradient(90deg, var(--cyan), rgba(55, 230, 255, 0));
}

.foot__top {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.5fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: start;
  max-width: 1180px;
  margin-inline: auto;
}

.foot__brand {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 36ch;
}

.brand--foot .brand__type { font-size: 1.06rem; }

.foot__note {
  font-size: 0.86rem;
  line-height: 1.75;
  color: var(--paper-56);
  max-width: 32ch;
}

.foot__go {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--cyan);
  transition: color 0.2s var(--ease);
}

.foot__go:hover { color: var(--amber); }

.foot__cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.foot__col { min-width: 0; }

.foot__title {
  margin-bottom: 14px;
  font-family: var(--mono);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(232, 237, 242, 0.42);
}

.foot__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.foot__list a {
  display: inline-block;
  font-size: 0.88rem;
  color: var(--paper-72);
  border-bottom: 1px solid transparent;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.foot__list a:hover {
  color: var(--cyan);
  border-bottom-color: rgba(55, 230, 255, 0.5);
}

.foot__contact {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  max-width: 1180px;
  margin: 44px auto 0;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

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

.foot__key {
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  color: rgba(232, 237, 242, 0.4);
}

.foot__val {
  font-size: 0.88rem;
  color: rgba(232, 237, 242, 0.82);
  word-break: break-all;
}

.foot__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 24px;
  justify-content: space-between;
  max-width: 1180px;
  margin: 30px auto 0;
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
}

.foot__legal-line {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: rgba(232, 237, 242, 0.46);
}

.foot__legal-line--dim { color: rgba(232, 237, 242, 0.32); }

/* ---------- 进场显现 ---------- */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.js [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* ---------- 平板 ---------- */

@media (max-width: 1040px) {
  .foot__top { grid-template-columns: minmax(0, 1fr); }
  .foot__brand { max-width: 100%; }
  .grid-12 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

/* ---------- 移动端：索引栏折叠为顶栏 ---------- */

@media (max-width: 900px) {
  body {
    padding-left: 0;
    padding-top: calc(var(--topbar-h) + var(--quick-m-h));
  }

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

  .rail {
    display: block;
    width: 100%;
    height: var(--topbar-h);
    padding: 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .rail::after { display: none; }

  .rail__top {
    height: var(--topbar-h);
    padding: 0 var(--gutter);
    border-bottom: 0;
  }

  .navtoggle { display: inline-flex; }

  .nav {
    position: fixed;
    top: var(--topbar-h);
    right: 0;
    bottom: 0;
    left: 0;
    margin: 0;
    padding: 18px var(--gutter) 40px;
    background:
      radial-gradient(120% 50% at 100% 0%, rgba(55, 230, 255, 0.12), transparent 60%),
      #07111F;
    border-top: 1px solid var(--line);
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.26s var(--ease), transform 0.26s var(--ease),
      visibility 0.26s var(--ease);
  }

  .site-header[data-open] .nav {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .nav__list a {
    padding: 14px 12px;
    font-size: 1.02rem;
    border-left-width: 2px;
  }

  .nav__num { font-size: 0.7rem; }

  .rail__foot { display: none; }

  html.is-nav-open,
  html.is-nav-open body { overflow: hidden; }

  .quickbar {
    top: var(--topbar-h);
    left: 0;
    right: 0;
    height: var(--quick-m-h);
    gap: 12px;
    padding: 0 var(--gutter);
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
  }

  .quickbar__label,
  .quickbar__cta { display: none; }

  .quickbar__list { gap: 18px; }

  .quickbar__list a { font-size: 0.78rem; }
}

/* ---------- 手机 ---------- */

@media (max-width: 700px) {
  h1 { font-size: clamp(2rem, 9vw, 3rem); }

  .site-footer {
    margin-top: 56px;
    padding: 44px var(--gutter) 28px;
  }

  .foot__cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
  }

  .foot__contact {
    grid-template-columns: minmax(0, 1fr);
    margin-top: 32px;
  }

  .foot__legal {
    flex-direction: column;
    gap: 8px;
  }
}

/* ---------- 减少动态 ---------- */

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

  .dot { animation: none; }

  .js [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
