/* ============================================================
   永信217 · 共享站点样式 /assets/site.css
   深靛蓝近单色体系 + 铜金入口 + 经幡状态色
   ============================================================ */

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

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

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

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

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

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

button {
  background: none;
  border: 0;
  cursor: pointer;
}

a { color: inherit; text-decoration: none; }

table { border-collapse: collapse; width: 100%; }

/* ---------- 2. 变量 ---------- */
:root {
  /* 深靛蓝 */
  --ink-900: #070D1F;
  --ink-800: #0D1730;
  --ink-700: #162344;
  /* 铜金 */
  --copper-500: #C58A3A;
  --copper-300: #E4B96F;
  /* 文字 */
  --ivory-100: #F4ECDD;
  --mist-300: #8FB4D9;
  --text: #C9D3E6;
  --text-dim: #8FA2C0;
  /* 经幡五色 */
  --fl-blue: #2F6FB0;
  --fl-white: #F8F6F0;
  --fl-red: #C24B45;
  --fl-green: #3E7C5A;
  --fl-yellow: #D8A93A;
  /* 线与面 */
  --line: rgba(143, 180, 217, 0.16);
  --line-strong: rgba(143, 180, 217, 0.28);
  --glass: rgba(22, 35, 68, 0.55);
  /* 字体 */
  --font-title: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", "SimSun", serif;
  --font-body: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-mono: "IBM Plex Mono", "Roboto Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  /* 尺寸 */
  --shell: 1200px;
  --gutter: 1.25rem;
  --radius: 14px;
  --radius-sm: 9px;
}

/* ---------- 3. 基础与中文排版 ---------- */
body {
  min-height: 100vh;
  background-color: var(--ink-900);
  background-image:
    radial-gradient(1100px 560px at 82% -12%, rgba(47, 111, 176, 0.20), transparent 70%),
    radial-gradient(880px 520px at 4% 4%, rgba(197, 138, 58, 0.09), transparent 68%);
  background-repeat: no-repeat;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--font-title);
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--ivory-100);
}

h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.1rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.35rem); }

p { line-height: 1.75; }

strong { color: var(--ivory-100); font-weight: 700; }

code, kbd, samp, time, .mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

::selection {
  background: rgba(197, 138, 58, 0.32);
  color: var(--ivory-100);
}

#main-content { scroll-margin-top: 128px; }

/* ---------- 4. 焦点可见性 ---------- */
:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 2px solid var(--copper-300);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- 5. 布局工具 ---------- */
.container {
  width: min(var(--shell), calc(100% - (var(--gutter) * 2)));
  margin-inline: auto;
}

.section { padding: clamp(2.4rem, 5vw, 4rem) 0; }
.section--tight { padding: clamp(1.5rem, 3vw, 2.25rem) 0; }

.prose {
  max-width: 68ch;
  color: var(--text);
  font-size: 1.02rem;
  line-height: 1.8;
}

.prose > * + * { margin-top: 1rem; }

.prose h2,
.prose h3 {
  margin-top: 2.25rem;
  color: var(--ivory-100);
}

.prose h2 { font-size: clamp(1.4rem, 2.6vw, 1.85rem); }
.prose h3 { font-size: 1.16rem; }

.prose ul,
.prose ol {
  padding-left: 1.25rem;
  list-style: disc;
}

.prose ol { list-style: decimal; }
.prose li + li { margin-top: 0.4rem; }

.prose a {
  color: var(--copper-300);
  border-bottom: 1px solid rgba(197, 138, 58, 0.42);
}

.prose a:hover { border-bottom-color: var(--copper-300); }

.prose blockquote {
  padding: 0.75rem 0 0.75rem 1.1rem;
  border-left: 2px solid var(--copper-500);
  color: var(--mist-300);
}

.grid {
  display: grid;
  gap: 1.25rem;
}

.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)); }

/* ---------- 6. 表面层与按钮 ---------- */
.glass {
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  backdrop-filter: blur(12px) saturate(140%);
}

.card {
  background: var(--ink-800);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.1rem, 2.4vw, 1.6rem);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.72rem 1.25rem;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.3;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.btn--primary {
  background: var(--copper-500);
  color: #10182B;
}

.btn--primary:hover { background: var(--copper-300); }

.btn--ghost {
  background: rgba(143, 180, 217, 0.06);
  border-color: rgba(143, 180, 217, 0.34);
  color: var(--ivory-100);
}

.btn--ghost:hover {
  border-color: var(--copper-500);
  color: var(--copper-300);
}

.btn:active { transform: translateY(1px); }

