/* =========================================================
   米兰赛场CN · /assets/site.css
   赛场信号系统：终场墨黑 / 纸白 / 米兰红 / 青海青蓝
   ========================================================= */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 40px);
}

body { margin: 0; }

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

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

figure, blockquote { margin: 0; }

button { background: none; border: 0; padding: 0; cursor: pointer; }

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

a { color: inherit; }

/* ---------- 2. 变量 ---------- */
:root {
  --ink: #0B0B0C;
  --night: #141416;
  --paper: #FCFCFA;
  --ice: #F2F3F1;
  --altitude: #A9B0B4;
  --steel: #5B6368;
  --milan: #C8102E;
  --signal: #FF3B4E;
  --lake: #2D6F7C;
  --line: #D6D9DA;
  --sand: #E8E5DE;

  --font-serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", Songti, STSong, serif;
  --font-sans: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --font-cond: "Barlow Condensed", "Oswald", "Arial Narrow", "Helvetica Neue", Arial, system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, "Courier New", monospace;

  --w-max: 1280px;
  --gutter: clamp(16px, 4vw, 44px);
  --gap: clamp(16px, 2vw, 24px);
  --cut: 14px;
  --cut-lg: 26px;
  --header-h: 64px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- 3. 基础排版 ---------- */
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 .5em;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -.005em;
}

h1 { font-family: var(--font-serif); font-size: clamp(30px, 4.6vw, 58px); line-height: 1.12; }
h2 { font-family: var(--font-serif); font-size: clamp(23px, 3.2vw, 38px); }
h3 { font-size: clamp(17px, 1.6vw, 21px); font-weight: 700; line-height: 1.38; }
h4 { font-size: 16px; font-weight: 700; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

::selection { background: var(--milan); color: var(--paper); }

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

.site-header :focus-visible,
.site-footer :focus-visible {
  outline: 2px solid var(--paper);
  outline-offset: 3px;
}

/* ---------- 4. 通用工具 ---------- */
.container {
  width: 100%;
  max-width: var(--w-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container--narrow { max-width: 860px; }

.section { padding-block: clamp(44px, 7vw, 104px); }
.section--tight { padding-block: clamp(28px, 4vw, 56px); }
.section--dark { background: var(--ink); color: var(--paper); }
.section--night { background: var(--night); color: var(--paper); }
.section--ice { background: var(--ice); }
.section--sand { background: var(--sand); }

.rule {
  height: 1px;
  border: 0;
  margin: clamp(24px, 4vw, 48px) 0;
  background: var(--line);
}
.section--dark .rule,
.section--night .rule { background: rgba(252, 252, 250, .16); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--steel);
}
.eyebrow::before {
  content: "";
  width: 20px;
  height: 2px;
  background: var(--milan);
  transform: skewX(-14deg);
}
.section--dark .eyebrow,
.section--night .eyebrow { color: var(--altitude); }

.lede {
  max-width: 62ch;
  font-size: clamp(16px, 1.5vw, 18px);
  line-height: 1.8;
  color: var(--steel);
}
.section--dark .lede,
.section--night .lede { color: var(--altitude); }

.display {
  font-family: var(--font-cond);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .01em;
  line-height: .92;
  font-variant-numeric: tabular-nums;
}

.num {
  font-family: var(--font-cond);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: .01em;
}

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

.meta {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--steel);
}
.section--dark .meta,
.section--night .meta { color: var(--altitude); }

/* ---------- 5. 网格 ---------- */
.grid {
  display: grid;
  gap: var(--gap);
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

@media (min-width: 640px) {
  .grid--2, .grid--3, .grid--4, .grid--6, .grid--12 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1000px) {
  .grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .grid--6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .grid--12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
}

/* ---------- 6. 按钮 / 标签 / 面板 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 24px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .02em;
  line-height: 1.2;
  text-decoration: none;
  background: var(--milan);
  color: var(--paper);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 11px), calc(100% - 11px) 100%, 0 100%);
  transition: background .18s var(--ease), color .18s var(--ease), transform .18s var(--ease);
}
.btn:hover { background: var(--signal); }
.btn:active { transform: translateY(1px); }

.btn--outline {
  background: var(--paper);
  color: var(--ink);
}
.btn--outline:hover { background: var(--sand); color: var(--ink); }

.btn--dark {
  background: var(--paper);
  color: var(--ink);
}
.btn--dark:hover { background: var(--sand); }

.btn--sm {
  padding: 9px 16px;
  font-size: 13.5px;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px 4px 11px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  background: var(--sand);
  color: var(--ink);
  clip-path: polygon(9px 0, 100% 0, 100% 100%, 0 100%);
}
.tag--signal { background: var(--milan); color: var(--paper); }
.tag--lake { background: var(--lake); color: var(--paper); }

.panel {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: clamp(16px, 2.4vw, 28px);
}

.panel--cut {
  border: 0;
  background: var(--ice);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%);
}

.panel--dark {
  border-color: rgba(252, 252, 250, .14);
  background: var(--night);
  color: var(--paper);
}

/* ---------- 7. 面包屑 ---------- */
.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--steel);
}
.crumbs li { display: inline-flex; align-items: center; gap: 10px; }
.crumbs li + li::before { content: "/"; color: var(--altitude); }
.crumbs a {
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .18s var(--ease), border-color .18s var(--ease);
}
.crumbs a:hover { color: var(--lake); border-bottom-color: currentColor; }
.crumbs [aria-current="page"] { color: var(--ink); }
.section--dark .crumbs,
.section--night .crumbs { color: var(--altitude); }
.section--dark .crumbs [aria-current="page"],
.section--night .crumbs [aria-current="page"] { color: var(--paper); }

