/* ============================================================
   EMC赛场 · 全站共享样式 /assets/site.css
   深夜竞技数据舱：深墨绿铺底 · 暖纸档案卡 · 荧光青结构线 · 活力橙行动点
   ============================================================ */

/* ---------- 0. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--emc-header-offset, 96px);
}

body {
  margin: 0;
  background: var(--emc-ink);
  color: var(--emc-white);
  font-family: var(--emc-font-body);
  font-size: 17px;
  line-height: 1.75;
  letter-spacing: .012em;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5 {
  margin: 0;
  font-family: var(--emc-font-head);
  font-weight: 850;
  letter-spacing: -.022em;
  line-height: 1.14;
  color: var(--emc-white);
}

p { margin: 0 0 1.05em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }
img, svg, picture, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
table { border-collapse: collapse; width: 100%; }
:focus-visible { outline: 2px solid var(--emc-cyan); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--emc-cyan); color: var(--emc-ink); }

/* ---------- 1. 变量 ---------- */
:root {
  /* 色彩节奏 */
  --emc-ink: #0B1F1A;
  --emc-carbon: #111417;
  --emc-deep: #16302A;
  --emc-paper: #F3EDE2;
  --emc-paper-2: #D6CDBC;
  --emc-cyan: #2BE7C8;
  --emc-orange: #FF6A2B;
  --emc-violet: #8A6BFF;
  --emc-gold: #FFC24B;
  --emc-white: #E9F2EF;
  --emc-ink-text: #0B1B17;

  /* 结构线 */
  --emc-line: rgba(233, 242, 239, .14);
  --emc-line-soft: rgba(233, 242, 239, .07);
  --emc-line-strong: rgba(43, 231, 200, .32);

  /* 字体 */
  --emc-font-head: "Inter Tight", "HarmonyOS Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  --emc-font-body: "HarmonyOS Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  --emc-font-mono: ui-monospace, "JetBrains Mono", "DIN Alternate", "SFMono-Regular", Menlo, Consolas, "Courier New", monospace;

  /* 尺度 */
  --emc-wrap: 1440px;
  --emc-gutter: clamp(16px, 3.2vw, 44px);
  --emc-radius: 3px;
  --emc-notch: 18px;
  --emc-header-offset: 116px;

  /* 动效 */
  --emc-t-fast: 140ms;
  --emc-t-base: 220ms;
  --emc-t-slow: 340ms;
  --emc-ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- 2. 跳转链接 ---------- */
.emc-skip {
  position: absolute;
  left: 14px;
  top: -80px;
  z-index: 200;
  padding: 11px 20px;
  background: var(--emc-cyan);
  color: var(--emc-ink);
  font-family: var(--emc-font-head);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .02em;
  text-decoration: none;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 11px 100%, 0 calc(100% - 11px));
  transition: top var(--emc-t-base) var(--emc-ease);
}
.emc-skip:focus { top: 14px; }

/* ---------- 3. 页头：框架式上边梁 ---------- */
.emc-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(11, 31, 26, .95);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  backdrop-filter: blur(14px) saturate(150%);
  border-bottom: 1px solid var(--emc-line);
}
.emc-header::before {
  content: "";
  display: block;
  height: 3px;
  background: linear-gradient(90deg,
    var(--emc-cyan) 0%, var(--emc-cyan) 34%,
    var(--emc-orange) 62%, var(--emc-violet) 100%);
}
.emc-header__inner {
  width: 100%;
  max-width: var(--emc-wrap);
  margin: 0 auto;
  padding: 0 var(--emc-gutter);
}
.emc-header__inner::after {
  content: "";
  display: block;
  height: 7px;
  border-top: 1px solid var(--emc-line-soft);
  background-image: repeating-linear-gradient(90deg,
    rgba(43, 231, 200, .22) 0 1px, transparent 1px 28px);
}
.emc-header__top {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 26px);
  min-height: 76px;
  padding: 8px 0;
  transition: min-height var(--emc-t-base) var(--emc-ease);
}
html.emc-scrolled .emc-header__top { min-height: 58px; }

