/* ═══════════════════════════════════════
   WENS Aura — Purple Star Astrology MVP
   v0.1.0 — 2026-05-25
   ═══════════════════════════════════════ */

/* ─────────── Reset & Base ─────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 18px; /* v0.5：整體字體 +12.5%，提升可讀性 */
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: "Noto Sans TC", -apple-system, BlinkMacSystemFont, "PingFang TC", "Microsoft YaHei", sans-serif;
  background: #f7f2e7;
  background-attachment: fixed;
  color: #2c2536;
  min-height: 100vh;
  line-height: 1.6;
  letter-spacing: 0.02em;
}

/* 星空背景已移除（宣紙月白版）*/

/* ─────────── Header ─────────── */
.app-header {
  position: relative;
  z-index: 10;
  padding: 1.5rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 1px solid rgba(207,174,102,0.15);
  backdrop-filter: blur(10px);
  background: rgba(255,253,246,0.92);
}

.brand {
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.brand:hover,
.brand:focus {
  opacity: 0.8;
  outline: none;
}

.brand-line {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 0.15rem;
}

.brand-name {
  font-size: 1.25rem;
  font-weight: 300;
  letter-spacing: 0.18em;
  color: #8a6a2f;
}

.brand-placeholder {
  font-size: 0.6rem;
  color: rgba(44,37,54,0.4);
  font-style: italic;
  letter-spacing: 0.05em;
  white-space: nowrap; /* 避免「Your Life Guide」在窄螢幕擠成多行 */
}

.brand-sub-1, .brand-sub-2, .brand-sub-3 {
  font-size: 0.65rem;
  color: rgba(44,37,54,0.55);
  font-weight: 300;
  letter-spacing: 0.1em;
  line-height: 1.3;
}

.brand-sub-2 {
  color: rgba(138,106,47,0.6);
}

.brand-sub-3 {
  letter-spacing: 0.18em;
  font-family: "Noto Serif TC", Georgia, serif;
  font-size: 0.6rem;
}

.lang-switcher {
  display: flex;
  gap: 0.25rem;
  background: rgba(59,43,94,0.1);
  border-radius: 999px;
  padding: 0.25rem;
}

.lang-btn {
  background: transparent;
  border: none;
  color: rgba(44,37,54,0.6);
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 600;
  transition: all 0.2s;
}

.lang-btn.active {
  background: #8a6a2f;
  color: #f7f2e7;
}

.lang-btn:hover:not(.active) {
  color: #2c2536;
}

/* ─────────── Main & Sections ─────────── */
.app-main {
  position: relative;
  z-index: 5;
  max-width: 640px;
  margin: 0 auto;
  padding: 2rem 1.25rem;
}

.section {
  display: none;
  animation: fadeIn 0.5s ease-out;
}

.section.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.section-title {
  font-size: 1.75rem;
  font-weight: 300;
  letter-spacing: 0.05em;
  color: #8a6a2f;
  text-align: center;
  margin-bottom: 0.5rem;
}

.section-subtitle {
  text-align: center;
  color: rgba(44,37,54,0.7);
  font-size: 0.9rem;
  margin-bottom: 2rem;
  font-style: italic;
}

/* ─────────── Form (生辰輸入) ─────────── */
.birth-form {
  background: rgba(255,253,246,0.9);
  border: 1px solid rgba(207,174,102,0.2);
  border-radius: 16px;
  padding: 1.75rem 1.5rem;
  backdrop-filter: blur(10px);
}

.form-row {
  margin-bottom: 1.5rem;
}

.form-row label {
  display: block;
  color: rgba(44,37,54,0.85);
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.form-row input[type="date"],
.form-row input[type="text"],
.form-row input[type="number"],
.form-row select {
  width: 100%;
  padding: 0.75rem 1rem;
  background: rgba(59,43,94,0.1);
  border: 1px solid rgba(207,174,102,0.3);
  border-radius: 8px;
  color: #2c2536;
  font-size: 1rem;
  font-family: inherit;
  cursor: pointer;
}

.form-row input[type="text"] {
  cursor: text;
}

.form-row input[type="date"]:focus,
.form-row input[type="text"]:focus,
.form-row input[type="number"]:focus,
.form-row select:focus {
  outline: none;
  border-color: #8a6a2f;
  box-shadow: 0 0 0 3px rgba(207,174,102,0.15);
}

.form-hint {
  margin-top: 0.4rem;
  font-size: 0.75rem;
  color: rgba(44,37,54,0.45);
  font-style: italic;
}

/* 3 欄日期輸入（年 / 月 / 日）—— 繞開 Safari 民國年 bug */
.birth-date-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.birth-date-group #birth-year {
  flex: 1.2;
  min-width: 6rem;
  text-align: center;
  /* 隱藏 number input 的上下增減箭頭，避免干擾使用者 */
  -moz-appearance: textfield;
}

.birth-date-group #birth-year::-webkit-outer-spin-button,
.birth-date-group #birth-year::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.birth-date-group select {
  flex: 1;
  text-align: center;
  text-align-last: center;
}

.date-separator {
  color: rgba(138,106,47,0.5);
  font-size: 1.2rem;
  font-weight: 300;
}

.radio-group {
  display: flex;
  gap: 1rem;
}

.radio-group label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  padding: 0.6rem 1rem;
  background: rgba(59,43,94,0.07);
  border: 1px solid rgba(207,174,102,0.15);
  border-radius: 8px;
  flex: 1;
  justify-content: center;
  transition: all 0.2s;
  margin: 0;
}

.radio-group label:hover {
  border-color: rgba(207,174,102,0.4);
}

.radio-group input[type="radio"] {
  accent-color: #8a6a2f;
}

/* ─────────── Buttons ─────────── */
.btn-primary, .btn-secondary {
  width: 100%;
  padding: 1rem 1.5rem;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  margin-top: 0.5rem;
  letter-spacing: 0.05em;
}

.btn-primary {
  background: #3b2b5e;
  color: #fff;
  box-shadow: 0 3px 12px rgba(59,43,94,0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(207,174,102,0.4);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: transparent;
  color: #8a6a2f;
  border: 1px solid #8a6a2f;
  margin-top: 2rem;
}

.btn-secondary:hover {
  background: rgba(207,174,102,0.1);
}

/* ─────────── Disclaimer ─────────── */
.disclaimer {
  margin-top: 1.5rem;
  padding: 1rem;
  background: rgba(59,43,94,0.09);
  border-left: 3px solid rgba(207,174,102,0.4);
  border-radius: 4px;
  font-size: 0.8rem;
  color: rgba(44,37,54,0.65);
  line-height: 1.7;
}

/* ─────────── Chart Display (命盤) ─────────── */
.chart-display {
  background: rgba(255,253,246,0.9);
  border: 1px solid rgba(207,174,102,0.2);
  border-radius: 16px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  backdrop-filter: blur(10px);
}

.chart-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  /* v0.5.2 修正：固定 aspect-ratio 1 + 1fr 列高會讓中央堂內容（英文模式含拼音）
     超出格高、溢出壓到鄰宮（姓名蓋到上排、日期被命宮蓋住）。
     改為 minmax 自動列高：內容多時整體略高於正方形，但永不重疊。 */
  grid-template-rows: repeat(4, minmax(90px, auto));
  gap: 4px;
  font-size: 0.7rem;
}

.palace-cell {
  background: rgba(59,43,94,0.14);
  border: 1px solid rgba(207,174,102,0.15);
  border-radius: 6px;
  padding: 0.4rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 80px;
  position: relative; /* 用以承載右下角 .palace-branch 標籤 */
}

.palace-cell.is-self {
  border-color: #8a6a2f;
  background: rgba(207,174,102,0.1);
  box-shadow: inset 0 0 12px rgba(207,174,102,0.2);
}

.palace-cell.is-center {
  background: rgba(59,43,94,0.21);
  border-color: rgba(207,174,102,0.3);
  grid-column: 2 / 4;
  grid-row: 2 / 4;
  text-align: center;
  justify-content: center;
  font-size: 0.85rem;
  overflow: hidden; /* v0.5.2：保險絲——任何極端情況下內容也不可溢出壓鄰宮 */
}

.palace-name {
  color: #8a6a2f;
  font-weight: 600;
  font-size: 0.7rem;
  margin-bottom: 0.2rem;
}

.palace-stars {
  font-size: 0.65rem;
  color: rgba(44,37,54,0.85);
  line-height: 1.3;
  padding-right: 1.1rem; /* v0.5.2：避免星名（The Sovereign 等）與右下角地支字黏在一起 */
}

/* v0.5.2：空宮提示（取代孤零零的「—」，三合派借對宮慣例） */
.palace-empty-note {
  font-size: 0.55rem;
  font-style: italic;
  color: rgba(44,37,54,0.45);
  line-height: 1.25;
  display: inline-block;
}

.palace-star-major {
  color: #8a6a2f;
  font-weight: 600;
}

/* ═══════════════════════════════════════
   Landing 首頁 — 極簡羅盤 + 文化衝擊
   ═══════════════════════════════════════ */

.section-landing {
  min-height: calc(100vh - 200px);
  display: none;
}

.section-landing.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.landing-hero {
  text-align: center;
  padding: 2rem 0;
  width: 100%;
  max-width: 600px;
}

/* 羅盤 SVG */
.aura-compass {
  width: 280px;
  height: 280px;
  margin: 0 auto 2rem;
  display: block;
  filter: drop-shadow(0 0 30px rgba(207,174,102,0.2));
}

@media (min-width: 768px) {
  .aura-compass {
    width: 340px;
    height: 340px;
  }
}

/* 羅盤內圈緩慢旋轉 */
.compass-inner {
  transform-origin: 200px 200px;
  animation: compassSlowRotate 60s linear infinite;
}

@keyframes compassSlowRotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* 中央光暈呼吸 */
.compass-glow {
  transform-origin: 200px 200px;
  animation: glowPulse 4s ease-in-out infinite;
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.15); }
}

/* 中央星輕微閃爍 */
.compass-star {
  transform-origin: 200px 200px;
  animation: starShine 3s ease-in-out infinite;
}

@keyframes starShine {
  0%, 100% { opacity: 0.85; }
  50% { opacity: 1; }
}

/* 中央發光點脈動 */
.compass-pulse {
  transform-origin: 200px 200px;
  animation: pulseDot 2s ease-in-out infinite;
}

@keyframes pulseDot {
  0%, 100% { r: 3; opacity: 1; }
  50% { r: 5; opacity: 0.7; }
}

/* Landing 文字 */
.landing-title {
  font-size: 2.5rem;
  font-weight: 200;
  letter-spacing: 0.25em;
  color: #8a6a2f;
  margin-bottom: 0.5rem;
  text-shadow: 0 0 20px rgba(207,174,102,0.3);
}

@media (min-width: 768px) {
  .landing-title {
    font-size: 3.5rem;
  }
}

.landing-placeholder {
  font-size: 0.75rem;
  color: rgba(44,37,54,0.4);
  font-style: italic;
  letter-spacing: 0.08em;
  margin-bottom: 1.5rem;
}

.landing-subs {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  margin-bottom: 2.5rem;
}

@media (min-width: 768px) {
  .landing-subs {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
  }
}

.landing-sub {
  font-size: 0.95rem;
  color: rgba(44,37,54,0.75);
  font-weight: 300;
  letter-spacing: 0.1em;
  font-family: "Noto Serif TC", Georgia, serif;
  font-style: italic;
}

.landing-sub:nth-child(1) {
  color: rgba(138,106,47,0.85);
}

.landing-sub:nth-child(3) {
  color: rgba(138,106,47,0.85);
}

.landing-sub:nth-child(5) {
  letter-spacing: 0.2em;
  font-family: "Noto Serif TC", Georgia, serif;
}

.landing-sub-divider {
  color: rgba(207,174,102,0.4);
  font-size: 0.9rem;
  display: none;
}

@media (min-width: 768px) {
  .landing-sub-divider {
    display: inline;
  }
}

.landing-tagline {
  font-size: 1rem;
  color: rgba(44,37,54,0.9);
  margin-bottom: 1.5rem;
  line-height: 1.7;
  font-style: italic;
  padding: 0 1rem;
}

.landing-philosophy {
  max-width: 460px;
  margin: 0 auto 2.5rem;
  color: rgba(44,37,54,0.65);
  font-size: 0.9rem;
  line-height: 1.85;
  padding: 0 1rem;
  letter-spacing: 0.02em;
}

.landing-cta {
  max-width: 320px;
  margin: 0 auto;
  display: block;
}

/* 今日主星教育卡片（不指名歷史人物，符合 D-1 挑戰者派） */
.today-star-card {
  max-width: 480px;
  margin: 0 auto 2rem;
  padding: 1.5rem 1.75rem;
  background: rgba(207,174,102,0.05);
  border: 1px solid rgba(207,174,102,0.25);
  border-radius: 16px;
  backdrop-filter: blur(8px);
  text-align: center;
  animation: fadeIn 0.8s ease-out;
}

.today-star-card:empty {
  display: none;
}

