/* ============================================================
   凤凰体育赛事 · /assets/site.css
   共享外壳：reset / 变量 / 中文排版 / 头部 / 页脚 / 通用组件
   ============================================================ */

/* ---------- 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, figure, blockquote, dl, dd, ul, ol {
  margin: 0;
}

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

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

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

button { background: none; border: 0; }

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

/* ---------- 2. 变量 ---------- */
:root {
  --ink: #0B0E14;
  --navy: #10182B;
  --navy-2: #1B2740;
  --flame: #F04E23;
  --flame-hi: #FF7A45;
  --gold: #E8B04B;
  --cream: #F3EDE4;
  --steel: #9AA6BC;
  --green: #2E7D5B;
  --alert: #B23A2E;

  --line: rgba(154, 166, 188, .16);
  --line-strong: rgba(154, 166, 188, .30);
  --line-gold: rgba(232, 176, 75, .34);

  --radius: 16px;
  --radius-sm: 12px;
  --radius-lg: 18px;
  --radius-pill: 999px;

  --shadow-soft: 0 1px 0 rgba(243, 237, 228, .04), 0 14px 34px -26px rgba(0, 0, 0, .95);

  --font-display: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", "SimSun", serif;
  --font-body: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", "Roboto Mono", Consolas, "Courier New", monospace;

  --wrap: 1320px;
  --wrap-narrow: 720px;
  --gutter: clamp(16px, 3.4vw, 40px);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- 3. 中文排版与页面底纹 ---------- */
body {
  background-color: var(--ink);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 15.5px;
  font-weight: 400;
  line-height: 1.75;
  letter-spacing: .005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(920px 540px at 80% -12%, rgba(240, 78, 35, .16), transparent 62%),
    radial-gradient(760px 520px at 2% 4%, rgba(27, 39, 64, .92), transparent 68%),
    radial-gradient(620px 460px at 96% 88%, rgba(232, 176, 75, .07), transparent 66%),
    repeating-linear-gradient(118deg, rgba(154, 166, 188, .038) 0 1px, transparent 1px 72px);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: .02em;
  line-height: 1.32;
  color: var(--cream);
}

h1 { font-size: clamp(28px, 4.1vw, 44px); }
h2 { font-size: clamp(22px, 2.6vw, 31px); }
h3 { font-size: 18px; }
h4 { font-size: 16px; }

p { margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }

strong { font-weight: 600; color: var(--cream); }

::selection {
  background: rgba(240, 78, 35, .35);
  color: var(--cream);
}

/* ---------- 4. 焦点与跳转链接 ---------- */
:focus-visible {
  outline: 2px solid var(--flame-hi);
  outline-offset: 3px;
  border-radius: 8px;
}

.skip-link {
  position: absolute;
  left: 18px;
  top: -80px;
  z-index: 200;
  padding: 11px 20px;
  border-radius: 0 0 14px 14px;
  background: linear-gradient(135deg, var(--flame-hi), var(--flame));
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  transition: top .18s var(--ease);
}

.skip-link:focus { top: 0; }

/* ---------- 5. 容器与章节节奏 ---------- */
.container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.container-narrow {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--wrap-narrow);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section {
  position: relative;
  z-index: 1;
  padding: clamp(48px, 7vw, 96px) 0;
}

.section--tight { padding: clamp(30px, 4vw, 54px) 0; }

.section-band {
  height: 1px;
  border: 0;
  background: linear-gradient(90deg, transparent, rgba(154, 166, 188, .3) 22%, rgba(240, 78, 35, .28) 62%, transparent);
}

.section-num {
  display: block;
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .22em;
  color: var(--flame);
}

.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: .02em;
}

.section-lead {
  max-width: 62ch;
  font-size: 16px;
  line-height: 1.8;
  color: var(--steel);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .18em;
  color: var(--steel);
}

