/* site-shell-v1 · 羽山站点统一外壳
   ★基准 = 首页（唯一权威）。数值逐条抄自 https://www.yushanshuju.com/ 的 <style>，
   不另定标准，避免"改一处、动全站"。
   作用域 body.shell-page：只作用于接入外壳的页面，首页本身不在内。 */
:root{
  --brand:#1d4ed8;
  --brand-ink:#12308f;
  --soft:#f8fafc;
  --ink:#0b1220;
  --ink2:#1e293b;
  --line:#e2e8f0;
  --wrap:1200px;
  --hd-h:74px;
}

/* ---------- 头部：与首页 .hd 逐条一致 ---------- */
body.shell-page header.hd{position:sticky;top:0;z-index:100;background:#fff;
  border-bottom:1px solid transparent;transition:box-shadow .25s,border-color .25s;margin:0}
body.shell-page header.hd .hd-in{
  width:auto !important;max-width:var(--wrap) !important;
  margin:0 auto;padding:0 28px;
  height:var(--hd-h);display:flex;align-items:center;gap:40px}
/* 首页的描边按钮（.btn.btn-ghost）—— /nlist 的 news.css 没有这套，需在此补齐 */
body.shell-page .btn{display:inline-flex;align-items:center;gap:7px;padding:11px 22px;
  border-radius:11px;font-size:14.5px;font-weight:700;transition:.2s;
  border:1px solid transparent;cursor:pointer;font-family:inherit;text-decoration:none}
body.shell-page .btn-ghost{background:#fff;color:var(--brand);border:1.5px solid #cfe0f5;
  box-shadow:none;padding:9px 18px;font-weight:700}
body.shell-page .btn-ghost:hover{border-color:var(--brand);background:#f5f9ff}
body.shell-page header.hd .hd-logo{display:flex;align-items:center;gap:11px;
  font-weight:800;font-size:18px;letter-spacing:-.02em;flex-shrink:0;
  text-decoration:none;color:inherit}
body.shell-page header.hd .hd-logo img{height:34px;width:auto;display:block}
body.shell-page header.hd .hd-nav{display:flex;gap:6px;margin-left:auto}
body.shell-page header.hd .hd-nav a{padding:9px 15px;border-radius:10px;font-size:14.5px;
  font-weight:600;color:var(--ink2);text-decoration:none;transition:.18s;background:none}
body.shell-page header.hd .hd-nav a:hover{background:var(--soft);color:var(--brand)}
body.shell-page header.hd .hd-nav a.on{color:var(--brand);background:var(--soft)}
body.shell-page header.hd .hd-cta{display:flex;align-items:center;gap:10px;flex-shrink:0}
body.shell-page header.hd .hd-tel{font-size:14px;font-weight:700;color:var(--ink2);
  display:inline-flex;align-items:center;gap:7px;padding:9px 4px;
  transition:.18s;text-decoration:none}
body.shell-page header.hd .hd-tel:hover{color:var(--brand)}
/* CTA = 首页的 .btn-ghost 描边样式（白底蓝字浅蓝边），不是实心蓝 */
body.shell-page header.hd .hd-btn{display:inline-flex;align-items:center;gap:7px;
  padding:9px 18px;border-radius:11px;border:1.5px solid #cfe0f5;background:#fff;
  color:var(--brand);font-size:14.5px;font-weight:700;font-family:inherit;
  text-decoration:none;transition:.2s;box-shadow:none}
body.shell-page header.hd .hd-btn:hover{border-color:var(--brand);background:#f5f9ff;color:var(--brand)}

/* 移动端：与首页同款折叠 */
body.shell-page header.hd .hd-toggle{display:none}
body.shell-page header.hd .hd-burger{display:none}
body.shell-page header.hd .hd-sheet{display:none}
@media(max-width:900px){
  body.shell-page header.hd .hd-in{height:64px;gap:12px;padding:0 20px}
  body.shell-page header.hd .hd-logo img{height:30px}
  body.shell-page header.hd .hd-nav,
  body.shell-page header.hd .hd-cta{display:none}
  body.shell-page header.hd .hd-burger{display:flex;margin-left:auto;width:40px;height:40px;
    border-radius:10px;border:1px solid var(--line);cursor:pointer;
    align-items:center;justify-content:center}
  body.shell-page header.hd .hd-burger span,
  body.shell-page header.hd .hd-burger span::before,
  body.shell-page header.hd .hd-burger span::after{display:block;width:18px;height:2px;
    background:var(--ink2);border-radius:2px;content:"";position:relative}
  body.shell-page header.hd .hd-burger span::before{position:absolute;top:-6px}
  body.shell-page header.hd .hd-burger span::after{position:absolute;top:6px}
  body.shell-page header.hd .hd-toggle:checked ~ .hd-sheet{display:block;position:absolute;
    left:0;right:0;top:100%;background:#fff;border-bottom:1px solid var(--line);
    box-shadow:0 14px 30px -18px rgba(11,18,32,.35);padding:8px 20px 16px}
  body.shell-page header.hd .hd-sheet a{display:block;padding:12px 4px;font-size:15px;
    font-weight:600;color:var(--ink2);text-decoration:none;border-bottom:1px solid #f1f4f9}
  body.shell-page header.hd .hd-sheet a:last-child{border:0}
  body.shell-page header.hd .hd-sheet-tel{color:var(--brand)!important}
}

/* ---------- 页面壳：与首页同一个 .wrap（1200 / 内边距 28） ----------
   ★不再收窄阅读列 —— 目标是"和首页一样"，不是"阅读更舒适"。
   ★!important 必要：/nlist 的 news.css 把 .wrap 写死成 960，且它先加载。 */
body.shell-page .wrap,
body.shell-page main.wrap,
body.shell-page > div.wrap{
  width:auto !important;
  max-width:var(--wrap) !important;
  margin-left:auto !important;
  margin-right:auto !important;
  padding-left:28px !important;
  padding-right:28px !important}
@media(max-width:760px){
  body.shell-page .wrap,
  body.shell-page main.wrap,
  body.shell-page > div.wrap{padding-left:20px !important;padding-right:20px !important}
}

/* 页脚样式在 site-footer.css —— 静态页与 /nlist 生成器共用同一份 */