/* ---------- 7. 状态标签（经幡五色只在此出现） ---------- */
.tag {
  display: inline-block;
  margin-left: auto;
  padding: 0.06rem 0.42rem;
  border: 1px solid transparent;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  line-height: 1.7;
  white-space: nowrap;
  transition: background-color 0.24s ease, color 0.24s ease, border-color 0.24s ease;
}

.tag--blue {
  background: rgba(47, 111, 176, 0.22);
  border-color: rgba(47, 111, 176, 0.50);
  color: #9CC6F0;
}

.tag--white {
  background: rgba(248, 246, 240, 0.12);
  border-color: rgba(248, 246, 240, 0.34);
  color: var(--fl-white);
}

.tag--red {
  background: rgba(194, 75, 69, 0.18);
  border-color: rgba(194, 75, 69, 0.45);
  color: #F0A8A3;
}

.tag--green {
  background: rgba(62, 124, 90, 0.20);
  border-color: rgba(62, 124, 90, 0.50);
  color: #93D2AE;
}

.tag--yellow {
  background: rgba(216, 169, 58, 0.18);
  border-color: rgba(216, 169, 58, 0.45);
  color: #F0CE7C;
}

.tag--copper {
  background: rgba(197, 138, 58, 0.20);
  border-color: rgba(197, 138, 58, 0.50);
  color: var(--copper-300);
}

/* ---------- 8. 面包屑 ---------- */
.breadcrumb {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--text-dim);
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}

.breadcrumb li {
  display: inline-flex;
  align-items: center;
}

.breadcrumb li + li::before {
  content: "/";
  margin-right: 0.35rem;
  color: rgba(143, 180, 217, 0.45);
}

.breadcrumb a { color: var(--mist-300); }
.breadcrumb a:hover { color: var(--copper-300); }
.breadcrumb [aria-current="page"] { color: var(--ivory-100); }

/* ---------- 9. 配图容器（供页面阶段使用） ---------- */
.media {
  position: relative;
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(150deg, var(--ink-700), var(--ink-900));
}

.media--wide { aspect-ratio: 16 / 9; }
.media--square { aspect-ratio: 1 / 1; }
.media--portrait { aspect-ratio: 3 / 4; }

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

.media__ph {
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  color: rgba(143, 180, 217, 0.55);
  background-image:
    repeating-linear-gradient(0deg, rgba(143, 180, 217, 0.09) 0 1px, transparent 1px 44px),
    repeating-linear-gradient(90deg, rgba(143, 180, 217, 0.09) 0 1px, transparent 1px 44px);
}

.media__cap {
  margin-top: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--text-dim);
}

/* ============================================================
   10. 共享头部
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(7, 13, 31, 0.9);
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -200%;
  z-index: 200;
  padding: 0.55rem 1rem;
  border-radius: 0 0 10px 10px;
  background: var(--copper-500);
  color: #10182B;
  font-size: 0.86rem;
  font-weight: 700;
  transition: top 0.16s ease;
}

.skip-link:focus,
.skip-link:focus-visible {
  top: 0;
  outline-offset: 0;
}

/* --- 第一层：状态条 --- */
.status-ribbon {
  position: relative;
  background: rgba(13, 23, 48, 0.74);
  border-bottom: 1px solid var(--line);
}

.status-ribbon__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(var(--shell), calc(100% - (var(--gutter) * 2)));
  min-height: 40px;
  margin-inline: auto;
}

.status-ribbon__meta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 0;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--text-dim);
}

.status-ribbon__brand {
  color: var(--copper-300);
  letter-spacing: 0.16em;
  white-space: nowrap;
}

.status-ribbon__rule {
  width: 1px;
  height: 12px;
  background: var(--line-strong);
}

.status-ribbon__version {
  color: var(--ivory-100);
  white-space: nowrap;
}

.status-ribbon__area {
  display: none;
  color: var(--text-dim);
  white-space: nowrap;
}

/* --- 索引开关 --- */
.index-toggle {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.45rem;
  padding: 0.28rem 0.7rem;
  border: 1px solid rgba(197, 138, 58, 0.35);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.71rem;
  letter-spacing: 0.06em;
  color: var(--copper-300);
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.index-toggle:hover {
  background: rgba(197, 138, 58, 0.14);
  border-color: var(--copper-500);
}

.index-toggle__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--copper-300);
  transition: background-color 0.24s ease;
}

.index-toggle[aria-expanded="true"] .index-toggle__dot { background: var(--fl-green); }
.index-toggle[aria-expanded="true"] { border-color: var(--copper-500); }

.index-toggle__caret {
  width: 0;
  height: 0;
  margin-left: 0.1rem;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  transition: transform 0.22s ease;
}

