/* ============================================================
   威客电竞 · 共享样式 /assets/site.css
   暗场数据台：深空底 + 网格层 + 浮岛导航 + 切角面板
   ============================================================ */

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

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

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

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

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

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

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

:where(h1, h2, h3) { text-wrap: balance; }

/* ---------- tokens ---------- */
:root {
  --deep: #050A14;
  --deep-2: #0B1424;
  --panel: #121F33;
  --steel: #2A3B55;
  --ice: #E8F6FF;
  --mist: #9FB3C8;
  --cyan: #6FE7FF;
  --orange: #FF8A2B;
  --win-a: #FF3D8B;
  --win-b: #B14CFF;
  --up: #1DE2A6;
  --down: #FF6B7A;

  --font-display: "Barlow Condensed", "Oswald", "Noto Sans SC", "PingFang SC", system-ui, sans-serif;
  --font-body: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --ease: cubic-bezier(.2, .7, .2, 1);
  --header-h: 76px;
  --pad: clamp(20px, 4vw, 64px);
  --radius-panel: 14px 3px 14px 3px;
  --radius-panel-alt: 3px 14px 3px 14px;
  --shadow-panel: 0 28px 60px -44px rgba(0, 0, 0, .95);
}

/* ---------- base ---------- */
body {
  min-height: 100vh;
  background-color: var(--deep);
  background-image:
    linear-gradient(rgba(42, 59, 85, .20) 1px, transparent 1px),
    linear-gradient(90deg, rgba(42, 59, 85, .20) 1px, transparent 1px);
  background-size: 64px 64px;
  background-position: center top;
  color: var(--ice);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.75;
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(760px 520px at 82% -10%, rgba(111, 231, 255, .11), transparent 70%),
    radial-gradient(620px 460px at 4% 10%, rgba(255, 138, 43, .08), transparent 72%),
    radial-gradient(520px 420px at 60% 108%, rgba(177, 76, 255, .07), transparent 74%);
}

main,
.site-header,
.site-footer {
  position: relative;
  z-index: 1;
}

::selection {
  background: var(--cyan);
  color: #04121a;
}

/* ---------- typography ---------- */
h1, .h1,
h2, .h2,
h3, .h3 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: .02em;
  line-height: 1.06;
  color: var(--ice);
}

h1, .h1 { font-size: clamp(32px, 5.2vw, 64px); }
h2, .h2 { font-size: clamp(26px, 3.4vw, 40px); }
h3, .h3 { font-size: clamp(20px, 2.2vw, 28px); line-height: 1.2; }

.mono,
.footer-contact__value--mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: .02em;
}

/* ---------- focus ---------- */
:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
  border-radius: 4px;
  box-shadow: 0 0 0 4px var(--deep);
}

/* ---------- skip link ---------- */
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 200;
  padding: 10px 18px;
  border-radius: 8px;
  background: var(--cyan);
  color: #04121a;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  transform: translateY(-180%);
  transition: transform .18s var(--ease);
}

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

/* ---------- layout ---------- */
.container {
  width: 100%;
  max-width: 1440px;
  margin-inline: auto;
  padding-inline: var(--pad);
}

.section {
  padding-block: clamp(32px, 5vw, 64px);
}

.section--tight {
  padding-block: clamp(20px, 3vw, 36px);
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: clamp(18px, 2.4vw, 28px);
}

.divider {
  height: 1px;
  border: 0;
  background: linear-gradient(90deg, var(--steel), transparent);
}

/* ---------- grid ---------- */
.grid {
  display: grid;
  gap: clamp(14px, 1.8vw, 24px);
}

