/* =========================================================
   火马电竞中国站 · 共享样式 /assets/site.css
   赛道炭黑底 + 火马橙指路 + 荧光青状态
   ========================================================= */

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

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

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

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

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

button, input, select, textarea { font: inherit; color: inherit; }

a { color: inherit; }

/* ---------- 2. 变量 ---------- */
:root {
  --hm-ink: #0B0D10;
  --hm-ink-2: #14181D;
  --hm-steel-1: #1F262E;
  --hm-steel-2: #2E3944;
  --hm-mute: #8A97A6;
  --hm-paper: #E9EDF2;
  --hm-orange: #FF5A1F;
  --hm-orange-lite: #FF8A4C;
  --hm-orange-deep: #C43F0E;
  --hm-cyan: #25E6C8;
  --hm-cyan-deep: #0F3F3A;
  --hm-indigo: #1A2634;

  --hm-glass: rgba(20, 24, 29, 0.74);
  --hm-hair: rgba(46, 57, 68, 0.85);

  --hm-shell: 1320px;
  --hm-radius: 14px;
  --hm-header-h: 78px;

  --hm-font-display: 'Source Han Sans SC', 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --hm-font-body: 'Source Han Sans SC', 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --hm-font-mono: 'JetBrains Mono', 'Roboto Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --hm-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- 3. 中文排版与页面底色 ---------- */
body {
  min-height: 100vh;
  padding-top: var(--hm-header-h);
  background-color: var(--hm-ink);
  background-image:
    radial-gradient(1100px 560px at 88% -8%, rgba(255, 90, 31, 0.12), transparent 62%),
    radial-gradient(900px 520px at -8% 18%, rgba(37, 230, 200, 0.07), transparent 60%),
    radial-gradient(700px 700px at 50% 110%, rgba(26, 38, 52, 0.9), transparent 70%);
  background-repeat: no-repeat;
  color: var(--hm-paper);
  font-family: var(--hm-font-body);
  font-size: 16.5px;
  line-height: 1.75;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 {
  font-family: var(--hm-font-display);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.18;
  color: var(--hm-paper);
}

h1 { font-size: clamp(30px, 4.4vw, 52px); }
h2 { font-size: clamp(23px, 3vw, 34px); }
h3 { font-size: clamp(18px, 2vw, 22px); }

p { max-width: 40em; }

strong, b { font-weight: 700; color: var(--hm-paper); }

::selection { background: var(--hm-orange); color: #12100E; }

[id] { scroll-margin-top: calc(var(--hm-header-h) + 18px); }

#main-content:focus { outline: none; }

/* ---------- 4. 焦点可见 / 动效降级 ---------- */
:focus-visible {
  outline: 2px solid var(--hm-cyan);
  outline-offset: 3px;
}

@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;
  }
  .hm-js [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

/* ---------- 5. 跳转链接 ---------- */
.hm-skip {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 300;
  padding: 0.62rem 1.05rem;
  border-radius: 8px;
  background: var(--hm-orange);
  color: #12100E;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-decoration: none;
  transform: translateY(-220%);
  transition: transform 0.18s var(--hm-ease);
}

.hm-skip:focus,
.hm-skip:focus-visible {
  transform: translateY(0);
  outline-color: var(--hm-paper);
}

/* ---------- 6. 头部 ---------- */
.hm-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 120;
  height: var(--hm-header-h);
}

.hm-header__glass {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: rgba(11, 13, 16, 0.78);
  border-bottom: 1px solid var(--hm-steel-2);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
}

.hm-header__inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 28px);
  height: 100%;
  width: 100%;
  max-width: var(--hm-shell);
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 44px);
}

.hm-brand {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding-left: 0.95rem;
  flex: 0 0 auto;
  text-decoration: none;
  color: inherit;
}

.hm-brand::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 3px;
  height: 32px;
  transform: translateY(-50%) skewY(-14deg);
  background: linear-gradient(180deg, var(--hm-orange), var(--hm-cyan));
}

.hm-brand__glyph {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  background: linear-gradient(145deg, var(--hm-orange-lite), var(--hm-orange) 58%, var(--hm-orange-deep));
  color: #12100E;
  font-family: var(--hm-font-display);
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
  clip-path: polygon(0 0, 100% 0, 100% 70%, 84% 100%, 0 100%);
}

.hm-brand__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.15;
}

.hm-brand__mark {
  font-family: var(--hm-font-display);
  font-size: 15.5px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--hm-paper);
  white-space: nowrap;
}

.hm-brand__sub {
  font-size: 10.5px;
  letter-spacing: 0.2em;
  color: var(--hm-mute);
  white-space: nowrap;
}