.today-star-label {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 0.75rem;
  color: rgba(138,106,47,0.7);
  letter-spacing: 2.5px;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.today-star-aura {
  font-size: 2.5rem;
  margin: 0.25rem auto 0.5rem;
  line-height: 1;
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.today-star-aura img {
  width: 100%;
  height: 100%;
}

.today-star-intro {
  font-size: 0.95rem;
  color: rgba(44,37,54,0.85);
  line-height: 1.6;
  margin-bottom: 0.25rem;
}

.today-star-name {
  font-family: 'Cormorant Garamond', Georgia, serif;
  color: #8a6a2f;
  font-weight: 600;
  letter-spacing: 1px;
  margin: 0 0.25rem;
}

.today-star-archetype {
  font-size: 0.75rem;
  color: rgba(138,106,47,0.55);
  font-style: italic;
  letter-spacing: 1px;
  margin-bottom: 0.75rem;
}

.today-star-tagline {
  font-size: 0.85rem;
  color: rgba(44,37,54,0.7);
  line-height: 1.65;
  padding: 0.75rem 0 0;
  border-top: 1px dashed rgba(207,174,102,0.15);
  font-style: italic;
}

/* v0.5.2：今日主星卡加深（光明/日常/留心三列 + 來源信任行） */
.today-star-rows {
  text-align: left;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px dashed rgba(207,174,102,0.15);
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.today-star-row {
  font-size: 0.78rem;
  color: rgba(44,37,54,0.75);
  line-height: 1.55;
}

.today-row-label {
  display: inline-block;
  min-width: 4.5em;
  margin-right: 0.4rem;
  font-size: 0.68rem;
  color: rgba(138,106,47,0.75);
  letter-spacing: 1.2px;
  text-transform: uppercase;
  font-weight: 600;
}

.today-source-line {
  margin-top: 0.85rem;
  font-size: 0.62rem;
  color: rgba(44,37,54,0.45);
  letter-spacing: 0.5px;
  font-style: italic;
}

/* v0.5.2：十二時辰能量教育輪播卡 */
.hour-energy-card {
  max-width: 480px;
  margin: 0 auto 2rem;
  padding: 1rem 1.5rem;
  background: rgba(59,43,94,0.08);
  border: 1px solid rgba(207,174,102,0.18);
  border-radius: 14px;
  backdrop-filter: blur(8px);
  text-align: center;
  animation: fadeIn 0.8s ease-out;
}

.hour-energy-card:empty {
  display: none;
}

.hour-energy-label {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 0.68rem;
  color: rgba(138,106,47,0.65);
  letter-spacing: 2.5px;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.hour-energy-main {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.hour-energy-emoji {
  font-size: 1.4rem;
  line-height: 1;
}

.hour-energy-name {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.05rem;
  color: #8a6a2f;
  font-weight: 600;
  letter-spacing: 1px;
}

.hour-energy-meta {
  font-size: 0.72rem;
  color: rgba(44,37,54,0.55);
  letter-spacing: 0.5px;
}

.hour-energy-line {
  margin-top: 0.5rem;
  font-size: 0.82rem;
  color: rgba(44,37,54,0.75);
  line-height: 1.6;
}

.hour-energy-note {
  margin-top: 0.6rem;
  font-size: 0.6rem;
  color: rgba(44,37,54,0.4);
  font-style: italic;
  letter-spacing: 0.4px;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.landing-disclaimer {
  margin-top: 2rem;
  font-size: 0.75rem;
  color: rgba(44,37,54,0.4);
  font-style: italic;
}

/* ─────────── Section Hint (點擊提示) ─────────── */
.section-hint {
  text-align: center;
  color: rgba(138,106,47,0.7);
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
  font-style: italic;
}

/* ─────────── Palace Cell (點擊互動強化) ─────────── */
.palace-cell {
  cursor: pointer;
  transition: all 0.2s ease;
}

.palace-cell:hover:not(.is-center) {
  background: rgba(207,174,102,0.08);
  border-color: rgba(207,174,102,0.4);
  transform: scale(1.02);
}

.palace-cell.is-active {
  background: rgba(207,174,102,0.15);
  border-color: #8a6a2f;
  box-shadow: 0 0 20px rgba(207,174,102,0.3);
}

.palace-cell.is-center {
  cursor: default;
}

/* ─────────── Palace Detail (宮位詳細解讀) ─────────── */
.palace-detail {
  margin-top: 1.5rem;
  background: rgba(255,253,246,0.9);
  border: 1px solid rgba(207,174,102,0.3);
  border-radius: 16px;
  padding: 1.75rem 1.5rem;
  backdrop-filter: blur(10px);
  animation: slideIn 0.4s ease-out;
}

@keyframes slideIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.palace-detail-header {
  text-align: center;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(207,174,102,0.15);
}

.palace-detail-icon {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.palace-detail-title {
  font-size: 1.5rem;
  font-weight: 300;
  color: #8a6a2f;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.palace-detail-subtitle {
  font-size: 0.85rem;
  color: rgba(44,37,54,0.6);
  font-style: italic;
}

.palace-detail-tagline {
  font-size: 1.05rem;
  color: rgba(44,37,54,0.95);
  line-height: 1.7;
  text-align: center;
  padding: 1rem 0;
  font-style: italic;
}

.palace-detail-block {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(207,174,102,0.1);
}

.palace-detail-label {
  font-size: 0.7rem;
  color: #8a6a2f;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.palace-detail-text {
  color: rgba(44,37,54,0.88);
  line-height: 1.75;
  font-size: 0.92rem;
}

.palace-detail-stars {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.palace-detail-star-tag {
  background: rgba(207,174,102,0.12);
  color: #8a6a2f;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 500;
  border: 1px solid rgba(207,174,102,0.25);
}

.palace-detail-action {
  font-size: 1rem;
  color: #8a6a2f;
  font-style: italic;
  text-align: center;
  padding: 0.75rem 0;
  font-weight: 500;
}

.palace-detail-compass {
  background: rgba(59,43,94,0.1);
  border-left: 3px solid rgba(138,106,47,0.5);
  padding: 0.75rem 1rem;
  border-radius: 4px;
  font-size: 0.85rem;
  color: rgba(44,37,54,0.85);
  margin-top: 0.5rem;
}

.palace-detail-keywords {
  font-size: 0.8rem;
  color: rgba(138,106,47,0.7);
  text-align: center;
  margin-top: 1.25rem;
  font-style: italic;
  letter-spacing: 0.05em;
}

.palace-detail-close {
  width: 100%;
  margin-top: 1.5rem;
  background: transparent;
  color: rgba(44,37,54,0.6);
  border: 1px solid rgba(44,37,54,0.2);
  padding: 0.6rem 1rem;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.85rem;
  transition: all 0.2s;
}

.palace-detail-close:hover {
  color: #8a6a2f;
  border-color: rgba(207,174,102,0.4);
}

/* ─────────── Reading (主星解讀) ─────────── */
.reading-display {
  background: rgba(255,253,246,0.9);
  border: 1px solid rgba(207,174,102,0.2);
  border-radius: 16px;
  padding: 2rem 1.5rem;
  backdrop-filter: blur(10px);
}

.archetype-name {
  text-align: center;
  margin-bottom: 1.5rem;
}

.archetype-aura {
  width: 200px;
  height: 200px;
  margin: 0 auto 1rem;
  display: block;
}

.archetype-title {
  font-size: 2.25rem;
  font-weight: 300;
  color: #8a6a2f;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.archetype-subtitle {
  font-size: 0.9rem;
  color: rgba(44,37,54,0.6);
  font-style: italic;
}

.archetype-element {
  display: inline-block;
  background: rgba(207,174,102,0.15);
  color: #8a6a2f;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  margin-top: 0.5rem;
}

.reading-block {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(207,174,102,0.15);
}

.reading-block:first-of-type {
  border-top: none;
  padding-top: 0;
}

.reading-block-label {
  font-size: 0.75rem;
  color: #8a6a2f;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.reading-block-text {
  color: rgba(44,37,54,0.9);
  line-height: 1.8;
  font-size: 0.95rem;
}

.reading-action-verb {
  font-size: 1.1rem;
  color: #8a6a2f;
  font-weight: 500;
  font-style: italic;
  text-align: center;
  padding: 1rem 0;
}

/* ─────────── Card Preview ─────────── */
.card-preview-wrapper {
  display: flex;
  justify-content: center;
  padding: 1rem 0;
}

#share-card {
  max-width: 100%;
  width: 270px;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(59,43,94,0.17);
  border: 1px solid rgba(207,174,102,0.3);
}

.card-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.card-tip {
  text-align: center;
  color: rgba(44,37,54,0.6);
  font-size: 0.85rem;
  margin-top: 1rem;
  line-height: 1.7;
}

/* ─────────── Footer ─────────── */
.app-footer {
  position: relative;
  z-index: 5;
  margin-top: 4rem;
  padding: 2rem 1.25rem;
  text-align: center;
  border-top: 1px solid rgba(207,174,102,0.1);
  background: rgba(59,43,94,0.1);
}

.footer-philosophy {
  max-width: 480px;
  margin: 0 auto 1rem;
  color: rgba(44,37,54,0.7);
  font-size: 0.85rem;
  line-height: 1.8;
  font-style: italic;
}

.footer-meta {
  color: rgba(44,37,54,0.4);
  font-size: 0.75rem;
}

.footer-meta a {
  color: rgba(138,106,47,0.7);
  text-decoration: none;
}

.footer-meta a:hover {
  color: #8a6a2f;
}

/* ═══════════════════════════════════════
   v0.4 新增：中央堂八字四柱 + 五行局 + 姓名 + 宮位地支標籤
   ═══════════════════════════════════════ */

/* 宮位右下角地支標籤 */
.palace-branch {
  position: absolute;
  bottom: 0.25rem;
  right: 0.4rem;
  font-size: 0.7rem;
  color: rgba(207,174,102,0.35);
  font-weight: 600;
  letter-spacing: 0.5px;
  pointer-events: none;
}

.palace-cell.is-self .palace-branch {
  color: rgba(138,106,47,0.7);
}

/* 中央堂內容容器（覆蓋 .is-center 預設置中對齊） */
.palace-cell.is-center .center-board-content {
  width: 100%;
  padding: 0.5rem 0.25rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: center;
}

/* 姓名（選填顯示） */
.center-name {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.1rem;
  color: #8a6a2f;
  letter-spacing: 1px;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid rgba(207,174,102,0.2);
  width: 80%;
}

/* 區塊小標籤（八字四柱 / 五行局） */
.center-section-label {
  font-size: 0.65rem;
  color: rgba(44,37,54,0.5);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-right: 0.4rem;
}

/* 八字四柱 2x2 排列 */
.center-bazi-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.3rem 0.6rem;
  margin-top: 0.2rem;
}

.center-bazi-pillar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1rem;
}

.pillar-label {
  font-size: 0.6rem;
  color: rgba(138,106,47,0.5);
  letter-spacing: 1px;
}

.pillar-value {
  font-size: 0.95rem;
  color: #2c2536;
  font-weight: 600;
  letter-spacing: 1px;
}

/* 干支 pinyin（英文模式專用） */
.pillar-pinyin {
  font-size: 0.6rem;
  color: rgba(138,106,47,0.55);
  font-style: italic;
  letter-spacing: 0.3px;
  margin-top: 0.1rem;
}

/* 五行區塊（紫微局 + 個人格） */
.center-five-section {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  margin-top: 0.3rem;
  width: 90%;
}

.center-five-row {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.five-elements-value {
  font-size: 0.85rem;
  color: #8a6a2f;
  font-weight: 600;
}

.five-elements-pinyin {
  font-size: 0.7rem;
  color: rgba(138,106,47,0.6);
  font-weight: 400;
  font-style: italic;
}

/* 星座 + 生肖（舊版中央堂內，已搬到 info-bar，保留樣式以防回滾） */
.center-astro {
  margin-top: 0.3rem;
  font-size: 0.78rem;
  color: rgba(44,37,54,0.7);
  letter-spacing: 0.5px;
}

/* v0.5 新增：命盤副標（命格名稱 + essence tagline） */
.chart-self-title {
  text-align: center;
  margin: -0.5rem auto 1.25rem;
  max-width: 560px;
}

.chart-self-title .chart-title-main {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.15rem;
  color: #8a6a2f;
  letter-spacing: 3px;
  font-weight: 600;
  text-transform: uppercase;
  text-shadow: 0 0 12px rgba(207,174,102,0.3);
}

.chart-self-title .chart-title-essence {
  margin-top: 0.6rem;
  font-family: "Noto Serif TC", Georgia, serif;
  font-size: 0.9rem;
  color: rgba(44,37,54,0.72);
  font-style: italic;
  font-weight: 300;
  letter-spacing: 0.5px;
  line-height: 1.5;
  padding: 0 1rem;
}

.chart-title-en {
  color: #8a6a2f;
}

.chart-title-zh {
  color: rgba(138,106,47,0.85);
  letter-spacing: 2px;
}

.chart-title-divider {
  color: rgba(138,106,47,0.5);
  margin: 0 0.4rem;
}

/* v0.5 新增：命盤下方 Info Bar */
.chart-info-bar {
  max-width: 900px;
  margin: 1.5rem auto 1rem;
  padding: 1rem 1.25rem;
  background: rgba(59,43,94,0.1);
  border: 1px solid rgba(207,174,102,0.2);
  border-radius: 12px;
  backdrop-filter: blur(6px);
}

.chart-info-bar:empty {
  display: none;
}

.info-bar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.6rem 1.25rem;
}

.info-bar-item {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  font-size: 0.9rem;
  line-height: 1.5;
}

.info-bar-icon {
  font-size: 1rem;
  flex-shrink: 0;
}

.info-bar-label {
  font-size: 0.7rem;
  color: rgba(44,37,54,0.55);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  flex-shrink: 0;
  min-width: 4rem;
}

.info-bar-value {
  color: #8a6a2f;
  font-weight: 500;
}

/* 中央堂日期 */
.center-date {
  margin-top: 0.4rem;
  font-size: 0.7rem;
  color: rgba(44,37,54,0.5);
  letter-spacing: 0.5px;
}

/* 中央堂城市（v1.0 真太陽時校正用） */
.center-city {
  margin-top: 0.1rem;
  font-size: 0.7rem;
  color: rgba(138,106,47,0.6);
  letter-spacing: 0.5px;
}

/* 手機版縮放 */
@media (max-width: 480px) {
  .center-name { font-size: 0.85rem; }
  .pillar-value { font-size: 0.75rem; }
  .center-section-label { font-size: 0.55rem; }
  .palace-branch { font-size: 0.6rem; }

  /* 手機：標頭副標 chip 收起，避免「Your Life Guide」擠成三行 */
  .brand-placeholder { display: none; }

  /* 手機：日期欄 — 移除 year 固定寬，讓月/日有足夠寬度顯示數字 */
  .birth-date-group { gap: 0.3rem; }
  .birth-date-group #birth-year {
    min-width: 0; flex: 1.1;
    padding-left: 0.5rem; padding-right: 0.5rem;
  }
  .birth-date-group select {
    flex: 1; min-width: 0;
    padding: 0.75rem 1.3rem 0.75rem 0.5rem; /* 右側留位給原生箭頭，避免蓋住數字 */
    font-size: 1rem;
  }
  .date-separator { font-size: 1rem; }

  /* 手機：另一半匹配列改上下堆疊、靠左對齊，避免左右兩欄擠在一起 */
  .compat-row-head { flex-direction: column; align-items: flex-start; gap: 0.1rem; }
  .compat-verdict { font-size: 0.82rem; }
  .compat-people { text-align: left; }
}

/* ─────────── Responsive ─────────── */
@media (min-width: 768px) {
  .section-title {
    font-size: 2.25rem;
  }
  .brand-name {
    font-size: 1.75rem;
  }
  .card-actions {
    flex-direction: row;
  }
  .chart-grid {
    font-size: 0.85rem;
  }
  .palace-cell {
    min-height: 110px;
  }
}

/* ═══════════ 五鏡輪播（v0.5.4）═══════════ */
.five-mirrors {
  max-width: 540px;
  margin: 0 auto 2.5rem;
  text-align: center;
  animation: fadeIn 0.8s ease-out;
}
.five-mirrors-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.25rem;
  color: #8a6a2f;
  letter-spacing: 2px;
  margin: 0 0 0.35rem;
}
.five-mirrors-sub {
  font-size: 0.85rem;
  color: rgba(44,37,54,0.6);
  margin: 0 0 1.25rem;
  padding: 0 1rem;
}
.mirror-stage {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 0.5rem;
}
.mirror-nav {
  flex: 0 0 auto;
  width: 40px;
  border: 1px solid rgba(207,174,102,0.3);
  background: rgba(207,174,102,0.05);
  color: #8a6a2f;
  font-size: 1.6rem;
  line-height: 1;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.mirror-nav:hover { background: rgba(207,174,102,0.15); border-color: rgba(138,106,47,0.6); }
.mirror-nav:active { transform: scale(0.95); }

.mirror-card {
  flex: 1 1 auto;
  min-height: 260px;
  padding: 1.5rem 1.25rem;
  border-radius: 18px;
  backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  animation: fadeIn 0.4s ease-out;
}
.mirror-card.is-live {
  background: rgba(207,174,102,0.08);
  border: 1px solid rgba(138,106,47,0.45);
}
.mirror-card.is-soon {
  background: rgba(59,43,94,0.06);
  border: 1px dashed rgba(59,43,94,0.4);
}
.mirror-badge {
  font-size: 0.7rem;
  letter-spacing: 1.5px;
  padding: 3px 12px;
  border-radius: 999px;
  text-transform: uppercase;
}
.mirror-badge-live { color: #41704f; background: rgba(65,112,79,0.12); border: 1px solid rgba(65,112,79,0.4); }
.mirror-badge-soon { color: #3b2b5e; background: rgba(59,43,94,0.12); border: 1px solid rgba(59,43,94,0.4); }

.mirror-emoji { font-size: 3rem; line-height: 1; margin: 0.25rem 0; }
.is-soon .mirror-emoji { opacity: 0.55; filter: grayscale(0.3); }
.mirror-name {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.3rem;
  color: #8a6a2f;
}
.mirror-subtitle { font-size: 0.9rem; font-style: italic; color: rgba(44,37,54,0.85); }
.mirror-type {
  font-size: 0.7rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(138,106,47,0.6);
}
.mirror-desc {
  font-size: 0.88rem;
  line-height: 1.6;
  color: rgba(44,37,54,0.75);
  margin: 0.5rem 0 0.75rem;
  max-width: 320px;
}
.mirror-cta { margin-top: 0.25rem; padding: 0.6rem 1.5rem; font-size: 0.9rem; }
.mirror-cta-soon {
  font-size: 0.8rem;
  color: rgba(59,43,94,0.85);
  font-style: italic;
  margin-top: 0.25rem;
}

.mirror-dots {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 1rem;
}
.mirror-dot {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(207,174,102,0.25);
  background: rgba(255,253,246,0.9);
  font-size: 1.1rem;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.2s, transform 0.2s, border-color 0.2s;
}
.mirror-dot:hover { opacity: 0.85; }
.mirror-dot.is-active {
  opacity: 1;
  transform: scale(1.15);
  border-color: #8a6a2f;
  background: rgba(207,174,102,0.12);
}

@media (max-width: 480px) {
  .mirror-nav { width: 34px; font-size: 1.3rem; }
  .mirror-card { min-height: 240px; padding: 1.25rem 0.85rem; }
  .mirror-dot { width: 34px; height: 34px; font-size: 1rem; }
}

/* ═══════════ Q&A 問題卡 + 合盤概略（v0.5.5）═══════════ */
/* 另一半匹配概略 */
.compat-section, .qa-section { max-width: 560px; margin: 2rem auto 0; }
.compat-section:empty, .qa-section:empty { display: none; }
.compat-title, .qa-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.2rem; color: #8a6a2f; text-align: center; margin: 0 0 0.75rem;
}
.compat-badge {
  display: flex; justify-content: center; gap: 0.6rem; flex-wrap: wrap; margin-bottom: 0.75rem;
}
.compat-badge-star, .compat-badge-el {
  font-size: 0.9rem; padding: 5px 14px; border-radius: 999px;
  border: 1px solid rgba(207,174,102,0.4); background: rgba(207,174,102,0.08); color: #8a6a2f;
}
.compat-badge-el { border-color: rgba(59,43,94,0.4); background: rgba(59,43,94,0.1); color: #c4b5fd; }
.compat-intro, .qa-quota {
  font-size: 0.85rem; color: rgba(44,37,54,0.65); text-align: center; margin: 0 0 1rem;
}
.compat-rows { display: flex; flex-direction: column; gap: 0.5rem; }
.compat-row {
  padding: 0.7rem 1rem; border-radius: 12px;
  background: rgba(255,253,246,0.9); border-left: 3px solid rgba(207,174,102,0.3);
}
.compat-feeds   { border-left-color: #41704f; background: rgba(65,112,79,0.07); }
.compat-same    { border-left-color: #8a6a2f; background: rgba(207,174,102,0.07); }
.compat-leads   { border-left-color: #0ea5e9; }
.compat-gives   { border-left-color: #3b2b5e; }
.compat-pressed { border-left-color: #9a5a34; background: rgba(154,90,52,0.06); }
.compat-row-head { display: flex; justify-content: space-between; align-items: baseline; gap: 0.5rem; }
.compat-el { font-weight: 600; color: #2c2536; }
.compat-verdict { font-size: 0.85rem; color: rgba(44,37,54,0.8); }
.compat-people { font-size: 0.85rem; color: rgba(44,37,54,0.6); margin-top: 0.25rem; }
.compat-foot, .qa-card + .qa-answer:empty { font-size: 0.78rem; color: rgba(59,43,94,0.8); text-align: center; margin-top: 0.9rem; font-style: italic; }
.compat-foot { font-size: 0.78rem; color: rgba(59,43,94,0.8); text-align: center; margin-top: 0.9rem; font-style: italic; }

/* 人生問題卡 */
.qa-quota strong { color: #8a6a2f; }
.qa-cards { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; }
.qa-card {
  padding: 0.55rem 1rem; font-size: 0.9rem;
  border: 1px solid rgba(207,174,102,0.3); border-radius: 999px;
  background: rgba(207,174,102,0.05); color: #2c2536; cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.1s;
}
.qa-card:hover { background: rgba(207,174,102,0.15); border-color: rgba(138,106,47,0.6); }
.qa-card:active { transform: scale(0.97); }
.qa-answer { margin-top: 1rem; }
.qa-answer:empty { display: none; }
.qa-answer-q {
  font-family: 'Cormorant Garamond', Georgia, serif; font-size: 1.05rem; color: #8a6a2f;
  text-align: center; margin-bottom: 0.75rem;
}
.qa-star-line { text-align: center; color: rgba(44,37,54,0.85); margin-bottom: 0.75rem; }
.qa-star-line strong { color: #8a6a2f; }
.qa-block {
  background: rgba(255,253,246,0.9); border-radius: 12px;
  padding: 0.7rem 1rem; margin-bottom: 0.5rem; line-height: 1.6;
  color: rgba(44,37,54,0.9); font-size: 0.92rem;
}
.qa-block.qa-shadow { background: rgba(154,90,52,0.06); }
.qa-label {
  display: block; font-size: 0.72rem; letter-spacing: 1.5px; text-transform: uppercase;
  color: #8a6a2f; margin-bottom: 0.3rem;
}
.qa-reflect {
  font-style: italic; color: rgba(138,106,47,0.85); text-align: center;
  margin: 0.9rem 0 0.4rem; line-height: 1.6;
}
/* 慈悲行善引導（H-12.2 趨吉避凶心法）— 改為搶眼的暖綠色＋底色，突顯這是最有意義的提示 */
.qa-compassion {
  font-size: 0.92rem; font-weight: 600; color: #41704f; text-align: center; line-height: 1.7;
  margin-top: 0.6rem; padding: 0.6rem 1rem; border-radius: 12px;
  background: rgba(65,112,79,0.1); border: 1px solid rgba(65,112,79,0.35);
}
.qa-empty {
  text-align: center; color: rgba(59,43,94,0.85); font-style: italic;
  padding: 1rem; line-height: 1.6;
}
.qa-limit {
  text-align: center; color: #8a6a2f; background: rgba(207,174,102,0.08);
  border: 1px dashed rgba(207,174,102,0.4); border-radius: 12px;
  padding: 1rem; line-height: 1.7; font-size: 0.9rem;
}

/* ── 夫妻宮：您吸引的另一半（v0.5.6）── */
.spouse-box {
  margin: 0.5rem 0 1.25rem; padding: 1rem 1.1rem;
  border-radius: 14px; background: rgba(160,85,119,0.06);
  border: 1px solid rgba(160,85,119,0.3);
}
.spouse-title {
  font-family: 'Cormorant Garamond', Georgia, serif; font-size: 1.02rem;
  color: #a05577; text-align: center; margin: 0 0 0.6rem;
}
.spouse-badge { text-align: center; margin-bottom: 0.6rem; }
.spouse-star {
  font-size: 0.9rem; padding: 4px 14px; border-radius: 999px;
  background: rgba(160,85,119,0.12); border: 1px solid rgba(160,85,119,0.4); color: #a05577;
}
.spouse-borrowed {
  font-size: 0.82rem; color: rgba(59,43,94,0.85); font-style: italic;
  text-align: center; line-height: 1.6; margin: 0 0 0.6rem;
}
.spouse-block {
  background: rgba(255,253,246,0.9); border-radius: 10px;
  padding: 0.6rem 0.9rem; margin-bottom: 0.45rem; line-height: 1.6;
  color: rgba(44,37,54,0.9); font-size: 0.9rem;
}
.spouse-block.spouse-shadow { background: rgba(154,90,52,0.06); }
.spouse-label {
  display: block; font-size: 0.7rem; letter-spacing: 1.2px; text-transform: uppercase;
  color: #a05577; margin-bottom: 0.25rem;
}
.spouse-harmony {
  padding: 0.6rem 0.9rem; border-radius: 10px; font-size: 0.9rem;
  color: rgba(44,37,54,0.92); border-left: 3px solid rgba(207,174,102,0.4);
  background: rgba(255,253,246,0.9);
}
.spouse-harmony .spouse-label { color: #8a6a2f; }

/* ── 命盤生辰防呆行（v0.5.7）── */
.chart-birth-info {
  text-align: center;
  font-size: 0.92rem;
  letter-spacing: 1px;
  color: #8a6a2f;
  background: rgba(207,174,102,0.08);
  border: 1px solid rgba(207,174,102,0.3);
  border-radius: 999px;
  padding: 6px 18px;
  display: inline-block;
  margin: 0.25rem auto 0.75rem;
}
.chart-birth-info:empty { display: none; }
.section-chart { text-align: center; }

/* ── Q&A 第 2 階段：問題專屬答案（v0.6.0）── */
.qa-lens {
  font-style: italic; color: rgba(138,106,47,0.9); text-align: center;
  line-height: 1.6; margin: 0.25rem 0 0.9rem; font-size: 0.95rem;
}
.qa-borrow {
  font-size: 0.82rem; color: rgba(59,43,94,0.85); font-style: italic;
  text-align: center; line-height: 1.6; margin-bottom: 0.6rem;
}
.qa-block.qa-good { background: rgba(65,112,79,0.07); }
.qa-block.qa-good .qa-label { color: #41704f; }

/* ── 返回鍵（v0.6.4）── */
.btn-back {
  display: inline-block; margin: 0 auto 0.5rem; padding: 0.35rem 0.95rem;
  font-size: 0.85rem; color: rgba(44,37,54,0.85); cursor: pointer;
  background: rgba(255,253,246,0.9); border: 1px solid rgba(207,174,102,0.3);
  border-radius: 999px; transition: background 0.2s, border-color 0.2s, transform 0.1s;
}
.btn-back:hover { background: rgba(207,174,102,0.12); border-color: rgba(138,106,47,0.6); }
.btn-back:active { transform: scale(0.97); }
.section-input .btn-back, .section-reading .btn-back, .section-card .btn-back {
  display: block; width: max-content;
}

/* ── Q&A 第 2 階段：三層小標 + 三方借力 + 深解 CTA（v0.6.4）── */
.qa-layer { text-align: center; margin: 1.1rem 0 0.5rem; }
.qa-layer-h {
  display: inline-block; font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 0.95rem; letter-spacing: 2px; color: #8a6a2f;
  padding-bottom: 0.2rem; border-bottom: 1px solid rgba(207,174,102,0.35);
}
.qa-trine {
  margin-top: 0.6rem; padding: 0.7rem 1rem; border-radius: 12px;
  background: rgba(59,43,94,0.1); border: 1px solid rgba(59,43,94,0.3);
}
.qa-trine .qa-label { color: #3b2b5e; }
.qa-trine-stars { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.2rem; }
.qa-trine-star {
  font-size: 0.82rem; padding: 3px 11px; border-radius: 999px;
  background: rgba(59,43,94,0.12); border: 1px solid rgba(59,43,94,0.35);
  color: rgba(44,37,54,0.92);
}
.qa-deepen {
  margin-top: 1.1rem; padding: 1rem 1.1rem; border-radius: 14px; text-align: center;
  background: linear-gradient(135deg, rgba(59,43,94,0.14), rgba(207,174,102,0.08));
  border: 1px solid rgba(207,174,102,0.35);
}
.qa-deepen-title {
  font-family: 'Cormorant Garamond', Georgia, serif; font-size: 1.02rem; color: #8a6a2f;
  margin-bottom: 0.4rem;
}
.qa-deepen-body {
  font-size: 0.88rem; color: rgba(44,37,54,0.85); line-height: 1.65; margin: 0 0 0.75rem;
}
.qa-deepen-cta {
  display: inline-block; padding: 0.5rem 1.2rem; border-radius: 999px;
  font-size: 0.88rem; font-weight: 600; text-decoration: none; color: #f7f2e7;
  background: #8a6a2f; transition: transform 0.1s, box-shadow 0.2s;
}
.qa-deepen-cta:hover { box-shadow: 0 0 18px rgba(138,106,47,0.5); }
.qa-deepen-cta:active { transform: scale(0.97); }

/* ── 首頁隱私提示（v0.6.5）── */
.landing-privacy {
  font-size: 0.82rem; color: #41704f; text-align: center;
  line-height: 1.6; margin: 0.6rem auto 0; max-width: 30rem;
}

/* ── 精選回饋牆（路 A，v0.6.5）── */
.feedback-wall { max-width: 560px; margin: 2rem auto 0; }
.feedback-wall:empty { display: none; }
.fb-title {
  font-family: 'Cormorant Garamond', Georgia, serif; font-size: 1.15rem; color: #8a6a2f;
  text-align: center; margin: 0 0 0.3rem;
}
.fb-intro {
  font-size: 0.8rem; color: rgba(59,43,94,0.85); text-align: center;
  font-style: italic; margin: 0 0 1rem;
}
.fb-cards { display: flex; flex-direction: column; gap: 0.6rem; }
.fb-card {
  margin: 0; padding: 0.85rem 1.1rem; border-radius: 14px;
  background: rgba(255,253,246,0.9); border: 1px solid rgba(207,174,102,0.18);
}
.fb-quote {
  margin: 0; font-size: 0.95rem; line-height: 1.65; color: rgba(44,37,54,0.92);
}
.fb-quote::before { content: '“'; color: rgba(138,106,47,0.6); margin-right: 1px; }
.fb-quote::after  { content: '”'; color: rgba(138,106,47,0.6); margin-left: 1px; }
.fb-by {
  margin-top: 0.5rem; font-size: 0.78rem; color: rgba(59,43,94,0.85); text-align: right;
}
.feedback-actions { text-align: center; margin-top: 1.1rem; }
.btn-feedback {
  display: inline-block; padding: 0.55rem 1.3rem; border-radius: 999px;
  font-size: 0.9rem; text-decoration: none; color: #2c2536; cursor: pointer;
  background: rgba(207,174,102,0.08); border: 1px solid rgba(207,174,102,0.4);
  transition: background 0.2s, border-color 0.2s, transform 0.1s;
}
.btn-feedback:hover { background: rgba(207,174,102,0.16); border-color: rgba(138,106,47,0.7); }
.btn-feedback:active { transform: scale(0.97); }

/* ── Q&A 生活應用（都市實用，v0.6.8）── */
.qa-apply {
  margin-top: 0.6rem; padding: 0.75rem 1rem; border-radius: 12px; line-height: 1.7;
  font-size: 0.93rem; color: rgba(44,37,54,0.95);
  background: rgba(207,174,102,0.08); border-left: 3px solid rgba(138,106,47,0.6);
}
.qa-apply .qa-label { color: #8a6a2f; }

/* ── 即時公開留言牆（路 B，v0.6.9）── */
.message-wall { max-width: 560px; margin: 2.5rem auto 0; text-align: left; }
.message-wall:empty { display: none; }
.wall-title {
  font-family: 'Cormorant Garamond', Georgia, serif; font-size: 1.15rem; color: #8a6a2f;
  text-align: center; margin: 0 0 0.3rem;
}
.wall-intro {
  font-size: 0.8rem; color: rgba(59,43,94,0.9); text-align: center;
  line-height: 1.6; margin: 0 auto 1rem; max-width: 30rem;
}
.wall-form {
  background: rgba(255,253,246,0.9); border: 1px solid rgba(207,174,102,0.2);
  border-radius: 14px; padding: 0.9rem 1rem; margin-bottom: 1.1rem;
}
.wall-nick, .wall-body-in {
  width: 100%; box-sizing: border-box; color: #2c2536;
  background: rgba(59,43,94,0.09); border: 1px solid rgba(59,43,94,0.3);
  border-radius: 10px; padding: 0.55rem 0.75rem; font-size: 0.92rem; font-family: inherit;
}
.wall-nick { margin-bottom: 0.5rem; }
.wall-body-in { resize: vertical; line-height: 1.6; }
.wall-nick:focus, .wall-body-in:focus { outline: none; border-color: rgba(138,106,47,0.6); }
/* honeypot：人眼看不到，機器人易誤填 */
.wall-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.wall-form-row { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; margin-top: 0.6rem; }
.wall-feedback { font-size: 0.82rem; color: #41704f; flex: 1; line-height: 1.4; }
.wall-submit {
  padding: 0.5rem 1.3rem; border-radius: 999px; border: none; cursor: pointer;
  font-size: 0.9rem; font-weight: 600; color: #f7f2e7; background: #8a6a2f;
  transition: transform 0.1s, box-shadow 0.2s;
}
.wall-submit:hover { box-shadow: 0 0 16px rgba(138,106,47,0.5); }
.wall-submit:active { transform: scale(0.97); }
.wall-submit:disabled { opacity: 0.5; cursor: default; }
.wall-note { font-size: 0.74rem; color: rgba(59,43,94,0.7); margin: 0.55rem 0 0; text-align: center; }
.wall-list { display: flex; flex-direction: column; gap: 0.55rem; }
.wall-card {
  padding: 0.8rem 1rem; border-radius: 12px;
  background: rgba(59,43,94,0.1); border: 1px solid rgba(59,43,94,0.22);
}
.wall-card-body { font-size: 0.93rem; line-height: 1.65; color: rgba(44,37,54,0.95); white-space: pre-wrap; word-break: break-word; }
.wall-card-by { margin-top: 0.4rem; font-size: 0.78rem; color: rgba(59,43,94,0.85); text-align: right; }
.wall-empty { text-align: center; color: rgba(59,43,94,0.8); font-style: italic; padding: 1rem; font-size: 0.9rem; }

/* ═══════════════════════════════════════
   易經卜卦（第二鏡）v0.7.1
   ═══════════════════════════════════════ */
.section-iching { max-width: 760px; margin: 0 auto; }
.iching-cast-form { margin: 1.2rem 0; padding: 1.2rem; background: rgba(59,43,94,0.08);
  border: 1px solid rgba(207,174,102,0.18); border-radius: 14px; }
.iching-cast-form .form-row { margin-bottom: 1rem; }
#iching-question { width: 100%; box-sizing: border-box; padding: 0.7rem 0.9rem; border-radius: 10px;
  border: 1px solid rgba(207,174,102,0.3); background: rgba(59,43,94,0.09); color: #2c2536;
  font-size: 1rem; font-family: inherit; resize: vertical; }
#iching-question:focus { outline: none; border-color: #8a6a2f; }
.ich-method-title { display:block; margin-bottom: 0.5rem; font-size: 0.95rem; color: #3b2b5e; }
.ich-method-group label { display:inline-flex; align-items:center; gap:0.35rem; margin-right:1.2rem; font-size:0.92rem; }
.ich-rule45 { margin-top: 0.9rem; font-size: 0.82rem; line-height: 1.6; color: #5d4a86; font-style: italic; }
#iching-cast-btn { width: 100%; margin-top: 0.3rem; }

.iching-notice { margin: 1rem 0; padding: 0.9rem 1.1rem; border-radius: 10px;
  background: rgba(207,174,102,0.1); border: 1px solid rgba(207,174,102,0.35);
  color: #6d5426; font-size: 0.92rem; line-height: 1.7; }

.iching-result { margin-top: 1.4rem; }
.ich-q { margin-bottom: 1rem; padding: 0.7rem 1rem; border-left: 3px solid #8a6a2f;
  background: rgba(59,43,94,0.07); border-radius: 0 8px 8px 0; font-size: 0.95rem; color:#3b2b5e; }
.ich-q span { color:#8a6a2f; }

/* 卦象 */
.ich-hexes { display:flex; align-items:center; justify-content:center; gap:1.4rem; margin: 0.5rem 0 1.4rem; flex-wrap:wrap; }
.ich-hex { text-align:center; }
.ich-hex-cap { font-size:0.8rem; color:#5d4a86; margin-bottom:0.5rem; }
.ich-hex-name { margin-top:0.5rem; font-size:1.25rem; font-weight:700; color:#8a6a2f; letter-spacing:1px; }
.ich-hex-tri { font-size:0.78rem; color:#5d4a86; }
.ich-arrow { font-size:1.8rem; color:#8a6a2f; opacity:0.8; }
.hex-visual { display:inline-block; }
.yao-row { display:flex; align-items:center; justify-content:center; gap:0.5rem; margin:3px 0; }
.yao-bar { display:inline-flex; width:88px; height:13px; }
.hex-visual-sm .yao-bar { width:66px; height:10px; }
.yao-yang { background:#8a6a2f; border-radius:2px; }
.yao-yin { background:transparent; justify-content:space-between; }
.yao-yin i { display:block; width:38px; height:100%; background:#8a6a2f; border-radius:2px; }
.hex-visual-sm .yao-yin i { width:28px; }
.yao-change { width:16px; font-size:0.8rem; color:#9a5a34; text-align:center; }
.yao-change-pad { width:16px; }

/* 三層釋義 */
.ich-judge { margin:1rem 0; padding:0.7rem 1rem; background:rgba(59,43,94,0.16);
  border-radius:10px; font-size:0.92rem; line-height:1.7; color:#3b2b5e; }
.ich-layer { margin:0.9rem 0; border-radius:12px; overflow:hidden; border:1px solid rgba(207,174,102,0.15); }
.ich-layer-h { padding:0.5rem 1rem; font-size:0.85rem; font-weight:700; letter-spacing:1px;
  background:rgba(207,174,102,0.12); color:#8a6a2f; }
.ich-layer-b { padding:0.9rem 1.1rem; font-size:0.98rem; line-height:1.95; color:#3b2b5e; }
.ich-layer-b p { margin:0 0 0.7rem; }
.ich-layer-b p:last-child { margin-bottom:0; }
.ich-src .ich-layer-b { font-family: "Noto Serif TC", Georgia, serif; color:#6d5426; }
.ich-gu .ich-layer-b { color:#cdbef0; font-size:0.92rem; }
.ich-plain .ich-layer-b { color:#2c2536; }
.ich-ennote { font-size:0.8rem; color:#5d4a86; font-style:italic; }
.ich-disc { margin-top:1.2rem; font-size:0.8rem; line-height:1.6; color:#5d4a86; text-align:center; }

/* 易經擲卦動畫 v0.7.2 */
.ich-casting { text-align:center; padding:1.6rem 0 1rem; }
.ich-casting-title { color:#8a6a2f; letter-spacing:3px; margin-bottom:1.2rem; font-size:0.95rem; }
.ich-coins { display:flex; justify-content:center; gap:0.9rem; margin-bottom:1.3rem; }
.ich-coin { font-size:2.1rem; line-height:1; display:inline-block; color:#8a6a2f; }
.ich-coins.ich-stalks .ich-coin { font-size:1.7rem; }
.ich-coin.flip { animation: ich-flip 0.4s ease; }
@keyframes ich-flip {
  0%   { transform: rotateY(0deg) translateY(0); }
  50%  { transform: rotateY(540deg) translateY(-16px); }
  100% { transform: rotateY(1080deg) translateY(0); }
}
.yao-bar.yao-empty { background: rgba(207,174,102,0.12); border-radius:2px; }
.yao-row.ich-pending { opacity:0.32; }
.yao-row.ich-reveal { animation: ich-pop 0.32s ease; }
@keyframes ich-pop {
  0%   { transform: scale(0.55); opacity:0; }
  100% { transform: scale(1); opacity:1; }
}

/* 易經擲卦動畫 v0.7.3 — 真·圓形方孔銅錢滾動 */
.ich-coins { perspective: 600px; }
.ich-coin {
  width: 46px; height: 46px; border-radius: 50%; position: relative;
  display: inline-block; font-size: 0 !important;
  background: radial-gradient(circle at 34% 28%, #8a6a2f 0%, #8a6a2f 52%, #8a6a2f 100%);
  box-shadow: 0 3px 8px rgba(59,43,94,0.16), inset 0 0 5px rgba(255,253,246,0.55), inset 0 -3px 6px rgba(120,80,0,0.4);
  animation: ich-roll 0.7s linear infinite;
  transform-style: preserve-3d;
}
.ich-coin::after {                 /* 方孔 */
  content: ''; position: absolute; width: 14px; height: 14px;
  left: 50%; top: 50%; transform: translate(-50%, -50%);
  background: #fffdf6; border-radius: 2px;
  box-shadow: inset 0 0 2px rgba(59,43,94,0.21);
}
@keyframes ich-roll { from { transform: rotateY(0deg); } to { transform: rotateY(360deg); } }
.ich-coin.flip { animation: ich-toss 0.42s cubic-bezier(.4,0,.3,1); }
@keyframes ich-toss {
  0%   { transform: rotateY(0deg)   translateY(0); }
  50%  { transform: rotateY(900deg) translateY(-22px) scale(1.08); }
  100% { transform: rotateY(1800deg) translateY(0); }
}
/* 蓍草：細長金條左右搖曳 */
.ich-stalks .ich-coin {
  width: 7px; height: 44px; border-radius: 4px;
  background: linear-gradient(180deg, #8a6a2f, #8a6a2f 60%, #8a6a2f);
  animation: ich-sway 0.6s ease-in-out infinite alternate;
}
.ich-stalks .ich-coin::after { display: none; }
@keyframes ich-sway { from { transform: rotate(-9deg); } to { transform: rotate(9deg); } }

/* 卦名讀音(注音·拼音) v0.7.4 */
.ich-hex-pron { margin-top:2px; font-size:0.8rem; color:#8a6a2f; letter-spacing:1px; }

/* 問事分類點選器 v0.7.7 */
.ich-cats { display:flex; flex-wrap:wrap; gap:0.5rem; margin-top:0.5rem; }
.ich-catchip { padding:0.5rem 0.9rem; border-radius:20px; cursor:pointer; font-size:0.92rem;
  background:rgba(59,43,94,0.18); color:#3b2b5e; border:1px solid rgba(207,174,102,0.22); }
.ich-catchip:hover { border-color:#8a6a2f; }
.ich-catchip.on { background:#8a6a2f; color:#fffdf6; font-weight:700; border-color:#8a6a2f; }
.ich-cats-subs { margin-top:0.7rem; display:none; }
.ich-subgroup { margin-bottom:0.6rem; }
.ich-subgroup-h { display:block; font-size:0.78rem; color:#5d4a86; margin-bottom:0.35rem; letter-spacing:1px; }
.ich-subrow { display:flex; flex-wrap:wrap; gap:0.4rem; }
.ich-subchip { padding:0.38rem 0.75rem; border-radius:14px; cursor:pointer; font-size:0.86rem;
  background:rgba(59,43,94,0.08); color:#3b2b5e; border:1px solid rgba(207,174,102,0.18); }
.ich-subchip:hover { background:rgba(207,174,102,0.16); border-color:#8a6a2f; }

/* 搜尋優先版型（v0.8.3，Gary 2026-07-01 樣稿確認）：行業/投資選項打字跳候補、暗掛五行 */
.ich-search-wrap { margin-top:0.7rem; }
.ich-search-box { position:relative; margin-bottom:0.6rem; }
.ich-search-box input { width:100%; box-sizing:border-box; padding:0.7rem 0.9rem; font-size:1.02rem;
  border-radius:12px; border:1.5px solid rgba(138,106,47,0.55); background:rgba(59,43,94,0.1); color:#3b2b5e; }
.ich-search-box input::placeholder { color:#9d8fbb; }
.ich-search-box input:focus { outline:none; border-color:#8a6a2f; }
.ich-drop { position:absolute; left:0; right:0; top:calc(100% + 5px); z-index:20; display:none;
  background:#241638; border:1px solid rgba(207,174,102,0.28); border-radius:12px; overflow:hidden;
  box-shadow:0 12px 30px rgba(59,43,94,0.16); }
.ich-drop.show { display:block; }
.ich-opt { display:flex; justify-content:space-between; align-items:center; gap:0.7rem;
  padding:0.6rem 0.85rem; cursor:pointer; border-bottom:1px solid rgba(255,253,246,0.9); }
.ich-opt:last-child { border-bottom:none; }
.ich-opt:hover { background:rgba(207,174,102,0.14); }
.ich-opt-n { font-size:0.98rem; color:#3b2b5e; }
.ich-opt-e { white-space:nowrap; }
.ich-opt-none { padding:0.7rem 0.85rem; font-size:0.9rem; color:#5d4a86; }
.ich-e { display:inline-block; min-width:1.35rem; text-align:center; border-radius:6px;
  padding:1px 6px; margin-left:4px; font-weight:700; font-size:0.85rem; }
.ich-e.wj { background:rgba(133,127,110,0.16); color:#857f6e; }
.ich-e.wm { background:rgba(65,112,79,0.24); color:#8fe89a; }
.ich-e.ws { background:rgba(62,107,149,0.24); color:#8ecbf7; }
.ich-e.wh { background:rgba(176,83,61,0.14); color:#b0533d; }
.ich-e.wt { background:rgba(138,106,68,0.16); color:#8a6a44; }
.ich-picked { margin-top:0.5rem; font-size:0.92rem; color:#8a6a2f; line-height:1.7; }
.ich-picked b { color:#fff; }
/* 口吻開場（重複提問·帶入卦象）v0.8.4 */
.ich-echo { margin:0.2rem 0 0.9rem; padding:0.7rem 0.95rem; border-left:3px solid #8a6a2f;
  background:rgba(207,174,102,0.08); border-radius:8px; font-size:1.05rem; line-height:1.8; color:#2c2536; }
/* 佐證·五行事業方向＋紫微命宮主星行業（發展方向參考）v0.8.4 */
.ich-xref-career { margin-top:0.5rem; font-size:0.98rem; line-height:1.75; color:#3b2b5e; }
.ich-xref-hint { font-size:0.85rem; color:#5d4a86; font-style:italic; }
/* 佐證·雙向五行合適度：問的行業五行 × 命格五行 v0.8.6 */
.ich-relbox { margin-top:0.9rem; padding:0.85rem 1rem; border-radius:10px; background:rgba(59,43,94,0.1); border:1px solid rgba(59,43,94,0.28); }
.ich-rel-h { font-size:1rem; color:#8a6a2f; line-height:1.7; margin-bottom:0.4rem; }
.ich-rel-h b { color:#fff; }
.ich-rel-row { margin-top:0.45rem; padding:0.55rem 0.7rem; border-radius:8px; font-size:0.96rem; line-height:1.7; color:#3b2b5e; border-left:3px solid #3b2b5e; background:rgba(255,253,246,0.9); }
.ich-rel-row b { color:#8a6a2f; white-space:nowrap; }
.ich-rel-ok { border-left-color:#41704f; background:rgba(65,112,79,0.1); }
.ich-rel-mid { border-left-color:#8a6a2f; background:rgba(207,174,102,0.09); }
.ich-rel-warn { border-left-color:#9a5a34; background:rgba(154,90,52,0.1); }

/* ═══ 生命羅盤總覽 Life Compass v0.9.0 ═══ */
.compass-section { margin:1.4rem 0 0.4rem; }
.compass-head { text-align:center; margin-bottom:1rem; }
.compass-head h3 { font-family:"Noto Serif TC",Georgia,serif; font-size:1.5rem; color:#3b2b5e; margin:0 0 0.3rem; letter-spacing:0.02em; }
.compass-sub { font-size:0.9rem; color:#5d4a86; margin:0; }
.compass-grid { display:grid; grid-template-columns:repeat(2, 1fr); gap:0.7rem; }
@media (max-width:640px){ .compass-grid { grid-template-columns:1fr; } }
.compass-card { background:#fffdf6; border:1px solid rgba(44,37,54,0.12); border-radius:14px; padding:0.85rem 1rem; box-shadow:0 1px 6px rgba(59,43,94,0.05); transition:border-color .15s, box-shadow .15s; }
.compass-card.open { border-color:rgba(207,174,102,0.7); box-shadow:0 3px 12px rgba(59,43,94,0.10); }
.cmp-top { display:flex; align-items:center; gap:0.5rem; cursor:pointer; user-select:none; }
.cmp-icon { font-size:1.25rem; }
.cmp-title { flex:1; font-size:1.05rem; font-weight:600; color:#2c2536; font-family:"Noto Serif TC",Georgia,serif; }
.cmp-toggle { font-size:1.15rem; color:#8a6a2f; font-weight:700; line-height:1; }
.cmp-verdict { margin-top:0.5rem; font-size:0.98rem; line-height:1.6; color:#3b2b5e; }
.cmp-detail { margin-top:0.7rem; padding-top:0.7rem; border-top:1px dashed rgba(59,43,94,0.3); }
.cmp-d-tag { font-size:0.92rem; color:#8a6a2f; font-style:italic; margin:0 0 0.5rem; line-height:1.6; }
.cmp-d-star { font-size:0.95rem; color:#3b2b5e; line-height:1.7; margin:0.35rem 0; }
.cmp-d-star b { color:#8a6a2f; }
.cmp-d-shadow { font-size:0.88rem; color:#9a5a34; line-height:1.6; margin:0.15rem 0 0.4rem; }
.cmp-d-line { font-size:0.93rem; color:#2c2536; line-height:1.7; margin:0.4rem 0; }
.cmp-d-line b { color:#8a6a2f; }
.cmp-d-note { font-size:0.84rem; color:#a99bd0; font-style:italic; line-height:1.6; margin:0.4rem 0 0; }
.cmp-src { margin-top:0.6rem; font-size:0.78rem; color:#8f7fc0; text-align:right; letter-spacing:0.03em; }
.cmp-goto-iching { margin-top:0.7rem; }
.compass-disc { text-align:center; font-size:0.85rem; color:#9d8fc7; font-style:italic; margin:1rem 0 0; line-height:1.6; }
/* 個人化細膩層 v0.9.2：專屬命格重點 + 每卡四化/廟旺/煞星加成 */
.compass-personal { margin:0 auto 1rem; max-width:100%; padding:0.85rem 1.1rem; border-radius:12px; background:rgba(207,174,102,0.07); border:1px solid rgba(207,174,102,0.28); }
.cmp-p-h { font-size:1.05rem; color:#8a6a2f; font-weight:600; margin-bottom:0.5rem; }
.cmp-d-modbox { margin-top:0.7rem; padding-top:0.6rem; border-top:1px dashed rgba(59,43,94,0.3); }
.cmp-d-modh { font-size:0.85rem; color:#8a6a2f; font-weight:600; margin-bottom:0.35rem; letter-spacing:0.02em; }
.cmp-d-mod { font-size:0.92rem; line-height:1.65; margin:0.3rem 0; padding-left:0.2rem; border-left:2px solid #3b2b5e; padding:0.15rem 0 0.15rem 0.55rem; }
.cmp-ok { color:#41704f; border-left-color:#41704f; }
.cmp-mid { color:#a8842c; border-left-color:#8a6a2f; }
.cmp-warn { color:#9a5a34; border-left-color:#9a5a34; }

/* 易經頁字體加大 v0.8.1（Gary 2026-06-30：方便閱讀）*/
.section-iching .section-subtitle { font-size: 1.08rem; line-height: 1.9; }
.section-iching #iching-intro { font-size: 1.08rem; }
.ich-cats-label, .ich-method-title, #iching-cats-label { font-size: 1.02rem; }
.ich-catchip { font-size: 1.04rem; padding: 0.6rem 1.05rem; }
.ich-subchip { font-size: 0.98rem; padding: 0.45rem 0.85rem; }
.ich-subgroup-h { font-size: 0.9rem; }
#iching-question { font-size: 1.1rem; }
.ich-method-group label { font-size: 1.02rem; }
#iching-cast-btn { font-size: 1.12rem; }
.ich-q { font-size: 1.08rem; }
.ich-judge { font-size: 1.04rem; line-height: 1.85; }
.ich-layer-h { font-size: 0.95rem; }
.ich-layer-b { font-size: 1.12rem; line-height: 2.05; }
.ich-src .ich-layer-b { font-size: 1.18rem; }
.ich-gu .ich-layer-b { font-size: 1.04rem; line-height: 1.95; }
.ich-hex-name { font-size: 1.4rem; }
.ich-hex-pron { font-size: 0.92rem; }
.ich-disc { font-size: 0.9rem; }
.ich-rule45 { font-size: 0.92rem; }

/* 易經 生辰佐證（四柱+紫微） v0.8.2 */
.ich-birth-row { margin-top: 0.3rem; }
.ich-birth-toggle { background: transparent; border: 1px dashed rgba(207,174,102,0.4); color: #8a6a2f;
  padding: 0.5rem 0.9rem; border-radius: 10px; cursor: pointer; font-size: 0.98rem; width: 100%; text-align: left; }
.ich-birth-toggle:hover { background: rgba(207,174,102,0.08); }
.ich-birth-fields { margin-top: 0.7rem; padding: 0.9rem; background: rgba(59,43,94,0.07); border-radius: 10px; }
.ich-birth-grid { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; margin-top: 0.5rem; }
.ich-birth-grid input, .ich-birth-grid select { padding: 0.5rem 0.6rem; border-radius: 8px;
  border: 1px solid rgba(207,174,102,0.3); background: rgba(59,43,94,0.1); color: #2c2536; font-size: 1rem; }
.ich-birth-grid #ich-birth-year { width: 86px; }
.ich-gender-group label { margin-right: 0.8rem; font-size: 1rem; }

.ich-xref { margin-top: 1.4rem; padding: 1.1rem 1.2rem; border-radius: 14px;
  background: rgba(62,107,149,0.14); border: 1px solid rgba(120,160,255,0.3); }
.ich-xref-h { font-size: 1.04rem; font-weight: 700; color: #aec2ff; letter-spacing: 1px; margin-bottom: 0.4rem; }
.ich-xref-note { font-size: 0.92rem; color: #c9d6ff; line-height: 1.75; margin: 0 0 0.9rem; }
.ich-xref-sub { font-size: 0.9rem; color: #3e6b95; margin-bottom: 0.45rem; }
.ich-pillars { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.ich-pillar { flex: 1; min-width: 64px; text-align: center; padding: 0.6rem 0.3rem;
  background: rgba(59,43,94,0.09); border-radius: 10px; }
.ich-pillar-h { font-size: 0.8rem; color: #3e6b95; margin-bottom: 0.3rem; }
.ich-pillar-v { font-size: 1.25rem; font-weight: 700; color: #fff; font-family: "Noto Serif TC", Georgia, serif; }
.ich-xref-dm { margin-top: 0.9rem; font-size: 1.08rem; color: #3b2b5e; }
.ich-xref-dm b { color: #8a6a2f; }
.ich-see-ziwei { display: block; width: 100%; margin-top: 1rem; }
.ich-clear-birth { display: block; width: 100%; margin-top: 0.6rem; background: transparent;
  border: none; color: #3e6b95; text-decoration: underline; cursor: pointer; font-size: 0.88rem; }


/* ═══════ 宣紙月白 v0.10.1 — 版型元件（照 Design 04 設計系統） ═══════ */
.app-header { padding: 0.9rem 1.25rem; align-items: center; background: #fffdf6;
  border-bottom: 1px solid rgba(44,37,54,0.10); backdrop-filter: none; }
.brand { display: flex; align-items: center; gap: 0.7rem; }
.brand-tile { width: 40px; height: 40px; border-radius: 10px; display: block; }
.brand-stack { display: flex; flex-direction: column; gap: 0.1rem; }
.brand-name { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 1.3rem;
  font-weight: 600; letter-spacing: 0.3em; color: #3b2b5e; }
.brand-placeholder { font-size: 0.68rem; letter-spacing: 0.35em; color: rgba(44,37,54,0.55); }

.landing-hero { padding-top: 2.2rem; }
.hero-kicker { text-align: center; font-size: 0.72rem; letter-spacing: 0.35em;
  color: #8a6a2f; margin-bottom: 1.1rem; }
.hero-claim { font-family: "Noto Serif TC", Georgia, serif; font-weight: 700;
  font-size: 1.65rem; line-height: 1.55; color: #3b2b5e; text-align: center;
  max-width: 34rem; margin: 0 auto 0.9rem; }
.hero-sub { text-align: center; font-size: 0.95rem; line-height: 1.9;
  color: rgba(44,37,54,0.72); max-width: 30rem; margin: 0 auto 1.4rem; }
.hero-ctas { display: flex; gap: 0.7rem; justify-content: center; flex-wrap: wrap; margin-bottom: 0.9rem; }
.hero-cta { margin-top: 0; }
.btn-ghost { background: transparent; color: #3b2b5e; border: 1.5px solid rgba(59,43,94,0.35);
  border-radius: 14px; padding: 0.85rem 1.4rem; font-size: 1rem; cursor: pointer;
  font-family: inherit; transition: background 0.2s ease; }
.btn-ghost:hover { background: rgba(59,43,94,0.06); }
.privacy-pill { display: table; margin: 0 auto 1.6rem; font-size: 0.8rem; color: #41704f;
  background: rgba(65,112,79,0.07); border: 1px solid rgba(65,112,79,0.22);
  border-radius: 999px; padding: 0.45rem 1.1rem; }
.privacy-pill::before { content: '● '; font-size: 0.6rem; vertical-align: 1px; }

.sec-title { font-family: "Noto Serif TC", Georgia, serif; font-weight: 600;
  font-size: 1.1rem; letter-spacing: 0.25em; color: #2c2536; text-align: left;
  border-left: 4px solid #cfae66; padding-left: 0.7rem; margin: 0 0 1rem; }

.mirror-list { display: flex; flex-direction: column; gap: 0.8rem; text-align: left; }
.mr-card.is-live { display: flex; align-items: center; gap: 0.9rem; background: #fffdf6;
  border: 1px solid rgba(44,37,54,0.10); border-radius: 16px; padding: 1rem 1.1rem;
  cursor: pointer; box-shadow: 0 1px 6px rgba(59,43,94,0.05); transition: box-shadow .2s ease; }
.mr-card.is-live:hover { box-shadow: 0 3px 12px rgba(59,43,94,0.12); }
.mr-tile { width: 46px; height: 46px; border-radius: 12px; flex: none;
  display: flex; align-items: center; justify-content: center; }
.mr-tile img { width: 26px; height: 26px; }
.mr-body { flex: 1; min-width: 0; }
.mr-name { display: block; font-family: "Noto Serif TC", Georgia, serif; font-weight: 700;
  font-size: 1.05rem; color: #2c2536; }
.mr-tag { font-style: normal; font-family: "Noto Sans TC", sans-serif; font-weight: 400;
  font-size: 0.68rem; letter-spacing: 0.22em; color: rgba(44,37,54,0.45); margin-left: 0.4rem; }
.mr-desc { display: block; font-size: 0.85rem; color: rgba(44,37,54,0.65); margin-top: 0.15rem; }
.mr-open { flex: none; font-size: 0.75rem; color: #41704f; background: rgba(65,112,79,0.10);
  border-radius: 999px; padding: 0.25rem 0.75rem; }
.mr-soon-row { display: flex; gap: 0.7rem; }
.mr-card.is-soon { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 0.3rem;
  border: 1.5px dashed rgba(44,37,54,0.22); border-radius: 14px; padding: 0.9rem 0.4rem;
  background: transparent; }
.mr-line { width: 20px; height: 20px; opacity: 0.6; }
.mr-sname { font-family: "Noto Serif TC", Georgia, serif; font-size: 0.95rem; color: rgba(44,37,54,0.6); }
.mr-soon { font-size: 0.6rem; letter-spacing: 0.18em; color: rgba(44,37,54,0.4); }
@media (min-width: 720px) {
  .hero-claim { font-size: 2.2rem; }
  .mirror-list { max-width: 34rem; margin: 0 auto; }
}


/* ═══════ v0.10.2 — Phase C：表單 chips＋易經三層章印 ═══════ */
.visually-hidden-select { position: absolute !important; width: 1px; height: 1px;
  opacity: 0; pointer-events: none; margin: 0; padding: 0; border: 0; }
.hour-chips { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.55rem; }
.hour-chip { font-family: inherit; font-size: 0.9rem; padding: 0.65rem 0.2rem;
  background: #fffdf6; color: #2c2536; border: 1px solid rgba(44,37,54,0.18);
  border-radius: 10px; cursor: pointer; text-align: center; transition: all .15s ease; }
.hour-chip span { font-size: 0.75rem; color: rgba(44,37,54,0.5); }
.hour-chip:hover { border-color: rgba(59,43,94,0.45); }
.hour-chip.active { background: #3b2b5e; color: #fff; border-color: #3b2b5e; }
.hour-chip.active span { color: rgba(255,255,255,0.75); }
@media (min-width: 720px) { .hour-chips { grid-template-columns: repeat(6, 1fr); } }

.gender-toggle { display: flex; gap: 0.7rem; }
.gender-toggle label { flex: 1; text-align: center; padding: 0.8rem 0;
  background: #fffdf6; border: 1px solid rgba(44,37,54,0.18); border-radius: 12px;
  cursor: pointer; transition: all .15s ease; font-size: 1rem; }
.gender-toggle label.active { background: #3b2b5e; border-color: #3b2b5e; }
.gender-toggle label.active span { color: #fff; }
.gender-toggle input { position: absolute; opacity: 0; pointer-events: none; }

/* 易經三層：章印式層標（一 原文 / 二 古文 / 三 白話，照 Design 2d） */
.ich-layer { border: 1px solid rgba(44,37,54,0.12); border-radius: 14px;
  overflow: hidden; margin: 0.9rem 0; background: #fffdf6; }
.ich-layer-h { display: flex; align-items: center; gap: 0.55rem;
  padding: 0.6rem 0.9rem; font-size: 0.92rem; font-weight: 600; color: #2c2536;
  background: rgba(207,174,102,0.10); border-bottom: 1px solid rgba(44,37,54,0.08); }
.ich-layer-h::before { content: '一'; flex: none; width: 24px; height: 24px;
  display: flex; align-items: center; justify-content: center; border-radius: 7px;
  background: #8a6a2f; color: #fdf9ec; font-size: 0.8rem;
  font-family: "Noto Serif TC", Georgia, serif; }
.ich-gu .ich-layer-h::before { content: '二'; background: rgba(44,37,54,0.35); }
.ich-plain .ich-layer-h::before { content: '三'; background: #3b2b5e; }
.ich-plain { border-color: rgba(59,43,94,0.35); }
.ich-layer-b { padding: 0.9rem 1rem; }

.cmp-svg { width: 20px; height: 20px; vertical-align: -4px; }

.ich-gu .ich-layer-b { color: rgba(44,37,54,0.78); }
.ich-gu .ich-layer-b * { color: inherit; }

/* ═══ v0.11.0 · 問事12類＋多選比較（Design 06-1）＋金印徽章 ═══ */
/* 預設問題清單（直列，較長句） */
.ich-qlist { display:flex; flex-direction:column; gap:0.4rem; align-items:flex-start; }
.ich-qchip { text-align:left; line-height:1.5; }
.ich-qmark { display:inline-block; margin-left:0.5rem; padding:0.06rem 0.4rem; border-radius:8px;
  font-size:0.7rem; font-weight:700; letter-spacing:0.5px; background:#3b2b5e; color:#fffdf6; vertical-align:1px; }
.ich-guide { background:rgba(207,174,102,0.08); border:1px solid rgba(207,174,102,0.25);
  border-radius:12px; padding:0.7rem 0.9rem; }
.ich-guide p { margin:0.15rem 0; font-size:0.88rem; color:rgba(44,37,54,0.78); line-height:1.7; }
/* 模式切換與選項欄 */
.ich-mode { display:flex; gap:0.5rem; }
.ich-options { }
.ich-optrow { display:flex; align-items:center; gap:0.55rem; margin:0.4rem 0; }
.ich-opttag { flex:none; width:1.5rem; height:1.5rem; border-radius:8px; background:#3b2b5e; color:#fffdf6;
  display:inline-flex; align-items:center; justify-content:center; font-weight:700; font-size:0.8rem; }
.ich-optrow input { flex:1; padding:0.6rem 0.8rem; font-size:1rem; border-radius:12px;
  border:1.5px solid rgba(138,106,47,0.4); background:#fffdf6; color:#2c2536; }
.ich-optrow input:focus { outline:none; border-color:#3b2b5e; }
/* 比較結果：欄卡並照 */
.ich-mtitle { font-family:'Noto Serif TC', serif; font-weight:700; font-size:1.15rem; color:#3b2b5e;
  margin:0.4rem 0 0.6rem; }
.ich-multi { display:grid; grid-template-columns:1fr; gap:0.8rem; margin:0.6rem 0; }
@media (min-width: 860px) { .ich-multi { grid-template-columns:repeat(auto-fit, minmax(230px, 1fr)); } }
.ich-mcol { background:#fffdf6; border:1px solid rgba(207,174,102,0.3); border-radius:14px;
  padding:0.9rem 1rem; box-shadow:0 1px 6px rgba(59,43,94,0.05); }
.ich-mcol .hex-visual { margin:0.5rem auto; }
.ich-mopt { display:flex; align-items:center; gap:0.5rem; font-weight:600; color:#2c2536;
  font-size:0.95rem; line-height:1.4; margin-bottom:0.3rem; }
.ich-mzhi { font-size:0.85em; color:rgba(44,37,54,0.6); font-weight:400; }
.ich-mjudge { font-size:0.8rem; }
.ich-mplain { font-size:0.88rem; line-height:2.0; color:rgba(44,37,54,0.85); }
.ich-mplain p { margin:0.4rem 0; }
/* 並讀（黛紫左槓＝結論層卡，同設計系統） */
.ich-combined { border-left:3px solid #3b2b5e; background:rgba(59,43,94,0.05);
  border-radius:0 12px 12px 0; padding:0.8rem 1rem; margin:0.8rem 0; }
.ich-combined p { font-size:0.92rem; line-height:2.0; color:rgba(44,37,54,0.88); margin:0.3rem 0 0; }
.ich-mopt-wx { display:flex; align-items:center; gap:0.5rem; margin:0.6rem 0 0.2rem; font-size:0.9rem; }
/* 金印主星徽章（3a 定稿） */
.star-seal { display:block; }
.today-star-seal { width:auto; height:auto; }
.today-star-seal svg { display:block; margin:0 auto; }
.chart-title-wrap { display:flex; align-items:center; justify-content:center; gap:0.9rem; text-align:left; }
.chart-title-seal { flex:none; }
@media (max-width: 480px) {
  .chart-title-wrap { flex-direction:column; gap:0.5rem; text-align:center; }
}


/* ═══ v0.12.0 · 6a 易經升第一工具（Design 07）═══ */
.mr-card.is-featured{
  border:1.5px solid rgba(207,174,102,.8);
  background:linear-gradient(180deg,#fffdf6 0%,#fdf8ec 100%);
  box-shadow:0 10px 26px rgba(59,43,94,.10);
  padding-top:22px;padding-bottom:22px;
  position:relative;overflow:hidden;
}
.mr-card.is-featured::before{
  content:"";position:absolute;top:0;left:0;right:0;height:3px;
  background:linear-gradient(90deg,rgba(207,174,102,0) 0%,#cfae66 50%,rgba(207,174,102,0) 100%);
}
.mr-card.is-featured .mr-name{font-size:1.18em}
.mr-go{
  flex:0 0 auto;margin-left:10px;padding:9px 16px;border-radius:999px;
  background:#8a6a2f;color:#fffdf6;font-size:.86em;font-weight:600;
  letter-spacing:.04em;white-space:nowrap;
}
@media (max-width:480px){
  .mr-card.is-featured{flex-wrap:wrap}
  .mr-go{margin-left:56px;margin-top:8px}
}

/* ═══ v0.13.0 · 安居方位免責語（Design 08·7d/7f）═══ */
.ich-geo-disc{
  margin:10px 0 4px;padding:8px 12px;border-left:3px solid #8a6a2f;
  background:rgba(138,106,47,.07);border-radius:0 8px 8px 0;
  font-size:.82em;line-height:1.8;color:#8a6a2f;
}

/* ═══ v0.14.0 日柱本命卡（個人錨點,樣稿v1核准版型）═══ */
.dp-card{border-color:#cfae66 !important;box-shadow:0 3px 12px rgba(59,43,94,.10);}
.dp-card .cmp-title{letter-spacing:.18em;color:#8a6a2f;font-size:.82rem;}
.dp-row{display:flex;align-items:center;gap:14px;margin:2px 0 4px;}
.dp-name{font-family:"Noto Serif TC","Songti TC",serif;font-size:2.1rem;font-weight:700;color:#3b2b5e;letter-spacing:.08em;}
.dp-seal{width:56px;height:56px;border-radius:12px;background:#3b2b5e;color:#f7f2e7;display:flex;flex-direction:column;align-items:center;justify-content:center;font-family:"Noto Serif TC",serif;line-height:1.15;flex:none;}
.dp-seal b{font-size:.86rem;}
.dp-seal i{font-style:normal;font-size:.6rem;color:#cfae66;}
.dp-oneline{font-size:.95rem;line-height:1.75;color:#2c2536;}
.dp-sec{background:#fffdf6;border:1px solid #e8e0cf;border-radius:10px;padding:10px 12px;margin-top:10px;}
.dp-sec-h{display:flex;align-items:center;justify-content:space-between;margin-bottom:6px;}
.dp-sec-h>span{font-family:"Noto Serif TC",serif;font-size:.92rem;font-weight:700;color:#3b2b5e;}
.dp-sec-h>span::before{content:"";display:inline-block;width:3px;height:12px;background:#cfae66;margin-right:7px;vertical-align:-1px;}
.dp-sec p{font-size:.88rem;line-height:1.8;margin:0 0 4px;}
.dp-tag{font-size:.62rem;font-style:normal;padding:2px 8px;border-radius:99px;border:1px solid;letter-spacing:.1em;flex:none;}
.dp-tag-c{color:#8a6a2f;border-color:#cfae66;}
.dp-tag-t{color:#3e6b95;border-color:#9db8cf;}
.dp-tag-b{color:#9a5a34;border-color:#d8b193;}
.dp-tag-s{color:#8a6a2f;border-color:#cfae66;border-style:dashed;}
.dp-duo{display:flex;gap:8px;}
.dp-duo>div{flex:1;background:#f7f2e7;border-radius:8px;padding:8px 10px;font-size:.82rem;line-height:1.7;}
.dp-duo b{display:block;color:#3b2b5e;font-size:.74rem;margin-bottom:2px;}
.dp-note{font-size:.72rem;color:#8a8494;}
.dp-star{font-weight:700;color:#3b2b5e;}
.dp-soon{opacity:.62;}
@media (max-width:430px){.dp-duo{flex-direction:column;}.dp-name{font-size:1.8rem;}}

/* ═══ v0.15.0 今日指引卡（P1,五鏡之上）＋今日背景帶（P2）＋今字印（P3）＋手機4修 ═══ */
.dg-card{background:#fffdf6;border:1px solid #cfae66;border-radius:14px;padding:16px 16px 12px;margin:20px 0 6px;box-shadow:0 2px 10px rgba(59,43,94,.08);text-align:left;}
.dg-kicker{font-size:.72rem;letter-spacing:.32em;color:#8a6a2f;margin-bottom:10px;}
.dg-head{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-bottom:10px;}
.dg-date{font-family:'Noto Serif TC',serif;font-size:1.05rem;font-weight:700;color:#3b2b5e;}
.dg-gz{font-family:'Noto Serif TC',serif;font-weight:700;color:#2c2536;border-left:3px solid;padding-left:8px;}
.dg-chip{font-size:.74rem;color:#6b6b66;border:1px solid #e3dbc8;border-radius:99px;padding:2px 10px;}
.dg-sec{background:#f7f2e7;border-radius:10px;padding:10px 12px;margin:8px 0;}
.dg-sec-h{font-family:'Noto Serif TC',serif;font-size:.9rem;font-weight:700;color:#3b2b5e;margin-bottom:4px;display:flex;justify-content:space-between;align-items:center;gap:8px;flex-wrap:wrap;}
.dg-priv{font-style:normal;font-size:.68rem;color:#8fbf9a;font-weight:400;}
.dg-sec p{font-size:.9rem;line-height:1.8;margin:0 0 4px;color:#2c2536;}
.dg-tag{font-style:normal;font-size:.66rem;color:#9a5a34;border:1px solid #d8b193;border-radius:99px;padding:1px 7px;vertical-align:1px;}
.dg-invite{font-size:.88rem;color:#3b2b5e;cursor:pointer;text-decoration:underline;text-underline-offset:3px;margin:6px 0;}
.dg-foot{font-size:.72rem;color:#41704f;border-top:1px dashed #e3dbc8;padding-top:8px;margin-top:6px;text-align:center;}
.ich-today-band{font-size:.82rem;color:#2c2536;background:#f7f2e7;border:1px solid #e3dbc8;border-radius:10px;padding:8px 12px;margin:10px 0 14px;display:flex;align-items:center;gap:8px;flex-wrap:wrap;}
.ich-today-band em{font-style:normal;color:#8a8494;font-size:.74rem;}
.dg-band-dot{width:9px;height:9px;border-radius:50%;flex:none;}
.ich-qtoday{display:inline-flex;align-items:center;justify-content:center;width:18px;height:18px;border-radius:5px;background:#3b2b5e;color:#f7f2e7;font-family:'Noto Serif TC',serif;font-size:.68rem;font-weight:900;margin-right:6px;flex:none;}
.ich-qchip.is-today{border-color:#cfae66;}

/* 手機4修（09 稿 8a）：①起卦方式上下堆疊橫書 ②按鈕單行 ③chips 雙欄 ④標題不斷英文字 */
.ich-method-group{display:flex;flex-direction:column;gap:8px;}
.ich-method-group label{display:flex;align-items:center;gap:10px;width:100%;min-height:44px;padding:8px 12px;border:1px solid #e3dbc8;border-radius:10px;background:#fffdf6;writing-mode:horizontal-tb;cursor:pointer;}
.ich-method-group label span{white-space:normal;line-height:1.5;}
#iching-cast-btn{white-space:nowrap;}
.section-title{word-break:keep-all;overflow-wrap:normal;}
.ttl-en{white-space:nowrap;}
@media (max-width:430px){
  .ich-cats{display:grid;grid-template-columns:1fr 1fr;gap:8px;}
  .ich-cats .ich-catchip{width:100%;}
  .dg-head{gap:6px;}
}

/* ═══════════ v0.16.0 品牌形象接合輪（10-1 定稿）═══════════ */
/* 首屏 */
.hero-claim-one{font-size:1.35rem;letter-spacing:.06em;white-space:nowrap}
@media (min-width:768px){.hero-claim-one{font-size:2rem}}
.mirror-pills{font-size:.8rem;letter-spacing:.18em;color:rgba(44,37,54,.55);margin:6px 0 18px}
/* 今日印卡＝全站唯一深底（深底配額規範:印卡/章印/佐證四柱牌三處） */
.dg-card.dg-seal{background:#241a41;border:1.5px solid rgba(207,174,102,.55);border-radius:18px;
  box-shadow:0 10px 28px rgba(36,26,65,.28),inset 0 0 0 3px rgba(207,174,102,.16);
  color:#efe9dc;padding:16px 16px 12px;position:relative}
.dgs-top{display:flex;justify-content:space-between;align-items:baseline;margin-bottom:10px}
.dgs-kick{font-family:'Cormorant Garamond',serif;letter-spacing:.28em;font-size:.72rem;color:#cfae66}
.dgs-date{font-family:'Noto Serif TC',serif;font-size:.85rem;color:rgba(239,233,220,.85)}
.dgs-main{display:flex;gap:14px;align-items:center;margin-bottom:12px}
.dgs-gzseal{flex:0 0 auto;width:64px;height:64px;border-radius:14px;background:#1b1330;
  border:1px solid rgba(207,174,102,.5);box-shadow:inset 0 0 0 3px rgba(207,174,102,.18);
  display:flex;align-items:center;justify-content:center;font-family:'Noto Serif TC',serif;
  font-weight:900;font-size:1.5rem;letter-spacing:.08em;color:#cfae66;writing-mode:vertical-rl}
.dgs-gzline{font-family:'Noto Serif TC',serif;font-weight:700;font-size:1.25rem;color:#fffdf6}
.dgs-elem{font-size:.85rem;color:rgba(239,233,220,.85);margin-top:2px}
.dgs-elem i{display:inline-block;width:9px;height:9px;border-radius:50%;margin-right:6px;vertical-align:baseline}
.dgs-mood{font-size:.85rem;color:rgba(239,233,220,.75);margin-top:4px;line-height:1.7}
.dgs-mood b{color:#cfae66;font-weight:700}
.dgs-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:8px;margin-bottom:10px}
@media (min-width:768px){.dgs-grid{grid-template-columns:repeat(4,1fr)}}
.dgs-cell{background:rgba(255,253,246,.05);border:1px solid rgba(207,174,102,.28);border-radius:10px;
  padding:8px 10px;min-height:52px}
.dgs-cell label{display:block;font-size:.68rem;letter-spacing:.14em;color:rgba(207,174,102,.85);margin-bottom:3px}
.dgs-cell b{font-family:'Noto Serif TC',serif;font-size:1rem;color:#fffdf6;font-weight:700}
.dgs-cell .dgs-soon{font-size:.78rem;color:rgba(239,233,220,.5);font-weight:400;border:1px dashed rgba(207,174,102,.4);
  border-radius:6px;padding:1px 7px}
.dgs-tarot{border-style:dashed}
.dgs-zo{width:18px;height:18px;vertical-align:-3px;margin-right:5px}
.dg-seal .dg-sec{border-top:1px solid rgba(207,174,102,.22);padding-top:10px;margin-top:2px}
.dg-seal .dg-sec p,.dg-seal .dg-sec-h{color:rgba(239,233,220,.85)}
.dg-seal .dg-sec b{color:#cfae66}
.dg-seal .dg-invite{color:#cfae66;cursor:pointer;font-size:.9rem;margin:6px 0 2px}
.dgs-foot{display:flex;justify-content:space-between;align-items:center;margin-top:8px;
  border-top:1px solid rgba(207,174,102,.22);padding-top:8px}
.dgs-foot span{font-size:.72rem;letter-spacing:.08em;color:rgba(239,233,220,.6)}
.dgs-share{background:rgba(207,174,102,.12);border:1px solid rgba(207,174,102,.5);color:#cfae66;
  border-radius:999px;padding:4px 14px;font-size:.78rem;cursor:pointer;font-family:inherit}
.dgs-share:hover{background:rgba(207,174,102,.22)}
/* 生辰 CTA 卡：金框實底＋呼吸動效（只跑兩次） */
.home-cta{background:#fffdf6;border:1.5px solid #8a6a2f;border-radius:16px;padding:18px 16px;
  margin:14px 0 6px;box-shadow:0 3px 14px rgba(138,106,47,.1);animation:qtBreath 2.4s ease-in-out 3s 2}
@keyframes qtBreath{0%,100%{box-shadow:0 3px 14px rgba(138,106,47,.1)}50%{box-shadow:0 0 0 6px rgba(207,174,102,.25)}}
.home-cta-t{font-family:'Noto Serif TC',serif;font-size:1.05rem;color:#2c2536;margin:0 0 4px;font-weight:700}
.home-cta-sub{font-size:.85rem;color:rgba(44,37,54,.7);margin:0 0 12px;line-height:1.8}
.home-cta .privacy-pill{margin-top:10px}
/* 說明摺疊 */
.about-fold{margin:16px 0;border:1px solid rgba(59,43,94,.12);border-radius:12px;padding:10px 14px;background:#fffdf6}
.about-fold summary{font-family:'Noto Serif TC',serif;font-size:.92rem;color:#3b2b5e;cursor:pointer}
.about-fold p{font-size:.85rem;color:rgba(44,37,54,.7);line-height:2;margin:8px 0 2px}
/* 章印/SVG 圖示（emoji 清零替換件） */
.zi-svg{width:20px;height:20px;vertical-align:middle}
.hour-energy-emoji .zi-svg{width:26px;height:26px}
.wx-seal{display:inline-flex;align-items:center;justify-content:center;width:18px;height:18px;border-radius:5px;
  color:#efe9dc;font-family:'Noto Serif TC',serif;font-size:.72rem;font-weight:700}
.wx-seal-navy{background:#3b2b5e}
.palace-seal{display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;border-radius:9px;
  background:#241a41;color:#cfae66;font-family:'Noto Serif TC',serif;font-weight:900;font-size:1.05rem;
  box-shadow:inset 0 0 0 2px rgba(207,174,102,.2)}

/* ═══════════════════════════════════════════════════════════════
   v0.17.0 — UI 美學優化輪（Design R11 十三項 + R12 印卡定稿）
   A 版面裂縫 / B 閱讀與層級 / C 節奏·按鈕·導覽 / C2 印卡 2大2小
   ═══════════════════════════════════════════════════════════════ */

/* ── A1 生辰輸入頁大標：限寬＋縮放字級＋語意斷行（兩行比裁切好）── */
.section-input .section-title{
  max-width:24ch;margin-left:auto;margin-right:auto;padding-inline:24px;
  font-size:clamp(1.3rem,3.4vw,1.75rem);line-height:1.6;
  text-wrap:balance;word-break:normal;overflow-wrap:break-word;}
:lang(en) .section-input .section-title{max-width:30ch;}

/* ── A2＋B1 生命羅盤：展開卡佔滿整寬，長文回單欄行長 ── */
.compass-card.open{grid-column:1/-1;}
.compass-card .cmp-detail{max-width:34em;}
.compass-card .cmp-detail p{text-align:start;}

/* ── B2 三行以上敘述左對齊（標題與單句引語維持置中）── */
.reading-display p,.palace-detail p,.iching-result p,
.compass-personal p,.dp-oneline,.disclaimer{text-align:start;}

/* ── B3 卡中卡收斂：日柱卡內層小卡去框去底，改金色左標線（全站深淺限 2 階）── */
.dp-sec{background:none;border:none;border-left:3px solid rgba(207,174,102,.55);
  border-radius:0;padding:2px 0 2px 12px;margin-top:12px;}

/* ── B4 十二宮盤：每格三段式＝宮名(頂)/主星(中)/地支(右下) ── */
.palace-cell:not(.is-center){display:grid;grid-template-rows:auto 1fr auto;justify-items:center;}
.palace-cell:not(.is-center) .palace-stars{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:2px;}
.palace-cell:not(.is-center) .palace-branch{justify-self:end;align-self:end;}
.palace-cell .palace-empty-note{font-size:.7rem;opacity:.55;}

/* ── B5 中英混排：漢字＋拼音＋英譯包成不拆行單元 ── */
.nwr{white-space:nowrap;}
.dp-seal{white-space:nowrap;}

/* ── B6 語意色收斂：狀態籤一律無彩灰＋外框（語意色只留 助力綠/留心磚紅/中性灰紫）── */
.mr-open{color:rgba(44,37,54,.55);background:none;border:1px solid rgba(44,37,54,.25);}

/* ── C1 垂直留白收斂 8pt 階（8/16/24/40/72），首屏更緊 ── */
.dg-card.dg-seal{margin:16px 0 0;}
.home-cta{margin:24px 0 0;}
.five-mirrors{margin-top:40px;}
.about-fold,.today-star-card,.hour-energy-card,.landing-cta{margin-top:24px;}
.feedback-wall,.message-wall{margin-top:40px;}

/* ── C3 按鈕三型統一：主=實底膠囊／次=金框膠囊／文字鏈=金底線 ── */
.btn-ghost{border:1px solid #8a6a2f;color:#8a6a2f;border-radius:999px;}
.btn-ghost:hover{background:rgba(207,174,102,.1);}
a{text-underline-offset:2px;}

/* ── C4 返回鈕：靠左、貼頁首下緣 sticky，不再懸在畫面正中 ── */
.section .btn-back{display:block;width:max-content;margin:0 0 12px;
  position:sticky;top:10px;z-index:6;text-align:left;}

/* ── C2 印卡 2大2小（R12 定稿）：深底 #2a1b46＋1px/20% 金內框 ── */
.dg-card.dg-seal{background:#2a1b46;position:relative;}
.dg-card.dg-seal::after{content:'';position:absolute;inset:5px;
  border:1px solid rgba(207,174,102,.2);border-radius:14px;pointer-events:none;}
.dgs-bigs{display:grid;grid-template-columns:minmax(0,1fr);gap:10px;margin-bottom:10px;}
@media(min-width:768px){.dgs-bigs{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px;}}
.dgs-big{background:rgba(239,233,220,.05);border:1px solid rgba(207,174,102,.22);
  border-radius:14px;padding:14px 16px;min-width:0;}
.dgs-big .dgs-info{min-width:0;}
.dgs-big-sub .nwr{white-space:normal;}
.dgs-big-k{font-size:.66rem;letter-spacing:.22em;color:rgba(207,174,102,.8);margin-bottom:10px;}
.dgs-big-row{display:flex;align-items:center;gap:14px;}
.dgs-gzseal{flex:0 0 auto;width:84px;height:84px;border-radius:10px;
  background:rgba(207,174,102,.07);border:2px solid rgba(207,174,102,.55);
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  writing-mode:horizontal-tb;font-family:'Noto Serif TC',serif;font-weight:700;
  font-size:1.7rem;line-height:1.08;color:#cfae66;text-align:center;box-shadow:none;}
.dgs-suimgbox{flex:0 0 auto;width:84px;height:84px;border-radius:10px;display:grid;place-items:center;
  background:radial-gradient(circle at 50% 45%,rgba(207,174,102,.14),transparent 70%);}
.dgs-suimgbox img{width:64px;height:64px;}
.dgs-big-name{font-family:'Noto Serif TC',serif;font-size:1.15rem;font-weight:600;color:#efe9dc;}
.dgs-big-sub{font-size:.8rem;line-height:1.85;color:rgba(239,233,220,.72);margin-top:4px;}
.dgs-tg-chip{display:inline-flex;align-items:center;gap:7px;border:1px solid rgba(94,143,109,.55);
  border-radius:20px;padding:3px 11px;font-size:.78rem;color:#9ec9a9;margin-top:8px;}
.dgs-tg-chip i{width:4px;height:4px;border-radius:50%;background:#9ec9a9;flex:none;}
.dgs-big-note{font-size:.7rem;color:rgba(239,233,220,.45);margin-top:8px;}
.dgs-minis{display:grid;grid-template-columns:1fr;gap:8px;margin-bottom:10px;}
@media(min-width:768px){.dgs-minis{grid-template-columns:repeat(3,1fr);}}
.dgs-mini{background:rgba(239,233,220,.03);border:1px solid rgba(239,233,220,.13);
  border-radius:11px;padding:10px 13px;display:flex;align-items:center;gap:11px;}
.dgs-mini label{display:block;font-size:.62rem;letter-spacing:.16em;color:rgba(207,174,102,.7);margin:0 0 2px;}
.dgs-mini b{font-family:'Noto Serif TC',serif;font-size:.9rem;color:#efe9dc;font-weight:600;}
.dgs-mini .dgs-soon{font-size:.75rem;color:rgba(239,233,220,.55);font-weight:400;
  border:1px dashed rgba(239,233,220,.3);border-radius:6px;padding:1px 7px;}
.dgs-mini .dgs-zo{width:22px;height:22px;flex:none;margin:0;opacity:.85;}
.dgs-tarotph{flex:none;width:22px;height:28px;border:1px dashed rgba(239,233,220,.3);border-radius:3px;}
.dgs-mainstar-ic{flex:none;width:22px;height:22px;opacity:.4;}
.dgs-datebox{text-align:right;}
.dgs-lunar{display:block;font-size:.72rem;line-height:1.7;color:rgba(239,233,220,.5);}
.dgs-disc{font-size:.68rem;line-height:1.85;color:rgba(239,233,220,.45);text-align:start;
  max-width:46ch;margin:0;flex:1 1 auto;min-width:0;}
.dgs-foot{gap:12px;align-items:flex-end;}
/* 順修（v0.16 既有）：印卡內「今日對您」區塊沿用了淺色卡底，深底上成米字米底不可讀 */
.dg-seal .dg-sec{background:none;border-radius:0;}
/* v0.17 M1 清除我的資料鈕（文字鏈語彙,危險動作臂裝後轉磚紅） */
.btn-clear-data{margin-top:10px;background:none;border:none;padding:0;cursor:pointer;
  font-family:inherit;font-size:.8rem;color:#8a6a2f;text-decoration:underline;text-underline-offset:2px;}
.btn-clear-data.is-armed{color:#b0533d;font-weight:600;}

/* ═══════════════════════════════════════════════════════════════
   v0.19.0 — 今日對您 2.0 六格（R13 定稿）＋型人狀態卡入口
   ═══════════════════════════════════════════════════════════════ */
.dgp-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:8px;margin:10px 0 12px;}
@media(min-width:768px){.dgp-grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr);}
  .dgp-wide{grid-column:1/-1;}}
.dgp-cell{background:rgba(239,233,220,.04);border:1px solid rgba(207,174,102,.18);
  border-radius:12px;padding:12px 14px;min-width:0;}
.dgp-cell label{display:flex;justify-content:space-between;align-items:baseline;gap:8px;
  font-size:.66rem;letter-spacing:.18em;color:rgba(207,174,102,.8);margin-bottom:8px;}
.dgp-cell label em{font-style:normal;letter-spacing:.02em;font-size:.68rem;color:rgba(239,233,220,.45);}
.dgp-cell p{font-size:.85rem;line-height:1.85;margin:0 0 2px;color:rgba(239,233,220,.8);}
.dgp-cell p b{color:#cfae66;}
.dgp-big{display:flex;align-items:center;gap:10px;font-family:'Noto Serif TC',serif;
  font-size:1.05rem;font-weight:700;color:#efe9dc;margin-bottom:6px;}
.dgp-seal{display:inline-flex;align-items:center;justify-content:center;padding:4px 10px;
  border:1.5px solid rgba(207,174,102,.55);border-radius:8px;background:rgba(207,174,102,.08);
  color:#cfae66;font-size:.95rem;letter-spacing:.1em;}
.dgp-su{display:flex;align-items:center;gap:10px;margin-bottom:6px;}
.dgp-su img{width:40px;height:40px;flex:none;}
.dgp-su b{font-family:'Noto Serif TC',serif;font-size:1rem;color:#efe9dc;}
.dgp-cols{display:flex;gap:8px;margin-bottom:6px;}
.dgp-cols i{width:22px;height:22px;border-radius:50%;border:1.5px solid rgba(239,233,220,.3);}
/* 05 未來七日帶 */
.dgp-strip{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:6px;}
@media(max-width:640px){.dgp-strip{display:flex;overflow-x:auto;padding-bottom:6px;
  -webkit-overflow-scrolling:touch;}
  .dgp-strip .dgp-day{flex:0 0 84px;}}
.dgp-day{position:relative;background:rgba(239,233,220,.03);border:1px solid rgba(239,233,220,.12);
  border-radius:10px;padding:8px 6px 10px;text-align:center;min-width:0;}
.dgp-day.is-gold{border-color:rgba(207,174,102,.6);background:rgba(207,174,102,.08);}
.dgp-day .dgp-dd{display:block;font-size:.72rem;color:rgba(239,233,220,.6);}
.dgp-day .dgp-dw{display:block;font-size:.62rem;color:rgba(239,233,220,.4);margin:1px 0 4px;}
.dgp-day b{display:block;font-family:'Noto Serif TC',serif;font-size:.88rem;font-weight:700;
  color:#efe9dc;}
.dgp-day.is-gold b{color:#cfae66;}
.dgp-dot{position:absolute;top:6px;right:6px;width:6px;height:6px;border-radius:50%;
  background:#cfae66;}
/* 06 本月展望語義點:助力綠/留心磚紅/中性灰紫 */
.dgp-pt{display:inline-block;width:7px;height:7px;border-radius:50%;margin-right:8px;
  vertical-align:2px;}
.dgp-ok{background:#9ec9a9;}
.dgp-warn{background:#c98a7d;}
.dgp-mid{background:#9a90b8;}
.dgp-actions{margin:4px 0 8px;text-align:right;}