.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--auto { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

@media (max-width: 760px) {
  .grid--2,
  .grid--3 { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- tags ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border: 1px solid var(--steel);
  border-radius: 4px;
  background: rgba(18, 31, 51, .72);
  color: var(--mist);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  line-height: 1.6;
}

.tag--cyan {
  color: var(--cyan);
  border-color: rgba(111, 231, 255, .42);
  background: rgba(111, 231, 255, .08);
}

.tag--orange {
  color: var(--orange);
  border-color: rgba(255, 138, 43, .44);
  background: rgba(255, 138, 43, .09);
}

.tag--up {
  color: var(--up);
  border-color: rgba(29, 226, 166, .42);
  background: rgba(29, 226, 166, .08);
}

.tag--down {
  color: var(--down);
  border-color: rgba(255, 107, 122, .42);
  background: rgba(255, 107, 122, .08);
}

/* ---------- eyebrow ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .24em;
  text-transform: uppercase;
  line-height: 1.4;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: linear-gradient(90deg, var(--cyan), transparent);
}

/* ---------- panels ---------- */
.panel {
  position: relative;
  background: linear-gradient(180deg, rgba(18, 31, 51, .94), rgba(11, 20, 36, .94));
  border: 1px solid var(--steel);
  border-radius: var(--radius-panel);
  padding: clamp(18px, 2.4vw, 28px);
  box-shadow: var(--shadow-panel);
}

.panel--flux {
  border-radius: var(--radius-panel-alt);
}

.panel--overhang {
  margin-right: calc(-1 * clamp(0px, 2vw, 24px));
}

@media (max-width: 760px) {
  .panel--overhang { margin-right: 0; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .04em;
  white-space: nowrap;
  transition: background-color .18s var(--ease), border-color .18s var(--ease),
              color .18s var(--ease), transform .18s var(--ease);
}

.btn--primary {
  background: linear-gradient(135deg, var(--orange), #ff6a1f);
  color: #200c00;
  box-shadow: 0 12px 28px -16px rgba(255, 138, 43, .95);
}

.btn--primary:hover {
  background: linear-gradient(135deg, #ffa155, var(--orange));
  transform: translateY(-1px);
}

.btn--ghost {
  border-color: var(--steel);
  background: rgba(18, 31, 51, .6);
  color: var(--ice);
}

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

.btn--sm {
  min-height: 38px;
  padding: 0 16px;
  font-size: 13px;
}

/* ---------- breadcrumb ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--mist);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .1em;
}

.breadcrumb li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.breadcrumb li + li::before {
  content: "/";
  color: var(--steel);
}

.breadcrumb a {
  color: var(--mist);
  transition: color .18s var(--ease);
}

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

.breadcrumb [aria-current="page"] { color: var(--ice); }

/* ---------- prose ---------- */
.prose {
  max-width: 68ch;
  font-size: 16px;
  line-height: 1.85;
  color: #cfdfee;
}

.prose > * + * { margin-top: 1.1em; }

.prose h2,
.prose h3 {
  margin-top: 1.6em;
  color: var(--ice);
}

.prose a {
  color: var(--cyan);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

.prose ul {
  display: grid;
  gap: .5em;
}

.prose ul li {
  position: relative;
  padding-left: 18px;
}

.prose ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .82em;
  width: 5px;
  height: 5px;
  border-radius: 1px;
  background: var(--cyan);
  transform: rotate(45deg);
}

/* ---------- media frame（图片占位容器） ---------- */
.media-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 1px solid var(--steel);
  border-radius: var(--radius-panel);
  background:
    linear-gradient(135deg, rgba(111, 231, 255, .10), transparent 44%),
    repeating-linear-gradient(0deg, rgba(42, 59, 85, .55) 0 1px, transparent 1px 30px),
    repeating-linear-gradient(90deg, rgba(42, 59, 85, .55) 0 1px, transparent 1px 30px),
    var(--panel);
}

.media-frame img,
.media-frame picture,
.media-frame video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-frame--wide { aspect-ratio: 21 / 9; }
.media-frame--square { aspect-ratio: 1 / 1; }
.media-frame--portrait { aspect-ratio: 3 / 4; }

/* ---------- trend numbers ---------- */
.trend {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.trend--up { color: var(--up); }
.trend--down { color: var(--down); }

/* ---------- reveal（页面阶段加 data-reveal 即可） ---------- */
.has-reveal [data-reveal] {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .32s var(--ease), transform .32s var(--ease);
}

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

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  padding-block: 12px;
  background: linear-gradient(180deg, rgba(5, 10, 20, .96), rgba(5, 10, 20, .82) 62%, rgba(5, 10, 20, .35));
  border-bottom: 1px solid rgba(42, 59, 85, .62);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.site-header__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

/* brand */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 8px 18px 8px 10px;
  border: 1px solid var(--steel);
  border-radius: 999px;
  background: var(--deep-2);
  transition: border-color .18s var(--ease), transform .18s var(--ease);
}

.brand:hover {
  border-color: var(--cyan);
  transform: translateY(-1px);
}

.brand__mark {
  position: relative;
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 10px 2px 10px 2px;
  background: linear-gradient(140deg, var(--cyan) 0%, #3aa9c9 46%, var(--orange) 100%);
  box-shadow: inset 0 0 0 1px rgba(232, 246, 255, .28);
}

.brand__mark::after {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 3px 1px 3px 1px;
  background: var(--deep-2);
}

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

.brand__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 19px;
  letter-spacing: .09em;
  color: var(--ice);
}

.brand__line {
  font-size: 10.5px;
  letter-spacing: .14em;
  color: var(--mist);
  white-space: nowrap;
}

/* toggle */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--steel);
  border-radius: 999px;
  background: var(--deep-2);
  color: var(--ice);
  font-size: 13px;
  letter-spacing: .1em;
  transition: border-color .18s var(--ease), color .18s var(--ease);
}

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

.nav-toggle__bars {
  display: grid;
  gap: 3px;
  width: 16px;
}

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

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

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

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

/* nav island */
.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px;
  border: 1px solid var(--steel);
  border-radius: 999px;
  background: rgba(11, 20, 36, .94);
  box-shadow: 0 22px 46px -30px rgba(0, 0, 0, .95);
}

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

.site-nav__item {
  display: flex;
}

.site-nav__link {
  display: inline-flex;
  align-items: center;
  height: 38px;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--mist);
  font-size: 14px;
  letter-spacing: .02em;
  transition: color .18s var(--ease), background-color .18s var(--ease);
}

