/* ============================================================
   聚合入口 · 共享样式 /assets/site.css
   ============================================================ */

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

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

body, h1, h2, h3, h4, h5, p, ul, ol, li, figure, blockquote, dl, dd, table, th, td { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img, svg, video { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
table { border-collapse: collapse; }

:root {
  --c-base: #0A1030;
  --c-panel: #121A44;
  --c-panel-hi: #1C2660;
  --c-cyan: #2BE0E8;
  --c-cyan-deep: #0E8E9C;
  --c-orange: #FF8A3D;
  --c-silver: #C7D0E4;
  --c-white: #F4F7FF;
  --c-ink: #05070F;
  --c-violet: #7B6CFF;
  --c-red: #FF5A6A;

  --line: rgba(199, 208, 228, 0.18);
  --line-strong: rgba(43, 224, 232, 0.42);
  --line-warm: rgba(255, 138, 61, 0.45);
  --shadow-hard: 6px 6px 0 rgba(5, 7, 15, 0.85);
  --shadow-hard-lg: 8px 10px 0 rgba(5, 7, 15, 0.9);

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

  --shell: 1240px;
  --pad-inline: clamp(18px, 4vw, 40px);
  --section-gap: clamp(40px, 6vw, 80px);
}

/* ---------- 基础排版 ---------- */
body {
  min-height: 100vh;
  background-color: var(--c-base);
  background-image:
    linear-gradient(rgba(199, 208, 228, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(199, 208, 228, 0.045) 1px, transparent 1px);
  background-size: 96px 96px, 96px 96px;
  color: var(--c-white);
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.85;
  overflow-x: hidden;
}

h1, h2, h3, h4 { color: var(--c-white); font-weight: 900; line-height: 1.25; }
h1 { font-size: clamp(40px, 6vw, 64px); letter-spacing: -0.02em; }
h2 { font-size: clamp(26px, 3.4vw, 36px); letter-spacing: -0.01em; }
h3 { font-size: clamp(19px, 2vw, 22px); font-weight: 800; line-height: 1.45; }
h4 { font-size: 17px; font-weight: 800; }

h2 .h-num {
  font-family: var(--font-mono);
  font-size: 0.6em;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--c-cyan);
  margin-right: 0.55em;
  vertical-align: 0.12em;
}

strong { color: var(--c-white); font-weight: 800; }
.mono { font-family: var(--font-mono); font-size: 0.92em; letter-spacing: 0.04em; }
.is-num { font-family: var(--font-mono); font-weight: 700; letter-spacing: 0.02em; }
.is-key { font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.06em; color: var(--c-cyan); }

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

.skip-link {
  position: absolute;
  left: 14px;
  top: -80px;
  z-index: 200;
  padding: 10px 18px;
  background: var(--c-cyan);
  color: var(--c-ink);
  font-weight: 800;
  border: 2px solid var(--c-ink);
  transition: top 0.18s ease;
}
.skip-link:focus { top: 12px; }

.link {
  color: var(--c-cyan);
  border-bottom: 1px solid var(--c-cyan-deep);
  transition: color 0.18s ease, border-color 0.18s ease;
}
.link:hover { color: var(--c-white); border-bottom-color: var(--c-cyan); }

/* ---------- 布局 ---------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--pad-inline);
}

.section { position: relative; padding-block: var(--section-gap); }

.section--panel {
  background: var(--c-panel);
  border-top: 2px solid var(--line-strong);
  border-bottom: 2px solid var(--line-strong);
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-cyan);
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--c-cyan); flex: none; }

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

.coord-rail { display: none; }
@media (min-width: 1280px) {
  .coord-rail {
    display: block;
    position: absolute;
    left: clamp(4px, 1.4vw, 16px);
    top: 0;
    bottom: 0;
    width: 18px;
    background-image: repeating-linear-gradient(180deg, rgba(199, 208, 228, 0.35) 0 1px, transparent 1px 30px);
    border-right: 1px solid var(--line);
    pointer-events: none;
  }
}

.cut { clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%); }

/* ---------- 页头 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(10, 16, 48, 0.94);
  border-bottom: 2px solid var(--line-strong);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.scroll-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: var(--c-orange);
  transform: scaleX(0);
  transform-origin: 0 50%;
  z-index: 3;
}

.site-header__inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas: "brand info nav";
  align-items: center;
  gap: clamp(12px, 2vw, 30px);
  padding-block: 14px;
  transition: padding-block 0.24s ease;
}
.site-header[data-condensed] .site-header__inner { padding-block: 7px; }

.brand {
  grid-area: brand;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand__mark {
  flex: none;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  background: var(--c-cyan);
  color: var(--c-ink);
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%);
  transition: background 0.2s ease, color 0.2s ease;
}
.brand:hover .brand__mark { background: var(--c-orange); }

.brand__text { display: flex; flex-direction: column; min-width: 0; }
.brand__name {
  font-size: 19px;
  font-weight: 900;
  letter-spacing: 0.02em;
  color: var(--c-white);
  line-height: 1.2;
}
.brand__sub {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.07em;
  color: var(--c-silver);
  opacity: 0.85;
  line-height: 1.5;
  white-space: nowrap;
}
.brand--footer { align-items: center; }

.ticker {
  grid-area: info;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.05em;
  color: var(--c-silver);
  white-space: nowrap;
}
.ticker__key {
  flex: none;
  padding-right: 10px;
  margin-right: 2px;
  border-right: 1px solid var(--line-strong);
  color: var(--c-orange);
  font-weight: 700;
  letter-spacing: 0.16em;
}
.ticker__item {
  flex: none;
  padding: 2px 9px;
  border: 1px solid var(--line);
  border-radius: 2px;
  line-height: 1.6;
}
.ticker__item--accent { border-color: var(--line-strong); color: var(--c-cyan); }

.nav { grid-area: nav; }
.nav__list { display: flex; align-items: center; gap: 2px; }
.nav__link {
  display: block;
  padding: 8px 12px;
  font-size: 15px;
  font-weight: 600;
  color: var(--c-silver);
  border: 2px solid transparent;
  border-radius: 2px;
  white-space: nowrap;
  transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}
.nav__link:hover {
  color: var(--c-white);
  background: var(--c-panel-hi);
  border-color: rgba(123, 108, 255, 0.55);
}
.nav__link[aria-current="page"] {
  color: var(--c-ink);
  background: var(--c-cyan);
  border-color: var(--c-ink);
  box-shadow: 3px 3px 0 rgba(5, 7, 15, 0.8);
}
.nav__meta { display: none; }

.nav-toggle {
  grid-area: toggle;
  display: none;
  align-items: center;
  gap: 9px;
  padding: 9px 13px;
  background: var(--c-panel);
  color: var(--c-white);
  border: 2px solid var(--line-strong);
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  cursor: pointer;
}
.nav-toggle:hover { background: var(--c-panel-hi); }
.nav-toggle__bars { position: relative; display: block; width: 16px; height: 10px; }
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: currentColor;
}
.nav-toggle__bars::before { top: 0; }
.nav-toggle__bars::after { bottom: 0; }
.nav-toggle__label { line-height: 1; }

/* ---------- 页脚 ---------- */
.site-footer {
  margin-top: clamp(48px, 8vw, 96px);
  background: linear-gradient(180deg, var(--c-base) 0%, #070C24 100%);
  border-top: 2px solid var(--line-strong);
  padding-block: clamp(34px, 5vw, 60px) 26px;
}

.footer__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px 26px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.footer__motto {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.09em;
  color: var(--c-orange);
}

.footer__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }

.footer__col { padding: 26px 26px 26px 0; min-width: 0; }
.footer__col + .footer__col { padding-left: 26px; border-left: 1px solid var(--line); }

.footer__title {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--c-white);
}
.footer__num {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--c-cyan);
}

