/* ==========================================================================
   澳门游艺 · 共享样式 /assets/site.css
   夜游霓虹 × 技术蓝图仪表盘
   ========================================================================== */

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

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

body, h1, h2, h3, h4, h5, p, ul, ol, li, figure, blockquote, dl, dd {
  margin: 0;
  padding: 0;
}

ul, ol { list-style: none; }

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

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

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

h1, h2, h3, h4 { line-height: 1.2; font-weight: 800; }

:root {
  --ink-900: #0A1230;
  --ink-800: #131C42;
  --ink-700: #1B2A6B;

  --rose: #FF3D7F;
  --rose-soft: #FF7BA6;
  --cyan: #2BE7D6;
  --cyan-soft: #7FF3E8;
  --gold: #F5C86B;

  --fog: #F4F6FF;
  --haze: #A8B3D6;
  --white: #FFFFFF;

  --line: rgba(127, 243, 232, 0.16);
  --line-soft: rgba(168, 179, 214, 0.14);
  --glass: rgba(19, 28, 66, 0.62);
  --glass-strong: rgba(16, 24, 56, 0.9);

  --font-display: "PingFang SC", "Hiragino Sans GB", "Source Han Sans SC", "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, "Courier New", monospace;

  --radius-pill: 999px;
  --radius-lg: 22px;
  --radius-md: 14px;
  --radius-sm: 10px;

  --shell: 1220px;
  --gutter: clamp(16px, 4vw, 40px);

  --shadow-soft: 0 18px 44px -28px rgba(0, 0, 0, 0.92);
  --shadow-card: 0 24px 60px -40px rgba(0, 0, 0, 1);
  --ease: cubic-bezier(0.22, 0.7, 0.3, 1);
}

/* ---------- 基础排版与画布 ---------- */

body {
  min-height: 100vh;
  padding-top: 92px;
  background-color: var(--ink-900);
  color: var(--fog);
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.75;
  letter-spacing: 0.01em;
  background-image:
    linear-gradient(to right, rgba(168, 179, 214, 0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(168, 179, 214, 0.05) 1px, transparent 1px),
    radial-gradient(1200px 640px at 84% -10%, rgba(255, 61, 127, 0.2), transparent 62%),
    radial-gradient(920px 540px at 4% 10%, rgba(43, 231, 214, 0.13), transparent 60%);
  background-size: 80px 80px, 80px 80px, auto, auto;
  background-repeat: repeat, repeat, no-repeat, no-repeat;
}

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

/* ---------- 跳转链接 ---------- */

.mg-skip {
  position: fixed;
  top: 12px;
  left: 50%;
  z-index: 300;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  background: var(--cyan);
  color: #04121F;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  transform: translate(-50%, -180%);
  transition: transform 0.22s var(--ease);
}

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

/* ---------- 头部 ---------- */

.mg-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 14px var(--gutter);
  background: linear-gradient(180deg, rgba(10, 18, 48, 0.94) 0%, rgba(10, 18, 48, 0.52) 64%, rgba(10, 18, 48, 0) 100%);
  transition: padding 0.3s var(--ease);
}

.mg-header__inner {
  position: relative;
  width: 100%;
  max-width: calc(var(--shell) + var(--gutter) * 2);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.8vw, 26px);
  padding: 8px 12px 8px clamp(18px, 3vw, 36px);
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  background: var(--glass);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 16px 44px -30px #000;
  transition: max-width 0.38s var(--ease), padding 0.38s var(--ease),
    border-color 0.38s var(--ease), background-color 0.38s var(--ease);
}

.mg-header[data-compact="true"] { padding-top: 8px; padding-bottom: 8px; }

.mg-header[data-compact="true"] .mg-header__inner {
  max-width: 1080px;
  padding: 4px 10px 4px clamp(14px, 2.4vw, 26px);
  border-color: rgba(127, 243, 232, 0.32);
  background: rgba(16, 24, 56, 0.86);
}

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

.mg-brand__mark {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 15px;
  color: #06121F;
  background: linear-gradient(135deg, var(--cyan) 0%, var(--cyan-soft) 45%, var(--rose-soft) 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4);
}

.mg-brand__text { display: flex; flex-direction: column; line-height: 1.2; }

.mg-brand__name {
  font-size: 16.5px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--white);
}

.mg-brand__line {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--haze);
}

.mg-brand--footer .mg-brand__name { font-size: 18px; }

/* 导航 */
.mg-nav {
  display: flex;
  align-items: center;
  gap: clamp(8px, 1.4vw, 20px);
  margin-left: auto;
}

.mg-nav__list {
  display: flex;
  align-items: center;
  gap: 2px;
}

