/* ============================================================
   命之书 / 读懂100位人生  (Life Book PUBLIC pages stylesheet)
   ------------------------------------------------------------
   This file styles /public/life-book/ pages (entry + per-person).
   The P1-C Decision Timeline overlay uses /css/life-book.css
   (lkb-* classes) — these are different. No collision.
   ============================================================ */

/* --- HERO --- */
.lb-hero {
  padding: 96px 24px 64px;
  text-align: center;
  border-bottom: 1px solid var(--border);
  background: radial-gradient(ellipse at top, rgba(77, 159, 255, 0.04), transparent 60%);
}

.lb-hero-tag {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid rgba(77, 159, 255, 0.3);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 24px;
}

.lb-hero-title {
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  background: linear-gradient(120deg, var(--text-primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.lb-hero-sub {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin: 0 0 32px;
  font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

.lb-hero-philo {
  font-size: 1.15rem;
  color: var(--text-primary);
  font-style: italic;
  max-width: 640px;
  margin: 0 auto 32px;
  line-height: 1.6;
  opacity: 0.85;
}

.lb-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 24px;
}

.lb-hero-meta-item {
  font-size: 0.85rem;
  color: var(--text-muted);
  padding: 6px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 999px;
}

/* --- EXPLAINER --- */
.lb-explainer {
  padding: 56px 24px;
  max-width: 980px;
  margin: 0 auto;
}

.lb-explainer-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px 36px;
}

.lb-explainer-card h2 {
  font-size: 1.5rem;
  margin: 0 0 16px;
  color: var(--text-primary);
}

.lb-explainer-card p {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 16px;
}

.lb-explainer-list {
  list-style: none;
  padding: 0;
  margin: 16px 0;
}

.lb-explainer-list li {
  padding: 12px 0;
  border-bottom: 1px dashed var(--border-light);
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-secondary);
}

.lb-explainer-list li:last-child {
  border-bottom: none;
}

.lb-explainer-tier {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 4px;
  letter-spacing: 0.05em;
  flex-shrink: 0;
  min-width: 80px;
  text-align: center;
}

.lb-tier-verified   { background: rgba(63, 185, 80, 0.15); color: var(--green);  border: 1px solid rgba(63, 185, 80, 0.4); }
.lb-tier-supported  { background: rgba(77, 159, 255, 0.15); color: var(--accent); border: 1px solid rgba(77, 159, 255, 0.4); }
.lb-tier-pending    { background: rgba(210, 153, 34, 0.15); color: var(--orange); border: 1px solid rgba(210, 153, 34, 0.4); }
.lb-tier-unknown    { background: rgba(248, 81, 73, 0.10); color: var(--red);    border: 1px solid rgba(248, 81, 73, 0.3); }

.lb-explainer-note {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-style: italic;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* --- SECTION TITLES --- */
.lb-section-title {
  font-size: 1.8rem;
  text-align: center;
  margin: 0 0 8px;
  color: var(--text-primary);
}

.lb-section-sub {
  text-align: center;
  color: var(--text-muted);
  margin: 0 0 40px;
  font-size: 0.95rem;
}

/* --- INDEX GRID --- */
.lb-index {
  padding: 64px 24px;
  max-width: 1280px;
  margin: 0 auto;
}

.lb-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.lb-card {
  display: block;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.lb-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(77, 159, 255, 0.08), transparent);
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
}

.lb-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.lb-card:hover::before {
  opacity: 1;
}

.lb-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.lb-card-stratum {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.05em;
}

.lb-strat-tech      { background: rgba(77, 159, 255, 0.15); color: var(--accent); }
.lb-strat-business  { background: rgba(163, 113, 247, 0.15); color: var(--purple); }
.lb-strat-science   { background: rgba(63, 185, 80, 0.15);   color: var(--green); }
.lb-strat-politics  { background: rgba(210, 153, 34, 0.15); color: var(--orange); }
.lb-strat-arts      { background: rgba(248, 81, 73, 0.15);   color: var(--red); }

.lb-card-rodden {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 3px;
}

.lb-rodden-A   { background: rgba(63, 185, 80, 0.2);  color: var(--green); }
.lb-rodden-AA  { background: rgba(63, 185, 80, 0.3);  color: var(--green); border: 1px solid rgba(63, 185, 80, 0.5); }
.lb-rodden-B   { background: rgba(210, 153, 34, 0.2); color: var(--orange); }

.lb-card-name {
  font-size: 1.25rem;
  margin: 0 0 2px;
  color: var(--text-primary);
  font-weight: 600;
}

.lb-card-cn {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0 0 8px;
}

.lb-card-birth {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin: 0 0 12px;
  letter-spacing: 0.05em;
}

.lb-card-bazi {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  margin: 12px 0;
  padding: 10px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 6px;
  border: 1px solid var(--border-light);
}

.lb-bazi-stem {
  display: block;
  text-align: center;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.lb-bazi-stem.dm {
  color: var(--accent);
  font-size: 1.3rem;
  text-shadow: 0 0 8px rgba(77, 159, 255, 0.3);
}

.lb-bazi-branch {
  display: block;
  text-align: center;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.lb-card-tagline {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin: 12px 0 0;
  font-style: italic;
  line-height: 1.5;
  border-top: 1px solid var(--border-light);
  padding-top: 12px;
}

/* --- FUTURE SECTION --- */
.lb-future {
  padding: 64px 24px;
  max-width: 1080px;
  margin: 0 auto;
  border-top: 1px solid var(--border);
}

.lb-future-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.lb-future-col {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
}

.lb-future-col h3 {
  font-size: 1rem;
  margin: 0 0 16px;
  color: var(--text-primary);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border);
  padding-bottom: 12px;
}

.lb-future-count {
  font-size: 0.7rem;
  color: var(--accent);
  background: rgba(77, 159, 255, 0.1);
  padding: 2px 8px;
  border-radius: 999px;
  font-weight: 600;
}

.lb-future-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.lb-future-col li {
  padding: 6px 0;
  color: var(--text-secondary);
  font-size: 0.88rem;
  border-bottom: 1px dashed var(--border-light);
}

.lb-future-col li:last-child {
  border-bottom: none;
  color: var(--text-muted);
}

/* --- METHODOLOGY --- */
.lb-method {
  padding: 64px 24px;
  max-width: 880px;
  margin: 0 auto;
  border-top: 1px solid var(--border);
}

.lb-method-list {
  margin: 32px 0 0;
  padding-left: 0;
  list-style: none;
  counter-reset: lb-step;
}

.lb-method-list li {
  counter-increment: lb-step;
  padding: 16px 20px 16px 60px;
  margin-bottom: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  position: relative;
  color: var(--text-secondary);
  line-height: 1.7;
}

.lb-method-list li::before {
  content: counter(lb-step);
  position: absolute;
  left: 16px;
  top: 14px;
  width: 32px;
  height: 32px;
  background: var(--accent);
  color: var(--text-on-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
}

.lb-method-list li strong {
  color: var(--text-primary);
}

/* --- CTA FOOTER --- */
.lb-cta {
  padding: 80px 24px;
  text-align: center;
  background: linear-gradient(180deg, transparent, rgba(77, 159, 255, 0.03));
  border-top: 1px solid var(--border);
}

.lb-cta h2 {
  font-size: 1.6rem;
  margin: 0 0 16px;
  color: var(--text-primary);
}

.lb-cta p {
  max-width: 640px;
  margin: 0 auto 16px;
  color: var(--text-secondary);
  line-height: 1.8;
}

.lb-cta-tag {
  margin-top: 24px !important;
  font-style: italic;
  color: var(--accent) !important;
  font-size: 0.9rem;
}

/* --- MOBILE --- */
@media (max-width: 640px) {
  .lb-hero { padding: 64px 16px 40px; }
  .lb-hero-title { font-size: 2rem; }
  .lb-explainer-card { padding: 24px 20px; }
  .lb-card-grid { grid-template-columns: 1fr; }
  .lb-section-title { font-size: 1.4rem; }
}

/* ============================================================
   命之书 单本页面 · 8 章布局
   ============================================================ */

.lb-book {
  max-width: 980px;
  margin: 0 auto;
  padding: 32px 24px 80px;
}

/* 顶部封面 */
.lb-book-cover {
  padding: 56px 0 32px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 32px;
  text-align: center;
}

.lb-book-cover-tag {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid rgba(77, 159, 255, 0.3);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.lb-book-cover-name {
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 800;
  margin: 0 0 4px;
  letter-spacing: -0.02em;
}

.lb-book-cover-cn {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin: 0 0 24px;
}

.lb-book-cover-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 16px;
}

.lb-book-cover-tag-item {
  font-size: 0.78rem;
  padding: 4px 10px;
  border-radius: 4px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
}

/* 目录导航 */
.lb-toc {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 24px;
  margin-bottom: 40px;
}

.lb-toc-title {
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 12px;
}

.lb-toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: toc;
}

.lb-toc li {
  counter-increment: toc;
  padding: 6px 0 6px 28px;
  border-bottom: 1px dashed var(--border-light);
  position: relative;
}

.lb-toc li:last-child { border-bottom: none; }

.lb-toc li::before {
  content: counter(toc, chinese);
  position: absolute;
  left: 0;
  top: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
}

.lb-toc a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}

.lb-toc a:hover {
  color: var(--accent);
}

/* 章节通用 */
.lb-chapter {
  padding: 48px 0;
  border-bottom: 1px solid var(--border);
  scroll-margin-top: 24px;
}

.lb-chapter:last-child { border-bottom: none; }

.lb-chapter-header {
  margin-bottom: 28px;
}

.lb-chapter-num {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.lb-chapter-title {
  font-size: 1.7rem;
  margin: 0 0 8px;
  color: var(--text-primary);
  font-weight: 700;
}

.lb-chapter-subtitle {
  color: var(--text-muted);
  margin: 0;
  font-size: 0.95rem;
  font-style: italic;
}

/* §1 命盘 */
.lb-panels {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.lb-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 18px 20px;
}

.lb-panel-label {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.lb-panel-body {
  color: var(--text-primary);
  font-size: 0.95rem;
  line-height: 1.7;
}

.lb-bazi-grid {
  display: grid;
  grid-template-columns: 80px repeat(4, 1fr);
  gap: 4px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 16px;
  align-items: center;
}

.lb-bazi-grid-header {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
}

.lb-bazi-grid-row-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
  text-align: right;
  padding-right: 8px;
}

.lb-bazi-grid-cell {
  text-align: center;
  font-size: 1.4rem;
  font-weight: 600;
  padding: 8px 0;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 6px;
}

.lb-bazi-grid-cell.dm {
  color: var(--accent);
  font-size: 1.6rem;
  text-shadow: 0 0 10px rgba(77, 159, 255, 0.4);
}

/* 占位 / 待研究卡片 */
.lb-placeholder {
  background: var(--bg-card);
  border: 1px dashed var(--border-light);
  border-radius: 10px;
  padding: 32px 24px;
  text-align: center;
  color: var(--text-muted);
}

.lb-placeholder-title {
  font-size: 1rem;
  color: var(--text-secondary);
  margin: 0 0 8px;
}

.lb-placeholder-note {
  font-size: 0.85rem;
  font-style: italic;
  margin: 0;
  color: var(--text-muted);
}

/* §3 时间轴 */
.lb-timeline {
  position: relative;
  padding-left: 24px;
}

.lb-timeline::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg, var(--accent), transparent);
}

