/* ==========================================================================
   圣魔安卓版 · 共享站点样式 /assets/site.css
   深墨底 + 暗紫分区 + 熔金强调 + 暖纸标签；1px 细分隔线，无卡片阴影
   ========================================================================== */

/* ---------- 1. Reset ---------- */
*,
*::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, dl, dt, dd, figure, blockquote { 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; cursor: pointer; }
table { border-collapse: collapse; width: 100%; }
summary { cursor: pointer; }
input, textarea, select { font: inherit; }

/* ---------- 2. 变量 ---------- */
:root {
  /* 色板 */
  --sm-ink: #0B0A12;
  --sm-ink-soft: #0F0D18;
  --sm-purple: #3A1E5C;
  --sm-purple-deep: #231235;
  --sm-gold: #E0A73C;
  --sm-gold-lift: #F4CF7A;
  --sm-body: #B9C0C8;
  --sm-status: #35E0D6;
  --sm-blue: #7C93B8;
  --sm-paper: #EDE3D2;
  --sm-alert: #FF6B57;
  --sm-line: #2A2438;
  --sm-bright: #F3F1F6;
  --sm-paper-ink: #160C22;

  /* 字体 */
  --sm-font-display: "PingFang SC", "Noto Sans SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --sm-font-body: "PingFang SC", "Noto Sans SC", "Microsoft YaHei", system-ui, -apple-system, "Helvetica Neue", sans-serif;
  --sm-font-mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* 尺度 */
  --sm-cmd-h: 56px;
  --sm-rail-w: 96px;
  --sm-maxw: 1240px;
  --sm-line-w: 1px;
}

/* ---------- 3. 基础排版 ---------- */
body {
  min-height: 100vh;
  padding-top: var(--sm-cmd-h);
  background-color: var(--sm-ink);
  background-image:
    radial-gradient(120% 60% at 6% -12%, rgba(58, 30, 92, 0.62), rgba(11, 10, 18, 0) 62%),
    radial-gradient(80% 48% at 102% 0%, rgba(224, 167, 60, 0.08), rgba(11, 10, 18, 0) 60%);
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: var(--sm-body);
  font-family: var(--sm-font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.75;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
}

body.sm-nav-lock { overflow: hidden; }

h1, h2, h3, h4 { font-weight: 700; line-height: 1.16; color: var(--sm-bright); }

::selection { background: var(--sm-gold); color: var(--sm-paper-ink); }

:focus-visible {
  outline: 2px solid var(--sm-gold-lift);
  outline-offset: 2px;
}

.sm-visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- 4. 跳转链接 ---------- */
.sm-skip {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 130;
  transform: translateY(-200%);
  padding: 10px 16px;
  background: var(--sm-paper);
  color: var(--sm-paper-ink);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  transition: transform 0.18s ease;
}
.sm-skip:focus { transform: translateY(0); }

/* ---------- 5. 头部：命令栏 ---------- */
.sm-header { position: relative; z-index: 90; }

.sm-cmd {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 95;
  height: var(--sm-cmd-h);
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 16px;
  background: rgba(11, 10, 18, 0.94);
  border-bottom: var(--sm-line-w) solid var(--sm-line);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.sm-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  min-width: 0;
}
.sm-brand__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  background: var(--sm-purple);
  border: var(--sm-line-w) solid rgba(224, 167, 60, 0.45);
  color: var(--sm-gold-lift);
  font-family: var(--sm-font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.sm-brand__text {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--sm-body);
  white-space: nowrap;
}
.sm-brand:hover .sm-brand__text { color: var(--sm-bright); }

.sm-ver {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  flex: 0 0 auto;
  padding: 5px 11px;
  border: var(--sm-line-w) solid var(--sm-line);
  background: rgba(58, 30, 92, 0.3);
}
.sm-ver__key {
  font-family: var(--sm-font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--sm-blue);
}
.sm-ver__num {
  font-family: var(--sm-font-mono);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--sm-gold);
}

.sm-cmd__end {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-left: auto;
  flex: 0 0 auto;
}

.sm-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sm-font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--sm-status);
  white-space: nowrap;
}
.sm-status__dot {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--sm-status);
  box-shadow: 0 0 0 3px rgba(53, 224, 214, 0.16);
  animation: sm-pulse 2.6s ease-in-out infinite;
}
@keyframes sm-pulse {
  50% { box-shadow: 0 0 0 8px rgba(53, 224, 214, 0); }
}

/* 移动导航按钮 */
.sm-nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: var(--sm-line-w) solid var(--sm-line);
  background: rgba(35, 18, 53, 0.6);
  color: var(--sm-body);
  font-size: 12px;
  letter-spacing: 0.1em;
  transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}
