/* ============================================================
   凤凰体育 · 共享站点样式 /assets/site.css
   暗色体育数据舱 · 火焰羽翼 · 极简文字建筑
   ============================================================ */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 32px;
}

body {
  margin: 0;
  overflow-x: hidden;
}

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

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

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

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

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

a {
  color: inherit;
}

/* ---------- 2. 变量 ---------- */
:root {
  /* 色彩系统 */
  --ink: #0B0E14;
  --ink-2: #12161F;
  --line: #2A2F3A;
  --orange: #FF6B1A;
  --red: #C81E1E;
  --cyan: #35D0BA;
  --paper: #F5F1EA;
  --mist: #A8B0BF;
  --ember: #FFB37A;
  --deep-teal: #1E6F63;

  /* 字体系统 */
  --font-cn: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --font-mono: "IBM Plex Mono", "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* 结构系统 */
  --shell: 1280px;
  --gutter: 32px;
  --radius: 2px;
  --space-section: 96px;
}

/* ---------- 3. 中文排版基座 ---------- */
body {
  background-color: var(--ink);
  background-image:
    radial-gradient(140% 60% at 50% -10%, rgba(255, 107, 26, 0.07), transparent 62%),
    radial-gradient(90% 45% at 100% 105%, rgba(53, 208, 186, 0.06), transparent 60%);
  background-repeat: no-repeat;
  color: var(--paper);
  font-family: var(--font-cn);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.8;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: var(--orange);
  color: #0B0E14;
}

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

.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- 4. 布局容器 ---------- */
.container {
  width: min(var(--shell), calc(100% - var(--gutter) * 2));
  margin-inline: auto;
}

.container--narrow {
  width: min(760px, calc(100% - var(--gutter) * 2));
  margin-inline: auto;
}

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

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

.divider--flame {
  background: linear-gradient(90deg, var(--orange), rgba(255, 107, 26, 0.06) 60%, transparent);
}

/* ---------- 5. 网格 ---------- */
.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)); }

/* ---------- 6. 编号章节体系 ---------- */
.section-num {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(44px, 8vw, 88px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--orange);
  opacity: 0.24;
  font-variant-numeric: tabular-nums;
}

.section__title {
  margin-top: 10px;
  font-size: clamp(28px, 4.4vw, 52px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--paper);
}

.section__lead {
  margin-top: 16px;
  max-width: 35em;
  font-size: 17px;
  line-height: 1.85;
  color: var(--mist);
}

/* ---------- 7. 正文 ---------- */
.prose {
  max-width: 35em;
  font-size: 17px;
  line-height: 1.85;
  color: var(--mist);
}

.prose p { margin-bottom: 1.2em; }

.prose h2,
.prose h3 {
  margin: 2em 0 0.7em;
  color: var(--paper);
  font-weight: 600;
  line-height: 1.4;
}

.prose h2 { font-size: 22px; }
.prose h3 { font-size: 19px; }

.prose strong { color: var(--paper); font-weight: 600; }

.prose ul,
.prose ol {
  margin: 0 0 1.4em;
  padding-left: 1.4em;
  list-style: disc;
}

.prose li { margin-bottom: 0.5em; }

.link {
  color: var(--ember);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 107, 26, 0.4);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.link:hover {
  color: var(--cyan);
  border-bottom-color: var(--cyan);
}

.rail-note {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.3em;
  color: var(--mist);
  text-transform: uppercase;
  writing-mode: vertical-rl;
  text-orientation: mixed;
}

/* ---------- 8. 资料卡与数据 ---------- */
.card {
  position: relative;
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.card::before {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  width: 36px;
  height: 2px;
  background: var(--orange);
  transition: background 0.2s ease;
}

.card:hover {
  border-color: var(--orange);
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.42);
}

.card:hover::before { background: var(--cyan); }

.card__title {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--paper);
  margin-bottom: 10px;
}

.card__meta {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--mist);
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.stat__value {
  font-family: var(--font-mono);
  font-size: clamp(30px, 4.4vw, 56px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--paper);
  font-variant-numeric: tabular-nums;
}

.stat__value--cyan { color: var(--cyan); }
.stat__value--orange { color: var(--ember); }

.stat__label {
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--mist);
}

