/* =========================================================
   澳门电玩城游 · CN 中文官方站 共享样式 /assets/site.css
   命名前缀 mk-（Macau Kit）｜霓虹街机厅 × 档案台账
   ========================================================= */

/* ---------- 1. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 128px;
}
body, h1, h2, h3, h4, p, ul, ol, li, figure, figcaption, blockquote, dl, dd { margin: 0; }
ul, ol { padding: 0; }
img, svg, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }

/* ---------- 2. 变量 ---------- */
:root {
  --mk-navy: #0B1226;
  --mk-panel-bg: #111C3D;
  --mk-teal: #1FA6A6;
  --mk-cyan: #4FE0C8;
  --mk-gold: #E8B45A;
  --mk-gold-soft: #F3D9A4;
  --mk-magenta: #E64FA0;
  --mk-magenta-soft: #FF8FC7;
  --mk-paper: #F5F1E8;
  --mk-muted: #AFC0D8;
  --mk-line: #2A3A5A;
  --mk-ok: #5BD6A0;
  --mk-warn: #F0A35E;

  --mk-display: "Barlow Condensed", "Oswald", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --mk-body: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --mk-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --mk-shell: 1280px;
  --mk-rail: 240px;
  --mk-gap: 24px;
  --mk-cut: 14px;
  --mk-ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- 3. 基础排版 ---------- */
body {
  background-color: var(--mk-navy);
  background-image:
    radial-gradient(900px 520px at 10% -8%, rgba(31, 166, 166, .18), transparent 70%),
    radial-gradient(780px 480px at 94% 2%, rgba(230, 79, 160, .14), transparent 72%),
    radial-gradient(1100px 700px at 50% 112%, rgba(232, 180, 90, .09), transparent 70%);
  color: var(--mk-paper);
  font-family: var(--mk-body);
  font-size: clamp(15px, 1.6vw, 16.5px);
  line-height: 1.75;
  min-height: 100vh;
  overflow-x: hidden;
}
::selection { background: var(--mk-magenta); color: #fff; }
a { color: var(--mk-cyan); text-decoration: none; }
a:hover { color: var(--mk-magenta-soft); }
:focus-visible {
  outline: 2px solid var(--mk-cyan);
  outline-offset: 3px;
  border-radius: 1px;
}

/* ---------- 4. 布局工具 ---------- */
.mk-shell {
  width: 100%;
  max-width: var(--mk-shell);
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 40px);
}
.mk-section { padding-block: clamp(40px, 6vw, 80px); }
.mk-stack { display: grid; gap: 16px; }
.mk-grid {
  display: grid;
  gap: var(--mk-gap);
  grid-template-columns: repeat(12, minmax(0, 1fr));
}
.mk-col-4 { grid-column: span 4; }
.mk-col-6 { grid-column: span 6; }
.mk-col-8 { grid-column: span 8; }
.mk-col-12 { grid-column: span 12; }
.mk-split {
  display: grid;
  gap: clamp(24px, 4vw, 48px);
  grid-template-columns: minmax(0, var(--mk-rail)) minmax(0, 1fr);
  align-items: start;
}

/* ---------- 5. 排版组件 ---------- */
.mk-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mk-mono);
  font-size: 12px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--mk-teal);
}
.mk-eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--mk-teal); }

.mk-h1 {
  font-family: var(--mk-display);
  font-weight: 700;
  font-size: clamp(34px, 5.6vw, 68px);
  line-height: 1.08;
  letter-spacing: -.01em;
  color: var(--mk-paper);
}
.mk-h2 {
  font-family: var(--mk-display);
  font-weight: 700;
  font-size: clamp(26px, 3.4vw, 42px);
  line-height: 1.16;
  letter-spacing: -.01em;
  color: var(--mk-paper);
}
.mk-h3 {
  font-family: var(--mk-display);
  font-weight: 700;
  font-size: clamp(20px, 2.2vw, 27px);
  line-height: 1.3;
  color: var(--mk-paper);
}
.mk-lede {
  font-size: clamp(15.5px, 1.7vw, 18px);
  line-height: 1.85;
  color: var(--mk-muted);
  max-width: 68ch;
}
.mk-mono {
  font-family: var(--mk-mono);
  font-weight: 500;
  letter-spacing: .02em;
  font-variant-numeric: tabular-nums;
}
.mk-rail-note {
  display: inline-block;
  font-family: var(--mk-mono);
  font-size: 11px;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--mk-muted);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

