/* =========================================================
   极速电竞 · flash-jisu.com.cn
   /assets/site.css —— 共享外壳与基础组件
   深空黑舞台 + 霓虹脉冲 + 暖纸实色内容层
   ========================================================= */

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

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

body { margin: 0; }

h1, h2, h3, h4, h5, h6, p, figure, blockquote { margin: 0; }

ul, ol { margin: 0; padding: 0; list-style: none; }

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

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

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

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

/* ---------- 2. 设计令牌 ---------- */
:root {
  --ink: #0A0E17;
  --ink-deep: #060911;
  --cyan: #00E5FF;
  --violet: #7C4DFF;
  --lava: #FF6B35;
  --mint: #4DF5C0;
  --paper: #F4EFE6;
  --graphite: #1B2233;
  --steel: #9AA7C7;
  --paper-2: #C9C3B6;
  --paper-ink: #16181F;

  --glass: rgba(27, 34, 51, 0.55);
  --glass-line: rgba(0, 229, 255, 0.18);
  --hairline: rgba(154, 167, 199, 0.16);

  --shell-max: 1240px;
  --gutter: clamp(18px, 4vw, 44px);

  --font-sans: "PingFang SC", "Hiragino Sans GB", "Source Han Sans SC",
               "Noto Sans SC", "Microsoft YaHei", system-ui, -apple-system,
               "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, SFMono-Regular,
               Menlo, Consolas, "Liberation Mono", monospace;

  --cut: polygon(14px 0, 100% 0, calc(100% - 14px) 100%, 0 100%);
  --cut-sm: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);

  --header-h: 108px;
}

/* ---------- 3. 中文排版基础 ---------- */
body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: 0.01em;
  color: var(--paper);
  background-color: var(--ink);
  background-image:
    radial-gradient(120% 70% at 100% 0%, rgba(124, 77, 255, 0.14), transparent 58%),
    radial-gradient(90% 60% at 0% 100%, rgba(0, 229, 255, 0.1), transparent 60%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection { background: var(--cyan); color: var(--ink-deep); }

#main-content { scroll-margin-top: calc(var(--header-h) + 16px); }

.display {
  font-family: var(--font-sans);
  font-weight: 900;
  font-style: italic;
  font-size: clamp(56px, 12vw, 168px);
  line-height: 0.94;
  letter-spacing: -0.03em;
}

.glitch {
  position: relative;
  text-shadow:
    1px 0 rgba(0, 229, 255, 0.7),
    -1px 0 rgba(124, 77, 255, 0.6);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.24em;
  color: var(--cyan);
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--violet));
}

.lede {
  font-size: clamp(17px, 1.6vw, 21px);
  line-height: 1.6;
  color: var(--steel);
  max-width: 60ch;
}

.data-num {
  font-family: var(--font-mono);
  font-weight: 700;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--paper);
  text-shadow: 0 0 18px rgba(0, 229, 255, 0.35);
}

.data-num--lava {
  color: var(--lava);
  text-shadow: 0 0 18px rgba(255, 107, 53, 0.4);
}

.data-num--mint {
  color: var(--mint);
  text-shadow: 0 0 18px rgba(77, 245, 192, 0.35);
}

.rule {
  height: 2px;
  border: 0;
  margin: 0;
  background: linear-gradient(90deg, var(--cyan), var(--violet) 55%, transparent);
}

/* ---------- 4. 布局 ---------- */
.shell {
  width: min(var(--shell-max), calc(100% - 2 * var(--gutter)));
  margin-inline: auto;
}

.section { padding-block: clamp(48px, 7vw, 104px); }

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

@media (max-width: 900px) {
  .grid-12 { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px; }
}

@media (max-width: 560px) {
  .grid-12 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
}

/* 暖纸实色内容层 */
.paper {
  background: var(--paper);
  color: var(--paper-ink);
  padding: clamp(26px, 5vw, 64px);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 30px), calc(100% - 30px) 100%, 0 100%);
}

.paper p { max-width: 68ch; line-height: 1.7; }