/* 品牌 */
.emc-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  text-decoration: none;
  color: var(--emc-white);
  transition: opacity var(--emc-t-base) var(--emc-ease);
}
.emc-brand:hover { opacity: .86; }
.emc-brand__mark {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  background: var(--emc-cyan);
  color: var(--emc-ink);
  font-family: var(--emc-font-mono);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -.05em;
  clip-path: polygon(0 0, 100% 0, 100% 68%, 68% 100%, 0 100%);
}
.emc-brand__text { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.emc-brand__name {
  font-family: var(--emc-font-head);
  font-size: 19px;
  font-weight: 900;
  letter-spacing: -.03em;
  line-height: 1.16;
  white-space: nowrap;
}
.emc-brand__tag {
  max-height: 22px;
  overflow: hidden;
  font-family: var(--emc-font-mono);
  font-size: 11px;
  letter-spacing: .06em;
  color: var(--emc-cyan);
  line-height: 1.4;
  white-space: nowrap;
  transition: opacity var(--emc-t-base) var(--emc-ease), max-height var(--emc-t-base) var(--emc-ease);
}
html.emc-scrolled .emc-brand__tag { opacity: 0; max-height: 0; }

/* 主导航 */
.emc-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
}
.emc-nav__link {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  padding: 9px 13px 11px;
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: .02em;
  white-space: nowrap;
  text-decoration: none;
  color: rgba(233, 242, 239, .74);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%);
  transition: color var(--emc-t-fast) var(--emc-ease), background-color var(--emc-t-fast) var(--emc-ease);
}
.emc-nav__link::before {
  content: attr(data-index);
  font-family: var(--emc-font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .04em;
  color: rgba(43, 231, 200, .6);
  transition: color var(--emc-t-fast) var(--emc-ease);
}
.emc-nav__link:hover {
  color: var(--emc-white);
  background-color: rgba(43, 231, 200, .1);
}
.emc-nav__link[aria-current="page"] {
  background: var(--emc-cyan);
  color: var(--emc-ink);
}
.emc-nav__link[aria-current="page"]::before { color: rgba(11, 31, 26, .55); }
.emc-nav__cta { display: none; }

/* 工具条 */
.emc-utility {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}
.emc-util {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .02em;
  text-decoration: none;
  color: var(--emc-white);
  background: transparent;
  border: 1px solid rgba(233, 242, 239, .18);
  border-radius: var(--emc-radius);
  transition: color var(--emc-t-fast) var(--emc-ease),
              border-color var(--emc-t-fast) var(--emc-ease),
              background-color var(--emc-t-fast) var(--emc-ease);
}
.emc-util:hover { color: var(--emc-cyan); border-color: var(--emc-line-strong); }
.emc-util--cta {
  background: var(--emc-orange);
  border-color: var(--emc-orange);
  color: #180A03;
  font-weight: 800;
}
.emc-util--cta:hover { background: #FF834F; border-color: #FF834F; color: #180A03; }
.emc-util--fav .emc-util__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(233, 242, 239, .34);
  transition: background-color var(--emc-t-fast) var(--emc-ease), box-shadow var(--emc-t-fast) var(--emc-ease);
}
.emc-util--fav[aria-pressed="true"] { color: var(--emc-cyan); border-color: var(--emc-line-strong); }
.emc-util--fav[aria-pressed="true"] .emc-util__dot {
  background: var(--emc-orange);
  box-shadow: 0 0 0 4px rgba(255, 106, 43, .2);
}

/* 移动导航按钮 */
.emc-burger {
  display: none;
  flex: 0 0 auto;
  width: 44px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(233, 242, 239, .2);
  border-radius: var(--emc-radius);
  transition: border-color var(--emc-t-fast) var(--emc-ease), background-color var(--emc-t-fast) var(--emc-ease);
}
.emc-burger:hover { border-color: var(--emc-line-strong); background: rgba(43, 231, 200, .08); }
.emc-burger__bar {
  position: relative;
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--emc-white);
  transition: background-color var(--emc-t-fast) var(--emc-ease);
}
.emc-burger__bar::before,
.emc-burger__bar::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--emc-white);
  transition: transform var(--emc-t-base) var(--emc-ease), top var(--emc-t-base) var(--emc-ease);
}
.emc-burger__bar::before { top: -6px; }
.emc-burger__bar::after { top: 6px; }
.emc-burger[aria-expanded="true"] .emc-burger__bar { background: transparent; }
.emc-burger[aria-expanded="true"] .emc-burger__bar::before { top: 0; transform: rotate(45deg); }
.emc-burger[aria-expanded="true"] .emc-burger__bar::after { top: 0; transform: rotate(-45deg); }

