/* =========================================================
   凤凰体育安装 · 共享样式表 /assets/site.css
   视觉基调：深夜战术板 · 展览画册式排版
   ========================================================= */

/* ---------- 1. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 132px;
}
body, h1, h2, h3, h4, h5, p, ul, ol, li, figure, figcaption, blockquote, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg, video, canvas { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
table { border-collapse: collapse; }

/* ---------- 2. 设计变量 ---------- */
:root {
  --ink: #0E1B2C;
  --ink-deep: #08131F;
  --panel: #16263C;
  --slate: #243B55;
  --ash: #8A94A6;
  --white: #F5F7FA;
  --flare: #FF4D2E;
  --pulse: #2BE3C0;
  --paper: #EDE5D8;
  --amber: #FFB020;

  --line: rgba(245, 247, 250, .10);
  --line-strong: rgba(245, 247, 250, .22);
  --line-paper: rgba(14, 27, 44, .14);

  --font-title: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --font-body: system-ui, -apple-system, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-data: ui-monospace, "IBM Plex Mono", "Roboto Mono", "SFMono-Regular", Menlo, Consolas, monospace;

  --wrap: 1240px;
  --gutter: clamp(18px, 4vw, 44px);
  --header-h: 108px;
  --scoreline-h: 62px;
  --radius: 3px;
  --ease: cubic-bezier(.22, .68, .28, 1);
}

/* ---------- 3. 基础排版 ---------- */
body {
  margin: 0;
  background: var(--ink);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
h1, h2, h3, h4 {
  font-family: var(--font-title);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -.015em;
}
h1 { font-size: clamp(34px, 6.2vw, 72px); font-weight: 900; }
h2 { font-size: clamp(24px, 3.5vw, 42px); }
h3 { font-size: clamp(18px, 2.1vw, 24px); }
h4 { font-size: 16px; letter-spacing: .01em; }
main { display: block; }

.wrap {
  width: min(var(--wrap), calc(100% - var(--gutter) * 2));
  margin-inline: auto;
}
.mono {
  font-family: var(--font-data);
  font-variant-numeric: tabular-nums;
  letter-spacing: .03em;
}
.num {
  font-family: var(--font-data);
  font-variant-numeric: tabular-nums;
  letter-spacing: .06em;
}
.muted { color: var(--ash); font-size: 12.5px; line-height: 1.7; }
.lead {
  font-size: clamp(16px, 1.8vw, 19px);
  font-weight: 300;
  line-height: 1.72;
  color: rgba(245, 247, 250, .78);
}
.prose { max-width: 66ch; }
.prose p + p { margin-top: 1em; }
.rule { height: 1px; background: var(--line); border: 0; }

/* ---------- 4. 焦点与跳转 ---------- */
:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--pulse);
  outline-offset: 3px;
  border-radius: 2px;
}
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 200;
  padding: 11px 18px;
  background: var(--flare);
  color: #fff;
  font-size: 14px;
  border-radius: var(--radius);
  transform: translateY(-180%);
  transition: transform 160ms var(--ease);
}
.skip-link:focus,
.skip-link:focus-visible { transform: none; }

/* ---------- 5. 页头 ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 80;
  background: linear-gradient(180deg, rgba(14, 27, 44, .78) 0%, rgba(14, 27, 44, .18) 70%, rgba(14, 27, 44, 0) 100%);
  border-bottom: 1px solid transparent;
  transition: background 200ms var(--ease), border-color 200ms var(--ease), backdrop-filter 200ms var(--ease);
}
.site-header[data-scrolled] {
  background: rgba(14, 27, 44, .95);
  border-bottom-color: var(--line);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
}
.site-header[data-open] { background: var(--ink); }

.header-bar {
  max-height: 42px;
  overflow: hidden;
  opacity: 1;
  transition: max-height 200ms var(--ease), opacity 180ms var(--ease);
}
.site-header[data-scrolled] .header-bar { max-height: 0; opacity: 0; }
.header-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 7px 0 6px;
  border-bottom: 1px solid rgba(245, 247, 250, .07);
  font-family: var(--font-data);
  font-size: 11px;
  letter-spacing: .16em;
  color: rgba(245, 247, 250, .48);
}
.header-ticker { display: inline-flex; align-items: center; gap: 9px; }
.ticker-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--pulse);
  box-shadow: 0 0 0 4px rgba(43, 227, 192, .14);
}
.header-meta { letter-spacing: .12em; }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 66px;
  padding: 10px 0;
}

/* 品牌 */
.brand { display: inline-flex; align-items: center; gap: 12px; flex: 0 0 auto; }
.brand-mark {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  background: var(--flare);
  color: #fff;
  font-family: var(--font-title);
  font-weight: 900;
  font-size: 20px;
  line-height: 1;
  clip-path: polygon(0 0, 100% 0, 100% 70%, 70% 100%, 0 100%);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 17px;
  letter-spacing: .02em;
}
.brand-tag { font-size: 11px; color: var(--ash); letter-spacing: .04em; }