.hm-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: clamp(8px, 1.4vw, 22px);
}

.hm-nav__list {
  display: flex;
  align-items: center;
  gap: clamp(2px, 0.9vw, 14px);
}

.hm-nav__link {
  position: relative;
  display: inline-block;
  padding: 0.55rem 0.4rem;
  border-radius: 6px;
  font-size: 14.5px;
  letter-spacing: 0.04em;
  color: var(--hm-paper);
  opacity: 0.82;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.18s var(--hm-ease), opacity 0.18s var(--hm-ease);
}

.hm-nav__link::after {
  content: "";
  position: absolute;
  left: 0.4rem;
  right: 0.4rem;
  bottom: 0.14rem;
  height: 2px;
  background: var(--hm-orange);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.18s var(--hm-ease);
}

.hm-nav__link:hover { opacity: 1; color: #FFFFFF; }
.hm-nav__link:hover::after { transform: scaleX(1); }

.hm-nav__link[aria-current="page"] {
  color: var(--hm-orange);
  opacity: 1;
}

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

.hm-nav__utility {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.85rem;
  border: 1px solid rgba(255, 90, 31, 0.55);
  border-radius: 999px;
  background: rgba(255, 90, 31, 0.08);
  color: var(--hm-orange);
  font-size: 12.5px;
  letter-spacing: 0.08em;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.18s var(--hm-ease), color 0.18s var(--hm-ease), border-color 0.18s var(--hm-ease);
}

.hm-nav__utility::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--hm-cyan);
  box-shadow: 0 0 0 3px rgba(37, 230, 200, 0.16);
}

.hm-nav__utility:hover {
  background: rgba(255, 90, 31, 0.18);
  border-color: var(--hm-orange);
  color: var(--hm-orange-lite);
}

.hm-nav-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 44px;
  height: 44px;
  margin-left: auto;
  padding: 0;
  border: 1px solid var(--hm-steel-2);
  border-radius: 10px;
  background: rgba(31, 38, 46, 0.72);
  color: var(--hm-paper);
  cursor: pointer;
  transition: border-color 0.18s var(--hm-ease), color 0.18s var(--hm-ease);
}

.hm-nav-toggle:hover { border-color: var(--hm-orange); color: var(--hm-orange-lite); }

.hm-nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.22s var(--hm-ease), opacity 0.16s var(--hm-ease);
}

.hm-nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.hm-nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hm-nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.hm-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  z-index: 1;
  height: 2px;
  pointer-events: none;
}

.hm-progress__bar {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--hm-orange), var(--hm-orange-lite) 58%, var(--hm-cyan));
}

@media (max-width: 1180px) {
  .hm-brand__sub { display: none; }
  .hm-nav__link { font-size: 14px; }
}

@media (max-width: 960px) {
  :root { --hm-header-h: 64px; }

  .hm-nav-toggle {
    display: flex;
    position: relative;
    z-index: 140;
  }

  .hm-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 130;
    width: min(88vw, 372px);
    margin-left: 0;
    padding: calc(var(--hm-header-h) + 22px) 22px 32px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: linear-gradient(180deg, rgba(20, 24, 29, 0.98), rgba(11, 13, 16, 0.99));
    border-left: 1px solid var(--hm-steel-2);
    box-shadow: -28px 0 70px rgba(0, 0, 0, 0.6);
    overflow-y: auto;
    transform: translateX(103%);
    visibility: hidden;
    transition: transform 0.3s var(--hm-ease), visibility 0.3s var(--hm-ease);
  }

  .hm-nav[data-open] {
    transform: translateX(0);
    visibility: visible;
  }

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

  .hm-nav__link {
    display: block;
    padding: 0.9rem 0.5rem;
    font-size: 16px;
    border-bottom: 1px solid var(--hm-steel-1);
    opacity: 0.92;
  }

  .hm-nav__link::after {
    left: 0.5rem;
    right: auto;
    bottom: 0.7rem;
    width: 18px;
    height: 2px;
  }

  .hm-nav__link[aria-current="page"] { color: var(--hm-orange); }

  .hm-nav__utility {
    justify-content: center;
    margin-top: 20px;
    padding: 0.7rem 1rem;
    font-size: 13.5px;
  }
}

/* 抽屉打开时锁滚动（由脚本添加到 <html>） */
.hm-nav-locked,
.hm-nav-locked body {
  overflow: hidden;
}

/* ---------- 7. 页脚 ---------- */
.hm-footer {
  position: relative;
  margin-top: clamp(48px, 8vw, 100px);
  background: linear-gradient(180deg, var(--hm-ink-2), var(--hm-ink) 72%);
  border-top: 1px solid var(--hm-steel-2);
}

