/* ============================================================
   凤凰竞技 · PHOENIX ATHLETICS
   共享样式 /assets/site.css
   组成：Reset / Tokens / 排版 / 辅助 / 头部 / 页脚 / 通用组件 / 响应式
   ============================================================ */

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { line-height: 1.5; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body, p, h1, h2, h3, h4, h5, h6, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg, video { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; }
hr { border: 0; border-top: 1px solid var(--phx-line); margin: 24px 0; }

/* ---------- Design Tokens ---------- */
:root {
  --phx-gold: #F5A623;
  --phx-blue-deep: #0B1D3A;
  --phx-orange: #FF5E3A;
  --phx-green: #2ECC71;
  --phx-bg: #F5F5F0;
  --phx-ink: #2D2D2D;
  --phx-cyan: #00E5FF;
  --phx-purple: #9B59B6;
  --phx-white: #FFFFFF;
  --phx-line: rgba(11, 29, 58, .14);
  --phx-line-dark: rgba(255, 255, 255, .1);

  --font-head: Impact, "Arial Black", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: "Noto Sans SC", "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: "Roboto Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;

  --fs-h1: clamp(32px, 4.6vw, 48px);
  --fs-h2: clamp(26px, 3.4vw, 36px);
  --fs-h3: clamp(20px, 2.2vw, 24px);
  --fs-body: 16px;
  --fs-mono: 14px;

  --lh-body: 1.75;
  --lh-head: 1.16;

  --header-h: 72px;
  --header-compact: 52px;
  --ticker-h: 28px;
  --content-max: 1280px;
  --gutter: clamp(18px, 4vw, 48px);

  --ease: cubic-bezier(.4, 0, .2, 1);
}

/* ---------- Base & Typography ---------- */
body {
  padding-top: calc(var(--ticker-h) + var(--header-h));
  background: var(--phx-bg);
  color: var(--phx-ink);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
#main-content {
  display: block;
  min-height: 50vh;
}
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 800;
  line-height: var(--lh-head);
  letter-spacing: .01em;
  color: var(--phx-blue-deep);
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
::selection { background: var(--phx-gold); color: var(--phx-blue-deep); }
:focus-visible { outline: 2px solid var(--phx-cyan); outline-offset: 3px; }

/* ---------- Accessibility Helpers ---------- */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  top: -60px;
  left: 16px;
  z-index: 3000;
  padding: 10px 18px;
  background: var(--phx-gold);
  color: var(--phx-blue-deep);
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid var(--phx-blue-deep);
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; }