/* 导航 */
.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 44px);
  min-width: 0;
}
.nav-list { display: flex; align-items: center; gap: clamp(16px, 2.2vw, 28px); }
.nav-list a {
  position: relative;
  display: block;
  padding: 6px 0;
  font-size: 14.5px;
  color: rgba(245, 247, 250, .76);
  transition: color 140ms var(--ease);
}
.nav-list a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--flare);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 160ms var(--ease);
}
.nav-list a:hover,
.nav-list a:focus-visible { color: var(--white); }
.nav-list a:hover::after,
.nav-list a:focus-visible::after,
.nav-list a[aria-current="page"]::after { transform: scaleX(1); }
.nav-list a[aria-current="page"] { color: var(--white); font-weight: 600; }

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

/* 移动导航按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  transition: border-color 140ms var(--ease), background 140ms var(--ease);
}
.nav-toggle:hover,
.nav-toggle:focus-visible { border-color: var(--flare); }
.nav-toggle-bars { position: relative; display: block; width: 18px; height: 12px; }
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 1.5px;
  background: var(--white);
  transition: transform 180ms var(--ease), top 180ms var(--ease);
}
.nav-toggle-bars::before { top: 1px; }
.nav-toggle-bars::after { top: 9px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { top: 5px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { top: 5px; transform: rotate(-45deg); }
.nav-toggle-text { font-size: 13px; letter-spacing: .1em; }

/* ---------- 6. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: .02em;
  white-space: nowrap;
  transition: background 160ms var(--ease), color 160ms var(--ease), border-color 160ms var(--ease), transform 160ms var(--ease);
}
.btn--primary { background: var(--flare); color: #fff; }
.btn--primary:hover,
.btn--primary:focus-visible { background: #ff6448; transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--white); border-color: var(--line-strong); }
.btn--ghost:hover,
.btn--ghost:focus-visible { border-color: var(--flare); color: var(--paper); }
.btn--paper { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn--paper:hover,
.btn--paper:focus-visible { background: #fff; }
.btn--sm { padding: 7px 13px; font-size: 12.5px; }

/* ---------- 7. 区块节奏 ---------- */
.section {
  position: relative;
  padding-block: clamp(64px, 9vw, 120px);
}
.section--hero { padding-top: clamp(140px, 18vh, 220px); }
.section--panel { background: var(--panel); }
.section--ink { background: var(--ink); }
.section--paper { background: var(--paper); color: var(--ink); }
.section--paper .lead { color: rgba(14, 27, 44, .7); }
.section--paper .muted { color: rgba(14, 27, 44, .55); }
.section--paper .rule { background: var(--line-paper); }

.section-head { display: grid; gap: 14px; margin-bottom: clamp(24px, 4vw, 46px); }
.section-head--split {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: end;
  gap: clamp(18px, 3vw, 48px);
}
@media (max-width: 760px) {
  .section-head--split { grid-template-columns: minmax(0, 1fr); align-items: start; }
}

/* ---------- 8. 文字装饰 ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-data);
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--flare);
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: currentColor; }
.eyebrow--pulse { color: var(--pulse); }
.section--paper .eyebrow { color: #c8341a; }

.v-note {
  writing-mode: vertical-rl;
  text-orientation: upright;
  font-family: var(--font-data);
  font-size: 12px;
  letter-spacing: .32em;
  line-height: 1;
  color: var(--ash);
}
