/* =========================================================
   球速娱乐 · 共享样式 /assets/site.css
   设计语言：赛道蓝图 · 框架导航 · 斜切路径 · 冷底暖点
   ========================================================= */

/* ---------- 1. 设计令牌 ---------- */
:root {
  --qs-ink: #071A2B;
  --qs-ink-2: #0E2F44;
  --qs-wine: #5B1F3A;
  --qs-cyan: #19F0D8;
  --qs-orange: #FF8A3D;
  --qs-mint: #7DFFC4;
  --qs-white: #EAF4FF;
  --qs-mist: #9DB4C8;
  --qs-line: #2B4C63;
  --qs-gold: #F2C14E;

  --qs-display: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --qs-body: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --qs-mono: "JetBrains Mono", "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;

  --qs-gutter: 24px;
  --qs-max: 1240px;
  --qs-skew: -6deg;
  --qs-skew-b: 12deg;
  --qs-radius: 0px;
}

/* ---------- 2. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  background: var(--qs-ink);
  scroll-behavior: smooth;
  scroll-padding-top: 120px;
}
body, h1, h2, h3, h4, p, figure, blockquote, dl, dd, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img, svg, video { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
table { border-collapse: collapse; width: 100%; }
hr { border: 0; }
:focus-visible { outline: 2px solid var(--qs-cyan); outline-offset: 3px; }

/* ---------- 3. 中文排版基座 ---------- */
body {
  position: relative;
  margin: 0;
  background-color: var(--qs-ink);
  color: var(--qs-white);
  font-family: var(--qs-body);
  font-size: 17px;
  line-height: 1.68;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(43, 76, 99, 0.34) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(43, 76, 99, 0.34) 1px, transparent 1px),
    linear-gradient(135deg, rgba(14, 47, 68, 0.55) 0%, rgba(7, 26, 43, 0) 62%);
  background-size: 96px 96px, 96px 96px, 100% 100%;
}
h1, h2, h3, h4, .qs-h1, .qs-h2, .qs-h3 {
  font-family: var(--qs-display);
  font-weight: 900;
  line-height: 1.14;
  letter-spacing: -0.005em;
}
h1, .qs-h1 { font-size: clamp(32px, 5vw, 60px); }
h2, .qs-h2 { font-size: clamp(23px, 2.8vw, 34px); }
h3, .qs-h3 { font-size: 19px; line-height: 1.35; }
h4, .qs-h4 { font-size: 16px; line-height: 1.4; }
p { margin: 0; }
p + p { margin-top: 0.9em; }
strong, b { font-weight: 800; color: var(--qs-white); }

/* ---------- 4. 跳转链接 ---------- */
.qs-skip {
  position: fixed;
  top: -80px;
  left: 16px;
  z-index: 200;
  display: inline-block;
  padding: 12px 20px;
  font-family: var(--qs-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--qs-ink);
  background: var(--qs-cyan);
  clip-path: polygon(0 0, 100% 0, 100% 74%, calc(100% - 14px) 100%, 0 100%);
  transition: top 0.18s ease;
}
.qs-skip:focus { top: 12px; }