.mg-nav__link {
  position: relative;
  display: inline-block;
  padding: 9px 11px;
  border-radius: var(--radius-pill);
  font-size: 14.5px;
  color: var(--haze);
  white-space: nowrap;
  transition: color 0.22s var(--ease), background-color 0.22s var(--ease);
}

.mg-nav__link::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 3px;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--rose), var(--rose-soft));
  transform: translateX(-50%);
  transition: width 0.26s var(--ease);
}

.mg-nav__link:hover { color: var(--fog); background-color: rgba(127, 243, 232, 0.08); }

.mg-nav__link[aria-current="page"] { color: var(--white); }
.mg-nav__link[aria-current="page"]::after { width: 18px; }

.mg-nav__utility {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-left: 16px;
  border-left: 1px solid var(--line);
}

.mg-mono {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--haze);
}

.mg-mono--dim { color: rgba(168, 179, 214, 0.72); }

.mg-nav__cta { flex: 0 0 auto; }

/* 按钮 */
.mg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.26s var(--ease),
    background-color 0.22s var(--ease), color 0.22s var(--ease), border-color 0.22s var(--ease);
}

.mg-btn--rose {
  background: linear-gradient(135deg, var(--rose) 0%, #E22A66 100%);
  color: var(--white);
  box-shadow: 0 12px 26px -16px rgba(255, 61, 127, 0.95);
}

.mg-btn--rose:hover { transform: translateY(-2px); box-shadow: 0 18px 34px -16px rgba(255, 61, 127, 1); }

.mg-btn--cyan {
  background: linear-gradient(135deg, var(--cyan) 0%, #15CDBF 100%);
  color: #04121F;
  box-shadow: 0 12px 26px -18px rgba(43, 231, 214, 0.95);
}

.mg-btn--cyan:hover { transform: translateY(-2px); }

.mg-btn--ghost {
  background: rgba(127, 243, 232, 0.07);
  border-color: rgba(127, 243, 232, 0.28);
  color: var(--fog);
}

.mg-btn--ghost:hover {
  transform: translateY(-2px);
  background: rgba(127, 243, 232, 0.14);
  border-color: rgba(127, 243, 232, 0.5);
}

/* 移动导航按钮 */
.mg-navtoggle {
  display: none;
  align-items: center;
  gap: 9px;
  margin-left: auto;
  padding: 9px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  background: rgba(127, 243, 232, 0.08);
  color: var(--fog);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  transition: background-color 0.22s var(--ease), border-color 0.22s var(--ease);
}

.mg-navtoggle:hover { background: rgba(127, 243, 232, 0.16); }

.mg-navtoggle__bars { display: grid; gap: 3px; width: 16px; }

.mg-navtoggle__bars span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--cyan);
  transition: transform 0.26s var(--ease), opacity 0.2s var(--ease);
}

.mg-header[data-open="true"] .mg-navtoggle {
  border-color: rgba(255, 61, 127, 0.5);
  background: rgba(255, 61, 127, 0.18);
}

.mg-header[data-open="true"] .mg-navtoggle__bars span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.mg-header[data-open="true"] .mg-navtoggle__bars span:nth-child(2) { opacity: 0; }
.mg-header[data-open="true"] .mg-navtoggle__bars span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* 阅读进度 */
.mg-progress {
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  bottom: 4px;
  height: 2px;
  border-radius: 2px;
  background: rgba(168, 179, 214, 0.12);
  overflow: hidden;
}

.mg-progress span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--rose));
  transition: width 0.12s linear;
}

/* ---------- 右 / 底快捷条 ---------- */

.mg-dock {
  position: fixed;
  bottom: 14px;
  left: 50%;
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  background: var(--glass-strong);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: 0 18px 40px -24px #000;
  transform: translateX(-50%);
}

.mg-dock__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 15px;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  color: var(--haze);
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease);
}

.mg-dock__link:hover { color: #06121F; background-color: var(--cyan); }

@media (min-width: 981px) and (max-width: 1179px) {
  .mg-dock { display: none; }
}

@media (min-width: 1180px) {
  .mg-dock {
    top: 50%;
    right: 16px;
    bottom: auto;
    left: auto;
    flex-direction: column;
    gap: 2px;
    padding: 8px 5px;
    transform: translateY(-50%);
  }

  .mg-dock__link {
    writing-mode: vertical-rl;
    padding: 15px 6px;
    letter-spacing: 0.22em;
  }
}

/* ---------- 页脚 ---------- */

.mg-footer {
  position: relative;
  margin-top: clamp(56px, 8vw, 112px);
  padding: clamp(44px, 6vw, 76px) var(--gutter) 30px;
  border-top: 1px solid var(--line);
  background:
    radial-gradient(760px 340px at 88% 0%, rgba(255, 61, 127, 0.14), transparent 66%),
    linear-gradient(180deg, rgba(19, 28, 66, 0.92) 0%, rgba(10, 18, 48, 0.99) 100%);
}

.mg-footer::before {
  content: "";
  position: absolute;
  inset: -1px 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--rose), var(--cyan), transparent);
  opacity: 0.6;
}