.footer__list { display: flex; flex-direction: column; gap: 1px; margin-top: 14px; }
.footer__link,
.footer__text {
  display: inline-block;
  padding: 3px 0;
  font-size: 14.5px;
  color: var(--c-silver);
  border-bottom: 1px solid transparent;
  transition: color 0.18s ease, border-color 0.18s ease;
}
.footer__link:hover { color: var(--c-white); border-bottom-color: var(--c-cyan); }
.footer__text { font-family: var(--font-mono); font-size: 13px; opacity: 0.9; }

.footer__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 26px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 13.5px;
  color: var(--c-silver);
}
.footer__contact { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.footer__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--c-cyan-deep);
  text-transform: uppercase;
}
.footer__legal {
  flex: 1 1 100%;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--c-silver);
  opacity: 0.85;
}

/* ---------- 按钮 / 标签 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 12px 20px;
  background: var(--c-cyan);
  color: var(--c-ink);
  border: 2px solid var(--c-ink);
  border-radius: 2px;
  font-size: 15.5px;
  font-weight: 800;
  letter-spacing: 0.01em;
  cursor: pointer;
  box-shadow: var(--shadow-hard);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
}
.btn--primary { background: var(--c-cyan); color: var(--c-ink); }
.btn--warm { background: var(--c-orange); color: var(--c-ink); }
.btn--ghost { background: transparent; color: var(--c-white); border-color: var(--c-silver); }
.btn--ghost:hover { background: var(--c-panel-hi); }
.btn--block { display: flex; width: 100%; justify-content: center; }
.btn:hover { transform: translate(-2px, -2px); box-shadow: var(--shadow-hard-lg); }
.btn:active { transform: translate(1px, 1px); box-shadow: 4px 4px 0 rgba(5, 7, 15, 0.9); }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  background: rgba(43, 224, 232, 0.08);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--c-cyan);
}
.tag--warm { color: var(--c-orange); border-color: var(--line-warm); background: rgba(255, 138, 61, 0.1); }
.tag--violet { color: var(--c-violet); border-color: rgba(123, 108, 255, 0.5); background: rgba(123, 108, 255, 0.1); }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  background: transparent;
  color: var(--c-silver);
  border: 2px solid var(--line);
  border-radius: 2px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}
.chip:hover { color: var(--c-white); border-color: var(--line-strong); background: var(--c-panel); }
.chip[aria-pressed="true"] {
  background: var(--c-cyan);
  color: var(--c-ink);
  border-color: var(--c-ink);
  box-shadow: 3px 3px 0 rgba(5, 7, 15, 0.8);
}

.copy-btn {
  padding: 2px 9px;
  background: transparent;
  color: var(--c-cyan);
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
}
.copy-btn:hover { background: rgba(43, 224, 232, 0.14); }
.copy-btn[data-copied] { background: var(--c-orange); border-color: var(--c-orange); color: var(--c-ink); }

/* ---------- 卡片 / 面板 ---------- */
.card {
  position: relative;
  background: var(--c-panel);
  border: 2px solid var(--line);
  border-radius: 2px;
  box-shadow: var(--shadow-hard);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hard-lg); border-color: var(--line-strong); }

