/* ============ 米兰安装 Site Kit ============ */
/* 1. Reset & Design Tokens */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --m-red: #D5001C;
  --m-black: #161616;
  --m-space: #0A0A0A;
  --m-gold: #D4AF37;
  --m-white: #F5F5F5;
  --m-gray: #9CA3AF;
  --m-dark-red: #A3001B;
  --m-green: #2D6A4F;
  --m-font-head: "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --m-font-body: "Noto Sans SC", "PingFang SC", sans-serif;
  --m-font-mono: "Roboto Mono", "Courier New", monospace;
  --m-container: 1240px;
  --m-gutter: 24px;
  --m-border: 3px;
  --m-shadow: 6px 6px 0 rgba(0, 0, 0, 0.45);
}

html {
  scroll-behavior: smooth;
  scrollbar-color: var(--m-red) var(--m-space);
}

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

button {
  font-family: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

body {
  min-height: 100vh;
  background-color: var(--m-black);
  background-image:
    radial-gradient(ellipse 52% 34% at 84% -6%, rgba(213, 0, 28, 0.20) 0%, transparent 62%),
    radial-gradient(ellipse 42% 30% at 10% 108%, rgba(45, 106, 79, 0.15) 0%, transparent 60%),
    repeating-linear-gradient(98deg, transparent 0 6px, rgba(245, 245, 245, 0.014) 6px 7px);
  color: var(--m-white);
  font-family: var(--m-font-body);
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

:focus-visible {
  outline: 3px solid var(--m-gold);
  outline-offset: 2px;
  border-radius: 1px;
}

#main-content {
  scroll-margin-top: 120px;
}

/* 2. Skip Link */
.m-skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 2000;
  background: var(--m-red);
  color: var(--m-white);
  padding: 12px 18px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.m-skip:focus {
  left: 0;
  top: 0;
}

/* 3. Header Masthead */
.m-head {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(10, 10, 10, 0.96);
  border-bottom: 4px solid var(--m-red);
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.45);
}

.m-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: rgba(245, 245, 245, 0.08);
  z-index: 1200;
  pointer-events: none;
}

.m-bar span {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--m-red) 0%, var(--m-gold) 100%);
}

.m-head-bd,
.m-foot-bd,
.m-layout,
.m-crumb {
  width: min(var(--m-container), calc(100% - var(--m-gutter) - var(--m-gutter)));
  margin-inline: auto;
}

.m-mast {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
  padding: 14px 0 4px;
}

.m-mast-side {
  display: flex;
  align-items: center;
  justify-self: start;
}

.m-index {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--m-font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--m-gray);
  white-space: nowrap;
}

.m-index::before {
  content: "";
  width: 7px;
  height: 7px;
  background: var(--m-green);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(45, 106, 79, 0.25);
}

.m-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  justify-self: center;
}

.m-brand-shield {
  width: 42px;
  height: 48px;
  background: var(--m-red);
  clip-path: polygon(50% 0, 100% 22%, 100% 76%, 50% 100%, 0 76%, 0 22%);
  display: grid;
  place-items: center;
  font-family: var(--m-font-head);
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--m-white);
  box-shadow: 3px 3px 0 var(--m-gold);
  transition: background 0.16s ease;
}

.m-brand:hover .m-brand-shield {
  background: var(--m-dark-red);
}

.m-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.m-brand-text strong {
  font-family: var(--m-font-head);
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  color: var(--m-white);
  white-space: nowrap;
}

.m-brand-text em {
  font-style: normal;
  font-family: var(--m-font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  color: var(--m-gold);
  white-space: nowrap;
}

.m-mast-utils {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
}

.m-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--m-font-head);
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 9px 16px;
  border: 2px solid transparent;
  line-height: 1.4;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.m-btn-solid {
  background: var(--m-red);
  border-color: var(--m-red);
  color: var(--m-white);
  box-shadow: 4px 4px 0 var(--m-gold);
}

.m-btn-solid:hover {
  background: var(--m-dark-red);
  border-color: var(--m-dark-red);
  transform: translate(-1px, -1px);
  box-shadow: 5px 5px 0 var(--m-gold);
}

