/* article.css — 日主內容頁（SEO topic cluster）專用樣式。
   沿用 style.css 的 :root 變數（--gold / --bg-card 等），故本檔須在 style.css 之後載入。 */

.article { max-width: 760px; margin: 0 auto; padding: 8px 16px 56px; }

/* 麵包屑 */
.breadcrumb { font-size: 0.85rem; color: var(--text-dim); margin: 18px 0 8px; }
.breadcrumb a { color: var(--text-dim); text-decoration: none; }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb span { margin: 0 6px; opacity: 0.5; }

/* 標題與前言 */
.article h1 {
  font-family: 'Noto Serif TC', serif;
  font-size: 1.9rem; line-height: 1.3; color: var(--text);
  margin: 6px 0 4px; letter-spacing: 0.02em;
}
.article .lead {
  color: var(--text-dim); font-size: 1.05rem; line-height: 1.9; margin: 12px 0 4px;
}
.article .lead b { color: var(--gold); font-weight: 500; }

/* 命理小檔案 */
.factbox {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--border); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; margin: 22px 0;
}
.factbox div { background: var(--bg-card); padding: 12px 8px; text-align: center; }
.factbox dt { font-size: 0.75rem; color: var(--text-dim); margin-bottom: 4px; }
.factbox dd {
  font-family: 'Noto Serif TC', serif; font-size: 1.25rem; color: var(--gold); margin: 0;
}

/* 內文段落 */
.article h2 {
  font-family: 'Noto Serif TC', serif; font-size: 1.35rem; color: var(--gold);
  margin: 34px 0 12px; letter-spacing: 0.04em;
}
.article p { line-height: 2; margin-bottom: 14px; color: var(--text); }

/* FAQ */
.article .faq details {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 10px; padding: 12px 16px; margin-bottom: 10px;
}
.article .faq summary {
  cursor: pointer; font-weight: 500; color: var(--text); list-style-position: inside;
}
.article .faq summary::-webkit-details-marker { color: var(--gold); }
.article .faq p { margin: 10px 0 2px; color: var(--text-dim); }

/* CTA */
.cta-card {
  background: linear-gradient(160deg, var(--bg-card), var(--bg-input));
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px 20px; text-align: center; margin: 36px 0 8px;
}
.cta-card h2 { color: var(--gold); margin-top: 0; }
.cta-card p { color: var(--text-dim); margin-bottom: 18px; }
.cta-btns { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.cta-btns a {
  display: inline-block; padding: 12px 22px; border-radius: 10px; font-size: 1rem;
  text-decoration: none; font-family: inherit;
}
.cta-btns .btn-primary { background: var(--gold); color: #14161f; font-weight: 700; }
.cta-btns .btn-ghost { border: 1px solid var(--gold-soft); color: var(--gold); }
.cta-btns a:hover { opacity: 0.9; }

/* 其他日主 / hub 卡片格 */
.rizhu-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 16px 0 8px;
}
.rizhu-card {
  display: block; background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 12px; padding: 16px; text-decoration: none; transition: border-color .15s;
}
.rizhu-card:hover { border-color: var(--gold-soft); }
.rizhu-card .rc-name {
  font-family: 'Noto Serif TC', serif; font-size: 1.3rem; color: var(--gold); display: block;
}
.rizhu-card .rc-meta { font-size: 0.9rem; color: var(--text-dim); margin-top: 4px; display: block; }
.related h2 { font-size: 1.15rem; }

@media (max-width: 480px) {
  .article h1 { font-size: 1.55rem; }
  .factbox { grid-template-columns: repeat(2, 1fr); }
  .rizhu-grid { grid-template-columns: 1fr; }
}

/* 語系切換器（SEO 頁 header 右側；多語系用）*/
.site-header{display:flex;align-items:center;gap:12px}
.lang-switch{display:inline-flex;gap:10px;margin-left:auto;font-size:13px;align-items:center}
.lang-switch a{color:var(--text-dim);text-decoration:none}
.lang-switch a:hover{color:var(--gold)}
.lang-switch .lang-cur{color:var(--gold);font-weight:600}
