/* =========================================================
   360体育 · MG入口CN站 — /assets/site.css
   共享外壳：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, table, th, td { margin: 0; }

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

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

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

a { color: inherit; }

table { border-collapse: collapse; }

:root {
  color-scheme: light;

  --ink-900: #081826;
  --ink-800: #102A3F;
  --ink-700: #1F4F66;
  --neon: #37E2C2;
  --track: #FF6A3D;
  --paper: #F4F6F3;
  --fog: #D8E1E2;
  --graphite: #6E818B;
  --mint: #B8FFF0;
  --alert: #8A3B22;

  --font-display: "Barlow Condensed", "Oswald", "Noto Sans SC", "Source Han Sans SC", system-ui, sans-serif;
  --font-body: "Noto Sans SC", "Source Han Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --shell: 1220px;
  --gutter: clamp(16px, 4vw, 40px);

  --hair: 1px solid rgba(216, 225, 226, 0.16);
  --hair-ink: 1px solid rgba(8, 24, 38, 0.14);
  --radius: 2px;
  --ease: cubic-bezier(0.2, 0.7, 0.3, 1);

  --focus-dark: #0C5568;
  --focus-light: #37E2C2;
}

body {
  background-color: var(--paper);
  color: var(--ink-900);
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.85;
  letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--ink-900);
}

h1 { font-size: clamp(32px, 4.6vw, 62px); }
h2 { font-size: clamp(24px, 3vw, 32px); }
h3 { font-size: clamp(19px, 2.2vw, 24px); font-weight: 700; }

p { text-wrap: pretty; }

:where(a, button, summary, input, select, textarea, [tabindex]):focus-visible {
  outline: 2px solid var(--focus-dark);
  outline-offset: 3px;
  border-radius: 1px;
}

.site-header :where(a, button, summary):focus-visible,
.site-footer :where(a, button, summary):focus-visible {
  outline: 2px solid var(--focus-light);
  outline-offset: 3px;
}

/* ---------- 容器 ---------- */

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- 跳转链接 ---------- */

.skip-link {
  position: fixed;
  top: -80px;
  left: 16px;
  z-index: 300;
  padding: 10px 18px;
  background: var(--neon);
  color: var(--ink-900);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  border-radius: var(--radius);
  transition: top 0.18s var(--ease);
}

.skip-link:focus,
.skip-link:focus-visible {
  top: 14px;
  outline: 2px solid var(--ink-900);
  outline-offset: 2px;
}

/* =========================================================
   页头
   ========================================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  color: var(--paper);
  background-color: var(--ink-900);
  background-image:
    linear-gradient(180deg, rgba(16, 42, 63, 0.92) 0%, rgba(8, 24, 38, 1) 100%),
    repeating-linear-gradient(90deg, rgba(55, 226, 194, 0.09) 0 1px, transparent 1px 64px);
  border-bottom: 1px solid rgba(55, 226, 194, 0.38);
  box-shadow: 0 1px 0 rgba(8, 24, 38, 0.35);
}

.scroll-meter {
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 2px;
  width: 0;
  z-index: 3;
  background: linear-gradient(90deg, var(--neon) 0%, var(--track) 100%);
  transition: width 0.1s linear;
  pointer-events: none;
}

/* 上层：品牌说明带 */
.header-strip {
  background: rgba(16, 42, 63, 0.5);
  border-bottom: 1px solid rgba(216, 225, 226, 0.12);
}

.strip-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px clamp(12px, 3vw, 32px);
  padding-block: 10px;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(55, 226, 194, 0.5);
  border-radius: var(--radius);
  background: linear-gradient(140deg, rgba(55, 226, 194, 0.2), rgba(55, 226, 194, 0));
  color: var(--neon);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.3;
}

.brand-text strong {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--paper);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand-text em {
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: rgba(216, 225, 226, 0.64);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.strip-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.strip-status {
  padding: 5px 9px;
  border: 1px dashed rgba(55, 226, 194, 0.42);
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(216, 225, 226, 0.72);
  white-space: nowrap;
}

.strip-status b {
  color: var(--neon);
  font-weight: 700;
}

/* 按钮 */
.btn {
  --btn-bg: transparent;
  --btn-fg: var(--paper);
  --btn-bd: rgba(216, 225, 226, 0.36);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 16px;
  border: 1px solid var(--btn-bd);
  border-radius: var(--radius);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.4;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.18s var(--ease), color 0.18s var(--ease), border-color 0.18s var(--ease);
}

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--paper);
  --btn-bd: rgba(216, 225, 226, 0.4);
}

.btn--ghost:hover {
  --btn-bg: rgba(55, 226, 194, 0.14);
  --btn-bd: rgba(55, 226, 194, 0.8);
  --btn-fg: var(--mint);
}

.btn--solid {
  --btn-bg: var(--neon);
  --btn-fg: var(--ink-900);
  --btn-bd: var(--neon);
  font-weight: 700;
}

.btn--solid:hover {
  --btn-bg: var(--mint);
  --btn-bd: var(--mint);
}

