/* =========================================================
   MK体育主站 / 共享样式 site.css
   深墨绿 · 炭黑 · 荧光橙 · 序号轨道
   ========================================================= */

*, *::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;
  padding: 0;
}

ul, ol { list-style: none; }

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

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

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

:root {
  --ink-green: #0E2B23;
  --carbon: #131417;
  --deep-turf: #14453A;
  --signal: #FF6A1A;
  --amber: #FFB43D;
  --silver: #C7CED2;
  --paper: #F4F6F4;
  --archive: #7A2135;

  --ink-on-signal: #1C0C02;
  --line: rgba(199, 206, 210, 0.22);
  --line-strong: rgba(199, 206, 210, 0.42);
  --text-soft: rgba(244, 246, 244, 0.82);
  --text-mute: rgba(199, 206, 210, 0.72);

  --font-display: "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;

  --gap: clamp(16px, 2vw, 24px);
  --wrap: 1280px;
  --radius: 2px;
}

body {
  min-height: 100vh;
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  background-color: var(--ink-green);
  background-image:
    linear-gradient(180deg, rgba(19, 20, 23, 0) 0%, rgba(19, 20, 23, 0.62) 100%),
    repeating-linear-gradient(0deg, rgba(199, 206, 210, 0.045) 0 1px, transparent 1px 64px),
    repeating-linear-gradient(90deg, rgba(199, 206, 210, 0.045) 0 1px, transparent 1px 64px);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 1.14;
  letter-spacing: 0.02em;
}

h1 { font-size: clamp(34px, 5.4vw, 62px); }
h2 { font-size: clamp(25px, 3.4vw, 38px); }
h3 { font-size: clamp(19px, 2.1vw, 25px); letter-spacing: 0.03em; }

p { color: var(--text-soft); }

::selection { background: var(--signal); color: var(--ink-on-signal); }

:focus-visible {
  outline: 3px solid var(--signal);
  outline-offset: 3px;
}

/* ---------- 基础容器 ---------- */
.container {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: clamp(16px, 3vw, 32px);
}

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

.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 200;
  padding: 10px 18px;
  background: var(--signal);
  color: var(--ink-on-signal);
  font-weight: 800;
  letter-spacing: 0.08em;
  transition: top 0.18s ease;
}
.skip-link:focus { top: 12px; }

/* ---------- 头部 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: var(--carbon);
  border-bottom: 1px solid var(--line);
}

.status-bar {
  background: var(--ink-green);
  border-bottom: 1px solid rgba(199, 206, 210, 0.12);
}

.status-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 36px;
  font-size: 12px;
  letter-spacing: 0.12em;
}

.status-bar__tag {
  color: var(--amber);
  font-weight: 800;
  white-space: nowrap;
}

.status-bar__index {
  color: var(--paper);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.status-bar__mail {
  color: var(--text-mute);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-bar { position: relative; }

.nav-bar__inner {
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.6vw, 22px);
  padding-block: 12px;
}

/* 门框识别符号 */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.brand__mark {
  position: relative;
  display: block;
  width: 36px;
  height: 36px;
  border: 2px solid var(--paper);
  flex: 0 0 auto;
}

.brand__mark::after {
  content: "";
  position: absolute;
  right: -6px;
  top: -6px;
  width: 12px;
  height: 12px;
  background: var(--signal);
}

.brand__mark-inner {
  position: absolute;
  left: 5px;
  top: 5px;
  bottom: 5px;
  width: 8px;
  background: var(--signal);
}

.brand__text { display: flex; flex-direction: column; line-height: 1.2; }

.brand__name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 17px;
  letter-spacing: 0.06em;
  color: var(--paper);
}

.brand__sub {
  font-size: 10px;
  letter-spacing: 0.3em;
  color: var(--amber);
}

/* 移动导航按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 9px 12px;
  border: 1px solid var(--line-strong);
  color: var(--paper);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.nav-toggle__bars {
  display: inline-flex;
  flex-direction: column;
  gap: 3px;
  width: 16px;
}

.nav-toggle__bars span {
  display: block;
  height: 2px;
  background: var(--signal);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* 导航条 */
.site-nav { flex: 1 1 auto; min-width: 0; }

.site-nav__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2px;
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  padding: 11px 13px;
  color: var(--silver);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.05em;
  transition: color 0.18s ease, transform 0.18s ease;
}

.nav-link__index {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  font-variant-numeric: tabular-nums;
  color: var(--signal);
}

.nav-link:hover,
.nav-link:focus-visible { color: var(--paper); transform: translateX(2px); }

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

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

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

.nav-link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 13px;
  right: 13px;
  bottom: 0;
  height: 3px;
  background: var(--signal);
}

.nav-cta { margin-left: auto; }

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
  border: 1px solid transparent;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.btn--primary {
  background: var(--signal);
  color: var(--ink-on-signal);
  border-color: var(--signal);
}

