/* =========================================================
   米兰体育官方入口 · 共享站点样式 /assets/site.css
   夜场战术板 × 复古出版档案
   ========================================================= */

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

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

body { margin: 0; }

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

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

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

a { color: inherit; }

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

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

::selection {
  background: var(--red);
  color: var(--white);
}

/* ---------- 2. 变量 ---------- */
:root {
  --ink: #0A0A0B;
  --ink-2: #171719;
  --cream: #F1E7D4;
  --red: #D21F2B;
  --wine: #7E1118;
  --silver: #B9C0C7;
  --mint: #35E0C4;
  --espresso: #3B2A22;
  --white: #FBFBF7;

  --line: rgba(185, 192, 199, 0.22);
  --line-strong: rgba(185, 192, 199, 0.42);
  --red-line: rgba(210, 31, 43, 0.45);

  --font-display: "Noto Sans SC", "Source Han Sans SC", "Impact", "Haettenschweiler", "Arial Black", "PingFang SC", sans-serif;
  --font-body: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", "Roboto Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --font-serif: "Songti SC", "Source Han Serif SC", "Noto Serif SC", serif;

  --maxw: 1240px;
  --gut: clamp(16px, 4vw, 44px);
  --ease: cubic-bezier(0.2, 0.7, 0.3, 1);
}

/* ---------- 3. 基础排版 ---------- */
body {
  background: var(--ink);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  font-weight: 400;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

p { overflow-wrap: break-word; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: 0.01em;
  line-height: 1.05;
}

h1 { font-size: clamp(40px, 6.5vw, 92px); line-height: 0.95; }
h2 { font-size: clamp(26px, 3.6vw, 48px); line-height: 1.04; }
h3 { font-size: clamp(20px, 2.2vw, 28px); line-height: 1.16; }
h4 { font-size: clamp(17px, 1.5vw, 20px); line-height: 1.3; }

strong { font-weight: 900; }

/* ---------- 4. 通用容器与网格 ---------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gut);
}

.section {
  padding-block: clamp(44px, 7vw, 100px);
}

.section--paper {
  background: var(--cream);
  color: var(--espresso);
}

.grid {
  display: grid;
  gap: clamp(16px, 2.4vw, 32px);
  grid-template-columns: minmax(0, 1fr);
}

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

.stack > * + * { margin-top: 1rem; }

/* ---------- 5. 小部件：标签 / 数字 / 按钮 ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-serif);
  font-size: 0.72rem;
  font-weight: 300;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--silver);
}

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

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

.tag {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  border: 1px solid currentColor;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  white-space: nowrap;
}

.section--paper .tag { color: var(--wine); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.4rem;
  background: var(--red);
  border: 1px solid var(--red);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.22s var(--ease), color 0.22s var(--ease), border-color 0.22s var(--ease);
}

.btn:hover { background: var(--wine); border-color: var(--wine); }

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

.btn--ghost:hover {
  background: transparent;
  border-color: var(--mint);
  color: var(--mint);
}

.section--paper .btn--ghost {
  border-color: rgba(59, 42, 34, 0.45);
  color: var(--espresso);
}

.section--paper .btn--ghost:hover {
  border-color: var(--wine);
  color: var(--wine);
}

/* ---------- 6. 面包屑 ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--silver);
}

.breadcrumb a {
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.breadcrumb a:hover { color: var(--white); border-bottom-color: var(--red); }

.breadcrumb__sep { color: var(--wine); }

.section--paper .breadcrumb { color: rgba(59, 42, 34, 0.7); }
.section--paper .breadcrumb a:hover { color: var(--espresso); }

/* ---------- 7. 图片容器（页面阶段复用） ---------- */
.media {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  background-color: var(--ink-2);
  background-image: repeating-linear-gradient(135deg, rgba(210, 31, 43, 0.14) 0 2px, transparent 2px 9px);
  border: 1px solid var(--line);
}

.media > img,
.media > picture > img {
  position: absolute;
  inset: 0;
  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--tall { aspect-ratio: 3 / 4; }

.media--paper {
  background-color: var(--cream);
  background-image: none;
  border-color: rgba(59, 42, 34, 0.35);
}

.media__halftone {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(10, 10, 11, 0.6) 0.8px, transparent 0.9px);
  background-size: 3px 3px;
  opacity: 0.35;
  mix-blend-mode: multiply;
}

.media__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.5rem 0.7rem;
  background: rgba(10, 10, 11, 0.84);
  color: var(--silver);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
}

