/* ==========================================================================
   凤凰体育 · 共享站点样式 /assets/site.css
   侧边导览式骨架 + 切角档案面板 + 赛场夜灯色彩节奏
   ========================================================================== */

/* ---------- 1. 变量 ---------- */
:root {
  /* 品牌色 */
  --ink: #0B0F14;
  --ink-2: #151B23;
  --ink-3: #1E2A36;
  --flame: #FF4D1F;
  --ember: #D92B16;
  --volt: #2D8CFF;
  --sand: #D6A85F;
  --steel: #8A9AA8;
  --fog: #F4F7FA;
  --turf: #43E0D0;

  /* 尺度 */
  --rail: 88px;
  --bar: 64px;
  --bar-min: 64px;
  --gutter: 20px;
  --gap: 20px;
  --wrap: 1440px;
  --cut: 16px;

  /* 字体 */
  --font-display: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", "JetBrains Mono", SFMono-Regular, Consolas, monospace;

  /* 缓动 */
  --ease: cubic-bezier(.22, .61, .36, 1);
}

@media (min-width: 640px) {
  :root { --gutter: 32px; --gap: 24px; }
}

@media (min-width: 1080px) {
  :root {
    --bar: 76px;
    --bar-min: 60px;
    --gutter: 40px;
    --gap: 24px;
    --cut: 18px;
  }
}

/* ---------- 2. 重置 ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--bar) + 16px);
}

body {
  margin: 0;
  background-color: var(--ink);
  color: var(--fog);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

@media (min-width: 1080px) {
  body { font-size: 17px; }
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -.012em;
  margin: 0 0 .6em;
  color: var(--fog);
}

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

a { color: var(--volt); text-decoration: none; }
a:hover { color: var(--fog); }

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

ul, ol { margin: 0 0 1.1em; padding-left: 1.25em; }

button { font: inherit; }

hr {
  border: 0;
  height: 1px;
  background: var(--ink-3);
  margin: 2rem 0;
}

/* 焦点 */
:focus-visible,
a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--volt);
  outline-offset: 3px;
  border-radius: 2px;
}

.btn:focus-visible,
.nav-quick:focus-visible,
.footer-top:focus-visible {
  outline: none;
  border-color: var(--volt);
  box-shadow: inset 0 0 0 2px var(--volt);
}

::selection {
  background: var(--flame);
  color: #fff;
}

/* ---------- 3. 工具类 ---------- */
.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: .03em;
}

.l-wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

@media (min-width: 1080px) {
  .l-wrap {
    padding-inline-start: calc(var(--rail) + var(--gutter));
  }
}

.page-top {
  padding-block-start: calc(var(--bar) + clamp(28px, 5vw, 64px));
}

.grid {
  display: grid;
  gap: var(--gap);
  grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 720px) {
  .grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1080px) {
  .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ---------- 4. 跳转链 ---------- */
.skip-link {
  position: fixed;
  top: 10px;
  left: 50%;
  z-index: 300;
  transform: translate(-50%, -180%);
  padding: 11px 20px;
  background: var(--fog);
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .04em;
  text-decoration: none;
  border-radius: 2px;
  transition: transform .22s var(--ease);
}

.skip-link:focus-visible {
  transform: translate(-50%, 0);
  outline: 3px solid var(--flame);
  outline-offset: 0;
}

/* ---------- 5. 头部 ---------- */
.site-header {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 120;
  display: flex;
  align-items: stretch;
  height: var(--bar);
  transition: height .24s var(--ease);
  background: transparent;
}

.site-header::before,
.site-header::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  transition: opacity .24s var(--ease);
}

/* 首屏透明叠加：顶部略压暗，保证文字可读 */
.site-header::after {
  background: linear-gradient(180deg, rgba(11, 15, 20, .82) 0%, rgba(11, 15, 20, .38) 55%, rgba(11, 15, 20, 0) 100%);
  opacity: 1;
}

/* 滚动后碳黑实条 */
.site-header::before {
  background: rgba(21, 27, 35, .96);
  border-bottom: 1px solid var(--ink-3);
  opacity: 0;
}

.site-header[data-solid]::after { opacity: 0; }
.site-header[data-solid]::before { opacity: 1; }

