@charset "UTF-8";
/* ==========================================================================
   宁夏鼎鸿福建设工程有限公司 · 官方网站
   content.css — 内容型页面组件层（在 main.css、fx.css 之后加载）
   覆盖：文库卡片 / 筛选器 / 分页 / 表格 / 提示块 / 文章版式 / 新闻列表 /
        规范库 / 工具计算 / 表单校验 / 搜索浮层 / Toast / 收藏 / 暗色模式
   说明：不引用任何外部资源，字体仍走系统栈，图标全部内联 SVG。
   ========================================================================== */

/* ---------- 0. 新增设计令牌 ---------- */
:root {
  --surface: #fff;              /* 卡片、面板底色 */
  --surface-2: #f6f8fc;
  --chip-bg: #eef3fb;           /* 标签、次级徽标底 */
  --stripe: #f7f9fd;            /* 表格斑马纹 */
  --nav-tint: rgba(255, 255, 255, .92);
  --focus-ring: 0 0 0 3px rgba(7, 56, 125, .3);
  --ok: #1F7A4D;
}

/* ---------- 1. 全局焦点可见性（无障碍） ---------- */
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible, summary:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--navy-600);
  outline-offset: 2px;
  border-radius: 6px;
}
[hidden] { display: none !important; }

/* ---------- 2. 顶部工具按钮（搜索 / 深浅色切换） ---------- */
.hdr-tools {
  display: flex; align-items: center; gap: 8px; flex: 0 0 auto;
}
.icon-btn {
  width: 40px; height: 40px; flex: 0 0 auto;
  display: grid; place-items: center; padding: 0;
  border: 1px solid var(--btn-border); border-radius: 11px;
  background-color: var(--surface); background-image: var(--btn-grad);
  color: var(--ink-2);
  cursor: pointer; position: relative;
  transition: color .2s var(--ease), border-color .2s var(--ease),
    background .2s var(--ease), transform .2s var(--ease),
    box-shadow .2s var(--ease);
}
.icon-btn:hover {
  color: var(--navy); border-color: var(--navy-400);
  transform: translateY(-1px);
}
.icon-btn:active { transform: translateY(0) scale(.95); }
.icon-btn svg {
  width: 18px; height: 18px;
  fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}

/* 主题开关：label.switch > input#themeToggle + span.slider
   input 透明铺满整个 label 作为点击热区，:checked 驱动滑块 */
.switch {
  position: relative; display: inline-block; flex: 0 0 auto;
  width: 44px; height: 24px; vertical-align: middle;
}
.switch input {
  position: absolute; inset: 0; z-index: 1;
  width: 100%; height: 100%; margin: 0; padding: 0;
  opacity: 0; cursor: pointer;
  -webkit-appearance: none; appearance: none;
}
.slider {
  position: absolute; inset: 0;
  border-radius: 999px;
  background: #ccd7e5; border: 1px solid var(--btn-border);
  transition: background .25s var(--ease), border-color .25s var(--ease);
}
.slider::before {
  content: ''; position: absolute; left: 3px; top: 2px;
  width: 18px; height: 18px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 3px rgba(15, 30, 60, .3);
  transition: transform .25s var(--ease);
}
.switch input:hover + .slider { border-color: var(--navy-400); }
.switch input:checked + .slider { background: var(--navy); border-color: var(--navy); }
.switch input:checked + .slider::before { transform: translateX(20px); }
.switch input:focus-visible + .slider {
  outline: 2px solid var(--navy-400); outline-offset: 2px;
}
[data-theme="dark"] .switch .slider { background: #3b475e; border-color: var(--line); }
[data-theme="dark"] .switch input:checked + .slider {
  background: var(--navy-400); border-color: var(--navy-400);
}

/* ---------- 3. 全站搜索浮层 ---------- */
.search-overlay {
  position: fixed; inset: 0; z-index: 1400;
  display: flex; align-items: flex-start; justify-content: center;
  padding: 13vh 20px 40px;
  background: rgba(4, 29, 66, .6);
  -webkit-backdrop-filter: blur(7px); backdrop-filter: blur(7px);
  opacity: 0; visibility: hidden;
  transition: opacity .26s var(--ease), visibility .26s;
}
.search-overlay.is-open { opacity: 1; visibility: visible; }

.search-overlay__panel {
  width: min(660px, 100%); max-height: 74vh;
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 18px; box-shadow: var(--shadow-lg); overflow: hidden;
  transform: translateY(-16px) scale(.97);
  transition: transform .3s var(--ease);
}
.search-overlay.is-open .search-overlay__panel { transform: none; }

.search-box {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 18px; border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.search-box > svg { width: 19px; height: 19px; color: var(--muted-2); flex: 0 0 auto; }
.search-box__input {
  flex: 1 1 auto; min-width: 0; border: 0; background: none;
  font: inherit; font-size: 1.05rem; color: var(--ink); padding: 4px 0;
}
.search-box__input:focus { outline: none; }
.search-box__input::placeholder { color: var(--muted-2); }
.search-box__kbd {
  font-family: inherit; font-size: .72rem; color: var(--muted-2);
  border: 1px solid var(--line); border-bottom-width: 2px;
  border-radius: 6px; padding: 2px 8px; background: var(--bg-soft);
}
.search-box__close {
  width: 32px; height: 32px; flex: 0 0 auto; border: 0; border-radius: 9px;
  background: var(--bg-soft); color: var(--muted); cursor: pointer;
  display: grid; place-items: center; font-size: 1.1rem; line-height: 1;
  transition: background .2s var(--ease), color .2s var(--ease), box-shadow .2s var(--ease);
}
.search-box__close:hover { background: var(--red-50); color: var(--red); }

.search-hint {
  padding: 9px 18px; font-size: .78rem; color: var(--muted-2);
  background: var(--bg-soft); border-bottom: 1px solid var(--line-2);
  letter-spacing: .04em;
}

.search-results { overflow-y: auto; padding: 8px; list-style: none; flex: 1 1 auto; min-height: 0; }
.search-result a {
  display: block; padding: 12px 14px; border-radius: 11px;
  color: var(--ink-2); transition: background .16s var(--ease);
}
.search-result.is-active a, .search-result:hover a { background: var(--navy-50); }
.search-result__t {
  display: flex; align-items: center; gap: 10px;
  font-size: .98rem; font-weight: 400; color: var(--ink); line-height: 1.5;
}
.search-result__c {
  flex: 0 0 auto; font-size: .7rem; font-weight: 400; letter-spacing: .06em;
  color: var(--navy-600); background: var(--navy-50);
  border: 1px solid var(--navy-100); border-radius: 999px; padding: 1px 9px;
}
.search-result__d {
  margin-top: 4px; font-size: .85rem; color: var(--muted); line-height: 1.6;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.search-result mark {
  background: linear-gradient(transparent 58%, rgba(201, 162, 39, .6) 58%);
  color: inherit; padding: 0 1px; border-radius: 2px;
}

.search-empty { padding: 40px 22px; text-align: center; }
.search-empty p { margin: 0; color: var(--muted); font-size: .92rem; }
.search-empty b { display: block; color: var(--ink); font-size: 1rem; margin-bottom: 6px; }

.search-tags {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  padding: 14px 18px; border-top: 1px solid var(--line-2); background: var(--bg-soft);
}
.search-tags span { font-size: .78rem; color: var(--muted-2); letter-spacing: .1em; }

/* ---------- 4. 筛选栏（关键词 + 分类 + 标签） ---------- */
.filterbar {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
  padding: 22px 24px 20px; margin-bottom: 34px;
}
.filterbar__row { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.filterbar__count {
  margin: 16px 0 0; font-size: .86rem; color: var(--muted);
  display: flex; align-items: center; gap: 8px;
}
.filterbar__count::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--red); box-shadow: 0 0 8px rgba(37, 99, 235, .7);
}
.filterbar__clear {
  flex: 0 0 auto; border: 0; background: none; cursor: pointer;
  font: inherit; font-size: .86rem; font-weight: 400; color: var(--navy-600);
  padding: 6px 4px; text-decoration: underline; text-underline-offset: 4px;
}
.filterbar__clear:hover { color: var(--red); }
/* 纯文字按钮：底透明，禁用拟物阴影，避免悬停时出现光晕 */
.filterbar__clear:hover, .filterbar__clear:active, .filterbar__clear:focus {
  box-shadow: none;
}

.searchfield { position: relative; flex: 1 1 300px; display: block; }
.searchfield > svg {
  position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
  width: 17px; height: 17px; color: var(--muted-2); pointer-events: none;
}
.searchfield__input {
  width: 100%; padding: 13px 44px 13px 44px;
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--bg-soft); color: var(--ink);
  font: inherit; font-size: .95rem;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease),
    background .2s var(--ease);
}
.searchfield__input::placeholder { color: var(--muted-2); }
.searchfield__input:hover { border-color: var(--navy-400); }
.searchfield__input:focus {
  outline: none; border-color: var(--navy); background: var(--surface);
  box-shadow: 0 0 0 3px rgba(7, 56, 125, .15);
}
.searchfield__clear {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  width: 28px; height: 28px; border: 0; border-radius: 50%;
  background: var(--line-2); color: var(--muted); cursor: pointer;
  display: none; place-items: center; font-size: .95rem; line-height: 1;
  transition: background .2s var(--ease), color .2s var(--ease), box-shadow .2s var(--ease);
}
.searchfield__clear:hover { background: var(--navy-100); color: var(--navy); }
.searchfield.has-text .searchfield__clear { display: grid; }

.chips { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; margin-top: 15px; }
.chips__label {
  flex: 0 0 auto; font-size: .78rem; color: var(--muted-2);
  letter-spacing: .16em; margin-right: 3px;
}
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 15px; border-radius: 999px;
  border: 1px solid var(--btn-border);
  background-color: var(--surface); background-image: var(--btn-grad);
  color: var(--ink-2); font-family: var(--btn-font); font-size: .87rem; font-weight: 400;
  cursor: pointer;
  transition: color .2s var(--ease), border-color .2s var(--ease),
    background .2s var(--ease), transform .2s var(--ease),
    box-shadow .2s var(--ease);
}
.chip:hover {
  border-color: var(--navy-400); color: var(--navy);
  transform: translateY(-1px);
}
.chip.is-active {
  background: var(--navy); border-color: var(--navy); color: #fff;
  box-shadow: 0 6px 16px rgba(7, 56, 125, .24);
}
.chip__n {
  font-style: normal; font-size: .72rem; font-weight: 400;
  background: var(--chip-bg); color: var(--muted);
  border-radius: 999px; padding: 1px 8px;
}
.chip.is-active .chip__n { background: rgba(255, 255, 255, .22); color: #fff; }
.chip--tag { font-weight: 400; font-size: .83rem; padding: 5px 13px; }
.chip--tag.is-active { background: var(--navy-700); border-color: var(--navy-700); }

/* ---------- 5. 空态 ---------- */
.empty {
  text-align: center; padding: 66px 24px;
  border: 1px dashed var(--line); border-radius: var(--radius);
  background: var(--surface);
}
.empty svg { width: 54px; height: 54px; color: var(--navy-400); margin: 0 auto 18px; opacity: .85; }
.empty__title { font-size: 1.12rem; font-weight: 400; color: var(--ink); margin: 0 0 8px; }
.empty__text {
  color: var(--muted); font-size: .93rem; max-width: 430px;
  margin: 0 auto 22px; line-height: 1.8;
}

/* ---------- 6. 分页 ---------- */
.pager {
  display: flex; justify-content: center; align-items: center;
  gap: 8px; flex-wrap: wrap; margin-top: 46px;
}
.pager__nums { display: inline-flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.pager__btn {
  min-width: 40px; height: 40px; padding: 0 14px;
  display: inline-grid; place-items: center;
  border: 1px solid var(--btn-border); border-radius: 10px;
  background-color: var(--surface); background-image: var(--btn-grad);
  color: var(--ink-2);
  font-family: var(--btn-font); font-size: .92rem; font-weight: 400;
  cursor: pointer;
  transition: color .2s var(--ease), border-color .2s var(--ease),
    background .2s var(--ease), transform .2s var(--ease),
    box-shadow .2s var(--ease);
}
.pager__btn:hover:not(:disabled):not(.is-active) {
  border-color: var(--navy); color: var(--navy); transform: translateY(-2px);
}
.pager__btn.is-active {
  background: var(--navy); border-color: var(--navy); color: #fff;
  box-shadow: 0 6px 16px rgba(7, 56, 125, .24);
}
.pager__btn:disabled { opacity: .38; cursor: not-allowed; }
.pager__btn.is-gap { border: 0; background: none; color: var(--muted-2); cursor: default; padding: 0 2px; }
.pager__info { font-size: .85rem; color: var(--muted); margin-left: 6px; }

/* ---------- 7. 表格 ---------- */
.table-wrap {
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius);
}
.table {
  width: 100%; border-collapse: collapse; font-size: .94rem; min-width: 520px;
}
.table caption {
  caption-side: top; text-align: left;
  padding: 16px 20px 12px; font-size: .8rem; letter-spacing: .1em;
  color: var(--muted-2); border-bottom: 1px solid var(--line-2);
}
.table th, .table td {
  padding: 13px 18px; text-align: left; vertical-align: top;
  border-bottom: 1px solid var(--line-2); line-height: 1.75;
}
.table thead th {
  background: var(--navy-50); color: var(--navy);
  font-size: .84rem; font-weight: 400; letter-spacing: .08em;
  border-bottom: 1px solid var(--line); white-space: nowrap;
}
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: var(--stripe); }
.table td b, .table td strong { color: var(--navy); }
.table td:last-child { color: var(--muted); font-size: .9rem; }
.table--num td { font-variant-numeric: tabular-nums; }
.table--compact th, .table--compact td { padding: 9px 14px; font-size: .88rem; }