/* ---------- 9. 标签与胶囊切换 ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--mist);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1.5;
  white-space: nowrap;
}

.tag--orange {
  border-color: rgba(255, 107, 26, 0.5);
  background: rgba(255, 107, 26, 0.09);
  color: var(--ember);
}

.tag--cyan {
  border-color: rgba(53, 208, 186, 0.42);
  background: rgba(53, 208, 186, 0.08);
  color: var(--cyan);
}

.tag--red {
  border-color: rgba(200, 30, 30, 0.55);
  background: rgba(200, 30, 30, 0.14);
  color: #F08C86;
}

.pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill {
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--mist);
  font-size: 13px;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.pill:hover {
  border-color: var(--orange);
  color: var(--ember);
}

.pill[aria-pressed="true"],
.pill.is-active {
  background: var(--orange);
  border-color: var(--orange);
  color: #0B0E14;
  font-weight: 600;
}

/* ---------- 10. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: transparent;
  color: var(--paper);
  font-family: var(--font-cn);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1.4;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.btn:hover {
  border-color: var(--orange);
  color: var(--ember);
  transform: translateY(-2px);
}

.btn--primary {
  background: var(--orange);
  border-color: var(--orange);
  color: #0B0E14;
}

.btn--primary:hover {
  background: var(--ember);
  border-color: var(--ember);
  color: #0B0E14;
}

.btn--ghost {
  border-color: var(--line);
  color: var(--mist);
}

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

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

/* ---------- 11. 面包屑 ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding-top: 26px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--mist);
}

.breadcrumb__item {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

a.breadcrumb__item:hover { color: var(--ember); }

.breadcrumb__sep {
  color: var(--line);
}

/* ---------- 12. 图片容器 ---------- */
.media-frame {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background-color: var(--ink-2);
  background-image:
    radial-gradient(115% 90% at 100% 0%, rgba(255, 107, 26, 0.18), transparent 55%),
    radial-gradient(85% 80% at 0% 100%, rgba(53, 208, 186, 0.14), transparent 60%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.media-frame > img,
.media-frame > svg {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.media-frame__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 16px 20px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  line-height: 1.7;
  color: var(--paper);
  background: linear-gradient(180deg, rgba(11, 14, 20, 0), rgba(11, 14, 20, 0.9));
}

/* ---------- 13. 跳转链接 ---------- */
.skip-link {
  position: fixed;
  top: -70px;
  left: 16px;
  z-index: 200;
  padding: 11px 20px;
  background: var(--orange);
  color: #0B0E14;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-decoration: none;
  border-radius: var(--radius);
  transition: top 0.2s ease;
}

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

/* ---------- 14. 页头 ---------- */
.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 90;
  height: 2px;
  background: linear-gradient(90deg, var(--orange), var(--red));
  transform: scaleX(0);
  transform-origin: 0 50%;
  will-change: transform;
  pointer-events: none;
}

.site-header {
  position: relative;
  z-index: 40;
  background-color: var(--ink);
  background-image:
    radial-gradient(130% 150% at 50% -45%, rgba(255, 107, 26, 0.13), transparent 62%),
    radial-gradient(70% 90% at 12% 120%, rgba(53, 208, 186, 0.06), transparent 60%);
  background-repeat: no-repeat;
  border-bottom: 1px solid var(--line);
  color: var(--paper);
}

.site-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 107, 26, 0.65) 22%, rgba(200, 30, 30, 0.5) 52%, rgba(53, 208, 186, 0.42) 80%, transparent);
}

.header-shell {
  width: min(var(--shell), 100%);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.masthead-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0 11px;
  border-bottom: 1px solid var(--line);
}

.masthead-mark {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.34em;
  color: var(--orange);
}

.masthead-utility {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--mist);
  text-align: right;
}

.masthead-brand {
  position: relative;
  padding: 38px 0 28px;
  text-align: center;
}

.brand-word {
  display: inline-block;
  font-size: clamp(38px, 7vw, 76px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: 0.06em;
  color: var(--paper);
  text-decoration: none;
  transition: color 0.2s ease;
}

.brand-word:hover { color: var(--ember); }

.brand-sub {
  position: relative;
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.3em;
  color: var(--mist);
  padding-bottom: 16px;
}

.brand-sub::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 96px;
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, var(--orange), var(--red), transparent);
}

.site-nav {
  position: relative;
  border-top: 1px solid var(--line);
}

.nav-toggle {
  display: none;
  width: 100%;
  padding: 16px 4px;
  border: 0;
  background: transparent;
  color: var(--paper);
  font-family: var(--font-cn);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.28em;
  align-items: center;
  justify-content: center;
  gap: 12px;
  cursor: pointer;
}

.nav-toggle__label { line-height: 1; }

.nav-toggle__sign {
  position: relative;
  width: 13px;
  height: 13px;
  flex: 0 0 auto;
}

.nav-toggle__sign::before,
.nav-toggle__sign::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  background: var(--orange);
}