@media (min-width: 1080px) {
  .site-header[data-solid] { height: var(--bar-min); }
}

/* 品牌竖轨 */
.brand-rail { display: none; }

@media (min-width: 1080px) {
  .brand-rail {
    display: flex;
    flex: 0 0 var(--rail);
    width: var(--rail);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border-inline-end: 1px solid rgba(30, 42, 54, .9);
  }
}

.brand-rail__mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 900;
  line-height: 1;
  color: #fff;
  text-decoration: none;
  background: linear-gradient(150deg, var(--flame), var(--ember));
  clip-path: polygon(0 0, 100% 0, 100% 72%, 72% 100%, 0 100%);
  transition: filter .18s var(--ease);
}

.brand-rail__mark:hover { filter: brightness(1.15); color: #fff; }

.brand-rail__season {
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 0;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--steel);
}

.brand-rail__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--flame);
  animation: railPulse 2.6s var(--ease) infinite;
}

@keyframes railPulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(255, 77, 31, .22); }
  50% { box-shadow: 0 0 0 6px rgba(255, 77, 31, .05); }
}

/* 导航外壳 */
.nav-shell {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding-inline: var(--gutter);
}

/* 移动端品牌 */
.mobile-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-inline-end: auto;
  color: var(--fog);
  text-decoration: none;
}

.mobile-brand:hover { color: var(--fog); }

.mobile-brand__mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 900;
  line-height: 1;
  color: #fff;
  background: linear-gradient(150deg, var(--flame), var(--ember));
  clip-path: polygon(0 0, 100% 0, 100% 72%, 72% 100%, 0 100%);
}

.mobile-brand__text {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 900;
  letter-spacing: .04em;
}

/* 汉堡按钮 */
.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 13px;
  background: rgba(11, 15, 20, .5);
  border: 1px solid var(--ink-3);
  border-radius: 2px;
  color: var(--fog);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .1em;
  cursor: pointer;
  transition: border-color .18s var(--ease), background-color .18s var(--ease);
}

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

.nav-toggle__bars {
  position: relative;
  display: block;
  width: 17px;
  height: 11px;
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 17px;
  height: 2px;
  background: var(--flame);
  transition: transform .24s var(--ease), top .24s var(--ease), bottom .24s var(--ease);
}

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

.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before {
  top: 4.5px;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after {
  bottom: 4.5px;
  transform: rotate(-45deg);
}

/* 主导航 —— 移动端折叠面板 */
.site-nav {
  position: fixed;
  inset-block-start: var(--bar);
  inset-inline: 0;
  z-index: 118;
  max-height: 0;
  overflow: hidden;
  visibility: hidden;
  background: var(--ink-2);
  border-block-end: 1px solid var(--ink-3);
  transition: max-height .34s var(--ease), visibility 0s linear .34s;
}

.site-nav[data-open] {
  max-height: calc(100dvh - var(--bar) - 16px);
  overflow-y: auto;
  visibility: visible;
  transition: max-height .34s var(--ease), visibility 0s linear 0s;
  box-shadow: 0 24px 48px rgba(0, 0, 0, .55);
}

.site-nav__list {
  list-style: none;
  margin: 0;
  padding: 6px 0 14px;
  display: flex;
  flex-direction: column;
}

.site-nav__item { margin: 0; }

.site-nav__link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px var(--gutter);
  color: rgba(244, 247, 250, .76);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  border-inline-start: 3px solid transparent;
  transition: color .18s var(--ease), background-color .18s var(--ease), border-color .18s var(--ease);
}

.site-nav__link:hover {
  color: var(--fog);
  background: rgba(30, 42, 54, .55);
}

.site-nav__num {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  color: var(--steel);
  transition: color .18s var(--ease);
}

.site-nav__label { line-height: 1.3; }

.site-nav__link--accent { border-inline-start-color: var(--flame); }

.site-nav__link[aria-current="page"] {
  color: var(--fog);
  background: rgba(255, 77, 31, .1);
}

.site-nav__link[aria-current="page"] .site-nav__num { color: var(--flame); }

