/* 术数工具 · 十二串宫 / 八字口诀（2026-11-12 第三轮；tools-bazi-aux.js） */
.cg-head { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 16px; margin-bottom: 4px; }
.cg-head .field { min-width: 200px; }
.cg-out { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 14px; }
.cg-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.cg-table { width: 100%; border-collapse: collapse; font-size: 13.5px; color: var(--paper-ink); background: rgba(255, 253, 246, 0.85); }
.cg-table caption { text-align: left; padding: 0 0 6px; font-family: var(--font-serif); font-size: 14px; letter-spacing: 0.12em; color: #7a5c1e; }
.cg-table th, .cg-table td { padding: 7px 10px; border-bottom: 1px solid rgba(150, 114, 58, 0.2); text-align: left; white-space: nowrap; }
.cg-table thead th { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; color: var(--paper-ink-soft); }
.cg-table tbody th { font-family: var(--font-serif); font-weight: 700; color: var(--paper-ink); }
.cg-table tr.is-base td, .cg-table tr.is-base th { background: rgba(var(--gold-rgb), 0.18); }
.cg-gods td:nth-child(2) { white-space: normal; }
.cg-fold, .pt-fold { margin-top: 12px; border: 1px solid rgba(150, 114, 58, 0.24); border-radius: 10px; background: rgba(255, 253, 246, 0.6); }
.cg-fold > summary, .pt-fold > summary { cursor: pointer; list-style: none; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; padding: 10px 14px; min-height: 40px; box-sizing: border-box; }
.cg-fold > summary::-webkit-details-marker, .pt-fold > summary::-webkit-details-marker { display: none; }
.cg-fold > summary b, .pt-fold > summary b { font-family: var(--font-serif); font-size: 14.5px; letter-spacing: 0.06em; color: var(--paper-ink); }
.cg-fold > summary span, .pt-fold > summary span { font-size: 12px; color: var(--paper-ink-soft); }
.cg-fold > div, .cg-fold > ul { padding: 0 14px 14px; }
.cg-types { list-style: none; margin: 0; display: grid; gap: 6px; font-size: 13px; line-height: 1.7; color: var(--paper-ink); }
.cg-types b { font-family: var(--font-serif); margin-right: 10px; color: #7a5c1e; }
.pt-list { margin: 0; padding: 0 14px 14px 34px; display: grid; gap: 4px; font-size: 13.5px; line-height: 1.8; color: var(--paper-ink); }
.pt-list b { font-family: var(--font-serif); margin-right: 8px; color: #7a5c1e; }
.pt-src { margin: 10px 0 0; font-size: 12px; color: var(--paper-ink-soft); }
@media (max-width: 720px) {
  .cg-out { grid-template-columns: minmax(0, 1fr); }
  .cg-head .field { min-width: 0; width: 100%; }
  .pt-list { padding-left: 26px; }
}
html[data-theme="xiu"] .cg-table caption, html[data-theme="xiu"] .cg-types b, html[data-theme="xiu"] .pt-list b { color: var(--zi-700); }
html[data-theme="xiu"] .cg-table tr.is-base td, html[data-theme="xiu"] .cg-table tr.is-base th { background: rgba(120, 80, 150, 0.12); }
@media print { .cg-fold, .pt-fold { break-inside: avoid; } .pt-fold:not([open]) { display: none; } }

/* 工具页表单节奏（2026-11-13 UI 令·电脑端）：八字反查两行字段（四柱行 / 年限行）此前行距 0、标签贴上一行下拉；
   「算一算 / 反查」钮贴字段行；辅盘入口行内距过窄、行首字贴边。只作用工具页 .tl-main。 */
.tl-main .tl-four + .tl-two, .tl-main .tl-two + .tl-two, .tl-main .tl-two + .tl-four { margin-top: 16px; }
.tl-main .tl-block .form-actions { margin-top: 18px; }
.tl-main .tl-row { padding: 9px 14px; }
/* 「更多专门盘」名录：撤浏览器默认圆点与左缩进，钮与说明同行居中对齐，与上方「辅盘四式」入口行同一节奏 */
.tl-main #morePanList { list-style: none; margin: 0; padding: 0; }
.tl-main #morePanList li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; color: var(--paper-ink-soft); }
.tl-main #morePanList .btn { flex: none; min-width: 7.5em; }