.lb-timeline-stage {
  position: relative;
  margin-bottom: 28px;
}

.lb-timeline-stage:last-child { margin-bottom: 0; }

.lb-timeline-stage::before {
  content: '';
  position: absolute;
  left: -22px;
  top: 8px;
  width: 12px;
  height: 12px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 0 4px var(--bg-primary);
}

.lb-timeline-stage-title {
  font-size: 0.85rem;
  color: var(--accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0 0 8px;
  font-weight: 600;
}

.lb-timeline-stage-year {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 6px;
}

.lb-timeline-event {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 8px;
}

.lb-timeline-event:last-child { margin-bottom: 0; }

.lb-timeline-event-desc {
  color: var(--text-secondary);
  margin: 0 0 4px;
  font-size: 0.92rem;
  line-height: 1.6;
}

.lb-timeline-event-meta {
  font-size: 0.72rem;
  color: var(--text-muted);
  display: flex;
  gap: 8px;
  align-items: center;
}

.lb-timeline-event-domain {
  padding: 1px 6px;
  background: rgba(77, 159, 255, 0.1);
  color: var(--accent);
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.lb-timeline-empty {
  color: var(--text-muted);
  font-style: italic;
  font-size: 0.9rem;
  padding: 8px 0;
}

/* §7 验证表 */
.lb-validation {
  display: grid;
  gap: 12px;
  margin-bottom: 24px;
}

.lb-validation-tier {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid;
  border-radius: 8px;
  padding: 16px 20px;
}

.lb-validation-tier.lb-tier-verified { border-left-color: var(--green); }
.lb-validation-tier.lb-tier-supported { border-left-color: var(--accent); }
.lb-validation-tier.lb-tier-pending { border-left-color: var(--orange); }
.lb-validation-tier.lb-tier-unknown { border-left-color: var(--red); }

.lb-validation-tier-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.lb-validation-tier-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
}

.lb-validation-tier-count {
  font-size: 0.78rem;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
}

.lb-validation-tier-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.6;
}