.btn--track {
  --btn-bg: var(--track);
  --btn-fg: var(--ink-900);
  --btn-bd: var(--track);
  font-weight: 700;
  margin-top: 14px;
}

.btn--track:hover {
  --btn-bg: #FF875F;
  --btn-bd: #FF875F;
}

/* 下层：栏目索引带 */
.nav-band {
  background: transparent;
}

.nav-band-inner {
  display: flex;
  align-items: center;
  gap: clamp(10px, 2.6vw, 30px);
  padding-block: 0;
  min-height: 54px;
}

.nav-idx {
  flex: 0 0 auto;
  padding-right: clamp(10px, 2vw, 22px);
  border-right: 1px solid rgba(216, 225, 226, 0.2);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(55, 226, 194, 0.78);
  white-space: nowrap;
}

.site-nav {
  display: block;
  min-width: 0;
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  counter-reset: nav;
}

.nav-list li {
  counter-increment: nav;
}

.nav-list a {
  position: relative;
  display: block;
  padding: 17px 14px;
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: rgba(244, 246, 243, 0.76);
  text-decoration: none;
  transition: color 0.16s var(--ease), background 0.16s var(--ease), padding-left 0.16s var(--ease);
}

.nav-list a::before {
  content: counter(nav, decimal-leading-zero);
  margin-right: 7px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  color: rgba(55, 226, 194, 0.6);
  vertical-align: 2px;
}

.nav-list a::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 7px;
  height: 2px;
  background: var(--neon);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.2s var(--ease);
}

.nav-list a:hover {
  color: var(--paper);
  background: rgba(55, 226, 194, 0.07);
}

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

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

.nav-list a[aria-current="page"]::after {
  transform: scaleX(1);
  background: var(--neon);
}

/* 移动端抽屉按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 9px 13px;
  border: 1px solid rgba(55, 226, 194, 0.45);
  border-radius: var(--radius);
  background: rgba(55, 226, 194, 0.08);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.18s var(--ease), border-color 0.18s var(--ease);
}

.nav-toggle:hover {
  background: rgba(55, 226, 194, 0.16);
}

.nav-toggle[aria-expanded="true"] {
  background: rgba(55, 226, 194, 0.22);
  border-color: var(--neon);
  color: var(--mint);
}

.nav-toggle-bars {
  position: relative;
  display: block;
  width: 16px;
  height: 2px;
  background: var(--neon);
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 16px;
  height: 2px;
  background: var(--neon);
  transition: transform 0.18s var(--ease);
}

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

.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(5px); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-5px); }

.nav-toggle-label { white-space: nowrap; }

/* =========================================================
   页脚
   ========================================================= */

.site-footer {
  position: relative;
  padding-block: clamp(40px, 6vw, 72px) clamp(22px, 4vw, 34px);
  background-color: var(--ink-900);
  background-image:
    repeating-linear-gradient(90deg, rgba(55, 226, 194, 0.07) 0 1px, transparent 1px 80px),
    repeating-linear-gradient(0deg, rgba(55, 226, 194, 0.05) 0 1px, transparent 1px 80px);
  border-top: 1px solid rgba(55, 226, 194, 0.38);
  color: rgba(244, 246, 243, 0.82);
  font-size: 15px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.6fr 0.75fr 0.75fr 1fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
}

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

.footer-brand__name {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
  font-family: var(--font-display);
  font-size: clamp(26px, 3.4vw, 38px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--paper);
}

.footer-brand__name span {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--neon);
}

.footer-brand__summary {
  margin-top: 14px;
  max-width: 34ch;
  color: rgba(216, 225, 226, 0.78);
  line-height: 1.8;
}

.footer-meta {
  display: grid;
  gap: 7px;
  margin-top: 20px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  line-height: 1.7;
  color: rgba(216, 225, 226, 0.76);
}

.footer-meta li {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: baseline;
}

.meta-key {
  min-width: 34px;
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--neon);
}

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

.footer-col__title {
  padding-bottom: 10px;
  margin-bottom: 14px;
  border-bottom: 1px solid rgba(216, 225, 226, 0.18);
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(216, 225, 226, 0.58);
}

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

.footer-col li a {
  display: inline-block;
  font-size: 14px;
  color: rgba(244, 246, 243, 0.8);
  text-decoration: none;
  transition: color 0.16s var(--ease), padding-left 0.16s var(--ease);
}

.footer-col li a:hover {
  color: var(--neon);
  padding-left: 4px;
}

.footer-col--note p {
  font-size: 13.5px;
  line-height: 1.8;
  color: rgba(216, 225, 226, 0.74);
}

.footer-base {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px 26px;
  margin-top: clamp(28px, 5vw, 48px);
  padding-top: 18px;
  border-top: 1px solid rgba(216, 225, 226, 0.16);
  font-family: var(--font-mono);
  font-size: 11.5px;
  line-height: 1.75;
  color: rgba(216, 225, 226, 0.6);
}

.footer-legal { white-space: nowrap; }

.footer-note { max-width: 62ch; }

.footer-year {
  color: var(--neon);
  white-space: nowrap;
}

/* =========================================================
   通用页面件（供页面阶段复用）
   ========================================================= */

