/* ============================================================
   雷霆体育 / 共享站点样式 assets/site.css
   轨道导航 + Bento 情报板 + 矿物/电光双色体系
   ============================================================ */

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

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

body, h1, h2, h3, h4, h5, p, ul, ol, figure, blockquote, dl, dd, address {
  margin: 0;
}

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

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

a { color: inherit; }

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

/* ---------------------------------------------------------
   2. Tokens
   --------------------------------------------------------- */
:root {
  --blue: #0057FF;
  --blue-deep: #0040BF;
  --ink: #090D1A;
  --ink-2: #111A2E;
  --ink-soft: #2A3550;
  --white: #F5F8FF;
  --orange: #FF5A1F;
  --lime: #D7FF3F;
  --rock: #B9C2CC;
  --cream: #F4EFE6;
  --moss: #3E6B57;
  --clay: #B85C3E;
  --blue-soft: #DCE8FF;

  --rail-w: 264px;
  --header-h: 62px;
  --shell-max: 1180px;

  --r-xl: 28px;
  --r-lg: 20px;
  --r-md: 14px;
  --r-pill: 999px;

  --font-body: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --font-serif: "Songti SC", "Source Han Serif SC", "Noto Serif CJK SC", Georgia, serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Mono", Consolas, "Liberation Mono", monospace;

  --shadow-card: 0 18px 40px -28px rgba(9, 13, 26, .55);
}

/* ---------------------------------------------------------
   3. Base typography
   --------------------------------------------------------- */
body {
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.78;
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 1.14;
  letter-spacing: -.035em;
  font-stretch: condensed;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.55rem, 3vw, 2.3rem); }
h3 { font-size: clamp(1.15rem, 1.8vw, 1.5rem); }
h4 { font-size: 1rem; letter-spacing: -.01em; }

p { text-wrap: pretty; }

.lead {
  font-size: 1.06rem;
  line-height: 1.85;
  color: var(--ink-soft);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--blue);
}

.eyebrow::before {
  content: "";
  width: 18px;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--blue), var(--lime));
}

:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------------------------------------------------------
   4. Layout utilities
   --------------------------------------------------------- */
.shell {
  width: 100%;
  max-width: var(--shell-max);
  margin-inline: auto;
  padding-inline: 20px;
}

.prose { max-width: 44em; }
.prose p + p { margin-top: 1em; }

.grid {
  display: grid;
  gap: 16px;
}

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

.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: .78rem;
  letter-spacing: .04em;
  color: #5B6675;
}

.crumbs a {
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.crumbs a:hover { border-bottom-color: var(--blue); color: var(--blue); }

.crumbs__sep { color: var(--rock); }

/* ---------------------------------------------------------
   5. Buttons / tags / panels
   --------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  font-size: .94rem;
  font-weight: 800;
  letter-spacing: .02em;
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s ease, background-color .18s ease,
              color .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.btn:hover { transform: translateY(-2px); }

.btn--primary {
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 14px 28px -16px rgba(0, 87, 255, .95);
}

.btn--lime { background: var(--lime); color: var(--ink); }
.btn--orange { background: var(--orange); color: var(--ink); }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: rgba(9, 13, 26, .22);
}

.btn--ghost-light {
  background: transparent;
  color: var(--white);
  border-color: rgba(245, 248, 255, .32);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--r-pill);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .06em;
  background: rgba(9, 13, 26, .06);
  color: var(--ink);
  white-space: nowrap;
}

.tag--lime { background: var(--lime); color: var(--ink); }
.tag--blue { background: var(--blue); color: var(--white); }
.tag--orange { background: var(--orange); color: var(--ink); }

.panel {
  background: var(--white);
  border: 1px solid rgba(9, 13, 26, .09);
  border-radius: var(--r-lg);
  padding: 24px;
  box-shadow: var(--shadow-card);
}

.panel--ink {
  background: var(--ink);
  color: var(--white);
  border-color: transparent;
}

/* ---------------------------------------------------------
   6. Media containers (页面阶段放图)
   --------------------------------------------------------- */
.media {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-lg);
  background:
    linear-gradient(135deg, var(--ink) 0%, #16224A 56%, var(--blue) 100%);
  isolation: isolate;
}

.media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    115deg,
    rgba(245, 248, 255, .09) 0 2px,
    transparent 2px 17px
  );
  pointer-events: none;
}

.media__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media--wide { aspect-ratio: 16 / 9; }
.media--square { aspect-ratio: 1 / 1; }
.media--tall { aspect-ratio: 3 / 4; }

/* ---------------------------------------------------------
   7. Skip link
   --------------------------------------------------------- */
.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 300;
  padding: 10px 18px;
  border-radius: var(--r-pill);
  background: var(--lime);
  color: var(--ink);
  font-size: .85rem;
  font-weight: 800;
  text-decoration: none;
  transform: translateY(-200%);
  transition: transform .2s ease;
}

.skip-link:focus-visible { transform: none; }

