/* =========================================================
   凤凰体育入口 · 共享样式表 /assets/site.css
   深炭黑机房底色 + 炽焰橙红焦点 + 冷青数据对比
   ========================================================= */

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

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

body,
h1, h2, h3, h4, h5, h6,
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;
}

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

/* ---------- 2. Tokens ---------- */
:root {
  --flame-600: #E8442A;
  --flame-400: #FF7A45;
  --ember-900: #14100E;
  --ember-800: #1F1A17;
  --ember-700: #2C2521;
  --cyber-500: #17B3C9;
  --cyber-300: #6FD9E6;
  --chalk-100: #F5F1EA;
  --ink-900: #171310;
  --amber-400: #FFC24B;

  --text-soft: rgba(245, 241, 234, 0.72);
  --text-faint: rgba(245, 241, 234, 0.52);
  --text-ink-soft: rgba(23, 19, 16, 0.72);

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

  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);

  --line: 1px solid var(--ember-700);
  --shadow-lift: 0 2px 0 rgba(0, 0, 0, 0.35), 0 18px 40px rgba(0, 0, 0, 0.45);
  --shadow-soft: 0 1px 0 rgba(0, 0, 0, 0.3);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- 3. Base typography ---------- */
body {
  background: var(--ember-900);
  color: var(--chalk-100);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.75;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

:focus-visible {
  outline: 2px solid var(--cyber-300);
  outline-offset: 2px;
}

.kicker {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyber-500);
}

.h-display {
  font-family: var(--font-head);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.02;
  font-size: clamp(3rem, 9vw, 7.5rem);
  word-break: keep-all;
}

.h-section {
  font-family: var(--font-head);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.12;
  font-size: clamp(1.9rem, 3.6vw, 2.5rem);
  word-break: keep-all;
}

.h-sub {
  font-family: var(--font-head);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.3;
  font-size: clamp(1.2rem, 1.8vw, 1.5rem);
  word-break: keep-all;
}

.lede {
  font-size: clamp(1.02rem, 1.5vw, 1.18rem);
  line-height: 1.75;
  color: var(--text-soft);
  max-width: 44ch;
}

.num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.text-flame { color: var(--flame-400); }
.text-cyber { color: var(--cyber-300); }

/* ---------- 4. Layout ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(48px, 7vw, 96px); }
.section--tight { padding-block: clamp(28px, 4vw, 52px); }
.section--dark { background: var(--ember-900); }
.section--ink { background: var(--ember-800); }
.section--paper { background: var(--chalk-100); color: var(--ink-900); }

.section--paper .lede { color: var(--text-ink-soft); }
.section--paper .kicker { color: #0E7C8C; }
.section--paper .divider { background: rgba(23, 19, 16, 0.16); }

.page-head { padding-top: clamp(24px, 4vw, 48px); }

.grid {
  display: grid;
  gap: clamp(16px, 2.5vw, 28px);
}
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }

.stack { display: flex; flex-direction: column; gap: 16px; }

.divider {
  height: 1px;
  border: 0;
  background: var(--ember-700);
  margin: 0;
}

/* ---------- 5. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.2;
  border: 1px solid var(--ember-700);
  background: var(--ember-800);
  color: var(--chalk-100);
  transition: transform 0.18s var(--ease), background 0.18s var(--ease), color 0.18s var(--ease), border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
  border-color: var(--flame-400);
  color: var(--chalk-100);
  box-shadow: var(--shadow-soft);
}

.btn--primary {
  background: var(--flame-600);
  border-color: var(--flame-600);
  color: #FFFFFF;
  box-shadow: 3px 3px 0 rgba(232, 68, 42, 0.22);
}

.btn--primary:hover {
  background: var(--flame-400);
  border-color: var(--flame-400);
  box-shadow: 3px 3px 0 rgba(255, 122, 69, 0.3);
}

.btn--ghost {
  background: transparent;
  border-color: rgba(245, 241, 234, 0.28);
}

.btn--cyan {
  background: var(--cyber-500);
  border-color: var(--cyber-500);
  color: var(--ink-900);
}

.btn--cyan:hover { background: var(--cyber-300); border-color: var(--cyber-300); }

.btn--sm { padding: 9px 14px; font-size: 13px; }

.section--paper .btn {
  border-color: rgba(23, 19, 16, 0.22);
  background: transparent;
  color: var(--ink-900);
}

.section--paper .btn--primary {
  background: var(--flame-600);
  border-color: var(--flame-600);
  color: #FFFFFF;
}

/* ---------- 6. Chips / panels ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.6;
  border: 1px solid var(--ember-700);
  background: var(--ember-800);
  color: var(--cyber-300);
}

.chip--flame { color: var(--flame-400); border-color: rgba(232, 68, 42, 0.5); }
.chip--cyan { color: var(--cyber-300); }
.chip--amber { color: var(--amber-400); border-color: rgba(255, 194, 75, 0.42); }

.panel {
  position: relative;
  background: var(--ember-800);
  border: var(--line);
  padding: clamp(18px, 2.4vw, 28px);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), border-color 0.2s var(--ease);
}

.panel--lift:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lift);
  border-color: rgba(255, 122, 69, 0.4);
}

.panel--paper {
  background: var(--chalk-100);
  color: var(--ink-900);
  border-color: rgba(23, 19, 16, 0.16);
}

.panel--paper .lede { color: var(--text-ink-soft); }

/* ---------- 7. Index band ---------- */
.index-band {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  padding: 14px 0;
  border-top: var(--line);
  border-bottom: var(--line);
}

