/* ===========================================================
   万合足球站 · 共享样式表  /assets/site.css
   设计骨架：夜空深蓝底色 + 左侧档案奶油竖列 + 顶部 56px 横条
   构成框架式导航；经幡五色承担状态语义；粗边框 + 硬阴影。
   =========================================================== */

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

html { -webkit-text-size-adjust: 100%; }

body, h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd, ul, ol { margin: 0; }

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

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

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

a { color: inherit; }

table { border-collapse: collapse; }

/* ---------- 2. 变量 ---------- */
:root {
  --night: #0B1B33;
  --night-deep: #050D1A;
  --dusk: #16304F;
  --cream: #F3EDE0;
  --paper-shade: #E7DECA;
  --ink: #17120E;

  --red: #D93A2B;
  --saffron: #E4B03C;
  --green: #2F8F63;
  --blue: #2E6FB7;
  --blue-lite: #6FA8DE;
  --snow: #B9C3CE;
  --snow-dim: #9AA9B8;
  --spark: #63E0C0;

  --bar: 56px;
  --rail: 78px;
  --line: 3px;
  --gutter: 24px;
  --maxw: 1440px;

  --font-display: "PingFang SC", "Hiragino Sans GB", "Source Han Sans SC",
    "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --font-body: var(--font-display);
  --font-mono: ui-monospace, SFMono-Regular, "Cascadia Mono", "Menlo",
    "Consolas", "DejaVu Sans Mono", "Courier New", monospace;

  --shadow-hard: 6px 6px 0 var(--ink);
  --shadow-night: 6px 6px 0 var(--night-deep);
}

/* ---------- 3. 基础排版 ---------- */
body {
  background: var(--night);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-weight: 800; line-height: 1.12; letter-spacing: .01em; }
h1 { font-size: clamp(32px, 5vw, 60px); line-height: 1.05; }
h2 { font-size: clamp(24px, 3vw, 44px); }
h3 { font-size: clamp(18px, 2vw, 24px); line-height: 1.3; }
h4 { font-size: 18px; }

.lede { font-size: 18px; line-height: 1.75; max-width: 62ch; }

.mono {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .08em;
  line-height: 1.6;
}

.meta {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .08em;
  opacity: .72;
}

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

.eyebrow::before {
  content: "";
  width: 28px;
  height: 3px;
  background: var(--red);
  flex: none;
}

/* ---------- 4. 焦点与锚点 ---------- */
:focus-visible {
  outline: 2px solid var(--spark);
  outline-offset: 2px;
}

[id] { scroll-margin-top: calc(var(--bar) + 24px); }

.skip-link {
  position: fixed;
  left: 12px;
  top: -140px;
  z-index: 200;
  padding: 12px 18px;
  background: var(--cream);
  color: var(--ink);
  border: var(--line) solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  font-weight: 700;
  text-decoration: none;
  transition: top .15s ease;
}

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

/* ---------- 5. 容器与分区 ---------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(40px, 6vw, 88px); }
.section--tight { padding-block: clamp(24px, 3vw, 44px); }

.page-surface {
  background: var(--cream);
  color: var(--ink);
  border-top: var(--line) solid var(--ink);
  border-bottom: var(--line) solid var(--ink);
}

.band--night { background: var(--night); color: var(--cream); }
.band--dusk { background: var(--dusk); color: var(--cream); }

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px 20px;
  padding-bottom: 14px;
  margin-bottom: 26px;
  border-bottom: var(--line) solid currentColor;
}

/* ---------- 6. 栅格 ---------- */
.grid { display: grid; gap: var(--gutter); }

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