/* 滚动进度 */
.emc-progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 2px;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--emc-cyan), var(--emc-orange) 58%, var(--emc-violet));
  will-change: transform;
}

/* ---------- 4. 页脚 ---------- */
.emc-footer {
  position: relative;
  margin-top: clamp(48px, 7vw, 112px);
  background: var(--emc-carbon);
  color: rgba(233, 242, 239, .82);
  border-top: 1px solid var(--emc-line);
}
.emc-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--emc-orange), var(--emc-violet) 50%, var(--emc-cyan));
  opacity: .85;
}
.emc-footer__inner {
  width: 100%;
  max-width: var(--emc-wrap);
  margin: 0 auto;
  padding: clamp(38px, 5vw, 70px) var(--emc-gutter) 0;
}
.emc-footer__grid {
  display: grid;
  grid-template-columns: minmax(260px, 1.35fr) repeat(3, minmax(150px, 1fr));
  gap: clamp(26px, 3.4vw, 56px);
  padding-bottom: clamp(30px, 4vw, 56px);
}
.emc-footer__brandcol {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 34em;
}
.emc-brand--footer .emc-brand__name { font-size: 20px; }
.emc-footer__note {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: rgba(233, 242, 239, .6);
}
.emc-footer__facts { display: flex; flex-direction: column; gap: 8px; }
.emc-footer__facts li { display: flex; align-items: baseline; gap: 10px; }
.emc-footer__k {
  flex: 0 0 auto;
  padding-top: 3px;
  font-family: var(--emc-font-mono);
  font-size: 10.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--emc-cyan);
}
.emc-footer__v {
  font-family: var(--emc-font-mono);
  font-size: 13px;
  color: rgba(233, 242, 239, .88);
  word-break: break-all;
}
.emc-footer__coltitle {
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--emc-line);
  font-family: var(--emc-font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--emc-cyan);
}
.emc-footer__list { display: flex; flex-direction: column; gap: 9px; }
.emc-footer__link,
.emc-footer__muted {
  display: inline-block;
  font-size: 14px;
  line-height: 1.55;
  text-decoration: none;
}
.emc-footer__link {
  color: rgba(233, 242, 239, .78);
  border-bottom: 1px solid transparent;
  transition: color var(--emc-t-fast) var(--emc-ease), border-color var(--emc-t-fast) var(--emc-ease);
}
.emc-footer__link:hover { color: var(--emc-cyan); border-bottom-color: var(--emc-cyan); }
.emc-footer__muted { color: rgba(233, 242, 239, .44); }
.emc-footer__muted::before {
  content: "—";
  margin-right: 8px;
  font-family: var(--emc-font-mono);
  color: rgba(43, 231, 200, .42);
}
.emc-footer__base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 24px;
  padding: 20px 0 28px;
  border-top: 1px solid var(--emc-line);
  font-family: var(--emc-font-mono);
  font-size: 12.5px;
  color: rgba(233, 242, 239, .5);
}
.emc-footer__base p { margin: 0; }
.emc-footer__legal { color: rgba(233, 242, 239, .62); }
.emc-footer__tip { color: rgba(233, 242, 239, .42); }