.card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 20px;
  border-bottom: 1px solid var(--line);
}
.card__body { padding: 20px; }
.card__index {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--c-cyan);
}
.card__title { font-size: 19px; font-weight: 800; line-height: 1.5; color: var(--c-white); }
.card__meta {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.05em;
  color: var(--c-silver);
}

.panel {
  position: relative;
  background: var(--c-panel);
  border: 2px solid var(--line);
  border-radius: 2px;
  padding: 22px;
}

/* ---------- 数字指标 ---------- */
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat__num {
  display: block;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--c-white);
}
.stat__num em {
  font-style: normal;
  font-size: 0.36em;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--c-cyan);
  margin-left: 6px;
}
.stat__label { font-size: 13.5px; color: var(--c-silver); }

/* ---------- 面包屑 ---------- */
.crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--c-silver);
}
.crumb a { color: var(--c-silver); border-bottom: 1px solid var(--line); }
.crumb a:hover { color: var(--c-cyan); border-bottom-color: var(--c-cyan); }
.crumb__sep { color: var(--c-cyan-deep); }
.crumb [aria-current="page"] { color: var(--c-white); }

/* ---------- 正文 ---------- */
.prose { max-width: 68ch; font-size: 17px; line-height: 1.85; }
.prose p { margin-bottom: 1.2em; }
.prose h3 { margin: 1.8em 0 0.7em; }
.prose ul { margin-bottom: 1.2em; }
.prose ul li { position: relative; padding-left: 1.5em; margin-bottom: 0.5em; }
.prose ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.85em;
  width: 12px;
  height: 2px;
  background: var(--c-cyan);
}
.prose a { color: var(--c-cyan); border-bottom: 1px solid var(--c-cyan-deep); }
.prose a:hover { color: var(--c-white); border-bottom-color: var(--c-cyan); }

