/* ==========================================================================
   冠竞体育 · 共享样式表 /assets/site.css
   控制台框架 + 复古体育刊物长卷：深空蓝框架、奶油纸章节、6°斜切、细线网格
   ========================================================================== */

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

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

body {
  margin: 0;
  background: #0B1B2B;
  color: #BFE3E0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

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

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

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.06;
  text-wrap: balance;
}

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

input,
select,
textarea {
  font: inherit;
}

:focus-visible {
  outline: 2px solid #FF5A1F;
  outline-offset: 3px;
}

/* ---------- 2. 变量 ---------- */
:root {
  /* 品牌色板 */
  --deep-space: #0B1B2B;
  --midnight: #12283D;
  --cream: #F3EBDD;
  --glacier: #BFE3E0;
  --mist: #E8F4F2;
  --sand: #C9BFAE;
  --track-orange: #FF5A1F;
  --signal-red: #D7263D;
  --ink: #1A1410;
  --editorial-blue: #6F8794;

  /* 语义线色 */
  --line-dark: rgba(191, 227, 224, 0.18);
  --line-dark-strong: rgba(191, 227, 224, 0.34);
  --line-light: rgba(26, 20, 16, 0.16);
  --text-on-dark: rgba(232, 244, 242, 0.72);
  --text-on-dark-soft: rgba(232, 244, 242, 0.54);

  /* 字体族（本地优先，不加载远程字体） */
  --font-display: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --font-editorial: "Noto Serif SC", "Songti SC", "SimSun", Georgia, "Times New Roman", serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", ui-monospace, Menlo, Consolas, "Liberation Mono", monospace;

  /* 版式尺 */
  --container: 1480px;
  --gutter: clamp(16px, 3.4vw, 44px);
  --skew: 6deg;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --radius: 0;
}

/* ---------- 3. 中文排版与通用文本 ---------- */
.prose p,
.prose li {
  max-width: 38em;
}

.prose p + p {
  margin-top: 1em;
}

strong,
b {
  font-weight: 700;
}

.mono,
.stat-number,
.section-index {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

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

/* ---------- 4. 跳转链接 ---------- */
.skip-link {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 300;
  transform: translateY(-130%);
  padding: 12px 22px;
  background: var(--track-orange);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  transition: transform 0.18s var(--ease);
}

.skip-link:focus {
  transform: translateY(0);
}

/* ---------- 5. 头部框架条 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  color: var(--glacier);
  background: var(--deep-space);
  border-bottom: 1px solid var(--line-dark);
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: linear-gradient(to right, rgba(191, 227, 224, 0.055) 1px, transparent 1px);
  background-size: 118px 100%;
}

.header-frame {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas: "brand nav actions";
  align-items: center;
  gap: clamp(10px, 1.8vw, 30px);
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 10px var(--gutter);
  min-height: 68px;
  transition: min-height 0.22s var(--ease), padding 0.22s var(--ease);
}

/* 品牌锁形 */
.brand {
  grid-area: brand;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.brand-mark {
  display: inline-grid;
  grid-auto-flow: column;
  gap: 3px;
  align-items: end;
  height: 24px;
}

.brand-mark i {
  display: block;
  width: 5px;
  background: var(--glacier);
}

.brand-mark i:nth-child(1) {
  height: 11px;
  background: var(--sand);
}

.brand-mark i:nth-child(2) {
  height: 24px;
  background: var(--track-orange);
}

.brand-mark i:nth-child(3) {
  height: 17px;
}

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

.brand-cn {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 19px;
  letter-spacing: 0.08em;
  color: var(--mist);
}

.brand-en {
  margin-top: 5px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.26em;
  color: var(--editorial-blue);
  transition: opacity 0.2s var(--ease);
}

/* 移动目录按钮（桌面隐藏） */
.nav-toggle {
  grid-area: navtoggle;
  display: none;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border: 1px solid var(--line-dark-strong);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--glacier);
  transition: background 0.16s var(--ease), border-color 0.16s var(--ease), color 0.16s var(--ease);
}

.nav-toggle-bars {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  width: 16px;
}

.nav-toggle-bars span {
  display: block;
  height: 2px;
  background: var(--glacier);
  transition: transform 0.2s var(--ease), background 0.2s var(--ease);
}

.nav-toggle-label {
  line-height: 1;
}

/* 导航 */
.site-nav {
  grid-area: nav;
  min-width: 0;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.5vw, 26px);
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.nav-list::-webkit-scrollbar {
  display: none;
}

.nav-item {
  flex: 0 0 auto;
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 9px 0;
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--text-on-dark);
  white-space: nowrap;
  transition: color 0.16s var(--ease);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--track-orange);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.2s var(--ease);
}

.nav-link:hover {
  color: var(--mist);
}

.nav-link:hover::after {
  transform: scaleX(1);
}

.nav-index {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.02em;
  color: var(--editorial-blue);
}