/* ---------- 6. Skip link ---------- */
.mk-skip {
  position: fixed;
  top: -80px;
  left: 16px;
  z-index: 200;
  padding: 10px 18px;
  background: var(--mk-gold);
  color: var(--mk-navy);
  font-weight: 700;
  font-size: 14px;
  border-radius: 0 0 2px 2px;
  transition: top .18s var(--mk-ease);
}
.mk-skip:focus { top: 0; color: var(--mk-navy); }

/* ---------- 7. Header ---------- */
.mk-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(11, 18, 38, .95);
  border-bottom: 1px solid var(--mk-line);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: box-shadow .2s var(--mk-ease), border-color .2s var(--mk-ease);
}
.mk-header.is-scrolled {
  box-shadow: 0 16px 34px -22px rgba(0, 0, 0, .95);
  border-bottom-color: rgba(31, 166, 166, .45);
}

.mk-topbar {
  background:
    linear-gradient(90deg,
      rgba(31, 166, 166, .18) 0%,
      rgba(230, 79, 160, .13) 58%,
      rgba(232, 180, 90, .12) 100%);
  border-bottom: 1px solid rgba(42, 58, 90, .9);
}
.mk-topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 40px;
  padding-block: 6px;
  flex-wrap: wrap;
}
.mk-topbar__note {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mk-mono);
  font-size: 11.5px;
  letter-spacing: .14em;
  color: var(--mk-muted);
}
.mk-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  background: var(--mk-cyan);
  box-shadow: 0 0 0 3px rgba(79, 224, 200, .18);
  transform: rotate(45deg);
}
.mk-topbar__actions { display: flex; align-items: center; gap: 10px; }

.mk-masthead {
  background: linear-gradient(180deg, rgba(17, 28, 61, .94), rgba(11, 18, 38, .94));
}
.mk-masthead__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(16px, 3vw, 36px);
  padding-block: 13px;
}

.mk-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--mk-paper);
  flex: 0 0 auto;
}
.mk-brand:hover { color: var(--mk-paper); }
.mk-brand__mark {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  background: linear-gradient(150deg, var(--mk-teal), var(--mk-cyan));
  clip-path: polygon(0 0, 100% 0, 100% 72%, 72% 100%, 0 100%);
}
.mk-brand__mark::before {
  content: "";
  width: 12px;
  height: 12px;
  background: var(--mk-navy);
  transform: rotate(45deg);
}
.mk-brand__text { display: flex; flex-direction: column; gap: 2px; }
.mk-brand__name {
  font-family: var(--mk-display);
  font-weight: 700;
  font-size: clamp(20px, 2.2vw, 25px);
  line-height: 1.1;
  letter-spacing: .02em;
  transition: color .18s var(--mk-ease);
}
.mk-brand:hover .mk-brand__name { color: var(--mk-cyan); }
.mk-brand__note {
  font-family: var(--mk-mono);
  font-size: 10.5px;
  letter-spacing: .12em;
  color: var(--mk-muted);
}

