/* zhongshen.css — 终身卦（第8系统页签）。样式全限定 #sys-zhongshen 作用域，与其余系统零冲突。
   复用全局 .panel/.seg/.hint/.go(.primary/.ghost)；结果卡 .zs-card 自定。DOM id 一律 zs- 前缀。
   ⚠ 全局 input{width:100%;padding} 会渗透到复选框——.zs-check input 已显式 width:auto。 */

/* ── 表单 ── */
#sys-zhongshen .zs-form-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr 1fr; gap: 8px; align-items: end; }
#sys-zhongshen .zs-num label, #sys-zhongshen .zs-text label { display: block; font-size: 12px; color: #8a7a55; margin-bottom: 3px; }
#sys-zhongshen .zs-num input, #sys-zhongshen .zs-text input { width: 100%; box-sizing: border-box; }
#sys-zhongshen .zs-row2 { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 10px; }
#sys-zhongshen .zs-check { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: #6a5a38; cursor: pointer; }
#sys-zhongshen .zs-check input { width: auto; padding: 0; margin: 0; }
#sys-zhongshen .zs-go { justify-content: center; gap: 12px; }
#sys-zhongshen .zs-carry { margin-top: 10px; font-size: 12px; color: #4a5a3a; background: #eef4e6; border: 1px solid #cfdcc0; border-radius: 8px; padding: 6px 10px; line-height: 1.6; }
#sys-zhongshen .zs-carry a { color: #9a3a2a; margin-left: 4px; }
#sys-zhongshen .zs-go button { min-width: 110px; }

/* ── 结果卡 ── */
#sys-zhongshen .zs-card { margin-top: 16px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; box-shadow: var(--shadow); }
#sys-zhongshen .zs-h { font-size: 15px; font-weight: 600; color: #5a4a2a; margin: 0 0 10px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
#sys-zhongshen .zs-h .zs-sub { font-size: 12px; font-weight: 400; color: #8a7a55; }
#sys-zhongshen .zs-top { display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: start; }
#sys-zhongshen .zs-sizhu { display: flex; gap: 14px; }
#sys-zhongshen .zs-col { display: flex; flex-direction: column; align-items: center; gap: 2px; }
#sys-zhongshen .zs-col .zs-g, #sys-zhongshen .zs-col .zs-z { font-size: 24px; font-weight: 600; line-height: 1.15; }
#sys-zhongshen .zs-col .zs-pn { font-size: 11px; color: #9a8a65; }
#sys-zhongshen .zs-col .zs-hl { font-size: 12px; color: #8a7a55; }
#sys-zhongshen .zs-col .zs-sum { font-size: 14px; font-weight: 600; color: var(--seal, #b5342a); }
#sys-zhongshen .zs-meta { font-size: 13px; color: #5a4e34; line-height: 1.8; }
#sys-zhongshen .zs-meta b { color: #3a2e14; }
#sys-zhongshen .zs-warnbox { color: #9a3a2a; background: #fff3ee; border: 1px solid #e8c4b8; border-radius: 8px; padding: 8px 12px; font-size: 13px; }

/* ── 卦区 ── */
#sys-zhongshen .zs-guahead { display: flex; gap: 18px; align-items: flex-start; flex-wrap: wrap; margin-bottom: 8px; }
#sys-zhongshen .zs-hex { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 88px; }
#sys-zhongshen .zs-hex .zs-hexname { font-size: 15px; font-weight: 600; color: #3a2e14; }
#sys-zhongshen .zs-hex .zs-hexrole { font-size: 11px; color: #9a8a65; }
#sys-zhongshen .zs-lines { display: flex; flex-direction: column; gap: 5px; }
#sys-zhongshen .zs-lines > span { display: flex; align-items: center; height: 12px; white-space: nowrap; }
#sys-zhongshen .zs-derive { font-size: 13px; color: #5a4e34; line-height: 1.9; flex: 1; min-width: 220px; }
#sys-zhongshen .zs-code { font-size: 20px; font-weight: 700; color: var(--seal, #b5342a); letter-spacing: 2px; }
#sys-zhongshen .zs-code small { font-size: 12px; font-weight: 400; color: #8a7a55; letter-spacing: 0; }
#sys-zhongshen .zs-vseg { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 10px; }
#sys-zhongshen .zs-vseg button { font-size: 12px; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: #6a5a38; cursor: pointer; }
#sys-zhongshen .zs-vseg button.on { background: #3a2e14; color: #f6efdc; border-color: #3a2e14; }
#sys-zhongshen .zs-vseg .zs-vlab { font-size: 12px; color: #9a8a65; align-self: center; margin-right: 4px; }
#sys-zhongshen .zs-vseg .zs-vnext { background: var(--seal, #b5342a); color: #fff; border-color: var(--seal, #b5342a); font-weight: 600; margin-right: 6px; }
#sys-zhongshen .zs-vseg .zs-vnext:disabled { background: #cfc4a8; border-color: #cfc4a8; color: #fff; cursor: default; }
#sys-zhongshen .zs-vseg .zs-vreset { color: #9a3a2a; border-color: #d9b8b0; }
#sys-zhongshen .zs-vhint { font-size: 12px; color: #6a5a38; line-height: 1.6; margin: -4px 0 10px; }
#sys-zhongshen .zs-tag.zs-on { background: var(--seal, #b5342a); color: #fff; border-color: var(--seal, #b5342a); }