/* ---------- 5. 头部：框架式导航横梁 ---------- */
.qs-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: linear-gradient(180deg, #0A2135 0%, #071A2B 100%);
  border-bottom: 1px solid var(--qs-line);
  box-shadow: 0 10px 30px rgba(3, 11, 19, 0.55);
}
.qs-header__rail {
  background:
    linear-gradient(90deg, rgba(14, 47, 68, 0.92) 0%, rgba(14, 47, 68, 0.28) 55%, rgba(91, 31, 58, 0.32) 100%);
  border-bottom: 1px solid rgba(43, 76, 99, 0.55);
}
.qs-header__inner {
  width: 100%;
  max-width: var(--qs-max);
  margin: 0 auto;
  padding: 13px var(--qs-gutter);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
}
.qs-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.qs-brand__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  font-family: var(--qs-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--qs-ink);
  background: var(--qs-cyan);
  clip-path: polygon(0 0, 100% 0, 100% 72%, 72% 100%, 0 100%);
}
.qs-brand__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.qs-brand__name {
  font-family: var(--qs-display);
  font-size: 19px;
  font-weight: 900;
  letter-spacing: 0.05em;
  line-height: 1.1;
  color: var(--qs-white);
  white-space: nowrap;
}
.qs-brand__tag {
  font-family: var(--qs-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  color: var(--qs-mist);
  white-space: nowrap;
}
.qs-header__util {
  justify-self: end;
  font-family: var(--qs-mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  color: var(--qs-mist);
  white-space: nowrap;
}
.qs-navtoggle {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  color: var(--qs-white);
  font-family: var(--qs-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  border: 1px solid var(--qs-line);
  background: rgba(14, 47, 68, 0.7);
}
.qs-navtoggle__bars {
  position: relative;
  display: block;
  width: 18px;
  height: 2px;
  background: var(--qs-cyan);
  transition: background 0.18s ease;
}
.qs-navtoggle__bars::before,
.qs-navtoggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: var(--qs-cyan);
  transition: transform 0.2s ease, top 0.2s ease;
}
.qs-navtoggle__bars::before { top: -6px; }
.qs-navtoggle__bars::after { top: 6px; }
.qs-header[data-open="true"] .qs-navtoggle__bars { background: transparent; }
.qs-header[data-open="true"] .qs-navtoggle__bars::before { top: 0; transform: rotate(45deg); }
.qs-header[data-open="true"] .qs-navtoggle__bars::after { top: 0; transform: rotate(-45deg); }

.qs-nav {
  width: 100%;
  max-width: var(--qs-max);
  margin: 0 auto;
  padding: 0 var(--qs-gutter);
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid rgba(43, 76, 99, 0.75);
}
.qs-nav__list { display: flex; align-items: stretch; flex-wrap: wrap; min-width: 0; }
.qs-nav__item { display: flex; }
.qs-nav__link {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  padding: 14px 18px;
  font-size: 15px;
  font-weight: 700;
  color: var(--qs-white);
  border-left: 1px solid rgba(43, 76, 99, 0.5);
  transition: color 0.18s ease, background-color 0.18s ease;
}
.qs-nav__link:hover { color: var(--qs-cyan); background: rgba(25, 240, 216, 0.05); }
.qs-nav__idx {
  font-family: var(--qs-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--qs-mist);
  transition: color 0.18s ease;
}
.qs-nav__link:hover .qs-nav__idx { color: var(--qs-cyan); }
.qs-nav__link[aria-current="page"] {
  color: var(--qs-cyan);
  background: rgba(25, 240, 216, 0.08);
}
.qs-nav__link[aria-current="page"] .qs-nav__idx { color: var(--qs-orange); }
.qs-nav__link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--qs-cyan);
}

/* ---------- 6. 主按钮 ---------- */
.qs-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 26px;
  font-family: var(--qs-display);
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.04em;
  color: #12202C;
  background: var(--qs-orange);
  clip-path: polygon(0 0, 100% 0, 100% 74%, calc(100% - 16px) 100%, 0 100%);
  transition: background-color 0.18s ease, transform 0.18s ease;
}
.qs-cta:hover { background: #FFA365; transform: translateY(-1px); }
.qs-cta:active { transform: none; }
.qs-cta--header { align-self: center; margin: 9px 0 9px auto; flex: 0 0 auto; }
.qs-cta--footer { margin-top: 22px; padding: 12px 24px; }

/* ---------- 7. 滚动进度轨 ---------- */
.qs-progress {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--qs-cyan) 0%, var(--qs-orange) 62%, var(--qs-gold) 100%);
  pointer-events: none;
  z-index: 3;
}

/* ---------- 8. 页面容器与蓝图栅格 ---------- */
.qs-main { display: block; min-height: 40vh; }
.qs-container {
  width: 100%;
  max-width: var(--qs-max);
  margin: 0 auto;
  padding-left: var(--qs-gutter);
  padding-right: var(--qs-gutter);
}
.qs-section { padding: clamp(40px, 6vw, 76px) 0; }
.qs-section--tight { padding: clamp(26px, 3.4vw, 44px) 0; }
.qs-section--wide { padding: clamp(56px, 8vw, 108px) 0; }
.qs-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 24px;
}
.qs-span-4 { grid-column: span 4; }
.qs-span-6 { grid-column: span 6; }
.qs-span-8 { grid-column: span 8; }
.qs-span-12 { grid-column: span 12; }