/* 桌面端导航 */
@media (min-width: 1080px) {
  .site-nav {
    position: static;
    max-height: none;
    overflow: visible;
    visibility: visible;
    background: transparent;
    border: 0;
    box-shadow: none;
    transition: none;
  }

  .site-nav__list {
    flex-direction: row;
    align-items: center;
    gap: 2px;
    padding: 0;
    overflow: visible;
  }

  .site-nav__link {
    gap: 8px;
    padding: 10px 14px;
    font-size: 14.5px;
    border-inline-start: 0;
    border-bottom: 2px solid transparent;
    background: transparent;
  }

  .site-nav__link:hover {
    background: transparent;
    border-bottom-color: rgba(255, 77, 31, .55);
  }

  .site-nav__link--accent {
    background: rgba(255, 77, 31, .1);
    border-bottom-color: transparent;
  }

  .site-nav__link--accent:hover { background: rgba(255, 77, 31, .17); }

  .site-nav__link[aria-current="page"] {
    background: transparent;
    border-bottom-color: var(--flame);
  }

  .site-nav__link--accent[aria-current="page"] { background: rgba(255, 77, 31, .14); }

  .nav-toggle { display: none; }
  .mobile-brand { display: none; }
}

/* 快速访问 */
.nav-quick { display: none; }

@media (min-width: 1080px) {
  .nav-quick {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-inline-start: 8px;
    padding: 9px 16px;
    font-size: 13.5px;
    font-weight: 700;
    letter-spacing: .04em;
    color: var(--fog);
    text-decoration: none;
    background: rgba(255, 77, 31, .13);
    border: 1px solid rgba(255, 77, 31, .55);
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%);
    transition: background-color .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease);
  }

  .nav-quick::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--sand);
  }

  .nav-quick:hover {
    background: var(--flame);
    border-color: var(--flame);
    color: #fff;
  }

  .nav-quick:hover::before { background: #fff; }
}

/* ---------- 6. 通用组件 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .02em;
  line-height: 1.3;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 2px;
  cursor: pointer;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%);
  transition: background-color .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease);
}

.btn--flame {
  background: linear-gradient(135deg, var(--flame), var(--ember));
  color: #fff;
}

.btn--flame:hover {
  background: linear-gradient(135deg, #ff6a3f, var(--flame));
  color: #fff;
}

.btn--ghost {
  background: transparent;
  border-color: var(--ink-3);
  color: var(--fog);
}

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 22px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: .05em;
  color: var(--steel);
}

.breadcrumb a {
  color: var(--steel);
  text-decoration: none;
  transition: color .18s var(--ease);
}

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

.breadcrumb__sep { color: var(--ink-3); }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--steel);
  background: rgba(30, 42, 54, .55);
  border: 1px solid var(--ink-3);
  border-radius: 2px;
  white-space: nowrap;
}

.tag--flame { color: #ffd6c8; border-color: rgba(255, 77, 31, .5); background: rgba(255, 77, 31, .15); }
.tag--sand  { color: #f1dab2; border-color: rgba(214, 168, 95, .5); background: rgba(214, 168, 95, .13); }
.tag--volt  { color: #c9e2ff; border-color: rgba(45, 140, 255, .5); background: rgba(45, 140, 255, .15); }
.tag--turf  { color: #bdf7f1; border-color: rgba(67, 224, 208, .5); background: rgba(67, 224, 208, .12); }

.panel {
  position: relative;
  padding: clamp(20px, 3vw, 32px);
  background: var(--ink-2);
  border: 1px solid var(--ink-3);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%);
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px 24px;
  margin-block-end: clamp(24px, 4vw, 44px);
}

.section-head__kicker {
  position: relative;
  margin: 0 0 10px;
  padding-inline-start: 26px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--flame);
}

.section-head__kicker::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  inset-block-start: 50%;
  width: 18px;
  height: 2px;
  background: linear-gradient(90deg, var(--flame), var(--ember));
  transform: translateY(-50%) skewX(-28deg);
}

.section-head__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3.4vw, 2.6rem);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -.018em;
}

/* 图片容器基础（共享头尾不放图片，页面阶段复用） */
.media-frame {
  position: relative;
  overflow: hidden;
  background: linear-gradient(150deg, var(--ink-3), var(--ink-2));
  border: 1px solid var(--ink-3);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%);
}

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

.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(11, 15, 20, 0) 42%, rgba(11, 15, 20, .74) 100%);
}

