/* 聊球新站 /assets/site.css —— 共享样式 */
/* ---------- Reset & tokens ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --nb: #0A1F44;
  --nb-2: #0d2a50;
  --neon: #39FF14;
  --orange: #FF6B35;
  --purple: #7B2FFF;
  --space: #1E2A38;
  --white: #F8FAFC;
  --gray: #CBD5E1;
  --green-dark: #0F2A1D;

  --font-title: Oswald, Impact, "Arial Narrow", sans-serif;
  --font-body: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", sans-serif;
  --font-mono: "Roboto Mono", "SFMono-Regular", Consolas, "Menlo", monospace;

  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 14px 44px rgba(0, 0, 0, .38);
  --glow-neon: 0 0 18px rgba(57, 255, 20, .38);
  --glow-orange: 0 0 16px rgba(255, 107, 53, .34);

  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 28px;
  --space-lg: 48px;
  --space-xl: 72px;

  --header-bar-h: 46px;
  --content-max: 1220px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --section-y: clamp(56px, 8vw, 84px);
}

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

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  color: var(--white);
  background: var(--nb);
  min-height: 100vh;
  overflow-x: hidden;
}

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

a {
  color: var(--neon);
  text-decoration: none;
  transition: color .2s ease;
}

a:hover {
  color: var(--white);
}

ul,
ol {
  list-style: none;
}

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

/* ---------- Focus & accessibility ---------- */
:focus-visible {
  outline: 3px solid var(--neon);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 3000;
  padding: 10px 20px;
  background: var(--neon);
  color: var(--nb);
  font-size: 14px;
  font-weight: 700;
  border-radius: var(--radius-sm);
  box-shadow: var(--glow-neon);
  transform: translateY(-220%);
  transition: transform .25s ease;
}

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

/* ---------- Scroll progress ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(57, 255, 20, .1);
  z-index: 1500;
  pointer-events: none;
}

.scroll-progress span {
  display: block;
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, var(--neon), var(--orange));
  transform: scaleX(0);
  transform-origin: left center;
  box-shadow: 0 0 12px rgba(57, 255, 20, .55);
}

/* ---------- Page header ---------- */
.site-header {
  position: relative;
  z-index: 60;
}

.brand-bar {
  background: linear-gradient(180deg, #0d2b52 0%, var(--nb) 100%);
  border-bottom: 1px solid rgba(57, 255, 20, .32);
  box-shadow: 0 1px 12px rgba(0, 0, 0, .25);
}

.brand-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: var(--header-bar-h);
}

.brand-bar__name {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .05em;
  color: var(--white);
  white-space: nowrap;
}

.brand-bar__name::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--neon);
  box-shadow: var(--glow-neon);
}

.season-badge {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--orange);
  border: 1px solid rgba(255, 107, 53, .55);
  background: rgba(255, 107, 53, .12);
  padding: 3px 12px;
  border-radius: 999px;
  white-space: nowrap;
}

.season-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--neon);
  box-shadow: var(--glow-neon);
  margin-right: 6px;
}

/* ---------- FAB navigation ---------- */
.fab-nav {
  position: fixed;
  right: 26px;
  bottom: 26px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.fab-panel {
  position: absolute;
  right: 0;
  bottom: calc(100% + 14px);
  width: min(300px, calc(100vw - 52px));
  padding: 16px 14px 14px;
  border-radius: 22px;
  background: rgba(13, 42, 80, .86);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(57, 255, 20, .35);
  box-shadow: var(--shadow), 0 0 32px rgba(57, 255, 20, .07);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px) scale(.96);
  transform-origin: bottom right;
  transition: opacity .3s ease, transform .32s var(--ease), visibility .3s ease;
}

.fab-panel[data-open] {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.fab-menu {
  display: grid;
  gap: 4px;
}

.fab-menu__link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid transparent;
  color: var(--white);
  font-size: 15px;
  font-weight: 600;
  transition: background .2s ease, border-color .2s ease, color .2s ease, padding-left .2s ease;
}

.fab-menu__link::before {
  content: attr(data-index);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1;
  color: var(--neon);
  opacity: .75;
  min-width: 18px;
}

.fab-menu__link:hover {
  background: rgba(57, 255, 20, .1);
  border-color: rgba(57, 255, 20, .28);
  color: var(--neon);
  padding-left: 16px;
}

.fab-menu__link[aria-current="page"] {
  background: rgba(57, 255, 20, .1);
  border-color: rgba(57, 255, 20, .42);
  color: var(--neon);
  box-shadow: inset 3px 0 0 var(--neon);
}

.fab-panel__meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(203, 213, 225, .16);
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(203, 213, 225, .7);
  letter-spacing: .04em;
}

