/* ========================================
   OmoSun — 增强风水 & 趣味模块样式
   ======================================== */

/* 卡片基础 */
.fs-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
  margin-bottom: 20px;
}
.fs-card:hover {
  border-color: var(--accent-mid);
  box-shadow: 0 8px 32px rgba(249,115,22,.08);
}
.fs-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-hover);
}
.fs-card-icon {
  font-size: 22px;
  line-height: 1;
}
.fs-card-title {
  flex: 1;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}
.fs-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  letter-spacing: .5px;
}
.fs-card-body {
  padding: 20px;
}

/* 瀑布流布局（替代原来的网格） */
.fs-masonry {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin: 24px 0;
}
.fs-masonry-col {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.fs-masonry-col .fs-card {
  margin-bottom: 0;
}
/* 移动端：单列 */
@media (max-width: 640px) {
  .fs-masonry {
    flex-direction: column;
    gap: 20px;
  }
  .fs-masonry-col {
    gap: 16px;
  }
}
.fs-fullwidth {
  margin: 24px 0;
}

/* ===== 81数理 ===== */
.nl-grid {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}
.nl-number {
  font-size: 48px;
  font-weight: 800;
  color: var(--accent);
  font-family: 'Georgia', serif;
  min-width: 60px;
  text-align: center;
  line-height: 1;
}
.nl-info { flex: 1; }
.nl-poem {
  font-size: 14px;
  color: var(--accent);
  font-style: italic;
  margin-bottom: 6px;
  line-height: 1.5;
}
.nl-detail { font-size: 12px; color: var(--text-muted); }
.nl-aspects {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 12px;
}
.nl-aspect {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: var(--accent-soft);
  border-radius: 10px;
  font-size: 12px;
}
.nl-aspect-icon { font-size: 14px; }
.nl-aspect-label { color: var(--text-muted); min-width: 28px; }
.nl-aspect-val { color: var(--text); font-weight: 500; }
.nl-cycle {
  display: flex;
  gap: 16px;
  font-size: 12px;
  color: var(--text-muted);
  padding: 8px 0;
}

/* ===== 三元九运 ===== */
.sy-period {
  text-align: center;
  padding: 12px;
  background: var(--accent-soft);
  border-radius: 12px;
  margin-bottom: 16px;
}
.sy-label { font-size: 11px; color: var(--text-muted); margin-bottom: 4px; }
.sy-name { font-size: 18px; font-weight: 700; color: var(--accent); margin-bottom: 4px; }
.sy-gua { font-size: 12px; color: var(--text-secondary); }
.sy-fit, .sy-harmony {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: var(--surface-hover);
  border-radius: 10px;
  margin-bottom: 8px;
  font-size: 13px;
}
.sy-fit-label, .sy-harmony-label {
  font-weight: 600;
  color: var(--text-secondary);
  min-width: 64px;
}
.sy-recommendations {
  background: var(--accent-soft);
  border-radius: 12px;
  padding: 12px 16px;
  margin-top: 12px;
}
.sy-rec-title { font-size: 13px; font-weight: 600; color: var(--accent); margin-bottom: 8px; }
.sy-rec-list {
  margin: 0;
  padding-left: 18px;
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.8;
}

/* ===== 九宫飞星 ===== */
.fx-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-bottom: 12px;
}
.fx-cell {
  padding: 10px 6px;
  border-radius: 10px;
  border: 2px solid #333;
  text-align: center;
  min-height: 90px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  transition: all .2s;
}
.fx-cell:hover {
  transform: scale(1.05);
  z-index: 2;
}
.fx-cell-star {
  font-size: 16px;
  font-weight: 800;
  color: var(--text);
}
.fx-cell-dir {
  font-size: 10px;
  color: var(--text-muted);
}
.fx-cell-meaning {
  font-size: 11px;
  color: var(--text-secondary);
  font-weight: 500;
}
.fx-cell-luck {
  font-size: 11px;
  font-weight: 700;
}
.fx-empty {
  background: transparent;
  border-color: transparent;
}
.fx-legend {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 12px;
  font-size: 12px;
}
.fx-legend-item { font-weight: 500; }
.fx-best-worst {
  display: flex;
  gap: 12px;
  margin-bottom: 8px;
  font-size: 13px;
}
.fx-best, .fx-worst {
  flex: 1;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--surface-hover);
}
.fx-best { border-left: 3px solid #22c55e; }
.fx-worst { border-left: 3px solid #ef4444; }
.fx-summary {
  text-align: center;
  font-size: 13px;
  color: var(--text-secondary);
  padding: 8px;
  background: var(--accent-soft);
  border-radius: 10px;
}

/* ===== 六爻卦象 ===== */
.gua-main {
  text-align: center;
  margin-bottom: 16px;
}
.gua-symbols {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 12px;
}
.gua-sym {
  font-size: 16px;
  color: var(--accent);
  font-weight: 600;
}
.gua-meaning {
  font-size: 15px;
  color: var(--text);
  font-style: italic;
  padding: 12px;
  background: var(--accent-soft);
  border-radius: 10px;
}
.gua-yaoci {
  margin-top: 12px;
}
.gua-yaoci-title {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 8px;
  text-align: center;
}
.gua-yao {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 14px;
  margin-bottom: 4px;
  border-radius: 8px;
  font-size: 12px;
}
.yao-yang { background: rgba(249,115,22,.08); }
.yao-yin { background: rgba(63,63,70,.4); }
.gua-yao-type { font-weight: 600; color: var(--accent); min-width: 40px; }
.gua-yao-mean { color: var(--text-secondary); }
.gua-summary {
  margin-top: 12px;
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
}

/* ===== 龙脉走向 ===== */
.dv-chart {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 4px;
  height: 120px;
  padding: 8px 0;
  margin-bottom: 12px;
  background: linear-gradient(to top, rgba(249,115,22,.04), transparent);
  border-radius: 12px;
}
.dv-bar-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  max-width: 32px;
}
.dv-bar {
  width: 100%;
  max-width: 24px;
  background: linear-gradient(to top, var(--accent), #fbbf24);
  border-radius: 4px 4px 0 0;
  transition: all .3s;
  position: relative;
  min-height: 8px;
}
.dv-bar-val {
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  color: var(--text-muted);
}
.dv-bar-char {
  margin-top: 4px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
}
.dv-terrain {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}
.dv-terrain-tag {
  padding: 4px 10px;
  background: var(--accent-soft);
  border-radius: 20px;
  font-size: 11px;
  color: var(--accent);
}
.dv-landscape {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  padding: 10px;
  background: var(--surface-hover);
  border-radius: 10px;
  margin-bottom: 8px;
}
.dv-peaks, .dv-valleys {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

/* ===== 生肖太岁 ===== */
.sx-main {
  text-align: center;
  padding: 12px;
  background: var(--accent-soft);
  border-radius: 12px;
  margin-bottom: 16px;
}
.sx-animal {
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}
.sx-element {
  font-size: 13px;
  color: var(--accent);
  margin-bottom: 4px;
}
.sx-relation {
  font-size: 12px;
  color: var(--text-secondary);
}
.sx-lucks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-bottom: 12px;
}
.sx-luck-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 12px;
  background: var(--surface-hover);
  border-radius: 8px;
  font-size: 12px;
}
.sx-advice {
  padding: 10px 14px;
  background: rgba(34,197,94,.08);
  border-radius: 10px;
  font-size: 13px;
  color: var(--green);
  text-align: center;
}

/* ===== 吉祥物 ===== */
.ta-main {
  text-align: center;
  margin-bottom: 16px;
}
.ta-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 8px;
}
.ta-big {
  font-size: 24px;
  font-weight: 700;
  color: var(--accent);
}
.ta-color {
  display: inline-block;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--border);
}
.ta-placement {
  font-size: 13px;
  color: var(--text-secondary);
}
.ta-details {
  display: grid;
  gap: 6px;
}
.ta-section {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: var(--surface-hover);
  border-radius: 8px;
  font-size: 12px;
}
.ta-section-title {
  font-weight: 600;
  color: var(--text-muted);
  min-width: 64px;
}