.paper a { color: #0b4e63; text-decoration: underline; text-underline-offset: 3px; }

.paper h2,
.paper h3 { color: var(--paper-ink); letter-spacing: -0.01em; }

/* 斜切图像框（页面阶段放入 <img>） */
.frame {
  position: relative;
  overflow: hidden;
  background: linear-gradient(140deg, var(--graphite), var(--ink-deep));
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 26px), calc(100% - 26px) 100%, 0 100%);
}

.frame > img,
.frame > .frame__media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.45;
  background-image: repeating-linear-gradient(
    180deg,
    rgba(0, 229, 255, 0.08) 0 1px,
    transparent 1px 4px
  );
}

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

/* ---------- 5. 跳转链接与焦点 ---------- */
.skip-link {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 200;
  transform: translateY(-160%);
  padding: 12px 22px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--ink-deep);
  background: var(--cyan);
  clip-path: var(--cut-sm);
  transition: transform 0.18s ease;
}

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

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

/* ---------- 6. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.02em;
  white-space: nowrap;
  clip-path: var(--cut);
  transition: transform 0.18s ease, box-shadow 0.18s ease,
              background-color 0.18s ease, color 0.18s ease;
}

.btn--pulse {
  color: #04121a;
  background: linear-gradient(100deg, var(--cyan), #38b6ff 46%, var(--violet));
  box-shadow: 0 0 0 1px rgba(0, 229, 255, 0.35),
              0 10px 26px -14px rgba(0, 229, 255, 0.95);
}

.btn--pulse:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 0 1px rgba(0, 229, 255, 0.75),
              0 16px 32px -14px rgba(124, 77, 255, 0.95);
}

.btn--ghost {
  color: var(--cyan);
  background: transparent;
  box-shadow: inset 0 0 0 1px rgba(0, 229, 255, 0.5);
}

.btn--ghost:hover {
  color: var(--paper);
  background: rgba(0, 229, 255, 0.1);
}

/* ---------- 7. 头部 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(6, 9, 17, 0.86);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  backdrop-filter: blur(14px) saturate(150%);
  border-bottom: 1px solid var(--glass-line);
}

.scroll-progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 2px;
  width: 0;
  background: linear-gradient(90deg, var(--cyan), var(--violet) 55%, var(--lava));
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.7);
  transition: width 0.12s linear;
}

/* 上层信息带 */
.status-bar {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  background: linear-gradient(
    90deg,
    rgba(0, 229, 255, 0.1),
    rgba(124, 77, 255, 0.1) 58%,
    rgba(10, 14, 23, 0) 100%
  );
  border-bottom: 1px solid var(--hairline);
}

.status-bar__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 34px;
  padding-block: 5px;
}

.status-bar__brand {
  color: var(--cyan);
  font-weight: 600;
  white-space: nowrap;
}

.status-bar__list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  margin-left: auto;
}

.status-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--steel);
}

.pulse-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex: 0 0 auto;
}

.pulse-dot--cyan { background: var(--cyan); box-shadow: 0 0 8px var(--cyan); }
.pulse-dot--lava { background: var(--lava); box-shadow: 0 0 8px var(--lava); }
.pulse-dot--violet { background: var(--violet); box-shadow: 0 0 8px var(--violet); }