/* ---------- 8. 图片容器（页面阶段放图） ---------- */
.figure {
  position: relative;
  overflow: hidden;
  background: var(--sand);
}
.figure__media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}
.figure__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.figure--tall .figure__media { aspect-ratio: 4 / 5; }
.figure--wide .figure__media { aspect-ratio: 21 / 9; }
.figure--square .figure__media { aspect-ratio: 1 / 1; }
.figure__caption {
  padding: 10px 2px 0;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.6;
  color: var(--steel);
}
.figure--cut .figure__media {
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--cut-lg)), calc(100% - var(--cut-lg)) 100%, 0 100%);
}
.figure.duotone .figure__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(150deg, rgba(200, 16, 46, .62), rgba(11, 11, 12, .72));
  mix-blend-mode: multiply;
  pointer-events: none;
}

/* ---------- 9. 跳转链接 ---------- */
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 200;
  transform: translateY(-180%);
  padding: 10px 18px;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--ink);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .08em;
  text-decoration: none;
  transition: transform .2s var(--ease);
}
.skip-link:focus,
.skip-link:focus-visible { transform: translateY(0); }

/* ---------- 10. 头部命令栏 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: var(--ink);
  color: var(--paper);
  border-bottom: 1px solid rgba(252, 252, 250, .14);
}

.command-bar { position: relative; background: var(--ink); }

.command-bar__inner {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.4vw, 36px);
  min-height: var(--header-h);
  max-width: var(--w-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  flex: 0 0 auto;
  text-decoration: none;
  color: var(--paper);
}

.brand__mark {
  flex: 0 0 auto;
  width: 11px;
  height: 30px;
  background: var(--milan);
  clip-path: polygon(0 0, 100% 14%, 100% 100%, 0 86%);
  transition: background .2s var(--ease);
}
.brand:hover .brand__mark { background: var(--signal); }

.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name {
  font-family: var(--font-sans);
  font-size: 19px;
  font-weight: 800;
  letter-spacing: .04em;
}
.brand__tag {
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .34em;
  color: var(--altitude);
}

.primary-nav { margin-left: auto; }
.primary-nav__list { display: flex; align-items: stretch; gap: 2px; }

.nav-link {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  padding: 10px 13px;
  font-size: 14px;
  letter-spacing: .04em;
  text-decoration: none;
  color: rgba(252, 252, 250, .7);
  box-shadow: inset 0 -2px 0 transparent;
  transition: color .18s var(--ease), background .18s var(--ease), box-shadow .18s var(--ease);
}
.nav-link:hover { color: var(--paper); background: rgba(252, 252, 250, .07); }
.nav-link__idx {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .06em;
  color: var(--steel);
  transition: color .18s var(--ease);
}
.nav-link:hover .nav-link__idx { color: var(--signal); }
.nav-link[aria-current="page"] {
  color: var(--paper);
  box-shadow: inset 0 -2px 0 var(--milan);
}
.nav-link[aria-current="page"] .nav-link__idx { color: var(--signal); }

/* 移动端开关 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  margin-left: auto;
  padding: 9px 12px;
  border: 1px solid rgba(252, 252, 250, .26);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  transition: border-color .18s var(--ease), background .18s var(--ease);
}
.nav-toggle:hover { border-color: var(--paper); background: rgba(252, 252, 250, .08); }
.nav-toggle__bars { position: relative; display: block; width: 16px; height: 10px; }
.nav-toggle__bars span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--paper);
  transition: transform .2s var(--ease), opacity .2s var(--ease);
}
.nav-toggle__bars span:first-child { top: 0; }
.nav-toggle__bars span:last-child { bottom: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:first-child { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* 信号细条 */
.signal-strip {
  background: var(--night);
  border-top: 1px solid rgba(252, 252, 250, .08);
}
.signal-strip__inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 20px;
  max-width: var(--w-max);
  margin-inline: auto;
  padding: 7px var(--gutter);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .06em;
  color: var(--altitude);
}
.signal-strip__live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--paper);
}
.signal-strip__live b { color: var(--signal); font-weight: 600; }
.signal-strip__note { margin: 0; }
.signal-strip__tag {
  display: inline-block;
  margin-right: 9px;
  padding: 1px 7px;
  background: var(--sand);
  color: var(--ink);
  font-size: 10px;
  letter-spacing: .16em;
}
.signal-strip__cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-left: auto;
  padding-bottom: 2px;
  color: var(--paper);
  text-decoration: none;
  border-bottom: 1px solid var(--milan);
  transition: color .18s var(--ease), border-color .18s var(--ease);
}
.signal-strip__cta:hover { color: var(--signal); border-bottom-color: var(--signal); }
.signal-strip__cta span { font-size: 12px; line-height: 1; }

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 0 3px rgba(255, 59, 78, .18);
  animation: signal-breathe 2.8s ease-in-out infinite;
}
@keyframes signal-breathe {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .45; transform: scale(.82); }
}