.nav-link[aria-current="page"] {
  color: var(--mist);
  font-weight: 700;
}

.nav-link[aria-current="page"] .nav-index {
  color: var(--track-orange);
}

.nav-link[aria-current="page"]::after {
  transform: scaleX(1);
}

/* 右侧动作入口 */
.header-actions {
  grid-area: actions;
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.action-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 14px;
  border: 1px solid var(--line-dark-strong);
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--glacier);
  transition: background 0.16s var(--ease), border-color 0.16s var(--ease), color 0.16s var(--ease);
}

.action-link:hover {
  background: rgba(191, 227, 224, 0.1);
  border-color: var(--glacier);
}

.action-glyph {
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1;
}

.action-text {
  line-height: 1;
}

.action-link--accent {
  background: var(--track-orange);
  border-color: var(--track-orange);
  color: var(--ink);
  font-weight: 700;
}

.action-link--accent:hover {
  background: #FF7038;
  border-color: #FF7038;
  color: var(--ink);
}

/* 滚动进度 */
.header-progress {
  position: relative;
  z-index: 1;
  height: 2px;
  background: rgba(191, 227, 224, 0.1);
}

.header-progress-bar {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--glacier), var(--track-orange));
  transition: transform 0.1s linear;
}

/* 滚动收窄态 */
.site-header[data-condensed] .header-frame {
  min-height: 56px;
  padding-top: 6px;
  padding-bottom: 6px;
}

.site-header[data-condensed] .brand-en {
  opacity: 0.5;
}

/* ---------- 6. 页脚控制面板 ---------- */
.site-footer {
  position: relative;
  overflow: hidden;
  background: var(--midnight);
  color: var(--mist);
  border-top: 1px solid var(--line-dark-strong);
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(191, 227, 224, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(191, 227, 224, 0.035) 1px, transparent 1px);
  background-size: 96px 96px, 96px 96px;
}

.footer-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(26px, 4vw, 64px);
  max-width: var(--container);
  margin: 0 auto;
  padding: clamp(44px, 6vw, 84px) var(--gutter) clamp(28px, 4vw, 48px);
}

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

.brand--footer .brand-cn {
  font-size: 21px;
}

.brand--footer .brand-en {
  color: rgba(191, 227, 224, 0.6);
}

.footer-title {
  margin-bottom: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--track-orange);
}

.footer-note {
  max-width: 34em;
  font-size: 14px;
  line-height: 1.85;
  color: var(--text-on-dark-soft);
}

.footer-note--mono {
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  color: rgba(191, 227, 224, 0.66);
}

.footer-note--tight {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(191, 227, 224, 0.14);
}

.footer-nav,
.footer-legal {
  min-width: 0;
}

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

.footer-list a {
  font-size: 14px;
  letter-spacing: 0.02em;
  color: rgba(232, 244, 242, 0.78);
  transition: color 0.16s var(--ease);
}

.footer-list a:hover {
  color: var(--track-orange);
}

.footer-base {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px 26px;
  max-width: var(--container);
  margin: 0 auto;
  padding: 18px var(--gutter) 28px;
  border-top: 1px solid rgba(191, 227, 224, 0.14);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--text-on-dark-soft);
}

.footer-copy,
.footer-icp,
.footer-meta {
  margin: 0;
}

.footer-icp {
  color: rgba(191, 227, 224, 0.72);
}

/* ---------- 7. 容器与网格 ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.container--narrow {
  max-width: 920px;
}

.container--editorial {
  max-width: 1120px;
}

.grid {
  display: grid;
  gap: clamp(20px, 3vw, 40px);
}

.grid--7-5 {
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
}

.grid--5-7 {
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
}

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

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

/* ---------- 8. 色带章节 ---------- */
.section {
  position: relative;
  padding: clamp(48px, 7vw, 110px) 0;
}

.section--cream {
  background: var(--cream);
  color: var(--ink);
}

.section--mist {
  background: var(--mist);
  color: var(--ink);
}

.section--deep {
  background: var(--deep-space);
  color: var(--glacier);
}

.section--midnight {
  background: var(--midnight);
  color: var(--mist);
}

.section--cream .lede,
.section--mist .lede {
  color: rgba(26, 20, 16, 0.78);
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--track-orange);
}

.section-index {
  font-family: var(--font-editorial);
  font-size: 14px;
  letter-spacing: 0.12em;
  color: var(--editorial-blue);
}

.section-title {
  font-size: clamp(30px, 4vw, 54px);
}

.lede {
  max-width: 36em;
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.72;
}

.rule {
  height: 1px;
  border: 0;
  margin: 0;
  background: currentColor;
  opacity: 0.2;
}

