/* ============================================================
   明升体育赛事 · 共享 Site Kit
   文件路径：/assets/site.css
   深墨绿连续画布 + 荧光青数据强调 + 暖橙行动色
   ============================================================ */

:root {
  --pitch-deep: #052A24;
  --tunnel-green: #0B3A31;
  --board-green: #0F5B4C;
  --cyan: #35F2C8;
  --mint: #A8FFE4;
  --orange: #FF8A3D;
  --white: #F4FFFC;
  --mist: #B7C9C3;
  --line: #2D6B5D;
  --amber: #FFC857;

  --font-display: "Barlow Condensed", "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-numeric: "JetBrains Mono", "Roboto Mono", ui-monospace, "SFMono-Regular", "Menlo", Consolas, monospace;
  --font-body: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, sans-serif;

  --shell: 1200px;
  --gutter: clamp(16px, 4vw, 44px);
  --radius-slab: 4px 22px 4px 4px;
}

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

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

body {
  margin: 0;
  background-color: var(--pitch-deep);
  background-image:
    radial-gradient(110% 60% at 88% -8%, rgba(53, 242, 200, 0.10), transparent 60%),
    radial-gradient(90% 50% at 4% 4%, rgba(15, 91, 76, 0.55), transparent 62%);
  background-repeat: no-repeat;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.ms-nav-open { overflow: hidden; }

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

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

p { margin: 0; }

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

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

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.08;
}

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

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

.ms-section { padding-block: clamp(48px, 8vw, 110px); }

.ms-grid {
  display: grid;
  gap: clamp(18px, 3vw, 34px);
}

.ms-grid--split { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); }
.ms-grid--halves { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.ms-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-numeric);
  font-size: 11.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mint);
}

.ms-eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--cyan);
  flex: 0 0 auto;
}

/* ---------- 按钮 ---------- */
.ms-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1.2;
  transition: background-color 0.22s ease, color 0.22s ease, border-color 0.22s ease, transform 0.22s ease;
}

.ms-btn--orange { background: var(--orange); color: var(--pitch-deep); }
.ms-btn--orange:hover { background: var(--amber); transform: translateY(-1px); }

.ms-btn--cyan { background: var(--cyan); color: var(--pitch-deep); }
.ms-btn--cyan:hover { background: var(--mint); transform: translateY(-1px); }

.ms-btn--ghost {
  border-color: var(--line);
  background: rgba(15, 91, 76, 0.3);
  color: var(--mint);
}

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

/* ---------- 标签 / 说明牌 / 数字 ---------- */
.ms-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 11px;
  border: 1px solid rgba(45, 107, 93, 0.9);
  border-radius: 999px;
  background: rgba(15, 91, 76, 0.42);
  color: var(--mint);
  font-family: var(--font-numeric);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  line-height: 1.6;
  white-space: nowrap;
}

.ms-plate {
  position: relative;
  padding: 20px 22px 20px 26px;
  border: 1px solid rgba(45, 107, 93, 0.9);
  border-radius: var(--radius-slab);
  background: linear-gradient(150deg, rgba(15, 91, 76, 0.55), rgba(11, 58, 49, 0.78));
}

.ms-plate::before {
  content: "";
  position: absolute;
  left: 0;
  top: 16%;
  bottom: 16%;
  width: 3px;
  background: var(--cyan);
}

.ms-plate__label {
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-numeric);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mint);
}

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

/* ---------- 面包屑 ---------- */
.ms-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  font-family: var(--font-numeric);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--mist);
}

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

.ms-breadcrumb a:hover { color: var(--cyan); border-bottom-color: currentColor; }

.ms-breadcrumb li + li::before {
  content: "/";
  margin-inline-end: 10px;
  color: var(--line);
}

.ms-breadcrumb__current { color: var(--white); }