/* 下层栏目带 */
.nav-band__inner {
  display: flex;
  align-items: center;
  gap: 26px;
  min-height: 72px;
  padding-block: 10px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.brand__mark {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  background: linear-gradient(150deg, var(--cyan), var(--violet) 68%, var(--lava));
  clip-path: polygon(24% 0, 100% 0, 76% 100%, 0 100%);
  box-shadow: 0 0 20px -6px rgba(0, 229, 255, 0.85);
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand__name {
  font-size: 20px;
  font-weight: 900;
  font-style: italic;
  letter-spacing: -0.02em;
  color: var(--paper);
}

.brand__sub {
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.22em;
  color: var(--steel);
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.primary-nav__list {
  display: flex;
  align-items: center;
  gap: 2px;
}

.primary-nav__item { display: block; }

.primary-nav__link {
  position: relative;
  display: inline-block;
  padding: 10px 14px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--steel);
  transition: color 0.18s ease, background-color 0.18s ease;
}

.primary-nav__link::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 4px;
  height: 2px;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.22s ease, background-color 0.22s ease;
}

.primary-nav__link:hover {
  color: var(--paper);
  background: rgba(0, 229, 255, 0.07);
}

.primary-nav__link:hover::after { transform: scaleX(1); }

.primary-nav__link[aria-current="page"] { color: var(--cyan); }

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

.primary-nav__cta { margin-left: 14px; }

/* 移动端栏目按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  padding: 10px 16px;
  position: relative;
  z-index: 90;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--cyan);
  clip-path: var(--cut-sm);
  box-shadow: inset 0 0 0 1px rgba(0, 229, 255, 0.45);
  transition: background-color 0.18s ease, color 0.18s ease;
}

.nav-toggle:hover { background: rgba(0, 229, 255, 0.1); color: var(--paper); }

.nav-toggle__bars {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 18px;
}

.nav-toggle__bars i {
  display: block;
  height: 2px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:nth-child(2) { opacity: 0; }

.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* ---------- 8. 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(64px, 9vw, 120px);
  padding-bottom: 32px;
  color: var(--steel);
  background:
    radial-gradient(95% 120% at 100% 0%, rgba(124, 77, 255, 0.18), transparent 62%),
    radial-gradient(80% 100% at 0% 100%, rgba(0, 229, 255, 0.09), transparent 60%),
    linear-gradient(180deg, var(--ink) 0%, var(--ink-deep) 100%);
  border-top: 1px solid var(--glass-line);
}

.footer-rail {
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--cyan) 0%,
    var(--violet) 46%,
    var(--lava) 78%,
    transparent 100%
  );
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  opacity: 0.9;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) repeat(3, minmax(0, 1fr));
  gap: 48px 40px;
  padding-block: clamp(44px, 6vw, 72px) 44px;
}

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

.footer-brand__line {
  margin-top: 20px;
  max-width: 22ch;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.55;
  color: var(--paper);
}

.footer-meter {
  display: grid;
  gap: 8px;
  margin-top: 22px;
}

.footer-meter__item {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.04em;
}

.footer-meter__key {
  min-width: 68px;
  color: var(--steel);
}

.footer-meter__val {
  color: var(--cyan);
  font-weight: 600;
}

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

.footer-col__title {
  position: relative;
  padding-bottom: 12px;
  margin-bottom: 18px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--paper);
  border-bottom: 1px solid var(--hairline);
}

.footer-col__title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 34px;
  height: 2px;
  background: var(--violet);
}

.footer-col__list { display: grid; gap: 12px; }

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

.footer-col__link {
  position: relative;
  display: inline-block;
  font-size: 15px;
  color: var(--steel);
  transition: color 0.16s ease, padding-left 0.16s ease;
}

.footer-col__link::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.66em;
  width: 0;
  height: 1px;
  background: var(--cyan);
  transition: width 0.18s ease;
}

.footer-col__link:hover {
  color: var(--cyan);
  padding-left: 16px;
}

.footer-col__link:hover::before { width: 10px; }

.footer-col__chip {
  display: inline-block;
  padding: 5px 12px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--steel);
  background: rgba(27, 34, 51, 0.65);
  box-shadow: inset 0 0 0 1px rgba(154, 167, 199, 0.22);
  clip-path: var(--cut-sm);
}

.footer-contact {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(232px, 1fr));
  gap: 18px 40px;
  align-items: start;
  padding-top: 30px;
  border-top: 1px solid var(--hairline);
}

.footer-contact__label {
  grid-column: 1 / -1;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.22em;
  color: var(--violet);
}

.footer-contact__item {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
}

.footer-contact__item--wide { grid-column: 1 / -1; }

.footer-contact__key {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  color: var(--steel);
}

.footer-contact__val {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--paper);
}

.copy-chip {
  align-self: flex-start;
  max-width: 100%;
  padding: 8px 13px;
  font-family: var(--font-mono);
  font-size: 13.5px;
  text-align: left;
  overflow-wrap: anywhere;
  color: var(--paper);
  background: rgba(27, 34, 51, 0.72);
  box-shadow: inset 0 0 0 1px rgba(0, 229, 255, 0.28);
  clip-path: var(--cut-sm);
  transition: color 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease;
}

.copy-chip:hover {
  color: var(--cyan);
  background: rgba(0, 229, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(0, 229, 255, 0.7);
}

.copy-chip.is-copied {
  color: var(--mint);
  box-shadow: inset 0 0 0 1px rgba(77, 245, 192, 0.75);
}

.footer-contact__note {
  grid-column: 1 / -1;
  font-size: 13px;
  color: var(--steel);
}

.footer-base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 24px;
  margin-top: 38px;
  padding-top: 20px;
  border-top: 1px solid var(--hairline);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--steel);
}

.footer-base__copy { margin-right: auto; }

.footer-base__meta { color: var(--steel); }

.to-top {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--cyan);
  padding: 6px 0;
  transition: color 0.16s ease;
}

.to-top::before { content: "▲ "; }

.to-top:hover { color: var(--paper); }

/* ---------- 9. 面包屑 ---------- */
.breadcrumbs {
  padding-block: 22px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.08em;
  color: var(--steel);
}

.breadcrumbs__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

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

.breadcrumbs__item + .breadcrumbs__item::before {
  content: "/";
  color: rgba(154, 167, 199, 0.5);
}

.breadcrumbs__link {
  color: var(--steel);
  transition: color 0.16s ease;
}

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

.breadcrumbs__current { color: var(--paper); }

/* ---------- 10. 显现与工具类 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ---------- 11. 响应式 ---------- */
@media (max-width: 1100px) {
  .primary-nav__link { padding: 10px 10px; font-size: 14px; }
  .primary-nav__link::after { left: 10px; right: 10px; }
  .primary-nav__cta { margin-left: 8px; padding: 11px 16px; font-size: 14px; }
  .nav-band__inner { gap: 18px; }
}

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

@media (max-width: 900px) {
  :root { --header-h: 74px; }

  .status-bar__list { display: none; }
  .status-bar__inner { justify-content: center; }

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

  .primary-nav {
    position: fixed;
    inset: 0;
    z-index: 85;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin-left: 0;
    padding: 106px var(--gutter) 48px;
    overflow-y: auto;
    background:
      radial-gradient(120% 80% at 100% 0%, rgba(124, 77, 255, 0.3), transparent 60%),
      radial-gradient(90% 70% at 0% 100%, rgba(0, 229, 255, 0.18), transparent 62%),
      var(--ink-deep);
  }

  .primary-nav[data-open] { display: flex; }

  .primary-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
  }

  .primary-nav__item { width: 100%; }

  .primary-nav__link {
    position: relative;
    display: block;
    width: 100%;
    padding: 18px 12px;
    font-size: 26px;
    font-weight: 800;
    font-style: italic;
    letter-spacing: -0.01em;
    color: var(--paper);
    border-bottom: 1px solid var(--hairline);
  }

  .primary-nav__link::after { display: none; }

  .primary-nav__link:hover { background: rgba(0, 229, 255, 0.06); color: var(--cyan); }

  .primary-nav__link[aria-current="page"] {
    color: var(--cyan);
    padding-left: 26px;
  }

  .primary-nav__link[aria-current="page"]::before {
    content: "";
    position: absolute;
    left: 8px;
    top: 50%;
    width: 9px;
    height: 9px;
    background: var(--violet);
    transform: translateY(-50%) skewX(-14deg);
  }

  .primary-nav__cta {
    width: 100%;
    margin: 28px 0 0;
    padding: 16px 22px;
    font-size: 16px;
  }
}

@media (max-width: 620px) {
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-brand { grid-column: auto; }
  .footer-contact { grid-template-columns: minmax(0, 1fr); }
  .display { font-size: clamp(44px, 15vw, 84px); }
}

/* ---------- 12. 动效降级 ---------- */
@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;
  }

  .reveal { opacity: 1; transform: none; }
}