/* ---------- 编号索引列表 ---------- */
.index-list { border-top: 1px solid var(--line); }
.index-list__item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 6px 16px;
  align-items: baseline;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}
.index-list__num {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--c-cyan);
}
.index-list__title { font-size: 16px; font-weight: 700; color: var(--c-white); }

/* ---------- 步骤条 ---------- */
.steps { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.step {
  position: relative;
  padding: 20px 18px;
  background: var(--c-panel);
  border: 2px solid var(--line);
  border-top: 4px solid var(--c-orange);
  border-radius: 2px;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.step[data-active] { background: var(--c-panel-hi); border-color: var(--line-warm); }
.step__num {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--c-orange);
}
.step__title { display: block; margin-top: 8px; font-size: 17px; font-weight: 800; color: var(--c-white); }

/* ---------- 标签页 ---------- */
.tablist {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.tab {
  padding: 9px 15px;
  background: transparent;
  color: var(--c-silver);
  border: 2px solid var(--line);
  border-radius: 2px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}
.tab:hover { color: var(--c-white); border-color: var(--line-strong); }
.tab[aria-selected="true"] {
  background: var(--c-panel-hi);
  border-color: var(--c-cyan);
  color: var(--c-white);
}
.tabpanel { margin-top: 22px; }
.tabpanel[hidden] { display: none; }

/* ---------- 折叠问答 ---------- */
.qa { border-top: 1px solid var(--line); }
.qa__item { border-bottom: 1px solid var(--line); }
.qa__trigger {
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 17px 0;
  background: none;
  border: 0;
  text-align: left;
  font-size: 17px;
  font-weight: 700;
  color: var(--c-white);
  cursor: pointer;
}
.qa__trigger:hover { color: var(--c-cyan); }
.qa__mark {
  position: relative;
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 5px;
  border: 1px solid var(--c-cyan);
}
.qa__mark::before,
.qa__mark::after { content: ""; position: absolute; background: var(--c-cyan); }
.qa__mark::before { left: 4px; right: 4px; top: 9px; height: 2px; }
.qa__mark::after { top: 4px; bottom: 4px; left: 9px; width: 2px; transition: transform 0.2s ease; }
.qa__item[data-open] .qa__mark::after { transform: scaleY(0); }
.qa__panel { padding: 0 0 18px; font-size: 16px; color: var(--c-silver); }
.qa__panel[hidden] { display: none; }

/* ---------- 表格 ---------- */
.table-wrap {
  overflow-x: auto;
  border: 2px solid var(--line);
  border-radius: 2px;
  background: var(--c-panel);
}
table.data-table { width: 100%; min-width: 620px; font-size: 15px; }
.data-table th,
.data-table td { padding: 12px 15px; text-align: left; border-bottom: 1px solid var(--line); }
.data-table thead th {
  background: var(--c-panel-hi);
  color: var(--c-white);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.data-table tbody tr:nth-child(even) td { background: rgba(28, 38, 96, 0.45); }
.data-table tbody tr:last-child td { border-bottom: 0; }

/* ---------- 图片容器 ---------- */
.figure {
  position: relative;
  display: block;
  margin: 0;
  border: 2px solid var(--line);
  border-radius: 2px;
  background: var(--c-panel);
  overflow: hidden;
}
.figure__media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background-image:
    linear-gradient(135deg, rgba(43, 224, 232, 0.18), rgba(123, 108, 255, 0.12) 46%, rgba(255, 138, 61, 0.16)),
    repeating-linear-gradient(90deg, rgba(199, 208, 228, 0.1) 0 1px, transparent 1px 22px),
    repeating-linear-gradient(0deg, rgba(199, 208, 228, 0.08) 0 1px, transparent 1px 22px);
  background-color: var(--c-panel);
  overflow: hidden;
}
.figure__media img,
.figure__media picture,
.figure__media svg { width: 100%; height: 100%; object-fit: cover; }
.figure--wide .figure__media { aspect-ratio: 21 / 9; }
.figure--square .figure__media { aspect-ratio: 1 / 1; }
.figure--tall .figure__media { aspect-ratio: 4 / 5; }
.figure__cap {
  padding: 10px 15px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.05em;
  color: var(--c-silver);
}

/* ---------- 提示条 ---------- */
.notice {
  display: flex;
  gap: 14px;
  padding: 14px 16px;
  border: 2px solid var(--line-warm);
  border-left-width: 6px;
  border-radius: 2px;
  background: rgba(255, 138, 61, 0.08);
  font-size: 15px;
}
.notice--warn { border-color: rgba(255, 90, 106, 0.55); background: rgba(255, 90, 106, 0.08); }
.notice__tag {
  flex: none;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--c-orange);
}
.notice--warn .notice__tag { color: var(--c-red); }

/* ---------- 返回顶部 ---------- */
.to-top {
  position: fixed;
  right: clamp(14px, 3vw, 32px);
  bottom: clamp(14px, 3vw, 32px);
  z-index: 70;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 15px;
  background: var(--c-panel);
  color: var(--c-white);
  border: 2px solid var(--c-cyan);
  border-radius: 2px;
  box-shadow: 4px 4px 0 rgba(5, 7, 15, 0.85);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: opacity 0.24s ease, transform 0.24s ease, visibility 0.24s ease, background 0.18s ease;
}
.to-top[data-visible] { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--c-panel-hi); }

