/* 梅花易數結果頁 — 現代卡片式 */

#result-area { display: none; }
#result-area.is-visible { display: block; }

.result-meta {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.result-card {
  background: #fff;
  border-radius: 12px;
  padding: 1.5rem 1.75rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.result-card h3 {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #888;
  margin: 0 0 0.75rem;
  font-weight: 700;
}

.result-card-headline {
  background: linear-gradient(135deg, #f8f6f3 0%, #fff 100%);
  border-left: 4px solid #c9a962;
}

.result-card-headline .headline-text {
  font-size: 1.35rem;
  line-height: 1.6;
  font-weight: 600;
  color: #222;
  margin: 0;
}

.result-card-body {
  line-height: 1.85;
  color: #333;
  margin: 0;
  white-space: pre-wrap;
}

/* 卦象總覽 */
.gua-overview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-top: 1rem;
}

@media (max-width: 640px) {
  .gua-overview-grid {
    grid-template-columns: 1fr;
  }
}

.gua-hex-card {
  background: #fafafa;
  border-radius: 10px;
  padding: 1.25rem;
  text-align: center;
  border: 1px solid #eee;
}

.gua-hex-card.is-changed {
  background: #f5f8fc;
  border-color: #d8e4f0;
}

.gua-hex-card .hex-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 0.25rem;
  color: #222;
}

.gua-hex-card .hex-label {
  font-size: 0.75rem;
  color: #999;
  margin-bottom: 1rem;
}

.gua-hex-card .hex-trigram {
  font-size: 0.85rem;
  color: #666;
  margin: 0.75rem 0 0.5rem;
}

.gua-hex-card .hex-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  justify-content: center;
  margin-top: 0.75rem;
}

.hex-keyword {
  font-size: 0.7rem;
  padding: 0.2rem 0.5rem;
  background: #eee;
  border-radius: 4px;
  color: #555;
}

.moving-line-badge {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.4rem 0.9rem;
  background: #fff8e6;
  border: 1px solid #e8d4a8;
  border-radius: 20px;
  font-size: 0.9rem;
  color: #8a6d2f;
  font-weight: 600;
}

/* 六爻圖：grid 由上往下，避免繼承 flex-direction: column-reverse */
.hexagram-chart {
  display: grid;
  grid-template-rows: repeat(6, minmax(10px, auto));
  grid-auto-flow: row;
  gap: 0.45rem;
  max-width: 140px;
  margin: 0 auto;
}

.yao-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 10px;
}

.yao-yang {
  width: 100%;
  height: 8px;
  background: #2c2c2c;
  border-radius: 2px;
}

.yao-yin {
  display: flex;
  width: 100%;
  gap: 18%;
  justify-content: center;
}

.yao-yin i {
  flex: 1;
  max-width: 38%;
  height: 8px;
  background: #2c2c2c;
  border-radius: 2px;
  font-style: normal;
}

.yao-row.yao-moving .yao-yang,
.yao-row.yao-moving .yao-yin i {
  background: #c9a962;
  box-shadow: 0 0 0 2px rgba(201, 169, 98, 0.35);
}

.yao-moving-tag {
  font-size: 0.65rem;
  color: #c9a962;
  font-weight: 700;
  min-width: 1.2rem;
}

/* 建議列表 */
.suggestion-list {
  margin: 0;
  padding-left: 1.25rem;
}

.suggestion-list li {
  margin-bottom: 0.65rem;
  line-height: 1.7;
}

.trend-block {
  margin-bottom: 1rem;
}

.trend-block:last-child {
  margin-bottom: 0;
}

.trend-block strong {
  display: block;
  font-size: 0.8rem;
  color: #888;
  margin-bottom: 0.35rem;
  letter-spacing: 0.05em;
}

.result-card-reminder {
  background: #f9f7f4;
  border-left: 4px solid #a8b5a0;
}

/* 免責聲明（可擴充 modal / 完整條款） */
.disclaimer-box {
  margin-top: 1.5rem;
  padding: 1.25rem 1.5rem;
  background: #f7f7f8;
  border: 1px solid #e8e8ec;
  border-radius: 10px;
  font-size: 0.85rem;
  line-height: 1.75;
  color: #666;
}

.disclaimer-box__title {
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: #999;
  margin: 0 0 0.5rem;
  font-weight: 600;
}

.disclaimer-box__body {
  margin: 0;
}

.disclaimer-box__body p {
  margin: 0 0 0.65rem;
}

.disclaimer-box__body p:last-child {
  margin-bottom: 0;
}

/* 表單旁安全提示 */
.safety-hint-box {
  margin-top: 1.25rem;
  padding: 1rem 1.15rem;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  font-size: 0.85rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.85);
}

/* Footer 小語與正式免責（可擴充條款頁 / modal） */
.footer-tagline {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.95rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.75);
}

.footer-copyright {
  margin: 1.25rem 0 0.5rem;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.55);
}

.footer-disclaimer {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.5);
  max-width: 36em;
}

/* 梅花易數介紹區 */
.meihua-intro-section {
  background: linear-gradient(180deg, #faf9f7 0%, #fff 100%);
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
}

.meihua-intro__tagline {
  text-align: center;
  font-size: 1.05rem;
  letter-spacing: 0.12em;
  color: #8a7a5c;
  margin: 0 0 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #e8e4dc;
}

.meihua-intro__card {
  position: relative;
  background: #fff;
  border: 1px solid #ebebeb;
  border-radius: 12px;
  padding: 1.75rem 1.75rem 1.5rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.04);
  height: 100%;
}

.meihua-intro__card-main {
  border-left: 3px solid #c9a962;
}

.meihua-intro__card-muted {
  background: #f9f8f6;
  border-color: #e8e6e2;
}

.meihua-intro__glyph {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  font-size: 2rem;
  color: rgba(201, 169, 98, 0.35);
  line-height: 1;
  user-select: none;
}

.meihua-intro__glyph--small {
  font-size: 1.35rem;
}

.meihua-intro__eyebrow {
  color: #999;
}

.meihua-intro__rule {
  border-color: #e8e4dc;
}

.meihua-intro__subtitle {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 0.75rem;
  color: #333;
  letter-spacing: 0.04em;
}

.meihua-intro__card p {
  margin: 0 0 1rem;
  line-height: 1.85;
  color: #56667b;
}

.meihua-intro__card p:last-child {
  margin-bottom: 0;
}

@media (max-width: 960px) {
  .meihua-intro__tagline {
    font-size: 0.95rem;
    margin-bottom: 1.75rem;
  }
}