/* ---------- Header ---------- */
.site-header {
  --ticker-h-px: var(--ticker-h);
  --header-h-px: var(--header-h);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: var(--phx-blue-deep);
  background-image: repeating-linear-gradient(0deg, rgba(255,255,255,.025) 0 1px, transparent 1px 4px);
  border-bottom: 1px solid var(--phx-line-dark);
  transition: box-shadow .3s var(--ease);
}
.site-header[data-shrunk] {
  --ticker-h-px: 0px;
  --header-h-px: var(--header-compact);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .28);
}
.header-ticker {
  height: var(--ticker-h-px);
  max-width: var(--content-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 28px);
  padding: 0 var(--gutter);
  overflow: hidden;
  white-space: nowrap;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  transition: height .32s var(--ease), border-color .32s var(--ease);
}
.site-header[data-shrunk] .header-ticker {
  border-bottom-color: transparent;
}
.ticker-item {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .58);
}
.ticker-item--label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--phx-gold);
  font-weight: 700;
}
.ticker-item--label::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--phx-orange);
  transform: rotate(45deg);
}
.ticker-item--text {
  flex: 0 1 auto;
  overflow: hidden;
  text-overflow: ellipsis;
  color: rgba(255, 255, 255, .5);
}
.ticker-item--meta {
  margin-left: auto;
  color: var(--phx-cyan);
  opacity: .7;
}
.header-main {
  max-width: var(--content-max);
  height: var(--header-h-px);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 var(--gutter);
  transition: height .32s var(--ease);
}
.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  text-decoration: none;
  color: #fff;
}
.site-brand__mark {
  width: 46px;
  height: 28px;
}
.site-brand__name {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.site-brand__name strong {
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--phx-gold);
}
.site-brand__name small {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .18em;
  color: rgba(255, 255, 255, .5);
  white-space: nowrap;
}
.brand-particle {
  animation: phx-flicker 2.8s ease-in-out infinite;
}
.brand-particle--1 { animation-delay: 0s; }
.brand-particle--2 { animation-delay: .35s; }
.brand-particle--3 { animation-delay: .7s; }
.brand-particle--4 { animation-delay: 1.05s; }
.brand-particle--5 { animation-delay: 1.4s; }
.brand-particle--6 { animation-delay: 1.75s; }
@keyframes phx-flicker {
  0%, 100% { opacity: 1; transform: translate(0, 0); }
  50% { opacity: .35; transform: translate(0, -1.5px); }
}
.site-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  height: 40px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .1);
}
.site-nav__index {
  display: inline-flex;
  align-items: center;
  align-self: stretch;
  padding: 0 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .16em;
  color: var(--phx-gold);
  background: rgba(245, 166, 35, .1);
  border-right: 1px solid rgba(255, 255, 255, .1);
}
.site-nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 100%;
  padding: 0 12px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .04em;
  white-space: nowrap;
  color: rgba(255, 255, 255, .7);
  text-decoration: none;
  transition: color .2s var(--ease), background .2s var(--ease);
}
.site-nav__num {
  font-size: 10px;
  color: var(--phx-cyan);
  opacity: .75;
}
.site-nav__link:hover,
.site-nav__link:focus-visible {
  color: #fff;
  background: rgba(255, 255, 255, .06);
}
.site-nav__link[aria-current="page"] {
  color: var(--phx-gold);
  background: linear-gradient(to top, rgba(245, 166, 35, .14), rgba(245, 166, 35, .02));
}
.site-nav__link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 0;
  height: 2px;
  background: var(--phx-gold);
}
.header-readout {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, .14);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  color: rgba(255, 255, 255, .62);
}
.header-readout__dot {
  width: 7px;
  height: 7px;
  background: var(--phx-green);
  box-shadow: 0 0 8px rgba(46, 204, 113, .7);
  animation: phx-pulse 2s ease-in-out infinite;
}
.header-readout__code {
  color: var(--phx-green);
}
@keyframes phx-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .35; }
}
.nav-toggle {
  display: none;
  margin-left: auto;
  position: relative;
  width: 42px;
  height: 42px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .16);
}
.nav-toggle__bar {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--phx-gold);
  transition: transform .25s var(--ease), opacity .2s var(--ease);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}