/* ---------- 图片容器基础规则 ---------- */
.ms-media {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid rgba(45, 107, 93, 0.8);
  border-radius: var(--radius-slab);
  background-color: var(--board-green);
  background-image: linear-gradient(150deg, var(--board-green), var(--tunnel-green));
}

.ms-media img,
.ms-media picture,
.ms-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ms-media--wide { aspect-ratio: 16 / 9; }
.ms-media--hero { aspect-ratio: 21 / 9; }
.ms-media--tall { aspect-ratio: 4 / 5; }
.ms-media--square { aspect-ratio: 1 / 1; }

.ms-media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.16;
  background-image:
    linear-gradient(rgba(168, 255, 228, 0.5) 1px, transparent 1px),
    linear-gradient(90deg, rgba(168, 255, 228, 0.5) 1px, transparent 1px);
  background-size: 52px 52px;
}

.ms-media__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(200deg, rgba(5, 42, 36, 0) 34%, rgba(5, 42, 36, 0.84));
}

.ms-media__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 14px 18px;
  font-family: var(--font-numeric);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--mint);
}

/* ---------- 跳转链 ---------- */
.ms-skip {
  position: absolute;
  left: 14px;
  top: -120px;
  z-index: 120;
  padding: 10px 20px;
  border-radius: 0 0 12px 12px;
  background: var(--cyan);
  color: var(--pitch-deep);
  font-size: 14px;
  font-weight: 700;
  transition: top 0.2s ease;
}

.ms-skip:focus { top: 0; }

/* ============================================================
   头部：框架式导航带
   ============================================================ */
.ms-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: linear-gradient(180deg, rgba(11, 58, 49, 0.98), rgba(5, 42, 36, 0.97));
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(53, 242, 200, 0.08), 0 22px 44px -32px rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(10px);
}

.ms-header[data-open="true"] { background: var(--pitch-deep); }

/* 顶部计分条 */
.ms-scorebar {
  border-bottom: 1px solid rgba(45, 107, 93, 0.7);
  background: rgba(5, 42, 36, 0.72);
  font-size: 12.5px;
  letter-spacing: 0.04em;
}

.ms-scorebar__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 26px;
  min-height: 38px;
  padding-block: 6px;
}

.ms-scorebar__edition {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  font-family: var(--font-numeric);
  letter-spacing: 0.06em;
  color: var(--mint);
}

.ms-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 4px rgba(53, 242, 200, 0.16);
  animation: msPulse 2.6s ease-in-out infinite;
}

@keyframes msPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.ms-scorebar__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 18px;
}

.ms-scorebar__link {
  display: inline-block;
  padding: 2px 0;
  color: var(--mist);
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.ms-scorebar__link:hover,
.ms-scorebar__link:focus-visible {
  color: var(--white);
  border-bottom-color: var(--cyan);
}

.ms-scorebar__link--strong {
  padding: 3px 13px;
  border: 1px solid rgba(255, 138, 61, 0.5);
  border-radius: 999px;
  background: rgba(255, 138, 61, 0.1);
  color: var(--orange);
  font-weight: 600;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.ms-scorebar__link--strong:hover,
.ms-scorebar__link--strong:focus-visible {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--pitch-deep);
}

/* 主栏 */
.ms-header__inner {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2.5vw, 40px);
  min-height: 76px;
  padding-block: 10px;
  transition: min-height 0.25s ease;
}

.ms-header[data-scrolled="true"] .ms-header__inner { min-height: 64px; }

/* 品牌 */
.ms-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.ms-brand__mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--cyan), var(--mint));
  color: var(--pitch-deep);
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0.02em;
  clip-path: polygon(18% 0, 100% 0, 82% 100%, 0 100%);
}

.ms-brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.16;
}

.ms-brand__name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--white);
}

.ms-brand__sub {
  font-size: 10.5px;
  letter-spacing: 0.18em;
  color: var(--mist);
}

/* 导航 */
.ms-nav { margin-inline-start: auto; }

.ms-nav__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px clamp(6px, 1.4vw, 22px);
}