.m-btn-ghost {
  background: transparent;
  border-color: rgba(245, 245, 245, 0.8);
  color: var(--m-white);
}

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

.m-btn-gold {
  background: var(--m-gold);
  border-color: var(--m-gold);
  color: var(--m-space);
  box-shadow: 4px 4px 0 var(--m-red);
}

.m-btn-gold:hover {
  background: transparent;
  color: var(--m-gold);
  transform: translate(-1px, -1px);
  box-shadow: 5px 5px 0 var(--m-red);
}

.m-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  width: 42px;
  height: 42px;
  padding: 8px;
  border: 2px solid var(--m-white);
  transition: border-color 0.16s ease, background 0.16s ease;
}

.m-toggle:hover {
  border-color: var(--m-red);
  background: rgba(213, 0, 28, 0.15);
}

.m-toggle-bar {
  display: block;
  width: 20px;
  height: 3px;
  background: var(--m-white);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.m-toggle[aria-expanded="true"] .m-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.m-toggle[aria-expanded="true"] .m-toggle-bar:nth-child(2) {
  opacity: 0;
}

.m-toggle[aria-expanded="true"] .m-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.m-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 8px;
  border-top: 1px solid rgba(245, 245, 245, 0.1);
}

.m-nav-link {
  position: relative;
  display: block;
  padding: 11px 18px 12px;
  font-family: var(--m-font-head);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--m-white);
  border-right: 1px solid rgba(245, 245, 245, 0.08);
  transition: background 0.16s ease, color 0.16s ease;
}

.m-nav-link:first-child {
  border-left: 1px solid rgba(245, 245, 245, 0.08);
}

.m-nav-link:hover {
  background: var(--m-red);
  color: var(--m-white);
}

.m-nav-link[aria-current="page"] {
  background: var(--m-red);
  color: var(--m-white);
}

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

/* 4. Footer */
.m-foot {
  position: relative;
  margin-top: 88px;
  background: var(--m-space);
  border-top: 5px solid var(--m-red);
}

.m-foot::before {
  content: "";
  position: absolute;
  top: -11px;
  left: 0;
  width: 42%;
  height: 4px;
  background: var(--m-gold);
  box-shadow: 4px 0 0 rgba(212, 175, 55, 0.4);
}

.m-foot-bd {
  padding: 48px 0 26px;
}

.m-foot-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.3fr 1fr;
  gap: 36px;
}

