/* lifepath 生命灵数命盘工具页样式（工作台双栏 + 羊皮纸命盘，自包含不依赖全站 utility）
   来源: uidemo v4 定稿（2026-09-10 用户确认），dx- 前缀防全站冲突。 */

.dx-page { min-height: 100vh; background: #f6f7f9; padding: 24px 0 48px; }
.dx-layout { max-width: 1080px; margin: 0 auto; padding: 0 20px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }

.dx-crumb { font-size: 13px; color: #6b7280; margin-bottom: 14px; }
.dx-crumb a { color: #6b7280; text-decoration: none; }
.dx-crumb a:hover { color: #2563eb; }
.dx-crumb-sep { margin: 0 8px; color: #c3c8d0; }

.dx-titlebox { margin-bottom: 18px; }
.dx-titlebox h1 { font-size: 26px; font-weight: 700; color: #1f2937; margin: 0 0 8px; }
.dx-titlebox p { font-size: 14.5px; color: #6b7280; line-height: 1.7; margin: 0; max-width: 640px; }

.dx-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 14px; overflow: hidden; box-shadow: 0 1px 2px rgba(15,23,42,.04); }
.dx-card > .dx-paper { padding: 22px; }

.dx-doc { margin-top: 24px; background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 20px; }
.dx-doc h3 { font-size: 17px; font-weight: 700; color: #1f2937; margin: 0 0 12px; }
.dx-doc p { font-size: 14px; color: #4b5563; line-height: 1.8; margin: 0 0 10px; }
.dx-doc p b { color: #1f2937; }
.dx-doc ul, .dx-doc ol { margin: 0 0 10px; padding-left: 20px; }
.dx-doc li { font-size: 14px; color: #4b5563; line-height: 1.8; }
.dx-doc h2 { font-size: 19px; font-weight: 700; color: #1f2937; margin: 22px 0 10px; }
.dx-doc table { width: 100%; border-collapse: collapse; font-size: 13.5px; margin: 10px 0 14px; }
.dx-doc th { background: #f9fafb; color: #6b7280; font-weight: 600; padding: 7px 10px; border: 1px solid #eef0f3; text-align: left; }
.dx-doc td { padding: 7px 10px; border: 1px solid #eef0f3; color: #374151; }
.dx-doc blockquote { margin: 10px 0; padding: 10px 14px; border-left: 3px solid #bfdbfe; background: #f8faff; color: #4b5563; font-size: 13.5px; line-height: 1.75; }

.dx-faqbox { margin-top: 24px; }
.dx-faqbox h3 { font-size: 17px; font-weight: 700; color: #1f2937; margin: 0 0 12px; }
.dx-faq { border: 1px solid #e5e7eb; border-radius: 10px; background: #fff; padding: 0 18px; margin-bottom: 10px; }
.dx-faq summary { cursor: pointer; font-weight: 600; font-size: 14.5px; color: #1f2937; padding: 13px 0; }
.dx-faq p { font-size: 14px; color: #6b7280; line-height: 1.75; margin: 0; padding: 0 0 13px; }

.dx-col-side { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.dx-col-main { min-width: 0; }
.dx-widget { background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 16px 18px; }
.dx-widget-title { font-size: 14.5px; font-weight: 700; color: #1f2937; margin-bottom: 12px; }

.dx-tool-link { display: flex; gap: 12px; align-items: center; text-decoration: none; padding: 8px 0; }
.dx-tool-link + .dx-tool-link { border-top: 1px solid #f3f4f6; }
.dx-tool-ico {
    flex: none; width: 34px; height: 34px; border-radius: 9px; background: #e0e7ff; color: #3730a3;
    font-weight: 700; font-size: 15px; display: flex; align-items: center; justify-content: center;
}
.dx-tool-ico-num { background: #fdf3d3; color: #92400e; }
.dx-tool-ico-all { background: #f3f4f6; color: #6b7280; }
.dx-tool-link b { display: block; font-size: 14px; color: #1f2937; }
.dx-tool-link span { display: block; font-size: 12.5px; color: #9ca3af; margin-top: 1px; }
.dx-tool-link:hover b { color: #2563eb; }

.dx-widget-priv { background: #f0fdf4; border-color: #bbf7d0; }
.dx-widget-priv b { font-size: 13.5px; color: #166534; }
.dx-widget-priv p { font-size: 13px; color: #15803d; line-height: 1.7; margin: 6px 0 0; }

/* ---- 羊皮纸命盘(工具卡内部) ---- */
.dx-paper { background: linear-gradient(170deg, #fffdf6, #faf3e2); }
.dx-birth-row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.dx-birth-field { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 150px; }
.dx-birth-label { font-size: 13px; color: #8a7648; white-space: nowrap; }
.dx-birth-input, .dx-birth-select { width: 100%; font-size: 16px; color: #3b2f1e; padding: 10px 12px; border: 1px solid #d9c894; border-radius: 10px; background: #fffdf6; outline: none; }
.dx-birth-input:focus, .dx-birth-select:focus { border-color: #b45309; box-shadow: 0 0 0 3px rgba(180,83,9,.14); }
.dx-err { font-size: 13px; color: #b91c1c; }
.dx-examples { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 12px; font-size: 13px; color: #8a7648; }
.dx-chip { font-size: 12.5px; color: #92400e; background: #fdf3d3; border: 1px solid #ecd9a0; border-radius: 999px; padding: 4px 12px; cursor: pointer; }
.dx-chip:hover { background: #fbe8b6; }

.dx-chart-layout { display: grid; grid-template-columns: minmax(0,1fr); gap: 22px; margin-top: 20px; }
@media (min-width: 860px) { .dx-chart-layout { grid-template-columns: minmax(0,360px) minmax(0,1fr); } }
.dx-chart-title { font-size: 14.5px; font-weight: 700; color: #3b2f1e; margin-bottom: 12px; letter-spacing: .5px; }
.dx-mt { margin-top: 20px; }
.dx-svgbox { background: #fffdf6; border: 1px solid #e5d5ae; border-radius: 12px; padding: 8px; }
.dx-svgbox svg { display: block; width: 100%; height: auto; }
.dx-legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 12px; color: #8a7648; margin-top: 8px; }
.dx-lg { display: inline-flex; align-items: center; gap: 6px; }
.dx-lg-line { display: inline-block; width: 22px; height: 0; border-top: 2px solid #b45309; }
.dx-lg-dim { display: inline-block; width: 14px; height: 14px; border: 1px dashed #c9b98c; border-radius: 4px; background: #f6efdc; }

.dx-num-row { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-bottom: 14px; }
.dx-big { font-size: 54px; font-weight: 700; line-height: 1; color: #b45309; font-family: Georgia, serif; min-width: 84px; text-align: center; background: #fffdf6; border: 2px solid #e0b96a; border-radius: 16px; padding: 10px 16px; box-shadow: 0 4px 16px rgba(180,83,9,.16); }
.dx-num-meta { flex: 1; min-width: 180px; }
.dx-master-tag { display: inline-block; font-size: 12.5px; font-weight: 700; color: #fff; background: linear-gradient(140deg, #b45309, #d97706); border-radius: 999px; padding: 3px 12px; margin-bottom: 8px; letter-spacing: 1px; }
.dx-keywords { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.dx-kw { font-size: 13px; color: #92400e; background: #fdf3d3; border-radius: 6px; padding: 3px 10px; border: 1px solid #ecd9a0; }
.dx-chain { font-size: 13px; color: #8a7648; font-family: Menlo, Consolas, monospace; }
.dx-mini { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.dx-mini th { background: #f6ecd2; color: #6b5d3f; border: 1px solid #e5d5ae; padding: 8px 10px; text-align: left; white-space: nowrap; font-weight: 600; }
.dx-mini td { border: 1px solid #e5d5ae; padding: 8px 10px; color: #3b2f1e; font-family: Georgia, serif; font-weight: 600; background: #fffdf6; }

.dx-tri { display: flex; flex-direction: column; align-items: center; gap: 6px; background: #fffdf6; border: 1px solid #e5d5ae; border-radius: 12px; padding: 16px 10px; }
.dx-tri-row { display: flex; gap: 26px; justify-content: center; }
.dx-node { width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 19px; font-weight: 700; font-family: Georgia, serif; color: #3b2f1e; background: #fdf3d3; border: 2px solid #e0b96a; }
.dx-node-top { width: 56px; height: 56px; font-size: 26px; color: #fff; background: linear-gradient(140deg, #b45309, #d97706); border-color: #92400e; box-shadow: 0 4px 12px rgba(180,83,9,.3); }
.dx-node-sub { font-size: 10.5px; color: #8a7648; text-align: center; margin-top: 3px; white-space: nowrap; }
.dx-tri-cell { display: flex; flex-direction: column; align-items: center; }
.dx-tri-join { color: #c9b98c; font-size: 15px; line-height: 1; }

.dx-analysis { margin-top: 22px; border: 1px solid #e5d5ae; border-radius: 12px; padding: 18px; background: #fffdf6; }
.dx-analysis-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.dx-a-num { font-size: 26px; font-weight: 700; color: #b45309; font-family: Georgia, serif; min-width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; background: #fdf3d3; border: 1px solid #ecd9a0; border-radius: 12px; }
.dx-a-title { font-size: 16px; font-weight: 600; color: #3b2f1e; }
.dx-a-row { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 10px; }
.dx-a-good, .dx-a-bad { flex-shrink: 0; font-size: 12.5px; font-weight: 600; border-radius: 6px; padding: 3px 10px; margin-top: 2px; }
.dx-a-good { color: #166534; background: #f0fdf4; border: 1px solid #bbf7d0; }
.dx-a-bad { color: #b91c1c; background: #fef2f2; border: 1px solid #fecaca; }
.dx-a-row p { margin: 0; font-size: 14px; line-height: 1.7; color: #574a2e; }
.dx-a-text { font-size: 14px; line-height: 1.85; color: #6b5d3f; margin: 12px 0 0; border-top: 1px dashed #e5d5ae; padding-top: 12px; }
.dx-disclaim { font-size: 12.5px; color: #92400e; background: #fdf3d3; border: 1px solid #ecd9a0; border-radius: 8px; padding: 10px 14px; margin: 18px 0 0; }

/* ---- 右栏命盘挂件(羊皮纸底) ---- */
.dx-widget-lp { background: linear-gradient(170deg, #fffdf6, #faf3e2); border-color: #e5d5ae; }
.dx-widget-lp .dx-widget-title { color: #3b2f1e; }
.dx-sum-row { display: flex; gap: 10px; font-size: 13px; padding: 7px 0; border-bottom: 1px dashed #eadfc2; }
.dx-sum-row:last-child { border-bottom: none; }
.dx-sum-k { flex-shrink: 0; color: #8a7648; min-width: 60px; }
.dx-sum-v { color: #3b2f1e; font-weight: 600; }
.dx-quick-list { display: flex; flex-direction: column; gap: 6px; }
.dx-qitem { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 8px; border: 1px solid transparent; cursor: pointer; font-size: 13.5px; color: #6b5d3f; }
.dx-qitem:hover { background: #f6ecd2; }
.dx-qitem.on { background: #f6ecd2; border-color: #e0b96a; color: #3b2f1e; font-weight: 600; }
.dx-qitem-num { font-family: Georgia, serif; font-weight: 700; font-size: 15px; color: #b45309; min-width: 26px; text-align: center; }
.dx-qitem.dashed { border-style: dashed; border-color: #ecd9a0; }
.dx-qitem.dashed .dx-qitem-num { color: #92400e; }

@media (max-width: 560px) {
    .dx-big { font-size: 44px; min-width: 64px; }
    .dx-birth-field { min-width: 100%; }
    .dx-tri-row { gap: 14px; }
    .dx-node { width: 38px; height: 38px; font-size: 16px; }
    .dx-node-sub { font-size: 9.5px; }
}

@media (min-width: 960px) {
    .dx-layout { grid-template-columns: minmax(0, 1fr) 300px; }
}