/* ---------- 9. 文本组件 ---------- */
.qs-eyebrow {
  display: inline-block;
  font-family: var(--qs-mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  color: var(--qs-cyan);
  margin-bottom: 14px;
}
.qs-section__title { color: var(--qs-white); margin-bottom: 14px; }
.qs-lede {
  max-width: 62ch;
  font-size: 17px;
  color: var(--qs-mist);
  line-height: 1.76;
}
.qs-rule {
  display: block;
  width: 56px;
  height: 3px;
  background: var(--qs-orange);
  margin: 18px 0;
}
.qs-annot {
  display: inline-block;
  writing-mode: vertical-rl;
  font-family: var(--qs-mono);
  font-size: 12px;
  letter-spacing: 0.32em;
  color: var(--qs-mist);
  text-transform: uppercase;
}
.qs-conclusion {
  position: relative;
  padding-bottom: 16px;
  font-family: var(--qs-display);
  font-size: 18px;
  font-weight: 900;
  line-height: 1.55;
  color: var(--qs-white);
}
.qs-conclusion::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 56px;
  height: 3px;
  background: var(--qs-orange);
}
.qs-note {
  font-family: var(--qs-mono);
  font-size: 12.5px;
  letter-spacing: 0.06em;
  color: var(--qs-mist);
  line-height: 1.7;
}

/* ---------- 10. 标签与次级按钮 ---------- */
.qs-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  font-family: var(--qs-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--qs-mist);
  border: 1px solid var(--qs-line);
  background: rgba(14, 47, 68, 0.5);
}
.qs-tag--cyan { color: var(--qs-cyan); border-color: rgba(25, 240, 216, 0.45); }
.qs-tag--mint { color: var(--qs-mint); border-color: rgba(125, 255, 196, 0.45); }
.qs-tag--orange { color: var(--qs-orange); border-color: rgba(255, 138, 61, 0.45); }

.qs-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--qs-white);
  border: 1px solid var(--qs-line);
  background: rgba(14, 47, 68, 0.65);
  transition: color 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}
.qs-btn:hover { color: var(--qs-cyan); border-color: var(--qs-cyan); background: rgba(25, 240, 216, 0.08); }
.qs-btn--ghost { background: transparent; border-color: rgba(43, 76, 99, 0.8); color: var(--qs-mist); }

/* ---------- 11. 面包屑 ---------- */
.qs-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding-top: 20px;
  font-family: var(--qs-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--qs-mist);
}
.qs-breadcrumb__item { display: inline-flex; align-items: center; gap: 10px; }
.qs-breadcrumb__link {
  color: var(--qs-mist);
  border-bottom: 1px solid transparent;
  transition: color 0.16s ease, border-color 0.16s ease;
}
.qs-breadcrumb__link:hover { color: var(--qs-cyan); border-bottom-color: var(--qs-cyan); }
.qs-breadcrumb__sep { color: var(--qs-line); }