/* ===== 趣味彩蛋 ===== */
.fs-card-fun {
  border-color: var(--accent-mid);
  background: linear-gradient(135deg, var(--surface) 60%, rgba(249,115,22,.04));
}
.fun-block {
  padding: 16px 18px;
  border-radius: 12px;
  margin-bottom: 16px;
  background: var(--surface-hover);
  border: 1px solid var(--border);
}
.fun-block:last-child {
  margin-bottom: 0;
}
.fun-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 8px;
}
.fun-content {
  font-size: 14px;
  color: var(--text);
  line-height: 1.6;
}
.fun-flirty {
  background: linear-gradient(135deg, rgba(249,115,22,.06), rgba(251,191,36,.04));
}
.fun-flirty .fun-content {
  font-size: 15px;
  font-style: italic;
  color: var(--accent);
}
.fun-fortune-main {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
}
.fun-sign {
  font-size: 20px;
  font-weight: 700;
}
.fun-score {
  font-size: 28px;
  font-weight: 800;
}
.fun-desc {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}
.fun-extra {
  display: flex;
  gap: 16px;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.fun-affinity {
  font-size: 13px;
  color: var(--text);
  margin-bottom: 4px;
}
.fun-advice {
  font-size: 12px;
  color: var(--text-muted);
  font-style: italic;
}
.fun-trivia {
  background: linear-gradient(135deg, rgba(59,130,246,.06), rgba(34,197,94,.04));
}
.fun-story-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 8px;
}
.fun-story-line {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.8;
  padding-left: 12px;
  border-left: 2px solid var(--accent-mid);
  margin-bottom: 6px;
}
.fun-moral {
  margin-top: 8px;
  font-size: 13px;
  color: var(--accent);
  font-style: italic;
  padding: 8px 12px;
  background: var(--accent-soft);
  border-radius: 8px;
}

/* ===== 响应式 ===== */
@media (max-width: 768px) {
  .fs-grid {
    grid-template-columns: 1fr;
  }
  .nl-aspects {
    grid-template-columns: 1fr 1fr;
  }
  .fx-best-worst {
    flex-direction: column;
  }
  .sx-lucks {
    grid-template-columns: 1fr;
  }
  .nl-number {
    font-size: 36px;
  }
  .fx-cell {
    min-height: 70px;
    padding: 6px 4px;
  }
  .fx-cell-star { font-size: 14px; }
}
@media (max-width: 480px) {
  .fs-card-header {
    padding: 12px 14px;
    flex-wrap: wrap;
  }
  .fs-card-body {
    padding: 14px;
  }
  .nl-number {
    font-size: 30px;
    min-width: 40px;
  }
  .gua-symbols {
    flex-direction: column;
    gap: 8px;
  }
  .dv-chart {
    height: 80px;
  }
}