.index-toggle[aria-expanded="true"] .index-toggle__caret { transform: rotate(180deg); }

/* --- 12 栏目索引面板 --- */
.column-index {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  z-index: 90;
  background: rgba(13, 23, 48, 0.98);
  border-bottom: 1px solid var(--line-strong);
  box-shadow: 0 28px 64px -24px rgba(0, 0, 0, 0.85);
  animation: panel-in 0.22s ease both;
}

.column-index[hidden] { display: none; }

.column-index__inner {
  width: min(var(--shell), calc(100% - (var(--gutter) * 2)));
  margin-inline: auto;
  padding: 1.15rem 0 1.4rem;
}

.column-index__head {
  margin-bottom: 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  color: var(--mist-300);
  text-transform: uppercase;
}

.column-index__list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.3rem;
}

.column-index__item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.5rem 0.6rem;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-size: 0.86rem;
  color: var(--text);
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.column-index__item:hover {
  background: rgba(143, 180, 217, 0.08);
  border-color: var(--line);
  color: var(--ivory-100);
}

.column-index__no {
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  color: var(--mist-300);
}

.column-index__name { min-width: 0; }

/* --- 第二层：导航台 --- */
.nav-deck { position: relative; }

.nav-deck__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  width: min(var(--shell), calc(100% - (var(--gutter) * 2)));
  min-height: 64px;
  margin-inline: auto;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.35rem 0;
  flex: 0 0 auto;
}

.brand-lockup__mark {
  position: relative;
  flex: 0 0 auto;
  width: 30px;
  height: 36px;
  border: 2px solid var(--copper-500);
  border-bottom: 0;
  border-radius: 15px 15px 0 0;
  transition: border-color 0.2s ease;
}

.brand-lockup__mark::before {
  content: "";
  position: absolute;
  inset: 6px 6px 0;
  border: 1px solid rgba(228, 185, 111, 0.5);
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
}

.brand-lockup__mark::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 7px;
  height: 13px;
  transform: translateX(-50%);
  background: var(--copper-300);
  border-radius: 3px 3px 0 0;
}

.brand-lockup:hover .brand-lockup__mark { border-color: var(--copper-300); }

.brand-lockup__text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-lockup__name {
  font-family: var(--font-title);
  font-size: 1.14rem;
  font-weight: 900;
  letter-spacing: 0.03em;
  color: var(--ivory-100);
}

.brand-lockup__tag {
  margin-top: 0.15rem;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.14em;
  color: var(--mist-300);
}

/* --- 移动导航按钮 --- */
.nav-toggle {
  display: none;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.5rem;
  padding: 0.46rem 0.8rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  font-size: 0.84rem;
  color: var(--text);
  transition: border-color 0.18s ease, color 0.18s ease;
}

.nav-toggle:hover {
  border-color: var(--copper-500);
  color: var(--copper-300);
}

.nav-toggle__bars {
  display: flex;
  flex-direction: column;
  gap: 3px;
  width: 16px;
}

.nav-toggle__bars span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

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

/* --- 主导航 --- */
.site-nav__list {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

.site-nav__link {
  position: relative;
  display: inline-block;
  padding: 0.55rem 0.85rem;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
  transition: color 0.18s ease, background-color 0.18s ease;
}

.site-nav__link::after {
  content: "";
  position: absolute;
  left: 0.85rem;
  right: 0.85rem;
  bottom: 0.26rem;
  height: 2px;
  background: var(--copper-500);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.22s ease;
}

.site-nav__link:hover {
  color: var(--ivory-100);
  background: rgba(143, 180, 217, 0.08);
}

.site-nav__link:hover::after { transform: scaleX(1); }

.site-nav__link[aria-current="page"] {
  color: var(--copper-300);
}

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

/* ============================================================
   11. 共享页脚
   ============================================================ */
.site-footer {
  margin-top: clamp(2.5rem, 6vw, 4.5rem);
  border-top: 1px solid rgba(197, 138, 58, 0.34);
  background: linear-gradient(180deg, rgba(13, 23, 48, 0.55), var(--ink-800));
  color: var(--text);
}

.site-footer__inner {
  width: min(var(--shell), calc(100% - (var(--gutter) * 2)));
  margin-inline: auto;
  padding: clamp(2rem, 4vw, 3rem) 0 1.4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.5fr;
  gap: clamp(1.4rem, 3vw, 2.4rem);
}

.footer-col { min-width: 0; }

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.85rem;
}

.footer-brand__mark {
  position: relative;
  flex: 0 0 auto;
  width: 22px;
  height: 26px;
  border: 2px solid var(--copper-500);
  border-bottom: 0;
  border-radius: 11px 11px 0 0;
}

