/* ============================================
   九宫八卦 — 组件样式
   八卦图/五行/命盘/运势条
   ============================================ */

/* 八卦旋转背景 */
.bagua-svg {
  position: absolute;
  opacity: 0.04;
  pointer-events: none;
}

/* 五行色彩 */
.element-wood  { color: #4a8c5c; }
.element-fire  { color: #c23a2e; }
.element-earth { color: #c9a96e; }
.element-metal { color: #d4d4dc; }
.element-water { color: #4a6fa5; }

/* 五行背景色 */
.bg-wood  { background: rgba(74,140,92,0.1); }
.bg-fire  { background: rgba(194,58,46,0.1); }
.bg-earth { background: rgba(201,169,110,0.1); }
.bg-metal { background: rgba(212,212,220,0.1); }
.bg-water { background: rgba(74,111,165,0.1); }

/* 命盘圆环 */
.chart-ring {
  width: 320px;
  height: 320px;
  border-radius: 50%;
  border: 1px solid var(--border-light);
  position: relative;
  margin: var(--space-lg) auto;
}
.chart-ring::before {
  content: '';
  position: absolute;
  inset: 30px;
  border-radius: 50%;
  border: 1px solid var(--border);
}
.chart-ring::after {
  content: '命';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 2rem;
  color: var(--gold);
  font-weight: 900;
  opacity: 0.3;
}

/* 宫位标签 */
.palace {
  position: absolute;
  font-size: 0.75rem;
  color: var(--text-secondary);
  text-align: center;
  width: 60px;
}
.palace .palace-name {
  color: var(--gold);
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 2px;
}
.palace .palace-star {
  color: var(--vermilion-light);
  font-size: 0.7rem;
}

/* 天干地支标注 */
.gz-tag {
  display: inline-block;
  padding: 2px 8px;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  border: 1px solid var(--border);
  margin: 2px;
}
.gz-tag.heavenly { color: var(--gold); border-color: var(--gold-dark); }
.gz-tag.earthly  { color: var(--vermilion-light); border-color: var(--vermilion-dark); }

/* 印章样式 */
.seal-stamp {
  width: 60px;
  height: 60px;
  border: 2px solid var(--vermilion);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--vermilion);
  transform: rotate(-5deg);
  opacity: 0.8;
}

/* 装饰性卦象 */
.trigram {
  display: flex;
  flex-direction: column;
  gap: 3px;
  align-items: center;
}
.trigram-line {
  width: 24px;
  height: 4px;
  background: var(--gold);
}
.trigram-line.broken {
  width: 10px;
}
.trigram-line.broken::after {
  content: '';
  display: block;
  width: 10px;
  height: 4px;
  background: var(--gold);
  margin-left: 14px;
}

/* 运势指示条 */
.fortune-bar {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin: var(--space-sm) 0;
}
.fortune-bar .bar-label {
  color: var(--text-secondary);
  font-size: 0.8rem;
  min-width: 60px;
}
.fortune-bar .bar-track {
  flex: 1;
  height: 6px;
  background: var(--bg-deep);
  border-radius: 3px;
  overflow: hidden;
}
.fortune-bar .bar-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 1s var(--ease-out);
}
.fortune-bar .bar-fill.high   { background: linear-gradient(90deg, var(--gold-dark), var(--gold)); }
.fortune-bar .bar-fill.medium { background: linear-gradient(90deg, #6a6a5a, var(--gold-dark)); }
.fortune-bar .bar-fill.low    { background: linear-gradient(90deg, var(--vermilion-dark), var(--vermilion)); }