.btn--primary::after {
  content: "→";
  font-size: 15px;
  transition: transform 0.2s ease;
}

.btn--primary:hover {
  background: #FF8140;
  border-color: #FF8140;
  transform: translateX(2px);
}

.btn--primary:hover::after { transform: translateX(3px); }

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

.btn--ghost:hover {
  border-color: var(--signal);
  color: var(--signal);
  transform: translateX(2px);
}

/* 滚动进度 */
.scroll-meter {
  height: 2px;
  background: rgba(199, 206, 210, 0.14);
}

.scroll-meter__bar {
  display: block;
  width: 0;
  height: 100%;
  background: var(--signal);
}

/* ---------- 页面通用结构 ---------- */
.section { padding-block: clamp(40px, 6vw, 80px); }

.section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 16px;
  margin-bottom: clamp(20px, 3vw, 36px);
  border-bottom: 1px solid var(--line);
}

.section__title { color: var(--paper); }

.section__lead {
  max-width: 54ch;
  font-size: 15px;
  color: var(--text-mute);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--amber);
}

.eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  background: var(--signal);
}

.divider {
  height: 1px;
  border: 0;
  background: var(--line);
  margin-block: clamp(28px, 4vw, 48px);
}

/* 标签 */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--silver);
  background: rgba(199, 206, 210, 0.07);
  border: 1px solid var(--line-strong);
}

.tag--signal {
  color: var(--signal);
  background: rgba(255, 106, 26, 0.14);
  border-color: rgba(255, 106, 26, 0.55);
}

.tag--amber {
  color: var(--amber);
  background: rgba(255, 180, 61, 0.12);
  border-color: rgba(255, 180, 61, 0.5);
}

.tag--archive {
  color: #F1C6D1;
  background: rgba(122, 33, 53, 0.4);
  border-color: rgba(122, 33, 53, 0.95);
}

/* 板块 */
.panel {
  position: relative;
  padding: clamp(18px, 2.4vw, 28px);
  background: var(--deep-turf);
  border: 1px solid var(--line);
}

.panel--focus {
  background: linear-gradient(150deg, var(--deep-turf) 0%, var(--carbon) 72%);
  border-color: var(--line-strong);
}

.panel--carbon { background: var(--carbon); }

.panel--paper {
  background: var(--paper);
  color: var(--ink-green);
  border-color: var(--ink-green);
}

.panel__label {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--amber);
}

.panel__title {
  margin-top: 10px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(20px, 2.4vw, 27px);
  letter-spacing: 0.03em;
  color: var(--paper);
}

.panel__text {
  margin-top: 10px;
  max-width: 46ch;
  font-size: 15px;
  color: var(--text-soft);
}

.panel__foot {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--text-mute);
}

.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--signal);
}

.arrow-link::after {
  content: "→";
  transition: transform 0.2s ease;
}

.arrow-link:hover::after { transform: translateX(4px); }

/* 网格 */
.grid { display: grid; gap: var(--gap); }

.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--auto { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid--bento { grid-template-columns: repeat(12, minmax(0, 1fr)); }

/* 图片容器基础规则 */
.media-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: linear-gradient(135deg, var(--deep-turf) 0%, var(--carbon) 100%);
  isolation: isolate;
}

.media-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: repeating-linear-gradient(90deg, rgba(244, 246, 244, 0.07) 0 1px, transparent 1px 28px);
}

.media-frame::after {
  content: "";
  position: absolute;
  top: -20%;
  right: -34%;
  z-index: 1;
  width: 68%;
  height: 140%;
  background: rgba(255, 106, 26, 0.16);
  transform: skewX(-18deg);
}

.media-frame > img,
.media-frame > picture > img,
.media-frame > video {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.media-frame__caption {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 3;
  padding: 8px 14px;
  background: rgba(19, 20, 23, 0.84);
  color: var(--silver);
  font-size: 12px;
  letter-spacing: 0.12em;
}

/* 面包屑 */
.breadcrumbs {
  font-size: 12px;
  letter-spacing: 0.14em;
}

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

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

.breadcrumbs__link {
  color: var(--silver);
  border-bottom: 1px solid var(--line-strong);
}

.breadcrumbs__link:hover {
  color: var(--paper);
  border-color: var(--signal);
}

.breadcrumbs__sep { color: var(--signal); }

.breadcrumbs__current { color: var(--paper); }

/* 长文排版 */
.prose {
  max-width: 44rem;
  color: var(--paper);
}

.prose > * + * { margin-top: 1.1em; }

.prose h2 {
  margin-top: 2em;
  font-size: clamp(22px, 2.6vw, 30px);
}

.prose h3 { margin-top: 1.6em; }

.prose p,
.prose li { color: var(--text-soft); font-size: 16px; }

.prose ul {
  list-style: square;
  padding-left: 1.3em;
}

.prose li + li { margin-top: 0.4em; }

.prose a {
  color: var(--signal);
  border-bottom: 1px solid rgba(255, 106, 26, 0.6);
}

/* 分段控件 / 标签页 */
.tabs { display: block; }

.tabs__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border-bottom: 1px solid var(--line);
}