.mg-footer__grid {
  max-width: var(--shell);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(250px, 1.4fr) repeat(3, minmax(118px, 0.7fr));
  gap: clamp(26px, 4vw, 54px);
  padding-bottom: clamp(26px, 4vw, 44px);
  border-bottom: 1px solid var(--line-soft);
}

.mg-footer__brand { display: flex; flex-direction: column; }

.mg-footer__tagline {
  margin-top: 16px;
  max-width: 24em;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--haze);
}

.mg-footer__status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  margin-top: 18px;
}

.mg-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 4px rgba(43, 231, 214, 0.16);
  animation: mgPulse 2.8s ease-in-out infinite;
}

.mg-dot--rose {
  background: var(--rose);
  box-shadow: 0 0 0 4px rgba(255, 61, 127, 0.18);
}

@keyframes mgPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

.mg-footer__title {
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cyan);
}

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

.mg-footer__link {
  display: inline-block;
  font-size: 14.5px;
  color: var(--haze);
  transition: color 0.2s var(--ease), padding-left 0.2s var(--ease);
}

.mg-footer__link:hover { color: var(--fog); padding-left: 5px; }

.mg-footer__contact {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 22px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 28px;
  border-bottom: 1px solid var(--line-soft);
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: var(--haze);
}

.mg-footer__legal {
  max-width: var(--shell);
  margin: 0 auto;
  padding-top: 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: rgba(168, 179, 214, 0.88);
}

.mg-footer__icp { color: var(--gold); }
.mg-footer__meta { color: rgba(168, 179, 214, 0.72); }

.mg-footer__note {
  max-width: var(--shell);
  margin: 14px auto 0;
  font-size: 12.5px;
  line-height: 1.7;
  color: rgba(168, 179, 214, 0.72);
}

/* ---------- 页面通用容器 ---------- */

.mg-shell {
  width: 100%;
  max-width: calc(var(--shell) + var(--gutter) * 2);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.mg-section { padding-block: clamp(40px, 6vw, 84px); }
.mg-section--tight { padding-block: clamp(24px, 3.4vw, 46px); }

.mg-section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 28px;
  margin-bottom: clamp(20px, 3vw, 34px);
}

.mg-display {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(34px, 6vw, 76px);
  line-height: 1.03;
  letter-spacing: -0.02em;
  color: var(--white);
}

.mg-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cyan);
}

.mg-eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--cyan);
  opacity: 0.7;
}

.mg-lead {
  max-width: 32em;
  font-size: clamp(16px, 1.4vw, 18px);
  line-height: 1.75;
  color: var(--haze);
}

.mg-anno {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: rgba(168, 179, 214, 0.8);
}

.mg-anno--vertical {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg);
}

.mg-rule {
  height: 1px;
  border: 0;
  background: linear-gradient(90deg, rgba(43, 231, 214, 0.55), rgba(255, 61, 127, 0.48), transparent);
}

.mg-meter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  background: rgba(19, 28, 66, 0.55);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--haze);
}

/* ---------- 网格与卡片 ---------- */

.mg-grid { display: grid; gap: clamp(14px, 2.2vw, 26px); }
.mg-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mg-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.mg-grid--offset > *:nth-child(even) { transform: translateY(clamp(12px, 2.4vw, 40px)); }

.mg-card {
  position: relative;
  padding: clamp(18px, 2.4vw, 28px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: linear-gradient(165deg, rgba(19, 28, 66, 0.94) 0%, rgba(10, 18, 48, 0.94) 100%);
  box-shadow: var(--shadow-card);
  transition: transform 0.28s var(--ease), border-color 0.28s var(--ease), background-color 0.28s var(--ease);
}

.mg-card:hover {
  transform: translateY(-4px);
  border-color: rgba(127, 243, 232, 0.34);
}

.mg-card--glass {
  background: var(--glass);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

/* 标签 */
.mg-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 11px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(127, 243, 232, 0.3);
  background: rgba(43, 231, 214, 0.1);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cyan);
}

.mg-tag--gold {
  border-color: rgba(245, 200, 107, 0.42);
  background: rgba(245, 200, 107, 0.12);
  color: var(--gold);
}