/* ---------- 8. 正文容器 ---------- */
.prose {
  max-width: 68ch;
  font-size: 1.02rem;
  line-height: 1.78;
}

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

.prose h2 {
  margin-top: 2.4rem;
  font-size: clamp(24px, 2.8vw, 36px);
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--red);
}

.prose h3 {
  margin-top: 1.8rem;
  font-size: clamp(18px, 1.8vw, 23px);
}

.prose a {
  color: var(--red);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}

.prose a:hover { color: var(--wine); }

.section--paper .prose a { color: var(--wine); }

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

.prose ol { list-style: decimal; }

.prose li + li { margin-top: 0.45rem; }

/* ---------- 9. 跳过链接 ---------- */
.skip-link {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 300;
  padding: 0.7rem 1.3rem;
  background: var(--red);
  color: var(--white);
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  transform: translate(-50%, -160%);
  transition: transform 0.2s var(--ease);
}

.skip-link:focus { transform: translate(-50%, 0); }

/* ---------- 10. 页头 ---------- */
.site-header {
  position: relative;
  z-index: 60;
  background: var(--ink);
  border-bottom: 1px solid var(--line);
}

.header__strip {
  background: var(--ink-2);
  border-bottom: 1px solid var(--red-line);
}

.header__strip-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 34px;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--silver);
}

.strip__edition { color: var(--silver); }

.strip__live {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--mint);
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 3px rgba(53, 224, 196, 0.18);
  animation: dot-pulse 2.6s ease-in-out infinite;
}

@keyframes dot-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.32; }
}

.strip__coords { color: rgba(185, 192, 199, 0.7); }

/* 刊头 */
.masthead {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-block: clamp(20px, 3vw, 36px) clamp(14px, 2vw, 22px);
}

.masthead__kicker {
  font-family: var(--font-serif);
  font-size: clamp(0.66rem, 1vw, 0.78rem);
  font-weight: 300;
  letter-spacing: 0.52em;
  text-indent: 0.52em;
  text-transform: uppercase;
  color: var(--silver);
}

.masthead__brand {
  display: inline-block;
  margin-top: 0.3rem;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(36px, 8vw, 84px);
  line-height: 0.92;
  letter-spacing: 0.04em;
  color: var(--white);
  text-decoration: none;
  transition: color 0.22s var(--ease);
}

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

.masthead__brand::after {
  content: "";
  display: block;
  width: 100%;
  height: 3px;
  margin-top: 0.35rem;
  background: var(--red);
}

.masthead__tagline {
  margin-top: 0.7rem;
  font-size: clamp(0.78rem, 1.2vw, 0.9rem);
  color: var(--silver);
  letter-spacing: 0.06em;
}

.masthead__note {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  writing-mode: vertical-rl;
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: 0.62rem;
  letter-spacing: 0.36em;
  color: rgba(185, 192, 199, 0.62);
}

.masthead__note--left { left: 0; }
.masthead__note--right { right: 0; }

/* 导航条 */
.nav-bar {
  position: relative;
  background: var(--ink);
  border-top: 1px solid var(--line);
  border-bottom: 3px double var(--line-strong);
}

.nav-bar__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  min-height: 58px;
}

.nav {
  grid-column: 2;
  justify-self: center;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: clamp(10px, 2.2vw, 30px);
}

.nav__item { display: block; }

.nav__link {
  position: relative;
  display: inline-block;
  padding: 0.72rem 0.2rem;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--cream);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.42rem;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.22s var(--ease);
}

.nav__link:hover { color: var(--white); }

.nav__link:hover::after,
.nav__link[aria-current="page"]::after { transform: scaleX(1); }

.nav__link[aria-current="page"] { color: var(--white); }

/* 页头行动按钮 */
.nav-bar__cta {
  grid-column: 3;
  justify-self: end;
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 1rem;
  background: var(--red);
  border: 1px solid var(--red);
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.22s var(--ease), color 0.22s var(--ease);
}

.nav-bar__cta:hover {
  background: transparent;
  color: var(--white);
  border-color: var(--red);
}

/* 移动导航按钮 */
.nav-toggle {
  grid-column: 1;
  justify-self: start;
  display: none;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.7rem;
  background: transparent;
  border: 1px solid var(--line-strong);
  color: var(--cream);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  cursor: pointer;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}

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

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

.nav-toggle__bars {
  position: relative;
  display: inline-block;
  width: 16px;
  height: 2px;
  background: currentColor;
  transition: background 0.2s var(--ease);
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 16px;
  height: 2px;
  background: currentColor;
  transition: transform 0.22s var(--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); }

