/* ============================================================
   米兰体育入口 — 全站共享样式 /assets/site.css
   夜场战术板：深色长卷 · 红黑色带 · 电光青数据线 · 柠黄动作点
   ============================================================ */

:root {
  --ink: #0A0A0F;
  --ink-deep: #08080C;
  --ink-raise: #101017;
  --panel: #15151F;
  --grid-line: #2A2A38;
  --red: #E4002B;
  --red-deep: #7A0016;
  --cyan: #00E5D0;
  --lime: #D8FF3E;
  --paper: #F4F1EA;
  --muted: #A3A3B5;
  --orange: #FF6B3D;

  --font-display: "Archivo Black", "Source Han Sans SC", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-head: "Source Han Sans SC", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: "Source Han Sans SC", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;

  --container: 1240px;
  --gutter: 20px;
  --radius: 2px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background-color: var(--ink);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.75;
  font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, p, figure, blockquote { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, svg, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
a { color: inherit; }
table { border-collapse: collapse; }

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

/* ---------- 布局 ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.page-main {
  position: relative;
  display: block;
}

.page-main:focus { outline: none; }

.section { padding: 64px 0; }
.section--tight { padding: 40px 0; }

.section-head {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 62ch;
  margin-bottom: 32px;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: var(--stack-gap, 18px);
}

.grid-7-4 {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: 40px;
  align-items: start;
}

.divider {
  height: 1px;
  border: 0;
  margin: 0;
  background: linear-gradient(90deg, var(--grid-line) 0%, rgba(42, 42, 56, 0) 100%);
}

/* ---------- 文字 ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .2em;
  color: var(--cyan);
  line-height: 1.4;
}

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

.section-title {
  font-family: var(--font-head);
  font-weight: 300;
  font-size: clamp(30px, 4.4vw, 52px);
  line-height: 1.14;
  letter-spacing: -.01em;
  color: var(--paper);
}

.section-lead {
  font-size: 17px;
  line-height: 1.75;
  color: var(--muted);
  max-width: 38em;
}

.display-num {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(72px, 14vw, 200px);
  line-height: .86;
  letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
  font-stretch: condensed;
  color: var(--paper);
}

.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: .04em;
}

/* ---------- 色带与面板 ---------- */
.band {
  position: relative;
  padding: 14px 0;
  overflow: hidden;
  background: linear-gradient(90deg, var(--red) 0%, var(--red-deep) 42%, #141420 100%);
}

.band::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: repeating-linear-gradient(115deg, rgba(244, 241, 234, .16) 0 2px, transparent 2px 22px);
  opacity: .55;
}

.panel {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--grid-line);
  border-radius: var(--radius);
  padding: 24px;
  transition: transform .2s var(--ease), border-color .2s var(--ease);
}

.panel::before {
  content: "";
  position: absolute;
  left: -1px;
  top: -1px;
  width: 3px;
  height: 34px;
  background: var(--red);
}

.panel:hover {
  transform: translateY(-2px);
  border-color: var(--cyan);
}

/* ---------- 动作 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .06em;
  line-height: 1.2;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform .18s var(--ease), background-color .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease);
}

.btn:hover { transform: translateY(-1px); }

.btn--action {
  background: var(--lime);
  color: var(--ink);
}

.btn--action:hover { background: #E9FF74; }

.btn--primary {
  background: var(--red);
  color: var(--paper);
}

.btn--primary:hover { background: #FF1436; }

.btn--ghost {
  background: transparent;
  color: var(--paper);
  border-color: var(--grid-line);
}

.btn--ghost:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

/* ---------- 数据件 ---------- */
.round-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: var(--ink);
  border: 1px solid var(--lime);
  border-radius: var(--radius);
  color: var(--lime);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .08em;
  line-height: 1.6;
  font-variant-numeric: tabular-nums;
  text-decoration: none;
  transition: background-color .18s var(--ease), color .18s var(--ease);
}

a.round-tag:hover,
a.round-tag:focus-visible {
  background: var(--lime);
  color: var(--ink);
}

.data-chip {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .06em;
  color: var(--cyan);
  font-variant-numeric: tabular-nums;
}

.table {
  width: 100%;
  font-size: 15px;
  line-height: 1.6;
}

.table th {
  text-align: left;
  padding: 12px 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .14em;
  color: var(--cyan);
  border-bottom: 1px solid var(--grid-line);
  white-space: nowrap;
}

.table td {
  padding: 14px;
  color: var(--paper);
  border-bottom: 1px solid rgba(42, 42, 56, .6);
  font-variant-numeric: tabular-nums;
}

