/* 财务模板设计规范 — 全部样式严格限定在 .fp-spec 作用域内，禁止裸元素/通用 class 选择器泄漏到主题
   （2026-09-30 踩坑：裸 header{}/h1{}/body{} 会命中 PaperMod 的站头导航与文章标题区，把全站染成深蓝） */
.fp-spec{
    --primary:#1C3E76;
    --primary-dark:#142C54;
    --accent:#B08A2E;
    --ink:#2B3340;
    --muted:#6B7280;
    --bg:#F5F7FA;
    --card:#FFFFFF;
    --line:#E8EBF0;
    --enter:#FFF8E1;
    --enter-line:#F0EAD6;
    --total:#F6EEDC;
    --note:#E8F0FB;
    --ok:#2E7D5B;
    font-family:"Microsoft YaHei","PingFang SC","Noto Sans SC",sans-serif;
    color:var(--ink);
    line-height:1.75;
    font-size:15px;
    -webkit-font-smoothing:antialiased;
  }
  .fp-spec *{box-sizing:border-box;}
  .fp-spec p,.fp-spec ul,.fp-spec ol,.fp-spec h1,.fp-spec h2,.fp-spec h3,.fp-spec table{margin:0;padding:0;}

  .fp-spec .fp-wrap{max-width:920px;margin:0 auto;padding:0 24px 64px;}

  .fp-spec section{margin-top:56px;}
  .fp-spec .sec-head{display:flex;align-items:baseline;gap:14px;border-bottom:2px solid var(--primary);padding-bottom:10px;margin-bottom:28px;}
  .fp-spec .sec-num{font-size:14px;font-weight:700;color:var(--accent);letter-spacing:1px;}
  .fp-spec h2{font-size:22px;font-weight:700;color:var(--primary);}
  .fp-spec .sec-intro{font-size:15px;color:var(--muted);margin-bottom:24px;max-width:680px;}
  .fp-spec .lead-box{background:var(--card);border:1px solid var(--line);border-left:4px solid var(--accent);padding:18px 22px;font-size:16px;font-weight:600;color:var(--primary-dark);margin-bottom:24px;}
  .fp-spec .lead-box strong{color:var(--accent);}

  /* 定义表 */
  .fp-spec table.tbl{width:100%;border-collapse:collapse;font-size:14px;table-layout:fixed;margin-bottom:24px;}
  .fp-spec table.tbl col:first-child{width:26%;}
  .fp-spec table.tbl thead td{background:var(--primary);color:#fff;font-weight:700;padding:10px 14px;text-align:left;}
  .fp-spec table.tbl td{padding:10px 14px;border-bottom:1px solid var(--line);text-align:left;vertical-align:top;}
  .fp-spec table.tbl tbody tr:nth-child(even){background:var(--zebra,#F8F9FA);}
  .fp-spec table.tbl .num{text-align:right;font-variant-numeric:tabular-nums;}

  /* 价值卡 */
  .fp-spec .grid2{display:grid;grid-template-columns:repeat(2,1fr);gap:14px;}
  .fp-spec .vc{background:var(--card);border:1px solid var(--line);border-radius:8px;padding:16px 18px;}
  .fp-spec .vc .vtitle{font-size:15px;font-weight:700;color:var(--primary-dark);margin-bottom:6px;}
  .fp-spec .vc .vbody{font-size:14px;color:var(--muted);line-height:1.7;}

  /* 六区示意 */
  .fp-spec .demo-box{background:var(--card);border:1px solid var(--line);border-radius:8px;padding:18px;margin-bottom:18px;}
  .fp-spec .legend{display:flex;flex-wrap:wrap;gap:12px;font-size:13px;color:var(--muted);margin:14px 0 18px;}
  .fp-spec .legend span{display:inline-flex;align-items:center;gap:6px;}
  .fp-spec .lg{display:inline-block;width:14px;height:14px;border-radius:3px;border:1px solid rgba(0,0,0,0.1);}
  .fp-spec .zone{font-size:13px;font-weight:700;padding:8px 12px;border-radius:4px;margin-bottom:8px;}
  .fp-spec .zone small{font-weight:400;font-size:12px;opacity:0.9;}
  .fp-spec .z-title{background:var(--primary);color:#fff;}
  .fp-spec .z-param{background:#EEF1F6;border:1px dashed #B9C2D0;color:#4A5568;}
  .fp-spec .z-note{background:var(--note);color:var(--primary-dark);}
  .fp-spec table.sheet{width:100%;border-collapse:collapse;font-size:13px;table-layout:fixed;margin-bottom:8px;}
  .fp-spec table.sheet col:first-child{width:30%;}
  .fp-spec table.sheet th{background:var(--primary);color:#fff;font-weight:700;padding:8px 10px;text-align:left;}
  .fp-spec table.sheet th.r,.fp-spec table.sheet td.r{text-align:right;}
  .fp-spec table.sheet td{padding:8px 10px;border-bottom:1px solid var(--line);text-align:left;}
  .fp-spec table.sheet tr.enter td{background:var(--enter);border-bottom:1px solid var(--enter-line);}
  .fp-spec table.sheet tr.total td{background:var(--total);font-weight:700;color:var(--primary-dark);}
  .fp-spec .zone-caption{margin-top:10px;font-size:12px;color:var(--muted);line-height:1.8;}
  .fp-spec .z-rows{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-top:16px;}
  .fp-spec .zr{background:var(--card);border:1px solid var(--line);border-radius:8px;padding:12px 14px;}
  .fp-spec .zr .znum{font-size:13px;font-weight:700;color:var(--accent);}
  .fp-spec .zr .zname{font-size:14px;font-weight:700;color:var(--primary-dark);margin:2px 0 4px;}
  .fp-spec .zr .zdesc{font-size:13px;color:var(--muted);line-height:1.7;}

  /* 三栏规范 */
  .fp-spec .cols3{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;}
  .fp-spec .ncard{background:var(--card);border:1px solid var(--line);border-radius:8px;padding:18px;}
  .fp-spec .ncard h3{font-size:15px;font-weight:700;color:var(--primary-dark);margin-bottom:10px;padding-bottom:8px;border-bottom:2px solid var(--accent);}
  .fp-spec .ncard ul{list-style:none;}
  .fp-spec .ncard li{font-size:13.5px;color:var(--ink);padding:5px 0 5px 16px;position:relative;line-height:1.7;}
  .fp-spec .ncard li::before{content:"";position:absolute;left:0;top:13px;width:6px;height:6px;border-radius:2px;background:var(--accent);}

  /* 自查 */
  .fp-spec .check{background:var(--card);border:1px solid var(--line);border-radius:8px;padding:8px 24px;}
  .fp-spec .check li{list-style:none;display:flex;gap:10px;align-items:flex-start;padding:14px 0;border-bottom:1px solid var(--line);font-size:15px;}
  .fp-spec .check li:last-child{border-bottom:none;}
  .fp-spec .check .box{flex:none;width:20px;height:20px;border:2px solid var(--primary);border-radius:4px;margin-top:3px;}
  .fp-spec .check .q{font-weight:600;}
  .fp-spec .check .hint{color:var(--muted);font-size:13px;margin-top:2px;}

  .fp-spec .fp-foot{margin-top:64px;padding-top:20px;border-top:1px solid var(--line);font-size:12px;color:var(--muted);line-height:1.8;}

  @media (max-width:640px){
    .fp-spec{font-size:14px;}
    .fp-spec .grid2{grid-template-columns:1fr;}
    .fp-spec .z-rows{grid-template-columns:1fr;}
    .fp-spec .cols3{grid-template-columns:1fr;}
  }