/* ---------------------------------------------------------
   8. Header / 侧边轨道导航（移动优先）
   --------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: var(--ink);
  color: var(--white);
}

.rail {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: var(--header-h);
  padding: 0 16px;
  background: var(--ink);
}

.rail::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    115deg,
    rgba(245, 248, 255, .045) 0 1px,
    transparent 1px 24px
  );
}

.rail__head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
}

/* 品牌标记 ---------- */
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--white);
}

.brand__mark {
  position: relative;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  overflow: hidden;
  background: linear-gradient(115deg,
    transparent 40%, var(--lime) 40% 55%, transparent 55%) ,
    linear-gradient(115deg,
    transparent 62%, var(--orange) 62% 76%, transparent 76%),
    var(--blue);
  box-shadow: 0 0 0 1px rgba(215, 255, 63, .35) inset;
}

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

.brand__name {
  font-size: 1.04rem;
  font-weight: 900;
  letter-spacing: .02em;
}

.brand__tag {
  font-family: var(--font-mono);
  font-size: .56rem;
  letter-spacing: .22em;
  color: var(--rock);
}

/* 抽屉按钮 ---------- */
.nav-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 15px;
  border: 1px solid rgba(245, 248, 255, .24);
  border-radius: var(--r-pill);
  color: var(--white);
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .08em;
  cursor: pointer;
  transition: border-color .18s ease, background-color .18s ease;
}

.nav-toggle:hover { border-color: var(--lime); background: rgba(245, 248, 255, .06); }

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

.nav-toggle__bars span {
  height: 2px;
  border-radius: 2px;
  background: var(--lime);
  transition: transform .24s ease, opacity .18s ease;
}

.site-header[data-open="true"] .nav-toggle__bars span:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
}

.site-header[data-open="true"] .nav-toggle__bars span:nth-child(2) { opacity: 0; }

.site-header[data-open="true"] .nav-toggle__bars span:nth-child(3) {
  transform: translateY(-5px) rotate(-45deg);
}

.nav-toggle__label { display: inline-block; }

/* 抽屉主体 ---------- */
.rail__body {
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 22px 18px 36px;
  overflow-y: auto;
  background: var(--ink);
  border-top: 1px solid rgba(245, 248, 255, .1);
  visibility: hidden;
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
  transition: opacity .22s ease, transform .22s ease, visibility .22s ease;
}

.site-header[data-open="true"] .rail__body {
  visibility: visible;
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

@media (max-width: 1023px) {
  body.is-nav-open { overflow: hidden; }
}

.rail__status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .74rem;
  letter-spacing: .05em;
  color: var(--rock);
}

.pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 0 rgba(215, 255, 63, .65);
  animation: pulse 2.6s ease-out infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(215, 255, 63, .6); }
  70% { box-shadow: 0 0 0 9px rgba(215, 255, 63, 0); }
  100% { box-shadow: 0 0 0 0 rgba(215, 255, 63, 0); }
}

.rail__nav { display: block; }

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

.nav-list__item { display: block; }

.nav-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 14px;
  border-radius: 12px;
  color: rgba(245, 248, 255, .72);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .02em;
  text-decoration: none;
  transition: background-color .18s ease, color .18s ease;
}

.nav-link::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 3px;
  height: 0;
  border-radius: 3px;
  background: var(--lime);
  transform: translateY(-50%);
  transition: height .2s ease;
}

.nav-link:hover {
  color: var(--white);
  background: rgba(245, 248, 255, .07);
}

.nav-link[aria-current="page"] {
  color: var(--white);
  background: linear-gradient(90deg,
    rgba(0, 87, 255, .92) 0%,
    rgba(0, 87, 255, .24) 62%,
    rgba(0, 87, 255, 0) 100%);
}

.nav-link[aria-current="page"]::before { height: 20px; }

.nav-link__num {
  font-family: var(--font-mono);
  font-size: .66rem;
  font-weight: 500;
  letter-spacing: .08em;
  color: var(--rock);
  opacity: .8;
}

.nav-link[aria-current="page"] .nav-link__num { color: var(--lime); opacity: 1; }

/* 快速入口 ---------- */
.rail__boost {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}

.rail__boost-title {
  margin: 0 0 2px;
  font-family: var(--font-mono);
  font-size: .64rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--rock);
}

.boost-card {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 13px 16px;
  border-radius: 16px;
  text-decoration: none;
  font-weight: 800;
  transition: transform .18s ease, box-shadow .18s ease;
}

.boost-card:hover { transform: translateX(3px); }

.boost-card__kicker {
  font-family: var(--font-mono);
  font-size: .6rem;
  letter-spacing: .18em;
  opacity: .74;
}

.boost-card__label { font-size: .98rem; letter-spacing: .01em; }

.boost-card--blue {
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 14px 28px -18px rgba(0, 87, 255, 1);
}

.boost-card--orange {
  background: var(--orange);
  color: var(--ink);
  box-shadow: 0 14px 28px -18px rgba(255, 90, 31, 1);
}