.table td.num {
  font-family: var(--font-mono);
  color: var(--cyan);
}

.table tbody tr { transition: background-color .18s var(--ease); }
.table tbody tr:hover { background: rgba(0, 229, 208, .06); }

/* ---------- 面包屑 ---------- */
.breadcrumbs { padding: 20px 0 0; }

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--muted);
}

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

.breadcrumbs li + li::before {
  content: "›";
  margin: 0 9px;
  color: var(--grid-line);
}

.breadcrumbs a {
  color: var(--muted);
  text-decoration: none;
  transition: color .18s var(--ease);
}

.breadcrumbs a:hover { color: var(--cyan); }
.breadcrumbs [aria-current="page"] { color: var(--paper); }

/* ---------- 图像容器（页面阶段放图用） ---------- */
.media-frame {
  position: relative;
  overflow: hidden;
  background-color: var(--panel);
  border: 1px solid var(--grid-line);
  border-radius: var(--radius);
  aspect-ratio: 16 / 9;
  transition: border-color .2s var(--ease), transform .2s var(--ease);
}

.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(0deg, rgba(42, 42, 56, .22) 0 1px, transparent 1px 3px);
  opacity: .5;
}

.media-frame:hover {
  transform: translateY(-2px);
  border-color: var(--cyan);
}

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

.media-caption {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.6;
  letter-spacing: .02em;
  color: var(--muted);
}

/* ---------- 跳转链接 ---------- */
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 300;
  padding: 10px 16px;
  background: var(--lime);
  color: var(--ink);
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .06em;
  text-decoration: none;
  border-radius: var(--radius);
  transform: translateY(-180%);
  transition: transform .2s var(--ease);
}

.skip-link:focus {
  transform: translateY(0);
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}

/* ============================================================
   头部
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 120;
  background-color: rgba(10, 10, 15, .95);
  border-bottom: 1px solid var(--grid-line);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.header-top { border-bottom: 1px solid rgba(42, 42, 56, .55); }

.header-top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-block: 12px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
  text-decoration: none;
}

.brand-mark {
  position: relative;
  flex: none;
  width: 30px;
  height: 30px;
  background: var(--red);
  border-radius: var(--radius);
  overflow: hidden;
}

.brand-mark span {
  position: absolute;
  top: -8px;
  width: 3px;
  height: 48px;
  background: rgba(244, 241, 234, .92);
  transform: rotate(22deg);
}

.brand-mark span:nth-child(1) { left: 7px; }
.brand-mark span:nth-child(2) { left: 14px; }
.brand-mark span:nth-child(3) { left: 21px; }

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.brand-name {
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: .06em;
  line-height: 1.15;
  color: var(--paper);
  white-space: nowrap;
}

.brand-sub {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .16em;
  line-height: 1.2;
  color: var(--cyan);
  white-space: nowrap;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
}

.header-cta { white-space: nowrap; }

/* 移动导航按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 9px 12px;
  background: transparent;
  border: 1px solid var(--grid-line);
  border-radius: var(--radius);
  color: var(--paper);
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .12em;
  cursor: pointer;
  transition: border-color .18s var(--ease), color .18s var(--ease);
}

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

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

.nav-toggle-bars span {
  display: block;
  height: 2px;
  background: var(--cyan);
  transform-origin: center;
  transition: transform .22s var(--ease);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:first-child {
  transform: translateY(3.5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}

/* 第二层：栏目导航 */
.header-nav-row {
  position: relative;
  background-image: linear-gradient(90deg, #101017 0%, #15151F 46%, #1B1219 100%);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
  counter-reset: navi;
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 15px;
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .08em;
  line-height: 1.4;
  color: var(--muted);
  text-decoration: none;
  transition: color .18s var(--ease);
}

.nav-link::before {
  counter-increment: navi;
  content: counter(navi, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .08em;
  color: var(--cyan);
  opacity: .72;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 15px;
  right: 15px;
  bottom: 8px;
  height: 2px;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .22s var(--ease), background-color .18s var(--ease);
}

.nav-link:hover,
.nav-link:focus-visible { color: var(--paper); }
.nav-link:hover::after { transform: scaleX(1); }

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

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

.nav-meta {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  flex: none;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .2em;
  color: var(--muted);
  white-space: nowrap;
}

.nav-meta::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--cyan);
  flex: none;
}

