/* 林氏奇门 界面样式（只有界面，不含任何算法）。盘面固定用浅色底，深色模式下也保持可读。 */
.qm { max-width: 520px; margin: 0 auto; color: #1c1c1c; font-family: "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif; }
.qm *, .qm *::before { box-sizing: border-box; }
.qm h1 { font-size: 22px; margin: 6px 0 4px; }
.qm-sub { color: #5a5f66; font-size: 14px; margin: 0 0 10px; }
.qm-form { background: #fff; border: 1px solid #e3dfd5; padding: 10px; display: grid; gap: 8px; color: #1c1c1c; }
.qm-form label { display: grid; gap: 3px; font-size: 13px; color: #4a4f55; }
.qm-form input, .qm-form select { height: 44px; font-size: 16px; padding: 0 8px; border: 1px solid #bdb8ab; border-radius: 6px; background: #fff; color: #1c1c1c; width: 100%; min-width: 0; }
.qm-form input[type=checkbox] { width: 20px; height: 20px; }
.qm-g2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
.qm-g3 { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
.qm-chk { display: flex !important; align-items: center; gap: 8px; min-height: 44px; font-size: 15px !important; color: #1c1c1c !important; }
.qm-form details summary { min-height: 44px; display: flex; align-items: center; font-size: 15px; color: #1a56b0; cursor: pointer; }
.qm-btns { display: grid; grid-template-columns: 44px 1fr 44px 64px; gap: 8px; }
.qm-btns button { height: 46px; font-size: 16px; border-radius: 6px; border: 1px solid #1a56b0; background: #fff; color: #1a56b0; }
.qm-btns .qm-go { background: #1a56b0; color: #fff; font-weight: 600; }
.qm-err { color: #b3261e; font-size: 14px; margin: 8px 0; }
.qm-out { margin-top: 10px; }
.qm-out[hidden], .qm-err[hidden] { display: none !important; }
.qm-promo { margin-top: 14px; background: #fff; border: 1px solid #e3dfd5; padding: 12px; font-size: 15px; line-height: 1.7; color: #1c1c1c; }
.qm-promo p { margin: 4px 0; }
.qm-fine { color: #5a5f66; font-size: 12px; line-height: 1.6; margin: 8px 0 0; }

.qm-chart { background: #f3f1ea; color: #1c1c1c; border: 1px solid #e3dfd5; }
.w-mu { color: #177a2b; } .w-huo { color: #d0191f; } .w-tu { color: #6b4423; } .w-jin { color: #e59400; } /* 金用金黄（同 APP），土用深棕，两者要一眼分得开 */ .w-shui { color: #1a3fc4; }
.qm-head { display: flex; gap: 10px; padding: 8px 10px; background: #fff; border-bottom: 1px solid #e3dfd5; }
.qm-pls { display: flex; gap: 2px; }
.qm-pl { width: 34px; text-align: center; font-size: 19px; line-height: 1.25; }
.qm-plh { background: #8a8a8a; color: #fff; font-size: 12px; line-height: 1.5; }
.qm-pl small { display: block; font-size: 10px; color: #5a5f66; line-height: 1.4; }
.qm-ju { font-size: 14px; font-weight: 600; margin-top: 4px; }
.qm-info { flex: 1; text-align: center; font-size: 14px; line-height: 1.5; min-width: 0; }
.qm-notes { background: #fff; border-bottom: 1px solid #e3dfd5; padding: 4px 10px; font-size: 12px; color: #4a4f55; line-height: 1.6; }
.qm-board { background: #fff; padding: 6px 6px 4px; }
.qm-hidrow { text-align: center; min-height: 24px; font-size: 17px; }
.qm-mid { display: flex; gap: 3px; }
.qm-side { display: grid; grid-template-rows: repeat(3, 1fr); width: 24px; text-align: center; font-size: 17px; line-height: 1.15; flex: none; }
.qm-side > div { padding-top: 4px; }
.qm-grid { flex: 1; min-width: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3px; }
.qm-cell { border: 1px solid #c9c4b8; background: #fff; padding: 3px 4px; min-height: 98px; display: flex; flex-direction: column; justify-content: space-between; }
.qm-center { border: 1px solid #e3dfd5; display: flex; align-items: center; justify-content: center; text-align: center; color: #6b7076; font-size: 12px; }
.qm-r { display: flex; justify-content: space-between; align-items: baseline; font-size: 16px; white-space: nowrap; }
.qm-door { font-size: 19px; font-weight: 600; }
.qm-u { text-decoration: underline; }
.qm-big { font-size: 19px; }
.qm-gan { display: inline-grid; grid-template-columns: 1.25em 1.25em; justify-items: center; align-items: baseline; }
.qm-g { position: relative; display: inline-block; line-height: 1.15; }
.qm-ix { position: absolute; left: -5px; top: -2px; margin: 0; }
.qm-im { position: absolute; right: -5px; bottom: -1px; margin: 0; }
.qm-door { position: relative; }
.qm-ip { position: absolute; right: -8px; bottom: 0; margin: 0; }
.qm-tg { border: 1px solid currentColor; padding: 0 1px; line-height: 1.05; display: inline-block; }
.qm-foot { font-size: 12px; color: #5a5f66; }
.qm-ic { vertical-align: baseline; margin-left: 1px; flex: none; }
.qm-badges { display: inline-flex; gap: 2px; align-self: center; }
.qm-ma, .qm-kt, .qm-kd { display: inline-block; width: 16px; height: 16px; line-height: 16px; text-align: center; font-size: 10px; font-style: normal; }
.qm-ma { border: 1px solid #3a2c00; border-radius: 8px; color: #3a2c00; line-height: 14px; background: #fff; }
.qm-kt { background: #ffd84a; color: #3a2c00; border-radius: 8px; }
.qm-kd { background: #d9d9d9; color: #33373d; border-radius: 3px; }
.qm-k2 { display: inline-flex; height: 16px; line-height: 16px; font-size: 10px; }
.qm-k2 i { font-style: normal; background: #d9d9d9; color: #33373d; padding: 0 2px 0 3px; border-radius: 3px 0 0 3px; }
.qm-k2 b { font-weight: 400; background: #ffd84a; color: #3a2c00; padding: 0 3px 0 2px; border-radius: 0 8px 8px 0; }
.qm-legend { font-size: 12px; color: #4a4f55; padding: 4px 2px 2px; line-height: 1.8; }
.qm-rows { background: #fff; margin-top: 6px; }
.qm-row { display: flex; border-top: 1px solid #e3dfd5; }
.qm-rk { width: 84px; flex: none; background: #8a8a8a; color: #fff; text-align: center; padding: 5px 0; font-size: 15px; }
.qm-rv { flex: 1; padding: 5px 10px; font-size: 15px; min-width: 0; }
.qm-zhi { text-align: center; font-size: 19px; padding: 2px 4px; }
.qm-wang { display: grid; grid-template-columns: repeat(5, 1fr); background: #fff; border-top: 1px solid #e3dfd5; text-align: center; font-size: 15px; padding: 5px 0; }
@media (max-width: 360px) { .qm-door, .qm-big { font-size: 17px; } .qm-r { font-size: 14px; } .qm-rk { width: 68px; } .qm-info { font-size: 13px; } }

/* 自动分析（后台、学员版） */
.qm-ask { border: 1px solid #e3dfd5; padding: 6px 8px 8px; margin: 0; display: grid; gap: 8px; min-width: 0; }
.qm-ask legend { font-size: 13px; color: #4a4f55; padding: 0 4px; }
.qm-ana { margin-top: 10px; display: grid; gap: 10px; color: #1c1c1c; }
.qm-verdict { background: #fff; border: 2px solid #1a56b0; padding: 12px; }
.qm-verdict.qm-good { border-color: #b3261e; }
.qm-verdict div { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.qm-verdict > div > b { font-size: 30px; color: #1a56b0; }
.qm-verdict.qm-good > div > b { color: #b3261e; }
.qm-verdict span { font-size: 14px; color: #4a4f55; }
.qm-verdict p { margin: 6px 0 0; font-size: 15px; line-height: 1.6; }
.qm-card { background: #fff; border: 1px solid #e3dfd5; padding: 10px 12px; }
.qm-card h3 { margin: 0 0 6px; font-size: 15px; color: #4a4f55; }
.qm-card p { margin: 3px 0; font-size: 15px; line-height: 1.7; overflow-wrap: anywhere; }
.qm-card summary { min-height: 44px; display: flex; align-items: center; color: #1a56b0; font-size: 15px; cursor: pointer; }
.qm-tagp, .qm-tage { color: #fff; font-size: 12px; padding: 1px 5px; border-radius: 2px; }
.qm-tagp { background: #b3261e; } .qm-tage { background: #1a56b0; }
.qm-verdict .qm-alt { font-size: 13px; color: #4a4f55; border-top: 1px dashed #c9c4b8; padding-top: 6px; }
.qm-verdict .qm-alt b { font-size: 14px; color: inherit; }
.qm-minor { color: #4a4f55; font-size: 14px; }
.qm-ana + .qm-card, .qm-out > details.qm-card { margin-top: 10px; }
.qm [hidden] { display: none !important; }
.qm-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; }
.qm-tbl { border-collapse: collapse; min-width: 640px; width: 100%; font-size: 14px; }
.qm-tbl th, .qm-tbl td { border-top: 1px solid #e3dfd5; padding: 5px 6px; text-align: left; white-space: nowrap; }
.qm-tbl td:last-child { white-space: normal; min-width: 150px; }
.qm-tbl .qm-fail { color: #6b7076; }
.qm-tbl .qm-pass { background: #fff6e8; }
.qm-ji { color: #b3261e; } .qm-xiong { color: #1a56b0; }
.qm-pick { min-height: 36px; padding: 0 8px; border: 1px solid #1a56b0; border-radius: 6px; background: #fff; color: #1a56b0; font-size: 14px; }
.qm-ana > *, .qm-ask > *, .qm-form > * { min-width: 0; }
.qm-ask [data-m="lot"] .qm-g2 { grid-template-columns: minmax(0, 1fr); }
.qm-asked { background: #fff8e6; border: 1px solid #e3dfd5; border-bottom: 0; padding: 8px 10px; font-size: 16px; font-weight: 600; color: #1c1c1c; overflow-wrap: anywhere; }
.qm-export { display: block; width: 100%; min-height: 46px; margin-top: 10px; border: 1px solid #2f5d50; border-radius: 6px; background: #2f5d50; color: #fff; font-size: 16px; }
.qm-export[disabled] { opacity: .6; }
.qm-pic { position: fixed; inset: 0; z-index: 9999; background: rgba(0, 0, 0, .86); overflow: auto; -webkit-overflow-scrolling: touch; padding: 0 0 24px; }
.qm-pic img { display: block; width: 100%; max-width: 560px; margin: 0 auto; }
.qm-picbar { position: sticky; top: 0; display: flex; align-items: center; gap: 10px; padding: 8px 10px; background: #1c1c1c; color: #fff; font-size: 14px; }
.qm-picbar span { flex: 1; }
.qm-picbar a, .qm-picbar button { min-height: 40px; padding: 0 14px; border: 1px solid #fff; border-radius: 6px; background: none; color: #fff; font-size: 15px; text-decoration: none; display: inline-flex; align-items: center; }

.qm-ana b.qm-big{background:rgba(214,69,65,.14);border-radius:4px;padding:0 3px}
.qm-ana b.qm-blue{color:#1f6fd0}
.qm-ana small{opacity:.75;font-weight:400}

.qm-arcbox{margin-top:16px;border:1px solid rgba(128,128,128,.3);border-radius:10px;padding:8px 12px}
.qm-arcbox>summary{cursor:pointer;font-weight:600}
.qm-arc{border-top:1px solid rgba(128,128,128,.2);padding:10px 0}
.qm-arc-open{display:block;width:100%;text-align:left;background:none;border:0;padding:4px 0;font:inherit;color:inherit;cursor:pointer}
.qm-arc-note{width:100%;box-sizing:border-box;font:inherit;padding:6px;border:1px solid rgba(128,128,128,.4);border-radius:6px;background:transparent;color:inherit}
.qm-arc-btns{display:flex;gap:8px;align-items:center;margin-top:4px}
.qm-arc-btns button{font:inherit;padding:4px 10px;border:1px solid rgba(128,128,128,.5);border-radius:6px;background:transparent;color:inherit}
.qm-arc-msg{font-size:12px;opacity:.7}

/* 假空亡：红线划掉 */
.qm-kx { position: relative; }
.qm-kx::after { content: ""; position: absolute; left: -2px; right: -2px; top: 50%; height: 2px; margin-top: -1px; background: #e02020; border-radius: 1px; transform: rotate(40deg); } /* 左上划到右下，与长图一致 */
/* 左盘右分析 */
.qm.qm-wide { max-width: 1180px; }
.qm.qm-wide > form, .qm.qm-wide > .qm-form, .qm.qm-wide > .qm-promo, .qm.qm-wide > .qm-err, .qm.qm-wide > h1, .qm.qm-wide > p { max-width: 520px; margin-left: auto; margin-right: auto; }
.qm-two > * { min-width: 0; }
.qm-tabs { display: flex; gap: 6px; overflow-x: auto; padding: 0 0 8px; -webkit-overflow-scrolling: touch; }
.qm-tab { flex: 0 0 auto; font: inherit; font-size: 14px; padding: 6px 12px; border: 1px solid rgba(128,128,128,.45); border-radius: 16px; background: transparent; color: inherit; cursor: pointer; }
.qm-tab.on { background: #355e4f; border-color: #355e4f; color: #fff; }
.qm-panel[hidden] { display: none !important; }
.qm-peek { position: fixed; right: 14px; bottom: 18px; z-index: 40; font: inherit; font-size: 14px; padding: 10px 14px; border: 0; border-radius: 22px; background: #355e4f; color: #fff; box-shadow: 0 2px 10px rgba(0,0,0,.3); }
.qm-peekbox { position: fixed; inset: 0; z-index: 50; background: rgba(0,0,0,.55); overflow: auto; padding: 10px; }
.qm-peekin { background: #fff; border-radius: 8px; max-width: 520px; margin: 0 auto; }
@media (min-width: 900px) {
  .qm-two { display: grid; grid-template-columns: minmax(380px, 470px) minmax(0, 1fr); gap: 18px; align-items: start; }
  .qm-left { position: sticky; top: 8px; } /* 比屏幕高时由脚本把 top 调成负数，保证九宫格始终完整可见 */
  .qm-peek { display: none; }
  .qm-tabs { position: sticky; top: 0; z-index: 3; padding: 8px 0; background: rgba(244,243,239,.96); }
}

/* iOS 的日期、时间框会按自己的最小宽度撑出格子：去掉系统外观并压回格子里 */
.qm-form input[type="date"], .qm-form input[type="time"], .qm-form input[type="datetime-local"] { -webkit-appearance: none; appearance: none; display: block; box-sizing: border-box; width: 100%; max-width: 100%; min-width: 0; text-align: left; }
.qm-form input::-webkit-date-and-time-value { text-align: left; }
.qm-form label { min-width: 0; overflow: hidden; }
.qm-btns-main { grid-template-columns: 1fr 1fr; }
.qm-btns-nav { grid-template-columns: 1fr 1fr 64px; }
.qm-btns-nav button { font-size: 14px; height: 40px; }
.qm-btns .qm-go2 { background: #355e4f; border-color: #355e4f; }

/* 宫格底部的小标识（疾病模式：天医、地医、生气、死气） */
.qm-tags { display: inline-flex; gap: 2px; flex: 1; justify-content: center; }
.qm-tag { font-style: normal; font-size: 10px; line-height: 14px; padding: 0 3px; border-radius: 3px; color: #fff; white-space: nowrap; }
.qm-t-good { background: #2e8b57; }
.qm-t-bad { background: #7a2a2a; }

/* 表单在左、档案在右 */
.qm-top > * { min-width: 0; }
.qm-arcq { width: 100%; box-sizing: border-box; height: 38px; font-size: 15px; padding: 0 8px; margin: 8px 0 2px; border: 1px solid #bdb8ab; border-radius: 6px; background: #fff; color: #1c1c1c; }
.qm-arc[hidden] { display: none !important; }
.qm-app.qm-wide > h1, .qm-app.qm-wide > p { max-width: none; }
@media (min-width: 900px) {
  .qm-top { display: grid; grid-template-columns: minmax(0, 520px) minmax(0, 1fr); gap: 18px; align-items: start; }
  .qm-top-r .qm-arcbox { margin-top: 0; background: #fff; }
  .qm-top-r #qm-arc { max-height: 70vh; overflow: auto; }
}
.qm-arc-mode { font-style: normal; font-size: 12px; padding: 1px 6px; border-radius: 9px; background: #e8e4d8; color: #4a4f55; }
.qm-arc { padding: 8px 0; }
.qm-arc-btns button { font-size: 13px; padding: 2px 8px; }

/* 盘面连线、人宫与局眼标识、点开特性 */
.qm-grid { position: relative; }
.qm-lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.qm-lines line { stroke: #2b7de0; stroke-width: 2; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.qm-t-me { background: #b3261e; }
.qm-eye { width: 20px; height: 12px; vertical-align: middle; }
/* 天局眼的眼睛放在宫格靠顶部，地局眼留在底部一行（林大师 2026-11-29） */
.qm-cell { position: relative; } .qm-eye-top { position: absolute; top: 1px; left: 50%; transform: translateX(-50%); line-height: 1; pointer-events: none; }
/* 格局、化解里当前事宫（化解还有人宫）那一段标黄 */
.qm-hlrow { background: #fff3bf; border-left: 4px solid #e5b100; padding: 2px 8px; border-radius: 4px; margin: 4px 0; } .qm-hlrow .qm-tag { vertical-align: 1px; }
.qm-chart [data-tip] { cursor: pointer; }
.qm-tipbox { position: absolute; z-index: 60; max-width: 240px; padding: 6px 10px; border-radius: 6px; background: #1f2a24; color: #fff; font-size: 14px; line-height: 1.5; box-shadow: 0 2px 10px rgba(0,0,0,.3); }
.qm-t-ev { background: #1a56b0; }
.qm-tags { flex-wrap: wrap; row-gap: 1px; }

/* 手机顶部的迷你盘 */
.qm-mini { position: fixed; left: 0; right: 0; top: 0; z-index: 30; background: #fff; border-bottom: 1px solid #c9c4b8; box-shadow: 0 2px 8px rgba(0,0,0,.18); padding: 2px 4px 4px; font-family: "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif; color: #1c1c1c; cursor: pointer; }
.qm-mini[hidden] { display: none !important; }
.qm-mini-h { font-size: 11px; color: #5a5f66; text-align: center; line-height: 16px; }
.qm-mini-g { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px; max-width: 520px; margin: 0 auto; }
.qm-mc { border: 1px solid #d6d1c4; padding: 1px 3px; font-size: 14px; line-height: 18px; white-space: nowrap; overflow: hidden; }
.qm-mc > div { display: flex; align-items: center; gap: 3px; }
.qm-mc span { font-weight: 600; } .qm-mc u { text-decoration: none; font-size: 9px; color: #6b7480; vertical-align: super; }
.qm-mc b { font-weight: 600; } .qm-mc em { font-style: normal; color: #aaa; } .qm-mc small { margin-left: auto; font-size: 11px; opacity: .8; }
.qm-mc .qm-mx { text-decoration: underline wavy #e02020 1px; text-underline-offset: 2px; }
.qm-mc0 { display: flex; align-items: center; justify-content: center; text-align: center; font-size: 10px; line-height: 12px; color: #8a8a8a; }
.qm-md { font-style: normal; font-size: 9px; line-height: 13px; min-width: 13px; text-align: center; border-radius: 3px; color: #fff; background: #2e8b57; position: relative; }
.qm-md.qm-t-bad { background: #7a2a2a; } .qm-md.qm-t-me { background: #b3261e; } .qm-md.qm-t-ev { background: #1a56b0; }
.qm-md-eye { background: #1c1c1c; } .qm-md-ma { background: #fff; color: #1c1c1c; border: 1px solid #1c1c1c; border-radius: 7px; line-height: 11px; } .qm-md-k { background: #d9d9d9; color: #33373d; }
@media (min-width: 900px) { .qm-mini { display: none !important; } }

/* 宫格描边：格局吉凶 */
.qm-cell.qm-f { border-width: 3px; padding: 1px 2px; }
.qm-f-major { border-color: #2e9e55 !important; } .qm-f-major-off { border-color: #2e9e55 !important; border-style: dashed !important; }
.qm-f-good { border-color: #2b7de0 !important; } .qm-f-bad { border-color: #4a4f55 !important; } .qm-f-mix { border-color: #e0a400 !important; border-style: dashed !important; }
.qm-lg { display: inline-block; width: 12px; height: 10px; border: 2.5px solid; vertical-align: -1px; margin: 0 2px 0 4px; box-sizing: border-box; }
.qm-lines { overflow: visible; }
.qm-lines line.qm-l2 { stroke: #8a3fd0; stroke-dasharray: 1 6; stroke-width: 2.5; } /* 导火索：病宫隐干 → 天盘同字、地盘同字 */
.qm-tag.qm-t-num { background: transparent; color: #d0201c; font-weight: 700; font-size: 12px; white-space: normal; text-align: center; line-height: 13px; }
.qm-ana b.qm-num { color: #d0201c; font-weight: 700; }

/* 重点结论：底色高亮，深浅色主题都能看清 */
/* 重点结论：不用任何底色（深色模式插件会把有底色的字改成深色而看不见），改用醒目的字色 + 加粗 + 粗下划线 */
.qm-hl, .qm-hl b, .qm-hl strong { background: none !important; color: #e08a00 !important; font-weight: 700; }
.qm-hl { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; text-decoration-color: #e08a00; }

/* 外圈年份 */
.qm-hidrow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 0 27px; align-items: center; }
.qm-yr { font-style: normal; font-size: 11px; color: #8a8f96; white-space: nowrap; letter-spacing: 0; }
.qm-hidrow > span > .qm-yr { margin-left: 2px; }
.qm-side > div { position: relative; }
.qm-side > div { display: flex; flex-direction: column; align-items: center; }
.qm-yr-v { margin: auto 0; font-size: 9px; line-height: 10px; white-space: normal; text-align: center; }

.qm-back { position: sticky; top: 6px; z-index: 30; display: inline-block; min-height: 40px; margin: 0 0 10px; padding: 0 14px; border: 1px solid #2f5d50; border-radius: 6px; background: #fff; color: #2f5d50; font-size: 15px; font-weight: 600; box-shadow: 0 1px 4px rgba(0,0,0,.12); }

/* 命盘：外圈年份多排几轮 */
.qm-yr-m { white-space: normal; font-size: 9px; line-height: 11px; }
.qm-yr-v.qm-yr-m { line-height: 10px; }
@media (max-width: 480px) { .qm-yr-m { font-size: 8px; line-height: 9px; } .qm-yr-v.qm-yr-m { font-size: 7.5px; line-height: 8px; } }

/* 第二种强调（大运的门）：绿色加粗，不用背景色，深色模式插件下也看得清 */
.qm-hl2 { background: none !important; color: #1f9d55 !important; font-weight: 700; font-size: 1.08em; }

/* 逐刻翻局表 */
.qm-tb { width: 100%; border-collapse: collapse; font-size: 14px; }
.qm-tb th, .qm-tb td { padding: 6px 6px; border-bottom: 1px solid #e3e0d8; text-align: left; }
.qm-tb th { color: #666; font-weight: 600; }
.qm-row-hit td { font-weight: 700; color: #1f9d55; }

/* 月家海选：涨红、跌蓝（和盘面吉红凶蓝一致）。只改字色和左边一条色带，不铺背景，深色模式插件下也分得清 */
.qm-up { color: #d0342c !important; font-weight: 700; background: none !important; }
.qm-down { color: #2f6fd6 !important; font-weight: 700; background: none !important; }
.qm-flat { color: #8a8f96 !important; font-weight: 700; background: none !important; }
.qm-run { padding-left: 10px; border-left: 5px solid #b9bcc2; margin: 8px 0; }
.qm-run-up { border-left-color: #d0342c; }
.qm-run-down { border-left-color: #2f6fd6; }

/* 综合结论：一行一段，点开看参与的有缘局；左边 ✅❌ 记号 */
.qm-run > summary { list-style: none; cursor: pointer; display: flex; gap: 8px; align-items: flex-start; line-height: 1.6; }
.qm-run > summary::-webkit-details-marker { display: none; }
.qm-run-t::after { content: ' ▸'; color: #999; }
.qm-run[open] .qm-run-t::after { content: ' ▾'; }
.qm-mk { flex: none; display: inline-flex; gap: 2px; }
.qm-mk button { min-width: 34px; min-height: 34px; padding: 0; border: 1px solid #d6d3cc; border-radius: 6px; background: none; font-size: 17px; line-height: 1; opacity: .28; filter: grayscale(1); }
.qm-mk[data-v="ok"] button[data-set="ok"], .qm-mk[data-v="no"] button[data-set="no"] { opacity: 1; filter: none; border-color: #888; }
.qm-run-list { margin: 6px 0 4px 78px; padding: 0; list-style: none; font-size: 14px; }
.qm-run-list li { margin: 4px 0; }
.qm-run-list .qm-pick { font-size: 13px; padding: 2px 6px; }
.qm-mk-sum { margin-left: 8px; font-weight: 700; }
@media (max-width: 480px) { .qm-run-list { margin-left: 8px; } }
.qm-run > summary { color: inherit; }
.qm-run-t { color: inherit; }

/* ⭐ 重点局 */
.qm-star { display: inline-flex; margin-right: 4px; vertical-align: middle; }
.qm-star button { min-width: 30px; min-height: 30px; padding: 0; border: 1px solid #d6d3cc; border-radius: 6px; background: none; font-size: 15px; line-height: 1; opacity: .25; filter: grayscale(1); }
.qm-star[data-v="star"] button { opacity: 1; filter: none; border-color: #c9a227; }
.qm-star-ok { color: #1f9d55 !important; background: none !important; }
.qm-star-bad { color: #d0342c !important; background: none !important; font-weight: 700; }

/* 盘面下方三行：空亡＋驿马 / 值符＋值使 / 全局异象 */
.qm-row-c .qm-rk { width: 52px; font-size: 14px; display: flex; align-items: center; justify-content: center; padding: 5px 0; }
.qm-row-c .qm-rv { padding: 5px 6px; font-size: 14px; display: flex; align-items: center; flex-wrap: wrap; white-space: nowrap; }
.qm-row-c .qm-rv small { font-size: 11px; color: #888; white-space: normal; }
.qm-row-c .qm-zhi { font-size: 17px; }
@media (max-width: 420px) { .qm-row-c .qm-rk { width: 40px; font-size: 12.5px; } .qm-row-c .qm-rv { font-size: 12.5px; padding: 5px 4px; } .qm-row-c .qm-zhi { font-size: 15px; } }

/* 档案按占卜类型筛选 */
.qm-arcf { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 4px; }
.qm-arcf:empty { display: none; }
.qm-arcf button { font-size: 13px; padding: 4px 10px; border: 1px solid #bdb8ab; border-radius: 14px; background: #fff; color: #4a4f55; cursor: pointer; }
.qm-arcf button.on { border: 2px solid #2f5d50; color: #2f5d50; font-weight: 700; padding: 3px 9px; }
.qm-arcf p { flex-basis: 100%; margin: 2px 0 0; }

/* 彩票：三奇算出来的号用紫色，和常规号（红）区分 */
.qm-tag.qm-t-num .qm-n3, .qm-ana b.qm-num.qm-n3, .qm-ana .qm-n3 { color: #8e2fd0; font-weight: 700; }

/* 彩票：各宫算式的宫名加底色，方便对着盘面找（林大师 2026-11-24 要求用底色） */
.qm-ana .qm-palh { display: inline-block; padding: 1px 8px; border-radius: 5px; background: #2f5d50; color: #fff; font-weight: 700; }
.qm-ana .qm-palp { margin-top: 12px; }

/* 彩票往期开奖 */
.qm-draws { margin-top: 10px; padding-top: 8px; border-top: 1px dashed #cfc9bb; }
.qm-draws:empty { display: none; }
.qm-draws-h { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 4px; }
.qm-draws-h button, .qm-draw-form button { font-size: 13px; padding: 4px 10px; border: 1px solid #2f5d50; border-radius: 6px; background: #fff; color: #2f5d50; cursor: pointer; }
.qm-draw-msg { font-size: 12px; color: #6b6f76; flex-basis: 100%; }
.qm-draw-msg:empty { display: none; }
.qm-draws-l { max-height: 190px; overflow-y: auto; font-size: 13px; line-height: 1.8; }
.qm-draw-i { color: #6b6f76; margin-right: 6px; font-size: 12px; }
.qm-draws b.qm-num { color: #d0201c; } .qm-draws b.qm-blue { color: #1f5fbf; }
.qm-draw-man { margin-top: 6px; font-size: 13px; }
.qm-draw-form { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; }
.qm-draw-form input { flex: 1 1 130px; min-width: 0; padding: 5px 8px; font-size: 14px; }
.qm-draw-form .qm-draw-nums { flex-basis: 100%; }
/* 对照开奖：推荐里中的号、实开里被选中的号加方框 */
.qm-ana b.qm-hit { outline: 2px solid currentColor; outline-offset: 1px; border-radius: 3px; padding: 0 2px; }

/* 海选列表的对照开奖两列 */
.qm-tbl td.qm-rvn { white-space: nowrap; font-size: 13px; }
.qm-tbl td.qm-rvn b.qm-num { color: #d0201c; } .qm-tbl td.qm-rvn b.qm-blue { color: #1f5fbf; }

/* 马星色带：马星宫＝事件启动，对宫＝事件结束；沿九宫外沿从“启”顺时针到“止”（林大师 2026-11-28） */
.qm-arc { --qa: rgba(15, 139, 141, .32); } .qm-arc-s, .qm-arc-e { --qa: #0f8b8d; }
.qm-o9 { box-shadow: inset 0 5px 0 var(--qa); } .qm-o1 { box-shadow: inset 0 -5px 0 var(--qa); } .qm-o3 { box-shadow: inset 5px 0 0 var(--qa); } .qm-o7 { box-shadow: inset -5px 0 0 var(--qa); }
.qm-o4 { box-shadow: inset 0 5px 0 var(--qa), inset 5px 0 0 var(--qa); } .qm-o2 { box-shadow: inset 0 5px 0 var(--qa), inset -5px 0 0 var(--qa); }
.qm-o8 { box-shadow: inset 0 -5px 0 var(--qa), inset 5px 0 0 var(--qa); } .qm-o6 { box-shadow: inset 0 -5px 0 var(--qa), inset -5px 0 0 var(--qa); }
.qm-se { display: inline-block; width: 16px; height: 16px; line-height: 16px; text-align: center; font-size: 10px; font-style: normal; border-radius: 3px; background: #0f8b8d; color: #fff; }
.qm-lg-arc { background: #0f8b8d; border-color: #0f8b8d; }

/* 前因后果：时干宫隐干连到的两宫（林大师 2026-11-28） */
.qm-t-ca { background: #8a3fd0; } .qm-t-ef { background: #5b2a9a; } .qm-md.qm-t-ca { background: #8a3fd0; } .qm-md.qm-t-ef { background: #5b2a9a; }