.mg-tag--rose {
  border-color: rgba(255, 123, 166, 0.45);
  background: rgba(255, 61, 127, 0.14);
  color: var(--rose-soft);
}

/* 长文 */
.mg-prose {
  max-width: 35em;
  font-size: 16.5px;
  line-height: 1.78;
  color: var(--fog);
}

.mg-prose p + p { margin-top: 1em; }

.mg-prose h2 {
  margin-top: 1.8em;
  font-size: clamp(22px, 2.6vw, 30px);
  letter-spacing: -0.01em;
  color: var(--white);
}

.mg-prose h3 {
  margin-top: 1.5em;
  font-size: 18px;
  color: var(--cyan-soft);
}

.mg-prose a { color: var(--cyan); text-decoration: underline; text-underline-offset: 3px; }
.mg-prose a:hover { color: var(--cyan-soft); }

.mg-prose ul, .mg-prose ol { margin-top: 1em; padding-left: 1.1em; }
.mg-prose li { list-style: none; position: relative; padding-left: 18px; }
.mg-prose li + li { margin-top: 0.5em; }
.mg-prose li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 8px;
  height: 1px;
  background: var(--rose);
}

/* 面包屑 */
.mg-breadcrumb { padding-top: 18px; }

.mg-breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--haze);
}

.mg-breadcrumb li { display: inline-flex; align-items: center; gap: 8px; }
.mg-breadcrumb li + li::before { content: "/"; color: rgba(168, 179, 214, 0.5); }
.mg-breadcrumb a { color: var(--cyan); }
.mg-breadcrumb a:hover { color: var(--cyan-soft); }
.mg-breadcrumb [aria-current="page"] { color: var(--fog); }

/* ---------- 图片容器（页面阶段放置占位图） ---------- */

.mg-media {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: linear-gradient(150deg, var(--ink-700) 0%, var(--ink-800) 55%, var(--ink-900) 100%);
}

.mg-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(112%) contrast(104%);
}

.mg-media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(10, 18, 48, 0.06) 0%, rgba(10, 18, 48, 0.74) 100%);
}

.mg-media--wide { aspect-ratio: 16 / 9; }
.mg-media--tall { aspect-ratio: 3 / 4; }
.mg-media--square { aspect-ratio: 1 / 1; }

/* ---------- 响应式 ---------- */

@media (max-width: 1120px) {
  .mg-nav__utility { display: none; }
}

@media (max-width: 980px) {
  body {
    padding-top: 78px;
    padding-bottom: 72px;
  }

  .mg-header { padding: 10px var(--gutter); }
  .mg-header__inner { padding: 6px 8px 6px 14px; }
  .mg-header[data-compact="true"] .mg-header__inner { max-width: none; padding: 4px 8px 4px 12px; }

  .mg-navtoggle { display: inline-flex; }

  .mg-nav {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    margin-left: 0;
    padding: 14px;
    max-height: calc(100vh - 130px);
    overflow-y: auto;
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
    background: rgba(14, 21, 50, 0.97);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    box-shadow: 0 26px 60px -30px #000;
  }

  .mg-header[data-open="true"] .mg-nav {
    display: flex;
    animation: mgNavIn 0.24s var(--ease) both;
  }

  @keyframes mgNavIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
  }

  .mg-nav__list { flex-direction: column; align-items: stretch; gap: 2px; }

  .mg-nav__link {
    display: block;
    padding: 12px 14px;
    border-radius: var(--radius-md);
    font-size: 15.5px;
  }

  .mg-nav__link::after { display: none; }

  .mg-nav__link[aria-current="page"] {
    background: rgba(255, 61, 127, 0.18);
    color: var(--white);
    box-shadow: inset 2px 0 0 var(--rose);
  }

  .mg-header[data-open="true"] .mg-nav__utility {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin-top: 6px;
    padding: 12px 4px 0;
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .mg-nav__cta { width: 100%; margin-top: 8px; padding: 13px 18px; }

  .mg-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mg-footer__brand { grid-column: 1 / -1; }
  .mg-footer__legal { justify-content: flex-start; }
}

@media (max-width: 900px) {
  .mg-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mg-grid--offset > * { transform: none; }
}

@media (max-width: 620px) {
  .mg-grid--2, .mg-grid--3 { grid-template-columns: minmax(0, 1fr); }
  .mg-footer__grid { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .mg-footer__contact { flex-direction: column; gap: 6px; }
  .mg-meter { border-radius: var(--radius-md); }
  .mg-brand__line { letter-spacing: 0.08em; }
}

/* ---------- 动效降级 ---------- */

@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;
  }

  .mg-dot { animation: none; }
  .mg-progress span { transition: none; }
}