.nav-toggle__sign::before {
  width: 13px;
  height: 1px;
  transform: translate(-50%, -50%);
}

.nav-toggle__sign::after {
  width: 1px;
  height: 13px;
  transform: translate(-50%, -50%);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.site-nav[data-open] .nav-toggle__sign::after {
  transform: translate(-50%, -50%) scaleY(0);
  opacity: 0;
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: clamp(14px, 3.2vw, 44px);
}

.nav-list__item { display: flex; }

.nav-list__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 17px 2px;
  color: var(--mist);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav-list__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 10px;
  height: 1px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.24s ease;
}

.nav-list__link:hover { color: var(--paper); }
.nav-list__link:hover::after { transform: scaleX(1); }

.nav-list__link[aria-current="page"] {
  color: var(--paper);
  font-weight: 600;
}

.nav-list__link[aria-current="page"]::after {
  transform: scaleX(1);
  background: var(--cyan);
  height: 2px;
  bottom: 9px;
}

/* ---------- 15. 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: var(--space-section);
  background-color: var(--ink-2);
  background-image: radial-gradient(90% 120% at 50% 130%, rgba(255, 107, 26, 0.08), transparent 65%);
  background-repeat: no-repeat;
  border-top: 1px solid var(--line);
  color: var(--paper);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: min(320px, 42%);
  height: 1px;
  background: linear-gradient(90deg, var(--orange), rgba(200, 30, 30, 0.4) 55%, transparent);
}

.footer-shell {
  width: min(var(--shell), 100%);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 2fr;
  gap: 48px;
  padding: 64px 0 48px;
}

.footer-brand__name {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 0.1em;
  line-height: 1.3;
  color: var(--paper);
}

.footer-brand__note {
  margin-top: 12px;
  max-width: 24em;
  font-size: 13px;
  line-height: 1.85;
  color: var(--mist);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}

.footer-col__title {
  margin-bottom: 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--orange);
}

.footer-links li { margin-bottom: 6px; }

.footer-links a {
  display: inline-block;
  font-size: 15px;
  line-height: 2;
  color: var(--mist);
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
}

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

.footer-meta {
  display: grid;
  gap: 10px;
  padding: 28px 0 56px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  line-height: 1.9;
  color: var(--mist);
}

.footer-contact {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--mist);
}

.footer-address { color: var(--mist); }

.footer-cadence {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--deep-teal);
  filter: brightness(1.9);
}

.footer-legal {
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: #6E7887;
}

/* ---------- 16. 进入视口显现 ---------- */
html.js [data-reveal] {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.24s ease, transform 0.24s ease;
}

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

/* ---------- 17. 响应式 ---------- */
@media (max-width: 1024px) {
  :root {
    --space-section: 80px;
  }

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

  .footer-top {
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 52px 0 40px;
  }
}

@media (max-width: 860px) {
  :root {
    --gutter: 24px;
    --space-section: 68px;
  }

  .masthead-brand { padding: 28px 0 22px; }

  .brand-word { letter-spacing: 0.04em; }

  .brand-sub { letter-spacing: 0.2em; }

  .nav-toggle { display: flex; }

  .nav-list {
    display: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    justify-content: stretch;
    border-top: 1px solid var(--line);
  }

  .site-nav[data-open] .nav-list { display: grid; }

  .nav-list__item {
    display: block;
    border-bottom: 1px solid var(--line);
  }

  .nav-list__item:nth-child(odd) { border-right: 1px solid var(--line); }

  .nav-list__link {
    display: flex;
    justify-content: flex-start;
    padding: 16px 18px;
    font-size: 15px;
  }

  .nav-list__link::after,
  .nav-list__link[aria-current="page"]::after {
    bottom: 9px;
    left: 18px;
    right: auto;
    width: 24px;
  }

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

  .footer-meta { padding: 26px 0 44px; }
}

@media (max-width: 640px) {
  :root {
    --gutter: 20px;
    --space-section: 60px;
  }

  body { font-size: 16px; }

  .grid--2,
  .grid--3 { grid-template-columns: 1fr; }

  .masthead-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .masthead-utility { text-align: left; }

  .card { padding: 22px 20px; }

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

  .footer-brand__name { font-size: 22px; }
}

@media (max-width: 400px) {
  .brand-word { font-size: 34px; }

  .nav-list { grid-template-columns: 1fr; }

  .nav-list__item:nth-child(odd) { border-right: 0; }
}

/* ---------- 18. 减弱动效 ---------- */
@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;
  }

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

  .card:hover,
  .btn:hover {
    transform: none;
  }
}
