/* ============================================================
   OKRVV 单页版式系统  webpage.css  2026-11-12
   方向：档案 / Dossier —— 单页是「公司档案里取出的一页纸」
   token  accent #e64545 | ink #333 | body #666 | mute #999 | rule #eee | paper #f5f7fa
   type   22 / 18 / 16 / 13 / 11        weight 400 / 500 / 600
   space  4 / 8 / 12 / 16 / 24 / 32     radius 8(容器) 4(小元素)  border 1px hairline  无阴影
   唯一记忆点＝档案条(.wp-strip)，其余全部保持安静
   ============================================================ */

/* ---------- 骨架 ---------- */
.wp-wrap { margin:0 auto; width:1440px; padding:0 0 32px; background:#fff; }
@media (max-width:1580px) { .wp-wrap { width:1200px; } }
@media (max-width:1240px) { .wp-wrap { width:auto; padding:0 16px 24px; } }

/* ---------- 档案条：整组单页共用的身份 ---------- */
.wp-strip { display:flex; align-items:flex-end; justify-content:space-between; gap:24px; padding:16px 0 12px; border-bottom:1px solid #eee; }
.wp-strip-t { display:flex; align-items:center; gap:12px; min-width:0; }
.wp-bar { flex:none; width:3px; height:24px; background:#e64545; }
.wp-h1 { margin:0; font-size:22px; line-height:1.3; font-weight:600; color:#333; letter-spacing:0; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
.wp-meta { flex:none; display:flex; }
.wp-meta-i { padding:0 16px; border-left:1px solid #eee; }
.wp-meta-i:first-child { border-left:0; }
.wp-meta-i span { display:block; font-size:11px; line-height:1.4; color:#666; font-weight:400; }
.wp-meta-i b { display:block; margin-top:4px; font-size:13px; line-height:1.4; color:#666; font-weight:500; font-variant-numeric:tabular-nums; }

/* ---------- 两栏：正文 + 目录 ---------- */
/* 档案页收在 1028（704 正文 + 24 + 300 目录）并在白色容器内居中：
   1200 容器下两侧页边各 86px；档案条与正文同左边缘，标题与正文对齐 */
.wp-strip, .wp-main { max-width:1028px; margin-left:auto; margin-right:auto; }
.wp-main { display:flex; align-items:flex-start; gap:24px; margin-top:24px; }
.wp-doc { flex:none; width:704px; }
/* 106 = 吸顶搜索条实测高 90px + 16px 刻度留白；
   用 16px 会让面板顶部连同「站内信息」标题被吸顶条压住 */
.wp-aside { flex:none; width:300px; position:sticky; top:106px; }
/* 1060 = 1028 内容组 + 16x2 容器内边距；低于此宽度改单栏，否则横向溢出 */
@media (max-width:1060px) {
  .wp-strip, .wp-main { max-width:none; }
  .wp-main { display:block; }
  .wp-doc { width:auto; }
  .wp-aside { position:static; width:auto; margin-top:24px; }
}

/* ---------- 正文排版契约：编辑器里写什么就落出什么层级 ---------- */
/* 44em = 16px 下约 44 个汉字一行，中文正文可读上限内最饱满的测度 */
.wp-doc { font-size:16px; line-height:1.75; color:#666; }
.wp-doc p { margin:0 0 16px; }
.wp-doc p:last-child { margin-bottom:0; }
/* scroll-margin-top 同 106：点目录跳转后标题要落在吸顶条下方而不是其下 */
.wp-doc h2 { margin:32px 0 12px; padding-bottom:8px; font-size:18px; line-height:1.35; font-weight:600; color:#333; border-bottom:1px solid #eee; scroll-margin-top:106px; }
.wp-doc h2:first-child { margin-top:0; }
.wp-doc h3 { margin:24px 0 8px; font-size:16px; line-height:1.5; font-weight:600; color:#333; }
.wp-doc h4 { margin:16px 0 4px; font-size:13px; line-height:1.5; font-weight:600; color:#999; }
.wp-doc ul, .wp-doc ol { margin:0 0 16px; padding-left:24px; }
.wp-doc li { margin-bottom:8px; }
.wp-doc li:last-child { margin-bottom:0; }
.wp-doc ul li { list-style:none; position:relative; }
.wp-doc ul li:before { content:""; position:absolute; left:-16px; top:11px; width:4px; height:4px; background:#e64545; }
/* 正文链接不铺红，避免与「当前目录项」抢强调色；hover 才转 accent */
.wp-doc a { color:#333; text-decoration:underline; text-underline-offset:3px; text-decoration-color:#eee; }
.wp-doc a:hover { color:#e64545; text-decoration-color:#e64545; }
.wp-doc a:focus-visible { outline:2px solid #e64545; outline-offset:2px; }
/* 术语行：定义式，不靠卡片。顶线交给上方 h2 的 hairline，避免两条平行线打架；
   dt 不画底线，否则与 dd 的底线错位 */
.wp-doc dl { margin:0 0 16px; }
.wp-doc dt { float:left; clear:left; width:140px; margin:0; padding:12px 12px 12px 0; font-size:13px; line-height:1.5; font-weight:500; color:#666; }
.wp-doc dd { margin:0; padding:12px 0; min-height:41px; color:#666; border-bottom:1px solid #eee; }
.wp-doc dd:last-child { border-bottom:0; }
/* 提示条：图片横幅以外的地方不用渐变 */
.wp-doc blockquote { margin:0 0 16px; padding:12px 16px; background:#f5f7fa; border-left:3px solid #e64545; color:#666; }
.wp-doc blockquote p { margin:0; }
/* 真表格：hairline，无斑马纹 */
.wp-doc table { width:100%; max-width:100%; margin:0 0 16px; border-collapse:collapse; font-size:13px; }
.wp-doc th { padding:8px 12px; text-align:left; font-weight:600; color:#333; background:#f5f7fa; border-bottom:1px solid #eee; }
.wp-doc td { padding:8px 12px; color:#666; border-bottom:1px solid #eee; }
.wp-doc img { max-width:100%; height:auto; border:1px solid #eee; border-radius:4px; }
.wp-doc hr { margin:24px 0; border:0; border-top:1px solid #eee; }
.wp-doc pre, .wp-doc code { padding:2px 4px; font-size:13px; font-family:Consolas,Monaco,monospace; background:#f5f7fa; border-radius:4px; color:#333; }

/* ---------- 空页状态：空白也是入口，不写安慰话 ---------- */
.wp-empty h2 { margin-top:0; }

/* ---------- 侧栏 ---------- */
.wp-nav { padding:12px 0; border:1px solid #eee; border-radius:8px; background:#fff; }
.wp-nav + .wp-nav { margin-top:16px; }
.wp-nav-h { margin:0; padding:0 16px 8px; font-size:13px; line-height:1.5; font-weight:600; color:#333; }
.wp-nav ul { margin:0; padding:0; list-style:none; }
.wp-nav li { margin:0; }
.wp-nav a { display:block; padding:8px 16px; font-size:13px; line-height:1.5; color:#666; text-decoration:none; border-left:2px solid transparent; }
.wp-nav a:hover { color:#333; background:#f5f7fa; }
.wp-nav a:focus-visible { outline:2px solid #e64545; outline-offset:-2px; }
/* 页面级当前项＝铺底＋竖线；页内目录当前项＝只给竖线，两层导航不同时亮红块 */
.wp-nav a.on { color:#e64545; font-weight:500; background:#f5f7fa; border-left-color:#e64545; }
.wp-nav .wp-toc-box a.on { color:#333; font-weight:500; background:none; border-left-color:#e64545; }
.wp-nav-div { height:1px; margin:8px 16px; background:#eee; }
.wp-nav-empty { margin:0; padding:8px 16px; font-size:13px; line-height:1.5; color:#666; }
.wp-nav-sub { display:block; padding:0 16px 8px; font-size:11px; line-height:1.5; color:#666; }

/* ---------- 正文结尾的相关入口：一行内文链接，不是四张卡片 ---------- */
.wp-next { margin-top:32px; padding-top:16px; border-top:1px solid #eee; font-size:13px; line-height:1.75; color:#666; }
.wp-next a { color:#333; text-decoration:underline; text-underline-offset:3px; text-decoration-color:#eee; }
.wp-next a:hover { color:#e64545; text-decoration-color:#e64545; }
.wp-next a:focus-visible { outline:2px solid #e64545; outline-offset:2px; }

/* ---------- 打印 ---------- */
@media print {
  .wp-aside { display:none; }
  .wp-main { display:block; }
  .wp-doc { max-width:none; }
}