/* ---------- 9. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.04em;
  line-height: 1;
  transition: background 0.16s var(--ease), color 0.16s var(--ease), border-color 0.16s var(--ease);
}

.btn--primary {
  background: var(--track-orange);
  border-color: var(--track-orange);
  color: var(--ink);
}

.btn--primary:hover {
  background: #FF7038;
  border-color: #FF7038;
}

.btn--ghost {
  border-color: var(--line-dark-strong);
  color: var(--glacier);
}

.btn--ghost:hover {
  background: rgba(191, 227, 224, 0.12);
  border-color: var(--glacier);
}

.btn--ink {
  border-color: rgba(26, 20, 16, 0.35);
  color: var(--ink);
}

.btn--ink:hover {
  background: rgba(26, 20, 16, 0.08);
  border-color: var(--ink);
}

/* ---------- 10. 面包屑 ---------- */
.breadcrumb {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--editorial-blue);
}

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

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

.breadcrumb-item + .breadcrumb-item::before {
  content: "/";
  color: rgba(111, 135, 148, 0.6);
}

.breadcrumb a {
  color: rgba(232, 244, 242, 0.7);
  transition: color 0.16s var(--ease);
}

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

.breadcrumb [aria-current="page"] {
  color: var(--glacier);
}

.breadcrumb--light {
  color: rgba(26, 20, 16, 0.55);
}

.breadcrumb--light a {
  color: rgba(26, 20, 16, 0.7);
}

.breadcrumb--light [aria-current="page"] {
  color: var(--ink);
}

/* ---------- 11. 标签与数据数字 ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  border: 1px solid currentColor;
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  line-height: 1.5;
}

.tag--orange {
  color: var(--track-orange);
}

.tag--mint {
  color: #2E6C68;
}

.tag--red {
  color: var(--signal-red);
}

.stat-number {
  font-weight: 700;
  font-size: clamp(40px, 7vw, 96px);
  line-height: 0.9;
  letter-spacing: -0.02em;
  color: var(--track-orange);
}

/* ---------- 12. 图片容器基础规则 ---------- */
.media-frame {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--midnight);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
}

.media-frame img,
.media-frame video,
.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, 27, 43, 0) 52%, rgba(11, 27, 43, 0.52) 100%);
}

.media-frame--16x9 {
  aspect-ratio: 16 / 9;
}

.media-frame--21x9 {
  aspect-ratio: 21 / 9;
}

.media-frame--4x5 {
  aspect-ratio: 4 / 5;
}

.media-frame--1x1 {
  aspect-ratio: 1 / 1;
}

.media-frame--clip {
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 34px), 0 100%);
}

.media-frame__caption {
  display: block;
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--editorial-blue);
}

/* ---------- 13. 渐显 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- 14. 响应式 ---------- */
@media (max-width: 1180px) {
  .grid--7-5,
  .grid--5-7 {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 1040px) {
  html {
    scroll-padding-top: 80px;
  }

  .header-frame {
    grid-template-columns: auto auto auto;
    grid-template-areas:
      "brand navtoggle actions"
      "nav nav nav";
    justify-content: space-between;
    align-items: center;
    min-height: 60px;
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .nav-toggle {
    display: inline-flex;
    grid-area: navtoggle;
    justify-self: center;
  }

  .site-nav {
    grid-area: nav;
    max-height: 0;
    overflow: hidden;
    visibility: hidden;
    transition: max-height 0.28s var(--ease), visibility 0.28s var(--ease);
  }

  .site-header[data-open] .site-nav {
    max-height: min(70vh, 540px);
    overflow-y: auto;
    visibility: visible;
  }

  .site-header[data-open] .nav-toggle {
    background: var(--track-orange);
    border-color: var(--track-orange);
    color: var(--ink);
  }

  .site-header[data-open] .nav-toggle-bars span {
    background: var(--ink);
  }

  .site-header[data-open] .nav-toggle-bars span:first-child {
    transform: translateY(3px) rotate(45deg);
  }

  .site-header[data-open] .nav-toggle-bars span:last-child {
    transform: translateY(-3px) rotate(-45deg);
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 0 16px;
    border-top: 1px solid var(--line-dark);
  }

  .nav-item {
    flex: 1 1 auto;
  }

  .nav-link {
    width: 100%;
    padding: 14px 0;
    font-size: 16px;
    border-bottom: 1px solid rgba(191, 227, 224, 0.08);
  }

  .nav-link::after {
    display: none;
  }

  .nav-link[aria-current="page"] {
    color: var(--track-orange);
  }

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

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

  .footer-brand {
    grid-column: 1 / -1;
  }
}

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

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

  .brand-en {
    font-size: 8px;
    letter-spacing: 0.18em;
  }

  .action-link {
    padding: 9px 11px;
    font-size: 12px;
  }

  .nav-toggle {
    padding: 8px 10px;
    font-size: 10px;
    letter-spacing: 0.12em;
  }

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

  .footer-base {
    justify-content: flex-start;
  }

  .media-frame--21x9 {
    aspect-ratio: 16 / 9;
  }
}

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

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

  .header-progress-bar {
    transition: none;
  }

  .nav-link::after {
    transition: none;
  }
}