.fab {
  position: relative;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--nb);
  border: 2px solid var(--neon);
  box-shadow: var(--glow-neon), var(--shadow);
  transition: transform .3s var(--ease), box-shadow .3s ease, border-color .3s ease;
}

.fab:hover {
  transform: scale(1.07);
  box-shadow: 0 0 28px rgba(57, 255, 20, .55), var(--shadow);
}

.fab:active {
  transform: scale(.98);
}

.fab__icon {
  position: relative;
  display: block;
  width: 22px;
  height: 14px;
}

.fab__line {
  position: absolute;
  left: 0;
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--neon);
  transition: transform .3s var(--ease), top .3s var(--ease), opacity .2s ease;
}

.fab__line--top {
  top: 0;
}

.fab__line--mid {
  top: 6px;
}

.fab__line--bot {
  top: 12px;
}

.fab[aria-expanded="true"] {
  border-color: var(--orange);
  box-shadow: var(--glow-orange), var(--shadow);
}

.fab[aria-expanded="true"] .fab__line--top {
  top: 6px;
  transform: rotate(45deg);
}

.fab[aria-expanded="true"] .fab__line--mid {
  opacity: 0;
}

.fab[aria-expanded="true"] .fab__line--bot {
  top: 6px;
  transform: rotate(-45deg);
}

@media (max-width: 640px) {
  .fab-nav {
    right: 16px;
    bottom: 16px;
  }

  .fab-panel {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 96px;
    width: auto;
    max-height: calc(100vh - 128px);
    overflow-y: auto;
  }
}

/* ---------- Container & layout utilities ---------- */
.container {
  width: 100%;
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: 24px;
}

.section {
  padding-block: var(--section-y);
}

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

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

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

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

.page-content {
  max-width: var(--content-max);
  margin-inline: auto;
  padding: clamp(36px, 6vw, 64px) 24px clamp(56px, 8vw, 96px);
}

.divider {
  height: 1px;
  background: linear-gradient(90deg, rgba(57, 255, 20, .5), rgba(57, 255, 20, .04) 60%, transparent);
  border: 0;
}

/* ---------- Editorial typography ---------- */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--neon);
}

.kicker::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--neon);
  box-shadow: var(--glow-neon);
}

.section-index {
  display: block;
  font-family: var(--font-title);
  font-size: clamp(56px, 9vw, 104px);
  font-weight: 600;
  line-height: .9;
  letter-spacing: .01em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(57, 255, 20, .55);
}

.section-title {
  font-family: var(--font-title);
  font-size: clamp(28px, 4.6vw, 48px);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: var(--white);
  margin-top: var(--space-sm);
}

.edit-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2.6fr);
  gap: clamp(20px, 4vw, 48px);
  align-items: start;
}

.edit-col--note {
  font-size: 14px;
  line-height: 1.85;
  color: var(--gray);
  padding-left: var(--space-sm);
  border-left: 2px solid var(--purple);
}

.edit-col--note p + p {
  margin-top: 12px;
}

@media (max-width: 820px) {
  .edit-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .edit-col--note {
    border-left: 0;
    border-top: 2px solid var(--purple);
    padding-left: 0;
    padding-top: 12px;
  }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 24px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s ease,
    background .25s ease, color .25s ease, border-color .25s ease;
}

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

.btn:active {
  transform: translateY(0);
}

.btn--primary {
  background: var(--neon);
  color: var(--nb);
}

.btn--primary:hover {
  color: var(--nb);
  box-shadow: var(--glow-neon);
}

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

.btn--orange:hover {
  color: var(--nb);
  box-shadow: var(--glow-orange);
}

.btn--ghost {
  border-color: rgba(57, 255, 20, .5);
  color: var(--neon);
  background: transparent;
}

.btn--ghost:hover {
  background: rgba(57, 255, 20, .1);
  color: var(--neon);
}

/* ---------- Tags ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: .04em;
  white-space: nowrap;
}

.tag--neon {
  background: rgba(57, 255, 20, .12);
  border: 1px solid rgba(57, 255, 20, .4);
  color: var(--neon);
}

.tag--orange {
  background: rgba(255, 107, 53, .12);
  border: 1px solid rgba(255, 107, 53, .42);
  color: var(--orange);
}

.tag--purple {
  background: rgba(123, 47, 255, .16);
  border: 1px solid rgba(123, 47, 255, .45);
  color: #c9a8ff;
}

/* ---------- Cards ---------- */
.card {
  background: var(--space);
  border: 1px solid rgba(203, 213, 225, .14);
  border-radius: var(--radius);
  padding: 24px;
  transition: border-color .3s ease, transform .35s var(--ease), box-shadow .3s ease;
}

.card:hover {
  border-color: rgba(57, 255, 20, .35);
  transform: translateY(-4px);
}