.mk-nav__list {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  list-style: none;
}
.mk-nav__link {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  padding: 10px 12px 12px;
  color: var(--mk-paper);
  font-size: 14.5px;
  letter-spacing: .02em;
  border: 1px solid transparent;
  transition: color .18s var(--mk-ease), background .18s var(--mk-ease), border-color .18s var(--mk-ease);
}
.mk-nav__link::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 5px;
  height: 2px;
  background: var(--mk-cyan);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .18s var(--mk-ease);
}
.mk-nav__index {
  font-family: var(--mk-mono);
  font-size: 10.5px;
  letter-spacing: .08em;
  color: var(--mk-teal);
  transition: color .18s var(--mk-ease);
}
.mk-nav__link:hover {
  color: #fff;
  background: rgba(31, 166, 166, .13);
  border-color: rgba(31, 166, 166, .3);
}
.mk-nav__link:hover::after { transform: scaleX(1); }
.mk-nav__link:hover .mk-nav__index { color: var(--mk-cyan); }
.mk-nav__link[aria-current="page"] {
  color: #fff;
  background: rgba(230, 79, 160, .14);
  border-color: rgba(230, 79, 160, .5);
}
.mk-nav__link[aria-current="page"]::after {
  transform: scaleX(1);
  background: var(--mk-magenta);
}
.mk-nav__link[aria-current="page"] .mk-nav__index { color: var(--mk-magenta-soft); }
.mk-nav__link:focus-visible { outline-offset: -3px; }

.mk-nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: rgba(31, 166, 166, .12);
  border: 1px solid var(--mk-teal);
  color: var(--mk-cyan);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .1em;
  cursor: pointer;
  transition: background .18s var(--mk-ease), border-color .18s var(--mk-ease);
}
.mk-nav-toggle:hover { background: rgba(31, 166, 166, .22); border-color: var(--mk-cyan); }
.mk-nav-toggle__bars { display: inline-flex; flex-direction: column; gap: 4px; width: 18px; }
.mk-nav-toggle__bars i {
  display: block;
  height: 2px;
  background: currentColor;
  transition: transform .18s var(--mk-ease), opacity .18s var(--mk-ease), width .18s var(--mk-ease);
}
.mk-nav-toggle__bars i:nth-child(1) { width: 18px; }
.mk-nav-toggle__bars i:nth-child(2) { width: 11px; }
.mk-nav-toggle__bars i:nth-child(3) { width: 18px; }
.mk-nav-toggle[aria-expanded="true"] .mk-nav-toggle__bars i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.mk-nav-toggle[aria-expanded="true"] .mk-nav-toggle__bars i:nth-child(2) { opacity: 0; }
.mk-nav-toggle[aria-expanded="true"] .mk-nav-toggle__bars i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mk-progress { height: 2px; background: rgba(42, 58, 90, .8); }
.mk-progress__bar {
  display: block;
  height: 100%;
  width: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--mk-teal), var(--mk-cyan) 46%, var(--mk-gold) 100%);
}

/* ---------- 8. Footer ---------- */
.mk-footer {
  position: relative;
  margin-top: clamp(56px, 8vw, 112px);
  border-top: 1px solid var(--mk-line);
  background: linear-gradient(180deg, #0B1226 0%, #0E1730 46%, #111C3D 100%);
  overflow: hidden;
}
.mk-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--mk-teal), var(--mk-magenta), var(--mk-gold), transparent);
  opacity: .85;
}
.mk-footer::after {
  content: "";
  position: absolute;
  right: -120px;
  top: -160px;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(31, 166, 166, .16), transparent 65%);
  pointer-events: none;
}
.mk-footer__inner { position: relative; padding-block: clamp(40px, 6vw, 64px) 24px; }
.mk-footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.4fr;
  gap: clamp(24px, 4vw, 44px);
}
.mk-footer__col { min-width: 0; }
.mk-footer__name {
  font-family: var(--mk-display);
  font-weight: 700;
  font-size: clamp(22px, 2.6vw, 28px);
  letter-spacing: .02em;
  color: var(--mk-paper);
  margin-bottom: 10px;
}
.mk-footer__summary {
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--mk-muted);
  max-width: 38ch;
}
.mk-footer__note {
  margin-top: 12px;
  font-family: var(--mk-mono);
  font-size: 11.5px;
  line-height: 1.7;
  letter-spacing: .04em;
  color: rgba(175, 192, 216, .82);
  border-left: 2px solid var(--mk-line);
  padding-left: 10px;
}
.mk-footer__heading {
  font-family: var(--mk-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--mk-teal);
  margin-bottom: 14px;
}
.mk-footer__list { list-style: none; display: grid; gap: 2px; }
.mk-footer__link {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 7px 0;
  color: var(--mk-paper);
  font-size: 14.5px;
  border-bottom: 1px dashed rgba(42, 58, 90, .7);
  transition: color .18s var(--mk-ease), padding-left .18s var(--mk-ease), border-color .18s var(--mk-ease);
}
.mk-footer__link:hover {
  color: var(--mk-cyan);
  padding-left: 5px;
  border-bottom-color: rgba(79, 224, 200, .6);
}
.mk-footer__index {
  font-family: var(--mk-mono);
  font-size: 10.5px;
  letter-spacing: .08em;
  color: var(--mk-gold);
}
.mk-footer__addr {
  margin-top: 14px;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--mk-muted);
}