.footer-brand__mark::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 6px;
  height: 10px;
  transform: translateX(-50%);
  background: var(--copper-300);
  border-radius: 3px 3px 0 0;
}

.footer-brand__name {
  font-family: var(--font-title);
  font-size: 1.08rem;
  font-weight: 900;
  letter-spacing: 0.03em;
  color: var(--ivory-100);
}

.footer-brand__line {
  max-width: 32ch;
  font-size: 0.94rem;
  color: var(--text);
}

.footer-brand__service {
  max-width: 32ch;
  margin-top: 0.6rem;
  font-size: 0.8rem;
  line-height: 1.65;
  color: var(--text-dim);
}

.footer-col__title {
  margin-bottom: 0.9rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--mist-300);
  text-transform: uppercase;
}

.footer-links li + li { margin-top: 0.5rem; }

.footer-links a {
  display: inline-block;
  font-size: 0.92rem;
  color: var(--text);
  border-bottom: 1px solid transparent;
  transition: color 0.18s ease, border-color 0.18s ease;
}

.footer-links a:hover {
  color: var(--copper-300);
  border-bottom-color: rgba(197, 138, 58, 0.55);
}

.footer-contact li {
  display: grid;
  grid-template-columns: 3em minmax(0, 1fr);
  align-items: baseline;
  gap: 0.5rem;
  font-size: 0.86rem;
}

.footer-contact li + li { margin-top: 0.6rem; }

.footer-contact__key {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--mist-300);
}

.footer-contact__val {
  color: var(--text);
  word-break: break-word;
}

.footer-copy {
  grid-column: 2;
  justify-self: start;
  margin-top: 0.3rem;
  padding: 0.14rem 0.5rem;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  color: var(--mist-300);
  transition: color 0.18s ease, border-color 0.18s ease;
}

.footer-copy:hover {
  color: var(--copper-300);
  border-color: var(--copper-500);
}

.footer-copy[data-copied] {
  color: #93D2AE;
  border-color: rgba(62, 124, 90, 0.6);
}

.footer-base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem 1.5rem;
  margin-top: clamp(1.6rem, 3vw, 2.4rem);
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  color: var(--text-dim);
}

.footer-base__icp { color: var(--mist-300); }

/* ============================================================
   12. 动效与显现
   ============================================================ */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

@keyframes panel-in {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: none; }
}

@keyframes nav-in {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}

/* ============================================================
   13. 响应式
   ============================================================ */
@media (min-width: 700px) {
  .status-ribbon__area { display: inline; }
}

@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .column-index__list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 899px) {
  .nav-toggle { display: inline-flex; }

  .nav-deck__inner { min-height: 60px; }

  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    padding: 0.7rem 0 1rem;
    border-bottom: 1px solid var(--line-strong);
    border-radius: 0 0 var(--radius) var(--radius);
    background: rgba(7, 13, 31, 0.985);
    box-shadow: 0 26px 52px -20px rgba(0, 0, 0, 0.88);
  }

  .site-nav[data-open] {
    display: block;
    animation: nav-in 0.2s ease both;
  }

  .site-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0.12rem;
  }

  .site-nav__link {
    display: block;
    padding: 0.72rem 0.9rem;
    font-size: 1rem;
  }

  .site-nav__link::after {
    left: 0.9rem;
    right: auto;
    width: 22px;
    bottom: 0.42rem;
  }

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

@media (max-width: 640px) {
  :root { --gutter: 1rem; }

  .status-ribbon__inner { min-height: 38px; gap: 0.5rem; }

  .status-ribbon__meta { font-size: 0.68rem; letter-spacing: 0.05em; }

  .status-ribbon__brand { letter-spacing: 0.1em; }

  .index-toggle { padding: 0.24rem 0.55rem; font-size: 0.66rem; }

  .column-index__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .column-index__item { font-size: 0.8rem; padding: 0.45rem 0.5rem; gap: 0.4rem; }

  .brand-lockup__name { font-size: 1.02rem; }

  .brand-lockup__tag { font-size: 0.6rem; letter-spacing: 0.1em; }

  .grid--2,
  .grid--3,
  .grid--4 { grid-template-columns: minmax(0, 1fr); }

  .footer-grid { grid-template-columns: minmax(0, 1fr); }

  .footer-base { flex-direction: column; align-items: flex-start; }

  #main-content { scroll-margin-top: 112px; }
}

@media (max-width: 420px) {
  .column-index__list { grid-template-columns: minmax(0, 1fr); }
}

/* ============================================================
   14. 动效偏好
   ============================================================ */
@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;
  }

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

  .site-nav__link::after,
  .index-toggle__caret { transition: none; }
}
