/* ==========================================================================
   吕祖灵签 · 八字 / 面相 / 风水 测算模块样式
   ========================================================================== */

/* ---------- 通用色彩工具 ---------- */
.c-red    { color: #b8363f !important; }
.c-green  { color: #2c7a4b !important; }
.c-orange { color: #c07a1a !important; }
.strong   { font-weight: 600; }

/* 五行配色 */
.wx-mu   { color: #2e8b57; }
.wx-huo  { color: #c0392b; }
.wx-tu   { color: #b8860b; }
.wx-jin  { color: #7b8794; }
.wx-shui { color: #2471a3; }
i.wx-mu   { background: linear-gradient(90deg,#5fbf8d,#2e8b57); }
i.wx-huo  { background: linear-gradient(90deg,#e57366,#c0392b); }
i.wx-tu   { background: linear-gradient(90deg,#e0be63,#b8860b); }
i.wx-jin  { background: linear-gradient(90deg,#b3bcc6,#7b8794); }
i.wx-shui { background: linear-gradient(90deg,#6fa8dc,#2471a3); }

/* 评分等级 */
.grade-excellent { --gc:#1d7a48; --gcbg:#eaf7ef; --gcbd:#bfe3cd; }
.grade-good      { --gc:#2f8b5b; --gcbg:#f0f9f3; --gcbd:#c9e6d6; }
.grade-fair      { --gc:#3f7fa8; --gcbg:#eef5fa; --gcbd:#c8dcea; }
.grade-normal    { --gc:#8a7a52; --gcbg:#f8f5ec; --gcbd:#e6ddc6; }
.grade-low       { --gc:#c07a1a; --gcbg:#fdf6ea; --gcbd:#efd9b0; }
.grade-poor      { --gc:#b8363f; --gcbg:#fdf3f3; --gcbg:#fdf3f3; --gcbd:#f0d2d2;
                   --gcbg:#fdf3f3; }

/* ---------- 表单：选项卡片 ---------- */
.opt-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(215px,1fr));gap:11px;margin-bottom:6px}
.opt-cards-sm{grid-template-columns:repeat(auto-fill,minmax(195px,1fr))}
.opt-card{
  display:block;position:relative;cursor:pointer;
  border:1.5px solid var(--border);border-radius:11px;padding:12px 14px;background:#fffdf8;
  transition:.16s;
}
.opt-card:hover{border-color:var(--gold-2);background:#fffcf2}
.opt-card input{position:absolute;opacity:0;pointer-events:none}
.opt-card.checked{border-color:var(--gold);background:#fffaf0;box-shadow:0 0 0 3px rgba(201,162,39,.12)}
.opt-card.checked::after{
  content:"✔";position:absolute;top:8px;right:10px;font-size:12px;color:var(--gold);font-weight:700;
}
.oc-head{display:flex;align-items:center;gap:8px;margin-bottom:5px}
.oc-name{font-weight:600;color:var(--ink);font-size:14.5px}
.oc-badge{font-size:11px;padding:1px 7px;border-radius:9px;background:#f3ecdc;color:#8a7a52}
.oc-feat{font-size:12.5px;color:var(--muted);line-height:1.75}
.wx-badge-木{background:#e8f5ee;color:#2e8b57}
.wx-badge-火{background:#fdecea;color:#c0392b}
.wx-badge-土{background:#faf3e2;color:#b8860b}
.wx-badge-金{background:#eef1f4;color:#7b8794}
.wx-badge-水{background:#e9f2fa;color:#2471a3}
.wx-badge-合{background:#f2eefb;color:#6d5aa8}

/* 三停分组 */
.stop-group{padding:14px 0;border-bottom:1px dashed var(--border)}
.stop-group:last-child{border-bottom:0;padding-bottom:0}
.sg-head{display:flex;align-items:baseline;gap:11px;flex-wrap:wrap;margin-bottom:11px}
.sg-name{font-weight:600;font-size:15px;color:var(--red)}
.sg-part{font-size:12.5px;color:#5c4d38}
.sg-age{font-size:12px;background:#f3ecdc;color:#8a7a52;padding:1px 8px;border-radius:9px}
.sg-theme{font-size:12px;color:var(--muted)}

/* 十二宫行 */
.palace-list{border:1px solid var(--border);border-radius:11px;overflow:hidden}
.palace-row{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:10px 14px;border-bottom:1px solid #f4ecdd;background:#fffdf8;flex-wrap:wrap}
.palace-row:last-child{border-bottom:0}
.palace-row:nth-child(even){background:#fffaf1}
.pr-name{font-weight:600;color:var(--ink);font-size:14px}
.pr-pos{font-weight:400;font-size:12px;color:var(--muted);margin-left:7px}
.pr-theme{font-size:12px;color:var(--muted)}
.pr-opts{display:flex;gap:0;border:1px solid var(--border);border-radius:9px;overflow:hidden;flex:0 0 auto}
.seg-btn{
  position:relative;cursor:pointer;padding:6px 17px;font-size:13px;color:#8a7a52;background:#fffdf8;
  border-right:1px solid var(--border);transition:.15s;text-align:center;
}
.seg-btn:last-child{border-right:0}
.seg-btn input{position:absolute;opacity:0;pointer-events:none}
.seg-btn:hover{background:#faf4e6}
.seg-btn.checked{background:var(--red);color:#f8ecd6;font-weight:600}

/* 五官行 */
.official-list{display:flex;flex-direction:column;gap:14px}
.official-row{display:flex;gap:16px;align-items:flex-start;flex-wrap:wrap}
.or-label{flex:0 0 138px;padding-top:7px}
.or-name{font-weight:600;font-size:15px;color:var(--red)}
.or-alias{font-size:11.5px;color:#8a7a52;background:#f3ecdc;padding:1px 7px;border-radius:8px;margin-left:6px}
.or-liunian{display:block;font-size:11.5px;color:var(--muted);margin-top:3px}
.or-field{flex:1;min-width:230px}
.opt-hint{
  margin-top:7px;font-size:12.5px;color:var(--muted);line-height:1.8;
  background:#faf6ec;border-left:3px solid var(--gold-2);border-radius:0 8px 8px 0;padding:7px 11px;min-height:34px;
}

/* 痣相 chips */
.chip-group{display:flex;flex-wrap:wrap;gap:9px}
.chip{
  position:relative;cursor:pointer;display:inline-flex;align-items:center;gap:6px;
  border:1.5px solid var(--border);border-radius:20px;padding:6px 14px;font-size:13px;color:#5c4d38;background:#fffdf8;transition:.15s;
}
.chip input{position:absolute;opacity:0;pointer-events:none}
.chip:hover{border-color:var(--gold-2)}
.chip.checked{border-color:var(--gold);background:#fffaf0;color:var(--ink);font-weight:600}
.chip-luck{font-style:normal;font-size:11px;padding:0 5px;border-radius:7px;background:#f3ecdc;color:#8a7a52}
.chip-吉{background:#e8f5ee;color:#2e8b57}
.chip-凶{background:#fdecea;color:#c0392b}
.chip-半{background:#faf3e2;color:#b8860b}

/* ---------- 测算模块首页式说明 ---------- */
.fs-intro{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:12px;margin-bottom:18px}
.fs-intro-item{background:var(--card);border:1px solid var(--border);border-radius:12px;padding:14px 16px;box-shadow:var(--shadow)}
.fsi-head{font-weight:600;color:var(--ink);font-size:14.5px;margin-bottom:7px;display:flex;align-items:center;gap:7px}
.fsi-body{font-size:12.5px;color:var(--muted);line-height:1.85}
.tag{display:inline-block;font-size:11.5px;padding:2px 9px;border-radius:9px;font-weight:600}
.tag-ziping{background:#e9f2fa;color:#2471a3}
.tag-blind{background:#f2eefb;color:#6d5aa8}
.tag-gold{background:#faf3e2;color:#a8801a}

.fs-outline{display:grid;grid-template-columns:repeat(auto-fit,minmax(215px,1fr));gap:16px}
.fso-col h4{font-size:14px;color:var(--red);margin-bottom:8px;padding-bottom:7px;border-bottom:1px solid var(--border)}
.fso-col ul{margin-left:2px}
.fso-col li{font-size:12.5px;color:#5c4d38;line-height:1.95;padding-left:14px;position:relative}
.fso-col li::before{content:"·";position:absolute;left:3px;color:var(--gold);font-weight:700}

/* ---------- 报告框架 ---------- */
.report-wrap{max-width:960px;margin:0 auto}
.report-hero{
  display:flex;align-items:center;justify-content:space-between;gap:20px;flex-wrap:wrap;
  background:linear-gradient(135deg,#7c1a22,#a32b34 55%,#8c1f28);color:#f6ead2;
  border-radius:16px;padding:22px 26px;margin-bottom:16px;box-shadow:0 4px 18px rgba(90,20,25,.2);
}
.rh-title{font-size:16px;letter-spacing:2px;color:#e8c98a;margin-bottom:8px}
.rh-sub{font-family:var(--serif);font-size:26px;letter-spacing:6px;color:#fff8e8;line-height:1.5}
.rh-sub em{color:#f3dfae;font-style:normal;position:relative}
.rh-sub em::after{content:"";position:absolute;left:-3px;right:-3px;bottom:2px;height:5px;background:rgba(243,223,174,.22);border-radius:3px}
.rh-tags{display:flex;gap:7px;flex-wrap:wrap;margin-top:11px}
.rh-tag{font-size:11.5px;padding:2px 10px;border-radius:10px;background:rgba(255,255,255,.14);color:#f6ead2}
.rh-tag-gold{background:rgba(232,201,138,.24);color:#f7e2ab}
.rh-right{flex:0 0 auto}
.rh-score{
  --gc:#8a7a52;--gcbg:rgba(255,255,255,.12);--gcbd:rgba(255,255,255,.3);
  width:104px;height:104px;border-radius:50%;background:var(--gcbg);
  border:1.5px solid var(--gcbd);display:flex;flex-direction:column;align-items:center;justify-content:center;
  backdrop-filter:blur(4px);
}
.rh-score .rs-num{font-size:31px;font-weight:700;color:#fff6e2;line-height:1;font-family:var(--serif)}
.rh-score .rs-grade{font-size:12px;color:#f3dfae;letter-spacing:2px;margin-top:5px}

.report-summary{
  background:var(--card);border:1px solid var(--border);border-left:4px solid var(--gold);
  border-radius:0 12px 12px 0;padding:15px 20px;margin-bottom:16px;box-shadow:var(--shadow);
}
.rs-label{font-size:12px;color:var(--gold);font-weight:600;letter-spacing:2px;margin-bottom:6px}
.report-summary p{font-size:14px;line-height:2;color:#4a3d2c}
.rs-meta{margin-top:9px;font-size:12px;color:var(--muted);display:flex;gap:16px;flex-wrap:wrap}

.report-tabs{display:flex;gap:5px;border-bottom:2px solid var(--border);margin-bottom:16px;overflow-x:auto}
.rt-item{
  padding:10px 22px;font-size:14.5px;color:#8a7a52;cursor:pointer;border-bottom:2px solid transparent;
  margin-bottom:-2px;white-space:nowrap;transition:.16s;border-radius:8px 8px 0 0;
}
.rt-item:hover{background:#faf5ea;color:var(--red)}
.rt-item.active{color:var(--red);font-weight:600;border-bottom-color:var(--red);background:#fffdf8}
.rp-panel{display:none}
.rp-panel.active{display:block}

.report-actions{display:flex;gap:10px;justify-content:center;flex-wrap:wrap;margin:26px 0 14px}
.report-disclaimer{
  font-size:12px;color:var(--muted);line-height:1.9;text-align:center;
  border-top:1px dashed var(--border);padding-top:14px;
}

/* ---------- 报告区块 ---------- */
.report-block{background:var(--card);border:1px solid var(--border);border-radius:13px;margin-bottom:14px;overflow:hidden;box-shadow:var(--shadow)}
.blind-theme{border-left:3px solid #8c7bb8}
.rb-title{
  padding:13px 20px;background:#faf5ea;font-size:15px;font-weight:600;color:var(--red);
  border-bottom:1px solid var(--border);display:flex;align-items:center;gap:10px;
}
.rb-title small{font-weight:400;font-size:12px;color:var(--muted)}
.rb-no{
  display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;border-radius:50%;
  background:var(--red);color:#f8ecd6;font-size:12px;font-weight:600;flex:0 0 22px;
}
.blind-theme .rb-no{background:#7a68a8}
.rb-body{padding:16px 20px}
.rb-p{font-size:13.5px;line-height:2;color:#4a3d2c;margin-bottom:9px}
.rb-p:last-child{margin-bottom:0}
.rb-sub{font-size:13px;font-weight:600;color:var(--red);margin:14px 0 8px;padding-left:10px;border-left:3px solid var(--gold-2)}
.rb-note{font-size:12.5px;color:var(--muted);background:#faf6ec;border-radius:8px;padding:9px 13px}
.rb-note.disputed-note{margin-top:9px;color:#7a5a1f;background:#fdf6e3;border-left:3px solid var(--gold-2);line-height:1.9}
.rb-advice{font-size:13px;color:#2c6b4b;background:#f1f8f4;border-radius:8px;padding:9px 13px;border-left:3px solid #8ec9a6}
.rb-ul{margin:0}
.rb-ul li{font-size:13.5px;line-height:2;color:#4a3d2c;padding-left:17px;position:relative;margin-bottom:3px}
.rb-ul li::before{content:"◆";position:absolute;left:0;top:0;font-size:9px;color:var(--gold);line-height:2.6}
.rb-ul-warn li::before{content:"◆";color:#c07a1a}

.kv-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:9px;margin-bottom:12px}
.kv{display:flex;gap:10px;font-size:13px;background:#faf7ef;border-radius:8px;padding:8px 12px}
.kv .k{flex:0 0 74px;color:var(--muted);font-size:12.5px;padding-top:1px}
.kv .v{flex:1;color:#4a3d2c;line-height:1.8}

.higlight-box{background:#f6f8fb;border:1px solid #dbe6f0;border-radius:10px;padding:12px 16px;margin-bottom:12px}
.hb-label{font-size:12px;color:#3f7fa8;font-weight:600;margin-bottom:5px}
.hb-val{font-size:13.5px;color:#33424f;line-height:1.9}

/* ---------- 用神 ---------- */
.yong-row{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:13px}
.yong-card{border-radius:11px;padding:13px 18px;text-align:center}
.yong-good{background:linear-gradient(135deg,#eef8f2,#e2f2e9);border:1px solid #bfe0cd}
.yong-bad{background:linear-gradient(135deg,#fdf2f2,#fbe9e9);border:1px solid #f0d2d2}
.yc-label{font-size:12px;color:#8a7a52;margin-bottom:5px}
.yc-val{font-size:20px;font-weight:700;font-family:var(--serif);letter-spacing:3px}
.yong-good .yc-val{color:#2c7a4b}
.yong-bad .yc-val{color:#b8363f}

/* ---------- 宫位 ---------- */
.gong-list{display:flex;flex-direction:column;gap:10px}
.gong-item{border:1px solid var(--border);border-radius:10px;overflow:hidden}
.gi-head{display:flex;align-items:center;gap:9px;flex-wrap:wrap;background:#faf5ea;padding:8px 13px;font-size:13px}
.gi-gong{font-weight:600;color:var(--ink)}
.gi-gz{font-family:var(--serif);font-size:15px;color:var(--red);letter-spacing:1px}
.gi-ss{font-size:11.5px;background:#fff;border:1px solid var(--border);color:#8a7a52;border-radius:8px;padding:0 7px}
.gi-kong{font-size:11px;background:#fdecea;color:#c0392b;border-radius:7px;padding:0 7px}
.gi-zhi{font-weight:600;color:var(--ink);font-size:13.5px}
.gi-tag{font-size:11.5px;padding:1px 9px;border-radius:8px}
.tag-合{background:#e8f5ee;color:#2e8b57}
.tag-冲{background:#fdecea;color:#c0392b}
.tag-刑{background:#faf3e2;color:#b8860b}
.tag-三合,.tag-三会{background:#e9f2fa;color:#2471a3}
.tag-穿(害),.tag-相破,.tag-破{background:#f3eefa;color:#7a68a8}
.tag-生克,.tag-无{background:#f3ecdc;color:#8a7a52}
.tag-tag{background:#f3ecdc;color:#8a7a52}
.tag-入墓,.tag-用神入库{background:#f3eefa;color:#7a68a8}
.gi-body{padding:10px 14px;font-size:13px;line-height:1.95;color:#4a3d2c}
.gi-raw{font-size:11.5px;color:var(--muted)}

/* ---------- 大运 ---------- */
.luck-head{display:flex;gap:16px;flex-wrap:wrap;font-size:12.5px;color:#5c4d38;background:#faf6ec;border-radius:8px;padding:9px 13px;margin-bottom:12px}
.luck-list{display:flex;flex-direction:column;gap:8px}
.luck-item{
  --gc:#8a7a52;--gcbg:#fffdf8;--gcbd:var(--border);
  display:grid;grid-template-columns:64px 108px 62px 1fr;gap:12px;align-items:center;
  border:1px solid var(--gcbd);border-left:3px solid var(--gc);background:var(--gcbg);
  border-radius:9px;padding:9px 13px;
}
.li-gz{font-family:var(--serif);font-size:19px;color:var(--gc);letter-spacing:1px;text-align:center}
.li-age{font-size:13px;font-weight:600;color:#4a3d2c}
.li-year{font-size:11.5px;color:var(--muted)}
.li-tag{font-size:12px;font-weight:600;color:var(--gc);text-align:center;background:#fff;border-radius:8px;padding:2px 0;border:1px solid var(--gcbd)}
.li-text{font-size:12.5px;line-height:1.85;color:#5c4d38}

/* ---------- 流年 ---------- */
.flow-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(178px,1fr));gap:11px}
.flow-item{
  --gc:#8a7a52;--gcbg:#fffdf8;--gcbd:var(--border);
  border:1px solid var(--gcbd);border-top:3px solid var(--gc);background:var(--gcbg);
  border-radius:10px;padding:11px 13px;
}
.fi-year{font-size:18px;font-weight:700;color:var(--gc);font-family:var(--serif)}
.fi-year em{font-style:normal;font-size:13px;color:var(--muted);margin-left:7px;font-family:var(--sans)}
.fi-age{font-size:11.5px;color:var(--muted)}
.fi-tag{display:inline-block;font-size:11.5px;font-weight:600;color:var(--gc);background:#fff;border:1px solid var(--gcbd);border-radius:8px;padding:1px 9px;margin:6px 0}
.fi-text{font-size:12px;line-height:1.8;color:#5c4d38}

/* ---------- 开运 ---------- */
.open-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(148px,1fr));gap:10px;margin-bottom:13px}
.og-item{border-radius:10px;padding:11px 14px;text-align:center}
.og-good{background:#f1f8f4;border:1px solid #c9e6d6}
.og-bad{background:#fdf4f4;border:1px solid #f0d8d8}
.og-label{font-size:11.5px;color:#8a7a52;margin-bottom:4px}
.og-val{font-size:14.5px;font-weight:600;color:#3a2f22;line-height:1.6}
.og-val.small{font-size:12px;font-weight:400}
.og-good .og-val{color:#2c7a4b}
.og-bad .og-val{color:#b8363f}

/* ==========================================================================
   八字盘面
   ========================================================================== */
.bz-summary{
  display:flex;flex-wrap:wrap;gap:9px 22px;background:var(--card);border:1px solid var(--border);
  border-radius:12px;padding:13px 18px;margin-bottom:13px;box-shadow:var(--shadow);
}
.bz-sum-item{font-size:13px;display:flex;gap:7px;align-items:baseline}
.bz-sum-item .k{color:var(--muted);font-size:12.5px}
.bz-sum-item .v{color:var(--ink);font-weight:600}
.tst-delta{font-style:normal;font-size:11.5px;color:var(--muted);font-weight:400;margin-left:4px}
.tst-warn{font-style:normal;font-size:11.5px;color:#b45309;font-weight:600;margin-left:6px}

.bz-chart-wrap{overflow-x:auto;margin-bottom:13px}
.bz-chart{width:100%;min-width:520px;border-collapse:separate;border-spacing:0;background:var(--card);border:1px solid var(--border);border-radius:12px;overflow:hidden;box-shadow:var(--shadow)}
.bz-chart th,.bz-chart td{text-align:center;padding:10px 6px;border-bottom:1px solid #f4ecdd;border-right:1px solid #f4ecdd;font-size:13px}
.bz-chart th:last-child,.bz-chart td:last-child{border-right:0}
.bz-chart tbody tr:last-child td{border-bottom:0}
.bz-chart thead th{background:#faf5ea}
.bz-chart .bz-rowhead{background:#faf5ea;font-size:12px;color:var(--muted);width:64px;font-weight:400}
.bz-chart .is-day{background:#fffaf0}
.bz-chart thead th.is-day{background:#fdf2e0}
.bz-pname{font-size:12px;color:var(--muted);font-weight:400}
.bz-ss{font-size:13.5px;font-weight:600;color:var(--red);margin-top:3px}
.gz-char{display:block;font-family:var(--serif);font-size:29px;line-height:1.25;font-weight:600}
.gz-wx{display:block;font-style:normal;font-size:11px;color:var(--muted);margin-top:2px}
.hidden-gan{display:inline-block;font-family:var(--serif);font-size:15px;color:#5c4d38;margin:0 3px;line-height:1.6}
.hidden-gan em{display:block;font-style:normal;font-size:10px;color:var(--muted);font-family:var(--sans)}

.bz-two-col{display:grid;grid-template-columns:1fr 1fr;gap:13px;margin-bottom:13px}
.bz-panel{background:var(--card);border:1px solid var(--border);border-radius:12px;padding:0 0 14px;overflow:hidden;box-shadow:var(--shadow)}
.bp-head{padding:11px 17px;background:#faf5ea;border-bottom:1px solid var(--border);font-size:13.5px;font-weight:600;color:var(--red)}
.bp-head small{font-weight:400;font-size:11.5px;color:var(--muted)}
.bp-foot{padding:10px 17px 0;font-size:12.5px;color:var(--muted);line-height:1.9}

.wx-bars{padding:13px 17px 4px}
.wx-bar-row{display:flex;align-items:center;gap:10px;margin-bottom:9px}
.wx-name{flex:0 0 22px;font-family:var(--serif);font-size:16px;font-weight:600}
.wx-bar{flex:1;height:11px;background:#f2ece0;border-radius:6px;overflow:hidden}
.wx-bar i{display:block;height:100%;border-radius:6px;transition:width .5s}
.wx-val{flex:0 0 46px;text-align:right;font-size:12px;color:var(--muted)}

.strength-box{padding:14px 17px 4px}
.sb-main{display:flex;align-items:baseline;justify-content:space-between;gap:10px;margin-bottom:11px}
.sb-day{font-size:14px;color:#4a3d2c}
.sb-day b{font-family:var(--serif);font-size:19px;color:var(--red)}
.sb-level{font-size:15px;font-weight:700;color:var(--red);background:#fdf2e0;border-radius:9px;padding:3px 13px}
.sb-score{margin-bottom:11px}
.sb-score-bar{height:10px;background:#f2ece0;border-radius:6px;overflow:hidden;margin-bottom:6px}
.sb-score-bar i{display:block;height:100%;background:linear-gradient(90deg,#e0be63,#8c1f28);border-radius:6px}
.sb-score-txt{font-size:12px;color:var(--muted)}
.sb-score-txt b{color:var(--red);font-size:14px}
.sb-tags{display:flex;gap:8px;flex-wrap:wrap}
.sb-tag{font-size:12px;border-radius:8px;padding:3px 12px}
.sb-tag.on{background:#f1f8f4;color:#2c7a4b;border:1px solid #c9e6d6}
.sb-tag.off{background:#faf6ec;color:#a8926a;border:1px solid #ece2cc}

.ss-pill{display:inline-block;font-size:11.5px;background:#f3ecdc;color:#8a7a52;border-radius:8px;padding:1px 9px;margin-right:5px}

.ss-list{padding:13px 17px 0;display:flex;flex-wrap:wrap;gap:7px}
.ss-item{font-size:12.5px;border-radius:9px;padding:4px 11px;display:inline-flex;align-items:center;gap:5px}
.ss-item em{font-style:normal;font-size:11px;opacity:.8}
.ss-good{background:#f1f8f4;color:#2c7a4b;border:1px solid #c9e6d6}
.ss-bad{background:#fdf4f4;color:#b8363f;border:1px solid #f0d8d8}
.ss-mid{background:#faf6ec;color:#8a7a52;border:1px solid #ece2cc}

.rel-list{padding:13px 17px 0;display:flex;flex-direction:column;gap:7px}
.rel-item{font-size:12.5px;line-height:1.8;color:#4a3d2c;background:#faf7ef;border-radius:8px;padding:7px 12px;display:flex;gap:9px;align-items:baseline}
.rel-tag{flex:0 0 auto;font-size:11px;border-radius:7px;padding:1px 8px;background:#f3ecdc;color:#8a7a52}
.rel-chong .rel-tag{background:#fdecea;color:#c0392b}
.rel-xing .rel-tag{background:#faf3e2;color:#b8860b}
.rel-he .rel-tag,.rel-sanhe .rel-tag,.rel-sanhui .rel-tag{background:#e8f5ee;color:#2e8b57}
.rel-hai .rel-tag,.rel-po .rel-tag{background:#f3eefa;color:#7a68a8}

.bz-panel > .ss-stat{padding:13px 17px 4px;display:grid;grid-template-columns:repeat(auto-fill,minmax(84px,1fr));gap:8px}
.ss-stat-item{text-align:center;background:#faf7ef;border-radius:9px;padding:8px 4px}
.ss-stat-item.is-zero{opacity:.42}
.sss-name{font-size:12px;color:#5c4d38}
.sss-val{font-size:15px;font-weight:700;color:var(--red);font-family:var(--serif)}
.sss-bar{height:5px;background:#f0e8d8;border-radius:3px;overflow:hidden;margin-top:4px}
.sss-bar i{display:block;height:100%;background:var(--gold-2);border-radius:3px}

/* ---------- 两派对照 ---------- */
.cmp-table{border:1px solid var(--border);border-radius:11px;overflow:hidden;margin-bottom:14px}
.ct-head,.ct-row{display:grid;grid-template-columns:96px 1fr 1fr}
.ct-head{background:#faf5ea;font-size:12.5px;font-weight:600;color:var(--muted)}
.ct-head span,.ct-row span{padding:10px 13px;font-size:13px;line-height:1.85}
.ct-row{border-top:1px solid #f4ecdd}
.ct-topic{font-weight:600;color:var(--red);background:#fffaf1;font-size:12.5px}
.ct-ziping{color:#33424f}
.ct-blind{color:#4a3d63;border-left:1px dashed var(--border)}
.ct-head .ct-ziping{color:#2471a3}
.ct-head .ct-blind{color:#7a68a8}
.cmp-same{background:#f6f8fb;border:1px solid #dbe6f0;border-radius:10px;padding:13px 17px}
.cs-label{font-size:12px;color:#3f7fa8;font-weight:600;margin-bottom:6px}
.cmp-same p{font-size:13px;line-height:2;color:#33424f}

/* ---------- 盲派 ---------- */
.bu-head{margin-bottom:11px}
.bu-type{font-size:22px;font-family:var(--serif);font-weight:700;color:#6d5aa8;letter-spacing:2px}
.bu-tagline{font-size:12px;color:var(--muted);margin-top:4px;letter-spacing:1px}
.bin-zhu{display:grid;grid-template-columns:1fr 42px 1fr;gap:8px;align-items:center;margin:13px 0}
.bz-side{border-radius:11px;padding:12px 15px;text-align:center}
.bz-bin{background:#f6f6f8;border:1px solid #e2e2e8}
.bz-zhu{background:#f5f2fb;border:1px solid #ddd5ee}
.bzs-label{font-size:11.5px;color:var(--muted);margin-bottom:5px}
.bzs-val{font-family:var(--serif);font-size:17px;letter-spacing:2px;color:#4a3d63;font-weight:600}
.bz-arrow{text-align:center;font-size:19px;color:var(--gold)}
.layer-list{display:flex;flex-direction:column;gap:6px}
.layer-item{display:grid;grid-template-columns:56px 58px 1fr 62px;gap:9px;align-items:center;background:#faf7ef;border-radius:9px;padding:7px 12px;font-size:12.5px}
.layer-item.is-self{background:#fff6e2;box-shadow:inset 3px 0 0 var(--gold)}
.ly-pos{font-weight:600;color:var(--red)}
.ly-gz{font-family:var(--serif);font-size:15px;color:#4a3d2c}
.ly-role{color:#5c4d38}
.ly-ss{font-size:11.5px;color:#8a7a52;text-align:right}

.gong-counts{display:flex;gap:9px;flex-wrap:wrap;margin-bottom:12px}
.gc-item{font-size:12.5px;border-radius:9px;padding:4px 13px;font-weight:600}
.gc-he{background:#f1f8f4;color:#2c7a4b;border:1px solid #c9e6d6}
.gc-chong{background:#fdf4f4;color:#b8363f;border:1px solid #f0d8d8}
.gc-xing{background:#fdf8ec;color:#b8860b;border:1px solid #efe0bd}
.gc-hai{background:#f5f2fb;color:#7a68a8;border:1px solid #ddd5ee}

.xiang-table{border:1px solid var(--border);border-radius:11px;overflow-x:auto}
.xt-head,.xt-row{display:grid;grid-template-columns:66px 72px 168px 1fr 1fr;min-width:660px}
.xt-head{background:#faf5ea;font-size:12px;color:var(--muted);font-weight:600}
.xt-head span,.xt-row span{padding:9px 11px;font-size:12.5px;line-height:1.8;border-bottom:1px solid #f4ecdd}
.xt-row:last-child span{border-bottom:0}
.xt-ss{font-weight:600;color:#6d5aa8}
.xt-level{font-weight:600}
.xt-lv-旺{color:#b8363f}
.xt-lv-有{color:#2c7a4b}
.xt-lv-微{color:#a8926a}
.xt-qin,.xt-xiang,.xt-career{color:#5c4d38}

.duan-list{display:flex;flex-direction:column;gap:11px}
.duan-item{border:1px solid var(--border);border-radius:11px;padding:13px 16px;background:#fdfcf9}
.di-title{font-size:15px;font-family:var(--serif);font-weight:700;color:#6d5aa8;margin-bottom:6px;letter-spacing:1px}
.di-cond{font-size:11.5px;color:var(--muted);margin-bottom:7px;background:#f6f4fa;border-radius:7px;padding:3px 10px;display:inline-block}
.di-text{font-size:13.5px;line-height:2;color:#4a3d2c}

.level-box{text-align:center;padding:16px 0 6px}
.lb-tier{font-size:23px;font-family:var(--serif);font-weight:700;color:#6d5aa8;letter-spacing:3px;margin-bottom:11px}
.lb-bar{height:12px;background:#f2ece0;border-radius:7px;overflow:hidden;max-width:420px;margin:0 auto 7px}
.lb-bar i{display:block;height:100%;background:linear-gradient(90deg,#bdb0dd,#6d5aa8);border-radius:7px}
.lb-score{font-size:12.5px;color:var(--muted)}
.lb-score b{color:#6d5aa8;font-size:15px}

.yingqi-list{display:flex;flex-direction:column;gap:9px}
.yq-item{border:1px solid var(--border);border-radius:10px;overflow:hidden}
.yq-head{display:flex;align-items:center;gap:12px;background:#faf5ea;padding:8px 13px;flex-wrap:wrap}
.yq-gz{font-family:var(--serif);font-size:17px;font-weight:600;color:#6d5aa8;letter-spacing:1px}
.yq-age{font-size:12.5px;color:#5c4d38}
.yq-years{font-size:12px;color:var(--muted)}
.yq-favor{margin-left:auto;font-size:12px;font-weight:600;border-radius:8px;padding:2px 12px}
.yq-f2{background:#eaf7ef;color:#1d7a48}
.yq-f1{background:#f1f8f4;color:#2c7a4b}
.yq-f0{background:#faf6ec;color:#8a7a52}
.yq-f-1{background:#fdf8ec;color:#c07a1a}
.yq-f-2{background:#fdf4f4;color:#b8363f}
.yq-text{padding:9px 13px;font-size:12.5px;line-height:1.9;color:#5c4d38}

/* ==========================================================================
   面相结果
   ========================================================================== */
.lv-good{--gc:#2f8b5b;--gcbg:#f2f9f5;--gcbd:#c9e6d6}
.lv-normal{--gc:#8a7a52;--gcbg:#fbf9f3;--gcbd:#e8e0cd}
.lv-bad{--gc:#b8363f;--gcbg:#fdf5f5;--gcbd:#f0d8d8}

.shape-box{display:flex;gap:16px;align-items:center;margin-bottom:13px;background:#faf7ef;border-radius:11px;padding:14px 17px}
.sb-wx{
  flex:0 0 58px;height:58px;border-radius:50%;display:flex;align-items:center;justify-content:center;
  font-family:var(--serif);font-size:25px;font-weight:700;
}
.sb-feat{font-size:13px;line-height:1.9;color:#4a3d2c}

.stop-bars{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:13px}
.stop-bar-item{border:1px solid var(--border);border-radius:11px;padding:13px 15px;background:#fdfcf9}
.sbi-head{display:flex;align-items:baseline;gap:9px;margin-bottom:9px;flex-wrap:wrap}
.sbi-name{font-weight:600;font-size:15px;color:var(--red);font-family:var(--serif)}
.sbi-age{font-size:11.5px;color:var(--muted)}
.sbi-level{margin-left:auto;font-size:11.5px;font-weight:600;border-radius:8px;padding:1px 10px;background:var(--gcbg);color:var(--gc);border:1px solid var(--gcbd)}
.sbi-bar{height:10px;background:#f2ece0;border-radius:6px;overflow:hidden;margin-bottom:8px}
.sbi-bar i{display:block;height:100%;background:linear-gradient(90deg,var(--gcbd),var(--gc));border-radius:6px}
.sbi-opt{font-size:12.5px;color:#5c4d38;margin-bottom:6px;font-weight:600}
.sbi-desc{font-size:12.5px;line-height:1.9;color:#6b5c46}

.palace-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(268px,1fr));gap:11px}
.palace-card{
  border:1px solid var(--gcbd);border-left:3px solid var(--gc);background:var(--gcbg);
  border-radius:10px;padding:12px 15px;
}
.pc-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:5px}
.pc-name{font-weight:700;font-size:15px;color:var(--gc);font-family:var(--serif)}
.pc-level{font-size:11.5px;font-weight:600;color:var(--gc);background:#fff;border:1px solid var(--gcbd);border-radius:8px;padding:0 9px}
.pc-pos{font-size:11.5px;color:var(--muted);margin-bottom:7px}
.pc-text{font-size:12.5px;line-height:1.9;color:#4a3d2c}
.pc-advice{margin-top:7px;font-size:12px;color:#2c6b4b;background:rgba(255,255,255,.7);border-radius:7px;padding:5px 10px}

.official-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(275px,1fr));gap:11px}
.official-card{border:1px solid var(--gcbd);border-top:3px solid var(--gc);background:var(--gcbg);border-radius:11px;padding:13px 16px}
.oc-head{display:flex;align-items:center;gap:8px;margin-bottom:6px;flex-wrap:wrap}
.oc-name{font-weight:700;font-size:16px;color:var(--gc);font-family:var(--serif)}
.oc-alias{font-size:11px;background:#fff;border:1px solid var(--gcbd);color:#8a7a52;border-radius:8px;padding:0 7px}
.oc-level{margin-left:auto;font-size:11.5px;font-weight:600;color:var(--gc)}
.oc-opt{font-size:12.5px;font-weight:600;color:#5c4d38;margin-bottom:6px}
.oc-desc{font-size:12.5px;line-height:1.9;color:#4a3d2c}
.oc-advice{margin-top:7px;font-size:12px;color:#2c6b4b;background:rgba(255,255,255,.7);border-radius:7px;padding:5px 10px}

.mole-list{padding:13px 17px 0;display:flex;flex-direction:column;gap:8px}
.mole-item{border:1px solid var(--gcbd);border-left:3px solid var(--gc);background:var(--gcbg);border-radius:9px;padding:9px 13px}
.mi-name{font-weight:600;font-size:13px;color:var(--gc);margin-right:7px}
.mi-luck{font-size:11px;background:#fff;border:1px solid var(--gcbd);color:var(--gc);border-radius:7px;padding:0 7px}
.mi-desc{display:block;font-size:12.5px;line-height:1.85;color:#5c4d38;margin-top:5px}

.complexion-box{margin:13px 17px 0;border:1px solid var(--gcbd);border-left:3px solid var(--gc);background:var(--gcbg);border-radius:10px;padding:13px 16px}
.cb-name{font-size:16px;font-weight:700;color:var(--gc);font-family:var(--serif);margin-bottom:6px}
.cb-desc{font-size:12.5px;line-height:1.9;color:#4a3d2c}
.cb-advice{margin-top:8px;font-size:12px;color:#2c6b4b;background:rgba(255,255,255,.75);border-radius:7px;padding:5px 10px}

.liunian-timeline{display:flex;flex-direction:column;gap:0}
.lt-item{display:grid;grid-template-columns:104px 1fr;gap:0;border-bottom:1px dashed var(--border)}
.lt-item:last-child{border-bottom:0}
.lt-age{
  display:flex;align-items:center;justify-content:center;font-size:13px;font-weight:600;color:var(--gc);
  background:var(--gcbg);border-left:3px solid var(--gc);padding:12px 8px;text-align:center;
}
.lt-body{padding:11px 15px}
.lt-head{display:flex;align-items:baseline;gap:11px;flex-wrap:wrap;margin-bottom:5px}
.lt-part{font-weight:600;font-size:13.5px;color:#3a2f22}
.lt-level{font-size:11.5px;font-weight:600;color:var(--gc);background:var(--gcbg);border:1px solid var(--gcbd);border-radius:8px;padding:0 9px}
.lt-theme{font-size:12px;color:var(--muted)}
.lt-text{font-size:12.5px;line-height:1.9;color:#5c4d38}

/* ==========================================================================
   风水结果
   ========================================================================== */
.score-detail{padding:13px 17px 0}
.sd-row{display:grid;grid-template-columns:132px 56px 1fr;gap:12px;align-items:baseline;padding:8px 0;border-bottom:1px dashed #f0e8d8;font-size:13px}
.sd-row:last-child{border-bottom:0}
.sd-item{font-weight:600;color:#5c4d38}
.sd-delta{font-weight:700;font-family:var(--serif);font-size:15px;text-align:center}
.sd-text{color:var(--muted);font-size:12.5px;line-height:1.85}

.yun-box{display:flex;gap:18px;align-items:center;background:linear-gradient(135deg,#fffaf0,#fdf2e0);border:1px solid #efdfbb;border-radius:12px;padding:16px 20px;margin-bottom:13px}
.yb-num{
  flex:0 0 62px;height:62px;border-radius:50%;background:radial-gradient(circle at 35% 30%,#f3dfae,#c9a227 65%,#8a6c14);
  display:flex;align-items:center;justify-content:center;font-family:var(--serif);font-size:29px;font-weight:700;color:#5a1a10;
}
.yb-name{font-size:15px;font-weight:600;color:#5c4d38;margin-bottom:4px}
.yb-range{font-size:12px;color:var(--muted);margin-bottom:6px}
.yb-text{font-size:12.5px;color:#6b5c46;line-height:1.8}

.gua-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;max-width:520px;margin:0 auto 12px}
.gua-cell{
  border:1px solid var(--gcbd);background:var(--gcbg);border-radius:10px;padding:11px 8px;text-align:center;position:relative;
  border-top:3px solid var(--gc);
}
.gua-cell.is-center{background:#f6f2ea;border-color:#e6ddc6;--gc:#a8926a}
.gua-cell.is-empty{opacity:.72}
.gua-cell.is-fuwei{box-shadow:inset 0 0 0 2px rgba(201,162,39,.35)}
.gc-gua{font-family:var(--serif);font-size:19px;font-weight:700;color:var(--gc)}
.gc-dir{font-size:11px;color:var(--muted);margin:2px 0 5px}
.gc-star{font-size:13.5px;font-weight:600;color:var(--gc)}
.gc-alias{font-size:11px;color:var(--muted)}

.legend{display:flex;gap:14px;justify-content:center;flex-wrap:wrap;font-size:12px;margin-bottom:14px}
.lg{padding:3px 12px;border-radius:9px}
.lg-good{background:#f1f8f4;color:#2c7a4b}
.lg-bad{background:#fdf4f4;color:#b8363f}

.four-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(156px,1fr));gap:10px;margin-bottom:6px}
.fg-item{border-radius:10px;padding:10px 13px}
.fg-good{background:#f1f8f4;border:1px solid #c9e6d6}
.fg-bad{background:#fdf4f4;border:1px solid #f0d8d8}
.fg-star{font-size:13px;font-weight:600;color:#3a2f22;margin-bottom:3px}
.fg-good .fg-star{color:#2c7a4b}
.fg-bad .fg-star{color:#b8363f}
.fg-dir{font-size:11.5px;color:var(--muted);margin-bottom:4px}
.fg-use{font-size:11.5px;color:#6b5c46;line-height:1.7}

.star-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(268px,1fr));gap:11px}
.star-card{border:1px solid var(--gcbd);border-left:3px solid var(--gc);background:var(--gcbg);border-radius:10px;padding:11px 14px}
.sc-head{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:6px}
.sc-star{font-weight:700;font-size:15px;color:var(--gc);font-family:var(--serif)}
.sc-alias{font-size:11px;color:#8a7a52;background:#fff;border:1px solid var(--gcbd);border-radius:7px;padding:0 6px}
.sc-dir{font-size:11.5px;color:var(--muted)}
.sc-luck{margin-left:auto;font-size:11.5px;font-weight:600;color:var(--gc)}
.sc-text{font-size:12.5px;line-height:1.85;color:#4a3d2c}
.sc-use{margin-top:7px;font-size:11.5px;color:#2c6b4b;background:rgba(255,255,255,.72);border-radius:7px;padding:4px 9px}

.fx-pattern{border:1px solid var(--gcbd);border-left:4px solid var(--gc);background:var(--gcbg);border-radius:0 12px 12px 0;padding:13px 18px;margin-bottom:15px}
.fp-name{font-size:19px;font-weight:700;color:var(--gc);font-family:var(--serif);letter-spacing:3px;margin-bottom:7px}
.fp-text{font-size:13px;line-height:2;color:#4a3d2c}

.fx-grid-wrap{display:flex;gap:22px;flex-wrap:wrap;align-items:flex-start;margin-bottom:15px}
.fx-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;flex:0 0 auto;width:min(420px,100%)}
.fx-cell{
  position:relative;border:1px solid var(--border);border-radius:10px;background:#fdfcf9;padding:8px;text-align:center;min-height:96px;
}
.fx-cell.is-sit{box-shadow:inset 0 0 0 2px rgba(140,31,40,.45);background:#fffaf1}
.fx-cell.is-xiang{box-shadow:inset 0 0 0 2px rgba(36,113,163,.45);background:#f6faff}
.fx-cell.is-sit.is-xiang{box-shadow:inset 0 0 0 2px rgba(109,90,168,.5);background:#f9f7ff}
.fx-head{display:flex;justify-content:space-between;align-items:baseline;font-size:11px;color:var(--muted);margin-bottom:5px}
.fx-gua{font-weight:600;color:#5c4d38;font-family:var(--serif);font-size:12.5px}
.fx-nums{display:flex;justify-content:center;gap:7px;margin-bottom:5px}
.fx-num{display:flex;flex-direction:column;align-items:center;line-height:1.1}
.fx-num em{font-style:normal;font-size:9.5px;color:var(--muted);margin-bottom:1px}
.fx-num b{font-size:20px;font-family:var(--serif);font-weight:700;color:#3a2f22}
.fx-yun b{color:#a8801a}
.fx-shan b{color:#8c1f28}
.fx-xiang b{color:#2471a3}
.fx-star-name{font-size:10px;color:var(--muted);line-height:1.5}
.fx-mark{position:absolute;top:-7px;right:-5px;font-size:10px;font-weight:700;color:#fff;border-radius:8px;padding:1px 7px}
.fx-mark-sit{background:#8c1f28}
.fx-mark-xiang{background:#2471a3}

.fx-legend{flex:1;min-width:200px;display:flex;flex-direction:column;gap:8px;font-size:12.5px;color:#5c4d38}
.fl-item{display:flex;align-items:center;gap:9px;line-height:1.7}
.fl-badge{flex:0 0 26px;text-align:center;font-size:12px;border-radius:6px;padding:2px 0;color:#fff;font-weight:600}
.fl-yun{background:#a8801a}
.fl-shan{background:#8c1f28}
.fl-xiang{background:#2471a3}
.fl-note{color:var(--muted);font-size:12px;border-top:1px dashed var(--border);padding-top:8px}

.judge-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(158px,1fr));gap:10px;margin-top:13px}
.jg-item{border-radius:10px;padding:10px 14px;text-align:center;border:1px solid var(--border);background:#faf7ef}
.jg-item.on{background:#f1f8f4;border-color:#c9e6d6}
.jg-item.bad{background:#fdf4f4;border-color:#f0d8d8}
.jg-item.off{opacity:.72}
.jg-label{font-size:11.5px;color:var(--muted);margin-bottom:4px;line-height:1.6}
.jg-val{font-size:16px;font-weight:700;font-family:var(--serif);color:#8a7a52}
.jg-item.on .jg-val{color:#2c7a4b}
.jg-item.bad .jg-val{color:#b8363f}

.door-verdict{margin-bottom:12px}
.dv-verdict{display:inline-block;font-size:15px;font-weight:600;font-family:var(--serif);letter-spacing:1px;border-radius:10px;padding:7px 20px}
.dv-verdict.lv-excellent{background:#eaf7ef;color:#1d7a48}
.dv-verdict.lv-good{background:#f1f8f4;color:#2c7a4b}
.dv-verdict.lv-normal{background:#faf6ec;color:#8a7a52}
.dv-verdict.lv-low{background:#fdf8ec;color:#c07a1a}
.dv-verdict.lv-poor{background:#fdf4f4;color:#b8363f}

.layout-list{display:flex;flex-direction:column;gap:11px}
.layout-item{border-left:3px solid var(--gold-2);background:#faf7ef;border-radius:0 10px 10px 0;padding:11px 15px}
.li-title{font-size:13.5px;font-weight:600;color:var(--red);margin-bottom:5px}
.li-text{font-size:13px;line-height:1.95;color:#4a3d2c}

/* ==========================================================================
   测算记录
   ========================================================================== */
.frec-tabs{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:15px;border-bottom:1px solid var(--border);padding-bottom:11px}
.frt-item{
  font-size:13px;padding:6px 15px;border-radius:9px;color:#8a7a52;background:#faf7ef;border:1px solid transparent;transition:.15s;
}
.frt-item:hover{background:#faf2e2;color:var(--red)}
.frt-item.active{background:var(--red);color:#f8ecd6;font-weight:600;border-color:var(--red)}
.frt-item em{font-style:normal;font-size:11.5px;opacity:.85;margin-left:3px}
.ftype{font-size:12px;border-radius:9px;padding:2px 10px;white-space:nowrap}
.ftype-bazi{background:#e9f2fa;color:#2471a3}
.ftype-face{background:#faf3e2;color:#a8801a}
.ftype-fengshui{background:#f1f8f4;color:#2c7a4b}
.score-pill{
  --gc:#8a7a52;--gcbg:#faf6ec;--gcbd:#e8e0cd;
  display:inline-block;min-width:34px;text-align:center;font-size:13px;font-weight:700;font-family:var(--serif);
  color:var(--gc);background:var(--gcbg);border:1px solid var(--gcbd);border-radius:9px;padding:1px 8px;
}

/* ---------- 响应式 ---------- */
@media (max-width:760px){
  .bz-two-col{grid-template-columns:1fr}
  .fx-grid-wrap{flex-direction:column}
  .yong-row{grid-template-columns:1fr}
  .sd-row{grid-template-columns:1fr 46px;grid-template-areas:"a b" "c c"}
  .sd-row .sd-item{grid-area:a}.sd-row .sd-delta{grid-area:b}.sd-row .sd-text{grid-area:c}
  .luck-item{grid-template-columns:52px 1fr 58px;grid-template-areas:"a b c" "d d d";row-gap:6px}
  .luck-item .li-gz{grid-area:a}
  .luck-item .li-meta{grid-area:b}
  .luck-item .li-tag{grid-area:c}
  .luck-item .li-text{grid-area:d}
  .layer-item{grid-template-columns:50px 54px 1fr;grid-template-areas:"a b d" "c c c";row-gap:5px}
  .layer-item .ly-pos{grid-area:a}
  .layer-item .ly-gz{grid-area:b}
  .layer-item .ly-role{grid-area:c}
  .layer-item .ly-ss{grid-area:d;text-align:left}
  .ct-head,.ct-row{grid-template-columns:76px 1fr;grid-template-areas:"t z" "t b"}
  .ct-head span,.ct-row span{padding:8px 11px}
  .ct-row .ct-topic,.ct-head span:first-child{grid-area:t}
  .ct-row .ct-ziping{grid-area:z}
  .ct-row .ct-blind{grid-area:b;border-left:0;border-top:1px dashed var(--border)}
  .rh-sub{font-size:21px;letter-spacing:3px}
  .report-hero{padding:18px 20px}
  .rh-score{width:86px;height:86px}
  .rh-score .rs-num{font-size:26px}
  .gua-grid,.fx-grid{max-width:100%}
  .bin-zhu{grid-template-columns:1fr;gap:6px}
  .bz-arrow{transform:rotate(90deg)}
  .lt-item{grid-template-columns:82px 1fr}
  .or-label{flex:0 0 100%}
  .report-tabs{position:sticky;top:64px;background:var(--bg);z-index:20;padding-top:6px}
}

/* ============================================================
   人生六算（事业 / 桃花 / 出轨研判 / 挽回 / 祛霉 / 家运）+ 八字一键填入 + 开运好物
   ============================================================ */

/* ---------- 八字一键填入条 ---------- */
.bazi-fill-bar{
  display:flex;align-items:center;gap:9px;flex-wrap:wrap;
  background:linear-gradient(180deg,#fffaf0,#fdf4e2);
  border:1px dashed var(--gold-2,#d9c08a);border-radius:10px;
  padding:9px 13px;margin-bottom:16px;
}
.paid-fill-row{margin-bottom:15px}
.paid-fill-row .bazi-fill-bar{margin-bottom:0}
.form-item .bazi-fill-bar{margin-bottom:0}
.bazi-fill-bar .bfb-icon{font-size:14px}
.bazi-fill-bar .bfb-label{font-size:13px;color:#8a6d3b;font-weight:600}
.bazi-fill-bar .bfb-btn{
  border:1px solid var(--gold-2,#d9c08a);background:#fff;color:#8c1f28;
  font-size:12.5px;padding:4px 13px;border-radius:999px;cursor:pointer;transition:.18s;
}
.bazi-fill-bar .bfb-btn:hover{background:var(--gold,#c9a227);color:#fff;border-color:var(--gold,#c9a227)}
.bazi-fill-bar .bfb-edit{margin-left:auto;font-size:12px;color:#a08a5e;text-decoration:none}
.bazi-fill-bar .bfb-edit:hover{color:var(--red,#8c1f28);text-decoration:underline}
.bfb-toast{
  position:fixed;left:50%;bottom:44px;transform:translate(-50%,16px);
  background:rgba(40,30,20,.92);color:#fdf3df;font-size:13.5px;
  padding:10px 20px;border-radius:10px;opacity:0;transition:.28s;z-index:9999;pointer-events:none;
  box-shadow:0 8px 26px rgba(0,0,0,.24);max-width:86vw;text-align:center;
}
.bfb-toast.on{opacity:1;transform:translate(-50%,0)}

/* ---------- 通用：生肖行 / 标签型列表 ---------- */
.zi-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(196px,1fr));gap:11px}
.zi-item{
  background:#faf7ef;border:1px solid var(--border);border-radius:11px;padding:12px 14px;position:relative;
}
.zi-item .zi-name{font-family:var(--serif);font-size:17px;font-weight:700;color:#3a2f22;letter-spacing:1px}
.zi-item .zi-rel{font-size:11px;padding:1px 8px;border-radius:8px;margin-left:7px;background:#e8f5ee;color:#2e8b57;vertical-align:middle}
.zi-item .zi-rel.r-chong{background:#fdecea;color:#c0392b}
.zi-item .zi-rel.r-xing{background:#faf3e2;color:#b8860b}
.zi-item .zi-rel.r-hai{background:#f3eefa;color:#7a68a8}
.zi-item .zi-text{font-size:12.5px;color:#6b5c46;line-height:1.85;margin-top:6px}
.zi-item .zi-wx{position:absolute;right:12px;top:12px;font-size:11px;color:#a08a5e}

.chip-list{display:flex;flex-wrap:wrap;gap:8px}
.chip{
  font-size:12.5px;padding:5px 13px;border-radius:999px;
  background:var(--pcbg,#fdf8ec);color:var(--pc,#a8801a);border:1px solid rgba(0,0,0,.05);
}
.chip-plain{background:#faf7ef;color:#6b5c46;border:1px solid var(--border)}

.num-list{counter-reset:n;list-style:none;margin:0;padding:0}
.num-list li{
  counter-increment:n;position:relative;padding:9px 0 9px 38px;
  font-size:13.5px;line-height:1.95;color:#4a3d2c;border-bottom:1px dashed #f0e6d2;
}
.num-list li:last-child{border-bottom:0}
.num-list li::before{
  content:counter(n);position:absolute;left:0;top:10px;width:24px;height:24px;border-radius:50%;
  background:var(--gold,#c9a227);color:#fff;font-size:12px;display:flex;align-items:center;justify-content:center;font-weight:600;
}
.num-list li b{color:#8c1f28}

/* ---------- 事业：双列区块 ---------- */
.two-panel{display:grid;grid-template-columns:1fr 1fr;gap:13px;margin-bottom:14px}
@media(max-width:720px){.two-panel{grid-template-columns:1fr}}
.panel-box{background:var(--card);border:1px solid var(--border);border-radius:12px;overflow:hidden;box-shadow:var(--shadow)}
.panel-box .pb-h{background:#faf5ea;padding:11px 16px;font-size:13.5px;font-weight:600;color:#5c4d38;border-bottom:1px solid var(--border)}
.panel-box .pb-b{padding:14px 16px}

/* ---------- 桃花：色卡 / 星座 ---------- */
.color-row{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.color-dot{width:26px;height:26px;border-radius:50%;border:2px solid #fff;box-shadow:0 1px 4px rgba(0,0,0,.18)}
.sign-item{
  display:flex;align-items:center;gap:11px;background:#faf7ef;border:1px solid var(--border);
  border-radius:11px;padding:11px 14px;margin-bottom:9px;
}
.sign-item .si-name{font-family:var(--serif);font-size:15px;font-weight:700;color:#3a2f22;flex:0 0 88px}
.sign-item .si-range{font-size:11.5px;color:#a08a5e;flex:0 0 92px}
.sign-item .si-text{font-size:12.5px;color:#6b5c46;line-height:1.8}
.sign-item .si-elem{font-size:11px;padding:1px 8px;border-radius:8px;background:#fdf3f3;color:#b8363f;flex:0 0 auto}

/* ---------- 出轨研判 / 祛霉：风险仪表 ---------- */
.risk-gauge{display:flex;align-items:center;gap:18px;flex-wrap:wrap}
.risk-num{font-family:var(--serif);font-size:44px;font-weight:700;line-height:1;color:#b8363f}
.risk-num.lv-低{color:#2e8b57}
.risk-num.lv-中{color:#b8860b}
.risk-num.lv-高{color:#b8363f}
.risk-meta{flex:1;min-width:200px}
.risk-meter{height:11px;border-radius:999px;background:#f0e6d2;overflow:hidden;margin-top:8px}
.risk-meter i{display:block;height:100%;border-radius:999px;background:linear-gradient(90deg,#e8c98a,#c0392b)}
.risk-tip{font-size:12.5px;color:var(--muted);margin-top:7px;line-height:1.8}

.risk-card{
  background:#faf7ef;border:1px solid var(--border);border-left:4px solid #c9a227;border-radius:10px;
  padding:12px 15px;margin-bottom:10px;
}
.risk-card.lv-高{border-left-color:#b8363f}
.risk-card.lv-中{border-left-color:#b8860b}
.risk-card.lv-低{border-left-color:#2e8b57}
.risk-card .rc-h{display:flex;align-items:center;gap:9px;margin-bottom:5px}
.risk-card .rc-when{font-size:11px;padding:1px 8px;border-radius:8px;background:#f3ecdc;color:#8a7a52}
.risk-card .rc-t{font-size:13.5px;font-weight:600;color:#3a2f22}
.risk-card .rc-text{font-size:12.5px;color:#6b5c46;line-height:1.9}

/* ---------- 挽回：话术卡 ---------- */
.script-card{background:#fffdf7;border:1px solid var(--border);border-radius:11px;padding:13px 16px;margin-bottom:10px}
.script-card .sc-scene{font-size:12.5px;font-weight:600;color:#8c1f28;margin-bottom:7px;padding-left:9px;border-left:3px solid var(--gold-2,#d9c08a)}
.script-card .sc-say{font-size:13.5px;line-height:1.95;color:#3a2f22;background:#f6f9f5;border-radius:8px;padding:9px 13px;margin-bottom:7px}
.script-card .sc-avoid{font-size:12.5px;line-height:1.85;color:#a8552f;background:#fdf6f2;border-radius:8px;padding:8px 13px}

.taboo-list{list-style:none;margin:0;padding:0}
.taboo-list li{font-size:13.5px;line-height:2;color:#7a3b3b;padding-left:20px;position:relative}
.taboo-list li::before{content:"✕";position:absolute;left:0;color:#c0392b;font-size:11px;line-height:2.6}

/* ---------- 开运好物 ---------- */
.shop-block{margin-top:4px}
.shop-title{font-size:14px;font-weight:600;color:#8c1f28;margin-bottom:12px;padding-left:10px;border-left:3px solid var(--gold,#c9a227);display:flex;align-items:baseline;gap:9px;flex-wrap:wrap}
.shop-title small{font-weight:400;font-size:11.5px;color:var(--muted)}
.shop-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(212px,1fr));gap:12px}
.shop-card{
  display:block;background:#fffdf7;border:1px solid var(--border);border-radius:12px;
  padding:13px 15px;text-decoration:none;transition:.2s;box-shadow:var(--shadow);
}
.shop-card:hover{transform:translateY(-2px);border-color:var(--gold-2,#d9c08a);box-shadow:0 10px 24px rgba(120,90,40,.14)}
.shop-card .sc-head{display:flex;align-items:center;gap:8px;margin-bottom:7px}
.shop-card .sc-icon{font-size:17px}
.shop-card .sc-name{font-size:13.5px;font-weight:600;color:#3a2f22;line-height:1.5}
.shop-card .sc-desc{font-size:12px;color:#6b5c46;line-height:1.8;margin-bottom:10px}
.shop-card .sc-foot{display:flex;align-items:center;gap:8px;flex-wrap:wrap;font-size:11.5px}
.shop-card .sc-cat{color:#a08a5e;background:#faf3e2;border-radius:7px;padding:1px 8px}
.shop-card .sc-price{color:#b8363f;font-weight:600}
.shop-card .sc-go{margin-left:auto;color:var(--gold,#c9a227);font-weight:600}
.shop-empty{font-size:12.5px;color:var(--muted);background:#faf6ec;border-radius:9px;padding:11px 14px;line-height:1.9}