.mk-copy {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 4px 10px;
  padding: 8px 0;
  border-bottom: 1px dashed rgba(42, 58, 90, .75);
}
.mk-copy__value {
  font-family: var(--mk-mono);
  font-size: 12.5px;
  letter-spacing: .02em;
  color: var(--mk-paper);
  overflow-wrap: anywhere;
}
.mk-copy__btn {
  padding: 4px 10px;
  background: rgba(31, 166, 166, .12);
  border: 1px solid rgba(31, 166, 166, .55);
  color: var(--mk-cyan);
  font-size: 11.5px;
  font-family: var(--mk-mono);
  letter-spacing: .08em;
  cursor: pointer;
  transition: background .18s var(--mk-ease), color .18s var(--mk-ease), border-color .18s var(--mk-ease);
}
.mk-copy__btn:hover { background: rgba(31, 166, 166, .24); color: #fff; }
.mk-copy__btn[data-copied="true"] { border-color: var(--mk-ok); color: var(--mk-ok); background: rgba(91, 214, 160, .12); }
.mk-copy__state {
  grid-column: 1 / -1;
  min-height: 15px;
  font-family: var(--mk-mono);
  font-size: 11px;
  letter-spacing: .06em;
  color: var(--mk-ok);
}

.mk-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  margin-top: clamp(28px, 4vw, 44px);
  padding-top: 18px;
  border-top: 1px solid var(--mk-line);
}
.mk-footer__legal-note {
  font-family: var(--mk-mono);
  font-size: 11.5px;
  letter-spacing: .05em;
  color: var(--mk-muted);
}
.mk-footer__icp { color: var(--mk-gold); }
.mk-footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  list-style: none;
}
.mk-footer__legal-link {
  font-size: 13px;
  color: var(--mk-muted);
  border-bottom: 1px solid transparent;
  transition: color .18s var(--mk-ease), border-color .18s var(--mk-ease);
}
.mk-footer__legal-link:hover { color: var(--mk-cyan); border-bottom-color: var(--mk-cyan); }

.mk-totop {
  padding: 7px 14px;
  background: transparent;
  border: 1px solid var(--mk-line);
  color: var(--mk-muted);
  font-family: var(--mk-mono);
  font-size: 11.5px;
  letter-spacing: .12em;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity .2s var(--mk-ease), transform .2s var(--mk-ease), color .18s var(--mk-ease), border-color .18s var(--mk-ease), visibility .2s;
}
.mk-totop.is-visible { opacity: 1; visibility: visible; transform: none; }
.mk-totop:hover { color: var(--mk-gold); border-color: var(--mk-gold); }

