/* ==========================================================================
   V2.1 页面结构层样式（style-v12.css）
   锚点目录（吸顶条 + 宽屏侧栏）· 首屏核心信息区
   --------------------------------------------------------------------------
   V2.2 起取消「展开 / 收起」：正文完整呈现，不再有限高、渐隐与折叠按钮。
   ========================================================================== */

/* ---------------- 1. 模块 ---------------- */
.v12-sec { scroll-margin-top: calc(var(--nav-h, 62px) + 64px); }
.v12-body { position: relative; }

/* ---------------- 2b. 核心速览条（首屏摘要卡） ---------------- */
.v12-strip {
  margin: 0 0 18px; padding: 12px 15px;
  background: var(--paper-3, rgba(0,0,0,.025));
  border: 1px solid var(--line); border-left: 3px solid var(--cinnabar, #b3402f);
  border-radius: var(--r-m, 12px);
}
.v12-strip-t { font-size: 12px; font-weight: 600; color: var(--ink-3); letter-spacing: .04em; margin-bottom: 9px; }
.v12-strip-c { display: flex; flex-direction: column; gap: 9px; }
.v12-row { display: flex; align-items: baseline; flex-wrap: wrap; gap: 7px; }
.v12-row-t { flex: 0 0 auto; width: 56px; font-size: 12px; color: var(--ink-4); padding-top: 2px; }
.v12-chip {
  display: inline-block; padding: 3px 10px; font-size: 13px; line-height: 1.5;
  color: var(--ink-2); text-decoration: none;
  background: var(--paper, #fff); border: 1px solid var(--line);
  border-radius: 999px; transition: .15s;
}
.v12-chip:hover { color: var(--cinnabar, #b3402f); border-color: var(--cinnabar, #b3402f); background: var(--cinnabar-bg, transparent); }

/* ---------------- 2. 首屏核心信息区 ---------------- */
.v12-core {
  margin: 0 0 18px; padding: 13px 15px 4px;
  background: var(--paper-3, rgba(0, 0, 0, .02));
  border: 1px solid var(--line); border-radius: var(--r-m, 12px);
}
.v12-core-head { display: flex; align-items: baseline; gap: 9px; margin-bottom: 10px; }
.v12-core-head b { font-size: 14px; color: var(--ink); }
.v12-core-head b::before { content: ""; display: inline-block; width: 3px; height: 13px; background: var(--cinnabar); border-radius: 2px; margin-right: 7px; vertical-align: -1px; }
.v12-core-head span { font-size: 12px; color: var(--ink-4); }
.v12-core-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(238px, 1fr)); gap: 0 16px; }
.v12-core .v12-sec { margin-bottom: 0; }
.v12-core .sec-head { margin: 4px 0 8px; }
.v12-core .sec-head h2 { font-size: 14.5px; margin: 0; }
.v12-core .sec-head small { display: none; }
.v12-core .chain { gap: 7px; }
.v12-core .chain-item { padding: 7px 9px; }
.v12-core .chain-item .cx { display: none; }

/* ---------------- 3. 吸顶目录条 ---------------- */
.v12-bar {
  position: sticky; top: var(--nav-h, 62px); z-index: 40;
  margin: 0 0 14px; padding: 0;
  background: color-mix(in srgb, var(--paper, #fff) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.v12-bar-in {
  display: flex; align-items: center; gap: 6px;
  overflow-x: auto; scrollbar-width: none; padding: 8px 2px;
}
.v12-bar-in::-webkit-scrollbar { display: none; }
.v12-bar-t { flex: 0 0 auto; font-size: 11.5px; color: var(--ink-4); letter-spacing: .08em; padding-right: 4px; }
.v12-a {
  flex: 0 0 auto; font-size: 12.5px; line-height: 1; white-space: nowrap;
  padding: 6px 11px; border-radius: 999px; text-decoration: none;
  color: var(--ink-3); border: 1px solid var(--line); background: var(--card, transparent);
  transition: .15s;
}
.v12-a:hover { color: var(--cinnabar); border-color: var(--cinnabar); }
.v12-a.on { color: #fff; background: var(--cinnabar); border-color: var(--cinnabar); font-weight: 600; }

/* ---------------- 4. 宽屏侧栏目录 ---------------- */
.v12-rail {
  position: fixed; width: 190px; z-index: 30; display: none;
  max-height: calc(100vh - 190px); overflow-y: auto;
}
.v12-rail::before {
  content: ""; position: absolute; left: 7px; top: 12px; bottom: 12px; width: 1px; background: var(--line);
}
.v12-rail-t { font-size: 11.5px; color: var(--ink-4); letter-spacing: .1em; padding: 0 0 8px 18px; }
.v12-rail .v12-a {
  display: block; width: 100%; margin: 0 0 4px 10px; padding: 5px 10px;
  border: 0; background: none; border-radius: 0; font-size: 12.5px;
  border-left: 2px solid transparent; white-space: normal; text-align: left;
}
.v12-rail .v12-a.on { color: var(--cinnabar); background: none; border-left-color: var(--cinnabar); font-weight: 700; }

@media (max-width: 640px) {
  .v12-core-grid { grid-template-columns: 1fr; }
  .v12-bar { top: calc(var(--nav-h, 62px) - 4px); }
}
