/* bazixingge.css — 「八字看性格・十神動機地圖」支柱頁專用樣式（暖象牙精品風，沿用 shenqiang/wuxing-yong/shensha 色系）。
   本頁走亮色：在 :root 覆蓋 style.css 的暗金 token（本檔在 style.css / article.css 之後載入），
   整頁 chrome（header / footer / .article / .cta-card / .rizhu-card / .faq）自動翻亮；
   共用件沿用 article.css 結構，本檔只覆蓋配色/字體並補本頁專屬元件。 */

:root {
  --bg: #f7f3ec; --bg-card: #ffffff; --bg-input: #fffdf9; --border: #e4ddce;
  --text: #201d18; --text-dim: #6f685c; --gold: #a6824c; --gold-soft: #c0a070;
  --radius: 14px;
  /* 五組十神語意色（動機地圖） */
  --g-bijie: #4f8c5f;    /* 比劫：自我・同儕 */
  --g-shishang: #c0872e; /* 食傷：表達・輸出 */
  --g-cai: #b06a3a;      /* 財：務實・掌控 */
  --g-guansha: #5a7fb0;  /* 官殺：秩序・自律 */
  --g-yin: #8a6bb0;      /* 印：滋養・學習 */
  --lux-serif: 'Cormorant Garamond', 'Noto Serif TC', Georgia, serif;
  --lux-sans: 'Jost', 'Noto Sans TC', 'Helvetica Neue', Arial, sans-serif;
}

body { font-family: var(--lux-sans); }
.article h1, .article h2, .bx-note h2 { font-family: var(--lux-serif); font-weight: 600; }
.article h1 { font-size: 2.2rem; letter-spacing: 0.01em; line-height: 1.32; }
.article h2 { letter-spacing: 0.02em; }
.article .lead { font-size: 1.08rem; }
.bx-sub { color: var(--text-dim); font-size: 0.98rem; margin: 0 0 18px; }

/* 日主 vs 七字 核心卡 */
.bx-core {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px; margin: 8px 0 12px;
  display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: center;
}
.bx-core .bx-self {
  width: 78px; height: 78px; border-radius: 50%; background: var(--gold);
  display: grid; place-items: center; text-align: center; color: #fffdf9;
  font-family: var(--lux-serif); font-weight: 600; line-height: 1.15; box-shadow: 0 2px 10px rgba(166,130,76,.28);
}
.bx-core .bx-self .s-big { font-size: 1.3rem; }
.bx-core .bx-self .s-sml { font-size: 0.6rem; letter-spacing: 0.12em; opacity: .92; }
.bx-core p { margin: 0; color: var(--text); font-size: 0.96rem; line-height: 1.85; }
.bx-core b { color: var(--gold); }

/* 十神動機地圖：五組卡（每卡以 inline style 指定 --cc） */
.bx-map { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin: 6px 0 10px; }
.bx-god {
  background: var(--bg-card); border: 1px solid var(--border); border-top: 3px solid var(--cc);
  border-radius: 12px; padding: 14px 13px 13px;
}
.bx-god .bg-name { font-family: var(--lux-serif); font-size: 1.24rem; font-weight: 600; color: var(--cc); }
.bx-god .bg-tag { display: block; font-size: 0.66rem; letter-spacing: 0.06em; color: var(--text-dim); margin: 2px 0 8px; }
.bx-god .bg-psy { margin: 0; font-size: 0.9rem; line-height: 1.75; color: var(--text); }
.bx-god .bg-edge { margin: 8px 0 0; font-size: 0.8rem; line-height: 1.65; color: var(--text-dim); border-top: 1px dashed var(--border); padding-top: 7px; }
.bx-god .bg-edge b { color: var(--cc); font-weight: 600; }

/* 食傷 ↔ 官殺 一條軸 */
.bx-axis { background: var(--bg-input); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; margin: 6px 0 10px; }
.bx-axis-bar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; text-align: center; }
.bx-axis .pole { padding: 12px 14px; border-radius: 10px; background: var(--bg-card); border: 1px solid var(--border); }
.bx-axis .pole.exp { border-top: 3px solid var(--g-shishang); }
.bx-axis .pole.res { border-top: 3px solid var(--g-guansha); }
.bx-axis .pole .p-name { font-family: var(--lux-serif); font-weight: 600; font-size: 1.08rem; }
.bx-axis .pole.exp .p-name { color: var(--g-shishang); }
.bx-axis .pole.res .p-name { color: var(--g-guansha); }
.bx-axis .pole .p-desc { display: block; font-size: 0.8rem; color: var(--text-dim); margin-top: 4px; letter-spacing: 0.02em; }
.bx-axis .axis-mid { font-size: 0.78rem; color: var(--text-dim); letter-spacing: 0.04em; white-space: nowrap; }

/* 時代對照：兩晉 vs 現代 */
.bx-era { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 6px 0 10px; }
.bx-era-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 16px 16px 14px; }
.bx-era-card h3 { margin: 0 0 4px; font-family: var(--lux-serif); font-size: 1.24rem; font-weight: 600; color: var(--gold); }
.bx-era-card .era-when { font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-dim); display: block; margin-bottom: 8px; }
.bx-era-card p { margin: 0 0 8px; font-size: 0.9rem; line-height: 1.8; color: var(--text); }
.bx-era-card .era-god { font-size: 0.82rem; line-height: 1.7; color: var(--text-dim); border-top: 1px dashed var(--border); padding-top: 8px; margin: 0; }
.bx-era-card .era-god b { color: var(--gold); font-weight: 600; }

/* 心理學橋接：四點 */
.bx-bridge { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 6px 0 10px; }
.bx-point { background: var(--bg-card); border: 1px solid var(--border); border-left: 3px solid var(--gold-soft); border-radius: 10px; padding: 14px 16px; }
.bx-point h3 { margin: 0 0 5px; font-size: 1rem; color: var(--gold); font-family: var(--lux-sans); font-weight: 600; }
.bx-point p { margin: 0; font-size: 0.88rem; line-height: 1.78; color: var(--text); }
.bx-point a { color: var(--g-yin); }

/* 誠實話 */
.bx-note {
  background: linear-gradient(160deg, var(--bg-card), var(--bg-input));
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px 24px; margin: 10px 0 8px;
}
.bx-note h2 { margin-top: 0; }
.bx-note p { color: var(--text-dim); }
.bx-note b { color: var(--gold); }

@media (max-width: 720px) {
  .bx-map { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .bx-era, .bx-bridge { grid-template-columns: 1fr; }
  .bx-core { grid-template-columns: 1fr; text-align: center; }
  .bx-core .bx-self { justify-self: center; }
}
@media (max-width: 430px) {
  .article h1 { font-size: 1.82rem; }
  .bx-map { grid-template-columns: 1fr; }
  .bx-axis-bar { grid-template-columns: 1fr; }
  .bx-axis .axis-mid { padding: 4px 0; }
}