/* ---------- 6. 头部：悬浮胶囊导航 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  padding: 12px clamp(10px, 2.2vw, 24px);
  transition: padding .26s var(--ease);
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.7vw, 26px);
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 9px 12px 9px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: linear-gradient(180deg, rgba(27, 39, 64, .88), rgba(16, 24, 43, .80));
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 20px 44px -32px rgba(0, 0, 0, 1), inset 0 1px 0 rgba(243, 237, 228, .05);
  transition: padding .26s var(--ease), border-color .26s var(--ease);
}

.site-header[data-condensed="true"] { padding-top: 6px; }
.site-header[data-condensed="true"] .header-inner { padding: 5px 10px 5px 14px; }
.site-header[data-open] .header-inner { border-color: rgba(240, 78, 35, .34); }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  color: var(--cream);
}

.brand-mark {
  position: relative;
  flex: 0 0 auto;
  width: 23px;
  height: 26px;
  background: linear-gradient(158deg, var(--flame-hi) 0%, var(--flame) 46%, var(--gold) 100%);
  clip-path: polygon(50% 0%, 75% 27%, 65% 60%, 88% 100%, 50% 83%, 12% 100%, 35% 60%, 25% 27%);
  transition: filter .22s var(--ease);
}

.brand:hover .brand-mark { filter: drop-shadow(0 0 9px rgba(240, 78, 35, .7)); }

.brand-name {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .07em;
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 8px 15px;
  border: 1px solid rgba(240, 78, 35, .34);
  border-radius: var(--radius-pill);
  background: rgba(240, 78, 35, .14);
  color: var(--cream);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color .2s var(--ease), border-color .2s var(--ease);
}

.nav-toggle:hover { background: rgba(240, 78, 35, .24); }

.nav-toggle::after {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform .22s var(--ease);
}

.site-header[data-open] .nav-toggle::after { transform: translateY(1px) rotate(-135deg); }

.site-nav {
  flex: 1 1 auto;
  display: flex;
  justify-content: center;
  min-width: 0;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-link {
  display: inline-block;
  padding: 7px 14px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-size: 14px;
  color: var(--steel);
  white-space: nowrap;
  transition: color .2s var(--ease), background-color .2s var(--ease), border-color .2s var(--ease);
}

.nav-link:hover {
  color: var(--cream);
  background: rgba(240, 78, 35, .12);
  border-color: rgba(240, 78, 35, .26);
}

.nav-link[aria-current="page"] {
  color: var(--ink);
  font-weight: 600;
  background: linear-gradient(135deg, var(--flame-hi), var(--flame) 72%);
  border-color: transparent;
  box-shadow: 0 10px 22px -16px rgba(240, 78, 35, .95);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

/* ---------- 7. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .2s var(--ease), background-color .2s var(--ease),
              border-color .2s var(--ease), color .2s var(--ease), box-shadow .2s var(--ease);
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  color: var(--ink);
  background: linear-gradient(135deg, var(--flame-hi), var(--flame));
  box-shadow: 0 16px 28px -20px rgba(240, 78, 35, .95);
}

.btn-primary:hover {
  color: var(--ink);
  background: linear-gradient(135deg, #FFA477, var(--flame-hi));
}

.btn-ghost {
  color: var(--cream);
  border-color: var(--line-strong);
  background: rgba(27, 39, 64, .62);
}

.btn-ghost:hover {
  color: var(--cream);
  border-color: rgba(240, 78, 35, .55);
  background: rgba(240, 78, 35, .14);
}

.btn-quiet {
  color: var(--steel);
  border-color: var(--line);
  background: transparent;
}

.btn-quiet:hover {
  color: var(--cream);
  border-color: var(--line-strong);
}

/* ---------- 8. 面包屑 ---------- */
.breadcrumb { padding: 22px 0 0; }

.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--steel);
}

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

.breadcrumb-list li + li::before {
  content: "›";
  color: rgba(154, 166, 188, .48);
}

.breadcrumb-list a { color: var(--steel); transition: color .2s var(--ease); }
.breadcrumb-list a:hover { color: var(--cream); }
.breadcrumb-current { color: var(--cream); }

/* ---------- 9. 卡片 / 面板 / 指标 / 标签 ---------- */
.card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(27, 39, 64, .64), rgba(16, 24, 43, .64));
  box-shadow: var(--shadow-soft);
  transition: border-color .22s var(--ease), transform .22s var(--ease);
}

.card:hover {
  transform: translateY(-2px);
  border-color: rgba(240, 78, 35, .34);
}

.panel {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(16, 24, 43, .72);
}

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

.stat-value {
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -.01em;
  color: var(--cream);
}

.stat-label {
  font-size: 12.5px;
  letter-spacing: .06em;
  color: var(--steel);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  background: rgba(27, 39, 64, .6);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--steel);
}

.tag--gold {
  color: var(--gold);
  border-color: var(--line-gold);
  background: rgba(232, 176, 75, .10);
}

.tag--green {
  color: #7BD3A8;
  border-color: rgba(46, 125, 91, .5);
  background: rgba(46, 125, 91, .16);
}

.tag--alert {
  color: #E8A79D;
  border-color: rgba(178, 58, 46, .5);
  background: rgba(178, 58, 46, .14);
}

/* ---------- 10. 网格 ---------- */
.grid {
  display: grid;
  gap: clamp(14px, 2vw, 22px);
}

.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(196px, 1fr)); }

/* ---------- 11. 图片容器基础规则 ---------- */
.media { margin: 0; }

.media-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(122% 92% at 20% 6%, rgba(240, 78, 35, .20), transparent 58%),
    radial-gradient(92% 82% at 86% 94%, rgba(232, 176, 75, .14), transparent 62%),
    linear-gradient(160deg, #1B2740 0%, #10182B 50%, #0B0E14 100%);
}