/* 滚动进度 */
.scroll-meter {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  pointer-events: none;
}
.scroll-meter__bar {
  display: block;
  height: 100%;
  background: var(--milan);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform .12s linear;
}

/* ---------- 11. 页脚 ---------- */
.site-footer {
  background: var(--ink);
  color: var(--paper);
}

.footer-rule {
  height: 4px;
  background: linear-gradient(90deg, var(--milan) 0%, var(--signal) 42%, rgba(200, 16, 46, .1) 100%);
}

.footer__inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.35fr;
  gap: clamp(24px, 4vw, 56px);
  padding-block: clamp(40px, 6vw, 76px) clamp(28px, 4vw, 48px);
}

.footer__wordmark {
  margin: 0 0 6px;
  font-family: var(--font-sans);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: .06em;
}
.footer__tagline {
  margin: 0 0 16px;
  font-family: var(--font-serif);
  font-size: 15px;
  letter-spacing: .12em;
  color: var(--altitude);
}
.footer__note {
  margin: 0;
  font-size: 13px;
  color: var(--steel);
}
.footer__note .mono { color: var(--altitude); }

.footer__col-title {
  margin: 0 0 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--altitude);
}

.footer__links li { margin-bottom: 2px; }
.footer__links a {
  display: inline-block;
  padding: 5px 0;
  font-size: 14px;
  color: rgba(252, 252, 250, .82);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .18s var(--ease), border-color .18s var(--ease);
}
.footer__links a:hover { color: var(--paper); border-bottom-color: var(--milan); }

.footer__mail,
.footer__phone {
  margin: 0 0 6px;
  font-size: 13px;
  color: var(--paper);
  word-break: break-all;
}
.footer__addr {
  margin: 0 0 12px;
  font-size: 13px;
  line-height: 1.7;
  color: rgba(252, 252, 250, .8);
}
.footer__tip {
  margin: 0;
  font-size: 12px;
  line-height: 1.7;
  color: var(--steel);
}

.footer__base {
  border-top: 1px solid rgba(252, 252, 250, .14);
}
.footer__base-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 28px;
  padding-block: 16px 20px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .08em;
  color: var(--altitude);
}
.footer__copy { margin: 0; }
.footer__legal { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.footer__legal a {
  text-decoration: none;
  color: var(--altitude);
  border-bottom: 1px solid transparent;
  transition: color .18s var(--ease), border-color .18s var(--ease);
}
.footer__legal a:hover { color: var(--paper); border-bottom-color: var(--milan); }
.footer__icp { margin: 0; margin-left: auto; }

/* ---------- 12. 滚动显现 ---------- */
.has-js [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .4s var(--ease), transform .4s var(--ease);
  will-change: opacity, transform;
}
.has-js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- 13. 响应式 ---------- */
@media (max-width: 1023px) {
  .footer__inner { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer__contact { grid-column: 1 / -1; }
}

@media (max-width: 940px) {
  :root { --header-h: 58px; }

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

  .primary-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    background: var(--night);
    border-top: 1px solid rgba(252, 252, 250, .14);
    border-bottom: 1px solid rgba(252, 252, 250, .14);
    box-shadow: 0 24px 44px rgba(0, 0, 0, .5);
    padding: 6px var(--gutter) 20px;
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
  }
  .primary-nav[data-open] { display: block; }

  .primary-nav__list { flex-direction: column; gap: 0; }

  .nav-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 12px;
    font-size: 15px;
    border-bottom: 1px solid rgba(252, 252, 250, .09);
    box-shadow: none;
  }
  .nav-link:last-child { border-bottom: 0; }
  .nav-link[aria-current="page"] {
    box-shadow: none;
    background: rgba(200, 16, 46, .16);
    box-shadow: inset 3px 0 0 var(--milan);
  }
}

@media (max-width: 760px) {
  .signal-strip__note { display: none; }
  .signal-strip__cta { margin-left: auto; }
  .brand__tag { display: none; }
  .footer__inner { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer__brand { grid-column: 1 / -1; }
  .footer__icp { margin-left: 0; width: 100%; }
}

@media (max-width: 560px) {
  .footer__inner { grid-template-columns: 1fr; }
  .footer__base-inner { flex-direction: column; align-items: flex-start; gap: 8px; }
  .footer__legal { gap: 8px 16px; }
}

/* ---------- 14. Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

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

  .dot { animation: none; opacity: 1; }

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

  .scroll-meter__bar { transition: none; }
}
