/* =========================================================
   333体育官网 · 共享样式表  /assets/site.css
   夜赛底色 / 城市坐标蓝图体系 / 近单色 + 三点亮色
   ========================================================= */

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

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

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

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

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

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

/* ---------- 2 · 变量 ---------- */
:root {
  --ink-void:     #050A14;
  --ink-base:     #0A1224;
  --ink-raised:   #111E38;
  --line-steel:   #22314F;
  --orange:       #FF8A2B;
  --orange-deep:  #C25E14;
  --red:          #E23B4E;
  --cyan:         #3FE0D0;
  --fog:          #EEF3FB;
  --blue-gray:    #9FB0C8;
  --paper:        #F5F1E8;
  --muted:        #6F8199;
  --ghost:        #4A6488;

  --font-display: "Archivo Narrow", "Oswald", "Noto Sans SC",
                  "Source Han Sans SC", "PingFang SC", "Microsoft YaHei",
                  system-ui, sans-serif;
  --font-body:    "Noto Sans SC", "Source Han Sans SC", "PingFang SC",
                  "Hiragino Sans GB", "Microsoft YaHei", system-ui,
                  -apple-system, "Segoe UI", sans-serif;
  --font-mono:    "JetBrains Mono", "Roboto Mono", ui-monospace,
                  SFMono-Regular, Menlo, Consolas, monospace;

  --shell: 1280px;
  --header-h: 64px;
  --radius-xs: 3px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-pill: 999px;
  --shadow-panel: 0 18px 42px -26px rgba(0, 0, 0, .95);
}

/* ---------- 3 · 基础排版 ---------- */
body {
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.75;
  letter-spacing: .01em;
  color: var(--fog);
  background-color: var(--ink-base);
  background-image:
    linear-gradient(rgba(34, 49, 79, .42) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 49, 79, .42) 1px, transparent 1px);
  background-size: 88px 88px;
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -.015em;
  line-height: 1.12;
  color: var(--fog);
}

h1 { font-size: clamp(34px, 5.2vw, 62px); }
h2 { font-size: clamp(26px, 3.4vw, 40px); }
h3 { font-size: clamp(19px, 2vw, 22px); }

p { text-wrap: pretty; }

strong, b { font-weight: 700; }

::selection {
  background: var(--orange);
  color: #08101E;
}

/* ---------- 4 · 焦点与可达性 ---------- */
:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: var(--radius-xs);
}

.skip-link {
  position: absolute;
  left: 18px;
  top: -80px;
  z-index: 140;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 700;
  color: #08101E;
  background: var(--orange);
  border-radius: var(--radius-sm);
  transition: top .2s ease;
}

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

/* ---------- 5 · 容器与栅格 ---------- */
.shell {
  width: min(100% - 40px, var(--shell));
  margin-inline: auto;
}

.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)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ---------- 6 · 页头 · 浮岛双层结构 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-bar {
  background: rgba(10, 18, 36, .9);
  border-bottom: 1px solid var(--line-steel);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.header-bar__inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: var(--header-h);
  padding-block: 10px;
}

.header-bar__inner,
.brand__mark,
.coord-strip__inner {
  transition: min-height .26s ease, padding .26s ease,
              width .26s ease, height .26s ease, font-size .26s ease;
}

/* 品牌字标 */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 56px;
  height: 38px;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1;
  color: #08101E;
  background: linear-gradient(135deg, var(--orange), var(--orange-deep));
  border-radius: var(--radius-xs);
}

.brand__line {
  font-size: 12.5px;
  letter-spacing: .18em;
  color: var(--blue-gray);
  white-space: nowrap;
}

/* 悬浮胶囊导航 */
.nav {
  margin-left: auto;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 5px;
  background: rgba(17, 30, 56, .78);
  border: 1px solid var(--line-steel);
  border-radius: var(--radius-pill);
}

.nav__link {
  display: block;
  padding: 8px 15px;
  font-size: 14px;
  white-space: nowrap;
  color: var(--blue-gray);
  border-radius: var(--radius-pill);
  transition: color .18s ease, background-color .18s ease;
}

.nav__link:hover {
  color: var(--fog);
  background: rgba(63, 224, 208, .1);
}

.nav__link[aria-current="page"] {
  color: #08101E;
  font-weight: 700;
  background: var(--orange);
}

/* 移动端菜单按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  margin-left: auto;
  padding: 9px 15px;
  font-size: 13px;
  letter-spacing: .1em;
  color: var(--fog);
  background: rgba(17, 30, 56, .78);
  border: 1px solid var(--line-steel);
  border-radius: var(--radius-pill);
}

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

.nav-toggle__bars {
  position: relative;
  width: 16px;
  height: 2px;
  background: var(--orange);
  border-radius: 2px;
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 16px;
  height: 2px;
  background: var(--orange);
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}

.nav-toggle__bars::before { top: -5px; }
.nav-toggle__bars::after  { top: 5px; }

.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after  { transform: translateY(-5px) rotate(-45deg); }

/* 城市坐标标尺 */
.coord-strip {
  position: relative;
  background: linear-gradient(90deg, var(--ink-void) 0%, var(--ink-base) 46%, var(--ink-base) 100%);
  border-bottom: 1px solid var(--line-steel);
}