/* 阅读进度 */
.scroll-meter {
  height: 2px;
  background: rgba(185, 192, 199, 0.16);
  overflow: hidden;
}

.scroll-meter__fill {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--wine), var(--red) 62%, var(--mint));
  transition: width 0.14s linear;
}

/* ---------- 11. 页脚 ---------- */
.site-footer {
  position: relative;
  background: var(--ink-2);
  color: var(--silver);
}

.footer__rule {
  height: 5px;
  background-image: repeating-linear-gradient(90deg, var(--red) 0 26px, transparent 26px 40px);
  opacity: 0.85;
}

.footer__top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.4fr;
  gap: clamp(24px, 3.4vw, 52px);
  padding-block: clamp(38px, 5.5vw, 68px) clamp(24px, 3.5vw, 42px);
}

.footer__brand { min-width: 0; }

.footer__wordmark {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(26px, 3.4vw, 40px);
  line-height: 0.95;
  letter-spacing: 0.04em;
  color: var(--white);
}

.footer__about {
  margin-top: 0.85rem;
  max-width: 34ch;
  font-size: 0.88rem;
  line-height: 1.75;
  color: var(--silver);
}

.footer__icp {
  margin-top: 1rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: rgba(185, 192, 199, 0.78);
}

.footer__nav { min-width: 0; }

.footer__col-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.9rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(210, 31, 43, 0.45);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cream);
}

.footer__col-title::before {
  content: "";
  width: 14px;
  height: 2px;
  background: var(--red);
  flex: none;
}

.footer__links {
  display: grid;
  gap: 0.55rem;
}

.footer__link {
  display: inline-block;
  font-size: 0.9rem;
  color: var(--silver);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.footer__link:hover {
  color: var(--white);
  border-bottom-color: var(--red);
}

.footer__link[aria-current="page"] {
  color: var(--white);
  border-bottom-color: var(--red);
}

.footer__contact {
  font-size: 0.86rem;
  line-height: 1.7;
  min-width: 0;
}

.footer__contact-item {
  display: grid;
  grid-template-columns: 3.2em minmax(0, 1fr);
  gap: 0.5rem;
  color: var(--cream);
  word-break: break-word;
}

.footer__contact-item + .footer__contact-item { margin-top: 0.4rem; }

.footer__contact-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  color: rgba(185, 192, 199, 0.72);
  padding-top: 0.22rem;
}

.footer__note {
  margin-top: 0.9rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--line);
  font-size: 0.78rem;
  line-height: 1.7;
  color: rgba(185, 192, 199, 0.8);
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem 1.4rem;
  padding-block: 1.1rem 1.9rem;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: rgba(185, 192, 199, 0.82);
}

.footer__copyright { margin: 0; }

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.1rem;
}

.footer__legal .footer__link { font-size: 0.72rem; }

/* ---------- 12. 响应式 ---------- */
@media (max-width: 1024px) {
  .masthead__note { display: none; }
}

@media (max-width: 880px) {
  .nav-bar__inner {
    grid-template-columns: auto 1fr auto;
    min-height: 54px;
  }

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

  .nav {
    grid-column: 1 / -1;
    justify-self: stretch;
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 70;
    padding: 0.4rem var(--gut) 1rem;
    background: var(--ink-2);
    border-top: 2px solid var(--red);
    border-bottom: 1px solid var(--red-line);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.62);
  }

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

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

  .nav__link {
    display: block;
    padding: 0.85rem 0.25rem;
    font-size: 0.98rem;
    border-bottom: 1px solid var(--line);
  }

  .nav__link::after { display: none; }

  .nav__link[aria-current="page"] {
    color: var(--white);
    background: rgba(210, 31, 43, 0.16);
  }

  .nav-item:last-child .nav__link,
  .nav__item:last-child .nav__link { border-bottom: 0; }

  .nav-bar__cta {
    font-size: 0.74rem;
    padding: 0.5rem 0.7rem;
    letter-spacing: 0.04em;
  }

  .footer__top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__brand { grid-column: 1 / -1; }
  .footer__contact { grid-column: 1 / -1; }
}

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

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

  .header__strip-inner {
    font-size: 0.6rem;
    letter-spacing: 0.1em;
  }

  .strip__coords { display: none; }

  .masthead__brand::after { height: 2px; }
}

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

  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-bar__cta { display: none; }
}

/* ---------- 13. 减少动态效果 ---------- */
@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;
  }

  .dot { animation: none; }
  .scroll-meter__fill { transition: none; }
}
