/* ═══════════════════════════════════════
   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.65);
  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.65);
  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.65);
  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.65);
  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.65);
  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.65);
  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.65);
  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.65);
  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.65);
  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.65);
  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.65);
  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.65);
  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.65);
  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.65); }

.landing-hero { padding-top: 2.2rem; }
.hero-kicker { text-align: center; font-size: 0.72rem; letter-spacing: 0.35em;
  color: #7a5c1f; 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.65); 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.65); }
@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; left: 0; top: 0; width: 1px; height: 1px;
  opacity: 0; pointer-events: none; margin: 0; padding: 0; border: 0;
  clip: rect(0 0 0 0); clip-path: inset(50%); overflow: hidden; }
.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.65); }
.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:normal;text-wrap:balance}
@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;text-wrap:balance}
/* 今日印卡＝全站唯一深底（深底配額規範:印卡/章印/佐證四柱牌三處） */
.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:12.5px;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,.62);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,.62)}
.dgs-share{background:rgba(207,174,102,.16);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,.24)}
/* 生辰 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,.62);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:12.5px;letter-spacing:.16em;color:rgba(207,174,102,.78);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,.62);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,.62);}
.dgs-disc{font-size:.68rem;line-height:1.85;color:rgba(239,233,220,.62);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,.62);}
.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,.62);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;}
/* v0.19.5 順修（Gary 07-27 截圖抓到）:佐證卡標題/說明沿用舊深底淺藍字,月白底上近隱形→改可讀色 */
.ich-xref-h{color:#3b2b5e;}
.ich-xref-note{color:rgba(44,37,54,.66);}

/* ═══════════ v0.20.0 決定追蹤（A 委託工程實作；規範源 21-1）═══════════ */
/* header 導覽入口（主導覽） */
.hdr-decisions{font-family:inherit;font-size:.85rem;color:#7a5c1f;background:transparent;border:1px solid rgba(207,174,102,.55);border-radius:999px;padding:.42rem .85rem;cursor:pointer;white-space:nowrap;margin-right:.35rem}
.hdr-decisions:hover{background:rgba(207,174,102,.14)}
/* 共用 */
.dt-nowrap{white-space:nowrap}
.dt-btn-primary{font-family:inherit;font-size:1rem;font-weight:600;color:#fffdf6;background:#3b2b5e;border:none;border-radius:10px;padding:.8rem 1.5rem;cursor:pointer;white-space:nowrap}
.dt-btn-primary:hover{background:#4a3773}
.dt-btn-gold{font-family:inherit;font-size:.95rem;color:#7a5c1f;background:transparent;border:1px solid rgba(207,174,102,.7);border-radius:10px;padding:.72rem 1.1rem;cursor:pointer;white-space:nowrap}
.dt-btn-gold:hover{background:rgba(207,174,102,.14)}
.dt-btn-ink{font-family:inherit;font-size:.95rem;font-weight:600;color:#2c2536;background:transparent;border:1px solid rgba(44,37,54,.45);border-radius:9px;padding:.65rem 1.25rem;cursor:pointer;white-space:nowrap}
.dt-btn-ink:hover{background:rgba(44,37,54,.06)}
.dt-quiet{font-size:.95rem;color:rgba(44,37,54,.5);cursor:pointer;white-space:nowrap}
.dt-capsule-row{margin-top:.85rem}
.dt-capsule{display:inline-block;font-size:.86rem;color:#41704f;background:rgba(94,143,109,.1);border:1px solid rgba(94,143,109,.3);border-radius:999px;padding:.35rem .95rem}
.dt-text{width:100%;box-sizing:border-box;font-family:inherit;font-size:1.02rem;line-height:1.9;color:#2c2536;background:#fffefa;border:1px solid rgba(44,37,54,.2);border-radius:12px;padding:.95rem 1.05rem;min-height:112px;resize:vertical;outline:none}
.dt-text:focus{border-color:rgba(207,174,102,.8)}
.dt-feedback{display:flex;gap:.7rem;align-items:flex-start;background:rgba(59,43,94,.05);border:1px solid rgba(59,43,94,.16);border-radius:12px;padding:.85rem 1.1rem;margin-top:1.05rem;font-size:.95rem;line-height:1.85;color:rgba(44,37,54,.78);text-align:left}
.dt-fb-check{font-family:"Noto Serif TC",serif;color:#3b2b5e;font-size:1.05rem;line-height:1.6}
.dt-fb-sub{display:block;margin-top:.3rem;font-size:.88rem;color:rgba(44,37,54,.55)}
/* 4-D 入口卡 */
.dt-entry{margin-top:1.6rem;text-align:left}
.dt-card{background:#fffdf6;border:1px solid rgba(207,174,102,.5);border-radius:16px;padding:1.5rem 1.6rem}
.dt-prompt-line{display:block;font-family:"Noto Serif TC",serif;font-size:1.25rem;font-weight:700;line-height:1.65;letter-spacing:.02em}
.dt-prompt-sub{margin:.6rem 0 0;font-size:.94rem;line-height:1.85;color:rgba(44,37,54,.62);text-wrap:pretty}
.dt-collapsed-actions{display:flex;gap:.8rem;align-items:center;flex-wrap:wrap;margin-top:1rem}
.dt-exp-head{display:flex;justify-content:space-between;align-items:baseline;gap:1rem;flex-wrap:wrap}
.dt-exp-meta{font-size:.9rem;color:rgba(44,37,54,.45);white-space:nowrap}
.dt-guide{margin:.55rem 0 .9rem;font-size:.94rem;line-height:1.85;color:rgba(44,37,54,.6)}
.dt-mail-sec{margin-top:1.35rem;border-top:1px solid rgba(44,37,54,.1);padding-top:1.2rem}
.dt-sec-kicker{font-size:.75rem;letter-spacing:.22em;color:#8a6a2f;margin-bottom:.75rem}
.dt-sendbox{display:flex;gap:.75rem;align-items:flex-start;cursor:pointer;background:rgba(207,174,102,.1);border:1px solid rgba(207,174,102,.45);border-radius:12px;padding:.95rem 1.1rem}
.dt-sendbox input{margin-top:.3rem;accent-color:#3b2b5e;width:1.15rem;height:1.15rem;flex:none}
.dt-sendbox b{display:block;font-size:1rem;line-height:1.7}
.dt-send-sub{display:block;margin-top:.25rem;font-size:.92rem;line-height:1.85;color:rgba(44,37,54,.65);text-wrap:pretty}
.dt-soon-row{display:flex;flex-wrap:wrap;gap:.6rem;margin-top:.85rem}
.dt-soon{font-size:.9rem;color:rgba(44,37,54,.42);background:rgba(44,37,54,.04);border:1px dashed rgba(44,37,54,.2);border-radius:10px;padding:.55rem .85rem;white-space:nowrap}
.dt-mail-privacy{margin:1rem 0 0;font-size:.9rem;line-height:1.85;color:rgba(44,37,54,.6);text-wrap:pretty}
.dt-trio{display:flex;flex-wrap:wrap;gap:.72rem;align-items:center;margin-top:1.2rem}
/* 一次性儲存說明（20） */
.dt-once{border-left:2px solid rgba(207,174,102,.75);padding:.15rem 0 .15rem 1.1rem;margin-top:1.15rem}
.dt-once-title{font-family:"Noto Serif TC",serif;font-size:1.08rem;font-weight:600;margin-bottom:.6rem}
.dt-once-facts{display:flex;flex-direction:column;gap:.5rem;font-size:.95rem;line-height:1.9;color:rgba(44,37,54,.78)}
.dt-once-facts span{text-wrap:pretty}
.dt-once-actions{display:flex;gap:.85rem;align-items:center;margin-top:1rem}
.dt-once-note{font-size:.85rem;color:rgba(44,37,54,.45);white-space:nowrap}
/* 回訪回報對話（17-1） */
.dt-dialog{text-align:left;background:#f7f2e7;border:1px solid rgba(44,37,54,.14);border-radius:20px;padding:2.6rem 2.2rem 2.8rem;margin-top:1rem}
.dt-dlg-kicker{font-size:.8rem;letter-spacing:.22em;color:rgba(44,37,54,.42);margin-bottom:1.5rem}
.dt-dlg-quote{border-left:2px solid rgba(207,174,102,.75);padding:.15rem 0 .15rem 1.3rem;margin-bottom:2rem}
.dt-dlg-asked{font-size:.95rem;line-height:1.9;color:rgba(44,37,54,.6);margin-bottom:.5rem}
.dt-dlg-guide{font-family:"Noto Serif TC",serif;font-size:1.14rem;line-height:1.85;color:rgba(44,37,54,.88);text-wrap:pretty}
.dt-dlg-wrote{margin-top:.5rem;font-size:.98rem;line-height:1.85;color:rgba(44,37,54,.75)}
.dt-dlg-title{margin:0 0 .6rem;font-family:"Noto Serif TC",serif;font-size:1.5rem;font-weight:600;line-height:1.6;letter-spacing:.02em;text-wrap:pretty}
.dt-dlg-why{margin:0 0 1.8rem;font-size:.98rem;line-height:1.9;color:rgba(44,37,54,.62);max-width:56ch;text-wrap:pretty}
.dt-dlg-opts{display:flex;flex-direction:column;gap:.85rem}
.dt-dlg-opt{background:#fffdf6;border:1px solid rgba(44,37,54,.14);border-radius:16px;padding:1.15rem 1.4rem;cursor:pointer;transition:border-color .18s}
.dt-dlg-opt:hover{border-color:rgba(207,174,102,.8)}
.dt-dlg-opt.on{border-color:rgba(207,174,102,.9);box-shadow:0 0 0 3px rgba(207,174,102,.14)}
.dt-dlg-opt-row{display:flex;gap:.85rem;align-items:baseline}
.dt-radio{flex:none;width:16px;height:16px;border-radius:50%;position:relative;top:2px;border:1px solid rgba(44,37,54,.32);background:transparent}
.dt-dlg-opt.on .dt-radio{border-color:#3b2b5e;background:radial-gradient(circle,#3b2b5e 0 42%,transparent 43%)}
.dt-dlg-opt-label{font-size:1.08rem;line-height:1.7;font-weight:500}
.dt-dlg-opt textarea{margin-top:.85rem}
.dt-dlg-opt3-note{margin:.6rem 0 0 2rem;font-size:.92rem;line-height:1.85;color:rgba(44,37,54,.58);max-width:52ch;text-wrap:pretty}
.dt-dlg-actions{display:flex;gap:1rem;align-items:center;flex-wrap:wrap;margin-top:1.9rem}
.dt-dlg-submit{font-family:inherit;font-size:1rem;font-weight:600;border-radius:11px;padding:.9rem 1.85rem;cursor:pointer;white-space:nowrap;border:1px solid #3b2b5e;color:#fffdf6;background:#3b2b5e}
.dt-dlg-submit.dt-idle{color:#3b2b5e;background:transparent;border-color:rgba(59,43,94,.35)}
/* 分支 A 拒絕頁（17-1） */
.dt-refusal{text-align:left;background:#f7f2e7;border:1px solid rgba(44,37,54,.14);border-radius:20px;padding:3.4rem 2.2rem 3rem;margin-top:1rem}
.dt-ref-kicker{font-size:.8rem;letter-spacing:.22em;color:rgba(44,37,54,.4);text-wrap:pretty}
.dt-ref-rule{width:46px;height:1px;background:rgba(207,174,102,.85);margin:1.6rem 0 2rem}
.dt-ref-big1{margin:0;font-family:"Noto Serif TC",serif;font-size:1.75rem;font-weight:500;line-height:2.05;letter-spacing:.02em;text-wrap:pretty}
.dt-ref-big2{margin:1.7rem 0 0;font-family:"Noto Serif TC",serif;font-size:1.4rem;font-weight:400;line-height:2.05;letter-spacing:.02em;color:rgba(44,37,54,.8);text-wrap:pretty}
.dt-ref-body{margin:1.9rem 0 0;font-size:1.02rem;line-height:2.05;color:rgba(44,37,54,.66);max-width:50ch;text-wrap:pretty}
.dt-ref-divider{height:1px;background:rgba(44,37,54,.12);margin:2.8rem 0 1.7rem}
.dt-ref-now{font-size:.92rem;letter-spacing:.06em;color:rgba(44,37,54,.5);margin-bottom:1.05rem}
.dt-ref-exits{display:flex;flex-direction:column;gap:.72rem}
.dt-ref-exit{background:#fffdf6;border:1px solid rgba(44,37,54,.14);border-radius:14px;padding:1.05rem 1.3rem;cursor:pointer;transition:border-color .18s}
.dt-ref-exit:hover{border-color:rgba(207,174,102,.7)}
.dt-ref-exit b{display:block;font-size:1.02rem;line-height:1.7}
.dt-ref-exit span{display:block;margin-top:.25rem;font-size:.92rem;line-height:1.85;color:rgba(44,37,54,.6)}
/* 分支 B（18） */
.dt-branchb{text-align:left;margin-bottom:2rem}
.dt-b-kicker{font-size:.8rem;letter-spacing:.22em;color:rgba(44,37,54,.42);margin-bottom:1.4rem;text-wrap:pretty}
.dt-b-report{background:#fffdf6;border:1px solid rgba(44,37,54,.12);border-radius:16px;padding:1.3rem 1.5rem;margin-bottom:1.9rem}
.dt-b-quote{margin:0;font-family:"Noto Serif TC",serif;font-size:1.2rem;line-height:1.95;color:rgba(44,37,54,.9);text-wrap:pretty}
.dt-b-savednote{margin:.7rem 0 0;font-size:.92rem;line-height:1.85;color:rgba(44,37,54,.6)}
.dt-b-diff{border-top:1px solid rgba(44,37,54,.1);padding-top:1.7rem;margin-bottom:1.4rem}
.dt-b-diff-head{display:flex;gap:.85rem;align-items:baseline;flex-wrap:wrap;margin-bottom:1.35rem}
.dt-b-diff-title{font-family:"Noto Serif TC",serif;font-size:1.25rem;font-weight:600;letter-spacing:.03em}
.dt-b-diff-meta{font-size:.9rem;color:rgba(44,37,54,.5);white-space:nowrap}
.dt-diff-row{display:grid;grid-template-columns:1fr 44px 1fr;gap:0;align-items:stretch;margin-bottom:.85rem}
.dt-diff-last{background:rgba(44,37,54,.04);border:1px solid rgba(44,37,54,.1);border-radius:14px;padding:1.05rem 1.2rem}
.dt-diff-now{background:#fffdf6;border:1px solid rgba(207,174,102,.6);border-radius:14px;padding:1.05rem 1.2rem}
.dt-diff-arrow{display:flex;align-items:center;justify-content:center}
.dt-diff-cap{font-size:.75rem;letter-spacing:.18em;color:rgba(44,37,54,.45);margin-bottom:.5rem}
.dt-diff-cap.dt-gold{color:#8a6a2f}
.dt-diff-row p{margin:0;font-size:.98rem;line-height:1.9;color:rgba(44,37,54,.62);text-wrap:pretty}
.dt-diff-now p{color:rgba(44,37,54,.85)}
.dt-b-anchor{margin:1.1rem 0 0;font-size:.94rem;line-height:1.9;color:rgba(44,37,54,.6);max-width:58ch;text-wrap:pretty}
/* 分支 C 誠實標記（18）：資訊條非警示條 */
.dt-cbar{background:rgba(44,37,54,.045);border:1px solid rgba(44,37,54,.12);border-radius:12px;padding:1rem 1.25rem;margin-bottom:2rem;font-size:.96rem;line-height:1.9;color:rgba(44,37,54,.7);text-align:left;text-wrap:pretty}
/* 4-C 總覽（19） */
.dt-overview{max-width:720px;margin:0 auto;text-align:left}
.dt-ov-title{font-family:"Noto Serif TC",serif;font-size:1.55rem;font-weight:600;letter-spacing:.03em}
.dt-ov-sub{margin:.5rem 0 0;font-size:.94rem;line-height:1.85;color:rgba(44,37,54,.55);text-wrap:pretty}
.dt-group{margin-top:2.3rem}
.dt-group-head{display:flex;align-items:baseline;gap:.75rem}
.dt-folded .dt-group-head{cursor:pointer}
.dt-group-label{font-family:"Noto Serif TC",serif;font-size:1rem;font-weight:600;letter-spacing:.12em;color:#3b2b5e;white-space:nowrap}
.dt-group-line{flex:1;height:1px;background:rgba(59,43,94,.14)}
.dt-axis{margin-top:.4rem;border-left:2px solid rgba(207,174,102,.55);padding:1.5rem 0 .4rem 1.6rem;margin-left:.45rem;display:flex;flex-direction:column;gap:1.9rem}
.dt-item{position:relative}
.dt-item.dt-focus{animation:dtfocus 1.8s ease-out}
@keyframes dtfocus{0%{background:rgba(207,174,102,.14)}100%{background:transparent}}
.dt-dot{position:absolute;left:-2.05rem;top:.35rem;width:12px;height:12px;border-radius:50%;box-sizing:border-box;background:transparent;border:2px solid rgba(207,174,102,.9)}
.dt-dot-filled{background:rgba(207,174,102,.95);border-color:rgba(207,174,102,.95)}
.dt-item-meta{font-size:.9rem;color:rgba(44,37,54,.48);white-space:nowrap}
.dt-item-q{margin-top:.35rem;font-family:"Noto Serif TC",serif;font-size:1.22rem;font-weight:600;line-height:1.6;text-wrap:pretty}
.dt-item-guide{margin-top:.45rem;font-size:.94rem;line-height:1.85;color:rgba(44,37,54,.58);text-wrap:pretty}
.dt-item-decision{margin-top:.75rem;border-left:2px solid rgba(207,174,102,.75);padding:.15rem 0 .15rem 1rem}
.dt-item-decision-cap{font-size:.75rem;letter-spacing:.2em;color:#8a6a2f;margin-bottom:.25rem}
.dt-item-decision-text{font-family:"Noto Serif TC",serif;font-size:1.06rem;line-height:1.8;color:rgba(44,37,54,.88);text-wrap:pretty}
.dt-item-report{margin-top:.75rem;background:rgba(59,43,94,.05);border:1px solid rgba(59,43,94,.14);border-radius:12px;padding:.8rem 1.05rem}
.dt-item-report-cap{font-size:.75rem;letter-spacing:.2em;color:#3b2b5e;margin-bottom:.25rem}
.dt-item-report-text{font-size:.96rem;line-height:1.85;color:rgba(44,37,54,.8);text-wrap:pretty}
.dt-item-unreported{margin-top:.75rem;display:flex;align-items:center;gap:.75rem;flex-wrap:wrap}
.dt-item-unreported>span{font-size:.94rem;color:rgba(44,37,54,.5);white-space:nowrap}
.dt-fill{margin-top:.75rem;background:#fffdf6;border:1px solid rgba(207,174,102,.55);border-radius:12px;padding:1rem 1.1rem}
.dt-fill-guide{font-size:.9rem;line-height:1.85;color:rgba(44,37,54,.6);margin-bottom:.6rem}
.dt-fill .dt-text{min-height:76px}
.dt-fill-actions{display:flex;gap:.75rem;align-items:center;margin-top:.75rem}
.dt-item-adjust{margin-top:.75rem;display:flex;align-items:center;gap:.85rem;flex-wrap:wrap}
.dt-adjust-toggle{font-size:.9rem;color:#7a5c1f;cursor:pointer;white-space:nowrap;text-decoration:underline;text-underline-offset:3px}
.dt-adjust-toggle.dt-adjusted{color:rgba(44,37,54,.45);text-decoration:none}
.dt-adjust-badge{font-size:.87rem;color:rgba(44,37,54,.6);background:rgba(44,37,54,.05);border:1px solid rgba(44,37,54,.16);border-radius:999px;padding:.3rem .8rem;white-space:nowrap}
/* 空狀態（19） */
.dt-empty{max-width:520px;margin:2.5rem auto 0;text-align:center}
.dt-empty-body{margin:1rem 0 0;font-size:1rem;line-height:2;color:rgba(44,37,54,.65);text-wrap:pretty}
.dt-empty-now{margin:.85rem 0 0;font-size:.94rem;line-height:1.9;color:rgba(44,37,54,.5)}
.dt-empty-back{display:inline-block;margin-top:1.6rem;font-size:.97rem;white-space:nowrap}
/* 透明化頁尾（20） */
.dt-ov-foot{margin-top:2.2rem;display:flex;flex-direction:column;gap:.7rem;align-items:flex-start}
.dt-loss-note{font-size:.9rem;line-height:1.85;color:rgba(44,37,54,.55);text-wrap:pretty}
.dt-clear-zone{border-top:1px solid rgba(44,37,54,.1);margin-top:.55rem;padding-top:1.15rem;width:100%;font-size:.94rem;color:rgba(44,37,54,.55)}
.dt-clear-link{color:#7a5c1f;text-decoration:underline;text-underline-offset:3px;white-space:nowrap}
.dt-clear-confirm{border:1px solid rgba(44,37,54,.22);border-radius:14px;padding:1.35rem 1.5rem;background:#fffdf6;margin-top:1rem}
.dt-clear-title{font-family:"Noto Serif TC",serif;font-size:1.1rem;font-weight:600;margin-bottom:.6rem}
.dt-clear-facts{display:flex;flex-direction:column;gap:.4rem;font-size:.95rem;line-height:1.9;color:rgba(44,37,54,.75)}
.dt-clear-facts span{text-wrap:pretty}
.dt-clear-actions{display:flex;gap:.75rem;align-items:center;margin-top:1.1rem;flex-wrap:wrap}
.dt-clear-mailask{font-size:.87rem;color:rgba(44,37,54,.45);white-space:nowrap}
/* 手機 390（15-1／17-1／18／19／20 手機規格） */
@media (max-width: 480px){
  .hdr-decisions{font-size:.78rem;padding:.38rem .65rem}
  .dt-card{padding:1.15rem 1.15rem}
  .dt-trio{flex-direction:column;align-items:stretch}
  .dt-trio .dt-btn-primary{width:100%}
  .dt-trio .dt-btn-gold{flex:1}
  .dt-trio .dt-quiet{text-align:center}
  .dt-soon-row{flex-direction:column}
  .dt-dialog{padding:1.75rem 1.25rem 1.9rem}
  .dt-refusal{padding:2.75rem 1.25rem 2.1rem}
  .dt-ref-big1{font-size:1.55rem}
  .dt-ref-big2{font-size:1.25rem}
  .dt-dlg-submit{width:100%}
  .dt-diff-row{grid-template-columns:20px 1fr;gap:0 .75rem}
  .dt-diff-arrow{display:none}
  .dt-diff-last{grid-column:2;margin-bottom:.5rem;position:relative}
  .dt-diff-now{grid-column:2;margin-bottom:.9rem}
  .dt-diff-row::before{content:"";grid-column:1;grid-row:1/3;width:1.5px;background:rgba(207,174,102,.55);justify-self:center}
  .dt-overview{padding:0 2px}
  .dt-axis{padding-left:1.1rem;margin-left:.35rem}
  .dt-dot{left:-1.55rem}
  .dt-fill-actions .dt-btn-primary{flex:1}
  .dt-item-unreported .dt-btn-gold{width:100%}
}
/* v0.20.0 header 導覽鈕手機收納：允許換行、切換列靠右（避免 390 橫向溢出） */
@media (max-width: 480px){
  .app-header{flex-wrap:wrap;row-gap:.3rem}
  .lang-switcher{margin-left:auto}
  .dt-soon{white-space:normal;text-wrap:pretty}
}
/* v0.20.0：手機上日期＋卦名 meta 允許換行（EN 卦名較長；zh 自然單行） */
@media (max-width: 480px){
  .dt-exp-meta{white-space:normal;max-width:100%}
  .dt-b-diff-meta{white-space:normal}
  .dt-item-meta{white-space:normal}
}

/* ═══════════════════════════════════════
   v0.21.0 — 桌機可讀性升級＋首頁丙案（22 批定稿）
   字階 v3.0（≥1280）· 對比下限 · 寬版斷點 · 微互動三層 · 時辰統一
   手機（≤430）規範不動；字階與版面僅 ≥1280 生效
   ═══════════════════════════════════════ */

/* ── A. 五鏡通道列（丙案：主張句正下方，高 44，點入才見完整五鏡卡）── */
.mirror-strip{display:flex;justify-content:center;gap:8px;flex-wrap:wrap;margin:6px 0 18px;}
.ms-chip{position:relative;display:inline-flex;align-items:center;justify-content:center;min-height:44px;
  padding:0 16px;background:#fffdf6;color:#2c2536;border:1px solid rgba(44,37,54,.14);border-radius:12px;
  font-family:inherit;font-size:.88rem;letter-spacing:.08em;cursor:pointer;
  transition:all .2s ease;box-shadow:0 1px 6px rgba(59,43,94,.05);}
.ms-chip:hover{transform:translateY(-2px);border-color:rgba(207,174,102,.8);box-shadow:0 2px 10px rgba(59,43,94,.08);}
.ms-chip:active{transform:scale(.98);transition-duration:.12s;}
.ms-chip.is-soon{color:rgba(44,37,54,.65);border-style:dashed;}
.ms-tip{position:absolute;top:calc(100% + 6px);left:50%;transform:translateX(-50%);
  background:#3b2b5e;color:#f7f2e7;font-size:13px;letter-spacing:.04em;white-space:nowrap;
  padding:4px 10px;border-radius:8px;opacity:0;pointer-events:none;transition:opacity .2s ease;z-index:30;}
.ms-chip:hover .ms-tip,.ms-chip:focus-visible .ms-tip{opacity:1;}
@media (hover:none){.ms-tip{display:none;}}

/* ── B. 印卡白話層（白話句升卡首行；術語退二行掛白話出口）── */
.dgs-plain{font-family:'Noto Serif TC',serif;font-size:17px;font-weight:500;line-height:1.9;
  color:#f7f2e7;margin:2px 0 8px;}  /* 手機維持 v2.0 內文 17/1.9;≥1280 升 18/1.85 */
.dgs-plain b{color:#cfae66;font-weight:700;}
.dgs-terms{display:flex;align-items:center;flex-wrap:wrap;gap:2px 6px;margin:0 0 12px;
  font-size:.85rem;color:rgba(239,233,220,.62);}
.q-term{background:none;border:0;border-bottom:1px dotted rgba(207,174,102,.7);border-radius:3px;
  padding:1px 3px;font-family:inherit;font-size:.85rem;line-height:1.7;white-space:nowrap;cursor:pointer;
  color:rgba(207,174,102,.92);transition:background .2s ease,border-color .2s ease,color .2s ease;}
.q-term:hover,.q-term.on{color:#cfae66;border-bottom:1px solid #cfae66;background:rgba(207,174,102,.12);}
.dgs-termpanel{background:rgba(239,233,220,.05);border:1px solid rgba(207,174,102,.28);border-radius:10px;
  padding:12px 14px;margin:0 0 12px;}
.tp-t{font-family:'Noto Serif TC',serif;font-size:.95rem;font-weight:600;color:#efe9dc;margin:0 0 6px;}
.tp-line{font-size:.85rem;font-weight:500;line-height:1.8;color:#cfae66;margin:0 0 4px;}
.tp-body{font-size:.85rem;font-weight:500;line-height:1.85;color:rgba(239,233,220,.8);margin:0 0 8px;}
.tp-foot{display:flex;justify-content:space-between;align-items:center;gap:8px;
  font-size:13px;color:rgba(239,233,220,.62);}
.tp-close{background:none;border:0;font-family:inherit;font-size:13px;cursor:pointer;
  color:#cfae66;text-decoration:underline;text-underline-offset:3px;}

/* ── C. 微互動三層語彙（一律 200ms ease，無彈跳）── */
.mr-card.is-live{transition:transform .2s ease,border-color .2s ease,box-shadow .2s ease;}
.mr-card.is-live:hover{transform:translateY(-2px);border-color:rgba(207,174,102,.8);
  box-shadow:0 3px 12px rgba(59,43,94,.12);}
.ich-catchip{transition:all .2s ease;}
.ich-catchip:hover{border-color:#8a6a2f;background:rgba(138,106,47,.07);}
.hour-chip:active,.ich-catchip:active,.ich-now-chip:active{transform:scale(.98);transition-duration:.12s;}
.about-fold summary{cursor:pointer;padding:4px 6px;border-radius:8px;list-style:none;position:relative;
  transition:background .2s ease;}
.about-fold summary::-webkit-details-marker{display:none;}
.about-fold summary::after{content:'＋';position:absolute;right:6px;top:50%;
  transform:translateY(-50%);color:#8a6a2f;transition:transform .2s ease;}
.about-fold[open] summary::after{transform:translateY(-50%) rotate(45deg);}
.about-fold summary:hover{background:rgba(59,43,94,.09);}
.btn-clear-data{color:#7a5c1f;text-decoration:underline;text-underline-offset:3px;}
.dg-invite,.dg-seal .dg-invite{text-underline-offset:3px;}
.footer-meta a:hover{color:#b0533d;}
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{transition-duration:.01ms !important;animation:none !important;scroll-behavior:auto !important;}
}

/* ── D. 時辰輸入統一（4×3 chips · 44px 格 · 選中黛紫實底）── */
.hour-chip{min-height:44px;display:flex;flex-direction:column;align-items:center;justify-content:center;
  gap:1px;transition:all .2s ease;}
.hour-chip span{display:block;}
@media (min-width:720px){.hour-chips{grid-template-columns:repeat(4,1fr);}}
/* 易經 · 起卦時刻（同套元件＋「現在此刻」預設金框 chip）*/
.ich-when{display:grid;gap:.55rem;}
.ich-now-chip{width:100%;min-height:44px;display:flex;align-items:center;justify-content:center;gap:8px;
  background:#fffdf6;border:1.5px solid rgba(44,37,54,.18);border-radius:10px;color:#2c2536;
  font-family:inherit;font-size:.9rem;cursor:pointer;transition:all .2s ease;}
.ich-now-chip.on{border-color:#cfae66;background:rgba(207,174,102,.1);font-weight:700;}
.ich-now-chip .inc-sub{font-size:.78rem;color:rgba(44,37,54,.65);font-weight:400;}
.ich-when-hint{font-size:.78rem;color:rgba(44,37,54,.65);margin:2px 0 0;}
.ich-when-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:.55rem;}

/* ── E. 側欄（≥1440 啟用；Gary 裁決③＝目次＋「你的決定」回看入口）── */
.side-rail{display:none;}
.rail-box{background:#fffdf6;border:1px solid rgba(44,37,54,.1);border-radius:14px;
  padding:18px 20px;box-shadow:0 1px 6px rgba(59,43,94,.05);}
.rail-k{font-size:12.5px;letter-spacing:.22em;color:#7a5c1f;margin:0 0 10px;}
.rail-toc{list-style:none;margin:0;padding:0;}
.rail-toc button{display:block;width:100%;text-align:left;background:none;border:0;font-family:inherit;
  font-size:15.5px;line-height:1.8;color:rgba(44,37,54,.78);padding:4px 8px;border-radius:8px;
  cursor:pointer;transition:background .2s ease,color .2s ease;}
.rail-toc button:hover{background:rgba(59,43,94,.06);color:#3b2b5e;}
.rail-dec{margin-top:14px;padding-top:14px;border-top:1px solid rgba(207,174,102,.35);}
.rail-decbtn{width:100%;font-family:inherit;font-size:15.5px;color:#7a5c1f;background:transparent;
  border:1px solid rgba(207,174,102,.55);border-radius:999px;padding:.5rem .9rem;cursor:pointer;
  transition:background .2s ease;}
.rail-decbtn:hover{background:rgba(207,174,102,.1);}

/* ── F. 桌機字階 v3.0＋寬版面（≥1280：頁容器 1200 · 閱讀欄 720）── */
@media (min-width:1280px){
  .app-main{max-width:1200px;}
  .landing-hero{max-width:none;}
  /* 字階 v3.0（22 定稿一：Display 38 / H1 28＝Gary 裁決② / H2 23 / 內文 18·1.85 / 輔助 15.5·1.8 / 註記 13.5 / 微標 12.5）*/
  .hero-claim-one{font-size:38px;line-height:1.3;}
  .section-title{font-size:28px;line-height:1.4;}
  .sec-title{font-size:23px;line-height:1.5;}
  .home-cta-t{font-size:23px;line-height:1.5;}
  .dgs-plain{font-size:18px;line-height:1.85;max-width:720px;}
  .dgs-mood,.dgp-cell p,.dg-sec p,.about-fold p,.home-cta-sub{font-size:18px;line-height:1.85;}
  .form-hint,.privacy-pill,.mr-desc,.dgs-big-sub,.section-subtitle,.tp-line,.tp-body{font-size:15.5px;line-height:1.8;}
  .dgs-terms,.q-term{font-size:15.5px;}
  .dgs-big-note,.dgs-disc,.dgs-foot span,.mr-soon,.footer-meta,.dgs-lunar{font-size:13.5px;}
  .hero-kicker,.dgs-kick,.dgs-big-k{font-size:12.5px;}
  .dgs-big-name{font-size:23px;line-height:1.5;}
  /* 深底字重 400→500（暗底細字暈染補償；金色標籤維持 600）*/
  .dg-seal .dgs-mood,.dg-seal .dgp-cell p,.dg-seal .dg-sec p,.dg-seal .dgs-big-sub,.dg-seal .tp-body{font-weight:500;}
  /* 閱讀欄 720（釋文長文行長鎖 720，不隨頁容器變寬）*/
  .iching-result,.reading-display,.dt-overview,.about-fold{max-width:720px;margin-left:auto;margin-right:auto;}
  .iching-cast-form,.birth-form{max-width:720px;margin-left:auto;margin-right:auto;}
  /* 丙案首屏雙欄：生辰輸入（左）＋今日印卡（右）*/
  .landing-text{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);gap:28px;align-items:start;}
  .landing-text>*{grid-column:1/-1;}
  #home-cta{grid-column:1;grid-row:1;margin-top:16px;}
  #daily-guide{grid-column:2;grid-row:1;}
}

/* ── G. ≥1440：頁容器 1320＋側欄 260（合計 1680 居中）· 卡內距 24→28 · 區段間距 44→56 ── */
@media (min-width:1440px){
  .app-main{max-width:1680px;display:grid;grid-template-columns:minmax(0,1320px) 260px;
    gap:0 44px;justify-content:center;align-items:start;}
  .app-main>.section{grid-column:1;min-width:0;}
  .side-rail{display:block;grid-column:2;grid-row:1/span 30;position:sticky;top:24px;}
  .dg-card.dg-seal{padding:28px;}
  .home-cta{padding:28px;}
  .about-fold{padding:14px 28px;}
  .mr-card.is-live{padding:1.2rem 1.4rem;}
  .five-mirrors,.about-fold,#today-star-card,#hour-energy-card,#feedback-wall,#message-wall{margin-top:56px;}
}

/* ── H. ≥1920：不再放大；兩側宣紙留白＋鎏金髮絲線收邊 ── */
@media (min-width:1920px){
  .app-main{border-left:1px solid rgba(207,174,102,.35);border-right:1px solid rgba(207,174,102,.35);
    padding-left:56px;padding-right:56px;}
}

/* ═══════════════════════════════════════
   v0.21.1 — 首頁佈局丁案（37 批定稿）＋通道列 icon（35 批第一節）
   全寬堆疊（雙欄取消）· 生辰橫條 · 印卡全寬提級 · 五鏡左對齊網格 · rail 浮動化
   390 不動；深底配額不變
   ═══════════════════════════════════════ */

/* ── A. 通道列 icon（20px 單色線條 stroke1.8 round；塔羅＝深底金線小牌印；籌備＝虛線低對比）── */
.ms-chip{gap:8px;}
.ms-ic{width:20px;height:20px;color:#3b2b5e;flex:none;}
.ms-chip.is-soon .ms-ic{color:rgba(44,37,54,.35);}
.ms-ic-tarot{width:26px;height:26px;border-radius:6px;background:#241a41;display:grid;place-items:center;flex:none;
  box-shadow:inset 0 0 0 1.5px rgba(207,174,102,.35);}
.ms-ic-tarot .ms-ic{width:16px;height:16px;color:#cfae66;}
@media (max-width:430px){
  .ms-ic{width:18px;height:18px;}
  .ms-ic-tarot{width:23px;height:23px;}
  .ms-ic-tarot .ms-ic{width:14px;height:14px;}
}

/* ── B. 丁案段序＋生辰橫條＋印卡提級＋五鏡網格（≥1280）── */
.hc-toggle{display:none;background:none;border:0;cursor:pointer;color:#8a6a2f;font-family:inherit;
  padding:6px;flex:none;}
.hc-toggle svg{transition:transform .2s ease;display:block;}
.home-cta.open .hc-toggle svg{transform:rotate(180deg);}
@media (min-width:1280px){
  /* 段序（丁案段1-5）：主張句＋通道列→生辰橫條→印卡全寬→五鏡→以下照舊；取消雙欄
     （align-items 蓋回 stretch：丙案層留有 align-items:start，會讓子項縮成內容寬） */
  .landing-text{display:flex;flex-direction:column;align-items:stretch;}
  .landing-text>*{width:100%;}
  #home-cta{order:-1;}
  /* 生辰橫條：全寬、收合單行 ≤96px、點入就地下推展開；9e 卡句原文、互動不變 */
  #home-cta{display:flex;flex-wrap:wrap;align-items:center;text-align:left;gap:10px 20px;
    padding:18px 24px;margin:16px 0 0;}
  .home-cta-t{font-size:19px;line-height:1.5;margin:0;flex:1 1 auto;min-width:300px;cursor:pointer;}
  .home-cta .hero-ctas{margin:0;flex:none;justify-content:flex-start;flex-wrap:nowrap;}
  .home-cta .hero-cta{padding:.65rem 1.2rem;}
  .hc-toggle{display:inline-flex;}
  .home-cta:not(.open) .home-cta-sub,.home-cta:not(.open) .privacy-pill,
  .home-cta:not(.open) #hero-cta-iching{display:none;}
  .home-cta.open .home-cta-sub{flex:1 1 100%;margin:0;}
  .home-cta.open .privacy-pill{margin:0;}
  /* 印卡全寬（丁案段3）：白話句首行 26；深底內文 1280＝17、行高 ≥1.9、字重 500 */
  .dgs-plain{font-size:26px;line-height:1.6;max-width:none;}
  .dg-seal .dgs-mood,.dg-seal .dgp-cell p,.dg-seal .dg-sec p{font-size:17px;line-height:1.9;}
  /* 未來七日帶：七格單行滿版（1280 格寬 ≈160 足），格內字級 13 */
  .dgp-strip{display:grid;grid-template-columns:repeat(7,1fr);gap:8px;overflow:visible;}
  .dgp-day b{font-size:13px;}
  /* 五面鏡：左對齊網格 1280＝兩欄（第三列單卡靠左，留白落右側）；原生 .five-mirrors max-width 540 解除 */
  .five-mirrors{max-width:none;}
  .mirror-list{display:grid;grid-template-columns:repeat(2,1fr);gap:14px;max-width:none;margin:0;}
  .mr-soon-row{display:contents;}
  .mirror-list .mr-card.is-soon{padding:1.1rem .8rem;}
  /* 網格內 live 卡改直式（原橫式在窄格會擠壓 mr-body 成直字） */
  .mirror-list .mr-card.is-live{flex-direction:column;align-items:flex-start;gap:10px;}
  .mirror-list .mr-card.is-live .mr-body{width:100%;min-width:0;}
}

/* ── C. ≥1440：容器全寬 1320 給內容（rail 不再佔欄）；三欄；深底 18 ── */
@media (min-width:1440px){
  .app-main{max-width:1320px;display:block;}
  .dgp-grid{grid-template-columns:repeat(3,minmax(0,1fr));}
  .mirror-list{grid-template-columns:repeat(3,1fr);}
  .dg-seal .dgs-mood,.dg-seal .dgp-cell p,.dg-seal .dg-sec p{font-size:18px;line-height:1.9;}
  .dgp-day b{font-size:15px;}
}

/* ── D. rail 浮動化（丁案段4，全站一條規則）：≥1600 浮動膠囊貼右緣 overlay；1440–1600 點狀錨 hover 展開；＜1440 無 ── */
.rt-dot{display:none;width:8px;height:8px;border-radius:50%;background:rgba(138,106,47,.55);flex:none;}
@media (min-width:1440px){
  .side-rail{position:fixed;right:24px;top:120px;width:240px;z-index:60;}
  .rail-toc button{display:flex;align-items:center;gap:8px;}
}
@media (min-width:1440px) and (max-width:1599.98px){
  .side-rail{width:auto;}
  .side-rail:not(:hover) .rail-box{padding:12px 10px;}
  .side-rail:not(:hover) .rail-k,.side-rail:not(:hover) .rt-lbl,.side-rail:not(:hover) .rail-dec{display:none;}
  .side-rail:not(:hover) .rail-toc button{padding:5px 4px;}
  .side-rail:not(:hover) .rt-dot{display:block;}
  .side-rail:hover{width:240px;}
}

/* ═══ v0.21.2（38-1 批定稿）：手機 390 版面調整＋走查第一批──僅 <768 生效；≥1280 照丁案（37）═══ */
/* 主張句語意段（app.js 每次 i18n.apply 後包 span；斷行只落語意邊界） */
.claim-seg{display:inline-block;}
.hc-start{display:none;}
@media (max-width:767px){
  /* 1. 首屏節奏壓縮（38-1 數值前後表：72→20／24→8／32→14／40→16／24→14）
     header→kicker 實鏈=app-main padding 36＋hero padding：歸零 hero、landing 區負邊距收斂到總留白 20；
     只動 .section-landing，其他頁上緣不受影響 */
  .landing-hero{padding-top:0;}
  .section-landing{margin-top:-16px;}
  .hero-kicker{margin-bottom:8px;}
  .section-landing .hero-claim{margin-bottom:14px;}
  /* 2. 主張句 28／1.5（語意段 inline-block 由 .claim-seg 承擔斷行） */
  .hero-claim-one{font-size:28px;line-height:1.5;}
  .mirror-strip{margin:0 0 16px;gap:6px;}
  /* 段序：生辰收合條升印卡之上（同丁案 order 手法，DOM 不動） */
  .landing-text{display:flex;flex-direction:column;align-items:stretch;}
  .landing-text>*{width:100%;}
  #home-cta{order:-1;margin:0 0 14px;}
  #daily-guide .dg-card{margin-top:0;}
  /* 3. 通道 pills 膠囊化：14px、副標 11.5 同行 nowrap、gap 6、兩行 3＋2；籌備虛線照舊 */
  .ms-chip{font-size:14px;padding:7px 13px;position:relative;}
  .ms-chip .ms-tip{display:inline;position:static;transform:none;opacity:1;pointer-events:none;
    background:none;color:rgba(44,37,54,.5);font-size:11.5px;padding:0 0 0 4px;white-space:nowrap;}
  .ms-chip.is-soon .ms-tip{color:rgba(44,37,54,.38);}
  /* 點按合計 44 目標區：視覺高約 35＋上下隱形熱區各 5 */
  .ms-chip::after{content:'';position:absolute;left:0;right:0;top:-5px;bottom:-5px;}
  /* 4. 生辰卡首屏收合單行 56px＝引導句＋「開始」短鈕；點句就地展開 200ms（38-1 mock） */
  #home-cta{overflow:hidden;transition:max-height .2s ease;}
  #home-cta:not(.open){height:56px;max-height:56px;box-sizing:border-box;display:flex;align-items:center;gap:10px;
    padding:0 12px 0 16px;}
  #home-cta:not(.open) .home-cta-t{flex:1 1 auto;min-width:0;margin:0;font-size:15px;font-weight:600;
    line-height:1.4;cursor:pointer;text-align:left;overflow:hidden;
    display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;} /* zh 單行;EN 至多兩行(56px 內) */
  #home-cta:not(.open) .home-cta-sub,#home-cta:not(.open) .hero-ctas,
  #home-cta:not(.open) .privacy-pill{display:none;}
  #home-cta:not(.open) .hc-start{display:inline-flex;align-items:center;flex:0 0 auto;width:auto;
    height:36px;padding:0 16px;border-radius:999px;font-size:13px;font-weight:600;margin:0;}
  #home-cta.open{max-height:680px;}
  #home-cta.open .hc-start{display:none;}
  #home-cta.open .home-cta-t{cursor:pointer;}
  /* 5. 印卡卡頭：日期整串 nowrap、字距 .06em（38-1 症狀3「逢二」拆行）；農曆 12.5 nowrap；氣氛句 19/1.9 照 v2.0 不動 */
  .dgs-top{flex-wrap:nowrap;gap:8px;}
  .dgs-kick{white-space:nowrap;}
  .dgs-date{white-space:nowrap;letter-spacing:.06em;}
  .dgs-lunar{font-size:12.5px;white-space:nowrap;}
  /* 6a. 走查第一批：時辰 chips 4→3 欄（生辰輸入頁；起卦時刻同套元件一致縮欄） */
  .hour-chips{grid-template-columns:repeat(3,1fr);}
  /* 6c. 易經問事額度說明句 13→14＋與起卦鈕間距補齊 */
  .ich-rule45{font-size:14px;margin-top:16px;}
}
