/* ============================================================
   通玄 · 新开整页共用样式 np-pages.css（2026-11-12 第三轮 r3-npa）
   择日盘 / 节气盘 / 骰子盘 / 三式合一：起盘帖（np-card）· 字段 · 页签 · 小表 · 西占星轮（npw-）。
   皮肤：缺省纸金；袖中天（html[data-theme="xiu"]）在文件尾。
   触控：coarse 下可点目标 ≥44px、输入 16px（base 已管 .select-line/.date-grid）；宽表外包横滚。
   ============================================================ */
.np-act { position: relative; }
.np-hero-divider { margin-top: 26px; animation: pageUp 1s var(--ease-out) 0.28s both; }

/* ---------- 起盘帖 ---------- */
.np-card {
  max-width: 880px; margin: 0 auto;
  border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid rgba(150, 114, 58, 0.4);
  box-shadow: 0 24px 60px rgba(60, 48, 22, 0.14);
  background: var(--paper-50);
}
.np-card-head {
  text-align: center; padding: 20px 28px 16px;
  background: radial-gradient(ellipse 120% 100% at 50% -30%, rgba(var(--gold-rgb), 0.14), transparent 60%),
    linear-gradient(155deg, var(--ink-800), var(--ink-950));
}
.np-card-eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-serif); font-size: 12.5px; letter-spacing: 0.4em; text-indent: 0.4em; color: var(--gold-500);
}
.np-card-eyebrow::before, .np-card-eyebrow::after { content: ""; width: 30px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold-600)); }
.np-card-eyebrow::after { transform: scaleX(-1); }
.np-card-title { margin-top: 8px; font-family: var(--font-serif); font-size: 24px; font-weight: 700; letter-spacing: 0.5em; text-indent: 0.5em; color: var(--gold-300); }
.np-card-body { padding: 26px 34px 30px; }