/* ---------- 5. 布局容器与章节 ---------- */
.emc-main { display: block; }
.emc-wrap {
  width: 100%;
  max-width: var(--emc-wrap);
  margin-inline: auto;
  padding-inline: var(--emc-gutter);
}
.emc-section { padding-block: clamp(34px, 5vw, 82px); }
.emc-section--tight { padding-block: clamp(20px, 3vw, 44px); }

.emc-band {
  position: relative;
  display: flex;
  align-items: baseline;
  flex-wrap: nowrap;
  gap: clamp(12px, 2vw, 26px);
  margin-bottom: clamp(20px, 3vw, 38px);
  padding: 14px clamp(16px, 2.4vw, 30px);
  background: var(--emc-deep);
  border-left: 3px solid var(--emc-cyan);
  overflow: hidden;
}
.emc-band::after {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 42%;
  background-image: repeating-linear-gradient(90deg,
    rgba(43, 231, 200, .16) 0 1px, transparent 1px 22px);
  pointer-events: none;
}
.emc-band__num {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  font-family: var(--emc-font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
  color: var(--emc-cyan);
}
.emc-band__title {
  position: relative;
  z-index: 1;
  font-family: var(--emc-font-head);
  font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 900;
  letter-spacing: -.022em;
  color: var(--emc-white);
}
.emc-band__note {
  position: relative;
  z-index: 1;
  margin-left: auto;
  font-size: 13.5px;
  line-height: 1.5;
  color: rgba(233, 242, 239, .55);
}

/* ---------- 6. 网格 ---------- */
.emc-grid { display: grid; gap: clamp(18px, 2.4vw, 32px); }
.emc-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.emc-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.emc-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.emc-grid--75 { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.emc-grid--84 { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); }
.emc-grid--57 { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }

/* ---------- 7. 资料卡 ---------- */
.emc-card {
  position: relative;
  padding: clamp(18px, 2.2vw, 28px);
  background: var(--emc-deep);
  border: 1px solid var(--emc-line);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--emc-notch)), calc(100% - var(--emc-notch)) 100%, 0 100%);
  transition: transform var(--emc-t-base) var(--emc-ease),
              border-color var(--emc-t-base) var(--emc-ease),
              box-shadow var(--emc-t-base) var(--emc-ease);
}
.emc-card:hover {
  transform: translateY(-4px);
  border-color: var(--emc-line-strong);
  box-shadow: 0 18px 42px -28px rgba(43, 231, 200, .5);
}
.emc-card--paper {
  background: var(--emc-paper);
  color: var(--emc-ink-text);
  border-color: transparent;
}
.emc-card--paper:hover { box-shadow: 0 18px 42px -28px rgba(0, 0, 0, .6); }
.emc-card--paper .emc-card__label { color: rgba(11, 27, 23, .55); }
.emc-card--paper .emc-card__text { color: rgba(11, 27, 23, .72); }
.emc-card__label {
  display: block;
  margin-bottom: 10px;
  font-family: var(--emc-font-mono);
  font-size: 10.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--emc-cyan);
}
.emc-card__title {
  margin: 0 0 10px;
  font-family: var(--emc-font-head);
  font-size: clamp(18px, 1.6vw, 22px);
  font-weight: 800;
  letter-spacing: -.022em;
  line-height: 1.25;
}
.emc-card__text {
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
  color: rgba(233, 242, 239, .66);
}