.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(24deg, rgba(243, 237, 228, .05) 0 1px, transparent 1px 24px);
  opacity: .6;
}

.media-frame > img,
.media-frame > picture,
.media-frame > picture > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.media-caption {
  margin-top: 10px;
  font-size: 12.5px;
  letter-spacing: .04em;
  color: var(--steel);
}

/* ---------- 12. 滚动进度条（脚本注入） ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  height: 2px;
  pointer-events: none;
  transform: scaleX(var(--progress, 0));
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--flame), var(--flame-hi) 58%, var(--gold));
  opacity: .9;
}

/* ---------- 13. 显现动效协议 ---------- */
html[data-motion="on"] [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 18px, 0);
  transition: opacity .32s var(--ease), transform .32s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

html[data-motion="on"] [data-reveal].is-visible {
  opacity: 1;
  transform: none;
  will-change: auto;
}

/* ---------- 14. 工具类 ---------- */
.stack {
  display: flex;
  flex-direction: column;
  gap: var(--stack-gap, 16px);
}

.text-mono { font-family: var(--font-mono); }
.text-steel { color: var(--steel); }

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ---------- 15. 页脚 ---------- */
.site-footer {
  position: relative;
  z-index: 1;
  margin-top: clamp(48px, 7vw, 100px);
  padding: clamp(40px, 5vw, 72px) 0 34px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(16, 24, 43, .46), rgba(11, 14, 20, 1) 62%);
}

.footer-inner {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.footer-band {
  padding: 24px 0;
  border-bottom: 1px solid rgba(154, 166, 188, .10);
}

.footer-band:first-child { padding-top: 0; }
.footer-band:last-child { padding-bottom: 0; border-bottom: 0; }

.footer-band--watch {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 22px 44px;
  align-items: start;
}

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

.footer-kicker {
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .18em;
  color: var(--steel);
  opacity: .82;
}

.footer-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: rgba(27, 39, 64, .72);
  font-size: 13.5px;
  color: var(--cream);
  white-space: nowrap;
  transition: border-color .2s var(--ease), background-color .2s var(--ease), color .2s var(--ease);
}

.chip:hover {
  color: var(--cream);
  border-color: rgba(240, 78, 35, .5);
  background: rgba(240, 78, 35, .14);
}

.season-tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border: 1px solid var(--line-gold);
  border-radius: var(--radius-pill);
  background: rgba(232, 176, 75, .10);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--gold);
}

.footer-sign-name {
  margin-bottom: 6px;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--cream);
}

.footer-note {
  max-width: 34ch;
  font-size: 13px;
  line-height: 1.7;
  color: var(--steel);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 13.5px;
  color: var(--steel);
  transition: color .2s var(--ease);
}

.footer-links a:hover { color: var(--cream); }

.footer-band--meta { padding-bottom: 0; }

.footer-meta-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  margin-bottom: 18px;
}

.footer-meta-list li {
  display: flex;
  gap: 14px;
  font-size: 13px;
  line-height: 1.7;
}

.footer-meta-key {
  flex: 0 0 68px;
  color: var(--steel);
  opacity: .72;
}

.footer-meta-val {
  min-width: 0;
  color: var(--steel);
}

.footer-copyright {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .04em;
  color: rgba(154, 166, 188, .68);
}

/* ---------- 16. 响应式 ---------- */
@media (max-width: 1080px) {
  .nav-toggle { display: inline-flex; }

  .header-inner {
    flex-wrap: wrap;
    row-gap: 6px;
    padding: 9px 12px;
    border-radius: 26px;
  }

  .site-nav {
    order: 5;
    flex-basis: 100%;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height .3s var(--ease), opacity .24s var(--ease);
  }

  .site-header[data-open] .site-nav {
    max-height: 480px;
    opacity: 1;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    width: 100%;
    padding: 6px 0 8px;
  }

  .nav-link {
    padding: 11px 14px;
    font-size: 15px;
    text-align: left;
  }

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

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

@media (min-width: 861px) {
  .footer-band--links { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-meta-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 44px; }
}

@media (max-width: 560px) {
  body { font-size: 15px; }
  .brand-name { font-size: 14px; letter-spacing: .05em; }
  .brand-mark { width: 20px; height: 23px; }
  .btn { padding: 8px 13px; font-size: 13px; }
  .nav-toggle { padding: 7px 12px; font-size: 13px; }
  .header-actions { gap: 6px; }
  .footer-band--links { grid-template-columns: minmax(0, 1fr); }
  .footer-meta-list li { flex-direction: column; gap: 2px; }
  .footer-meta-key { flex: none; }
}

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

  html[data-motion="on"] [data-reveal],
  html[data-motion="on"] [data-reveal].is-visible {
    opacity: 1 !important;
    transform: none !important;
  }

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