/* ---------- 8. 提示块 callout ---------- */
.callout {
  position: relative; display: flex; gap: 14px; align-items: flex-start;
  margin: 26px 0; padding: 19px 22px;
  background: var(--navy-50); border: 1px solid var(--navy-100);
  border-left: 4px solid var(--navy); border-radius: var(--radius-sm);
  color: var(--ink-2); font-size: .95rem; line-height: 1.85;
}
.callout::before {
  content: ""; flex: 0 0 auto; width: 9px; height: 9px; margin-top: 9px;
  background: currentColor; opacity: .5; border-radius: 2px;
  transform: rotate(45deg);
}
.callout p { margin: 0; }
.callout > b:first-child { color: var(--navy); letter-spacing: .06em; }
.callout.warn {
  background: var(--gold-50); border-color: #f0e2b8;
  border-left-color: var(--gold); color: #6b5514;
}
.callout.warn > b:first-child { color: #8a6d10; }
.callout.danger {
  background: var(--red-50); border-color: #bfdbfe;
  border-left-color: var(--red); color: #1e3a8a;
}
.callout.danger > b:first-child { color: var(--red); }
.callout.tip {
  background: var(--surface); border-style: dashed;
  border-left-style: solid; color: var(--ink-2);
}
.callout.tip > b:first-child { color: var(--navy-600); }

/* ---------- 9. 文库首页：分组 + 卡片 ---------- */
.kb-groups { display: grid; gap: 52px; }
.kb-group { scroll-margin-top: calc(var(--header-h) + 20px); }
.kb-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
  padding-bottom: 14px; margin-bottom: 24px;
  border-bottom: 2px solid var(--line);
}
.kb-head__main { flex: 1 1 auto; min-width: 0; }
.kb-head h2 { display: flex; align-items: center; gap: 12px; font-size: 1.3rem; }
.kb-head__code {
  display: inline-grid; place-items: center;
  width: 34px; height: 34px; border-radius: 9px;
  background: var(--navy); color: #fff;
  font-size: .95rem; font-weight: 400; letter-spacing: 0;
  box-shadow: 0 6px 14px rgba(7, 56, 125, .22);
}
.kb-head__en {
  display: block; font-size: .68rem; letter-spacing: .18em;
  color: var(--muted-2); text-transform: uppercase; font-weight: 400; margin-top: 6px;
}
.kb-head__n { font-size: .86rem; color: var(--muted); white-space: nowrap; }

.art-card {
  position: relative; display: flex; flex-direction: column;
  height: 100%; padding: 26px 24px 20px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease),
    border-color .3s var(--ease);
}
.art-card::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0;
  transition: opacity .35s var(--ease);
  background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 50%),
    rgba(37, 99, 235, .1), transparent 62%);
}
.art-card:hover {
  transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent;
}
.art-card:hover::after { opacity: 1; }
.art-card > * { position: relative; z-index: 1; }

.art-card__cat {
  align-self: flex-start;
  display: inline-flex; align-items: center; gap: 7px;
  font-size: .73rem; font-weight: 400; letter-spacing: .07em;
  color: var(--navy); background: var(--navy-50);
  border: 1px solid var(--navy-100); border-radius: 999px; padding: 4px 11px;
}
.art-card h3 { font-size: 1.05rem; line-height: 1.55; margin: 15px 0 10px; }
.art-card h3 a { color: var(--ink); }
.art-card h3 a:hover { color: var(--red); }
.art-card__sum {
  flex: 1 1 auto; color: var(--muted); font-size: .92rem;
  line-height: 1.8; margin: 0 0 16px;
}
.art-card__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 15px; }
.art-card__tags span {
  font-size: .73rem; color: var(--muted);
  background: var(--chip-bg); border-radius: 999px; padding: 2px 9px;
}
.art-card__meta {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding-top: 14px; border-top: 1px dashed var(--line);
  font-size: .78rem; color: var(--muted-2);
}
.art-card__more {
  display: inline-flex; align-items: center; gap: 5px;
  font-weight: 400; color: var(--navy-600);
}
.art-card__more svg { width: 14px; height: 14px; transition: transform .25s var(--ease); }
.art-card:hover .art-card__more svg { transform: translateX(4px); }

/* ---------- 10. 文章详情版式 ---------- */
.art-head { max-width: 780px; }
.art-cat {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 15px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .3);
  background: rgba(255, 255, 255, .1);
  color: #ffd7d9; font-size: .78rem; font-weight: 400; letter-spacing: .1em;
  margin-bottom: 18px;
}
.art-cat::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--red); box-shadow: 0 0 8px rgba(37, 99, 235, .9);
}
.art-head h1 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); line-height: 1.35; }
.art-sum {
  color: #b9cde9 !important; font-size: 1.03rem !important;
  max-width: 640px !important; margin-top: 16px !important; line-height: 1.85;
}
.art-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px;
  margin-top: 22px; padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, .16);
  font-size: .84rem; color: #8fa9ce;
}
.art-meta > span { display: inline-flex; align-items: center; gap: 7px; }
.art-meta svg { width: 15px; height: 15px; opacity: .8; }
.art-meta b { color: #dbe7fa; font-weight: 400; }

.article { display: block; }
.art-toc {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px 22px; margin-bottom: 34px;
  box-shadow: var(--shadow-sm);
}
.art-toc__title {
  display: flex; align-items: center; gap: 9px;
  font-size: .82rem; font-weight: 400; letter-spacing: .16em;
  color: var(--navy); margin: 0 0 14px;
}
.art-toc__title::before { content: ""; width: 20px; height: 2px; background: var(--red); }
.art-toc__list { list-style: none; counter-reset: toc; margin: 0; padding: 0; }
.art-toc__list li {
  counter-increment: toc; border-bottom: 1px dashed var(--line);
}
.art-toc__list li:last-child { border-bottom: 0; }
.art-toc__list a {
  display: flex; gap: 10px; align-items: baseline;
  padding: 9px 4px; font-size: .92rem; color: var(--ink-2); line-height: 1.6;
}
.art-toc__list a::before {
  content: counter(toc, decimal-leading-zero); flex: 0 0 auto;
  font-size: .74rem; font-weight: 400; color: var(--muted-2);
}
.art-toc__list a:hover { color: var(--navy); }
.art-toc__list a.is-current { color: var(--navy); font-weight: 400; }
.art-toc__list a.is-current::before { color: var(--red); }
.art-toc__list .lv3 a { padding-left: 20px; font-size: .88rem; }

.art-body { font-size: 1.02rem; line-height: 1.95; color: var(--ink-2); }
.art-body h2 {
  font-size: 1.4rem; margin: 46px 0 18px; padding-left: 15px;
  border-left: 4px solid var(--red);
  scroll-margin-top: calc(var(--header-h) + 18px);
}
.art-body h2:first-child { margin-top: 0; }
.art-body h3 {
  font-size: 1.13rem; color: var(--navy); margin: 32px 0 12px;
  scroll-margin-top: calc(var(--header-h) + 18px);
}
.art-body p { margin: 0 0 1.15em; }
.art-body strong { color: var(--ink); }
.art-body a { border-bottom: 1px dashed currentColor; padding-bottom: 1px; }
.art-body ul, .art-body ol { margin: 0 0 1.3em; padding: 0; list-style: none; }
.art-body ul li {
  position: relative; padding-left: 26px; margin-bottom: .6em;
}
.art-body ul li::before {
  content: ""; position: absolute; left: 7px; top: .72em;
  width: 7px; height: 7px; border: 2px solid var(--navy-400);
  border-radius: 2px; transform: rotate(45deg);
}
.art-body ol:not(.steps) { counter-reset: oli; }
.art-body ol:not(.steps) li { position: relative; padding-left: 34px; margin-bottom: .6em; counter-increment: oli; }
.art-body ol:not(.steps) li::before {
  content: counter(oli) "."; position: absolute; left: 2px; top: 0;
  color: var(--navy); font-weight: 400; font-size: .95rem;
}
.art-body .table-wrap { margin: 28px 0; }
.art-body .callout { font-size: .94rem; }
.art-body hr { border: 0; height: 1px; background: var(--line); margin: 38px 0; }

/* 流程块 */
.steps { list-style: none; counter-reset: st; margin: 26px 0; padding: 0; display: grid; gap: 10px; }
.steps__item {
  position: relative; display: flex; gap: 14px; align-items: flex-start;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 14px 18px;
  font-size: .95rem; line-height: 1.8;
  transition: border-color .25s var(--ease), transform .25s var(--ease);
}
.steps__item:hover { border-color: var(--navy-400); transform: translateX(4px); }
.steps__item::before {
  counter-increment: st; content: counter(st);
  flex: 0 0 auto; width: 26px; height: 26px; margin-top: 3px;
  display: grid; place-items: center;
  background: var(--navy); color: #fff; border-radius: 8px;
  font-size: .82rem; font-weight: 400;
}
.steps__item b { color: var(--ink); }
.steps__item span { color: var(--muted); display: block; font-size: .9rem; }

.art-foot {
  margin-top: 54px; padding-top: 28px;
  border-top: 2px solid var(--line);
}
.art-foot__tools {
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 16px;
}
.art-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.art-tags__label {
  font-size: .8rem; color: var(--muted-2); letter-spacing: .14em; margin-right: 2px;
}
.art-tags a {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 14px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface);
  color: var(--ink-2); font-size: .84rem; font-weight: 400;
  transition: all .2s var(--ease);
}
.art-tags a::before {
  content: "#"; color: var(--muted-2); font-weight: 400;
}
.art-tags a:hover {
  border-color: var(--navy); background: var(--navy-50); color: var(--navy);
  transform: translateY(-1px);
}