.coord-strip::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 5px;
  pointer-events: none;
  opacity: .85;
  background-image: repeating-linear-gradient(
    90deg,
    var(--line-steel) 0 1px,
    transparent 1px 24px
  );
}

.coord-strip__inner {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 46px;
  padding-block: 7px;
}

.coord-strip__label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--muted);
  white-space: nowrap;
}

.coord-strip__label b {
  font-weight: 500;
  color: var(--cyan);
}

.coord-strip__links {
  display: flex;
  gap: 10px;
  margin-left: auto;
}

/* 状态标签 */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 13px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .04em;
  white-space: nowrap;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}

.chip::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.chip--orange {
  color: var(--orange);
  background: rgba(255, 138, 43, .1);
  border-color: rgba(255, 138, 43, .5);
}
.chip--orange:hover {
  color: var(--orange);
  background: rgba(255, 138, 43, .22);
  border-color: var(--orange);
}

.chip--cyan {
  color: var(--cyan);
  background: rgba(63, 224, 208, .08);
  border-color: rgba(63, 224, 208, .45);
}
.chip--cyan:hover {
  background: rgba(63, 224, 208, .18);
  border-color: var(--cyan);
}

.chip--red {
  color: var(--red);
  background: rgba(226, 59, 78, .1);
  border-color: rgba(226, 59, 78, .45);
}
.chip--red:hover {
  background: rgba(226, 59, 78, .2);
  border-color: var(--red);
}

/* 滚动收窄态 */
.site-header[data-scrolled] .header-bar__inner {
  min-height: 52px;
  padding-block: 6px;
}

.site-header[data-scrolled] .brand__mark {
  width: 48px;
  height: 32px;
  font-size: 19px;
}

.site-header[data-scrolled] .coord-strip__inner {
  min-height: 36px;
  padding-block: 3px;
}

.site-header[data-scrolled] .coord-strip {
  box-shadow: 0 14px 34px -26px rgba(0, 0, 0, 1);
}

/* ---------- 7 · 页脚 · 城市坐标分区 ---------- */
.site-footer {
  position: relative;
  margin-top: 80px;
  color: var(--blue-gray);
  background: var(--ink-void);
  border-top: 1px solid var(--line-steel);
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 6px;
  pointer-events: none;
  opacity: .55;
  background-image: repeating-linear-gradient(
    90deg,
    rgba(63, 224, 208, .5) 0 1px,
    transparent 1px 26px
  );
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.3fr;
  gap: 40px 32px;
  padding-block: 58px 42px;
}

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

.brand--footer .brand__mark {
  width: 50px;
  height: 34px;
  font-size: 20px;
}

.footer-brand__desc {
  max-width: 34ch;
  font-size: 13.5px;
  line-height: 1.85;
  color: var(--blue-gray);
}

.footer-legal {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .05em;
  color: var(--muted);
}

.footer-col__title {
  position: relative;
  margin-bottom: 18px;
  padding-bottom: 11px;
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--fog);
  border-bottom: 1px solid var(--line-steel);
}

.footer-col__title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 32px;
  height: 2px;
  background: var(--orange);
}

.footer-list {
  display: grid;
  gap: 9px;
}

.footer-list a {
  display: inline-block;
  font-size: 14px;
  color: var(--blue-gray);
  transition: color .18s ease, transform .18s ease;
}

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

.footer-list--nodes {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px 14px;
  counter-reset: node;
}

.footer-list--nodes li { counter-increment: node; }

.footer-list--nodes a {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
}

.footer-list--nodes a::before {
  content: counter(node, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .06em;
  color: var(--ghost);
}

.footer-contact {
  display: grid;
  gap: 12px;
}

.footer-contact__row {
  display: flex;
  gap: 12px;
  font-size: 13.5px;
  line-height: 1.7;
}

.footer-contact__key {
  flex: 0 0 auto;
  min-width: 56px;
  padding-top: 2px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  color: var(--cyan);
}

.footer-contact__value {
  color: var(--fog);
  word-break: break-word;
}

.footer-note {
  margin-top: 16px;
  padding-top: 14px;
  font-size: 12.5px;
  line-height: 1.8;
  color: var(--muted);
  border-top: 1px dashed var(--line-steel);
}

.footer-base {
  background: #03060C;
  border-top: 1px solid var(--line-steel);
}

.footer-base__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 28px;
  padding-block: 18px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: .05em;
  color: var(--muted);
}

.footer-base__mark {
  color: var(--ghost);
}

.footer-base__links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin-left: auto;
}

.footer-base__links a {
  color: var(--blue-gray);
  transition: color .18s ease;
}

.footer-base__links a:hover { color: var(--cyan); }