.hm-footer__track {
  height: 8px;
  background: repeating-linear-gradient(
    120deg,
    var(--hm-orange) 0 22px,
    var(--hm-steel-2) 22px 44px
  );
  opacity: 0.72;
}

.hm-footer__inner {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: clamp(28px, 4vw, 68px);
  max-width: var(--hm-shell);
  margin: 0 auto;
  padding: clamp(36px, 5vw, 64px) clamp(18px, 4vw, 44px) clamp(26px, 3.5vw, 44px);
}

.hm-footer__brand { display: flex; flex-direction: column; align-items: flex-start; }

.hm-footer__wordmark {
  font-family: var(--hm-font-display);
  font-size: clamp(21px, 2.6vw, 28px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--hm-paper);
}

.hm-footer__tagline {
  margin-top: 0.5rem;
  max-width: 20em;
  font-size: 14px;
  line-height: 1.7;
  color: var(--hm-mute);
}

.hm-footer__region {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  font-family: var(--hm-font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--hm-cyan);
}

.hm-footer__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--hm-cyan);
  box-shadow: 0 0 0 3px rgba(37, 230, 200, 0.18);
}

.hm-footer__brand .hm-btn { margin-top: 1.4rem; }

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

.hm-footer__col-title {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 0.9rem;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--hm-paper);
}

.hm-footer__col-num {
  font-family: var(--hm-font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--hm-orange);
}

.hm-footer__list { display: flex; flex-direction: column; gap: 0.2rem; }

.hm-footer__link {
  display: inline-block;
  padding: 0.22rem 0;
  font-size: 14px;
  color: var(--hm-mute);
  text-decoration: none;
  transition: color 0.18s var(--hm-ease), transform 0.18s var(--hm-ease);
}

.hm-footer__link:hover {
  color: var(--hm-paper);
  transform: translateX(3px);
}

.hm-footer__meta {
  max-width: var(--hm-shell);
  margin: 0 auto;
  padding: 0 clamp(18px, 4vw, 44px) clamp(24px, 3vw, 38px);
}

.hm-footer__meta-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.6rem;
  padding-top: clamp(18px, 2.5vw, 26px);
  border-top: 1px solid var(--hm-steel-2);
}

.hm-footer__contact {
  font-size: 13px;
  letter-spacing: 0.03em;
  color: var(--hm-paper);
}

.hm-footer__address {
  font-size: 12.5px;
  letter-spacing: 0.03em;
  color: var(--hm-mute);
}

.hm-footer__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.4rem 1.4rem;
  margin-top: clamp(14px, 2vw, 22px);
}

.hm-footer__legal-text {
  font-family: var(--hm-font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--hm-mute);
}

@media (max-width: 900px) {
  .hm-footer__inner { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .hm-footer__nav { grid-template-columns: 1fr 1fr; }
  .hm-footer__brand .hm-btn { width: 100%; }
}

/* ---------- 8. 容器与网格 ---------- */
.hm-shell {
  width: 100%;
  max-width: var(--hm-shell);
  margin-inline: auto;
  padding-inline: clamp(18px, 4vw, 44px);
}

.hm-section { padding-block: clamp(40px, 6vw, 84px); }

.hm-section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  margin-bottom: clamp(20px, 3vw, 36px);
}

.hm-rule {
  height: 1px;
  border: 0;
  margin: 0;
  background: linear-gradient(90deg, var(--hm-steel-2), rgba(46, 57, 68, 0));
}

.hm-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(16px, 2.2vw, 28px);
}

.hm-grid--split { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.hm-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.hm-span-4 { grid-column: span 4; }
.hm-span-5 { grid-column: span 5; }
.hm-span-6 { grid-column: span 6; }
.hm-span-7 { grid-column: span 7; }
.hm-span-8 { grid-column: span 8; }
.hm-span-12 { grid-column: span 12; }

@media (max-width: 900px) {
  .hm-grid,
  .hm-grid--split,
  .hm-grid--3 { grid-template-columns: minmax(0, 1fr); }

  .hm-span-4,
  .hm-span-5,
  .hm-span-6,
  .hm-span-7,
  .hm-span-8 { grid-column: 1 / -1; }
}

/* ---------- 9. 排版组件 ---------- */
.hm-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.7rem;
  font-family: var(--hm-font-mono);
  font-size: 11.5px;
  letter-spacing: 0.24em;
  color: var(--hm-orange);
  text-transform: uppercase;
}