.art-rel { margin-top: 36px; }
.art-rel__title {
  display: flex; align-items: center; gap: 10px;
  font-size: .95rem; font-weight: 400; color: var(--ink);
  letter-spacing: .06em; margin-bottom: 16px;
}
.art-rel__title::before { content: ""; width: 22px; height: 2px; background: var(--red); }
.art-rel__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.art-rel__item {
  display: block; padding: 18px 18px 16px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease),
    border-color .25s var(--ease);
}
.art-rel__item:hover {
  transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent;
}
.art-rel__cat {
  display: inline-block; font-size: .7rem; font-weight: 400; letter-spacing: .08em;
  color: var(--navy-600); background: var(--navy-50);
  border-radius: 999px; padding: 2px 9px;
}
.art-rel__item b {
  display: block; color: var(--ink); font-size: .97rem; line-height: 1.55;
  margin: 10px 0 6px;
}
.art-rel__item em {
  font-style: normal; color: var(--muted); font-size: .85rem; line-height: 1.7;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* ---------- 11. 新闻 / 动态 ---------- */
.newslist { display: block; }
.news-item {
  display: grid; grid-template-columns: 152px minmax(0, 1fr);
  gap: 26px; padding: 26px 0; align-items: start;
  border-bottom: 1px solid var(--line);
}
.news-item:first-child { border-top: 1px solid var(--line); }
.news-item__date { position: relative; padding-left: 16px; }
.news-item__date::before {
  content: ""; position: absolute; left: 0; top: 8px;
  width: 6px; height: 26px; border-radius: 3px;
  background: linear-gradient(180deg, var(--red), var(--gold));
}
.news-item__date b {
  display: block; font-size: 1rem; color: var(--navy);
  font-variant-numeric: tabular-nums; letter-spacing: .02em;
}
.news-item__date span {
  display: block; font-size: .76rem; color: var(--muted-2);
  letter-spacing: .08em; margin-top: 3px;
}
.news-item h3 { font-size: 1.14rem; line-height: 1.55; margin-bottom: 9px; }
.news-item h3 a { color: var(--ink); }
.news-item h3 a:hover { color: var(--red); }
.news-item p { color: var(--muted); font-size: .94rem; line-height: 1.85; margin: 0 0 11px; }
.news-item__more {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .86rem; font-weight: 400; color: var(--navy-600);
}
.news-item__more svg { width: 14px; height: 14px; transition: transform .25s var(--ease); }
.news-item:hover .news-item__more svg { transform: translateX(4px); }
.news-item__flag {
  display: inline-block; margin-left: 10px; vertical-align: 3px;
  font-size: .68rem; font-weight: 400; letter-spacing: .1em;
  color: #fff; background: var(--red); border-radius: 4px; padding: 2px 7px;
}

/* ---------- 12. 工具 / 计算器 ---------- */
.stepbar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 34px;
  counter-reset: sb; margin-bottom: 30px;
}
.stepbar__item {
  position: relative;
  display: flex; align-items: center; gap: 10px;
  padding: 10px 20px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface);
  font-size: .9rem; font-weight: 400; color: var(--muted);
  transition: all .25s var(--ease);
}
.stepbar__item::before {
  counter-increment: sb; content: counter(sb, decimal-leading-zero);
  font-size: .76rem; font-weight: 400; letter-spacing: .06em; color: var(--navy-400);
}
.stepbar__item:not(:last-child)::after {
  content: ""; position: absolute; right: -26px; top: 50%;
  width: 18px; height: 1px; background: var(--line);
}
.stepbar__item.is-done { color: var(--navy); border-color: var(--navy-400); }
.stepbar__item.is-active {
  background: var(--navy); border-color: var(--navy); color: #fff;
  box-shadow: 0 8px 20px rgba(7, 56, 125, .26);
}
.stepbar__item.is-active::before { color: #ffd7d9; }

.tool__grid { display: grid; grid-template-columns: 1.12fr .88fr; gap: 26px; align-items: start; }
.tool__panel {
  position: sticky; top: calc(var(--header-h) + 22px);
  background: var(--navy-900); border-radius: var(--radius);
  padding: 28px 26px; color: #c7d7ee; overflow: hidden;
}
.tool__panel::after {
  content: ""; position: absolute; right: -70px; bottom: -90px;
  width: 240px; height: 240px; border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 99, 235, .3), transparent 70%);
  pointer-events: none;
}
.tool__panel > * { position: relative; z-index: 1; }
.tool__panel h3 { color: #fff; font-size: 1.08rem; margin-bottom: 6px; }
.tool__panel .tool__note { font-size: .84rem; color: #8fa9ce; margin: 0 0 14px; }
/* 深底面板里的表单文字必须走浅色，否则标签贴着 navy 底看不见 */
.tool__panel .form-label { color: #fff; }
.tool__panel .form-hint,
.tool__panel .opt,
.tool__panel .form-check small { color: #8fa9ce; }
.tool__panel .form-error { color: #ffa8ae; }
.tool__panel .form-check { color: #c7d7ee; }
.tool__panel .form-check__box {
  background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .35);
}
.tool__panel .form-check input:checked + .form-check__box { background: #fff; border-color: #fff; }
.tool__panel .form-check__box::after { border-left-color: var(--navy); border-bottom-color: var(--navy); }
.tool__panel .form-check--radio .form-check__box::after { background: var(--navy); }
.tool__panel .form-actions { border-top-color: rgba(255, 255, 255, .16); }
.tool__panel .form-input:focus,
.tool__panel .form-select:focus,
.tool__panel .form-textarea:focus { box-shadow: 0 0 0 3px rgba(255, 255, 255, .35); }

.result { margin-top: 6px; }
.result__row {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 16px; padding: 13px 0;
  border-bottom: 1px dashed rgba(255, 255, 255, .16);
  font-size: .93rem;
}
.result__row:last-child { border-bottom: 0; }
.result__k { color: #9db4d6; }
.result__v {
  color: #fff; font-weight: 400; font-size: 1.02rem;
  font-variant-numeric: tabular-nums; text-align: right;
}
.result__row--total { border-top: 2px solid rgba(255, 255, 255, .3); border-bottom: 0; margin-top: 6px; }
.result__row--total .result__k { color: #fff; font-weight: 400; }
.result__row--total .result__v { font-size: 1.5rem; color: #ffd7d9; }
.result__v i { font-style: normal; font-size: .68em; margin-left: 4px; color: var(--gold); }

.btn-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
/* 工具页按钮走小号：沿用 .btn--sm 的比例，避免在深色面板里显得笨重 */
.btn-row .btn { min-height: 44px; padding: 0 20px; font-size: 15px; gap: 7px; }

/* ---------- 13. 表单控件与校验态 ---------- */
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.form-field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.form-field--full { grid-column: 1 / -1; }
.form-label {
  font-size: .88rem; font-weight: 400; color: var(--ink); letter-spacing: .02em;
  display: flex; align-items: baseline; gap: 4px;
}
.form-label .req { color: var(--red); font-style: normal; }
.form-label .opt { color: var(--muted-2); font-weight: 400; font-size: .78rem; margin-left: 4px; }

.form-input, .form-select, .form-textarea {
  width: 100%; padding: 12px 15px;
  border: 1px solid var(--line); border-radius: 10px;
  background: var(--surface); color: var(--ink);
  font-family: inherit; font-size: .95rem; line-height: 1.6;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease),
    background .2s var(--ease);
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--muted-2); }
.form-input:hover, .form-select:hover, .form-textarea:hover { border-color: var(--navy-400); }
.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none; border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(7, 56, 125, .15);
}
.form-textarea { min-height: 132px; resize: vertical; }
.form-select {
  appearance: none; -webkit-appearance: none; padding-right: 42px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat; background-position: right 15px center;
  cursor: pointer;
}
.form-hint { font-size: .8rem; color: var(--muted-2); margin: 0; line-height: 1.7; }
.form-error {
  display: none; align-items: center; gap: 7px;
  font-size: .83rem; color: var(--red); margin: 0; font-weight: 400;
}
.form-error::before {
  content: "!"; flex: 0 0 auto;
  width: 15px; height: 15px; border-radius: 50%; background: var(--red);
  color: #fff; font-size: .72rem; font-weight: 400;
  display: grid; place-items: center;
}
.form-field.is-invalid .form-error { display: flex; }
.form-field.is-invalid .form-hint { display: none; }
.form-field.is-invalid .form-input,
.form-field.is-invalid .form-select,
.form-field.is-invalid .form-textarea {
  border-color: var(--red); background: var(--red-50);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .14);
}
.form-field.is-valid .form-hint { color: var(--ok); }

.form-check {
  position: relative; display: flex; align-items: flex-start; gap: 11px;
  font-size: .93rem; color: var(--ink-2); cursor: pointer; line-height: 1.7;
}
.form-check input {
  position: absolute; opacity: 0; width: 19px; height: 19px;
  margin: 0; left: 0; top: 3px; cursor: pointer;
}
.form-check__box {
  flex: 0 0 auto; width: 19px; height: 19px; margin-top: 4px;
  border: 1.5px solid var(--line); border-radius: 5px;
  background: var(--surface); display: grid; place-items: center;
  transition: background .18s var(--ease), border-color .18s var(--ease);
}
.form-check input:checked + .form-check__box {
  background: var(--navy); border-color: var(--navy);
}
.form-check__box::after {
  content: ""; width: 10px; height: 5px;
  border-left: 2px solid #fff; border-bottom: 2px solid #fff;
  transform: rotate(-45deg) scale(0); transition: transform .18s var(--ease);
  margin-top: -2px;
}
.form-check input:checked + .form-check__box::after { transform: rotate(-45deg) scale(1); }
.form-check input:focus-visible + .form-check__box { box-shadow: var(--focus-ring); }
.form-check--radio .form-check__box { border-radius: 50%; }
.form-check--radio .form-check__box::after {
  width: 9px; height: 9px; border: 0; border-radius: 50%;
  background: #fff; transform: scale(0); margin-top: 0;
}
.form-check--radio input:checked + .form-check__box::after { transform: scale(1); }
.form-check small { display: block; color: var(--muted-2); font-size: .8rem; }

.form-set { border: 0; padding: 0; margin: 0; min-width: 0; }
.form-set > legend { padding: 0; margin-bottom: 12px; }
.form-actions {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center;
  margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--line-2);
}

/* ---------- 14. Toast ---------- */
.toast-stack {
  position: fixed; left: 50%; bottom: 30px; transform: translateX(-50%);
  z-index: 1600; display: flex; flex-direction: column; align-items: center;
  gap: 10px; width: min(430px, calc(100% - 32px)); pointer-events: none;
}
.toast {
  display: flex; align-items: flex-start; gap: 11px; width: 100%;
  background: var(--navy-900); color: #e6eefa;
  border: 1px solid rgba(255, 255, 255, .16); border-radius: 12px;
  padding: 13px 16px; box-shadow: var(--shadow-lg);
  font-size: .92rem; line-height: 1.7; pointer-events: auto;
  opacity: 0; transform: translateY(16px);
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.toast.is-in { opacity: 1; transform: none; }
.toast__dot {
  flex: 0 0 auto; width: 8px; height: 8px; border-radius: 50%;
  background: var(--navy-400); margin-top: 8px;
}
.toast--ok .toast__dot { background: #3ecf8e; box-shadow: 0 0 8px rgba(62, 207, 142, .8); }
.toast--err .toast__dot { background: var(--red); box-shadow: 0 0 8px rgba(37, 99, 235, .8); }
.toast__msg { flex: 1 1 auto; }
.toast__msg b { color: #fff; }
.toast__close {
  flex: 0 0 auto; border: 0; background: none; color: #8fa9ce;
  font-size: 1rem; line-height: 1; cursor: pointer; padding: 2px 4px;
}
.toast__close:hover { color: #fff; }
/* 透明底小按钮：不接拟物阴影，避免悬停出现光晕 */
.toast__close:hover, .toast__close:active, .toast__close:focus { box-shadow: none; }

/* ---------- 15. 收藏按钮 ---------- */
.fav-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 18px; border-radius: 999px;
  border: 1px solid var(--btn-border);
  background-color: var(--surface); background-image: var(--btn-grad);
  color: var(--muted); font-family: var(--btn-font);
  font-size: .88rem; font-weight: 400; cursor: pointer;
  transition: all .22s var(--ease);
}
.fav-btn svg { width: 16px; height: 16px; }
.fav-btn:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-1px); }
.fav-btn.is-on {
  background-color: var(--gold-50); background-image: none;
  border-color: var(--gold); color: #8a6d10;
  box-shadow: 0 6px 16px rgba(201, 162, 39, .22);
}
.fav-btn.is-on svg { fill: currentColor; }

/* ---------- 16. 暗色模式（组件级覆盖） ---------- */
[data-theme="dark"] {
  --bg: #111111;
  --bg-soft: #1A1A1A;
  --surface: #1A1A1A;
  --surface-2: #111111;
  --chip-bg: #242424;
  --stripe: #1A1A1A;

  --ink: #F2EEE4;
  --ink-2: #E4DFD2;
  --muted: #A8A296;
  --muted-2: #857F72;
  --line: #F2EEE4;
  --line-2: #3A3A3A;

  --navy-50: #1D1D1D;
  --navy-100: #262626;
  --navy-400: #7C8CFF;
  --navy-600: #5B72FF;
  --navy-700: #1F3DFF;

  --red: #FF3D1F;
  --red-600: #FF5A3D;
  --red-50: #331510;

  --gold: #D8F14B;
  --gold-50: #2A3309;

  --ok: #46d393;
  --nav-tint: rgba(17, 17, 17, .95);
}

[data-theme="dark"] body { background: var(--bg); }
[data-theme="dark"] .header {
  background: var(--nav-tint);
  border-bottom-color: var(--line);
}
[data-theme="dark"] .brand__cn { color: #eaf1fb; }
[data-theme="dark"] .brand__en { color: var(--muted-2); }
[data-theme="dark"] .nav__link { color: var(--ink-2); }
[data-theme="dark"] .nav__link:hover { background: var(--navy-50); color: var(--navy-400); }
[data-theme="dark"] .nav__link.is-active { color: var(--navy-400); }
[data-theme="dark"] .burger { background-color: var(--surface); border-color: var(--btn-border); }
[data-theme="dark"] .burger span { background: var(--navy-400); }
[data-theme="dark"] .nav { background: var(--surface); }

[data-theme="dark"] .card,
[data-theme="dark"] .metric,
[data-theme="dark"] .qual__col,
[data-theme="dark"] .field,
[data-theme="dark"] .why__item,
[data-theme="dark"] .faq__item,
[data-theme="dark"] .contact-card,
[data-theme="dark"] .culture__item { background: var(--surface); border-color: var(--line); }

[data-theme="dark"] .card__icon { color: var(--navy-400); }
[data-theme="dark"] .metric b,
[data-theme="dark"] .phone-big,
[data-theme="dark"] .tl-year,
[data-theme="dark"] .qual__list b,
[data-theme="dark"] .news-item__date b,
[data-theme="dark"] .art-body h3,
[data-theme="dark"] .art-body ol:not(.steps) li::before,
[data-theme="dark"] .art-toc__title,
[data-theme="dark"] .table td b,
[data-theme="dark"] .table td strong { color: var(--navy-400); }

[data-theme="dark"] .table thead th { color: var(--navy-400); background: var(--navy-50); }
[data-theme="dark"] .faq__q::after { border-color: var(--navy-400); }
[data-theme="dark"] .contact-list .ico { color: var(--navy-400); }
[data-theme="dark"] .tl-item::before { background: var(--surface); }
[data-theme="dark"] .btn--outline {
  --btn-bg: transparent;
  --btn-grad: linear-gradient(to top, #101b30 0%, #1a2740 80%, #1e2c46 100%);
  --btn-border: var(--line);
  --btn-fg: #cfe0f7;
  --btn-text-shadow: 0 1px 0 rgba(0, 0, 0, .55);
}
[data-theme="dark"] .btn--outline:hover { --btn-border: var(--navy-400); --btn-fg: #eaf1fb; }
[data-theme="dark"] .header__cta { border-color: rgba(255, 255, 255, .24); }
[data-theme="dark"] .notice {
  background: var(--gold-50); border-color: #4a3c12; color: #e6d5a2;
}
[data-theme="dark"] .filterbar,
[data-theme="dark"] .empty,
[data-theme="dark"] .art-toc { background: var(--surface); border-color: var(--line); }
[data-theme="dark"] .art-card__cat { color: var(--navy-400); }
[data-theme="dark"] .steps__item { background: var(--surface); border-color: var(--line); }
[data-theme="dark"] .fav-btn.is-on { color: var(--gold); }
[data-theme="dark"] .callout.tip { background: var(--surface); border-color: var(--line); }
[data-theme="dark"] .callout.warn { color: #e6d5a2; border-color: #4a3c12; }
[data-theme="dark"] .callout.warn > b:first-child { color: var(--gold); }
[data-theme="dark"] .callout.danger { color: #ffc9cb; border-color: #5c2429; }
[data-theme="dark"] .callout.danger > b:first-child { color: var(--red); }
[data-theme="dark"] #cursorRing { border-color: rgba(127, 176, 240, .5); background: rgba(255, 255, 255, .05); }
[data-theme="dark"] #cursorRing::after { color: var(--navy-400); }
[data-theme="dark"] .hero__badge { color: #dbe7fa; }

/* ---------- 17. 响应式 ---------- */
@media (max-width: 1080px) {
  .art-rel__grid { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .tool__grid { grid-template-columns: 1fr; }
  /* 必须是 relative 而非 static：static 会让 ::after 光斑脱离面板、
     逃出 overflow:hidden 裁剪，导致页面横向溢出 70px */
  .tool__panel { position: relative; }
}

@media (max-width: 900px) {
  .art-rel__grid { grid-template-columns: repeat(2, 1fr); }
  .form-grid { grid-template-columns: 1fr; }
  .news-item { grid-template-columns: 1fr; gap: 12px; padding: 22px 0; }
  .news-item__date { padding-left: 14px; display: flex; align-items: baseline; gap: 12px; }
  .news-item__date::before { top: 4px; height: 20px; }
  .news-item__date span { margin-top: 0; }
  .stepbar { gap: 12px; }
  .stepbar__item:not(:last-child)::after { display: none; }
  .search-overlay { padding-top: 9vh; }
}

@media (max-width: 780px) {
  .hdr-tools { margin-left: auto; }
  .burger { margin-left: 10px; }
  .filterbar { padding: 18px 18px 16px; }
  .art-body { font-size: 1rem; }
  .art-body h2 { font-size: 1.24rem; margin-top: 38px; }
  .search-overlay { padding: 0; align-items: stretch; }
  .search-overlay__panel {
    max-height: 100vh; height: 100%; border-radius: 0; border: 0;
    transform: translateY(18px);
  }
  .art-foot__tools { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 640px) {
  .header__inner { gap: 10px; }
  .brand__cn { font-size: .9rem; letter-spacing: .02em; }
  .icon-btn { width: 38px; height: 38px; }
  .kb-head { align-items: flex-start; }
  .kb-head h2 { font-size: 1.16rem; }
  /* 步骤条窄屏：序号+标题一行，说明另起并左对齐到标题 */
  .steps__item { flex-wrap: wrap; gap: 6px 14px; padding: 13px 16px; }
  .steps__item b { white-space: nowrap; }
  .steps__item span { flex: 0 0 calc(100% - 40px); margin-left: 40px; }
  .art-card { padding: 22px 20px 18px; }
  .art-rel__grid { grid-template-columns: 1fr; }
  .pager__btn { min-width: 38px; height: 38px; padding: 0 12px; font-size: .88rem; }
  .pager__info { width: 100%; text-align: center; margin: 4px 0 0; }
  .toast-stack { bottom: 18px; }
  .result__row--total .result__v { font-size: 1.3rem; }
}

@media (max-width: 380px) {
  .brand__text { display: none; }
  .search-box__kbd { display: none; }
}

/* ---------- 18. 降级：减少动效 ---------- */
@media (prefers-reduced-motion: reduce) {
  .art-card, .art-rel__item, .chip, .pager__btn, .steps__item,
  .search-overlay, .search-overlay__panel, .toast { transition-duration: .001ms !important; }
  .art-card:hover, .art-rel__item:hover, .chip:hover,
  .pager__btn:hover:not(.is-active), .steps__item:hover { transform: none; }
}

/* ---------- 18b. 按钮体系 · 触控与窄屏 ---------- */
@media (max-width: 780px) {
  /* 触控目标 ≥44px：本块位于全部紧凑尺寸断点之后，负责在移动端统一抬高 */
  .icon-btn { width: 44px; height: 44px; }
  .burger { width: 44px; height: 44px; }
  .burger span { left: 12px; }
  .burger span:nth-child(1) { top: 15px; }
  .burger span:nth-child(2) { top: 21px; }
  .burger span:nth-child(3) { top: 27px; }
  .pager__btn { min-width: 44px; height: 44px; padding: 0 13px; }
  .chip { min-height: 44px; }
  .fav-btn { min-height: 44px; }
  .filterbar__clear { min-height: 44px; }
  .search-box__close { width: 44px; height: 44px; }
  .searchfield__clear { width: 44px; height: 44px; right: 4px; }
  .searchfield__input { padding-right: 56px; }
  .toast__close { min-width: 44px; min-height: 44px; display: grid; place-items: center; }
  .btn--sm, .btn-row .btn { min-height: 44px; }
  .header__cta { min-height: 44px; }
}

@media (max-width: 480px) {
  /* 极窄屏：操作按钮整行堆叠，保证宽度与可点性 */
  .btn-row, .form-actions { flex-direction: column; align-items: stretch; }
  .btn-row .btn, .form-actions .btn { width: 100%; }
}

/* ---------- 19. 打印 ---------- */
@media print {
  .search-overlay, .toast-stack, .hdr-tools, .filterbar, .pager,
  .art-toc, .fav-btn, .art-rel, .cta-band, .searchfield { display: none !important; }
  .article, .art-body { max-width: none; }
  .art-body a { border-bottom: 0; }
  body { background: #fff; color: #000; }
}


/* ============================================================
   复选框 checkbox-wrapper-46
   ============================================================ */
.checkbox-wrapper-46 { display: inline-flex; align-items: center; }
.checkbox-wrapper-46 .inp-cbx {
  position: absolute; opacity: 0; width: 18px; height: 18px;
  margin: 0; cursor: pointer;
}
.checkbox-wrapper-46 .cbx {
  display: inline-flex; align-items: center; gap: 8px;
  cursor: pointer; user-select: none; font-size: .9rem;
}
.checkbox-wrapper-46 .cbx > span:first-child {
  position: relative; width: 18px; height: 18px; flex: 0 0 auto;
  border-radius: 3px; border: 1px solid #9098a9; background: #fff;
  transition: border-color .2s, background .2s;
}
.checkbox-wrapper-46 .cbx > span:first-child svg {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 12px; height: 12px; stroke: #fff; stroke-width: 2.5;
  fill: none; stroke-dasharray: 24; stroke-dashoffset: 24;
  transition: stroke-dashoffset .3s ease .1s;
}
.checkbox-wrapper-46 .inp-cbx:hover + .cbx > span:first-child,
.checkbox-wrapper-46 .cbx:hover > span:first-child { border-color: #506eec; }
.checkbox-wrapper-46 .inp-cbx:checked + .cbx > span:first-child {
  background: #506eec; border-color: #506eec;
}
.checkbox-wrapper-46 .inp-cbx:checked + .cbx > span:first-child svg { stroke-dashoffset: 0; }
.checkbox-wrapper-46 .inp-cbx:focus-visible + .cbx > span:first-child {
  outline: 2px solid #506eec; outline-offset: 2px;
}
[data-theme="dark"] .checkbox-wrapper-46 .cbx > span:first-child {
  background: #1e293b; border-color: #475569;
}

/* ============================================================
   输入框浮动标签 input-container
   ============================================================ */
.input-container { position: relative; }
.input-container label {
  position: absolute; top: -8px; left: 10px; padding: 0 4px;
  background: var(--bg, #fff); font-size: .72rem; color: var(--muted);
  transform: scale(0); transition: transform .2s; z-index: 1; pointer-events: none;
}
.input-container input,
.input-container textarea,
.input-container select {
  width: 100%; height: 40px; padding: 0 12px;
  border-left: 2px solid var(--line); border-right: 2px solid var(--line);
  border-top: none; border-bottom: none;
  background: transparent; box-shadow: 7px 7px 0 var(--navy);
  font-size: .95rem; color: var(--ink); transition: box-shadow .25s;
}
.input-container textarea { height: auto; min-height: 90px; padding: 10px 12px; }
.input-container input::placeholder,
.input-container textarea::placeholder { color: #666; }
.input-container input:focus,
.input-container textarea:focus,
.input-container select:focus { outline: none; box-shadow: 0 0 0 var(--navy); }
.input-container:has(input:focus) label,
.input-container:has(input:not(:placeholder-shown)) label,
.input-container:has(textarea:focus) label,
.input-container:has(textarea:not(:placeholder-shown)) label { transform: scale(1); }

/* ============================================================
   分段单选 wrapper / option / btn
   ============================================================ */
.wrapper {
  display: inline-flex; width: 250px; height: 36px;
  border: 2px solid var(--line); border-radius: 34px;
  box-shadow: 4px 4px 0 var(--navy); overflow: hidden; background: #fff;
}
.wrapper .option {
  flex: 1; display: flex; align-items: center; justify-content: center;
  width: 80.5px; border-radius: 34px; font-size: .85rem;
  cursor: pointer; transition: background .2s, color .2s;
}
.wrapper .option input { position: absolute; opacity: 0; pointer-events: none; }
.wrapper .option.btn { background: transparent; color: var(--ink); }
.wrapper .option.btn:has(input:checked) { background: var(--navy); color: #fff; }

/* ============================================================
   表单卡片（工具页面板）
   ============================================================ */
.tool__panel {
  background: #f8fafc; border: 2px solid var(--line); border-radius: 5px;
  box-shadow: 4px 4px 0 var(--navy); padding: 20px;
  display: flex; flex-direction: column; gap: 20px;
}
.tool__panel .title { font-size: 20px; font-weight: 400; }
.tool__panel .title span { font-size: 17px; font-weight: 400; }
[data-theme="dark"] .tool__panel { background: #1e293b; }

/* ============================================================
   BROADSIDE 层 · content.css（形状语言收尾 + 卡片表单组件）
   ============================================================ */

/* 1. 全站直角 + 无阴影 + 无文字阴影（自定义光标保持圆形） */
*:not(#cursorDot):not(#cursorDot *):not(#cursorRing):not(#cursorRing *),
*::before,
*::after {
  border-radius: 0 !important;
  box-shadow: none !important;
  text-shadow: none !important;
}

/* 2. 键盘焦点：全局醒目红环（压过一切 outline:none） */
:focus-visible {
  outline: 2px solid #FF3D1F !important;
  outline-offset: 2px;
}

/* 3. 卡片：2px 硬黑框 */
.card, .metric, .art-card, .faq__item, .field, .why__item, .contact-card,
.culture__item, .qual__col, .steps__item, .notice, .callout, .art-toc,
.filterbar, .empty, .news-item, .tl-item {
  border-width: 2px;
}

/* 4. 表单控件（Uiverse broadside-field：奶油填充 + 悬停提亮 + 钴蓝嵌入对焦环） */
input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
select,
textarea {
  border: 2px solid var(--line);
  background: var(--bg-soft);
  color: var(--ink);
  border-radius: 0;
  transition: background-color 90ms cubic-bezier(.2, .9, .2, 1),
    border-color 90ms cubic-bezier(.2, .9, .2, 1),
    box-shadow 90ms cubic-bezier(.2, .9, .2, 1);
}
input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):hover,
select:hover,
textarea:hover {
  background: var(--surface);
  border-color: var(--line);
}
/* 对焦：底色转纸色 + 钴蓝框 + 嵌入 2px 对焦环。
   :not(#id) 抬到 (1,1,1) 压过第 1 组 kill 的 (1,0,0)；outline:none !important 压过全局红环 */
input:not(#cursorDot):not([type="checkbox"]):not([type="radio"]):not([type="range"]):focus,
select:not(#cursorDot):focus,
textarea:not(#cursorDot):focus {
  outline: none !important;
  background: var(--bg);
  border-color: var(--navy);
  box-shadow: inset 0 0 0 2px var(--navy) !important;
}

/* 5. 分段开关：方块滑块 */
.slider { background: var(--bg-soft); border: 2px solid var(--line); }
.slider::before {
  background: #FFFFFF;
  border: 2px solid #111111;
  box-shadow: none !important;
}
.switch input:checked + .slider { background: #FF3D1F; border-color: var(--line); }
.switch input:checked + .slider::before { background: #FFFFFF; border-color: #111111; }
[data-theme="dark"] .switch .slider { background: #2A2A2A; border-color: var(--line); }
[data-theme="dark"] .switch input:checked + .slider { background: #FF3D1F; border-color: var(--line); }

/* 6. 复选框：信号红方块 */
.checkbox-wrapper-46 .cbx > span:first-child {
  border: 2px solid var(--line);
  background: #FFFFFF;
}
.checkbox-wrapper-46 .inp-cbx:hover + .cbx > span:first-child,
.checkbox-wrapper-46 .cbx:hover > span:first-child { border-color: #FF3D1F; }
.checkbox-wrapper-46 .inp-cbx:checked + .cbx > span:first-child {
  background: #FF3D1F; border-color: #FF3D1F;
}
.checkbox-wrapper-46 .inp-cbx:focus-visible + .cbx > span:first-child {
  outline: 2px solid #FF3D1F; outline-offset: 2px;
}
[data-theme="dark"] .checkbox-wrapper-46 .cbx > span:first-child {
  background: #1A1A1A; border-color: var(--line);
}

/* 7. 工具页表单卡片：白底硬框 */
.tool__panel {
  background: #FFFFFF;
  border: 2px solid var(--line);
  box-shadow: none !important;
}
[data-theme="dark"] .tool__panel { background: var(--surface); }

/* 8. 表头与提示条 */
.table thead th { background: var(--bg-soft); color: var(--ink); }
[data-theme="dark"] .table thead th { background: #1D1D1D; color: var(--navy-400); }

/* 9. 深色模式与 BROADSIDE 层的对齐 */
[data-theme="dark"] .hero__badge { background: #D8F14B; color: #111111; }
[data-theme="dark"] .hero__badge b { background: #111111; color: #FFFFFF; }
[data-theme="dark"] .hero__bg::after,
[data-theme="dark"] .pagehead__bg::after { background: rgba(17, 17, 17, .9); }
[data-theme="dark"] .footer { color: #C9C3B4; }

/* 10. 展示字覆盖：正文级 font-weight:400 声明不得压过纪念碑标题 */
main h1, main h2, main h3,
.pagehead h1, .hero h1 {
  font-family: var(--display);
  font-weight: 900;
}

/* 11. 偏移式主按钮的硬块例外：须压过第 1 组 box-shadow:none !important
   （用 :not(#id) 抬高特异性 (1,1,0) > (1,0,0)；深色模式 var(--ink) 自动翻转为纸色） */
.btn--primary:not(#cursorDot),
.header__cta:not(#cursorDot) {
  box-shadow: 6px 6px 0 var(--ink) !important;
}
.btn--primary:not(#cursorDot):hover,
.header__cta:not(#cursorDot):hover {
  box-shadow: 3px 3px 0 var(--ink) !important;
}

/* 12. 宽幅文本输入框组件（Uiverse broadside-field：静态大写标签 / 奶油填充 / 提示行） */
.form-field.input-container .form-label {
  position: static;
  transform: none;
  background: none;
  padding: 0;
  pointer-events: auto;
  z-index: auto;
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink);
  transition: none;
}
/* 废除该字段组的浮动标签触发器（标签保持常显） */
.form-field.input-container:has(input:focus) label,
.form-field.input-container:has(select:focus) label,
.form-field.input-container:has(textarea:focus) label,
.form-field.input-container:has(input:not(:placeholder-shown)) label {
  transform: none;
}
.form-field.input-container input,
.form-field.input-container select {
  height: auto;
  min-height: 50px;
  padding: .875rem 1rem;
}
.form-field.input-container textarea {
  padding: .875rem 1rem;
}
.form-hint {
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}
.form-label .req {
  color: var(--red);
  font-style: normal;
  margin-left: .15em;
}
.form-label .opt {
  font-size: .65rem;
  font-weight: 400;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 0 .4em .08em;
  margin-left: .5em;
  font-style: normal;
  display: inline-block;
  line-height: 1.5;
}
input::placeholder, textarea::placeholder {
  color: var(--muted);
  font-size: .9rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  opacity: 1;
}
.search-hint {
  font-size: .72rem;
  letter-spacing: .05em;
  color: var(--muted);
}

/* 13. 横幅式编辑卡片（Uiverse broadside-card：信号红标题栏 / 显示标题 / 酸性旋转贴纸 / 黑色动作）
   —— 落地到知识库文章卡 .art-card */
.art-card {
  padding: 0;
}
.art-card:not(#cursorDot) {
  box-shadow: 8px 8px 0 var(--red) !important;   /* 偏移深度块（豁免第 1 组 kill） */
}
.art-card::after { content: none; }              /* 移除鼠标跟随蓝色光斑（平面风禁渐变） */
.art-card:hover {
  transform: translate(-2px, -2px);
  border-color: var(--line);
}
.art-card__cat {
  align-self: stretch;
  margin: 0;
  padding: .8rem 1.5rem;
  border: 0;
  border-bottom: 2px solid var(--line);
  border-radius: 0;
  background: var(--red);
  color: var(--surface);
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.art-card h3 {
  margin: 18px 24px 10px;
  font-size: 1.4rem;
  line-height: 1.1;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}
.art-card__sum {
  flex: 0 1 auto;
  margin: 0 24px 18px;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--ink-2);
}
.art-card__tags { margin: 0 24px 20px; }
.art-card__tags span:not(#cursorDot) {
  padding: .25rem .75rem;
  background: var(--gold);
  color: #111111;                                /* 荧光黄底恒黑字（深色模式 var(--ink) 会翻成米色→对比度不足） */
  border: 2px solid var(--line);
  border-radius: 999px !important;               /* 贴纸胶囊形（kill 为 important，此处同级高特异豁免） */
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  transform: rotate(-2deg);
}
.art-card__meta {
  margin: auto 0 0;
  padding: 1rem 1.5rem;
  border-top: 2px solid var(--line);
  background: var(--bg-soft);
  font-size: .75rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}
.art-card__more {
  display: inline-flex;
  align-items: center;
  gap: .4em;
  min-height: 38px;
  padding: .5rem .875rem;
  background: var(--ink);
  color: var(--bg);
  border: 2px solid var(--ink);
  border-radius: 0;
  font-size: .875rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  transition: transform 90ms cubic-bezier(.2, .9, .2, 1),
    background-color 90ms cubic-bezier(.2, .9, .2, 1),
    color 90ms cubic-bezier(.2, .9, .2, 1);
}
.art-card__more:hover {
  transform: translate(-2px, -2px);
  background: var(--gold);
  color: #111111;                                /* 同上：酸性底恒黑字 */
}

/* ===== BROADSIDE 组件⑥：横幅式复选框组（面板与行合一，全站唯一复选框）=====
   原稿 .broadside-checks 面板 + .broadside-check 行：22px 硬方框、
   勾选酸性填充、墨迹缺口勾、钴蓝焦点环。站内复选框仅工具页协议一处，
   label 即行，故面板外观合并到 label 上，不改 HTML。 */
.form-check.checkbox-wrapper-46 {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  max-width: 380px;
  padding: 1rem;
  border: 2px solid var(--ink);
  background: var(--bg);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--ink);
  cursor: pointer;
  user-select: none;
}
.tool__panel .form-check.checkbox-wrapper-46 { color: var(--ink); }  /* 压掉旧深色字 #c7d7ee */
.checkbox-wrapper-46 .cbx {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}
.checkbox-wrapper-46 .cbx > span:first-child {
  position: relative;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  background: var(--bg);
  border: 2px solid var(--ink);
  border-radius: 0;
  transition: background-color 90ms cubic-bezier(.2, .9, .2, 1);
}
.checkbox-wrapper-46 .cbx > span:first-child svg { display: none; }   /* 原稿细线勾→改组件墨迹缺口勾 */
.checkbox-wrapper-46 .cbx > span:first-child::after {
  content: "";
  position: absolute;
  left: 3px;
  top: 4px;
  width: 12px;
  height: 7px;
  border-left: 3px solid #111111;                /* 墨迹勾恒 #111（酸性底上恒黑） */
  border-bottom: 3px solid #111111;
  transform: rotate(-45deg) translate(1px, -1px) scale(0);
  transition: transform 90ms cubic-bezier(.2, .9, .2, 1);
}
.checkbox-wrapper-46 .inp-cbx:hover + .cbx > span:first-child,
.checkbox-wrapper-46 .cbx:hover > span:first-child {
  border-color: var(--ink);                      /* 忠实组件：hover 不变色 */
}
.checkbox-wrapper-46 .inp-cbx:checked + .cbx > span:first-child {
  background: var(--gold);                       /* 酸性填充 */
  border-color: var(--ink);
}
.checkbox-wrapper-46 .inp-cbx:checked + .cbx > span:first-child::after {
  transform: rotate(-45deg) translate(1px, -1px) scale(1);
}
.checkbox-wrapper-46 .inp-cbx:focus-visible + .cbx > span:first-child {
  outline: 3px solid var(--navy);                /* 钴蓝焦点环 */
  outline-offset: 2px;
}
[data-theme="dark"] .form-check.checkbox-wrapper-46 {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--ink);
}
[data-theme="dark"] .checkbox-wrapper-46 .cbx > span:first-child {
  background: var(--surface);
  border-color: var(--ink);
}

/* ===== 图片反馈修复组18（header 图标钮 / 表格链接）===== */
/* 图标钮：统一 2px 墨框方块，hover 反转墨底纸字（替换旧浅蓝 hover） */
.icon-btn {
  width: 44px;
  height: 44px;
  border: 2px solid var(--line);
  background-color: var(--bg-soft);              /* 与相邻开关轨道同色，工具区整齐 */
}
.icon-btn:hover {
  background-color: #111111;
  border-color: #111111;
  color: var(--bg);
}
[data-theme="dark"] .icon-btn:hover {
  background-color: var(--bg);
  border-color: var(--bg);
  color: #111111;
}
/* 表格行内链接：墨黑下划线，hover 信号红（替换全局钴蓝链接） */
.table td a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.table td a:hover { color: var(--red); }

/* ===== BROADSIDE 组件⑩：3D 透视输入框（搜索浮层 + 知识库筛选框）=====
   原稿 0xnihilism：4px 墨框容器 + 3D 旋转 + 10px 硬影（hover 换酸黄双影）、
   3px 墨框输入（hover/focus 浮起 5px 硬影）、酸黄方形钮、顶部标签横幅。
   红色 blur 光斑（shadow__input）弃用（违反零模糊）；#e9b50b→--gold、
   #f0f0f0→--bg-soft、#fff→--surface；硬影豁免组1 kill 需 4 连 :not (4,0,0+)。 */

/* 浮层背景去旧深蓝；panel 顶留标签位、列表改内部滚动（overflow 为标签外探让路） */
.search-overlay { background: rgba(17, 17, 17, .72); }
.search-overlay__panel {
  border: 2px solid var(--line);
  padding: 26px 22px 16px;                       /* 左右 22px 给 3D 旋转/硬影缓冲，防超视界 */
  overflow: visible;
}
.search-results {
  max-height: 44vh;
  min-height: 0;
  overflow-y: auto;
}
.search-hint { margin-top: 26px; }              /* 给 10px 硬影留出下落空间 */

/* 容器：3D 透视 + 10px 墨色硬影 */
.search-box:not(#cursorDot):not(#cursorDot *):not(#cursorRing):not(#cursorRing *),
.searchfield:not(#cursorDot):not(#cursorDot *):not(#cursorRing):not(#cursorRing *) {
  position: relative;
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 20px;
  border: 4px solid var(--ink);
  background: var(--bg-soft);
  transform-style: preserve-3d;
  perspective: 1000px;
  transform: rotateX(10deg) rotateY(-10deg);
  box-shadow: 10px 10px 0 var(--ink) !important;
  transition: transform 400ms cubic-bezier(.23, 1, .32, 1),
    box-shadow 400ms cubic-bezier(.23, 1, .32, 1);
}
.search-box:hover:not(#cursorDot):not(#cursorDot *):not(#cursorRing):not(#cursorRing *),
.searchfield:hover:not(#cursorDot):not(#cursorDot *):not(#cursorRing):not(#cursorRing *) {
  transform: rotateX(5deg) rotateY(1deg) scale(1.05);
  box-shadow: 25px 25px 0 -5px var(--gold), 25px 25px 0 0 var(--ink) !important;
}

/* 顶部标签横幅（仅浮层；筛选框上方空间未知，不加避免遮挡） */
.search-box::before {
  content: "SEARCH";
  position: absolute;
  top: -15px;
  left: 20px;
  padding: 5px 10px;
  background: var(--gold);
  color: #111111;                               /* 酸黄底恒黑字 */
  border: 2px solid var(--ink);
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .1em;
  transform: translateZ(50px);
  z-index: 4;
}

/* 输入：3px 墨框、浮起位移；color 随 --ink（浅色黑/深色纸白） */
.search-box__input,
.searchfield__input {
  border: 3px solid var(--ink) !important;      /* 压组16 border:0 */
  background: var(--surface);
  color: var(--ink);
  transform: translateZ(10px);
  transition: all 400ms cubic-bezier(.23, 1, .32, 1);
}
.search-box__input { padding: 15px; }
.searchfield__input { padding: 15px 44px; }     /* 放大镜/清除钮占位 */
.search-box__input:hover, .search-box__input:focus,
.searchfield__input:hover, .searchfield__input:focus:not(#cursorDot):not(#cursorDot *):not(#cursorRing):not(#cursorRing *) {
  background: var(--bg-soft);
  transform: translateZ(20px) translateX(-5px) translateY(-5px);
  box-shadow: 5px 5px 0 var(--ink) !important;
}
.search-box__input:focus-visible:not(#cursorDot),
.searchfield__input:focus-visible:not(#cursorDot) {
  outline: 2px solid var(--red) !important;     /* 恢复键盘焦点环（压组16 outline:none） */
  outline-offset: 2px;
}
[data-theme="dark"] .search-box__input,
[data-theme="dark"] .searchfield__input {
  background: var(--surface);
  color: var(--ink);
}

/* 方形酸黄钮（×清除/关闭）：translateZ 浮层 + hover 位移硬影 */
.search-box__close,
.searchfield__clear {
  border: 3px solid var(--ink);
  background: var(--gold);
  color: #111111;
  font-weight: 700;
  text-transform: uppercase;
  transform: translateZ(20px);
  z-index: 3;
  transition: all 400ms cubic-bezier(.23, 1, .32, 1);
}
.search-box__close:hover, .searchfield__clear:hover {
  background: var(--gold);
  transform: translateZ(10px) translateX(-5px) translateY(-5px);
  box-shadow: 5px 5px 0 var(--ink) !important;
}
[data-theme="dark"] .search-box__close,
[data-theme="dark"] .searchfield__clear {
  background: var(--gold);
  color: #111111;
}

/* ===== 防超视界：3D 框在窄视口收敛角度/影，页面级裁掉横向溢出 ===== */
html, body { overflow-x: clip; }

@media (max-width: 860px) {
  .search-box, .searchfield { transform: rotateX(6deg) rotateY(-5deg); }
  .search-box:hover:not(#cursorDot):not(#cursorDot *):not(#cursorRing):not(#cursorRing *),
  .searchfield:hover:not(#cursorDot):not(#cursorDot *):not(#cursorRing):not(#cursorRing *) {
    transform: rotateX(4deg) rotateY(0deg) scale(1.02);
    box-shadow: 15px 15px 0 -4px var(--gold), 15px 15px 0 0 var(--ink) !important;
  }
}

/* ===== BROADSIDE 组件⑦：宽边平面拨动开关（主题切换 #themeToggle）=====
   52x28 奶油轨道 + 20px 墨色拇指；激活酸性填充、拇指滑 24px；
   焦点 = 酸性细环 + 墨色粗环。站内标记 label.switch > input + span.slider。 */
.switch { width: 52px; height: 28px; }
.slider {
  background: var(--bg-soft);                  /* stock 奶油轨道 */
  border: 2px solid var(--line);
  transition: background-color 90ms cubic-bezier(.2, .9, .2, 1),
    border-color 90ms cubic-bezier(.2, .9, .2, 1);
}
.slider::before {
  left: 2px;
  top: 2px;
  width: 20px;
  height: 20px;
  background: #111111;                         /* 墨色拇指（组件语义 ink，恒黑见下方 dark 规则） */
  transition: transform 90ms cubic-bezier(.2, .9, .2, 1),
    background-color 90ms cubic-bezier(.2, .9, .2, 1);
}
.switch input:hover + .slider { border-color: var(--line); }   /* 忠实组件：hover 不变色 */
.switch input:checked + .slider { background: var(--gold); }   /* 酸性填充 */
.switch input:checked + .slider::before {
  transform: translateX(24px);                 /* 52 - 4边框 - 4内距 - 20拇指 = 24 */
  background: #111111;                         /* 酸底上拇指恒墨 */
}
.switch input:focus-visible + .slider:not(#cursorDot):not(#cursorRing) {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
  box-shadow: 0 0 0 5px var(--ink) !important; /* 豁免组1 kill（:not(#ID) 抬特异性） */
}
[data-theme="dark"] .switch .slider { background: var(--bg-soft); border-color: var(--line); }
[data-theme="dark"] .switch input:not(:checked) + .slider::before {
  background: #F2EEE4;                         /* 深色下拇指反相为纸色，否则黑上黑不可见 */
}
[data-theme="dark"] .switch input:checked + .slider { background: var(--gold); }

/* ===== BROADSIDE 组件⑧：宽幅搜索输入组（全站搜索浮层 + 文库筛选框）=====
   2px 墨框 + stock 底的框架组：无框输入（焦点纸底+钴蓝嵌环）、
   mono Esc 芯片、右侧墨水附加按钮（× 关闭钮映射组件按钮位）。 */
.search-box {
  display: flex;
  align-items: stretch;
  gap: 0;
  padding: 0;
  border: 2px solid var(--ink);
  background: var(--bg-soft);                  /* stock 轨道 */
}
.search-box__input {
  flex: 1 1 auto;
  min-width: 0;
  border: 0 !important;                        /* 压掉组4/内联容器的 2px 边：组件输入无框 */
  background: transparent;
  height: auto;
  padding: 0.875rem 1rem;
  font: inherit;
  font-size: 1rem;
  line-height: 1.4;
  color: var(--ink);
  box-shadow: none;
}
.search-box__input::placeholder {
  color: var(--muted);
  font-size: 0.875rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.search-box__input:focus:not(#cursorDot) {
  outline: none !important;
  background: var(--bg);                       /* paper 底 */
  box-shadow: inset 0 0 0 2px var(--navy) !important;  /* 钴蓝嵌环（豁免组1 kill） */
}
.search-box__kbd {
  align-self: center;
  margin: 0 8px;
  flex: 0 0 auto;
  font-family: var(--mono, ui-monospace, Consolas, monospace);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  border: 2px solid var(--line);
  background: var(--bg);
  padding: 3px 8px;
}
.search-box__close {                            /* 组件的墨水附加按钮位 */
  align-self: stretch;
  width: auto;
  min-width: 52px;
  padding: 0 1.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #111111;
  color: #F2EEE4;
  border: 0;
  border-left: 2px solid var(--ink);
  font-family: var(--mono, ui-monospace, Consolas, monospace);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 90ms cubic-bezier(.2, .9, .2, 1),
    color 90ms cubic-bezier(.2, .9, .2, 1),
    transform 90ms cubic-bezier(.2, .9, .2, 1);
}
.search-box__close:hover {
  background: var(--navy);                      /* hover 钴蓝 */
  color: #FFFFFF;
  transform: translate(-1px, -1px);
}
[data-theme="dark"] .search-box__close {
  background: var(--bg);
  color: #111111;
  border-left-color: var(--line);
}
[data-theme="dark"] .search-box__close:hover {
  background: var(--navy);
  color: #FFFFFF;
}
/* 文库筛选框 searchfield：同框架语言（icon/清除钮布局保留） */
.searchfield {
  border: 2px solid var(--ink);
  background: var(--bg-soft);
}
.searchfield__input {
  border: 0 !important;
  background: transparent;
  box-shadow: none;
}
.searchfield__input::placeholder {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.searchfield__input:hover { border-color: var(--line); }
.searchfield__input:focus:not(#cursorDot) {
  outline: none !important;
  background: var(--bg);
  box-shadow: inset 0 0 0 2px var(--navy) !important;
}
.searchfield__clear {
  background: #111111;
  color: #F2EEE4;
  border: 0;
}
.searchfield__clear:hover { background: var(--navy); color: #FFFFFF; }
[data-theme="dark"] .searchfield__clear { background: var(--bg); color: #111111; }
[data-theme="dark"] .searchfield__clear:hover { background: var(--navy); color: #FFFFFF; }

/* ===== BROADSIDE 组件⑨：大幅面警告提示（callout + notice）=====
   2px 墨框 + paper 底 + 红色警示方块图标 + 大写显示标题（b 首词独行）。
   变体只换图标方块色：warn/danger 信号红、tip 钴蓝。 */
.callout {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 1.5rem;
  border: 2px solid var(--ink);
  border-left: 2px solid var(--ink);
  background: var(--bg);
  color: var(--ink);
  font-size: 0.95rem;
  line-height: 1.6;
}
.callout::before {
  content: "!";
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  margin-top: 2px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--red);
  color: #FBF8F1;
  font-family: var(--display, "Arial Black", "Microsoft YaHei", sans-serif);
  font-size: 16px;
  font-weight: 900;
  line-height: 1;
  opacity: 1;
  border-radius: 0;
  transform: none;
}
.callout.tip::before { background: var(--navy); }   /* tip 变体钴蓝图标 */
.callout p { margin: 0; }
.callout b:first-child {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 1.125rem;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.callout.warn b:first-child,
.callout.danger b:first-child,
.callout.tip b:first-child { color: var(--ink); }   /* 压掉各变体旧语义色 */
[data-theme="dark"] .callout {
  background: var(--surface);
  border-color: var(--line);
  color: var(--ink);
}
[data-theme="dark"] .callout b:first-child { color: var(--ink); }
[data-theme="dark"] .callout::before { color: #FBF8F1; }  /* 红方块上感叹号恒纸色 */
/* notice（首页/关于/资质的注意区块）：同框架，既有 svg 图标染信号红 */
.notice {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 1.5rem;
  border: 2px solid var(--ink);
  border-left: 2px solid var(--ink);
  background: var(--bg);
  color: var(--ink);
  font-size: 0.95rem;
  line-height: 1.6;
}
.notice svg {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  margin-top: 2px;
  color: var(--red);
}
.notice p { margin: 0; }
[data-theme="dark"] .notice {
  background: var(--surface);
  border-color: var(--line);
  color: var(--ink);
}
[data-theme="dark"] .notice svg { color: var(--red); }

/* ===== C. 全站排版审计修复：tool 白底字色体系 + art 区 + dark 按钮令牌 + 语义点 ===== */
.tool__panel { color: var(--ink); }                           /* 组7 白底已生效，压掉深底配套浅字 */
.tool__panel::after { content: none; }                        /* 蓝色光斑 */
.tool__panel h3 { color: var(--ink); }
.tool__panel .tool__note { color: var(--muted); }
.tool__panel .form-label { color: var(--ink); }
.tool__panel .form-hint,
.tool__panel .opt,
.tool__panel .form-check small { color: var(--muted); }
.tool__panel .form-error { color: var(--red); }
.tool__panel .form-check { color: var(--ink); }
.tool__panel .form-actions { border-top-color: var(--line); }
.result__row { border-bottom-color: var(--line); }
.result__k { color: var(--muted); }
.result__v { color: var(--ink); }
.result__row--total { border-top-color: var(--ink); }
.result__row--total .result__k { color: var(--ink); }
.result__row--total .result__v { color: var(--red); }         /* 总额：信号红 */
.art-cat { color: var(--red); }                               /* 黑蒙层徽标粉字 */
.art-sum { color: #C9C3B4 !important; }
.art-meta { color: #A8A296; }
.art-meta b { color: #F2EEE4; }
.stepbar__item.is-active::before { color: var(--bg); }        /* 钴蓝底粉箭头 → 纸白 */
[data-theme="dark"] .btn--outline {
  --btn-grad: none;
  --btn-fg: var(--ink);
  --btn-text-shadow: none;
}
[data-theme="dark"] .btn--outline:hover { --btn-fg: var(--gold); }
.toast--ok .toast__dot { background: var(--gold); }           /* 语义绿点 → 酸性 */

/* ===== 组20：文库筛选框缩小（防遮挡下方分类栏）+ 红箭头自指提示 ===== */
.filterbar .searchfield:not(#cursorDot):not(#cursorDot *):not(#cursorRing):not(#cursorRing *) {
  padding: 10px 12px;
  gap: 10px;
  transform: rotateX(4deg) rotateY(-4deg);
  box-shadow: 6px 6px 0 var(--ink) !important;
  margin-bottom: 16px;
}
.filterbar .searchfield:hover:not(#cursorDot):not(#cursorDot *):not(#cursorRing):not(#cursorRing *) {
  transform: rotateX(3deg) rotateY(0deg) scale(1.02);
  box-shadow: 12px 12px 0 -3px var(--gold), 12px 12px 0 0 var(--ink) !important;
}
.filterbar .searchfield__input { padding: 10px 40px; }
.sf-hint {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  margin: 0 0 -4px 8px;
  pointer-events: none;
}
.sf-hint__bar {
  border: 2px solid var(--ink);
  background: var(--surface);
  color: var(--red);
  font-weight: 700;
  font-size: 0.9rem;
  line-height: 1.2;
  padding: 0.55rem 0.8rem;
  white-space: nowrap;
}
.sf-hint__arrow { width: 130px; height: 62px; display: block; flex: none; }
[data-theme="dark"] .sf-hint__bar { background: var(--surface); color: var(--red); border-color: var(--line); }
@media (max-width: 760px) {
  .sf-hint__arrow { width: 96px; height: 46px; }
  .sf-hint__bar { font-size: 0.8rem; white-space: normal; }
}

/* ---------- 组21：全站按钮化交互（Uiverse Voxybuns 立体按压形态） ----------
   只加交互形态：方角控件统一 .75em 圆角、无框链接加 currentColor 描边环、
   静态上抬 -0.2em、hover 再抬到 -0.33em、active 压回 0。
   颜色/字号/文案一律不改；正文中内链与未上线（aria-disabled）占位不在此列。 */
.btn,
button,
input[type="submit"], input[type="button"], input[type="reset"],
.header__cta,
.nav__link,
.art-card__more {
  border-radius: .75em;
}

/* 无框链接类：currentColor 描边环（取元素自身文字色，不引入新颜色） */
.nav__link,
.footer__links a:not([aria-disabled="true"]),
.footer__bottom a:not([aria-disabled="true"]) {
  outline: 2px solid currentColor;
  outline-offset: 1px;
}

.btn,
button,
input[type="submit"], input[type="button"], input[type="reset"],
.header__cta, .icon-btn, .burger, .chip, .pager__btn, .fav-btn,
.search-box__close, .searchfield__clear, .filterbar__clear, .toast__close, .totop,
.nav__link, .art-card__more,
.footer__links a:not([aria-disabled="true"]),
.footer__bottom a:not([aria-disabled="true"]) {
  transition: transform .1s ease, color .2s var(--ease), border-color .2s var(--ease),
    background .2s var(--ease), background-color .2s ease, box-shadow .2s var(--ease);
}

@media (prefers-reduced-motion: no-preference) {
  .btn,
  button,
  input[type="submit"], input[type="button"], input[type="reset"],
  .header__cta, .icon-btn, .burger, .chip, .pager__btn, .fav-btn,
  .search-box__close, .searchfield__clear, .filterbar__clear, .toast__close, .totop,
  .nav__link, .art-card__more,
  .footer__links a:not([aria-disabled="true"]),
  .footer__bottom a:not([aria-disabled="true"]) {
    transform: translateY(-0.2em);
  }
  .btn:hover,
  button:hover,
  input[type="submit"]:hover, input[type="button"]:hover, input[type="reset"]:hover,
  .header__cta:hover, .icon-btn:hover, .burger:hover, .chip:hover, .fav-btn:hover,
  .search-box__close:hover, .searchfield__clear:hover, .filterbar__clear:hover,
  .toast__close:hover, .totop:hover,
  .nav__link:hover, .art-card__more:hover,
  .footer__links a:not([aria-disabled="true"]):hover,
  .footer__bottom a:not([aria-disabled="true"]):hover {
    transform: translateY(-0.33em);
  }
  .btn:active,
  button:active,
  input[type="submit"]:active, input[type="button"]:active, input[type="reset"]:active,
  .header__cta:active, .icon-btn:active, .burger:active, .chip:active, .fav-btn:active,
  .search-box__close:active, .searchfield__clear:active, .filterbar__clear:active,
  .toast__close:active, .totop:active,
  .nav__link:active, .art-card__more:active,
  .footer__links a:not([aria-disabled="true"]):active,
  .footer__bottom a:not([aria-disabled="true"]):active {
    transform: translateY(0);
  }
  /* 分页钮 hover 规则链更长（:not×2），同特异性靠后覆盖；禁用/当前页除外 */
  .pager__btn:hover:not(:disabled):not(.is-active) {
    transform: translateY(-0.33em);
  }
}

/* 焦点可达性：必须在描边环之后声明，压过恒定 outline */
.nav__link:focus-visible,
.footer__links a:focus-visible,
.footer__bottom a:focus-visible,
.art-card__more:focus-visible {
  outline: var(--btn-ring);
  outline-offset: 3px;
}

/* ---------- 组21B：补齐其余可点击元素（用户反馈「还有很多很多没有实现按钮」） ----------
   范围扩到所有 a[href]：正文内链、表格链、标题链、面包屑、卡片标题链等。
   底线不变：颜色一律不改（描边环取 currentColor）；未上线占位（aria-disabled）不按钮化。
   已有独立布局的组件（搜索结果行 / 目录 TOC / 标签药丸）只共享描边环与立体位移，不重排其 padding。 */
a[href]:not([aria-disabled="true"]) {
  border-radius: .75em;
  outline: 2px solid currentColor;
  outline-offset: 1px;
  transition: transform .1s ease, color .2s var(--ease), border-color .2s var(--ease),
    background .2s var(--ease), background-color .2s ease, box-shadow .2s var(--ease);
}

/* 文内/标题/表格/面包屑/页脚链接：inline-block + 内边距 → 按钮形态。
   用结构性选择器（p/td/h2-h5/crumb/art-body li/footer）而非 :not([class])，
   避免命中 search-result a（块级行布局）、art-toc__list a（flex 目录行）、art-tags a（药丸）。 */
p a[href]:not([aria-disabled="true"]),
td a[href]:not([aria-disabled="true"]),
th a[href]:not([aria-disabled="true"]),
h2 a[href]:not([aria-disabled="true"]),
h3 a[href]:not([aria-disabled="true"]),
h4 a[href]:not([aria-disabled="true"]),
h5 a[href]:not([aria-disabled="true"]),
.crumb a[href]:not([aria-disabled="true"]),
.art-body li a[href]:not([aria-disabled="true"]),
.footer__links a[href]:not([aria-disabled="true"]),
.footer__bottom a[href]:not([aria-disabled="true"]) {
  display: inline-block;
  padding: .2em .7em;
}

/* 标签药丸保持 999 圆角（与 chip 同策略：药丸不改方）——等特异性靠后声明压过 .75em */
.art-tags a[href] { border-radius: 999px; }

@media (prefers-reduced-motion: no-preference) {
  a[href]:not([aria-disabled="true"]) {
    transform: translateY(-0.2em);
  }
  a[href]:not([aria-disabled="true"]):hover {
    transform: translateY(-0.33em);
  }
  a[href]:not([aria-disabled="true"]):active {
    transform: translateY(0);
  }
}

/* 焦点环压过恒定描边（全站链接统一） */
a[href]:not([aria-disabled="true"]):focus-visible {
  outline: var(--btn-ring);
  outline-offset: 3px;
}

/* ---------- 组22：深色模式开关（Uiverse.io by Galahhad 日/云/月/星空，MIT） ----------
   接管全站 themeToggle；尺寸 --toggle-size:13px（容器约 73×32.5px），窄屏 11px。
   两处站点化适配（不改视觉）：
   ① checkbox 用 1px 透明层代替 display:none —— 保持键盘 Tab 可达，焦点环落在容器上；
   ② 外层 .theme-wrap 承接 tooltip（原 .switch 的 tooltip-container 包在 label 外，
      避免 .theme-switch * 的 font-size reset 污染 tooltip 字号）。
   旧 .switch 样式保留给 tools\样板-工具页.html。 */
.theme-switch {
  --toggle-size: 13px;
  position: relative;
  display: inline-flex;
  flex: none;
  align-self: center;
  vertical-align: middle;
}
.theme-switch, .theme-switch *, .theme-switch *::before, .theme-switch *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-size: var(--toggle-size);
}
.theme-wrap { position: relative; display: inline-flex; align-items: center; flex: none; }

.theme-switch__container {
  width: 5.625em;
  height: 2.5em;
  background-color: #3d7eae;
  border-radius: 6.25em;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0em -0.062em 0.062em rgba(0, 0, 0, 0.25), 0em 0.062em 0.125em rgba(255, 255, 255, 0.94);
  transition: .5s cubic-bezier(0, -0.02, 0.4, 1.25);
  position: relative;
}
.theme-switch__container::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  box-shadow: 0em 0.05em 0.187em rgba(0, 0, 0, 0.25) inset, 0em 0.05em 0.187em rgba(0, 0, 0, 0.25) inset;
  border-radius: 6.25em;
}

/* 可聚焦的隐藏 checkbox（替代原 display:none；label 点击照常转发） */
.theme-switch__checkbox {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  opacity: 0;
  margin: 0;
  padding: 0;
  pointer-events: none;
}
.theme-switch__checkbox:focus-visible + .theme-switch__container {
  outline: var(--btn-ring);
  outline-offset: 3px;
}

.theme-switch__circle-container {
  width: 3.375em;
  height: 3.375em;
  background-color: rgba(255, 255, 255, 0.1);
  position: absolute;
  left: calc((3.375em - 2.5em) / 2 * -1);
  top: calc((3.375em - 2.5em) / 2 * -1);
  border-radius: 6.25em;
  box-shadow: inset 0 0 0 3.375em rgba(255, 255, 255, 0.1), 0 0 0 0.625em rgba(255, 255, 255, 0.1), 0 0 0 1.25em rgba(255, 255, 255, 0.1);
  display: flex;
  transition: .3s cubic-bezier(0, -0.02, 0.35, 1.17);
  pointer-events: none;
}
.theme-switch__circle-container:hover {
  left: calc((3.375em - 2.5em) / 2 * -1 + 0.187em);
}

.theme-switch__sun-moon-container {
  pointer-events: auto;
  position: relative;
  z-index: 2;
  width: 2.125em;
  height: 2.125em;
  margin: auto;
  border-radius: 6.25em;
  background-color: #ECCA2F;
  box-shadow: 0.062em 0.062em 0.062em 0em rgba(254, 255, 239, 0.61) inset, 0em -0.062em 0.062em 0em #a1872a inset;
  filter: drop-shadow(0.062em 0.125em 0.125em rgba(0, 0, 0, 0.25)) drop-shadow(0em 0.062em 0.125em rgba(0, 0, 0, 0.25));
  overflow: hidden;
  transition: .5s cubic-bezier(0, -0.02, 0.4, 1.25);
}
.theme-switch__moon {
  transform: translateX(100%);
  width: 100%;
  height: 100%;
  background-color: #c4c9d1;
  border-radius: inherit;
  box-shadow: 0.062em 0.062em 0.062em 0em rgba(254, 255, 239, 0.61) inset, 0em -0.062em 0.062em 0em #969696 inset;
  transition: .5s cubic-bezier(0, -0.02, 0.4, 1.25);
  position: relative;
}
.theme-switch__spot {
  position: absolute;
  top: 0.75em;
  left: 0.312em;
  width: 0.75em;
  height: 0.75em;
  border-radius: 6.25em;
  background-color: #959db1;
  box-shadow: 0em 0.0312em 0.062em rgba(0, 0, 0, 0.25) inset;
}
.theme-switch__spot:nth-of-type(2) {
  width: 0.375em;
  height: 0.375em;
  top: 0.937em;
  left: 1.375em;
}
.theme-switch__spot:nth-last-of-type(3) {
  width: 0.25em;
  height: 0.25em;
  top: 0.312em;
  left: 0.812em;
}
.theme-switch__clouds {
  width: 1.25em;
  height: 1.25em;
  background-color: #f3fdff;
  border-radius: 6.25em;
  position: absolute;
  bottom: -0.625em;
  left: 0.312em;
  box-shadow: 0.937em 0.312em #f3fdff, -0.312em -0.312em #AACADF,
    1.437em 0.375em #f3fdff, 0.5em -0.125em #AACADF,
    2.187em 0 #f3fdff, 1.25em -0.062em #AACADF,
    2.937em 0.312em #f3fdff, 2em -0.312em #AACADF,
    3.625em -0.062em #f3fdff, 2.625em 0 #AACADF,
    4.5em -0.312em #f3fdff, 3.375em -0.437em #AACADF,
    4.625em -1.75em 0 0.437em #f3fdff, 4em -0.625em #AACADF,
    4.125em -2.125em 0 0.437em #f3fdff;
  transition: .5s cubic-bezier(0, -0.02, 0.4, 1.25);
}
.theme-switch__stars-container {
  position: absolute;
  color: #fff;
  top: -100%;
  left: 0.312em;
  width: 2.75em;
  height: auto;
  transition: .5s cubic-bezier(0, -0.02, 0.4, 1.25);
}

/* checked（= 深色模式，由 content.js initTheme 同步）→ 夜晚 */
.theme-switch__checkbox:checked + .theme-switch__container {
  background-color: #1d1f2c;
}
.theme-switch__checkbox:checked + .theme-switch__container .theme-switch__circle-container {
  left: calc(100% - ((3.375em - 2.5em) / 2 * -1) - 3.375em);
}
.theme-switch__checkbox:checked + .theme-switch__container .theme-switch__circle-container:hover {
  left: calc(100% - ((3.375em - 2.5em) / 2 * -1) - 3.375em - 0.187em);
}
.theme-switch__checkbox:checked + .theme-switch__container .theme-switch__moon {
  transform: translate(0);
}
.theme-switch__checkbox:checked + .theme-switch__container .theme-switch__clouds {
  bottom: -4.062em;
}
.theme-switch__checkbox:checked + .theme-switch__container .theme-switch__stars-container {
  top: 50%;
  transform: translateY(-50%);
}

@media (max-width: 760px) {
  .theme-switch { --toggle-size: 11px; }
}

/* ---------- 组23：去描边框（用户反馈「这些不需要框」） ----------
   范围：品牌标识（页头+页脚 .brand）、页脚导航/底栏链接、电话号码链接。
   只去掉描边框 outline，圆角/上抬/内边距等按钮形态保留；
   键盘焦点环（focus-visible）不删：去掉的规则都带 :not(:focus-visible)，
   聚焦时回落到组21/21B 的焦点环规则。 */
a.brand[href]:not([aria-disabled="true"]):not(:focus-visible),
a[href^="tel:"]:not([aria-disabled="true"]):not(:focus-visible),
.footer__links a:not([aria-disabled="true"]):not(:focus-visible),
.footer__bottom a:not([aria-disabled="true"]):not(:focus-visible) {
  outline: none;
}

/* ---------- 组24：消灭「框中框」（用户反馈「不要出现框中框现象，全部查找修改」） ----------
   根因：这些链接自身已有可见 border（2px/1px），组21B 又给所有 a[href] 加了
   2px currentColor 描边环 + offset，双矩形叠加成框中框。
   处置：静息态去掉外层描边环，只留自身边框；键盘焦点环保留（:not(:focus-visible)）。
   例外：.btn--text 自身边框透明（无底无描边），必须留环才有按钮感，故排除。 */
a.btn[href]:not(.btn--text):not([aria-disabled="true"]):not(:focus-visible),
a.header__cta[href]:not([aria-disabled="true"]):not(:focus-visible),
a.art-card__more[href]:not([aria-disabled="true"]):not(:focus-visible),
a.chip[href]:not([aria-disabled="true"]):not(:focus-visible),
.art-tags a[href]:not([aria-disabled="true"]):not(:focus-visible) {
  outline: none;
}
/* 正文内链：外圈已有描边环，去掉内层虚线底线避免底线贴环叠双线；
   aria-disabled 占位无环，保留虚线作为唯一可点标识 */
.art-body a[href]:not([aria-disabled="true"]) {
  border-bottom: 0;
}

/* ---------- 组25：去面包屑链接描边框（用户反馈「这个框去掉」） ----------
   面包屑 .crumb 里的链接只去掉组21B 加的外圈描边环，
   圆角/内边距/上抬等按钮形态与键盘焦点环保留。 */
.crumb a[href]:not([aria-disabled="true"]):not(:focus-visible) {
  outline: none;
}

/* ---------- 组26：文库索引结构强化（分组导语 + 分区说明） ---------- */
.kb-group__desc {
  margin: -4px 0 18px;
  color: var(--muted);
  font-size: .96em;
  line-height: 1.7;
}
.kb-groups__note {
  margin: 4px 0 22px;
  padding: 14px 18px;
  background: var(--bg-soft);
  border-left: 3px solid var(--navy);
  color: var(--ink-2);
  font-size: .96em;
  line-height: 1.75;
}
.kb-groups__note a { color: var(--navy); }

/* ---------- 组27：站宠「阿哲」（像素建筑工人）—— 黄黑配色 ---------- */
#pet {
  position: fixed;
  left: 24px;
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  z-index: 3000;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: grab;
  outline: none;
  touch-action: none;
  will-change: transform;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}
#pet.dragging { cursor: grabbing; }
.pet-panel { cursor: pointer; }
#pet:focus-visible .pet-vid { filter: drop-shadow(0 0 6px #FFD400); }
.pet-vid {
  height: 112px;
  width: auto;
  display: block;
  image-rendering: pixelated;
  pointer-events: none;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .35));
}
.pet-panel {
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  width: min(300px, calc(100vw - 28px));
  background: #16161A;
  border: 2px solid #FFD400;
  border-radius: 10px;
  color: #FFE58A;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .45);
}
.pet-panel::after {
  content: "";
  position: absolute;
  left: var(--tailx, 50%);
  bottom: -9px;
  width: 14px;
  height: 14px;
  margin-left: -7px;
  background: #16161A;
  border-right: 2px solid #FFD400;
  border-bottom: 2px solid #FFD400;
  transform: rotate(45deg);
  z-index: -1;
}
.pet-strip {
  height: 8px;
  border-radius: 8px 8px 0 0;
  background: repeating-linear-gradient(-45deg, #FFD400 0 7px, #16161A 7px 14px);
}
.pet-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 7px 12px 0;
  font-size: 12px;
}
.pet-head b { color: #FFD400; letter-spacing: .24em; font-weight: 600; }
.pet-stage {
  font-size: 10px;
  color: #FFD400;
  border: 1px solid rgba(255, 212, 0, .55);
  border-radius: 999px;
  padding: 1px 8px;
  letter-spacing: .1em;
  white-space: nowrap;
}
.pet-echo {
  padding: 5px 12px 0;
  font-size: 11.5px;
  color: rgba(255, 229, 138, .55);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pet-line {
  padding: 6px 12px 10px;
  font-size: 14.5px;
  line-height: 1.7;
  min-height: 1.7em;
  word-break: break-word;
}
.pet-line.dim { color: rgba(255, 229, 138, .6); }
.pet-choices { display: grid; gap: 6px; padding: 0 10px 10px; }
.pet-opt {
  position: relative;
  display: block;
  width: 100%;
  text-align: left;
  font-size: 13px;
  line-height: 1.5;
  padding: 7px 10px 7px 30px;
  background: #FFD400;
  color: #16161A;
  border: 2px solid #16161A;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 2px 0 rgba(0, 0, 0, .55);
  transition: transform .12s ease, background .15s ease;
}
.pet-opt .k {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 10px;
  font-weight: 700;
  opacity: .55;
}
.pet-opt:hover { background: #FFE58A; transform: translateY(-1px); }
.pet-opt:active { transform: translateY(1px); box-shadow: none; }
.pet-opt:focus-visible { outline: 3px solid #FF3D1F; outline-offset: 2px; }
@media (max-width: 760px) {
  .pet-vid { height: 82px; }
  .pet-panel { width: min(264px, calc(100vw - 20px)); }
  .pet-line { font-size: 13.5px; }
}

/* ---------- 组27·续：气泡头部「i」人物资料 ---------- */
.pet-head-right { display: inline-flex; align-items: center; gap: 6px; }
.pet-idbtn {
  width: 18px;
  height: 18px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(255, 212, 0, .55);
  background: transparent;
  color: #FFD400;
  font: italic 700 11px/1 Georgia, "Times New Roman", serif;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transform: none;
  transition: background .15s ease, color .15s ease;
}
.pet-idbtn:hover { background: #FFD400; color: #16161A; transform: none; }
.pet-idbtn:focus-visible { outline: 2px solid #FF3D1F; outline-offset: 2px; }
.pet-info { padding: 6px 12px 12px; font-size: 12.5px; }
.pet-info b {
  display: block;
  color: #FFD400;
  letter-spacing: .3em;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 6px;
}
.pet-info div { line-height: 1.75; color: rgba(255, 229, 138, .8); word-break: break-word; }
.pet-info div i {
  font-style: normal;
  display: inline-block;
  width: 40px;
  color: rgba(255, 229, 138, .45);
  font-size: 11px;
  letter-spacing: .1em;
}
.pet-info .pet-info__cur { margin-top: 4px; color: #FFD400; }
.pet-panel.is-info .pet-echo,
.pet-panel.is-info .pet-line,
.pet-panel.is-info .pet-choices { display: none; }