/* ---------- 显现动画 ---------- */
.reveal { opacity: 1; transform: none; }
html[data-js] .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
html[data-js] .reveal[data-shown] { opacity: 1; transform: none; }

/* ---------- 响应式 ---------- */
@media (max-width: 1180px) {
  .ticker__item:nth-child(n + 5) { display: none; }
}

@media (max-width: 1023px) {
  .site-header__inner {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "brand toggle";
    row-gap: 0;
  }
  .ticker { display: none; }
  .nav-toggle { display: inline-flex; }

  .nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 90;
    max-height: 84vh;
    overflow-y: auto;
    padding: 18px var(--pad-inline) calc(26px + env(safe-area-inset-bottom));
    background: var(--c-panel);
    border-top: 2px solid var(--c-cyan);
    box-shadow: 0 -8px 0 rgba(5, 7, 15, 0.6);
    transform: translateY(112%);
    visibility: hidden;
    transition: transform 0.28s cubic-bezier(0.2, 0.9, 0.25, 1), visibility 0.28s ease;
  }
  .nav[data-open] { transform: none; visibility: visible; }

  .nav__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 12px;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
    font-family: var(--font-mono);
    font-size: 11.5px;
    letter-spacing: 0.08em;
    color: var(--c-cyan);
  }

  .nav__list { flex-direction: column; align-items: stretch; gap: 5px; }
  .nav__link {
    padding: 14px 14px;
    font-size: 17px;
    border-color: var(--line);
    background: var(--c-base);
  }
  .nav__link[aria-current="page"] { background: var(--c-cyan); border-color: var(--c-ink); }

  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__col { padding: 22px 0; }
  .footer__col + .footer__col { padding-left: 0; border-left: 0; }
  .footer__col:nth-child(even) { padding-left: 22px; border-left: 1px solid var(--line); }
  .footer__col:nth-child(n + 3) { border-top: 1px solid var(--line); }
}

@media (max-width: 900px) {
  .grid--3, .grid--4, .grid--6 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section__head { align-items: flex-start; }
}

@media (max-width: 560px) {
  body { font-size: 16px; line-height: 1.8; }
  .grid--2, .grid--3, .grid--4, .grid--6 { grid-template-columns: minmax(0, 1fr); }
  .footer__grid { grid-template-columns: minmax(0, 1fr); }
  .footer__col:nth-child(even) { padding-left: 0; border-left: 0; }
  .footer__col + .footer__col { border-top: 1px solid var(--line); }
  .footer__foot { flex-direction: column; align-items: flex-start; }
  .brand__mark { width: 34px; height: 34px; font-size: 13px; }
  .brand__name { font-size: 17px; }
  .to-top { bottom: calc(16px + env(safe-area-inset-bottom)); }
}

/* ---------- 动效降级 ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  html { scroll-behavior: auto !important; }
  html[data-js] .reveal { opacity: 1; transform: none; }
  .card:hover, .btn:hover { transform: none; }
  .nav { transition: none; }
}