.ms-nav__link {
  position: relative;
  display: inline-block;
  padding: 8px 2px;
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--mist);
  transition: color 0.2s ease;
}

.ms-nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--mint));
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.25s ease;
}

.ms-nav__link:hover { color: var(--white); }
.ms-nav__link:hover::after { transform: scaleX(1); }

.ms-nav__link[aria-current="page"] { color: var(--cyan); }
.ms-nav__link[aria-current="page"]::after { transform: scaleX(1); }

/* 移动按钮 */
.ms-nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  margin-inline-start: auto;
  padding: 9px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(15, 91, 76, 0.35);
  color: var(--mint);
  font-size: 13px;
  letter-spacing: 0.08em;
  transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

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

.ms-nav-toggle__bars {
  position: relative;
  display: block;
  width: 18px;
  height: 12px;
}

.ms-nav-toggle__bars::before,
.ms-nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  height: 2px;
  background: currentColor;
  transition: transform 0.25s ease, width 0.25s ease;
}

.ms-nav-toggle__bars::before { top: 0; width: 18px; }
.ms-nav-toggle__bars::after { bottom: 0; width: 12px; }

.ms-header[data-open="true"] .ms-nav-toggle__bars::before { transform: translateY(5px) rotate(45deg); }
.ms-header[data-open="true"] .ms-nav-toggle__bars::after { width: 18px; transform: translateY(-5px) rotate(-45deg); }

.ms-nav-toggle__label { line-height: 1; }

/* 阅读进度 */
.ms-progress {
  position: relative;
  height: 3px;
  overflow: hidden;
  background: rgba(45, 107, 93, 0.4);
}

.ms-progress__bar {
  display: block;
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--mint), var(--cyan) 55%, var(--orange));
  transition: width 0.12s linear;
}

/* ============================================================
   页脚：展览说明牌式分层
   ============================================================ */
.ms-footer {
  position: relative;
  overflow: hidden;
  margin-top: clamp(56px, 9vw, 120px);
  padding-top: clamp(8px, 2vw, 20px);
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, var(--tunnel-green), var(--pitch-deep) 58%);
  color: var(--white);
}

.ms-footer__glow {
  position: absolute;
  top: -38%;
  right: -12%;
  width: min(620px, 82vw);
  aspect-ratio: 1 / 1;
  pointer-events: none;
  background: radial-gradient(circle, rgba(53, 242, 200, 0.18), transparent 66%);
  filter: blur(12px);
}

.ms-footer__top {
  position: relative;
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 1.6fr;
  gap: clamp(28px, 5vw, 72px);
  padding-block: clamp(40px, 6vw, 84px) 0;
}

.ms-footer__brand { min-width: 0; }

.ms-footer__wordmark {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-size: clamp(34px, 6.4vw, 68px);
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 0.94;
  color: rgba(168, 255, 228, 0.16);
  -webkit-text-stroke: 1px rgba(168, 255, 228, 0.28);
  word-break: break-all;
}

.ms-footer__brandline {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--cyan);
}

.ms-footer__intro {
  margin-top: 10px;
  max-width: 34ch;
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--mist);
}

.ms-footer__cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 38px);
}

.ms-footer__col { min-width: 0; }

.ms-footer__title {
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(45, 107, 93, 0.85);
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--mint);
}

.ms-footer__list { display: grid; gap: 9px; }

.ms-footer__list a {
  display: inline-block;
  font-size: 14px;
  color: var(--mist);
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.ms-footer__list a:hover,
.ms-footer__list a:focus-visible {
  color: var(--cyan);
  border-bottom-color: rgba(53, 242, 200, 0.55);
}

.ms-footer__contact {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px clamp(20px, 4vw, 44px);
  margin-top: clamp(32px, 5vw, 56px);
  padding-top: clamp(22px, 3.5vw, 34px);
  border-top: 1px solid rgba(45, 107, 93, 0.85);
}

.ms-footer__contact .ms-footer__title {
  grid-column: 1 / -1;
  margin-bottom: 0;
}

.ms-footer__facts {
  display: grid;
  gap: 10px;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--mist);
}