.header-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: rgba(255, 255, 255, .06);
  pointer-events: none;
}
.header-progress__bar {
  display: block;
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--phx-gold), var(--phx-orange));
}

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  background-color: var(--phx-blue-deep);
  background-image:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 56px 56px;
  color: rgba(255, 255, 255, .7);
  border-top: 3px solid var(--phx-gold);
}
.footer-topline {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 12px 28px;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 10px var(--gutter);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.footer-topline__cell {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  color: rgba(255, 255, 255, .4);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: clamp(28px, 4vw, 48px);
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 48px var(--gutter) 40px;
}
.footer-brand { min-width: 0; }
.footer-brand__mark {
  width: 56px;
  height: 34px;
  margin-bottom: 14px;
}
.footer-brand__name {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--phx-gold);
  margin-bottom: 8px;
}
.footer-brand__claim {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255, 255, 255, .56);
  max-width: 32ch;
}
.footer-col { min-width: 0; }
.footer-label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
  color: var(--phx-gold);
  margin-bottom: 16px;
  padding-bottom: 6px;
  border-bottom: 2px solid rgba(245, 166, 35, .3);
}
.footer-label::before { content: "["; color: var(--phx-cyan); font-weight: 400; }
.footer-label::after { content: "]"; color: var(--phx-cyan); font-weight: 400; }
.footer-link {
  display: block;
  padding: 5px 0;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, .62);
  text-decoration: none;
  border-bottom: 1px dotted rgba(255, 255, 255, .1);
  transition: color .2s var(--ease), border-color .2s var(--ease), padding-left .2s var(--ease);
}
.footer-link:hover,
.footer-link:focus-visible {
  color: var(--phx-gold);
  border-bottom-color: var(--phx-gold);
  padding-left: 4px;
}
.footer-link--text { cursor: default; color: rgba(255, 255, 255, .5); }
.footer-link--text:hover,
.footer-link--text:focus-visible {
  color: rgba(255, 255, 255, .5);
  padding-left: 0;
  border-bottom-color: rgba(255, 255, 255, .1);
}
.footer-base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 16px var(--gutter) 20px;
  border-top: 1px solid rgba(255, 255, 255, .08);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .06em;
  color: rgba(255, 255, 255, .44);
}
.footer-base__copy { color: rgba(255, 255, 255, .6); }
.footer-base__icp { color: rgba(255, 255, 255, .4); }
.footer-base__code { color: var(--phx-cyan); opacity: .7; letter-spacing: .14em; }

/* ---------- Container / Section / Grid ---------- */
.container {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.section { padding: clamp(40px, 7vw, 80px) 0; }
.section--tight { padding: 28px 0; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .06em;
  line-height: 1.25;
  text-decoration: none;
  color: var(--phx-blue-deep);
  background: var(--phx-gold);
  border: 2px solid var(--phx-gold);
  cursor: pointer;
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.btn:hover,
.btn:focus-visible {
  background: transparent;
  color: var(--phx-gold);
}
.btn:active { transform: translateY(1px); }
.btn--ghost {
  background: transparent;
  color: var(--phx-gold);
  border-color: rgba(245, 166, 35, .6);
}
.btn--ghost:hover,
.btn--ghost:focus-visible {
  background: var(--phx-gold);
  color: var(--phx-blue-deep);
  border-color: var(--phx-gold);
}
.btn--dark {
  background: var(--phx-blue-deep);
  border-color: var(--phx-blue-deep);
  color: #fff;
}
.btn--dark:hover,
.btn--dark:focus-visible {
  background: transparent;
  color: var(--phx-blue-deep);
}

/* ---------- Breadcrumbs ---------- */
.crumb-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--phx-ink);
  opacity: .62;
}
.crumb-nav a {
  color: inherit;
  text-decoration: none;
  transition: color .2s var(--ease), opacity .2s var(--ease);
}
.crumb-nav a:hover { color: var(--phx-gold); opacity: 1; }
.crumb-nav__sep { opacity: .4; }
.crumb-nav [aria-current="page"] { color: var(--phx-gold); opacity: 1; }

/* ---------- Section Label / Title Bar ---------- */
.sec-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .14em;
  color: var(--phx-orange);
  text-transform: uppercase;
}
.sec-label::before {
  content: "";
  width: 26px;
  height: 3px;
  background: linear-gradient(90deg, var(--phx-orange), var(--phx-gold));
}
.sec-label--gold { color: var(--phx-gold); }
.sec-label--cyan { color: var(--phx-cyan); }
.title-bar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: clamp(20px, 3vw, 32px);
  padding-bottom: 14px;
  border-bottom: 2px solid var(--phx-blue-deep);
}
.title-bar__title {
  font-family: var(--font-head);
  font-size: var(--fs-h2);
  line-height: 1.1;
  margin: 0;
}
.title-bar__meta {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--phx-ink);
  opacity: .55;
  white-space: nowrap;
}