/* ---------- 8 · 通用按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 26px;
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: .04em;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  transition: background-color .2s ease, color .2s ease,
              border-color .2s ease, transform .2s ease;
}

.btn--solid {
  color: #0A1224;
  background: var(--orange);
}
.btn--solid:hover {
  background: #FFA757;
  transform: translateY(-2px);
}

.btn--line {
  color: var(--fog);
  background: rgba(17, 30, 56, .6);
  border-color: var(--line-steel);
}
.btn--line:hover {
  color: var(--orange);
  border-color: var(--orange);
}

.btn--cyan {
  color: #04221F;
  background: var(--cyan);
}
.btn--cyan:hover {
  background: #68EFE2;
  transform: translateY(-2px);
}

/* ---------- 9 · 面包屑 ---------- */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .05em;
  color: var(--muted);
}

.breadcrumbs li {
  display: flex;
  align-items: center;
  gap: 9px;
}

.breadcrumbs li + li::before {
  content: "/";
  color: var(--line-steel);
}

.breadcrumbs a { transition: color .18s ease; }
.breadcrumbs a:hover { color: var(--orange); }
.breadcrumbs [aria-current="page"] { color: var(--blue-gray); }

/* ---------- 10 · 章节与页头带 ---------- */
.page-head {
  position: relative;
  padding-block: clamp(34px, 5vw, 66px) clamp(26px, 4vw, 48px);
  border-bottom: 1px solid var(--line-steel);
}

.section {
  position: relative;
  padding-block: clamp(52px, 8vw, 104px);
}

.section--tight {
  padding-block: clamp(34px, 5vw, 64px);
}

.section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 16px 32px;
  margin-bottom: clamp(26px, 4vw, 48px);
}

.section__title {
  font-size: clamp(26px, 3.4vw, 40px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--cyan);
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--cyan);
  opacity: .7;
}

/* ---------- 11 · 卡片与标签 ---------- */
.card {
  position: relative;
  padding: 22px;
  background: linear-gradient(180deg, rgba(17, 30, 56, .94), rgba(10, 18, 36, .94));
  border: 1px solid var(--line-steel);
  border-radius: var(--radius-md);
}

.card--paper {
  color: #101A2E;
  background: var(--paper);
  border-color: #D8D1C0;
  border-radius: var(--radius-sm);
  box-shadow: 6px 6px 0 -1px rgba(34, 49, 79, .7);
}

.card--paper .card__title,
.card--paper h3 { color: #101A2E; }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--blue-gray);
  background: rgba(17, 30, 56, .7);
  border: 1px solid var(--line-steel);
  border-radius: var(--radius-xs);
}

.tag--paper {
  color: #25314A;
  background: var(--paper);
  border-color: #D8D1C0;
}

/* ---------- 12 · 图片容器基座 ---------- */
.media-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #111E38 0%, #050A14 100%);
  border: 1px solid var(--line-steel);
  border-radius: var(--radius-md);
}

.media-frame__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.05);
  transition: transform .5s cubic-bezier(.22, .8, .3, 1);
}

.media-frame:hover .media-frame__img {
  transform: scale(1.03);
}

.media-frame__label {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 2;
  padding: 3px 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  color: #101A2E;
  background: var(--paper);
  border-radius: var(--radius-xs);
}

.media-frame::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 26px;
  height: 26px;
  pointer-events: none;
  border-top: 2px solid var(--orange);
  border-left: 2px solid var(--orange);
  opacity: .85;
}

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

/* ---------- 13 · 滚动显现 ---------- */
html.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .55s ease,
              transform .55s cubic-bezier(.22, .8, .3, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

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

/* ---------- 14 · 响应式 ---------- */
@media (max-width: 1080px) {
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

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

  .nav-toggle { display: inline-flex; }

  .nav {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 8px);
    display: none;
    margin: 0;
    padding: 12px;
    background: rgba(8, 14, 28, .98);
    border: 1px solid var(--line-steel);
    border-radius: 14px;
    box-shadow: var(--shadow-panel);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
  }

  .nav[data-open] {
    display: block;
    animation: navDrop .22s ease both;
  }

  .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 0;
    background: none;
    border: 0;
    border-radius: 0;
  }

  .nav__link {
    padding: 12px 14px;
    font-size: 15px;
    border-radius: 8px;
  }

  @keyframes navDrop {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: none; }
  }
}

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

  .shell { width: min(100% - 28px, var(--shell)); }

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

  .brand__line { display: none; }

  .coord-strip__label { font-size: 11px; letter-spacing: .04em; }

  .coord-strip__inner {
    flex-wrap: wrap;
    gap: 8px 12px;
    padding-block: 9px;
  }

  .coord-strip__links { margin-left: 0; }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 34px;
    padding-block: 44px 32px;
  }

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

  .footer-base__links { margin-left: 0; }

  .page-head { padding-block: 28px 22px; }
}

/* ---------- 15 · 动效降级 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

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

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

  .media-frame:hover .media-frame__img { transform: none; }
}