/* 阅读进度轨 */
.header-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background-image: linear-gradient(90deg, var(--red) 0%, var(--orange) 45%, var(--cyan) 100%);
  transform: scaleX(0);
  transform-origin: 0 50%;
  will-change: transform;
  pointer-events: none;
}

/* ============================================================
   页脚
   ============================================================ */
.site-footer {
  position: relative;
  background-image: linear-gradient(180deg, #120A10 0%, var(--ink) 46%, var(--ink-deep) 100%);
  border-top: 1px solid var(--grid-line);
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
}

.footer-ruler {
  height: 5px;
  background-image: repeating-linear-gradient(
    90deg,
    var(--red) 0 40px,
    var(--red-deep) 40px 70px,
    var(--cyan) 70px 74px,
    var(--grid-line) 74px 132px
  );
}

.footer-inner { padding: 52px 0 30px; }

.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.6fr);
  gap: 48px;
  align-items: start;
}

.footer-logo {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 200;
  font-size: clamp(26px, 3.4vw, 40px);
  letter-spacing: .02em;
  line-height: 1.15;
  color: var(--paper);
  text-decoration: none;
}

.footer-logo::before {
  content: "";
  display: inline-block;
  width: 14px;
  height: 3px;
  margin-right: 12px;
  background: var(--red);
  vertical-align: middle;
  transform: translateY(-6px);
}

.footer-tagline {
  margin-top: 14px;
  max-width: 30em;
  font-size: 15px;
  line-height: 1.75;
  color: var(--muted);
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.footer-col-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .18em;
  line-height: 1.4;
  color: var(--paper);
}

.footer-col-title::before {
  content: "";
  width: 10px;
  height: 2px;
  background: var(--cyan);
  flex: none;
}

.footer-links li + li { margin-top: 9px; }

.footer-links a {
  position: relative;
  display: inline-block;
  font-size: 15px;
  line-height: 1.7;
  color: var(--muted);
  text-decoration: none;
  transition: color .18s var(--ease);
}

.footer-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 1px;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .22s var(--ease);
}

.footer-links a:hover { color: var(--paper); }
.footer-links a:hover::after { transform: scaleX(1); }

.footer-contact {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px 32px;
  margin-top: 42px;
  padding-top: 24px;
  border-top: 1px solid var(--grid-line);
}

.footer-contact-item {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.7;
  letter-spacing: .02em;
  color: var(--paper);
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

.footer-contact-item--wide { grid-column: 1 / -1; }

.footer-contact-label {
  display: block;
  margin-bottom: 2px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .18em;
  color: var(--cyan);
}

.footer-note {
  margin-top: 18px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  justify-content: space-between;
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid rgba(42, 42, 56, .7);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .06em;
  line-height: 1.7;
  color: var(--muted);
}

.footer-legal-item { margin: 0; }

/* ---------- 进入显现 ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}

[data-reveal="shown"] {
  opacity: 1;
  transform: none;
}

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 1023px) {
  .grid-7-4 { gap: 32px; }
  .footer-top { gap: 36px; }
}

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

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

  .header-nav-row { display: none; }

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

  .nav-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding-block: 8px;
  }

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

  .nav-link {
    padding: 13px 4px;
    font-size: 15px;
    border-bottom: 1px solid rgba(42, 42, 56, .6);
  }

  .nav-link::after { display: none; }
  .nav-link[aria-current="page"] { color: var(--lime); }
  .nav-meta { display: none; }

  .grid-7-4 {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .section { padding: 48px 0; }
  .section--tight { padding: 32px 0; }

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

  .footer-cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px 20px;
  }

  .footer-contact { margin-top: 34px; }
}

@media (max-width: 640px) {
  :root { --gutter: 16px; }

  body { font-size: 16px; }

  .header-top-inner { gap: 12px; padding-block: 10px; }
  .brand-sub { display: none; }
  .brand-name { font-size: 15px; }
  .brand-mark { width: 26px; height: 26px; }
  .header-cta { padding: 9px 12px; font-size: 12px; letter-spacing: .04em; }
  .nav-toggle { padding: 9px 10px; }
  .nav-toggle-text { display: none; }

  .footer-inner { padding: 38px 0 26px; }
  .footer-cols { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .footer-legal { flex-direction: column; gap: 6px; }

  .panel { padding: 18px; }
  .table { font-size: 14px; }
  .table th, .table td { padding: 11px 10px; }
}

/* ---------- 减少动态偏好 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

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

  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .panel:hover,
  .media-frame:hover,
  .btn:hover {
    transform: none;
  }
}
