/* ══════════════════════════════════════════════════════════
   墨玄神谕 · 排盘样式 v1.0
   配色：玄青 #0D1014 / 宣纸白 #E6E1D6 / 真金 #C9A227 / 朱砂 #A63A2E
   ══════════════════════════════════════════════════════════ */

/* ── 通用容器 ── */
.mx-chart{
  margin: 18px 0; padding: 18px 16px;
  background: linear-gradient(180deg, rgba(201,162,39,.045), rgba(255,255,255,.012));
  border: 1px solid rgba(201,162,39,.18);
  border-radius: 3px;
}
.mx-chart-title{
  font-family: "Cormorant Garamond","Noto Serif SC",Georgia,serif;
  font-size: 15px; font-weight: 600; color: #C9A227;
  letter-spacing: .6px; margin-bottom: 12px;
  padding-bottom: 9px; border-bottom: 1px solid rgba(230,225,214,.08);
}
.mx-chart-meta{
  font-size: 11.5px; color: #8A8477; line-height: 2; margin-bottom: 12px;
}
.mx-chart-meta b{ color: #E0C158; font-weight: 600; }
.mx-sub-title{
  font-size: 12px; color: #8A8477; letter-spacing: .8px;
  margin: 16px 0 9px; padding-left: 8px;
  border-left: 2px solid rgba(201,162,39,.5);
}
.mx-chart-legend{
  display: flex; gap: 16px; flex-wrap: wrap; margin-top: 12px;
  font-size: 10.5px; color: #8A8477;
}
.mx-chart-legend span{ display: flex; align-items: center; gap: 5px; }
.mx-chart-legend i{ width: 8px; height: 8px; border-radius: 1px; display: inline-block; }
.lg-tian{ background: #E0C158; }
.lg-di{ background: #5A96DC; }
.lg-good{ background: #4A9E6B; }
.lg-bad{ background: #A63A2E; }

/* ── 个人信息（重点突出）── */
.mx-person{
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px,1fr));
  gap: 9px 20px; padding: 14px 16px; margin-bottom: 16px;
  background: rgba(201,162,39,.055);
  border: 1px solid rgba(201,162,39,.20);
  border-left: 3px solid #C9A227;
  border-radius: 2px;
}
.mx-person .pc-k{
  display: inline-block; font-size: 11px; color: #8A8477;
  margin-right: 8px; letter-spacing: .5px;
}
.mx-person .pc-v{
  font-size: 14px; color: #E6E1D6; font-weight: 600;
}
.mx-person .pc-v.hl{ color: #E0C158; }
.mx-person .pc-v.ok{ color: #4A9E6B; font-size: 12.5px; font-weight: 500; }

/* ══════════ 1. 奇门九宫 ══════════ */
.qm-grid{
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 2px; background: rgba(201,162,39,.22);
  border: 1px solid rgba(201,162,39,.35); border-radius: 2px;
}
.qm-cell{
  position: relative; min-height: 96px; padding: 8px 6px;
  background: #11161C;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px;
}
.qm-cell.mid{ background: #0D1014; }
.qm-corner{
  position: absolute; top: 4px; left: 5px;
  font-size: 10px; color: #8A8477;
}
.qm-corner sub{ font-size: 8px; opacity: .7; }
.qm-shen{ font-size: 10px; color: #5A96DC; letter-spacing: .5px; }
.qm-xing{ font-size: 12px; color: #E0C158; font-weight: 600; }
.qm-men{
  font-size: 11px; padding: 1px 6px; border-radius: 1px;
  background: rgba(230,225,214,.06); color: #B8B2A6;
}
.qm-men.good{ background: rgba(74,158,107,.16); color: #6BC48D; }
.qm-men.bad{ background: rgba(166,58,46,.16); color: #D9705F; }
.qm-gan{ display: flex; gap: 8px; margin-top: 3px; }
.qm-tian{ font-size: 15px; font-weight: 700; color: #E0C158; }
.qm-di{ font-size: 15px; font-weight: 700; color: #5A96DC; opacity: .9; }

/* ══════════ 2. 八字四柱 ══════════ */
.bz-table{
  width: 100%; border-collapse: collapse; margin-bottom: 6px;
}
.bz-table th{
  font-size: 11px; color: #8A8477; font-weight: 400;
  padding: 6px 4px; text-align: center;
  border-bottom: 1px solid rgba(230,225,214,.10);
}
.bz-table th.bz-h.day{ color: #C9A227; }
.bz-rowlabel{
  font-size: 10.5px; color: #8A8477; text-align: right;
  padding-right: 10px; width: 46px;
}
.bz-gan, .bz-zhi{
  text-align: center; font-size: 26px; font-weight: 700;
  padding: 10px 4px; color: #E6E1D6;
  font-family: "Noto Serif SC", Georgia, serif;
}
.bz-gan.day, .bz-zhi.day{ color: #E0C158; text-shadow: 0 0 16px rgba(201,162,39,.4); }
.bz-zhi{ font-size: 24px; color: #B8B2A6; }
.bz-zhi.day{ color: #C9A227; }

/* 五行 */
.wx-wrap{ display: flex; flex-direction: column; gap: 7px; }
.wx-row{ display: flex; align-items: center; gap: 9px; font-size: 11.5px; }
.wx-name{ width: 22px; text-align: center; font-weight: 600; }
.wx-track{
  flex: 1; height: 6px; background: rgba(230,225,214,.055);
  border-radius: 1px; overflow: hidden;
}
.wx-fill{ height: 100%; border-radius: 1px; transition: width .5s ease; }
.wx-val{ width: 32px; text-align: right; color: #8A8477; font-size: 10.5px; }

/* 大运 */
.dy-scroll{ overflow-x: auto; padding-bottom: 6px; }
.dy-wrap{ display: flex; gap: 5px; min-width: max-content; }
.dy-item{
  min-width: 58px; padding: 8px 5px; text-align: center;
  background: rgba(230,225,214,.035);
  border: 1px solid rgba(230,225,214,.09);
  border-radius: 2px;
}
.dy-gz{
  font-size: 15px; font-weight: 700; color: #E0C158;
  font-family: "Noto Serif SC", Georgia, serif;
}
.dy-age{ font-size: 9.5px; color: #8A8477; margin-top: 3px; }

/* 神煞 */
.ss-wrap{ display: flex; flex-wrap: wrap; gap: 6px; }
.ss-tag{
  font-size: 10.5px; padding: 2px 8px; border-radius: 1px;
  background: rgba(166,58,46,.14); color: #D9705F;
  border: 1px solid rgba(166,58,46,.24);
}
.ts-note{
  margin-top: 12px; padding: 8px 12px;
  font-size: 10.5px; color: #6BC48D; line-height: 1.7;
  background: rgba(74,158,107,.08);
  border-left: 2px solid rgba(74,158,107,.5);
}

/* ══════════ 3. 梅花卦象 ══════════ */
.mh-row{ display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.mh-gua{ flex: 1; min-width: 110px; text-align: center; }
.mh-gua-title{
  font-size: 11px; color: #8A8477; letter-spacing: 1px; margin-bottom: 9px;
}
.mh-lines{ display: flex; flex-direction: column-reverse; gap: 5px; align-items: center; }
.mh-line{
  display: flex; align-items: center; gap: 4px;
  width: 92px; height: 9px; position: relative;
}
.mh-line i{
  height: 100%; flex: 1; background: #E6E1D6; border-radius: 1px;
}
.mh-line.yin i{ flex: 0 0 calc(50% - 3px); }
.mh-line.yin::after{
  content: ""; width: 6px;
}
.mh-line.moving i{ background: #A63A2E; box-shadow: 0 0 10px rgba(166,58,46,.5); }
.mh-no{
  position: absolute; right: -14px; font-size: 8px; color: #8A8477;
}
.mh-gua-name{
  margin-top: 10px; font-size: 13px; font-weight: 600; color: #C9A227;
  font-family: "Noto Serif SC", Georgia, serif;
}
.mh-gua-detail{ font-size: 10px; color: #8A8477; margin-top: 3px; }
.mh-relation{
  display: flex; gap: 16px; flex-wrap: wrap; justify-content: center;
  margin-top: 16px; padding-top: 14px;
  border-top: 1px solid rgba(230,225,214,.08);
  font-size: 11.5px; color: #B8B2A6;
}
.mh-relation b{ color: #E0C158; }
.mh-rel{ color: #D9705F; font-weight: 600; }
.mh-moving{
  text-align: center; margin-top: 10px;
  font-size: 11px; color: #A63A2E;
}

/* ══════════ 4. 星盘 ══════════ */
.astro-wrap{ display: flex; gap: 16px; flex-wrap: wrap; align-items: flex-start; }
.astro-svg-wrap{ flex: 0 0 auto; width: 300px; max-width: 100%; }
.astro-svg{ width: 100%; height: auto; }
.astro-list{ flex: 1; min-width: 160px; }
.ap-row{
  display: flex; align-items: center; gap: 7px;
  padding: 4px 0; font-size: 11px;
  border-bottom: 1px solid rgba(230,225,214,.04);
}
.ap-g{ width: 15px; text-align: center; color: #E0C158; font-size: 13px; }
.ap-n{ width: 34px; color: #B8B2A6; }
.ap-s{ flex: 1; color: #E6E1D6; }
.ap-h{ color: #8A8477; font-size: 10px; }
.asp-wrap{ display: flex; flex-wrap: wrap; gap: 5px; }
.asp-tag{
  font-size: 10px; padding: 2px 7px; border-radius: 1px;
  background: rgba(230,225,214,.05); color: #B8B2A6;
  border: 1px solid rgba(230,225,214,.08);
}
.asp-tag.good{ background: rgba(74,158,107,.12); color: #6BC48D; border-color: rgba(74,158,107,.24); }
.asp-tag.bad{ background: rgba(166,58,46,.12); color: #D9705F; border-color: rgba(166,58,46,.24); }

/* ══════════ 5. 六爻 ══════════ */
.ly-date{
  text-align: center; font-size: 11.5px; color: #8A8477;
  margin-bottom: 12px; letter-spacing: .5px;
}
.ly-row{ display: flex; gap: 12px; flex-wrap: wrap; }
.ly-panel{ flex: 1; min-width: 200px; }
.ly-title{
  font-size: 13px; font-weight: 600; color: #C9A227; margin-bottom: 3px;
  font-family: "Noto Serif SC", Georgia, serif;
}
.ly-sub{ font-size: 10px; color: #8A8477; margin-bottom: 8px; }
.ly-table{ width: 100%; border-collapse: collapse; font-size: 11px; }
.ly-table th{
  font-size: 9.5px; color: #8A8477; font-weight: 400;
  padding: 5px 2px; border-bottom: 1px solid rgba(230,225,214,.08);
}
.ly-table td{ padding: 5px 2px; text-align: center; color: #B8B2A6; }
.ly-table tr.ly-shi td{ background: rgba(201,162,39,.07); }
.ly-ss{ color: #5A96DC; font-size: 10px; }
.ly-lq{ color: #E0C158; }
.ly-gz{ color: #E6E1D6; font-family: "Noto Serif SC", serif; }
.ly-wx{ color: #8A8477; font-size: 10px; }
.sh i, .shi{ color: #A63A2E; font-weight: 700; }
.ying{ color: #5A96DC; font-weight: 700; }

/* ══════════ 6. 塔罗 ══════════ */
.tt-row{ display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.tt-card{
  flex: 1; min-width: 100px; max-width: 150px;
  padding: 12px 9px; text-align: center;
  background: linear-gradient(170deg, rgba(201,162,39,.08), rgba(255,255,255,.015));
  border: 1px solid rgba(201,162,39,.28);
  border-radius: 3px;
  animation: ttIn .5s ease both;
}
.tt-card:nth-child(2){ animation-delay: .12s; }
.tt-card:nth-child(3){ animation-delay: .24s; }
@keyframes ttIn{ from{ opacity:0; transform: translateY(12px) rotateY(-20deg);} to{ opacity:1; transform:none;} }
.tt-card.rev{ border-color: rgba(166,58,46,.34); }
.tt-pos{ font-size: 10px; color: #8A8477; letter-spacing: 1px; margin-bottom: 9px; }
.tt-face{ margin-bottom: 9px; }
.tt-symbol{ font-size: 24px; color: #E0C158; margin-bottom: 5px; }
.tt-card.rev .tt-symbol{ color: #D9705F; }
.tt-name{
  font-size: 13px; font-weight: 600; color: #E6E1D6;
  font-family: "Noto Serif SC", Georgia, serif;
}
.tt-en{ font-size: 9px; color: #8A8477; margin-top: 2px; }
.tt-ori{
  display: inline-block; margin-top: 5px; padding: 1px 7px;
  font-size: 9.5px; border-radius: 1px;
}
.tt-ori.u{ background: rgba(74,158,107,.16); color: #6BC48D; }
.tt-ori.r{ background: rgba(166,58,46,.16); color: #D9705F; }
.tt-kw{ font-size: 9.5px; color: #8A8477; margin-bottom: 6px; }
.tt-elem{ font-size: 9px; color: #8A8477; margin-bottom: 7px; opacity: .8; }
.tt-meaning{ font-size: 10.5px; color: #B8B2A6; line-height: 1.65; }

/* ══════════ 7. 紫微十二宫 ══════════ */
.zw-grid{
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 2px; background: rgba(201,162,39,.20);
  border: 1px solid rgba(201,162,39,.32);
}
.zw-cell{
  position: relative; min-height: 64px; padding: 7px 5px;
  background: #11161C;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.zw-empty{ background: #0D1014; min-height: 64px; }
.zw-cell.ming{ background: rgba(201,162,39,.13); }
.zw-branch{ font-size: 15px; font-weight: 700; color: #E0C158; font-family: "Noto Serif SC", serif; }
.zw-palace{ font-size: 10.5px; color: #B8B2A6; margin-top: 3px; }
.zw-badge{
  position: absolute; top: 3px; right: 4px;
  font-size: 8.5px; padding: 0 4px; border-radius: 1px;
}
.ming-b{ background: rgba(201,162,39,.28); color: #E0C158; }
.shen-b{ background: rgba(90,150,220,.24); color: #7FB0E8; }
.zw-note{
  margin-top: 10px; font-size: 9.5px; color: #8A8477;
  text-align: center; font-style: italic;
}

/* ── 移动端 ── */
@media (max-width: 900px){
  .mx-chart{ padding: 14px 11px; }
  .mx-person{ grid-template-columns: 1fr 1fr; gap: 7px 12px; padding: 11px 12px; }
  .mx-person .pc-v{ font-size: 13px; }
  .qm-cell{ min-height: 78px; padding: 6px 4px; }
  .qm-tian, .qm-di{ font-size: 13px; }
  .qm-xing{ font-size: 11px; }
  .bz-gan{ font-size: 21px; }
  .bz-zhi{ font-size: 19px; }
  .astro-svg-wrap{ width: 100%; }
  .astro-wrap{ flex-direction: column; }
  .tt-card{ min-width: 88px; padding: 10px 7px; }
  .tt-name{ font-size: 11.5px; }
  .zw-cell{ min-height: 54px; }
  .zw-branch{ font-size: 13px; }
  .zw-palace{ font-size: 9px; }
}