.grid--auto {
  display: grid;
  gap: var(--gutter);
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.span-1, .span-2, .span-3, .span-4, .span-5, .span-6,
.span-7, .span-8, .span-9, .span-10, .span-11, .span-12 { grid-column: auto; }

/* ---------- 7. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 20px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .04em;
  text-decoration: none;
  cursor: pointer;
  background: var(--cream);
  color: var(--ink);
  border: var(--line) solid var(--ink);
  border-radius: 0;
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform .12s ease, box-shadow .12s ease,
    background-color .12s ease, color .12s ease;
}

.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }

.btn--primary { background: var(--red); color: var(--cream); }
.btn--primary:hover { background: #E84A3A; }

.btn--ghost {
  background: transparent;
  color: var(--cream);
  border-color: var(--cream);
  box-shadow: 4px 4px 0 rgba(243, 237, 224, .32);
}

.btn--ghost:hover { background: rgba(243, 237, 224, .1); box-shadow: 6px 6px 0 rgba(243, 237, 224, .48); }

.btn--compact {
  min-height: 44px;
  padding: 8px 14px;
  font-size: 14px;
  box-shadow: 3px 3px 0 var(--ink);
}

.btn--compact:hover { box-shadow: 5px 5px 0 var(--ink); }

/* ---------- 8. 状态灯 ---------- */
.status-light {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 12px;
  border: 2px solid rgba(243, 237, 224, .3);
  color: var(--cream);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .08em;
  transition: border-color .12s ease, background-color .12s ease;
}

.status-light:hover { border-color: var(--spark); background: rgba(99, 224, 192, .08); }

.status-light__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
  flex: none;
  box-shadow: 0 0 0 3px rgba(47, 143, 99, .28);
}

.status-light__dot[data-status="live"] { background: var(--green); }
.status-light__dot[data-status="maintenance"] { background: var(--saffron); box-shadow: 0 0 0 3px rgba(228, 176, 60, .28); }
.status-light__dot[data-status="fault"] { background: var(--red); box-shadow: 0 0 0 3px rgba(217, 58, 43, .3); }

/* ---------- 9. 头部：顶部横条 ---------- */
.site-header { position: sticky; top: 0; z-index: 60; }

.masthead {
  display: flex;
  align-items: center;
  gap: 14px;
  height: var(--bar);
  padding: 0 16px;
  background: var(--night);
  border-bottom: var(--line) solid var(--saffron);
}

.masthead__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  text-decoration: none;
  color: var(--cream);
  flex: none;
}

.masthead__mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  background: var(--red);
  color: var(--cream);
  border: 2px solid var(--cream);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1;
}

.masthead__name {
  font-size: clamp(15px, 2.2vw, 18px);
  font-weight: 800;
  letter-spacing: .04em;
  white-space: nowrap;
}

.masthead__tagline {
  margin-left: 4px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .08em;
  color: var(--snow-dim);
  white-space: nowrap;
}

.masthead__current {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: 18px;
  padding: 4px 10px;
  border: 2px solid rgba(228, 176, 60, .42);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .08em;
  color: var(--saffron);
  white-space: nowrap;
}

.masthead__current-label { color: var(--snow-dim); }

.masthead__tools {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
}

.masthead .btn--primary {
  border-color: var(--cream);
  box-shadow: 4px 4px 0 rgba(243, 237, 224, .34);
}

.masthead .btn--primary:hover { box-shadow: 6px 6px 0 rgba(243, 237, 224, .5); }

/* ---------- 10. 移动导航按钮 ---------- */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  min-width: 44px;
  padding: 0 12px;
  background: transparent;
  color: var(--cream);
  border: 2px solid rgba(243, 237, 224, .45);
  border-radius: 0;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .08em;
  transition: border-color .12s ease, background-color .12s ease;
}

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

.nav-toggle__box {
  display: grid;
  gap: 3px;
  width: 16px;
  flex: none;
}

.nav-toggle__box span {
  display: block;
  height: 2px;
  background: currentColor;
  transition: transform .18s ease, opacity .18s ease;
}

.site-header[data-open] .nav-toggle__box span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.site-header[data-open] .nav-toggle__box span:nth-child(2) { opacity: 0; }
.site-header[data-open] .nav-toggle__box span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* ---------- 11. 导航：竖列 / 抽屉 ---------- */
.frame-nav {
  background: var(--cream);
  border-right: var(--line) solid var(--ink);
}

.frame-nav__list { display: flex; flex-direction: column; }

.frame-nav__item { border-bottom: var(--line) solid var(--ink); }

.frame-nav__link {
  display: block;
  width: 100%;
  min-height: 44px;
  padding: 16px 18px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: .06em;
  transition: background-color .12s ease, color .12s ease;
}

.frame-nav__link:hover { background: var(--paper-shade); }

.frame-nav__link[aria-current="page"] {
  background: var(--red);
  color: var(--cream);
}