.sm-nav-toggle:hover { border-color: var(--sm-gold); color: var(--sm-bright); }
.sm-nav-toggle__bars { position: relative; width: 16px; height: 10px; flex: 0 0 auto; }
.sm-nav-toggle__bars::before,
.sm-nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: currentColor;
  transition: transform 0.2s ease, top 0.2s ease, bottom 0.2s ease;
}
.sm-nav-toggle__bars::before { top: 0; }
.sm-nav-toggle__bars::after { bottom: 0; }
.sm-nav-toggle[aria-expanded="true"] { border-color: var(--sm-gold); color: var(--sm-gold-lift); }
.sm-nav-toggle[aria-expanded="true"] .sm-nav-toggle__bars::before { top: 4px; transform: rotate(45deg); }
.sm-nav-toggle[aria-expanded="true"] .sm-nav-toggle__bars::after { bottom: 5px; transform: rotate(-45deg); }

/* ---------- 6. 头部：纵向刻度导航 ---------- */
.sm-rail {
  position: fixed;
  top: var(--sm-cmd-h);
  left: 0;
  bottom: 0;
  z-index: 94;
  width: min(80vw, 300px);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  overflow-y: auto;
  padding: 14px 0 26px;
  background: linear-gradient(180deg, var(--sm-purple-deep), var(--sm-ink) 58%);
  border-right: var(--sm-line-w) solid var(--sm-line);
  transform: translateX(-102%);
  visibility: hidden;
  transition: transform 0.26s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.26s linear;
}
.sm-rail[data-open="true"] { transform: translateX(0); visibility: visible; }

.sm-rail__list { display: flex; flex-direction: column; }
.sm-rail__item { border-bottom: var(--sm-line-w) solid var(--sm-line); }

.sm-rail__link {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 13px 16px 13px 20px;
  color: var(--sm-body);
  transition: color 0.2s ease, background-color 0.2s ease;
}
.sm-rail__num {
  font-family: var(--sm-font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--sm-blue);
  transition: color 0.2s ease;
}
.sm-rail__label {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.05em;
}
.sm-rail__tick {
  display: block;
  width: 12px;
  height: 2px;
  background: var(--sm-line);
  transition: width 0.24s ease, background-color 0.24s ease, height 0.24s ease;
}
.sm-rail__link:hover { color: var(--sm-bright); background: rgba(58, 30, 92, 0.34); }
.sm-rail__link:hover .sm-rail__tick { width: 36px; background: var(--sm-gold); }

.sm-rail__link[aria-current="page"],
.sm-rail__link[data-active="true"] {
  color: var(--sm-bright);
  background: rgba(58, 30, 92, 0.52);
}
.sm-rail__link[aria-current="page"]::before,
.sm-rail__link[data-active="true"]::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--sm-gold);
}
.sm-rail__link[aria-current="page"] .sm-rail__num,
.sm-rail__link[data-active="true"] .sm-rail__num { color: var(--sm-gold-lift); }
.sm-rail__link[aria-current="page"] .sm-rail__tick,
.sm-rail__link[data-active="true"] .sm-rail__tick {
  width: 100%;
  height: 3px;
  background: var(--sm-gold);
}

.sm-rail__foot {
  margin-top: auto;
  padding: 20px 16px 0 20px;
  font-family: var(--sm-font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--sm-blue);
}
.sm-rail__foot-key { color: var(--sm-line); }

/* 抽屉遮罩 */
.sm-scrim {
  position: fixed;
  inset: var(--sm-cmd-h) 0 0 0;
  z-index: 93;
  background: rgba(11, 10, 18, 0.74);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.24s ease, visibility 0.24s linear;
}
.sm-scrim[data-open="true"] { opacity: 1; visibility: visible; }

/* 滚动进度 */
.sm-progress {
  position: fixed;
  top: calc(var(--sm-cmd-h) - 2px);
  left: 0;
  right: 0;
  height: 2px;
  z-index: 96;
  pointer-events: none;
}
.sm-progress__bar {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--sm-purple) 0%, var(--sm-gold) 70%, var(--sm-gold-lift) 100%);
  transition: width 0.1s linear;
}

/* ---------- 7. 通栏容器与分区 ---------- */
.sm-container {
  width: 100%;
  max-width: var(--sm-maxw);
  margin: 0 auto;
  padding: 0 20px;
}

.sm-section { padding: 52px 0; }
.sm-section--tint { background: var(--sm-purple-deep); }
.sm-section--cool {
  background: linear-gradient(180deg, rgba(124, 147, 184, 0.09), rgba(11, 10, 18, 0) 78%);
}
.sm-section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 24px;
  padding-bottom: 14px;
  border-bottom: var(--sm-line-w) solid var(--sm-line);
}