.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; }

/* 滚动显现协议 */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

.reveal.is-revealed {
  opacity: 1;
  transform: none;
  will-change: auto;
}

/* ---------- 7. 页脚 ---------- */
.site-footer {
  position: relative;
  margin-block-start: clamp(56px, 9vw, 112px);
  padding-block-start: clamp(40px, 6vw, 72px);
  background: linear-gradient(180deg, var(--ink-2) 0%, var(--ink) 78%);
  border-block-start: 1px solid var(--ink-3);
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  inset-block-start: 0;
  inset-inline: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--flame) 0%, var(--ember) 34%, var(--volt) 62%, rgba(45, 140, 255, 0) 100%);
}

.footer-grid {
  display: grid;
  gap: 34px;
  grid-template-columns: minmax(0, 1fr);
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

@media (min-width: 720px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 32px; }
}

@media (min-width: 1080px) {
  .footer-grid {
    grid-template-columns: 1.15fr .8fr 1.15fr;
    gap: 48px;
    padding-inline-start: calc(var(--rail) + var(--gutter));
  }
}

.footer-block { min-width: 0; }

.footer-block__title {
  position: relative;
  margin: 0 0 16px;
  padding-inline-start: 13px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--sand);
}

.footer-block__title::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  inset-block-start: .35em;
  width: 4px;
  height: 13px;
  background: var(--flame);
  transform: skewX(-14deg);
}

.footer-block__lead {
  margin: 0 0 20px;
  max-width: 32ch;
  font-size: 14px;
  line-height: 1.75;
  color: rgba(244, 247, 250, .64);
}

.footer-facts {
  display: grid;
  gap: 8px;
  margin: 0;
  font-size: 13.5px;
}

.footer-facts__row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding-block-end: 8px;
  border-block-end: 1px dashed rgba(30, 42, 54, .95);
}

.footer-facts__row dt {
  flex: 0 0 auto;
  min-width: 60px;
  font-size: 11.5px;
  letter-spacing: .08em;
  color: var(--steel);
}

.footer-facts__row dd {
  margin: 0;
  color: rgba(244, 247, 250, .88);
}

.footer-links {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  display: grid;
  gap: 10px;
  font-size: 14px;
}

.footer-links:last-child { margin-bottom: 0; }

.footer-links a {
  display: inline-block;
  color: rgba(244, 247, 250, .74);
  text-decoration: none;
  border-block-end: 1px solid transparent;
  transition: color .18s var(--ease), border-color .18s var(--ease);
}

.footer-links a:hover {
  color: var(--fog);
  border-block-end-color: var(--flame);
}

.footer-links--contact { gap: 12px; margin-block-end: 22px; }

.footer-links--contact li {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 10px;
  align-items: baseline;
  color: rgba(244, 247, 250, .74);
  font-size: 13.5px;
  overflow-wrap: anywhere;
}

.footer-links__key {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .08em;
  color: var(--steel);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 24px;
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  margin-block-start: clamp(32px, 5vw, 56px);
  padding: 20px var(--gutter) 26px;
  border-block-start: 1px solid rgba(30, 42, 54, .95);
  font-size: 12.5px;
  color: var(--steel);
}

@media (min-width: 1080px) {
  .footer-legal {
    padding-inline-start: calc(var(--rail) + var(--gutter));
  }
}

.footer-legal__copy,
.footer-legal__note { margin: 0; }

.footer-legal__copy { color: rgba(244, 247, 250, .72); }

.footer-legal__note {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .04em;
  color: rgba(138, 154, 168, .9);
}

.footer-top {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-inline-start: auto;
  padding: 8px 14px;
  background: transparent;
  border: 1px solid var(--ink-3);
  border-radius: 2px;
  color: var(--steel);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .06em;
  cursor: pointer;
  transition: color .18s var(--ease), border-color .18s var(--ease);
}

.footer-top::before {
  content: "\2191";
  font-family: var(--font-mono);
  color: var(--flame);
}

.footer-top:hover {
  color: var(--fog);
  border-color: var(--flame);
}

/* ---------- 8. 减少动态 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }

  .brand-rail__dot { animation: none; box-shadow: 0 0 0 3px rgba(255, 77, 31, .22); }

  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}