/* ── 条文表 ── */
#sys-zhongshen .zs-tw { width: 100%; border-collapse: collapse; font-size: 13px; }
#sys-zhongshen .zs-tw th { text-align: left; font-weight: 500; color: #8a7a55; font-size: 12px; padding: 4px 6px; border-bottom: 1px solid var(--line); }
#sys-zhongshen .zs-tw td { padding: 6px 6px; border-bottom: 1px dashed var(--line); vertical-align: top; color: #3a2e14; line-height: 1.6; }
#sys-zhongshen .zs-tw td.zs-n { font-weight: 600; white-space: nowrap; color: #5a4a2a; }
#sys-zhongshen .zs-tw td.zs-off { white-space: nowrap; color: #8a7a55; font-size: 12px; }
#sys-zhongshen .zs-tw td.zs-age { white-space: nowrap; color: var(--seal, #b5342a); font-weight: 600; }
#sys-zhongshen .zs-tw tr.zs-miss td { color: #9a8a65; }
#sys-zhongshen .zs-tag { display: inline-block; font-size: 11px; padding: 0 6px; border-radius: 999px; border: 1px solid #d9cba8; color: #6a5a38; margin-right: 4px; vertical-align: 1px; }
#sys-zhongshen .zs-tag.zs-sex { border-color: #c9a6a0; color: #9a3a2a; }
#sys-zhongshen .zs-tag.zs-src { border-color: #b8c9d9; color: #2a4a6a; }
#sys-zhongshen .zs-notes summary { cursor: pointer; font-size: 13px; color: #6a5a38; }
#sys-zhongshen .zs-notes ul { margin: 8px 0 0; padding-left: 18px; font-size: 12px; color: #6a5a38; line-height: 1.7; }

@media (max-width: 640px) {
  #sys-zhongshen .zs-form-grid { grid-template-columns: 1fr 1fr 1fr; }
  #sys-zhongshen .zs-top { grid-template-columns: 1fr; }
  #sys-zhongshen .zs-tw td.zs-off { display: none; }
  #sys-zhongshen .zs-tw th.zs-off { display: none; }
}