/* ---------- 9. 按钮 ---------- */
.mk-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 11px 20px;
  font-family: var(--mk-body);
  font-weight: 700;
  font-size: 14.5px;
  line-height: 1.2;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .18s var(--mk-ease), color .18s var(--mk-ease), border-color .18s var(--mk-ease), transform .18s var(--mk-ease);
}
.mk-btn:hover { transform: translateY(-1px); }
.mk-btn--gold {
  background: var(--mk-gold);
  border-color: var(--mk-gold);
  color: var(--mk-navy);
  box-shadow: 0 0 0 1px rgba(11, 18, 38, .35), 0 10px 24px -18px rgba(232, 180, 90, .9);
}
.mk-btn--gold:hover { background: var(--mk-gold-soft); border-color: var(--mk-gold-soft); color: var(--mk-navy); }
.mk-btn--teal {
  background: rgba(31, 166, 166, .16);
  border-color: var(--mk-teal);
  color: var(--mk-cyan);
}
.mk-btn--teal:hover { background: rgba(31, 166, 166, .3); color: #fff; border-color: var(--mk-cyan); }
.mk-btn--ghost {
  background: transparent;
  border-color: var(--mk-line);
  color: var(--mk-paper);
}
.mk-btn--ghost:hover { border-color: var(--mk-cyan); color: var(--mk-cyan); }
.mk-btn--sm { padding: 7px 14px; font-size: 12.5px; letter-spacing: .04em; }

/* ---------- 10. 面板 / 切角 ---------- */
.mk-panel {
  position: relative;
  padding: clamp(18px, 2.4vw, 26px);
  background:
    linear-gradient(158deg, rgba(17, 28, 61, .97) 0%, rgba(11, 18, 38, .93) 100%);
  border: 1px solid var(--mk-line);
  color: var(--mk-paper);
}
.mk-panel--cut {
  border: 0;
  clip-path: polygon(
    0 0,
    calc(100% - var(--mk-cut)) 0,
    100% var(--mk-cut),
    100% 100%,
    var(--mk-cut) 100%,
    0 calc(100% - var(--mk-cut))
  );
  box-shadow: inset 0 0 0 1px rgba(42, 58, 90, .95);
}

/* ---------- 11. 图片容器 ---------- */
.mk-figure {
  margin: 0;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--mk-line);
  background: var(--mk-panel-bg);
}
.mk-figure__media {
  position: relative;
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  overflow: hidden;
  background-color: #0D1730;
  background-image:
    repeating-linear-gradient(135deg, rgba(31, 166, 166, .10) 0 12px, transparent 12px 26px),
    radial-gradient(120% 90% at 18% 8%, rgba(230, 79, 160, .26), transparent 62%),
    radial-gradient(90% 80% at 92% 96%, rgba(232, 180, 90, .18), transparent 64%),
    linear-gradient(160deg, #111C3D 0%, #0B1226 100%);
}
.mk-figure__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(0deg, rgba(245, 241, 232, .045) 0 1px, transparent 1px 4px);
  pointer-events: none;
}
.mk-figure__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: relative;
  z-index: 1;
}
.mk-figure--wide .mk-figure__media { aspect-ratio: 21 / 9; }
.mk-figure--tall .mk-figure__media { aspect-ratio: 4 / 5; }
.mk-figure--square .mk-figure__media { aspect-ratio: 1 / 1; }
.mk-figure__cap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 14px;
  border-top: 1px solid var(--mk-line);
  font-family: var(--mk-mono);
  font-size: 11.5px;
  letter-spacing: .06em;
  color: var(--mk-muted);
  background: rgba(11, 18, 38, .8);
}

/* ---------- 12. 标签 ---------- */
.mk-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  font-family: var(--mk-mono);
  font-size: 11.5px;
  letter-spacing: .08em;
  border: 1px solid rgba(31, 166, 166, .55);
  background: rgba(31, 166, 166, .12);
  color: var(--mk-cyan);
  white-space: nowrap;
}
.mk-tag--gold { border-color: rgba(232, 180, 90, .6); background: rgba(232, 180, 90, .12); color: var(--mk-gold); }
.mk-tag--magenta { border-color: rgba(230, 79, 160, .6); background: rgba(230, 79, 160, .14); color: var(--mk-magenta-soft); }
.mk-tag--ok { border-color: rgba(91, 214, 160, .6); background: rgba(91, 214, 160, .12); color: var(--mk-ok); }
.mk-tag--warn { border-color: rgba(240, 163, 94, .6); background: rgba(240, 163, 94, .12); color: var(--mk-warn); }

