/* 米兰体育 · 米兰电竞 · 独立样式资源 */
:root {
  --accent: #ff4b3c;
  --accent-ink: #1b0d0b;
  --bg: #121417;
  --panel: #1a1d22;
  --panel-2: #15181c;
  --ink: #f4f5f7;
  --muted: #9aa1a9;
  --line: #2b3037;
  --win: #7ee08a;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font:
    15px/1.75 Arial,
    "Microsoft YaHei",
    "PingFang SC",
    sans-serif;
  -webkit-tap-highlight-color: transparent;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select {
  font: inherit;
}
button {
  cursor: pointer;
}
img,
svg {
  display: block;
  max-width: 100%;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  line-height: 1.3;
  overflow-wrap: anywhere;
}
[hidden] {
  display: none !important;
}
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}
.wrap {
  width: min(1180px, calc(100% - 64px));
  margin-inline: auto;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
.skip {
  position: fixed;
  top: -100px;
  left: 20px;
  background: #fff;
  color: #12182b;
  padding: 10px;
  z-index: 80;
}
.skip:focus {
  top: 10px;
}
.kicker {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent);
}
.note {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.9;
}
.button {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 12px 19px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 12px;
  font-weight: 700;
  min-height: 44px;
  border-radius: 4px;
}
.button.secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.button:hover,
button:hover {
  filter: brightness(0.93);
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 700;
}
.text-link:hover {
  color: var(--accent);
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.chips button {
  padding: 7px 13px;
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: 12px;
  min-height: 36px;
}
.chips button[aria-pressed="true"] {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
}
.icon-button {
  display: inline-grid;
  place-items: center;
  background: transparent;
  color: inherit;
  border: 1px solid var(--line);
  width: 38px;
  height: 38px;
  border-radius: 5px;
  padding: 0;
}
.section {
  padding: 50px 0;
}
.section-title {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: end;
  margin-bottom: 25px;
}
.section-title h2 {
  font-size: 29px;
  margin-top: 9px;
}
.section-title p {
  font-size: 12px;
  color: var(--muted);
}
/* ===== 页头 ===== */
.site-header {
  position: relative;
  z-index: 10;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
.header-row {
  height: 84px;
  display: flex;
  gap: 32px;
  align-items: center;
}
.brand {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-right: auto;
  flex-shrink: 0;
}
.brand img {
  width: 39px;
  height: 39px;
}
.brand strong {
  font-size: 24px;
  display: block;
  line-height: 1.2;
}
.brand small {
  display: block;
  font-size: 9px;
  line-height: 1.6;
  color: var(--muted);
}
.main-nav {
  display: flex;
  gap: 28px;
  font-size: 12px;
}
.main-nav a[aria-current="page"] {
  color: var(--accent);
}
.header-link {
  border-left: 1px solid var(--line);
  padding-left: 25px;
  font-size: 11px;
}
.menu-toggle {
  display: none;
}
.mobile-nav {
  padding: 10px 20px;
  border-top: 1px solid var(--line);
}
.mobile-nav a {
  display: block;
  padding: 10px 0;
  font-size: 14px;
}
/* ===== 首屏 ===== */
.hero {
  padding: 44px 0;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 38px;
  align-items: center;
}
.hero h1 {
  font-size: 23px;
  line-height: 1.6;
  color: #d7dbe1;
  margin: 18px 0;
  max-width: 540px;
}
.slogan {
  font-size: 52px;
  font-weight: 800;
  line-height: 1.3;
}
.slogan em {
  font-style: normal;
  color: var(--accent);
}
.hero > .wrap > .hero-grid > .hero-copy > p {
  color: var(--muted);
  font-size: 13px;
  max-width: 480px;
  margin: 23px 0;
}
.hero-lead {
  color: var(--muted);
  font-size: 13px;
  max-width: 480px;
  margin: 23px 0;
}
.hero-photo {
  position: relative;
  padding: 0 0 25px 15px;
}
.hero-photo img {
  width: 100%;
  height: 470px;
  object-fit: cover;
  clip-path: polygon(7% 0, 100% 0, 100% 93%, 93% 100%, 0 100%, 0 7%);
  opacity: 0.9;
}
.hero-tag {
  position: absolute;
  bottom: 0;
  left: 0;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 20px 25px;
  line-height: 1.1;
  font-size: 26px;
  font-weight: 900;
}
.ticker {
  background: var(--accent);
  color: var(--accent-ink);
  padding: 18px 0;
}
.ticker .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  font-size: 18px;
}
.ticker b {
  font-weight: 400;
  opacity: 0.5;
}
/* ===== 水印 ===== */
.wm {
  position: relative;
  display: block;
}
.wm::after {
  content: "appxz-milansports.com.cn";
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 4px 9px;
  background: rgba(10, 12, 15, 0.6);
  border: 1px solid rgba(255, 75, 60, 0.6);
  color: #ff8b7e;
  font-size: 11px;
  letter-spacing: 0.04em;
  pointer-events: none;
}
.wm.big::after {
  right: 16px;
  bottom: 16px;
  font-size: 13px;
  padding: 6px 12px;
}
.wm.center::after {
  right: 50%;
  bottom: 50%;
  transform: translate(50%, 50%);
  font-size: 13px;
  padding: 7px 14px;
  background: rgba(10, 12, 15, 0.72);
}
/* ===== 比分板 ===== */
.board {
  border: 1px solid var(--line);
  background: var(--panel);
}
.board-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 16px 22px;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.board-head h2 {
  font-size: 17px;
}
.match {
  display: grid;
  grid-template-columns: 1fr 112px 1fr;
  align-items: center;
  gap: 14px;
  padding: 14px 22px;
  border-bottom: 1px solid #23272d;
}
.match:last-child {
  border-bottom: 0;
}
.match:hover {
  background: #1e2228;
}
.team {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 700;
}
.team.away {
  justify-content: flex-end;
}
.score {
  text-align: center;
  font-size: 19px;
  font-weight: 800;
  color: var(--accent);
  line-height: 1.3;
}
.score small {
  display: block;
  font-size: 10px;
  font-weight: 400;
  color: var(--muted);
}
.status {
  font-size: 10px;
  border: 1px solid var(--line);
  color: var(--muted);
  padding: 2px 7px;
  white-space: nowrap;
}
.status.live {
  background: var(--win);
  color: #0d1a10;
  border-color: var(--win);
}
.board-foot {
  padding: 12px 22px;
  border-top: 1px solid var(--line);
  font-size: 10px;
  color: var(--muted);
}
/* ===== 内容卡 ===== */
.library-bar {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  margin-bottom: 22px;
  flex-wrap: wrap;
}
.library-bar .right {
  display: flex;
  gap: 14px;
  align-items: center;
  font-size: 11px;
  color: var(--muted);
}
.library-bar input[type="search"] {
  width: 200px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  background: var(--panel-2);
  color: var(--ink);
  font-size: 12px;
  min-height: 36px;
  outline: none;
}
.library-bar input[type="search"]:focus {
  border-color: var(--accent);
}
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.card {
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.card:hover {
  border-color: var(--accent);
}
.card h3 {
  font-size: 16px;
  line-height: 1.5;
}
.card p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.9;
}
.card-meta {
  font-size: 10px;
  color: var(--muted);
}
.score-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  padding: 9px 12px;
  font-size: 13px;
  font-weight: 700;
}
.score-row b {
  flex: 1;
}
.score-row b:last-of-type {
  text-align: right;
}
.score-row em {
  font-style: normal;
  font-size: 16px;
  color: var(--accent);
}
.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
}
.card-tags span {
  border: 1px solid #333a42;
  padding: 2px 8px;
  font-size: 10px;
  color: #c6ccd4;
}
/* ===== 图集 ===== */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.gallery img {
  width: 100%;
  height: 210px;
  object-fit: cover;
}
/* ===== 数据 / 功能 / FAQ ===== */
.stat-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.stat {
  border-top: 3px solid var(--accent);
  padding-top: 14px;
}
.stat b {
  display: block;
  font-size: 29px;
  line-height: 1.3;
}
.stat small {
  font-size: 11px;
  color: var(--muted);
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.feature {
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 22px;
}
.feature svg {
  color: var(--accent);
  width: 22px;
}
.feature h3 {
  font-size: 15px;
  margin: 12px 0 8px;
}
.feature p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.9;
}
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}
.faq summary {
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
}
.faq p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 10px;
  line-height: 1.9;
  max-width: 780px;
}
.log {
  list-style: none;
  margin: 0;
  padding: 0;
}
.log li {
  border-bottom: 1px dashed var(--line);
  padding: 12px 0;
  font-size: 12px;
  color: var(--muted);
}
.log li b {
  color: var(--accent);
  font-size: 11px;
  display: block;
  margin-bottom: 4px;
}
/* ===== APP 页 ===== */
.app-hero {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 44px;
  align-items: center;
  padding: 44px 0;
}
.app-hero h1 {
  font-size: 38px;
  margin: 18px 0 20px;
}
.app-hero p {
  color: var(--muted);
  font-size: 14px;
  max-width: 520px;
  margin-bottom: 26px;
}
.phone {
  border: 1px solid var(--accent);
  background: var(--panel-2);
  padding: 14px;
  max-width: 300px;
  margin-inline: auto;
}
.phone-inner {
  aspect-ratio: 9 / 16;
  background: #0f1216;
  border: 1px solid var(--line);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.phone-inner .bar {
  height: 8px;
  width: 38%;
  background: var(--accent);
}
.phone-inner .line {
  border: 1px solid #23272d;
  background: var(--panel);
  flex: 1;
}
.phone-inner .line.tall {
  flex: 1.6;
}
.ver {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 18px 20px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.ver b {
  font-size: 15px;
  display: block;
}
.ver small {
  font-size: 11px;
  color: var(--muted);
}
/* ===== 404 ===== */
.error-main {
  padding: 70px 0;
  min-height: 55vh;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 70px;
  align-items: center;
}
.error-code {
  font-size: 140px;
  font-weight: 800;
  line-height: 1.15;
  color: var(--accent);
  font-style: italic;
}
.error-main h1 {
  font-size: 31px;
  margin: 14px 0;
}
.error-main p {
  color: var(--muted);
  font-size: 14px;
  max-width: 450px;
}
.error-main img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border: 1px solid var(--accent);
  padding: 8px;
}
.error-main .actions {
  margin-top: 25px;
}
/* ===== 页尾 ===== */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--panel-2);
  padding: 36px 0 22px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 65px;
}
.footer-top p {
  margin-top: 16px;
  font-size: 11px;
  color: var(--muted);
  max-width: 580px;
}
.footer-links {
  display: flex;
  justify-content: end;
  gap: 22px;
  font-size: 11px;
  align-items: start;
  flex-wrap: wrap;
}
.fine-print {
  margin-top: 24px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
  font-size: 10px;
  color: var(--muted);
}
.fine-print summary {
  cursor: pointer;
}
.fine-print p {
  max-width: 820px;
  margin-top: 10px;
}
.footer-bottom {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 24px;
  font-size: 10px;
  color: var(--muted);
}
.disclosure {
  padding: 22px 0;
  font-size: 11px;
}
.toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 90;
  max-width: calc(100% - 32px);
  padding: 12px 20px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--ink);
  font-size: 12px;
  box-shadow: 0 5px 30px #0006;
  border-radius: 5px;
}
/* ===== 响应式 ===== */
@media (max-width: 950px) {
  .wrap {
    width: calc(100% - 42px);
  }
  .header-link {
    display: none;
  }
  .card-grid,
  .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .stat-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .app-hero {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .error-main {
    gap: 35px;
  }
}
@media (max-width: 680px) {
  .wrap {
    width: calc(100% - 32px);
  }
  .header-row {
    height: 70px;
    gap: 18px;
  }
  .main-nav {
    display: none;
  }
  .menu-toggle {
    display: inline-grid;
  }
  .section {
    padding: 35px 0;
  }
  .section-title {
    display: block;
  }
  h2,
  .section-title h2 {
    font-size: 25px;
  }
  .hero-grid,
  .card-grid,
  .gallery,
  .feature-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .slogan {
    font-size: 40px;
  }
  .hero-photo img {
    height: 300px;
  }
  .hero-tag {
    font-size: 21px;
  }
  .ticker .wrap {
    font-size: 14px;
  }
  .app-hero h1 {
    font-size: 29px;
  }
  .match {
    grid-template-columns: 1fr 86px 1fr;
    gap: 8px;
    padding: 12px;
  }
  .team {
    font-size: 12px;
  }
  .library-bar .right {
    width: 100%;
    justify-content: space-between;
  }
  .footer-top {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .footer-links {
    justify-content: start;
  }
  .footer-bottom {
    display: block;
  }
  .footer-bottom span {
    display: block;
    margin: 6px 0;
  }
  .error-main {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 40px 0;
  }
  .error-code {
    font-size: 110px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