.index-band::-webkit-scrollbar { height: 3px; }
.index-band::-webkit-scrollbar-track { background: var(--ember-800); }
.index-band::-webkit-scrollbar-thumb { background: var(--ember-700); }

.index-band-item {
  flex: 0 0 auto;
  scroll-snap-align: start;
  white-space: nowrap;
  padding: 6px 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--cyber-300);
  background: var(--ember-800);
  border: var(--line);
  transition: color 0.16s var(--ease), border-color 0.16s var(--ease), background 0.16s var(--ease);
}

.index-band-item:hover {
  color: var(--chalk-100);
  border-color: var(--cyber-500);
}

/* ---------- 8. Breadcrumb ---------- */
.breadcrumb {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--text-faint);
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.breadcrumb li { display: flex; align-items: center; gap: 6px; }
.breadcrumb li + li::before { content: "/"; color: var(--ember-700); }
.breadcrumb a:hover { color: var(--cyber-300); }

/* ---------- 9. Media frames ---------- */
.media-frame {
  position: relative;
  display: block;
  overflow: hidden;
  border: var(--line);
  background: var(--ember-800);
}

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

.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(20, 16, 14, 0) 45%, rgba(20, 16, 14, 0.58) 100%);
}

.media-frame--pitch::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(90deg, rgba(245, 241, 234, 0.05) 0 1px, transparent 1px 64px),
    repeating-linear-gradient(0deg, rgba(245, 241, 234, 0.04) 0 1px, transparent 1px 64px);
}

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

.media-caption {
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--text-faint);
}

.section--paper .media-caption { color: var(--text-ink-soft); }

/* ---------- 10. Filter protocol ---------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-btn {
  padding: 8px 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text-soft);
  background: var(--ember-800);
  border: var(--line);
  transition: background 0.16s var(--ease), color 0.16s var(--ease), border-color 0.16s var(--ease), transform 0.16s var(--ease);
}

.filter-btn:hover { transform: translateY(-1px); color: var(--chalk-100); border-color: var(--cyber-500); }

.filter-btn[aria-pressed="true"] {
  background: var(--flame-600);
  border-color: var(--flame-600);
  color: #FFFFFF;
}

.filter-status {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-faint);
}

[data-filter-item][data-hidden] { display: none !important; }

/* =========================================================
   11. HEADER
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--ember-900);
  border-bottom: var(--line);
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -64px;
  z-index: 100;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 700;
  color: #FFFFFF;
  background: var(--flame-600);
  transition: top 0.2s var(--ease);
}

.skip-link:focus { top: 12px; }

.header-inner { padding-top: 12px; }

.header-top {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2.2vw, 28px);
  padding-bottom: 10px;
}

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

.brand-mark {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  background: linear-gradient(150deg, var(--flame-400), var(--flame-600));
  clip-path: polygon(50% 0%, 100% 36%, 78% 100%, 22% 100%, 0% 36%);
  box-shadow: 0 0 0 1px rgba(245, 241, 234, 0.12);
}

.brand-text { display: flex; flex-direction: column; line-height: 1.15; }

.brand-name {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 19px;
  letter-spacing: -0.02em;
  color: var(--chalk-100);
}

.brand-latin {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.26em;
  color: var(--cyber-500);
}

.brand-tagline {
  font-size: 13px;
  color: var(--text-faint);
  padding-left: 16px;
  border-left: var(--line);
  white-space: nowrap;
}

.header-quick {
  margin-left: auto;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.quick-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--chalk-100);
  background: var(--ember-800);
  border: var(--line);
  transition: background 0.16s var(--ease), color 0.16s var(--ease), border-color 0.16s var(--ease);
}

.quick-link:hover {
  background: var(--flame-600);
  border-color: var(--flame-600);
  color: #FFFFFF;
}

.quick-num { color: var(--cyber-300); }
.quick-link:hover .quick-num { color: rgba(255, 255, 255, 0.75); }

.header-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  border-top: var(--line);
  margin-top: 2px;
}

/* 导航 */
.primary-nav { flex: 1 1 auto; min-width: 0; }

.nav-list {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
}

.nav-list a {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  padding: 12px 15px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-soft);
  border-bottom: 2px solid transparent;
  transition: color 0.16s var(--ease), background 0.16s var(--ease), border-color 0.16s var(--ease);
}