.tabs__tab {
  position: relative;
  padding: 12px 18px;
  margin-bottom: -1px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--silver);
  border-bottom: 3px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.tabs__tab:hover { color: var(--paper); }

.tabs__tab[aria-selected="true"] {
  color: var(--paper);
  border-bottom-color: var(--signal);
}

.tabs__panel { padding-top: clamp(18px, 2.4vw, 28px); }

.tabs__panel[hidden] { display: none; }

/* 滚动显现 */
html.has-js [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  transition-delay: var(--reveal-delay, 0ms);
}

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

/* ---------- 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(48px, 7vw, 96px);
  background: var(--carbon);
  border-top: 1px solid var(--line);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: min(300px, 42%);
  height: 4px;
  background: var(--signal);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.4fr;
  gap: clamp(24px, 3vw, 48px);
  padding-block: clamp(40px, 5vw, 68px);
}

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

.footer-mark {
  position: relative;
  display: block;
  width: 30px;
  height: 30px;
  border: 2px solid var(--paper);
}

.footer-mark::after {
  content: "";
  position: absolute;
  right: -5px;
  top: -5px;
  width: 10px;
  height: 10px;
  background: var(--signal);
}

.footer-mark-inner {
  position: absolute;
  left: 4px;
  top: 4px;
  bottom: 4px;
  width: 6px;
  background: var(--signal);
}

.footer-brand {
  margin-top: 16px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 20px;
  letter-spacing: 0.05em;
  color: var(--paper);
}

.footer-tagline {
  margin-top: 8px;
  max-width: 26ch;
  font-size: 14px;
  color: var(--text-mute);
}

.footer-title {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 16px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.24em;
  color: var(--amber);
}

.footer-title::before {
  content: "";
  width: 10px;
  height: 10px;
  background: var(--signal);
  flex: 0 0 auto;
}

.footer-list__item {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 7px 0;
  font-size: 15px;
  border-bottom: 1px dashed rgba(199, 206, 210, 0.16);
}

.footer-num {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  font-variant-numeric: tabular-nums;
  color: var(--signal);
}

.footer-link {
  color: var(--silver);
  border-bottom: 1px solid transparent;
}

.footer-link:hover {
  color: var(--paper);
  border-bottom-color: var(--signal);
}

.footer-contact { font-size: 14px; }

.footer-contact__row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 6px 0;
}

.footer-contact__label {
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: var(--amber);
}

.footer-contact__value {
  color: var(--paper);
  overflow-wrap: anywhere;
}

.footer-note {
  margin-top: 14px;
  padding-left: 12px;
  border-left: 2px solid var(--archive);
  font-size: 12px;
  line-height: 1.65;
  color: var(--text-mute);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-block: 18px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--text-mute);
}

.footer-sign {
  color: var(--signal);
  font-weight: 800;
  letter-spacing: 0.2em;
}

/* ---------- 响应式 ---------- */
@media (max-width: 1180px) {
  .nav-link { padding: 11px 9px; font-size: 14px; }
  .nav-link__index { font-size: 10px; }
  .brand__sub { letter-spacing: 0.22em; }
}

@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer-col--brand { grid-column: 1 / -1; }
}

@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; margin-left: auto; }

  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    display: none;
    flex: none;
    background: var(--carbon);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 44px rgba(0, 0, 0, 0.5);
    max-height: calc(100vh - 120px);
    overflow-y: auto;
  }

  .site-nav[data-open] { display: block; }

  .site-nav__list {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding: 6px clamp(16px, 3vw, 32px) 22px;
  }

  .nav-link {
    padding: 15px 4px;
    font-size: 16px;
    border-bottom: 1px solid var(--line);
    transform: none;
  }

  .nav-link:hover { transform: none; }

  .nav-link[aria-current="page"] {
    background: linear-gradient(90deg, rgba(255, 106, 26, 0.18), transparent 70%);
    padding-left: 14px;
  }

  .nav-link[aria-current="page"]::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--signal);
  }

  .nav-link[aria-current="page"]::after { display: none; }

  .nav-cta { padding: 10px 14px; font-size: 12px; }

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

@media (max-width: 760px) {
  .status-bar__mail { display: none; }
  .status-bar__inner { min-height: 32px; font-size: 11px; letter-spacing: 0.08em; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-col--brand { grid-column: auto; }
  .brand__mark { width: 30px; height: 30px; }
  .brand__name { font-size: 15px; }
  .footer-bottom { font-size: 11px; letter-spacing: 0.1em; }
}

@media (max-width: 420px) {
  .brand__sub { display: none; }
  .nav-cta { padding: 9px 11px; letter-spacing: 0.02em; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  html.has-js [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
    transition-delay: 0ms;
  }

  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }

  .scroll-meter__bar { transition: none; }
}