.card--glass {
  background: rgba(14, 42, 80, .58);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-color: rgba(57, 255, 20, .18);
}

.card--glow {
  border-color: rgba(57, 255, 20, .2);
  box-shadow: inset 0 0 0 1px rgba(57, 255, 20, .04), var(--shadow);
}

.card__title {
  font-family: var(--font-title);
  font-size: 20px;
  line-height: 1.3;
  margin-bottom: 8px;
  color: var(--white);
}

.card__text {
  font-size: 14px;
  color: var(--gray);
  line-height: 1.7;
}

/* ---------- Media frames ---------- */
.media-frame {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(135deg, rgba(30, 42, 56, .7), rgba(10, 31, 68, .95));
  border: 1px solid rgba(203, 213, 225, .14);
}

.media-frame--16x9 {
  aspect-ratio: 16 / 9;
}

.media-frame--4x3 {
  aspect-ratio: 4 / 3;
}

.media-frame--1x1 {
  aspect-ratio: 1 / 1;
}

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

.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, transparent 42%, rgba(57, 255, 20, .06));
  mix-blend-mode: screen;
  pointer-events: none;
}

.media-placeholder {
  display: grid;
  place-items: center;
  min-height: 180px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .1em;
  color: rgba(203, 213, 225, .6);
}

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
  font-size: 13px;
  color: rgba(203, 213, 225, .7);
}

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

.breadcrumb li + li::before {
  content: "/";
  font-family: var(--font-mono);
  color: rgba(203, 213, 225, .4);
}

.breadcrumb a {
  color: rgba(203, 213, 225, .85);
}

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

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

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  background: var(--green-dark);
  border-top: 1px solid rgba(57, 255, 20, .28);
}

.site-footer::before {
  content: "";
  display: block;
  height: 3px;
  background: linear-gradient(90deg, var(--neon) 0%, rgba(57, 255, 20, .05) 40%, var(--orange) 100%);
}

.footer-main {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr) minmax(0, 1.2fr);
  gap: clamp(28px, 4vw, 56px);
  padding-block: clamp(40px, 6vw, 64px) 36px;
}

.footer-col--brand {
  max-width: 440px;
}

.footer-col--links,
.footer-col--contact {
  min-width: 0;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-title);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: .05em;
  color: var(--white);
  text-transform: uppercase;
  margin-bottom: 14px;
}

.footer-brand::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--neon);
  box-shadow: var(--glow-neon);
}

.footer-desc {
  font-size: 14px;
  line-height: 1.85;
  color: var(--gray);
  margin-bottom: 18px;
}

.footer-trust {
  font-size: 13px;
  line-height: 1.75;
  color: var(--white);
  background: rgba(57, 255, 20, .07);
  border-left: 3px solid var(--neon);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 12px 16px;
}

.footer-heading {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--neon);
  margin-bottom: 16px;
}

.footer-links {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.footer-links a {
  color: var(--white);
  font-size: 14px;
}

.footer-links a:hover {
  color: var(--neon);
  padding-left: 6px;
}

.footer-contact {
  display: grid;
  gap: 12px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--gray);
  word-break: break-all;
}

.footer-contact strong {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  color: var(--white);
  margin-bottom: 2px;
}

.footer-contact__note {
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.6;
  color: rgba(203, 213, 225, .65);
}

.footer-bottom {
  border-top: 1px solid rgba(203, 213, 225, .14);
  padding-block: 18px;
}

.footer-bottom__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 20px;
  font-size: 13px;
  color: var(--gray);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.footer-legal a {
  color: var(--gray);
  font-size: 13px;
}

.footer-legal a:hover {
  color: var(--neon);
}

.footer-icp {
  font-family: var(--font-mono);
  font-size: 12px;
  color: rgba(203, 213, 225, .65);
}

@media (max-width: 920px) {
  .footer-main {
    grid-template-columns: 1fr 1fr;
  }

  .footer-col--brand {
    grid-column: 1 / -1;
    max-width: none;
  }
}

@media (max-width: 560px) {
  .footer-main {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom__inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ---------- Reveal on scroll ---------- */
[data-js-ready] [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  transition-delay: var(--reveal-delay, 0s);
}

[data-js-ready] [data-reveal][data-revealed] {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Responsive base tweaks ---------- */
@media (max-width: 640px) {
  .container {
    padding-inline: 16px;
  }

  .brand-bar__name {
    font-size: 12px;
  }

  .season-badge {
    font-size: 11px;
    padding: 2px 10px;
  }

  .page-content {
    padding-inline: 16px;
  }
}

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

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

  [data-js-ready] [data-reveal],
  [data-js-ready] [data-reveal][data-revealed] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .scroll-progress,
  .scroll-progress span {
    display: none;
  }
}