.hm-eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--hm-orange);
}

.hm-section-num {
  display: block;
  font-family: var(--hm-font-mono);
  font-size: clamp(56px, 9vw, 120px);
  font-weight: 700;
  line-height: 0.85;
  letter-spacing: -0.05em;
  font-variant-numeric: tabular-nums;
  color: rgba(255, 90, 31, 0.24);
}

@supports (-webkit-text-stroke: 1px #000) {
  .hm-section-num {
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 90, 31, 0.6);
  }
}

.hm-annot {
  font-family: var(--hm-font-mono);
  font-size: 11.5px;
  letter-spacing: 0.24em;
  color: var(--hm-mute);
  writing-mode: vertical-rl;
}

.hm-annot--rot {
  writing-mode: horizontal-tb;
  transform: rotate(-90deg);
  transform-origin: left top;
}

.hm-lede {
  font-size: clamp(16px, 1.6vw, 18.5px);
  line-height: 1.8;
  color: rgba(233, 237, 242, 0.9);
}

.hm-note {
  font-size: 12.5px;
  line-height: 1.7;
  letter-spacing: 0.06em;
  color: var(--hm-mute);
}

.hm-stat { display: flex; flex-direction: column; gap: 0.3rem; }

.hm-stat__num {
  font-family: var(--hm-font-mono);
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  color: var(--hm-orange);
}

.hm-stat__label {
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--hm-mute);
}

/* ---------- 10. 层：玻璃 / 实色 ---------- */
.hm-glass {
  background: var(--hm-glass);
  border: 1px solid var(--hm-steel-2);
  border-radius: var(--hm-radius);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  backdrop-filter: blur(12px) saturate(140%);
  box-shadow: 0 22px 54px -34px rgba(0, 0, 0, 0.95);
}

.hm-panel {
  padding: clamp(18px, 2.4vw, 28px);
  background: var(--hm-ink-2);
  border: 1px solid var(--hm-hair);
  border-radius: var(--hm-radius);
}

/* ---------- 11. 按钮 ---------- */
.hm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.7rem 1.3rem;
  border: 1px solid transparent;
  border-radius: 10px;
  font-family: var(--hm-font-body);
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s var(--hm-ease), background 0.18s var(--hm-ease),
    color 0.18s var(--hm-ease), border-color 0.18s var(--hm-ease);
}

.hm-btn--signal {
  background: linear-gradient(135deg, var(--hm-orange-lite), var(--hm-orange) 55%, var(--hm-orange-deep));
  color: #12100E;
  box-shadow: 0 10px 26px -14px rgba(255, 90, 31, 0.95);
}

.hm-btn--signal:hover { transform: translateY(-2px); }

.hm-btn--ghost {
  background: rgba(233, 237, 242, 0.04);
  border-color: var(--hm-steel-2);
  color: var(--hm-paper);
}

.hm-btn--ghost:hover {
  border-color: var(--hm-orange);
  color: var(--hm-orange-lite);
  transform: translateY(-2px);
}

.hm-btn--quiet {
  background: transparent;
  border-color: rgba(37, 230, 200, 0.42);
  color: var(--hm-cyan);
}

.hm-btn--quiet:hover {
  background: rgba(37, 230, 200, 0.12);
  border-color: var(--hm-cyan);
}

/* ---------- 12. 面包屑 ---------- */
.hm-breadcrumb { margin-bottom: clamp(14px, 2vw, 22px); }

.hm-breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--hm-font-mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  color: var(--hm-mute);
}

.hm-breadcrumb__list li + li::before {
  content: "/";
  margin-right: 0.5rem;
  color: var(--hm-steel-2);
}

.hm-breadcrumb__link {
  color: var(--hm-mute);
  text-decoration: none;
  transition: color 0.18s var(--hm-ease);
}

.hm-breadcrumb__link:hover { color: var(--hm-orange); }

.hm-breadcrumb [aria-current="page"] { color: var(--hm-paper); }

/* ---------- 13. 标签 / 筛选 ---------- */
.hm-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 36px;
  padding: 0.35rem 0.9rem;
  border: 1px solid var(--hm-steel-2);
  border-radius: 999px;
  background: rgba(31, 38, 46, 0.72);
  color: var(--hm-paper);
  font-size: 13px;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: border-color 0.18s var(--hm-ease), background 0.18s var(--hm-ease), color 0.18s var(--hm-ease);
}

.hm-chip:hover { border-color: var(--hm-orange); color: var(--hm-orange-lite); }

.hm-chip[aria-pressed="true"] {
  border-color: var(--hm-orange);
  background: rgba(255, 90, 31, 0.16);
  color: var(--hm-orange-lite);
}