/* ---------- Media Figure ---------- */
.media-figure {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background:
    linear-gradient(135deg, rgba(245, 166, 35, .12) 25%, transparent 25%) 0 0 / 28px 28px,
    linear-gradient(225deg, rgba(245, 166, 35, .12) 25%, transparent 25%) 0 0 / 28px 28px,
    linear-gradient(135deg, #0b1d3a, #13284b);
  isolation: isolate;
}
.media-figure::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(0, 229, 255, .14) 1px, transparent 1px),
    linear-gradient(rgba(0, 229, 255, .14) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: .35;
  pointer-events: none;
}
.media-figure > img,
.media-figure > video {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media-figure--ratio-4x3 { aspect-ratio: 4 / 3; }
.media-figure--ratio-21x9 { aspect-ratio: 21 / 9; }
.media-figure--ratio-1x1 { aspect-ratio: 1 / 1; }

/* ---------- Tags / Data Strip ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--phx-blue-deep);
  background: var(--phx-gold);
  border: 1px solid transparent;
}
.tag--hot { background: var(--phx-orange); color: #fff; }
.tag--live { background: transparent; color: var(--phx-green); border-color: rgba(46, 204, 113, .5); }
.tag--new { background: transparent; color: var(--phx-cyan); border-color: rgba(0, 229, 255, .4); }
.tag--data { background: var(--phx-purple); color: #fff; }
.data-strip {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 20px;
  padding: 12px 0;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--phx-ink);
  border-top: 1px solid var(--phx-line);
  border-bottom: 1px solid var(--phx-line);
}
.data-strip__k { color: var(--phx-orange); }
.data-strip__v { color: var(--phx-blue-deep); font-weight: 700; }

/* ---------- Reveal on Scroll ---------- */
.has-reveal [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .55s var(--ease), transform .55s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}
.has-reveal [data-reveal][data-revealed] {
  opacity: 1;
  transform: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .site-nav__link { padding: 0 8px; font-size: 12px; }
  .site-nav__index { padding: 0 8px; }
}
@media (max-width: 960px) {
  .nav-toggle {
    display: inline-flex;
  }
  .site-nav {
    position: fixed;
    top: calc(var(--ticker-h-px) + var(--header-h-px));
    right: 0;
    z-index: 1001;
    width: min(86vw, 380px);
    height: auto;
    max-height: calc(100vh - var(--ticker-h-px) - var(--header-h-px));
    margin-left: 0;
    flex-direction: column;
    align-items: stretch;
    overflow-y: auto;
    padding: 10px;
    background: rgba(11, 29, 58, .97);
    border: 1px solid rgba(245, 166, 35, .35);
    border-right: 0;
    transform: translateX(103%);
    visibility: hidden;
    opacity: 0;
    transition: transform .3s var(--ease), opacity .25s var(--ease), visibility .25s;
  }
  .site-nav[data-open] {
    transform: translateX(0);
    visibility: visible;
    opacity: 1;
  }
  .site-nav__index {
    justify-content: center;
    height: 32px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, .12);
    margin-bottom: 6px;
    background: transparent;
  }
  .site-nav__link {
    justify-content: space-between;
    height: 46px;
    padding: 0 12px;
    border-bottom: 1px dotted rgba(255, 255, 255, .1);
  }
  .site-nav__link[aria-current="page"]::after {
    left: 0;
    right: 0;
  }
  .header-readout {
    display: none;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}
@media (max-width: 720px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .grid-2,
  .grid-3,
  .grid-4 { grid-template-columns: minmax(0, 1fr); }
  .title-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  .ticker-item--meta { display: none; }
  .ticker-item--text { max-width: 56vw; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-topline { justify-content: flex-start; }
  .footer-base { justify-content: flex-start; }
}
@media (max-width: 480px) {
  .site-brand__name small { display: none; }
}

/* ---------- 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;
  }
  .header-progress__bar { transition: none; }
}