/* ── 终身卦专有：爻表 / 六亲生肖 / 后天数表 / 运卦表 ── */
/* 爻画：实心条（同六爻页），阳一整条、阴两短条，固定宽度对齐；动爻符号固定槽位 */
#sys-zhongshen .zs-yl { display: inline-flex; width: 64px; height: 11px; gap: 8px; vertical-align: middle; flex: none; }
#sys-zhongshen .zs-yl i { background: var(--ink, #3a2e14); border-radius: 2px; flex: 1; height: 100%; display: block; }
#sys-zhongshen .zs-dm { display: inline-block; width: 18px; text-align: center; font-size: 14px; line-height: 12px; color: var(--seal, #b5342a); font-weight: 700; margin-left: 4px; vertical-align: middle; flex: none; }
#sys-zhongshen .zs-calc { font-size: 13px; color: #5a4e34; line-height: 1.9; margin-bottom: 8px; }
#sys-zhongshen .zs-yao, #sys-zhongshen .zs-rel, #sys-zhongshen .zs-ht, #sys-zhongshen .zs-yun { width: 100%; border-collapse: collapse; font-size: 13px; margin-top: 6px; }
#sys-zhongshen .zs-yao th, #sys-zhongshen .zs-rel th, #sys-zhongshen .zs-ht th, #sys-zhongshen .zs-yun th { text-align: left; font-weight: 500; color: #8a7a55; font-size: 12px; padding: 4px 6px; border-bottom: 1px solid var(--line); }
#sys-zhongshen .zs-yao td, #sys-zhongshen .zs-rel td, #sys-zhongshen .zs-ht td, #sys-zhongshen .zs-yun td { padding: 5px 6px; border-bottom: 1px dashed var(--line); vertical-align: top; color: #3a2e14; line-height: 1.6; }
#sys-zhongshen .zs-yao td.zs-t { white-space: nowrap; color: #6a5a38; }
#sys-zhongshen .zs-yao td.zs-pic { white-space: nowrap; vertical-align: middle; }
#sys-zhongshen .zs-yao td.zs-gz, #sys-zhongshen .zs-rel td.zs-gz { font-weight: 600; white-space: nowrap; }
#sys-zhongshen .zs-yao td.zs-gz small { font-weight: 400; color: #8a7a55; margin-left: 3px; }
#sys-zhongshen .zs-yao td.zs-sy b { color: var(--seal, #b5342a); }
#sys-zhongshen .zs-yao tr.zs-dong td { background: #fbf3e4; }
#sys-zhongshen .zs-yao td.zs-fu, #sys-zhongshen .zs-yao td.zs-bian { color: #6a5a38; font-size: 12px; white-space: nowrap; }
#sys-zhongshen .zs-h4 { font-size: 14px; font-weight: 600; color: #5a4a2a; margin: 16px 0 4px; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
#sys-zhongshen .zs-h4 .zs-sub { font-size: 12px; font-weight: 400; color: #8a7a55; }
#sys-zhongshen .zs-rel tr.zs-relh td { background: #f3ecd9; color: #5a4a2a; font-weight: 600; border-bottom: none; }
#sys-zhongshen .zs-rel tr.zs-relh td small { font-weight: 400; color: #8a7a55; }
#sys-zhongshen .zs-rel td.zs-role { white-space: nowrap; font-weight: 600; color: var(--seal, #b5342a); }
#sys-zhongshen .zs-rel td.zs-role small { display: block; font-weight: 400; color: #8a7a55; font-size: 11px; }
#sys-zhongshen .zs-rel td.zs-calcs { color: #6a5a38; font-size: 12px; }
#sys-zhongshen .zs-rel td.zs-base { font-weight: 700; text-align: center; }
#sys-zhongshen .zs-rel td.zs-zod b { font-size: 15px; letter-spacing: 2px; }
#sys-zhongshen .zs-rel td.zs-zod small { display: block; color: #8a7a55; letter-spacing: 1px; }
#sys-zhongshen .zs-dim { color: #9a8a65; font-weight: 400; }
#sys-zhongshen .zs-ht td:first-child { white-space: nowrap; color: #6a5a38; }
#sys-zhongshen .zs-yun td.zs-age { white-space: nowrap; font-weight: 600; color: var(--seal, #b5342a); }
#sys-zhongshen .zs-yun td.zs-win { white-space: nowrap; color: #8a7a55; font-size: 12px; }
#sys-zhongshen .zs-yun td.zs-yg b { font-size: 15px; white-space: nowrap; }
#sys-zhongshen .zs-yun td.zs-yg small { display: block; color: #8a7a55; white-space: nowrap; }
#sys-zhongshen .zs-yun td.zs-chong { white-space: nowrap; color: #6a5a38; font-size: 12px; }
#sys-zhongshen .zs-yun td.zs-yilin { min-width: 160px; }   /* 易林繇辞列（⚠ 勿再用 .zs-yl——那是爻画类，曾把本列压成 64×11 细条） */
#sys-zhongshen .zs-yun tr.zs-end td { background: #fff3ee; }
#sys-zhongshen .zs-yun tr.zs-after td { color: #9a8a65; }
#sys-zhongshen .zs-tip { margin-top: 4px; font-size: 12px; color: #9a3a2a; line-height: 1.6; }
#sys-zhongshen .zs-tip.zs-soft { color: #6a5a38; }
#sys-zhongshen .zs-foot { font-size: 12px; color: #8a7a55; margin: 8px 0 0; }
@media (max-width: 640px) {
  #sys-zhongshen .zs-yun td.zs-win, #sys-zhongshen .zs-yun th:nth-child(2) { display: none; }
  #sys-zhongshen .zs-yao td.zs-fu, #sys-zhongshen .zs-yao th:last-child { display: none; }
  #sys-zhongshen .zs-yl { width: 40px; gap: 5px; }
  #sys-zhongshen .zs-dm { width: 14px; margin-left: 2px; }
}