/* ---------- 8. 排版组件 ---------- */
.sm-display {
  font-family: var(--sm-font-display);
  font-weight: 900;
  font-size: clamp(48px, 9vw, 168px);
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--sm-bright);
}
.sm-vernum {
  font-family: var(--sm-font-mono);
  font-weight: 700;
  font-size: clamp(48px, 11vw, 168px);
  line-height: 0.9;
  letter-spacing: -0.03em;
  color: var(--sm-gold);
}
.sm-title {
  font-family: var(--sm-font-display);
  font-weight: 900;
  font-size: clamp(30px, 5vw, 62px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--sm-bright);
}
.sm-title--sm { font-size: clamp(22px, 3vw, 36px); letter-spacing: -0.01em; }
.sm-lede {
  max-width: 62ch;
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.8;
  color: var(--sm-body);
}
.sm-kicker {
  font-family: var(--sm-font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sm-blue);
}
.sm-prose { max-width: 62ch; }
.sm-prose p + p { margin-top: 1.05em; }
.sm-prose ul { margin: 1.05em 0; padding-left: 0; }
.sm-prose li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 0.5em;
}
.sm-prose li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 10px;
  height: 1px;
  background: var(--sm-gold);
}
.sm-prose strong { color: var(--sm-bright); font-weight: 700; }

.sm-num {
  font-family: var(--sm-font-mono);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--sm-gold);
}
.sm-num--muted { color: var(--sm-body); font-weight: 500; }

.sm-label {
  display: inline-block;
  padding: 3px 9px;
  background: var(--sm-paper);
  color: var(--sm-paper-ink);
  font-family: var(--sm-font-mono);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: 0.14em;
}

.sm-tag {
  display: inline-block;
  padding: 3px 9px;
  border: var(--sm-line-w) solid var(--sm-line);
  background: rgba(124, 147, 184, 0.12);
  color: var(--sm-blue);
  font-family: var(--sm-font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
}
.sm-tag--ok { border-color: rgba(53, 224, 214, 0.4); color: var(--sm-status); background: rgba(53, 224, 214, 0.08); }
.sm-tag--alert { border-color: rgba(255, 107, 87, 0.45); color: var(--sm-alert); background: rgba(255, 107, 87, 0.08); }

.sm-link {
  color: var(--sm-gold-lift);
  border-bottom: var(--sm-line-w) solid rgba(224, 167, 60, 0.45);
  transition: color 0.2s ease, border-color 0.2s ease;
}
.sm-link:hover { color: var(--sm-bright); border-bottom-color: var(--sm-gold); }

/* ---------- 9. 栅格 ---------- */
.sm-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 24px;
}
.sm-span-3, .sm-span-4, .sm-span-5, .sm-span-6, .sm-span-7, .sm-span-8, .sm-span-12 { grid-column: 1 / -1; }

/* ---------- 10. 按钮 ---------- */
.sm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border: var(--sm-line-w) solid transparent;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-align: center;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.16s ease;
}
.sm-btn:active { transform: translateY(1px); }

.sm-btn--gold {
  background: var(--sm-gold);
  color: var(--sm-paper-ink);
  border-color: var(--sm-gold);
}
.sm-btn--gold:hover { background: var(--sm-gold-lift); border-color: var(--sm-gold-lift); }

.sm-btn--ghost {
  background: transparent;
  color: var(--sm-gold-lift);
  border-color: rgba(224, 167, 60, 0.5);
}
.sm-btn--ghost:hover {
  background: rgba(224, 167, 60, 0.12);
  border-color: var(--sm-gold);
  color: var(--sm-bright);
}

.sm-btn--sm { padding: 8px 14px; font-size: 12px; letter-spacing: 0.1em; }

/* ---------- 11. 面包屑 ---------- */
.sm-crumb {
  max-width: var(--sm-maxw);
  margin: 0 auto;
  padding: 20px 20px 0;
}
.sm-crumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--sm-font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--sm-blue);
}
.sm-crumb__list a:hover { color: var(--sm-gold-lift); }
.sm-crumb__sep { color: var(--sm-line); }
.sm-crumb__list [aria-current="page"] { color: var(--sm-body); }