/* ---------- 8. 按钮 ---------- */
.emc-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 24px;
  font-family: var(--emc-font-head);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .01em;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: var(--emc-radius);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%);
  transition: transform var(--emc-t-fast) var(--emc-ease),
              background-color var(--emc-t-fast) var(--emc-ease),
              color var(--emc-t-fast) var(--emc-ease),
              border-color var(--emc-t-fast) var(--emc-ease);
}
.emc-btn:hover { transform: translateY(-2px); }
.emc-btn--primary { background: var(--emc-cyan); color: var(--emc-ink); }
.emc-btn--primary:hover { background: #4DF0D5; }
.emc-btn--accent { background: var(--emc-orange); color: #180A03; }
.emc-btn--accent:hover { background: #FF834F; }
.emc-btn--ghost { background: transparent; border-color: rgba(233, 242, 239, .26); color: var(--emc-white); }
.emc-btn--ghost:hover { border-color: var(--emc-cyan); color: var(--emc-cyan); }

/* ---------- 9. 标签与文字件 ---------- */
.emc-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border: 1px solid rgba(43, 231, 200, .35);
  border-radius: 999px;
  font-family: var(--emc-font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--emc-cyan);
}
.emc-tag--gold { border-color: rgba(255, 194, 75, .48); color: var(--emc-gold); }
.emc-tag--violet { border-color: rgba(138, 107, 255, .48); color: var(--emc-violet); }
.emc-tag--orange { border-color: rgba(255, 106, 43, .48); color: var(--emc-orange); }

.emc-mono {
  font-family: var(--emc-font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: .02em;
}
.emc-num {
  font-family: var(--emc-font-mono);
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1;
}
.emc-eyebrow {
  display: inline-block;
  font-family: var(--emc-font-mono);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--emc-cyan);
}
.emc-lede {
  max-width: 38em;
  font-size: clamp(17px, 1.4vw, 19px);
  line-height: 1.75;
  color: rgba(233, 242, 239, .72);
}
.emc-prose { max-width: 38em; }
.emc-prose p { margin-bottom: 1.15em; }
.emc-prose ul { list-style: disc; padding-left: 1.3em; }
.emc-prose ol { list-style: decimal; padding-left: 1.45em; }
.emc-prose li { margin-bottom: .5em; }
.emc-prose strong { color: var(--emc-white); font-weight: 800; }

/* ---------- 10. 面包屑 ---------- */
.emc-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding-top: 18px;
  font-family: var(--emc-font-mono);
  font-size: 11.5px;
  letter-spacing: .08em;
  color: rgba(233, 242, 239, .5);
}
.emc-breadcrumb__item { display: inline-flex; align-items: center; gap: 8px; }
.emc-breadcrumb__item + .emc-breadcrumb__item::before {
  content: "/";
  color: rgba(43, 231, 200, .5);
}
.emc-breadcrumb a {
  text-decoration: none;
  color: rgba(233, 242, 239, .66);
  border-bottom: 1px solid transparent;
  transition: color var(--emc-t-fast) var(--emc-ease), border-color var(--emc-t-fast) var(--emc-ease);
}
.emc-breadcrumb a:hover { color: var(--emc-cyan); border-bottom-color: var(--emc-cyan); }
.emc-breadcrumb [aria-current="page"] { color: var(--emc-cyan); }

/* ---------- 11. 图片容器（无远程图片，供页面阶段放 img / 内联 SVG） ---------- */
.emc-media {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  background: linear-gradient(135deg, var(--emc-deep) 0%, var(--emc-carbon) 100%);
  border: 1px solid var(--emc-line);
  border-radius: var(--emc-radius);
}
.emc-media::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(43, 231, 200, .09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(43, 231, 200, .09) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: .75;
  pointer-events: none;
}
.emc-media > img,
.emc-media > svg,
.emc-media > picture {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.emc-media--16x9 { aspect-ratio: 16 / 9; }
.emc-media--4x3 { aspect-ratio: 4 / 3; }
.emc-media--1x1 { aspect-ratio: 1 / 1; }
.emc-media--wide { aspect-ratio: 21 / 9; }
.emc-media--tall { aspect-ratio: 3 / 4; }
.emc-media__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 10px 14px;
  font-family: var(--emc-font-mono);
  font-size: 11px;
  letter-spacing: .06em;
  color: rgba(233, 242, 239, .82);
  background: linear-gradient(0deg, rgba(11, 31, 26, .94), rgba(11, 31, 26, 0));
}

/* ---------- 12. 滚动显现与状态 ---------- */
.emc-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity var(--emc-t-slow) var(--emc-ease), transform var(--emc-t-slow) var(--emc-ease);
}
.emc-reveal.emc-reveal--in { opacity: 1; transform: none; }

[data-spy][aria-current="true"] {
  color: var(--emc-cyan) !important;
  border-left-color: var(--emc-cyan) !important;
}