/* ---------- 13. 面包屑 ---------- */
.mk-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding-block: 18px;
  font-family: var(--mk-mono);
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--mk-muted);
  list-style: none;
}
.mk-breadcrumb a { color: var(--mk-muted); border-bottom: 1px solid transparent; }
.mk-breadcrumb a:hover { color: var(--mk-cyan); border-bottom-color: var(--mk-cyan); }
.mk-breadcrumb__sep { color: var(--mk-teal); }
.mk-breadcrumb [aria-current="page"] { color: var(--mk-paper); }

/* ---------- 14. 标签页 ---------- */
.mk-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--mk-line);
}
.mk-tab {
  appearance: none;
  padding: 9px 16px;
  background: transparent;
  border: 1px solid var(--mk-line);
  color: var(--mk-muted);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: color .18s var(--mk-ease), background .18s var(--mk-ease), border-color .18s var(--mk-ease);
}
.mk-tab:hover { color: var(--mk-cyan); border-color: rgba(31, 166, 166, .65); }
.mk-tab[aria-selected="true"] {
  background: rgba(31, 166, 166, .18);
  border-color: var(--mk-teal);
  color: var(--mk-paper);
  box-shadow: inset 0 -2px 0 var(--mk-magenta);
}
.mk-tabpanel { padding-top: 20px; animation: mk-fade .18s ease-out both; }
@keyframes mk-fade {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

/* ---------- 15. 滚动显现 ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .5s var(--mk-ease), transform .5s var(--mk-ease);
}
[data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- 16. 主内容占位 ---------- */
.mk-main { display: block; min-height: 40vh; }

/* ---------- 17. 响应式 ---------- */
@media (max-width: 1080px) {
  .mk-footer__grid { grid-template-columns: 1fr 1fr; }
  .mk-footer__col:first-child { grid-column: 1 / -1; }
}

@media (max-width: 980px) {
  html { scroll-padding-top: 140px; }
  .mk-nav-toggle { display: inline-flex; order: 3; }
  .mk-masthead__inner { flex-wrap: wrap; row-gap: 10px; }
  .mk-brand { order: 1; }
  .mk-nav {
    order: 4;
    flex: 1 0 100%;
    visibility: hidden;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    border-top: 1px solid var(--mk-line);
    transition: max-height .3s var(--mk-ease), opacity .2s var(--mk-ease), visibility .3s;
  }
  .mk-nav[data-open="true"] {
    visibility: visible;
    max-height: min(70vh, 520px);
    opacity: 1;
    overflow-y: auto;
  }
  .mk-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding-block: 10px 14px;
  }
  .mk-nav__link {
    padding: 13px 14px;
    font-size: 16px;
    border-bottom: 1px solid rgba(42, 58, 90, .7);
  }
  .mk-nav__link::after { display: none; }
  .mk-nav__link[aria-current="page"] {
    border-left: 3px solid var(--mk-magenta);
    border-bottom-color: rgba(230, 79, 160, .45);
  }
  .mk-split { grid-template-columns: minmax(0, 1fr); }
  .mk-col-4, .mk-col-6, .mk-col-8 { grid-column: span 12; }
  .mk-rail-note { writing-mode: horizontal-tb; transform: none; }
}

@media (max-width: 700px) {
  .mk-footer__grid { grid-template-columns: 1fr; }
  .mk-footer__col:first-child { grid-column: auto; }
  .mk-footer__bottom { flex-direction: column; align-items: flex-start; }
  .mk-topbar__inner { justify-content: flex-start; }
  .mk-topbar__actions { margin-left: auto; }
}

@media (max-width: 520px) {
  .mk-brand__note { display: none; }
  .mk-brand__mark { width: 32px; height: 32px; }
  .mk-topbar__note { letter-spacing: .08em; font-size: 10.5px; }
  .mk-figure--wide .mk-figure__media { aspect-ratio: 16 / 9; }
  .mk-copy { grid-template-columns: minmax(0, 1fr) auto; }
}

/* ---------- 18. 无障碍与动效偏好 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .mk-tabpanel { animation: none; }
  .mk-btn:hover { transform: none; }
}