.lb-validation-tier-empty {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: italic;
  margin: 8px 0 0;
}

.lb-validation-list {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
}

.lb-validation-list li {
  padding: 6px 0;
  border-top: 1px dashed var(--border-light);
  color: var(--text-secondary);
  font-size: 0.88rem;
}

.lb-validation-list li:first-child { border-top: none; }

/* 上一/下一本 浮按钮 */
.lb-prev-next {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  gap: 8px;
  z-index: 100;
}

.lb-prev-next a {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-primary);
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 0.85rem;
  text-decoration: none;
  transition: all 0.2s;
}

.lb-prev-next a:hover {
  border-color: var(--accent);
  color: var(--accent);
}
/* ── §1 live-data panels (qimen × tianrenjie via G-1 multi-engine) ── */

/* 大运 (Decade Luck) */
.lb-dayun-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-family: var(--font-sans);
}
.lb-dayun-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 4px;
  border-left: 2px solid transparent;
}
.lb-dayun-current {
  background: rgba(181, 150, 99, 0.12);
  border-left-color: var(--accent);
  font-weight: 500;
}
.lb-dayun-ganzhi {
  font-family: var(--font-cn);
  color: var(--accent);
  font-weight: 600;
}
.lb-dayun-age { color: var(--text-muted); font-size: 0.85rem; }