/* ---------- 12. 表格 ---------- */
.sm-table-wrap {
  width: 100%;
  overflow-x: auto;
  border: var(--sm-line-w) solid var(--sm-line);
  background: rgba(35, 18, 53, 0.28);
}
.sm-table {
  min-width: 560px;
  font-size: 14px;
  line-height: 1.6;
}
.sm-table caption {
  caption-side: top;
  padding: 12px 14px;
  border-bottom: var(--sm-line-w) solid var(--sm-line);
  text-align: left;
  font-family: var(--sm-font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--sm-blue);
}
.sm-table th,
.sm-table td {
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: var(--sm-line-w) solid var(--sm-line);
}
.sm-table thead th {
  position: sticky;
  top: var(--sm-cmd-h);
  z-index: 2;
  background: var(--sm-purple);
  color: var(--sm-bright);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  white-space: nowrap;
}
.sm-table tbody th { font-weight: 500; color: var(--sm-bright); }
.sm-table tbody tr:hover { background: rgba(58, 30, 92, 0.32); }
.sm-table tbody tr:last-child th,
.sm-table tbody tr:last-child td { border-bottom: 0; }
.sm-table [data-base="true"] { color: var(--sm-gold); font-weight: 700; }

/* ---------- 13. 折叠面板 ---------- */
.sm-fold {
  border: var(--sm-line-w) solid var(--sm-line);
  border-top: 0;
  background: rgba(35, 18, 53, 0.22);
}
.sm-fold:first-of-type { border-top: var(--sm-line-w) solid var(--sm-line); }
.sm-fold__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  color: var(--sm-bright);
  font-size: 14px;
  font-weight: 500;
  list-style: none;
}
.sm-fold__summary::-webkit-details-marker { display: none; }
.sm-fold__summary::after {
  content: "+";
  font-family: var(--sm-font-mono);
  font-size: 16px;
  color: var(--sm-gold);
}
.sm-fold[open] .sm-fold__summary::after { content: "–"; }
.sm-fold[open] .sm-fold__summary { color: var(--sm-gold-lift); }
.sm-fold__body {
  padding: 0 16px 18px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--sm-body);
}

/* ---------- 14. 标签页 ---------- */
.sm-tabs { border-top: var(--sm-line-w) solid var(--sm-line); }
.sm-tabs__list {
  display: flex;
  flex-wrap: wrap;
  border-bottom: var(--sm-line-w) solid var(--sm-line);
}
.sm-tabs__tab {
  padding: 12px 18px;
  border-bottom: 2px solid transparent;
  color: var(--sm-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}
.sm-tabs__tab:hover { color: var(--sm-bright); background: rgba(58, 30, 92, 0.3); }
.sm-tabs__tab[aria-selected="true"] {
  color: var(--sm-gold-lift);
  background: rgba(58, 30, 92, 0.42);
  border-bottom-color: var(--sm-gold);
}
.sm-tabs__panel { padding: 22px 0 0; }
.sm-tabs__panel[hidden] { display: none; }
.sm-tabs__panel[data-enter="true"] { animation: sm-slide-in 0.22s ease both; }
@keyframes sm-slide-in {
  from { opacity: 0; transform: translateX(16px); }
  to { opacity: 1; transform: translateX(0); }
}

/* ---------- 15. 图片容器 ---------- */
.sm-media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: var(--sm-line-w) solid var(--sm-line);
  background:
    linear-gradient(140deg, rgba(58, 30, 92, 0.85), rgba(11, 10, 18, 0.95) 62%),
    repeating-linear-gradient(90deg, rgba(224, 167, 60, 0.08) 0 1px, transparent 1px 24px);
}
.sm-media--wide { aspect-ratio: 21 / 9; }
.sm-media--tall { aspect-ratio: 4 / 5; }
.sm-media--square { aspect-ratio: 1 / 1; }
.sm-media__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.sm-media__tag {
  position: absolute;
  left: 0;
  bottom: 0;
  padding: 4px 10px;
  background: var(--sm-paper);
  color: var(--sm-paper-ink);
  font-family: var(--sm-font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
}
.sm-media__cap {
  margin-top: 9px;
  font-family: var(--sm-font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--sm-blue);
}

/* ---------- 16. 提示块 ---------- */
.sm-callout {
  padding: 14px 18px;
  border-left: 2px solid var(--sm-gold);
  background: rgba(58, 30, 92, 0.24);
  font-size: 14px;
  line-height: 1.8;
}
.sm-callout--ok { border-left-color: var(--sm-status); }
.sm-callout--alert { border-left-color: var(--sm-alert); }
.sm-callout + .sm-callout { margin-top: 12px; }

/* 复制按钮 */
.sm-copy {
  padding: 3px 8px;
  border: var(--sm-line-w) solid var(--sm-line);
  font-family: var(--sm-font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--sm-blue);
  transition: color 0.2s ease, border-color 0.2s ease;
}
.sm-copy:hover { color: var(--sm-gold-lift); border-color: var(--sm-gold); }
.sm-copy[data-copied="true"] { color: var(--sm-status); border-color: var(--sm-status); }

/* ---------- 17. 显现动效 ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
[data-reveal].is-in { opacity: 1; transform: translateY(0); }

/* ---------- 18. 页脚 ---------- */
.sm-footer {
  margin-top: 64px;
  background: var(--sm-purple-deep);
  border-top: var(--sm-line-w) solid var(--sm-line);
}
.sm-footer__inner {
  max-width: var(--sm-maxw);
  margin: 0 auto;
  padding: 44px 20px 28px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
.sm-footer__brand { display: flex; flex-direction: column; gap: 12px; }
.sm-brand--foot { align-items: center; }
.sm-footer__tagline {
  max-width: 46ch;
  font-size: 14px;
  line-height: 1.8;
  color: var(--sm-body);
}
.sm-footer__meta {
  font-family: var(--sm-font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--sm-blue);
}
.sm-footer__col { display: flex; flex-direction: column; gap: 12px; }
.sm-footer__title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--sm-blue);
  text-transform: uppercase;
}
.sm-footer__list { display: flex; flex-direction: column; gap: 9px; }
.sm-footer__link {
  display: inline-block;
  font-size: 14px;
  color: var(--sm-body);
  border-bottom: var(--sm-line-w) solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.sm-footer__link:hover { color: var(--sm-gold-lift); border-bottom-color: var(--sm-gold); }

.sm-footer__bar {
  max-width: var(--sm-maxw);
  margin: 0 auto;
  padding: 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: var(--sm-line-w) solid var(--sm-line);
}
.sm-footer__contact {
  font-size: 13px;
  line-height: 1.8;
  color: var(--sm-body);
  max-width: 68ch;
}
.sm-footer__legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--sm-font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--sm-blue);
}