/* 滚动进度 ---------- */
.rail__progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  height: 3px;
  overflow: hidden;
  background: rgba(245, 248, 255, .1);
}

.rail__progress span {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--blue) 0%, var(--lime) 100%);
}

/* ---------------------------------------------------------
   9. 桌面端：固定侧边轨道
   --------------------------------------------------------- */
@media (min-width: 1024px) {
  body { padding-left: var(--rail-w); }

  .site-header {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: var(--rail-w);
    height: 100dvh;
    border-right: 1px solid rgba(245, 248, 255, .12);
  }

  .rail {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    height: 100%;
    min-height: 0;
    padding: 24px 18px 26px;
    gap: 22px;
  }

  .rail__head {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .nav-toggle { display: none; }

  .rail__body {
    position: static;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 22px;
    padding: 0;
    overflow: visible;
    background: transparent;
    border: 0;
    visibility: visible;
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }

  .brand__mark { width: 38px; height: 38px; }
  .brand__name { font-size: 1.12rem; }

  .nav-link { padding: 11px 14px; font-size: .95rem; }

  .rail__boost { margin-top: auto; }
}

/* ---------------------------------------------------------
   10. Footer
   --------------------------------------------------------- */
.site-footer {
  position: relative;
  overflow: hidden;
  padding: 56px 0 0;
  background: var(--ink);
  color: var(--white);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg,
    var(--blue) 0 46%,
    var(--orange) 46% 82%,
    var(--lime) 82% 100%);
}

.site-footer::after {
  content: "";
  position: absolute;
  top: 10%;
  right: -12%;
  width: 52vw;
  height: 52vw;
  max-width: 520px;
  max-height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, rgba(0, 87, 255, .48), transparent 68%);
  pointer-events: none;
}

.footer-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 34px;
  width: 100%;
  max-width: var(--shell-max);
  margin-inline: auto;
  padding: 0 20px 44px;
}

.footer-lead {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-kicker {
  font-family: var(--font-mono);
  font-size: .64rem;
  letter-spacing: .24em;
  color: var(--lime);
}

.footer-wordmark {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 5vw, 2.7rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -.05em;
  color: var(--white);
}

.footer-summary {
  max-width: 34ch;
  font-size: .9rem;
  line-height: 1.85;
  color: rgba(245, 248, 255, .66);
}

.footer-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

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

.footer-col__title {
  margin: 0 0 12px;
  font-family: var(--font-mono);
  font-size: .64rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--rock);
}

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

.footer-links a {
  display: inline-block;
  font-size: .9rem;
  color: rgba(245, 248, 255, .78);
  text-decoration: none;
  transition: color .16s ease, transform .16s ease;
}

.footer-links a:hover {
  color: var(--lime);
  transform: translateX(2px);
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-contact__row {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-left: 12px;
  border-left: 2px solid rgba(215, 255, 63, .55);
}

.footer-contact__label {
  font-family: var(--font-mono);
  font-size: .6rem;
  letter-spacing: .18em;
  color: var(--rock);
}

.footer-contact__value {
  font-size: .9rem;
  line-height: 1.6;
  color: var(--white);
  word-break: break-word;
}

.footer-note {
  font-size: .75rem;
  line-height: 1.72;
  color: rgba(245, 248, 255, .5);
}

.footer-bar {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 20px;
  width: 100%;
  max-width: var(--shell-max);
  margin-inline: auto;
  padding: 18px 20px 28px;
  border-top: 1px solid rgba(245, 248, 255, .13);
  font-size: .75rem;
  color: rgba(245, 248, 255, .55);
}

.footer-bar__icp,
.footer-bar__copy {
  font-family: var(--font-mono);
  letter-spacing: .05em;
}

@media (min-width: 760px) {
  .footer-shell {
    grid-template-columns: 1fr 1fr;
    gap: 36px 40px;
  }

  .footer-lead { grid-column: 1 / -1; }
}

@media (min-width: 1080px) {
  .footer-shell {
    grid-template-columns: 1.4fr .95fr 1fr;
    padding: 0 32px 52px;
  }

  .footer-lead { grid-column: auto; }

  .footer-bar { padding: 18px 32px 30px; }
}

/* ---------------------------------------------------------
   11. 通用断点微调
   --------------------------------------------------------- */
@media (min-width: 768px) {
  .shell { padding-inline: 28px; }
  .grid { gap: 20px; }
}

@media (min-width: 1024px) {
  .shell { padding-inline: 34px; }
}

/* ---------------------------------------------------------
   12. 滚动显现
   --------------------------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .55s ease, transform .55s ease;
  will-change: opacity, transform;
}

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

/* ---------------------------------------------------------
   13. 降级
   --------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }

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

  .pulse { animation: none; box-shadow: 0 0 0 3px rgba(215, 255, 63, .35); }

  .btn:hover,
  .boost-card:hover,
  .footer-links a:hover { transform: none; }
}