.nav-list a:hover {
  color: var(--chalk-100);
  background: var(--ember-800);
}

.nav-index {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--cyber-500);
}

.nav-list a[aria-current="page"] {
  color: var(--chalk-100);
  background: var(--ember-800);
  border-bottom-color: var(--flame-600);
}

.nav-list a[aria-current="page"] .nav-index { color: var(--flame-400); }

.header-cta { margin-left: auto; flex: 0 0 auto; }

/* 移动按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 9px 13px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--chalk-100);
  background: var(--ember-800);
  border: var(--line);
}

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

.nav-toggle-bars {
  position: relative;
  display: block;
  width: 16px;
  height: 10px;
  flex: 0 0 auto;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--flame-400);
  transition: transform 0.2s var(--ease);
}

.nav-toggle-bars::before { top: 0; }
.nav-toggle-bars::after { bottom: 0; }

.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-4px) rotate(-45deg); }

/* 滚动进度 */
.scroll-progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  z-index: 2;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--flame-600), var(--amber-400));
  transition: width 0.1s linear;
}

/* 收缩态 */
.site-header.is-compact .header-top { display: none; }
.site-header.is-compact .header-inner { padding-top: 0; }
.site-header.is-compact .header-bar { border-top-color: transparent; margin-top: 0; }
.site-header.is-compact .nav-list a { padding-block: 14px; }

/* =========================================================
   12. FOOTER
   ========================================================= */
.site-footer {
  position: relative;
  background: var(--ember-900);
  border-top: var(--line);
  padding-top: clamp(40px, 6vw, 72px);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: clamp(80px, 18vw, 220px);
  height: 3px;
  background: linear-gradient(90deg, var(--flame-600), var(--amber-400));
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.4fr;
  gap: clamp(22px, 3vw, 44px);
}

.footer-brand .brand { margin-bottom: 14px; }

.footer-note {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-faint);
  max-width: 30ch;
}

.footer-col-title {
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--cyber-500);
}

.footer-list li {
  padding-block: 6px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-soft);
}

.footer-list a {
  transition: color 0.16s var(--ease), border-color 0.16s var(--ease);
  border-bottom: 1px solid transparent;
}

.footer-list a:hover {
  color: var(--flame-400);
  border-bottom-color: rgba(255, 122, 69, 0.5);
}

.footer-list--tags { display: flex; flex-wrap: wrap; gap: 8px; }
.footer-list--tags li { padding-block: 0; }

.tag-link {
  display: inline-block;
  padding: 5px 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--cyber-300);
  background: var(--ember-800);
  border: var(--line);
}

.tag-link:hover {
  color: var(--chalk-100);
  border-color: var(--flame-400);
  background: var(--ember-700);
}

.footer-list--plain li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-family: var(--font-mono);
  font-size: 13px;
  word-break: break-word;
}

.footer-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--flame-400);
}

.footer-base {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: clamp(30px, 4vw, 52px);
  padding-block: 20px 30px;
  border-top: var(--line);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.8;
  letter-spacing: 0.03em;
  color: var(--text-faint);
}

.footer-line { word-break: break-word; }

.footer-legal a {
  color: var(--cyber-300);
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

/* =========================================================
   13. Responsive
   ========================================================= */
@media (max-width: 1080px) {
  .brand-tagline { display: none; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer-col--contact { grid-column: 1 / -1; }
}

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

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

  .primary-nav { display: none; }

  .primary-nav[data-open] {
    display: block;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    z-index: 70;
    max-height: calc(100vh - 72px);
    overflow-y: auto;
    padding: 8px var(--gutter) 18px;
    background: var(--ember-900);
    border-top: var(--line);
    border-bottom: var(--line);
    box-shadow: 0 28px 56px rgba(0, 0, 0, 0.6);
  }

  .nav-list { flex-direction: column; }

  .nav-list a {
    justify-content: flex-start;
    width: 100%;
    padding: 14px 4px;
    border-bottom: var(--line);
    border-left: 0;
  }

  .nav-list a[aria-current="page"] {
    border-bottom-color: var(--ember-700);
    box-shadow: inset 3px 0 0 var(--flame-600);
  }

  .nav-list li:last-child a { border-bottom: 0; }

  .header-cta { margin-left: auto; }

  .site-header.is-compact .header-top { display: none; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }

  .brand-name { font-size: 17px; }

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

  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 26px; }

  .footer-col--contact { grid-column: auto; }
}

@media (max-width: 560px) {
  .nav-toggle-text { display: none; }

  .header-cta { display: none; }

  .header-quick .quick-link:last-child { display: none; }

  .header-bar { gap: 8px; }

  .footer-base { font-size: 11px; }
}

/* =========================================================
   14. Motion preferences
   ========================================================= */
@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;
  }

  .panel--lift:hover,
  .btn:hover,
  .filter-btn:hover { transform: none; }
}