.breadcrumb {
  padding-block: 16px 0;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--graphite);
}

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

.breadcrumb li + li::before {
  content: "/";
  margin-right: 8px;
  color: rgba(110, 129, 139, 0.6);
}

.breadcrumb a {
  color: var(--ink-700);
  text-decoration: none;
  border-bottom: 1px solid rgba(31, 79, 102, 0.35);
}

.breadcrumb a:hover {
  color: var(--ink-900);
  border-bottom-color: var(--ink-900);
}

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

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px 18px;
  padding-bottom: 12px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--fog);
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-700);
}

.prose {
  max-width: 68ch;
}

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

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

.prose ul,
.prose ol {
  padding-left: 1.2em;
  list-style: disc;
}

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

.grid {
  display: grid;
  gap: clamp(18px, 3vw, 32px);
}

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

.grid--aside {
  grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr);
  align-items: start;
}

.panel {
  padding: clamp(16px, 2.4vw, 26px);
  border: var(--hair-ink);
  border-radius: var(--radius);
  background: #FBFCFA;
  box-shadow: 0 1px 2px rgba(8, 24, 38, 0.04);
}

.panel > * + * {
  margin-top: 0.8em;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 9px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.6;
  text-transform: uppercase;
  white-space: nowrap;
}

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

.tag--ok {
  background: rgba(55, 226, 194, 0.22);
  color: #0A5B4B;
  border-color: rgba(10, 91, 75, 0.22);
}

.tag--warn {
  background: rgba(255, 106, 61, 0.16);
  color: var(--alert);
  border-color: rgba(138, 59, 34, 0.24);
}

.data-table {
  width: 100%;
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.65;
  background: #FFFFFF;
}

.data-table caption {
  text-align: left;
  padding-bottom: 10px;
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--graphite);
}

.data-table th,
.data-table td {
  padding: 9px 12px;
  border-bottom: 1px solid var(--fog);
  text-align: left;
  vertical-align: top;
}

.data-table thead th {
  background: var(--ink-700);
  color: var(--paper);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.data-table tbody tr:nth-child(even) {
  background: rgba(216, 225, 226, 0.3);
}

.data-table tbody tr:hover {
  background: var(--mint);
}

.data-table tbody tr:hover .tag::before {
  transform: scale(1.35);
}

.media-frame {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: var(--media-ratio, 16 / 9);
  border: var(--hair-ink);
  border-radius: var(--radius);
  background-color: var(--ink-800);
  background-image:
    repeating-linear-gradient(90deg, rgba(55, 226, 194, 0.12) 0 1px, transparent 1px 40px),
    repeating-linear-gradient(0deg, rgba(55, 226, 194, 0.1) 0 1px, transparent 1px 40px),
    linear-gradient(150deg, var(--ink-700), var(--ink-900));
}

.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.85) contrast(1.06);
}

.media-frame figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 8px 12px;
  background: linear-gradient(0deg, rgba(8, 24, 38, 0.86), rgba(8, 24, 38, 0));
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: rgba(244, 246, 243, 0.86);
}

[data-disclosure-panel][hidden] {
  display: none;
}

/* =========================================================
   响应式
   ========================================================= */

@media (max-width: 1040px) {
  .strip-status { display: none; }
  .footer-top { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer-col--note { grid-column: 1 / -1; }
}

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

  .nav-band-inner {
    flex-wrap: wrap;
    gap: 10px;
    min-height: 0;
    padding-block: 10px;
  }

  .nav-idx { display: none; }

  .nav-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .site-nav {
    display: none;
    flex-basis: 100%;
    margin-top: 4px;
    padding-top: 4px;
    border-top: 1px solid rgba(216, 225, 226, 0.14);
  }

  [data-site-header][data-open="true"] .site-nav {
    display: block;
  }

  .nav-list {
    flex-direction: column;
    gap: 0;
  }

  .nav-list li + li {
    border-top: 1px solid rgba(216, 225, 226, 0.1);
  }

  .nav-list a {
    padding: 13px 6px;
    font-size: 15px;
  }

  .nav-list a::after { display: none; }

  .nav-list a:hover {
    background: rgba(55, 226, 194, 0.08);
    padding-left: 12px;
  }

  .nav-list a[aria-current="page"] {
    padding-left: 12px;
    background: rgba(55, 226, 194, 0.12);
    border-left: 2px solid var(--neon);
  }

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

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

  .footer-top { grid-template-columns: 1fr; }
  .footer-brand__summary { max-width: none; }
  .footer-legal { white-space: normal; }
}

@media (max-width: 640px) {
  .strip-inner {
    padding-block: 9px;
    gap: 10px;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
    font-size: 11px;
  }

  .brand-text strong { font-size: 13.5px; }
  .brand-text em { font-size: 10px; letter-spacing: 0.06em; }

  .strip-actions {
    width: 100%;
    gap: 8px;
  }

  .strip-actions .btn {
    flex: 1 1 0;
    padding: 8px 10px;
    font-size: 12.5px;
  }

  .data-table { font-size: 11.5px; }
  .data-table th,
  .data-table td { padding: 8px 9px; }
}

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