/* ---------- 13. 返回顶部 ---------- */
.emc-totop {
  position: fixed;
  right: clamp(14px, 2.4vw, 32px);
  bottom: clamp(14px, 2.4vw, 32px);
  z-index: 80;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  background: rgba(22, 48, 42, .94);
  border: 1px solid var(--emc-line-strong);
  color: var(--emc-cyan);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 13px), calc(100% - 13px) 100%, 0 100%);
  transition: opacity var(--emc-t-base) var(--emc-ease),
              transform var(--emc-t-base) var(--emc-ease),
              visibility var(--emc-t-base) var(--emc-ease),
              background-color var(--emc-t-fast) var(--emc-ease),
              color var(--emc-t-fast) var(--emc-ease);
}
.emc-totop.is-visible { opacity: 1; visibility: visible; transform: none; }
.emc-totop:hover { background: var(--emc-cyan); color: var(--emc-ink); }
.emc-totop__glyph {
  font-family: var(--emc-font-mono);
  font-size: 17px;
  font-weight: 800;
  line-height: 1;
}

/* ---------- 14. 响应式 ---------- */
@media (max-width: 1180px) {
  .emc-utility { display: none; }
  .emc-burger { display: inline-flex; }
  .emc-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    z-index: 95;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin-left: 0;
    padding: 6px var(--emc-gutter) 20px;
    background: rgba(17, 20, 23, .985);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--emc-line-strong);
    max-height: 0;
    overflow: hidden;
    visibility: hidden;
    opacity: 0;
    transition: max-height var(--emc-t-slow) var(--emc-ease),
                opacity var(--emc-t-base) var(--emc-ease),
                visibility var(--emc-t-slow) var(--emc-ease);
  }
  .emc-nav[data-open] {
    max-height: min(78vh, 660px);
    overflow-y: auto;
    visibility: visible;
    opacity: 1;
  }
  .emc-nav__link {
    padding: 15px 4px;
    font-size: 16px;
    gap: 12px;
    border-bottom: 1px solid var(--emc-line-soft);
    clip-path: none;
  }
  .emc-nav__link::before { font-size: 11px; }
  .emc-nav__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 18px;
    padding: 14px 18px;
    background: var(--emc-orange);
    color: #180A03;
    font-family: var(--emc-font-head);
    font-size: 15px;
    font-weight: 800;
    text-decoration: none;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 11px), calc(100% - 11px) 100%, 0 100%);
  }
  .emc-header__top { min-height: 64px; }
  html.emc-scrolled .emc-header__top { min-height: 58px; }
}

@media (max-width: 980px) {
  .emc-footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px 26px;
  }
  .emc-footer__brandcol { grid-column: 1 / -1; }
  .emc-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .emc-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  body { font-size: 16px; line-height: 1.72; }
  .emc-grid--2,
  .emc-grid--3,
  .emc-grid--4,
  .emc-grid--75,
  .emc-grid--84,
  .emc-grid--57 { grid-template-columns: minmax(0, 1fr); }
  .emc-brand__mark { flex-basis: 36px; width: 36px; height: 36px; font-size: 13px; }
  .emc-brand__name { font-size: 17px; }
  .emc-band { flex-wrap: wrap; gap: 8px 14px; }
  .emc-band__note { margin-left: 0; width: 100%; }
  .emc-footer__grid { grid-template-columns: minmax(0, 1fr); }
  .emc-footer__base { font-size: 11.5px; gap: 8px 16px; }
  .emc-totop { width: 46px; height: 46px; right: 14px; bottom: 14px; }
  .emc-lede, .emc-prose { max-width: none; }
}

@media (max-width: 430px) {
  .emc-brand__tag { display: none; }
  .emc-header__inner::after { display: none; }
}

/* ---------- 15. 降低动效偏好 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .emc-reveal { opacity: 1; transform: none; }
  .emc-card:hover,
  .emc-btn:hover { transform: none; }
  .emc-progress { display: none; }
}