/* 流年关键节点 (Key Years) */
.lb-ky-list { display: flex; flex-direction: column; gap: 4px; }
.lb-ky-row {
  display: grid;
  grid-template-columns: 60px 60px 60px 1fr;
  gap: 10px;
  padding: 6px 10px;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 4px;
}
.lb-ky-row.lb-ky-major { border-left: 2px solid #c0392b; }
.lb-ky-row.lb-ky-moderate { border-left: 2px solid var(--accent); }
.lb-ky-row.lb-ky-minor { border-left: 2px solid var(--text-muted); }
.lb-ky-year { color: var(--accent); font-weight: 500; }
.lb-ky-gz { color: var(--text-secondary); }
.lb-ky-level { color: var(--text-muted); }
.lb-ky-text { color: var(--text-secondary); }

/* 命盘结构图 */
.lb-struct-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 8px 0;
}
.lb-struct-cell {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 6px;
  padding: 8px 4px;
  text-align: center;
  border: 1px solid var(--border);
}
.lb-struct-cell:nth-of-type(3) {
  border-color: var(--accent);
  background: rgba(181, 150, 99, 0.08);
}
.lb-struct-stem, .lb-struct-branch {
  font-family: var(--font-cn);
  font-size: 1.5rem;
  font-weight: 500;
  display: block;
  line-height: 1.2;
}
.lb-struct-stem { color: var(--accent); }
.lb-struct-branch { color: var(--text-secondary); }
.lb-struct-elem {
  font-size: 0.7rem;
  margin-left: 4px;
  color: var(--text-muted);
  font-family: var(--font-sans);
}

/* 十神关系 */
.lb-tg-list { display: flex; flex-direction: column; gap: 2px; font-family: var(--font-sans); font-size: 0.85rem; }
.lb-tg-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1.5fr;
  gap: 10px;
  padding: 5px 8px;
  border-radius: 4px;
}
.lb-tg-row:nth-child(even) { background: rgba(255, 255, 255, 0.04); }
.lb-tg-header {
  font-weight: 500;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.lb-tg-pillar { color: var(--text-secondary); }
.lb-tg-stem { color: var(--accent); font-family: var(--font-cn); }
.lb-tg-god { color: var(--text-primary); font-family: var(--font-cn); }

/* 关键格局 (Key Patterns from qimen) */
.lb-kp-list { display: flex; flex-direction: column; gap: 2px; font-family: var(--font-sans); font-size: 0.85rem; }
.lb-kp-row {
  display: grid;
  grid-template-columns: 70px 70px 60px 1fr;
  gap: 10px;
  padding: 5px 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.03);
}
.lb-kp-row.lb-qimen-header {
  background: transparent;
  font-weight: 500;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
}
.lb-kp-dim { color: var(--text-secondary); }
.lb-kp-sig { color: var(--accent); }
.lb-kp-conf { color: #7A8A6F; text-align: right; }
.lb-kp-text { color: var(--text-secondary); font-size: 0.78rem; }

/* 奇门格局 (Qimen Pattern from qimen engine) */
.lb-qimen-list { display: flex; flex-direction: column; gap: 2px; font-family: var(--font-sans); font-size: 0.83rem; }
.lb-qimen-row {
  display: grid;
  grid-template-columns: 110px 70px 70px 60px 1fr;
  gap: 8px;
  padding: 5px 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.03);
}
.lb-qimen-row.lb-qimen-header {
  background: transparent;
  font-weight: 500;
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
}
.lb-qimen-source { color: var(--text-muted); font-size: 0.75rem; }
.lb-qimen-dim { color: var(--text-secondary); }
.lb-qimen-sig { color: var(--accent); }
.lb-qimen-conf { color: #7A8A6F; text-align: right; }
.lb-qimen-ev { color: var(--text-secondary); font-size: 0.78rem; overflow: hidden; text-overflow: ellipsis; }

/* engine fetch notice (small badge for transparency) */
.lb-engine-meta {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed var(--border);
}
.lb-engine-meta strong { color: var(--accent); }
.lb-engine-meta .lb-engine-on { color: #7A8A6F; }
.lb-engine-meta .lb-engine-off { color: #B59663; }
