/* ============================================================
   Enhanced Result Renderer - 通用结果展示样式
   用于紫微斗数、流年运势、大运分析、婚姻匹配等
   ============================================================ */

.enhanced-result {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
}

.er-header {
  text-align: center;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 2px solid #d4a017;
}

.er-icon {
  font-size: 40px;
  display: block;
  margin-bottom: 8px;
}

.er-header h1 {
  font-family: 'Noto Serif SC', serif;
  font-size: 26px;
  font-weight: 700;
  color: #8b0000;
}

/* Card Base */
.er-card {
  background: #fff;
  border: 1px solid #e8d5b7;
  border-radius: 14px;
  padding: 24px 28px;
  margin-bottom: 16px;
  box-shadow: 0 2px 8px rgba(139,0,0,0.04);
  position: relative;
  overflow: hidden;
}

.er-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #d4a017, #8b0000);
  opacity: 0.4;
}

.er-card h2 {
  font-family: 'Noto Serif SC', serif;
  font-size: 19px;
  font-weight: 700;
  color: #2d1b0e;
  margin-bottom: 14px;
}

.er-text {
  font-size: 15px;
  line-height: 1.9;
  color: #3d2b1e;
}

.er-text strong {
  color: #8b0000;
}

.er-text ul {
  padding-left: 20px;
  margin: 8px 0;
}

.er-text li {
  margin-bottom: 6px;
}

/* Score Card */
.er-score-card {
  text-align: center;
  padding: 32px;
}

.er-score-ring {
  display: inline-block;
  margin: 12px 0 16px;
}

.er-score-num {
  font-family: 'Noto Serif SC', serif;
  font-size: 52px;
  font-weight: 700;
  line-height: 1;
}

.er-score-label {
  font-size: 16px;
  color: #6b4c3b;
  margin-top: 4px;
}

.er-excellent .er-score-num { color: #2d8a4e; }
.er-good .er-score-num { color: #d4a017; }
.er-fair .er-score-num { color: #e67e22; }
.er-poor .er-score-num { color: #c41e3a; }

.er-score-bar {
  width: 100%;
  max-width: 400px;
  height: 8px;
  background: #f0e6d3;
  border-radius: 4px;
  margin: 0 auto 16px;
  overflow: hidden;
}

.er-bar-fill {
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, #c41e3a, #d4a017, #2d8a4e);
  transition: width 0.8s ease;
}

/* List Cards */
.er-list {
  list-style: none;
  padding: 0;
}

.er-list li {
  padding: 10px 14px 10px 36px;
  margin-bottom: 8px;
  border-radius: 8px;
  font-size: 15px;
  line-height: 1.7;
  position: relative;
}

.er-list-icon {
  position: absolute;
  left: 10px;
  top: 10px;
  font-size: 14px;
  font-weight: 700;
}

.er-positive .er-list li {
  background: rgba(45,138,78,0.06);
  border-left: 3px solid #2d8a4e;
}
.er-positive .er-list-icon { color: #2d8a4e; }

.er-warning .er-list li {
  background: rgba(196,30,58,0.05);
  border-left: 3px solid #c41e3a;
}
.er-warning .er-list-icon { color: #c41e3a; }

.er-advice .er-list li {
  background: rgba(212,160,23,0.06);
  border-left: 3px solid #d4a017;
}
.er-advice .er-list-icon { color: #d4a017; }

/* Monthly Grid */
.er-monthly-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.er-month {
  padding: 12px 10px;
  border-radius: 10px;
  text-align: center;
  border: 1px solid #e8d5b7;
}

.er-month-num {
  font-family: 'Noto Serif SC', serif;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
}

.er-month-text {
  font-size: 12px;
  line-height: 1.5;
  color: #6b4c3b;
}

.er-month-good { background: rgba(45,138,78,0.06); border-color: rgba(45,138,78,0.3); }
.er-month-good .er-month-num { color: #2d8a4e; }

.er-month-bad { background: rgba(196,30,58,0.05); border-color: rgba(196,30,58,0.2); }
.er-month-bad .er-month-num { color: #c41e3a; }

.er-month-mid { background: rgba(212,160,23,0.04); }
.er-month-mid .er-month-num { color: #b8860b; }

/* Disclaimer */
.er-disclaimer {
  text-align: center;
  padding: 16px;
  margin-top: 20px;
  font-size: 12px;
  color: #999;
  border-top: 1px solid #e8d5b7;
}

/* Responsive */
@media (max-width: 600px) {
  .er-monthly-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .er-card {
    padding: 18px 16px;
  }
}