.np-label {
  display: block; font-family: var(--font-serif); font-size: 13.5px; font-weight: 600;
  letter-spacing: 0.2em; color: var(--gold-700); margin: 20px 0 9px;
}
.np-label:first-child { margin-top: 0; }
.np-side { font-style: normal; font-weight: 400; font-size: 12px; letter-spacing: 0.06em; color: var(--paper-ink-soft); }
.np-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; align-items: end; }
.np-grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 14px; align-items: end; }
.np-cell { min-width: 0; }
.np-input {
  width: 100%; padding: 11px 14px; font-family: var(--font-sans); font-size: 15px; color: var(--paper-ink);
  background: rgba(250, 247, 239, 0.9); border: 1px solid rgba(44, 42, 36, 0.18); border-radius: var(--radius-sm);
}
.np-input:focus { outline: none; border-color: var(--gold-600); box-shadow: 0 0 0 3px rgba(var(--gold-rgb), 0.18); }
.np-actions { text-align: center; margin-top: 26px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.np-err { margin-top: 12px; text-align: center; font-size: 13.5px; letter-spacing: 0.06em; color: var(--cinnabar); }
.np-err[hidden] { display: none; }
.np-hint { margin-top: 8px; font-size: 12.5px; line-height: 1.7; color: var(--paper-ink-soft); letter-spacing: 0.04em; }
.np-fold { margin-top: 22px; border: 1px solid rgba(150, 114, 58, 0.28); border-radius: var(--radius-sm); background: rgba(250, 247, 239, 0.6); }
.np-fold > summary {
  cursor: pointer; list-style: none; padding: 12px 16px; min-height: 44px; box-sizing: border-box;
  font-family: var(--font-serif); font-size: 14px; letter-spacing: 0.16em; color: var(--gold-700);
}
.np-fold > summary::-webkit-details-marker { display: none; }
.np-fold-body { padding: 4px 16px 16px; }
.np-fold-body .np-label { margin-top: 14px; }
.np-card .check-line { white-space: normal; max-width: 100%; align-items: flex-start; line-height: 1.6; }
.np-card .check-line input { flex: none; margin-top: 3px; }
.np-check { margin-top: 12px; }
.np-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.np-chip {
  padding: 7px 14px; min-height: 36px; font-family: var(--font-serif); font-size: 13.5px; letter-spacing: 0.08em;
  color: var(--paper-ink); background: rgba(250, 247, 239, 0.9);
  border: 1px solid rgba(150, 114, 58, 0.35); border-radius: 999px; cursor: pointer;
}
.np-chip { white-space: nowrap; }
.np-table-nowrap td, .np-table-nowrap th { white-space: nowrap; }
.np-chip.on { color: #2a2112; background: linear-gradient(135deg, #e9d4a0, #d4af6a); border-color: var(--gold-600); }

/* ---------- 结果区 ---------- */
.np-result-meta { text-align: center; margin: -36px 0 26px; font-size: 13px; letter-spacing: 0.06em; color: var(--paper-ink-soft); }
.np-board { display: grid; grid-template-columns: minmax(0, 400px) minmax(0, 1fr); gap: 26px; align-items: start; max-width: 1120px; margin: 0 auto; }
.np-board-solo { grid-template-columns: minmax(0, 1fr); max-width: 980px; }
.np-panel {
  border: 1px solid rgba(150, 114, 58, 0.32); border-radius: var(--radius-md);
  background: var(--paper-50); padding: 18px 20px; min-width: 0;
}
.np-panel + .np-panel { margin-top: 18px; }
.np-panel-cap { font-family: var(--font-serif); font-size: 15px; font-weight: 700; letter-spacing: 0.18em; color: var(--paper-ink); margin-bottom: 10px; }
.np-panel-cap small { font-weight: 400; font-size: 12px; letter-spacing: 0.04em; color: var(--paper-ink-soft); margin-left: 6px; }
.np-note { font-size: 12.5px; line-height: 1.75; color: var(--paper-ink-soft); letter-spacing: 0.03em; margin-top: 8px; }
.np-line { font-size: 14px; line-height: 1.8; color: var(--paper-ink); }
.np-dark {
  border-radius: var(--radius-md); padding: 14px;
  background: radial-gradient(ellipse at 50% 40%, rgba(40, 52, 88, 0.55), transparent 70%), linear-gradient(160deg, var(--ink-800), var(--ink-950));
  border: 1px solid rgba(var(--gold-rgb), 0.3);
}
.np-dark-cap { text-align: center; font-family: var(--font-serif); font-size: 13.5px; letter-spacing: 0.2em; color: var(--gold-400); margin-bottom: 6px; }
.np-dark-sub { text-align: center; font-size: 12px; color: rgba(240, 234, 214, 0.72); letter-spacing: 0.04em; margin-top: 6px; }
.np-toggle {
  display: block; margin: 8px auto 0; padding: 6px 14px; min-height: 36px;
  font-family: var(--font-serif); font-size: 12.5px; letter-spacing: 0.1em;
  color: var(--gold-300); background: transparent; border: 1px solid rgba(var(--gold-rgb), 0.45); border-radius: 999px; cursor: pointer;
}

/* 分数横幅 */
.np-score { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.np-score-num { font-family: var(--font-serif); font-size: 40px; font-weight: 700; line-height: 1; color: var(--gold-700); }
.np-score-num small { font-size: 14px; font-weight: 400; color: var(--paper-ink-soft); margin-left: 2px; }
.np-badge { display: inline-block; padding: 3px 12px; border-radius: 999px; font-size: 12.5px; letter-spacing: 0.1em; color: #fffaf0; background: var(--paper-ink-soft); }
.np-g-excellent { background: #2f8a63; } .np-g-good { background: #1f8a9c; } .np-g-fair { background: #3a6fb8; }
.np-g-poor { background: #b8642e; } .np-g-disqualified { background: var(--cinnabar); }
.np-sev-critical { background: var(--cinnabar); } .np-sev-high { background: #b8642e; } .np-sev-medium { background: #a88218; }
.np-sev-low { background: #7d8894; } .np-sev-info { background: #8a8170; }
.np-v-good { background: #2f8a63; } .np-v-neutral { background: #3a6fb8; } .np-v-caution { background: #a88218; } .np-v-bad { background: var(--cinnabar); }

.np-bars { display: grid; gap: 6px; }
.np-bar { display: grid; grid-template-columns: 7.5em minmax(0, 1fr) 2.4em; gap: 10px; align-items: center; font-size: 13px; color: var(--paper-ink); }
.np-bar i { display: block; height: 8px; border-radius: 4px; background: rgba(44, 42, 36, 0.08); position: relative; overflow: hidden; }
.np-bar i b { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 4px; }
.np-bar span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.np-bar span:last-child { text-align: right; font-variant-numeric: tabular-nums; }

.np-items { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.np-items li { position: relative; padding-left: 1.5em; font-size: 13.5px; line-height: 1.75; color: var(--paper-ink); }
.np-items li::before { content: "·"; position: absolute; left: 0.35em; color: var(--paper-ink-soft); }
.np-items li.pos::before { content: "✓"; color: var(--jade-700); }
.np-items li.neg::before { content: "✗"; color: var(--cinnabar); }
.np-items li.neg { color: #7a2f27; }
.np-flag { display: flex; gap: 10px; align-items: flex-start; padding: 6px 0; border-bottom: 1px dashed rgba(150, 114, 58, 0.25); font-size: 13.5px; line-height: 1.7; }
.np-flag:last-child { border-bottom: 0; }
.np-flag .np-badge { flex: none; margin-top: 2px; }
.np-sec { border-top: 1px dashed rgba(150, 114, 58, 0.3); padding: 12px 0 6px; }
.np-sec:first-child { border-top: 0; padding-top: 0; }
.np-sec-head { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-family: var(--font-serif); font-weight: 700; font-size: 14.5px; color: var(--paper-ink); margin-bottom: 4px; }
.np-sec-head em { font-style: normal; font-weight: 400; font-size: 12.5px; color: var(--paper-ink-soft); }
.np-details { margin: 4px 0; }
.np-details > summary { cursor: pointer; list-style: none; padding: 6px 0; min-height: 32px; font-size: 13.5px; color: var(--paper-ink); display: flex; justify-content: space-between; gap: 10px; }
.np-details > summary::-webkit-details-marker { display: none; }
.np-details > div { padding: 0 0 6px 12px; }
.np-details > summary.tx-fold-sum { justify-content: flex-start; gap: 6px; }
.np-plus { color: var(--jade-700); } .np-minus { color: var(--cinnabar); }

/* ---------- 页签 ---------- */
.np-tabbar {
  display: flex; flex-wrap: wrap; gap: 2px 4px;
  border-bottom: 1px solid rgba(150, 114, 58, 0.35); margin-bottom: 14px;
}
.np-tab {
  flex: none; padding: 9px 14px; min-height: 40px; font-family: var(--font-serif); font-size: 14px; letter-spacing: 0.1em;
  color: var(--paper-ink-soft); background: transparent; border: 0; border-bottom: 2px solid transparent; cursor: pointer; white-space: nowrap;
}
.np-tab.on { color: var(--gold-700); border-bottom-color: var(--gold-600); font-weight: 700; }
.np-tabbody[hidden] { display: none; }

/* ---------- 小表 ---------- */
.np-tablewrap { overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; }
.np-table { width: 100%; border-collapse: collapse; font-size: 13px; color: var(--paper-ink); }
.np-table th { text-align: left; font-weight: 600; font-family: var(--font-serif); color: var(--gold-700); padding: 6px 8px; border-bottom: 1px solid rgba(150, 114, 58, 0.4); white-space: nowrap; }
.np-table td { padding: 6px 8px; border-bottom: 1px dashed rgba(150, 114, 58, 0.2); vertical-align: top; }
.np-table tr.hl td { background: rgba(var(--gold-rgb), 0.12); font-weight: 600; }
.np-table td.c, .np-table th.c { text-align: center; }
.np-table .ji { color: var(--jade-700); } .np-table .xiong { color: var(--cinnabar); }
.np-table-planets td:nth-child(3), .np-table-planets td:nth-child(4) { white-space: nowrap; }

/* ---------- 西占星轮 ---------- */
.np-wheel { max-width: 400px; margin: 0 auto; }
.np-wheel svg { display: block; width: 100%; height: auto; }
.npw-outer { fill: none; stroke: rgba(var(--gold-rgb), 0.55); stroke-width: 1.4; }
.npw-ring { fill: none; stroke: rgba(var(--gold-rgb), 0.28); stroke-width: 1; }
.npw-heart { fill: rgba(var(--ink-900-rgb), 0.5); stroke: rgba(var(--gold-rgb), 0.4); stroke-width: 1; }
.npw-signline { stroke: rgba(var(--gold-rgb), 0.3); stroke-width: 1; }
.npw-house { stroke: rgba(240, 234, 214, 0.16); stroke-width: 1; }
.npw-axis { stroke: rgba(var(--gold-rgb), 0.55); stroke-width: 1.8; }
.npw-mc { stroke: rgba(var(--gold-rgb), 0.75); stroke-width: 2; }
.npw-tick { stroke: rgba(240, 234, 214, 0.5); stroke-width: 1.5; }
.npw-sign { fill: rgba(var(--gold-rgb), 0.8); font-family: var(--font-serif); }
.npw-hnum { fill: rgba(240, 234, 214, 0.42); font-family: var(--font-serif); }
.npw-asclab { fill: var(--gold-400); font-family: var(--font-serif); }
.npw-glyph { fill: #f0ead6; font-family: var(--font-serif); }
.npw-outerpl .npw-glyph { opacity: 0.72; }
.npw-deg { fill: rgba(240, 234, 214, 0.6); font-family: var(--font-sans); }
.npw-core { fill: var(--gold-300); font-family: var(--font-serif); letter-spacing: 0.1em; }
.npw-coresub { fill: rgba(240, 234, 214, 0.7); font-family: var(--font-serif); }
.npw-hi { fill: none; stroke-width: 1.6; stroke: var(--gold-400); }
.npw-pl.dice .npw-hi { stroke: #d96a57; }
.npw-pl.dice .npw-glyph { fill: #f2b3a7; }

/* ---------- 卡片网格（节气表等） ---------- */
.np-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.np-mini {
  border: 1px solid rgba(150, 114, 58, 0.3); border-radius: var(--radius-sm); background: rgba(250, 247, 239, 0.7); padding: 12px 14px; min-width: 0;
}
.np-mini h4 { font-family: var(--font-serif); font-size: 15px; letter-spacing: 0.16em; color: var(--paper-ink); margin: 0 0 4px; }
.np-mini p { font-size: 12.5px; line-height: 1.7; color: var(--paper-ink-soft); margin: 0; }
.np-mini .np-mini-gz { font-family: var(--font-serif); font-size: 14px; letter-spacing: 0.12em; color: var(--paper-ink); }
.np-mini.on { border-color: var(--gold-600); box-shadow: 0 0 0 2px rgba(var(--gold-rgb), 0.25); }
button.np-mini { text-align: left; cursor: pointer; font: inherit; width: 100%; }

@media (max-width: 960px) {
  .np-board { grid-template-columns: minmax(0, 1fr); }
  .np-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .np-card-body { padding: 20px 16px 24px; }
  .np-card-title { font-size: 20px; }
  .np-grid3 { grid-template-columns: minmax(0, 1fr); }
  .np-panel { padding: 14px 12px; }
  .np-score-num { font-size: 34px; }
  .np-bar { grid-template-columns: 6em minmax(0, 1fr) 2.2em; gap: 8px; }
  .np-result-meta { margin-top: -24px; }
}
@media (max-width: 420px) {
  .np-grid2 { grid-template-columns: minmax(0, 1fr); }
  .np-cards { grid-template-columns: minmax(0, 1fr); }
}

/* 11-26 阁主拍板：节气盘手机只显示时下前后七张，余者「展开全年」（jieqi.js）；电脑端与打印全显 */
.np-cards-more { display: none; }
@media screen and (max-width: 720px) {
  .np-cards.is-folded > .np-mini-far { display: none; }
  .np-cards-more:not([hidden]) { display: flex; margin: 14px auto 0; }
}

/* ---------- 袖中天 ---------- */
html[data-theme="xiu"] .np-card, html[data-theme="xiu"] .np-panel, html[data-theme="xiu"] .np-fold,
html[data-theme="xiu"] .np-mini, html[data-theme="xiu"] .np-chip { border-color: rgba(88, 74, 133, 0.35); }
html[data-theme="xiu"] .np-label, html[data-theme="xiu"] .np-fold > summary, html[data-theme="xiu"] .np-tab.on,
html[data-theme="xiu"] .np-table th, html[data-theme="xiu"] .np-score-num { color: var(--zi-700, #584a85); }
html[data-theme="xiu"] .np-tab.on { border-bottom-color: var(--zi-500, #7f6fae); }
html[data-theme="xiu"] .np-tabbar { border-bottom-color: rgba(88, 74, 133, 0.35); }
html[data-theme="xiu"] .np-chip.on { color: #241a3a; background: linear-gradient(135deg, #b3a5d6, #8f7fbd 60%, #7f6fae); border-color: var(--zi-500, #7f6fae); }
html[data-theme="xiu"] .np-mini.on { border-color: var(--zi-500, #7f6fae); box-shadow: 0 0 0 2px rgba(127, 111, 174, 0.25); }
html[data-theme="xiu"] .np-table tr.hl td { background: rgba(127, 111, 174, 0.12); }
html[data-theme="xiu"] .np-input:focus { border-color: var(--zi-500, #7f6fae); box-shadow: 0 0 0 3px rgba(127, 111, 174, 0.18); }

/* ---------- 节气盘 ---------- */
.np-yearrow { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.np-yearrow .np-year { width: 8.5em; flex: none; text-align: center; font-family: var(--font-serif); font-size: 17px; letter-spacing: 0.06em; }
.np-center { text-align: center; }
.np-chips-center { justify-content: center; margin-bottom: 8px; }
.np-meta-tight { margin: 4px 0 18px; }
.np-pillars { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; margin-top: 8px; text-align: center; }
.np-pillars span { display: block; font-size: 11px; color: var(--paper-ink-soft); letter-spacing: 0.04em; }
.np-pillars b { display: block; font-family: var(--font-serif); font-size: 15px; letter-spacing: 0.08em; color: var(--paper-ink); font-weight: 600; }
.np-pillars i { display: block; font-style: normal; font-size: 11px; color: var(--paper-ink-soft); }
.np-mini.qi h4 { color: var(--paper-ink-soft); }
.np-mini .np-mini-time { font-variant-numeric: tabular-nums; font-size: 13px; color: var(--paper-ink); letter-spacing: 0.02em; }
.np-md p { font-size: 13.5px; line-height: 1.8; color: var(--paper-ink); margin: 4px 0; white-space: pre-wrap; }
.np-md .np-tablewrap { margin: 6px 0 10px; }
@media (max-width: 420px) { .np-yearrow .np-year { width: 7em; } }

/* ---------- 骰子盘 ---------- */
.np-dice-faces { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; max-width: 880px; margin: 0 auto 22px; }
.np-face {
  text-align: center; padding: 18px 12px; border-radius: var(--radius-md); border: 1px solid rgba(var(--gold-rgb), 0.4);
  background: linear-gradient(160deg, var(--ink-800), var(--ink-950)); color: #f0ead6;
}
.np-face span { display: block; font-size: 12px; letter-spacing: 0.3em; text-indent: 0.3em; color: var(--gold-400); }
.np-face b { display: block; margin: 8px 0 6px; font-family: var(--font-serif); font-size: 30px; letter-spacing: 0.12em; color: var(--gold-300); }
.np-face i { display: block; font-style: normal; font-size: 12.5px; line-height: 1.6; color: rgba(240, 234, 214, 0.78); }
.np-twin { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; max-width: 980px; margin: 22px auto 0; }
@media (max-width: 720px) {
  .np-dice-faces { gap: 8px; }
  .np-face { padding: 12px 6px; }
  .np-face b { font-size: 22px; letter-spacing: 0.06em; }
  .np-twin { grid-template-columns: minmax(0, 1fr); }
}
html[data-theme="xiu"] .np-face { border-color: rgba(127, 111, 174, 0.45); }

/* ---------- 三式合一 ---------- */
.np-ssu-head { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; max-width: 980px; margin: 0 auto 16px; font-size: 13.5px; color: var(--paper-ink); }
.np-ssu-head span b { font-family: var(--font-serif); color: var(--gold-700); margin-right: 4px; font-weight: 600; }
.np-ssu-scroll { max-width: 760px; margin: 0 auto; }
.np-ssu-board {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: repeat(4, minmax(118px, auto));
  gap: 4px; min-width: 600px; padding: 6px; border-radius: var(--radius-md);
  background: linear-gradient(160deg, var(--ink-800), var(--ink-950)); border: 1px solid rgba(var(--gold-rgb), 0.35);
}
.np-ssu-cell { border: 1px solid rgba(var(--gold-rgb), 0.28); border-radius: 6px; padding: 6px 7px; color: #f0ead6; min-width: 0; position: relative; }
.np-ssu-cell .di { position: absolute; right: 7px; bottom: 5px; font-family: var(--font-serif); font-size: 13px; color: rgba(240, 234, 214, 0.55); }
.np-ssu-cell .tian { font-family: var(--font-serif); font-size: 20px; color: var(--gold-300); line-height: 1.1; }
.np-ssu-cell .jiang { font-family: var(--font-serif); font-size: 13px; color: #f2c9a0; margin-left: 4px; }
.np-ssu-cell .st { margin-top: 4px; font-size: 11.5px; line-height: 1.45; color: rgba(204, 218, 242, 0.92); }
.np-ssu-center { grid-column: 2 / 4; grid-row: 2 / 4; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3px; }
.np-ssu-pal { border: 1px solid rgba(var(--gold-rgb), 0.22); border-radius: 5px; padding: 4px 5px; font-size: 12px; line-height: 1.45; color: #f0ead6; background: rgba(var(--ink-900-rgb), 0.35); min-width: 0; }
.np-ssu-pal .pn { font-family: var(--font-serif); color: rgba(240, 234, 214, 0.6); font-size: 11px; }
.np-ssu-pal .gd { color: #f2b3a7; } .np-ssu-pal .sr { color: #ccdaf2; } .np-ssu-pal .dr { color: var(--gold-300); }
.np-ssu-pal .gan { font-family: var(--font-serif); font-size: 14px; }
.np-ssu-pal .mk { display: inline-block; font-size: 11px; color: #9fd7b8; margin-left: 2px; }
.np-ssu-pal.zf { box-shadow: inset 0 0 0 1px rgba(var(--gold-rgb), 0.7); }
.np-ssu-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; max-width: 980px; margin: 18px auto; }
.np-ssu-strip .np-panel + .np-panel { margin-top: 0; }
.np-ke { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; text-align: center; font-family: var(--font-serif); }
.np-ke div { border: 1px solid rgba(150, 114, 58, 0.3); border-radius: 4px; padding: 4px 0; line-height: 1.5; font-size: 14px; color: var(--paper-ink); }
.np-ke div small { display: block; font-size: 11.5px; color: var(--paper-ink-soft); }
.np-swipe-hint { display: none; }
@media (max-width: 720px) {
  .np-swipe-hint { display: block; margin: -6px 0 8px; }
  .np-ssu-strip { grid-template-columns: minmax(0, 1fr); }
  .np-ssu-head { justify-content: flex-start; }
}
html[data-theme="xiu"] .np-ssu-head span b { color: var(--zi-700, #584a85); }

/* ---------- 幕间节奏（2026-11-13 ui-c）：原各幕 padding 0，「用法与口径」面板下紧贴第二幕题、末幕直抵页脚 ----------
   起盘幕留底距；结果诸幕上有细界线与顶距、末幕留足底距（与奇门第二幕同律）。 */
#ask.np-act { padding-bottom: 64px; }
.np-act:not(#ask) { padding: 64px 0 24px; border-top: 1px solid rgba(44, 42, 36, 0.08); }
.np-act:not(#ask):last-of-type, .np-act:not(#ask):has(~ .np-act[hidden]):not([hidden]) { padding-bottom: 96px; }
/* 节气入境盘：星轮一屏可容，右栏判读长达三屏——星轮随滚动吸顶，免左下大片空（只桌面两栏时） */
@media (min-width: 961px) {
  #ingress .np-board > #jqWheel { position: sticky; top: calc(var(--nav-h) + 16px); }
}
/* 分项评分条：桌面题签放宽到 11em（原 7.5em 把「月亮（第一考量）」一类截成省略号） */
.np-bar { grid-template-columns: 11em minmax(0, 1fr) 2.4em; }
@media (max-width: 720px) {
  #ask.np-act { padding-bottom: 40px; }
  .np-act:not(#ask) { padding: 40px 0 16px; }
  .np-act:not(#ask):last-of-type, .np-act:not(#ask):has(~ .np-act[hidden]):not([hidden]) { padding-bottom: 64px; }
  /* 手机题签整行在上、条与分数在下，不再截字 */
  .np-bar { grid-template-columns: minmax(0, 1fr) 2.2em; row-gap: 2px; }
  .np-bar span:first-child { grid-column: 1 / -1; white-space: normal; overflow: visible; line-height: 1.45; }
}

/* ---------- 手机首屏起盘（2026-11-13 ui-c）：四页起盘钮须进 375×812 首屏 ----------
   第一幕节首（幕名 + 大题 + 说明）手机整块隐、帖头只留眉题、帖内行距收紧；
   帖内并排的小选单两两成行（只管帖身直属的两栏/三栏，折叠块里的不动），栏内口径小注隐。 */
@media (max-width: 720px) {
  #ask.np-act { padding-top: 10px; }
  #ask .section-head { display: none; }
  #ask .np-card-head { padding: 10px 16px 9px; }
  #ask .np-card-title { display: none; }
  #ask .np-card-body { padding: 14px 16px 20px; }
  #ask .np-card-body > .np-label, #ask .np-card-body > .np-grid2 .np-label, #ask .np-card-body > .np-grid3 .np-label { margin: 12px 0 6px; }
  #ask .np-card-body > .np-label:first-child, #ask .np-card-body > .np-grid2:first-child .np-label { margin-top: 0; }
  #ask .np-card-body > .np-actions { margin-top: 18px; }
  #ask .np-card-body > .np-grid2, #ask .np-card-body > .np-grid3 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 10px; }
  #ask .np-card-body > .np-grid3 > .np-cell:nth-child(3) { grid-column: 1 / -1; }
  #ask .np-cell .np-side { display: none; }
  #ask .np-hint:empty { display: none; }
  /* 「以此时此刻」整行不断、此刻时间另起一行缩进对齐（与奇门同律；原两栏挤成四行） */
  #ask .np-card-body > .check-line { display: flex; flex-wrap: wrap; align-items: center; row-gap: 0; white-space: nowrap; }
  #ask .np-card-body > .check-line > span { flex: 1 0 100%; padding-left: 30px; white-space: normal; font-size: 13px; color: var(--paper-ink-soft); }
  /* 节气年份一行四件：上一年 · 年 · 下一年 · 回今年（原「回今年」折到次行） */
  .np-yearrow { flex-wrap: nowrap; gap: 6px; }
  .np-yearrow .np-chip { padding: 7px 9px; letter-spacing: 0.02em; flex: none; }
  .np-yearrow .np-year { width: auto; flex: 1 1 0; min-width: 0; padding-left: 4px; padding-right: 4px; }
}

/* ---------- UI-1118 手机逐页清查（择日盘 / 节气盘 / 骰子盘 / 三式合一） ---------- */
@media (max-width: 720px) {
  /* 宽表在 309px 里横溢：尊贵强弱 11 列（星名压成一字宽「太／阳」竖折、外来·小计藏在右侧）、胜利星 8 列、
     逐时择优 7 列（「用此刻」钮只露半个）——单元格侧距 8 → 4（≥8 列 3），≥9 列首列不折 */
  .np-table :is(th, td) { padding-left: 4px; padding-right: 4px; }
  .np-table:has(th:nth-child(8)) :is(th, td) { padding-left: 3px; padding-right: 3px; }
  .np-table:has(th:nth-child(9)) td:first-child { white-space: nowrap; }
  /* 节首长题只在空格处折、两行均衡（「结婚、订婚 · 本日逐／时候选」「芜淫课 · 阴遁五局上／元」）；正文避孤字 */
  .np-act .section-title { word-break: keep-all; overflow-wrap: anywhere; text-wrap: balance; }
  .np-tseg { display: inline-block; max-width: 100%; }   /* np-common.js segTitle：段内不拆、点号随前段 */
  .np-act { text-wrap: pretty; }
  /* 起盘钮下两枚次级钮（本日逐时择优 / 未来十四日同刻）宽窄不一上下错落 → 均分一行 */
  .np-actions:has(> .btn-sm:nth-child(2)) { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
  .np-actions > .btn-sm { min-width: 0; padding-left: 6px; padding-right: 6px; letter-spacing: 0.06em; white-space: nowrap; }
}

/* ---------- 触屏底座（G18h：本块必须留在文件末位，新增样式一律写在其上方） ---------- */
/* 节气盘纸上只印结果（清查 1112 真打印实锤：结果段 #terms/#ingress 不在 print.css 总表里，首两页印夜空与录入表单） */
@media print {
  body:has(#terms:not([hidden])) :is(header.page-hero, section#ask) { display: none !important; }
}
@media (hover: none) and (pointer: coarse) {
  .np-input { font-size: 16px; }
  .np-chip, .np-tab, .np-toggle { min-height: 44px; }
  .np-details > summary { min-height: 44px; align-items: center; }
}