/* ---------- 19. 断点：平板 ---------- */
@media (min-width: 768px) {
  .sm-container { padding: 0 28px; }
  .sm-crumb { padding: 24px 28px 0; }
  .sm-section { padding: 68px 0; }
  .sm-cmd { padding: 0 24px; gap: 20px; }

  .sm-grid { gap: 28px; }
  .sm-span-3 { grid-column: span 6; }
  .sm-span-4 { grid-column: span 6; }
  .sm-span-5 { grid-column: span 12; }
  .sm-span-6 { grid-column: span 6; }
  .sm-span-7 { grid-column: span 12; }
  .sm-span-8 { grid-column: span 12; }

  .sm-footer__inner {
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 26px;
    padding: 56px 28px 34px;
  }
  .sm-footer__bar { padding: 20px 28px; }
}

@media (max-width: 767px) {
  .sm-brand__text { display: none; }
  .sm-cmd__end .sm-btn { display: none; }
}

@media (max-width: 559px) {
  .sm-status__text { display: none; }
  .sm-ver__key { display: none; }
}

/* ---------- 20. 断点：桌面（纵向刻度常驻） ---------- */
@media (min-width: 1024px) {
  body { padding-left: var(--sm-rail-w); }

  .sm-cmd { padding-left: calc(var(--sm-rail-w) + 28px); padding-right: 28px; }

  .sm-rail {
    width: var(--sm-rail-w);
    padding-top: 22px;
    transform: none;
    visibility: visible;
    background: linear-gradient(180deg, rgba(58, 30, 92, 0.55), rgba(11, 10, 18, 0) 72%);
  }
  .sm-rail__link { padding: 13px 14px 13px 18px; }
  .sm-rail__label { font-size: 12px; letter-spacing: 0.02em; }
  .sm-rail__foot { display: none; }

  .sm-nav-toggle { display: none; }
  .sm-scrim { display: none; }

  .sm-section { padding: 84px 0; }
  .sm-crumb { padding: 28px 28px 0; }
  .sm-footer__inner { padding: 64px 28px 36px; }
  .sm-footer__bar { padding: 24px 28px; }

  .sm-grid { gap: 32px; }
  .sm-span-3 { grid-column: span 3; }
  .sm-span-4 { grid-column: span 4; }
  .sm-span-5 { grid-column: span 5; }
  .sm-span-6 { grid-column: span 6; }
  .sm-span-7 { grid-column: span 7; }
  .sm-span-8 { grid-column: span 8; }
  .sm-span-12 { grid-column: 1 / -1; }
}

/* ---------- 21. 降低动态效果 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .sm-rail { transition: none; }
  .sm-progress__bar { transition: none; }
  .sm-tabs__panel[data-enter="true"] { animation: none; }
}