/* ---------- 12. 滚动进度 ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  z-index: 80;
  pointer-events: none;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--red), var(--saffron) 55%, var(--spark));
  will-change: transform;
}

/* ---------- 13. 响应式头部 ---------- */
@media (max-width: 1200px) {
  .masthead__tagline { display: none; }
}

@media (max-width: 900px) {
  .masthead__current { display: none; }
}

@media (max-width: 1023.98px) {
  .nav-toggle { display: inline-flex; }

  .frame-nav {
    position: fixed;
    top: var(--bar);
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 59;
    border-right: 0;
    border-top: var(--line) solid var(--ink);
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
  }

  .site-header[data-open] .frame-nav {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .site-header[data-open] { position: sticky; }

  .frame-nav__item:last-child { border-bottom: 0; }
}

@media (max-width: 560px) {
  .masthead { gap: 10px; padding: 0 12px; }
  .masthead__mark { width: 28px; height: 28px; font-size: 12px; }
  .status-light { padding: 0 8px; }
  .status-light__text { display: none; }
  .nav-toggle { padding: 0; width: 44px; justify-content: center; }
  .nav-toggle__text { display: none; }
  .masthead .btn--compact { padding: 8px 12px; font-size: 13px; }
}

/* ---------- 14. 桌面框架：左侧竖列 + 固定横条 ---------- */
@media (min-width: 1024px) {
  body {
    padding-top: var(--bar);
    padding-left: var(--rail);
  }

  .site-header { position: static; }

  .masthead {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 62;
  }

  .frame-nav {
    position: fixed;
    top: var(--bar);
    left: 0;
    bottom: 0;
    width: var(--rail);
    z-index: 61;
    overflow-y: auto;
    overflow-x: hidden;
  }

  .frame-nav__link {
    writing-mode: vertical-rl;
    text-orientation: upright;
    text-align: center;
    padding: 16px 0;
    font-size: 14px;
    line-height: 1;
    letter-spacing: .14em;
  }

  .span-1 { grid-column: span 1; }
  .span-2 { grid-column: span 2; }
  .span-3 { grid-column: span 3; }
  .span-4 { grid-column: span 4; }
  .span-5 { grid-column: span 5; }
  .span-6 { grid-column: span 6; }
  .span-7 { grid-column: span 7; }
  .span-8 { grid-column: span 8; }
  .span-9 { grid-column: span 9; }
  .span-10 { grid-column: span 10; }
  .span-11 { grid-column: span 11; }
  .span-12 { grid-column: span 12; }

  .site-footer {
    margin-left: calc(-1 * var(--rail));
    padding-left: var(--rail);
  }
}

@media (max-width: 1023.98px) {
  .grid--12 { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- 15. 页脚 ---------- */
.site-footer {
  background: var(--night);
  color: var(--cream);
  border-top: var(--line) solid var(--saffron);
}

.site-footer__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
  padding-block: clamp(36px, 5vw, 60px);
}

.site-footer__mark {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: .04em;
  line-height: 1.2;
}

.site-footer__slogan {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .08em;
  color: var(--snow-dim);
}

.site-footer__title {
  padding-bottom: 10px;
  margin-bottom: 12px;
  border-bottom: 2px solid rgba(228, 176, 60, .34);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .16em;
  color: var(--saffron);
}

.site-footer__list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.site-footer__list a {
  display: block;
  min-height: 44px;
  padding: 10px 0;
  color: var(--cream);
  text-decoration: none;
  font-size: 15px;
  border-bottom: 1px solid transparent;
  transition: color .12s ease, border-color .12s ease, padding-left .12s ease;
}

.site-footer__list a:hover {
  color: var(--spark);
  border-bottom-color: var(--spark);
  padding-left: 6px;
}

.site-footer__mono {
  display: block;
  padding: 4px 0;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .06em;
  line-height: 1.6;
  color: var(--snow);
  word-break: break-word;
}

.site-footer__base {
  background: var(--night-deep);
  border-top: 2px solid rgba(185, 195, 206, .22);
}

.site-footer__baseinner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 28px;
  padding-block: 16px;
}

.site-footer__trust,
.site-footer__legal {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .06em;
  line-height: 1.6;
}

.site-footer__trust { color: var(--snow); }
.site-footer__legal { color: var(--snow-dim); }

@media (min-width: 640px) {
  .site-footer__inner { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px 24px; }
  .site-footer__brand { grid-column: 1 / -1; }
}

@media (min-width: 1024px) {
  .site-footer__inner {
    grid-template-columns: 1.5fr 1fr 1fr 1.35fr 1fr;
    gap: 24px;
  }
  .site-footer__brand { grid-column: auto; }
}

/* ---------- 16. 卡片 ---------- */
.card {
  background: var(--cream);
  color: var(--ink);
  border: var(--line) solid var(--ink);
  box-shadow: var(--shadow-hard);
  padding: 22px;
  border-radius: 0;
}

.card--night {
  background: var(--dusk);
  color: var(--cream);
  border-color: var(--night-deep);
  box-shadow: var(--shadow-night);
}

.card--flat { box-shadow: none; }

.card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.card__title { font-size: 20px; font-weight: 800; line-height: 1.3; }

.card__meta {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .08em;
  opacity: .68;
  white-space: nowrap;
}

.card__body { font-size: 16px; line-height: 1.75; }

.card__foot {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 2px dashed rgba(23, 18, 14, .24);
}

.card--night .card__foot { border-top-color: rgba(243, 237, 224, .26); }

/* ---------- 17. 状态标签 ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 28px;
  padding: 3px 10px;
  border: 2px solid currentColor;
  border-radius: 0;
  background: transparent;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .08em;
  line-height: 1.2;
}

.tag::before {
  content: "";
  width: 8px;
  height: 8px;
  background: currentColor;
  flex: none;
}

.tag--live { color: var(--green); }
.tag--warn { color: #9A7418; }
.tag--alert { color: var(--red); }
.tag--info { color: var(--blue); }
.tag--neutral { color: #5C6470; }

.tag--ondark { color: var(--snow); }
.tag--ondark.tag--live { color: #4FD79A; }
.tag--ondark.tag--warn { color: var(--saffron); }
.tag--ondark.tag--alert { color: #FF6A57; }
.tag--ondark.tag--info { color: var(--blue-lite); }
.tag--ondark.tag--neutral { color: var(--snow-dim); }

/* ---------- 18. 图片容器 ---------- */
.media {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  border: var(--line) solid var(--ink);
  border-radius: 0;
  background: var(--dusk);
}

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

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

.media--placeholder {
  background-image:
    linear-gradient(135deg, #1D3A5C 0%, #0B1B33 55%, #16304F 100%);
}

.media__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 10px 14px;
  background: rgba(11, 27, 51, .84);
  color: var(--cream);
  border-top: 2px solid var(--saffron);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .06em;
  line-height: 1.5;
}

/* ---------- 19. 面包屑 ---------- */
.breadcrumbs {
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .08em;
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

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

.breadcrumbs li::after {
  content: "/";
  opacity: .42;
}

.breadcrumbs li:last-child::after { content: ""; }

.breadcrumbs a {
  display: inline-block;
  min-height: 24px;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}

.breadcrumbs a:hover { color: var(--red); }

.breadcrumbs--ondark { color: var(--snow); }

/* ---------- 20. 轨迹装饰 ---------- */
.trail {
  display: block;
  width: 100%;
  height: auto;
  color: var(--saffron);
  pointer-events: none;
}

.trail path,
.trail line,
.trail polyline,
.trail circle {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 6 10;
}

.trail path,
.trail line { animation: trail-flow 9s linear infinite; }

@keyframes trail-flow {
  to { stroke-dashoffset: -160; }
}

/* ---------- 21. 显现与返回顶部 ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(12px);
}

.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
  transition: opacity .32s cubic-bezier(.2, .7, .3, 1),
    transform .32s cubic-bezier(.2, .7, .3, 1);
}

.to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 70;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  padding: 0;
  background: var(--cream);
  color: var(--ink);
  border: var(--line) solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 18px;
  line-height: 1;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .2s ease, transform .2s ease,
    visibility .2s ease, background-color .12s ease;
}

.to-top.is-on {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.to-top:hover { background: var(--saffron); }

@media (min-width: 1024px) {
  .to-top { right: 24px; bottom: 24px; }
}

/* ---------- 22. reduced-motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }

  .js [data-reveal],
  .js [data-reveal].is-visible {
    opacity: 1;
    transform: none;
  }
}