/* ---------- 12. 响应式图片容器 ---------- */
.qs-media {
  position: relative;
  display: block;
  overflow: hidden;
  border: 1px solid var(--qs-line);
  background:
    linear-gradient(135deg, rgba(14, 47, 68, 0.95) 0%, rgba(7, 26, 43, 0.95) 100%);
}
.qs-media::before {
  content: "";
  display: block;
  padding-top: 56.25%;
}
.qs-media--wide::before { padding-top: 40%; }
.qs-media--tall::before { padding-top: 118%; }
.qs-media__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.qs-media__caption {
  position: absolute;
  left: 0;
  bottom: 0;
  right: 0;
  padding: 10px 14px;
  font-family: var(--qs-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  color: var(--qs-mist);
  background: linear-gradient(180deg, rgba(7, 26, 43, 0) 0%, rgba(7, 26, 43, 0.92) 100%);
}

/* ---------- 13. 滚动显现 ---------- */
.qs-js .qs-reveal {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.qs-js .qs-reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- 14. 页脚 ---------- */
.qs-footer {
  position: relative;
  margin-top: 0;
  background: linear-gradient(180deg, #0A2135 0%, #05131F 100%);
  border-top: 1px solid var(--qs-line);
}
.qs-footer__slab {
  height: 8px;
  background-color: rgba(91, 31, 58, 0.62);
  background-image: linear-gradient(
    90deg,
    var(--qs-cyan) 0 140px,
    var(--qs-orange) 140px 244px,
    transparent 244px
  );
}
.qs-footer__inner {
  width: 100%;
  max-width: var(--qs-max);
  margin: 0 auto;
  padding: clamp(38px, 5vw, 60px) var(--qs-gutter) clamp(26px, 3.4vw, 40px);
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.85fr) minmax(0, 1fr);
  gap: 44px 52px;
  align-items: start;
}
.qs-footer__lead { min-width: 0; }
.qs-brand--footer .qs-brand__mark { width: 38px; height: 38px; font-size: 12px; }
.qs-brand--footer .qs-brand__name { font-size: 17px; }
.qs-footer__desc {
  margin-top: 18px;
  max-width: 40ch;
  font-size: 15px;
  line-height: 1.75;
  color: var(--qs-mist);
}
.qs-footer__col { min-width: 0; }
.qs-footer__title {
  font-family: var(--qs-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--qs-mist);
  padding-bottom: 10px;
  margin-bottom: 14px;
  border-bottom: 1px solid rgba(43, 76, 99, 0.7);
}
.qs-footer__list { display: grid; gap: 2px; }
.qs-footer__link {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  padding: 6px 0;
  font-size: 15px;
  color: var(--qs-white);
  transition: color 0.16s ease;
}
.qs-footer__link:hover { color: var(--qs-cyan); }
.qs-footer__idx {
  font-family: var(--qs-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--qs-mist);
}
.qs-footer__dl { display: grid; gap: 4px; }
.qs-footer__dt {
  font-family: var(--qs-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--qs-mist);
}
.qs-footer__dd {
  margin: 0 0 10px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--qs-white);
  word-break: break-word;
}
.qs-footer__base {
  width: 100%;
  max-width: var(--qs-max);
  margin: 0 auto;
  padding: 18px var(--qs-gutter) 32px;
  border-top: 1px solid rgba(43, 76, 99, 0.7);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 28px;
  font-family: var(--qs-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--qs-mist);
}
.qs-footer__copy { color: var(--qs-mist); }
.qs-footer__icp { color: var(--qs-mist); }
.qs-footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  margin-left: auto;
}
.qs-footer__legal .qs-footer__link { padding: 2px 0; font-size: 12px; }

/* ---------- 15. 平板 ---------- */
@media (max-width: 1000px) {
  .qs-footer__inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 36px 40px;
  }
  .qs-footer__lead { grid-column: 1 / -1; }
  .qs-nav__link { padding: 13px 13px; font-size: 14px; }
  .qs-span-4 { grid-column: span 6; }
  .qs-span-8 { grid-column: span 12; }
}

/* ---------- 16. 移动端框架导航 ---------- */
@media (max-width: 960px) {
  .qs-header__inner { grid-template-columns: 1fr auto; }
  .qs-header__util { display: none; }
  .qs-navtoggle { display: inline-flex; }
  .qs-nav {
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding-bottom: 18px;
    background:
      linear-gradient(180deg, rgba(14, 47, 68, 0.96) 0%, rgba(7, 26, 43, 0.99) 100%);
  }
  .qs-header[data-open="true"] .qs-nav { display: flex; }
  .qs-nav__list { flex-direction: column; width: 100%; }
  .qs-nav__item { width: 100%; }
  .qs-nav__link {
    width: 100%;
    padding: 15px 6px 15px 14px;
    font-size: 16px;
    border-left: 0;
    border-top: 1px solid rgba(43, 76, 99, 0.55);
  }
  .qs-nav__link[aria-current="page"]::after {
    left: 0;
    right: auto;
    top: 0;
    bottom: 0;
    width: 3px;
    height: auto;
  }
  .qs-cta--header { align-self: flex-start; margin: 16px 0 0; }
}

/* ---------- 17. 手机 ---------- */
@media (max-width: 680px) {
  :root { --qs-gutter: 18px; }
  body { font-size: 16px; }
  .qs-brand__mark { width: 40px; height: 40px; font-size: 12px; }
  .qs-brand__name { font-size: 17px; }
  .qs-brand__tag { font-size: 10px; letter-spacing: 0.12em; }
  .qs-header__inner { padding: 11px var(--qs-gutter); gap: 12px; }
  .qs-annot { writing-mode: horizontal-tb; letter-spacing: 0.2em; }
  .qs-span-4, .qs-span-6, .qs-span-8 { grid-column: span 12; }
  .qs-footer__inner { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .qs-footer__base { flex-direction: column; align-items: flex-start; gap: 10px; }
  .qs-footer__legal { margin-left: 0; }
}

/* ---------- 18. 减少动效 ---------- */
@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;
  }
  .qs-js .qs-reveal {
    opacity: 1 !important;
    transform: none !important;
  }
  .qs-cta:hover { transform: none; }
}