.m-foot-brand {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.m-foot-name {
  font-family: var(--m-font-head);
  font-size: 1.9rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  color: var(--m-white);
  line-height: 1.1;
}

.m-foot-sub {
  font-family: var(--m-font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  color: var(--m-red);
  text-transform: uppercase;
}

.m-foot-note {
  font-size: 0.86rem;
  line-height: 1.85;
  color: var(--m-gray);
  max-width: 36ch;
}

.m-foot-title {
  display: inline-block;
  margin: 0 0 14px;
  padding-bottom: 6px;
  border-bottom: 2px solid rgba(212, 175, 55, 0.5);
  font-family: var(--m-font-head);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  color: var(--m-gold);
  text-transform: uppercase;
}

.m-foot-col,
.m-foot-nav,
.m-foot-info,
.m-foot-legal {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.m-foot-col a {
  color: var(--m-gray);
  font-size: 0.9rem;
  width: fit-content;
  transition: color 0.16s ease, padding-left 0.16s ease;
}

.m-foot-col a:hover {
  color: var(--m-gold);
  padding-left: 5px;
}

.m-foot-info p {
  font-family: var(--m-font-mono);
  font-size: 0.8rem;
  color: var(--m-gray);
  line-height: 1.9;
  word-break: break-all;
}

.m-foot-bottom {
  margin-top: 42px;
  padding-top: 20px;
  border-top: 1px solid rgba(245, 245, 245, 0.12);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.m-foot-copy,
.m-foot-icp {
  font-family: var(--m-font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  color: var(--m-gray);
}

.m-foot-copy {
  color: rgba(245, 245, 245, 0.7);
}

/* 5. Breadcrumb */
.m-crumb {
  padding: 20px 0 6px;
}

.m-crumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  list-style: none;
}

.m-crumb li {
  display: flex;
  align-items: center;
  font-size: 0.82rem;
}

.m-crumb li + li::before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 2px;
  background: var(--m-red);
  margin: 0 10px;
}

.m-crumb a {
  color: var(--m-gray);
}

.m-crumb a:hover {
  color: var(--m-gold);
}

.m-crumb [aria-current="page"] {
  color: var(--m-white);
  font-weight: 700;
}

/* 6. Typography */
.m-hero {
  font-family: var(--m-font-head);
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 900;
  line-height: 0.96;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.m-h1 {
  font-family: var(--m-font-head);
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 900;
  line-height: 1.05;
  text-transform: uppercase;
}

.m-h2 {
  font-family: var(--m-font-head);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  line-height: 1.15;
}

.m-h3 {
  font-family: var(--m-font-head);
  font-size: clamp(1.3rem, 2.5vw, 1.7rem);
  font-weight: 800;
  line-height: 1.25;
}

.m-lead {
  font-size: 1.05rem;
  color: var(--m-gray);
  max-width: 62ch;
}

.m-prose {
  max-width: 70ch;
  margin-inline: auto;
  color: #D8D8D8;
  font-size: 1rem;
  line-height: 1.9;
}

.m-prose h2 {
  font-family: var(--m-font-head);
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 800;
  color: var(--m-white);
  margin: 2em 0 0.6em;
}

.m-prose h3 {
  font-family: var(--m-font-head);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--m-white);
  margin: 1.8em 0 0.5em;
}

.m-prose p {
  margin: 0 0 1.3em;
}

.m-prose a {
  color: var(--m-gold);
}

.m-prose strong {
  color: var(--m-white);
}

.m-prose ul,
.m-prose ol {
  margin: 0 0 1.3em 1.6em;
}

.m-prose blockquote {
  border-left: 5px solid var(--m-red);
  background: rgba(213, 0, 28, 0.08);
  padding: 14px 18px;
  margin: 0 0 1.3em;
  color: var(--m-white);
}

.m-prose hr {
  border: 0;
  border-top: 3px solid var(--m-white);
  margin: 2em 0;
}

/* 7. Grid, Card, Components */
.m-grid {
  display: grid;
  gap: 24px;
}

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

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

.m-card {
  position: relative;
  background: var(--m-space);
  border: var(--m-border) solid rgba(245, 245, 245, 0.85);
  box-shadow: var(--m-shadow);
  padding: 22px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.m-card:hover,
.m-card:focus-within {
  transform: translate(-2px, -2px);
  box-shadow: 10px 10px 0 var(--m-dark-red);
}

.m-card-sn {
  display: block;
  margin-bottom: 10px;
  font-family: var(--m-font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  color: var(--m-gold);
}

.m-card-title {
  font-family: var(--m-font-head);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--m-white);
  margin: 0 0 6px;
}

.m-card-txt {
  font-size: 0.9rem;
  color: var(--m-gray);
  line-height: 1.7;
}

.m-pill {
  display: inline-block;
  padding: 3px 10px;
  border: 1.5px solid var(--m-gray);
  font-family: var(--m-font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--m-gray);
  text-transform: uppercase;
  white-space: nowrap;
}

.m-pill-red {
  border-color: var(--m-red);
  color: #FF5A6E;
}

.m-pill-gold {
  border-color: var(--m-gold);
  color: var(--m-gold);
}

.m-pill-green {
  border-color: var(--m-green);
  color: #4ADE80;
}

.m-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  padding: 2px;
  background: var(--m-space);
  border: 2px solid var(--m-white);
}

.m-stat {
  flex: 1 1 140px;
  min-width: 0;
  padding: 14px 12px;
  background: rgba(245, 245, 245, 0.04);
}

.m-stat-num {
  font-family: var(--m-font-mono);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--m-white);
  letter-spacing: 0.02em;
}

.m-stat-label {
  display: block;
  margin-top: 2px;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--m-gray);
  text-transform: uppercase;
}

.m-stat-red .m-stat-num {
  color: var(--m-red);
}

.m-stat-gold .m-stat-num {
  color: var(--m-gold);
}

.m-stat-green .m-stat-num {
  color: #4ADE80;
}

.m-shot {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background:
    linear-gradient(135deg, rgba(213, 0, 28, 0.30) 0%, transparent 55%),
    repeating-linear-gradient(45deg, rgba(245, 245, 245, 0.05) 0 2px, transparent 2px 16px),
    var(--m-space);
  border: var(--m-border) solid var(--m-white);
  box-shadow: var(--m-shadow);
}

.m-shot-21 {
  aspect-ratio: 2 / 1;
}

.m-shot-1 {
  aspect-ratio: 1 / 1;
}

.m-shot::before {
  content: attr(data-index);
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  font-family: var(--m-font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--m-white);
  background: var(--m-red);
  padding: 2px 8px;
}

.m-shot::after {
  content: attr(data-cap);
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 2;
  font-family: var(--m-font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  color: var(--m-gold);
  background: rgba(10, 10, 10, 0.78);
  padding: 2px 8px;
  text-transform: uppercase;
}

.m-sticker {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 3;
  background: var(--m-gold);
  color: var(--m-space);
  font-family: var(--m-font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.06em;
  padding: 5px 14px;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 12px 100%, 0 calc(100% - 12px));
}

.m-divider {
  height: 0;
  border: 0;
  border-top: 3px solid var(--m-white);
  margin: 28px 0;
}

.m-divider::after {
  content: "◆";
  position: absolute;
  margin-top: -10px;
  color: var(--m-red);
  font-size: 0.8rem;
}

.m-sm-sec {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 24px;
}

.m-sm-num {
  font-family: var(--m-font-mono);
  font-size: 1rem;
  font-weight: 700;
  color: var(--m-red);
}

.m-sm-t {
  font-family: var(--m-font-head);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--m-white);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.m-sm-line {
  flex: 1;
  height: 3px;
  background: linear-gradient(90deg, rgba(245, 245, 245, 0.7), rgba(245, 245, 245, 0.06));
  transform: skewX(-15deg);
}

/* 8. Responsive */
@media (min-width: 961px) and (max-width: 1120px) {
  .m-btn {
    font-size: 0.78rem;
    padding: 8px 12px;
  }

  .m-nav-link {
    padding: 11px 13px;
    font-size: 0.88rem;
  }

  .m-mast {
    gap: 12px;
  }

  .m-index {
    font-size: 0.64rem;
  }
}

@media (max-width: 960px) {
  :root {
    --m-gutter: 20px;
  }

  .m-mast {
    grid-template-columns: 1fr auto;
    gap: 10px;
  }

  .m-mast-side {
    display: none;
  }

  .m-mast-utils {
    gap: 6px;
  }

  .m-mast-utils .m-btn {
    display: none;
  }

  .m-toggle {
    display: flex;
  }

  .m-brand-text em {
    display: none;
  }

  .m-nav {
    display: none;
    flex-direction: column;
    border-top: 3px solid var(--m-red);
    border-bottom: 3px solid var(--m-red);
    margin-top: 10px;
    background: rgba(10, 10, 10, 0.98);
    padding: 6px 0;
  }

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

  .m-nav-link,
  .m-nav-link:first-child {
    border: 0;
    border-left: 4px solid transparent;
    border-bottom: 1px solid rgba(245, 245, 245, 0.07);
    padding: 14px 20px;
    font-size: 1rem;
  }

  .m-nav-link:last-child {
    border-bottom: 0;
  }

  .m-nav-link:hover,
  .m-nav-link[aria-current="page"] {
    border-left-color: var(--m-red);
    background: rgba(213, 0, 28, 0.12);
  }

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

  .m-foot-grid {
    grid-template-columns: 1fr 1fr;
  }

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

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

  .m-brand-text strong {
    font-size: 1.25rem;
  }

  .m-brand-shield {
    width: 36px;
    height: 42px;
    font-size: 1.15rem;
  }

  .m-hero {
    font-size: clamp(2.4rem, 13vw, 3.6rem);
  }

  .m-prose {
    font-size: 0.95rem;
  }

  .m-foot-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .m-foot-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

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

  .m-stats {
    flex-direction: column;
  }
}

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

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