.ms-footer__facts li { min-width: 0; overflow-wrap: anywhere; }

.ms-footer__label {
  display: inline-block;
  min-width: 48px;
  margin-inline-end: 8px;
  font-family: var(--font-numeric);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--mint);
}

.ms-footer__note {
  font-size: 12.5px;
  line-height: 1.8;
  color: rgba(183, 201, 195, 0.82);
  max-width: 44ch;
}

.ms-footer__base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 26px;
  margin-top: clamp(28px, 4vw, 44px);
  padding-block: 20px 28px;
  border-top: 1px solid rgba(45, 107, 93, 0.85);
  font-family: var(--font-numeric);
  font-size: 12px;
  letter-spacing: 0.03em;
  color: rgba(183, 201, 195, 0.86);
}

.ms-footer__copy { margin: 0; }

.ms-footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
}

.ms-footer__legal a {
  color: var(--mist);
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.ms-footer__legal a:hover,
.ms-footer__legal a:focus-visible {
  color: var(--cyan);
  border-bottom-color: currentColor;
}

.ms-footer__icp { margin: 0; }

/* ============================================================
   动效：显现与章节高亮
   ============================================================ */
[data-reveal] {
  transition: opacity 0.45s ease, transform 0.45s ease;
}

html[data-motion="on"] [data-reveal]:not(.is-visible) {
  opacity: 0;
  transform: translateY(16px);
}

[data-section-link] { transition: color 0.2s ease, border-color 0.2s ease; }
[data-section-link].is-active { color: var(--cyan); }

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 1024px) {
  .ms-footer__top { grid-template-columns: 1fr; }
  .ms-footer__cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 960px) {
  .ms-header__inner { min-height: 66px; }
  .ms-header[data-scrolled="true"] .ms-header__inner { min-height: 60px; }

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

  .ms-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 90;
    margin: 0;
    padding: 10px var(--gutter) 34px;
    max-height: calc(100dvh - 72px);
    overflow-y: auto;
    border-bottom: 1px solid var(--line);
    background:
      radial-gradient(120% 80% at 82% 0%, rgba(15, 91, 76, 0.92), transparent 62%),
      linear-gradient(165deg, var(--tunnel-green), var(--pitch-deep) 72%);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.24s ease, transform 0.24s ease, visibility 0.24s;
  }

  .ms-header[data-open="true"] .ms-nav {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
  }

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

  .ms-nav__list li + li { border-top: 1px solid rgba(45, 107, 93, 0.6); }

  .ms-nav__link {
    display: block;
    padding: 16px 2px;
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0.02em;
  }

  .ms-nav__link::after { display: none; }
  .ms-nav__link[aria-current="page"] { color: var(--cyan); }

  .ms-grid--split,
  .ms-grid--halves { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .ms-footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ms-footer__base { font-size: 11.5px; }
}

@media (max-width: 560px) {
  .ms-scorebar__list li:first-child { display: none; }
  .ms-scorebar { font-size: 12px; }
  .ms-brand__sub { display: none; }
  .ms-brand__mark { width: 36px; height: 36px; font-size: 17px; }
  .ms-brand__name { font-size: 18px; }
  .ms-footer__cols { grid-template-columns: 1fr; gap: 22px; }
  .ms-footer__contact { grid-template-columns: 1fr; }
  .ms-footer__base { flex-direction: column; align-items: flex-start; }
}

/* ============================================================
   无障碍与减少动效
   ============================================================ */
@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;
  }

  [data-reveal],
  html[data-motion="on"] [data-reveal]:not(.is-visible) {
    opacity: 1 !important;
    transform: none !important;
  }

  .ms-progress__bar { transition: none; }
}