.site-nav__link:hover {
  color: var(--ice);
  background: rgba(111, 231, 255, .10);
}

.site-nav__link[aria-current="page"] {
  background: var(--cyan);
  color: #04121a;
  font-weight: 600;
  box-shadow: 0 0 0 1px rgba(111, 231, 255, .5), 0 0 20px -6px rgba(111, 231, 255, .8);
}

.site-nav__cta {
  margin-left: 6px;
}

/* scroll progress */
.scroll-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  overflow: hidden;
  pointer-events: none;
}

.scroll-progress::after {
  content: "";
  display: block;
  width: var(--scroll-progress, 0%);
  height: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--win-b) 55%, var(--orange));
  transition: width .12s linear;
}

/* ---------- header responsive ---------- */
@media (max-width: 1080px) {
  .nav-toggle { display: inline-flex; }

  .site-nav {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 14px;
    border-radius: 18px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity .22s var(--ease), transform .22s var(--ease), visibility .22s var(--ease);
  }

  .site-nav[data-open="true"] {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .site-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }

  .site-nav__item {
    display: block;
  }

  .site-nav__link {
    height: auto;
    min-height: 46px;
    padding: 0 16px;
    border-radius: 12px;
    background: rgba(18, 31, 51, .66);
    font-size: 15px;
    color: var(--ice);
  }

  .site-nav__cta {
    margin-left: 0;
    width: 100%;
    min-height: 46px;
  }
}

@media (max-width: 480px) {
  .brand { padding-right: 14px; }
  .brand__line { display: none; }
  .brand__name { font-size: 17px; }
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  position: relative;
  margin-top: clamp(64px, 9vw, 128px);
  background: linear-gradient(180deg, rgba(11, 20, 36, .55), var(--deep-2) 26%);
  border-top: 1px solid var(--steel);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: min(360px, 54%);
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--win-b) 58%, var(--orange));
}

.site-footer__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
  gap: clamp(28px, 5vw, 80px);
  padding-block: clamp(40px, 6vw, 72px) clamp(30px, 4vw, 48px);
}

.footer-brand__line {
  max-width: 34ch;
  margin-top: 18px;
  color: var(--mist);
  font-size: 14px;
  line-height: 1.8;
}

.footer-brand__tag {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.brand--footer {
  background: rgba(18, 31, 51, .8);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 4vw, 40px);
}

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

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

.footer-link {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  color: var(--mist);
  font-size: 14px;
  transition: color .18s var(--ease), padding-left .18s var(--ease);
}

.footer-link:hover {
  color: var(--ice);
  padding-left: 6px;
}

.footer-contact {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px clamp(20px, 3vw, 40px);
  padding-block: clamp(24px, 3vw, 36px);
  border-top: 1px solid var(--steel);
}

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

.footer-contact__label {
  color: var(--mist);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  line-height: 1.5;
}

.footer-contact__value {
  color: var(--ice);
  font-size: 14px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.footer-note {
  padding-block: 18px;
  border-top: 1px solid var(--steel);
  color: var(--mist);
  font-size: 12.5px;
  line-height: 1.7;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 22px;
  padding-block: 18px 30px;
  border-top: 1px solid var(--steel);
  color: var(--mist);
  font-size: 12.5px;
}

.footer-copy {
  letter-spacing: .02em;
}

.footer-icp {
  font-family: var(--font-mono);
  letter-spacing: .04em;
}

.footer-bottom__spacer {
  flex: 1 1 auto;
}

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

.footer-bottom__links a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  color: var(--mist);
  transition: color .18s var(--ease);
}

.footer-bottom__links a:hover {
  color: var(--cyan);
}

@media (max-width: 860px) {
  .site-footer__inner {
    grid-template-columns: minmax(0, 1fr);
  }
}

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

@media (max-width: 380px) {
  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

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

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

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

  .scroll-progress::after {
    transition: none;
  }
}