.hm-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.2rem 0.6rem;
  border: 1px solid currentColor;
  border-radius: 6px;
  font-family: var(--hm-font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  line-height: 1.5;
}

.hm-badge--live {
  color: var(--hm-cyan);
  background: rgba(37, 230, 200, 0.1);
}

.hm-badge--live::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  animation: hm-pulse 1.9s var(--hm-ease) infinite;
}

.hm-badge--round {
  color: var(--hm-orange);
  background: rgba(255, 90, 31, 0.1);
}

@keyframes hm-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.82); }
}

/* ---------- 14. 图片容器（页面阶段放图） ---------- */
.hm-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--hm-steel-2);
  border-radius: var(--hm-radius);
  background-color: var(--hm-ink-2);
  background-image: repeating-linear-gradient(
    135deg,
    rgba(46, 57, 68, 0.5) 0 12px,
    rgba(20, 24, 29, 0.5) 12px 24px
  );
}

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

.hm-media--4x3 { aspect-ratio: 4 / 3; }
.hm-media--1x1 { aspect-ratio: 1 / 1; }
.hm-media--tall { aspect-ratio: 3 / 4; }

.hm-media--cut {
  border-radius: 0;
  clip-path: polygon(0 0, 100% 0, 100% 86%, 91% 100%, 0 100%);
}

.hm-media__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.4rem 1rem 0.75rem;
  background: linear-gradient(0deg, rgba(11, 13, 16, 0.92), rgba(11, 13, 16, 0));
  font-family: var(--hm-font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--hm-paper);
}

.hm-media__tag {
  position: absolute;
  top: 0.8rem;
  left: 0.8rem;
  padding: 0.18rem 0.55rem;
  border-radius: 5px;
  background: rgba(11, 13, 16, 0.82);
  border: 1px solid rgba(255, 90, 31, 0.6);
  font-family: var(--hm-font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--hm-orange);
}

/* ---------- 15. 跟随目录 ---------- */
.hm-toc {
  position: sticky;
  top: calc(var(--hm-header-h) + 20px);
  padding: 18px;
  background: var(--hm-glass);
  border: 1px solid var(--hm-steel-2);
  border-radius: var(--hm-radius);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  backdrop-filter: blur(12px) saturate(140%);
}

.hm-toc__title {
  margin-bottom: 0.75rem;
  font-family: var(--hm-font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--hm-mute);
}

.hm-toc__list { display: flex; flex-direction: column; gap: 2px; }

.hm-toc__link {
  position: relative;
  display: block;
  padding: 0.45rem 0.5rem 0.45rem 1.15rem;
  border-radius: 6px;
  font-size: 13.5px;
  color: var(--hm-paper);
  opacity: 0.7;
  text-decoration: none;
  transition: color 0.18s var(--hm-ease), opacity 0.18s var(--hm-ease), background 0.18s var(--hm-ease);
}

.hm-toc__link::before {
  content: "";
  position: absolute;
  left: 0.3rem;
  top: 50%;
  width: 9px;
  height: 2px;
  transform: translateY(-50%);
  background: var(--hm-steel-2);
  transition: width 0.18s var(--hm-ease), background 0.18s var(--hm-ease);
}

.hm-toc__link:hover {
  opacity: 1;
  background: rgba(233, 237, 242, 0.05);
}

.hm-toc__link[aria-current="true"] {
  opacity: 1;
  color: var(--hm-orange);
}

.hm-toc__link[aria-current="true"]::before {
  width: 14px;
  background: var(--hm-orange);
}

@media (max-width: 900px) {
  .hm-toc { position: static; }
}

/* ---------- 16. 返回顶部 ---------- */
.hm-top {
  position: fixed;
  right: clamp(14px, 3vw, 30px);
  bottom: clamp(14px, 3vw, 30px);
  z-index: 110;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--hm-steel-2);
  border-radius: 12px;
  background: rgba(20, 24, 29, 0.92);
  color: var(--hm-orange);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.2s var(--hm-ease), transform 0.2s var(--hm-ease),
    visibility 0.2s var(--hm-ease), border-color 0.2s var(--hm-ease), color 0.2s var(--hm-ease);
}

.hm-top[data-show] {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.hm-top:hover {
  border-color: var(--hm-orange);
  color: var(--hm-orange-lite);
}

/* ---------- 17. 入场显现 ---------- */
.hm-js [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.24s var(--hm-ease), transform 0.24s var(--hm-ease);
}

.hm-js [data-reveal].is-in {
  opacity: 1;
  transform: none;
}
