/* ============================================================
   称骨算命 (Chenggu) — Form + Result styles
   ============================================================ */

/* ---------- Form instructions ---------- */
.chenggu-instructions {
  background: linear-gradient(135deg, rgba(139, 0, 0, 0.06) 0%, rgba(212, 160, 23, 0.08) 100%);
  border: 1px solid rgba(139, 0, 0, 0.15);
  border-radius: 10px;
  padding: 14px 18px;
  margin-bottom: 18px;
}
.chenggu-step {
  font-size: 13px;
  line-height: 1.9;
  color: #2d1b0e;
}
.chenggu-step strong {
  color: #8b0000;
  font-family: 'Noto Serif SC', serif;
  font-size: 15px;
}

/* ---------- 结果页: 骨重明细 ---------- */

.cg-weight-summary {
  background: #fdf6ec;
  border: 1px solid #e8d5b7;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 18px;
}
.cg-weight-total {
  text-align: center;
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px dashed #d9cbb5;
}
.cg-weight-total-label {
  font-size: 14px;
  color: #6b4c3b;
  letter-spacing: 3px;
  margin-bottom: 10px;
}
.cg-weight-total-value {
  font-family: 'Noto Serif SC', serif;
  font-size: 42px;
  font-weight: 700;
  background: linear-gradient(135deg, #8b0000 0%, #c41e3a 50%, #d4a017 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: #8b0000;
  letter-spacing: 4px;
  line-height: 1.3;
}
.cg-weight-total-num {
  font-size: 14px;
  color: #6b4c3b;
  margin-top: 4px;
  font-style: italic;
}

.cg-weight-breakdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.cg-weight-item {
  background: #fff;
  border: 1px solid #e8d5b7;
  border-radius: 8px;
  padding: 12px 10px;
  text-align: center;
}
.cg-weight-item-label {
  font-size: 12px;
  color: #8b0000;
  letter-spacing: 2px;
  margin-bottom: 6px;
}
.cg-weight-item-desc {
  font-size: 15px;
  color: #2d1b0e;
  margin-bottom: 8px;
  font-family: 'Noto Serif SC', serif;
}
.cg-weight-item-weight {
  font-size: 17px;
  font-weight: 700;
  color: #d4a017;
  font-family: 'Noto Serif SC', serif;
}

/* ---------- 歌诀 card (传统古风) ---------- */
.cg-poem-card {
  background: linear-gradient(135deg, #fef8eb 0%, #fdf6ec 100%);
  border: 1px solid #e4c97a;
  border-radius: 12px;
  padding: 24px 28px;
  margin-bottom: 18px;
  text-align: center;
  position: relative;
}
.cg-poem-card::before {
  content: '袁天罡称骨歌';
  position: absolute;
  top: -10px;
  left: 18px;
  background: #8b0000;
  color: #fff;
  padding: 2px 14px;
  border-radius: 4px;
  font-size: 12px;
  letter-spacing: 2px;
}
.cg-poem-line {
  font-family: 'Noto Serif SC', serif;
  font-size: 18px;
  line-height: 2.1;
  color: #2d1b0e;
  letter-spacing: 3px;
}
.cg-poem-footer {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px dashed #d9cbb5;
  font-size: 14px;
  color: #6b4c3b;
  font-style: italic;
}

/* ---------- 白话解读 card — 对标八字 .reading-card ---------- */
.cg-explain-card {
  background: #fdf6ec;
  border: 1px solid #e8d5b7;
  border-left: 4px solid #8b0000;
  border-radius: 14px;
  padding: 22px 26px;
  margin-bottom: 18px;
}
.cg-explain-title {
  font-family: 'Noto Serif SC', serif;
  font-size: 20px;
  color: #8b0000;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px dashed rgba(139, 0, 0, 0.15);
  font-weight: 700;
}
/* 正文对标 .reading-text 16px / line-height 2 */
.cg-explain-body {
  font-size: 16px;
  line-height: 2;
  color: #2d1b0e;
}

/* ---------- 人生三阶段 (青年/中年/晚年) ---------- */
.cg-phases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}
.cg-phase-card {
  background: #fff;
  border: 1px solid #e8d5b7;
  border-top: 4px solid #d4a017;
  border-radius: 12px;
  padding: 22px 24px;
}
.cg-phase-card.cg-phase-youth { border-top-color: #4b9361; }
.cg-phase-card.cg-phase-mid   { border-top-color: #d4a017; }
.cg-phase-card.cg-phase-late  { border-top-color: #8b0000; }
.cg-phase-title {
  font-family: 'Noto Serif SC', serif;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.cg-phase-card.cg-phase-youth .cg-phase-title { color: #2d8a4e; }
.cg-phase-card.cg-phase-mid   .cg-phase-title { color: #8b6032; }
.cg-phase-card.cg-phase-late  .cg-phase-title { color: #8b0000; }
/* 正文对标 .reading-text 16px / line-height 2 */
.cg-phase-body {
  font-size: 16px;
  line-height: 2;
  color: #2d1b0e;
}

/* ---------- 分项运势 grid (事业/财运/姻缘/健康/子女) ---------- */
.cg-aspects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}
.cg-aspect-item {
  background: #fff;
  border: 1px solid #e8d5b7;
  border-left: 4px solid #d4a017;
  border-radius: 12px;
  padding: 20px 22px;
}
.cg-aspect-label {
  font-family: 'Noto Serif SC', serif;
  font-size: 18px;
  font-weight: 700;
  color: #8b0000;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
/* 正文对标 .reading-text 16px / line-height 2 */
.cg-aspect-body {
  font-size: 16px;
  color: #2d1b0e;
  line-height: 2;
}

/* 响应式 */
@media (max-width: 640px) {
  .cg-weight-breakdown { grid-template-columns: repeat(2, 1fr); }
  .cg-phases-grid { grid-template-columns: 1fr; }
  .cg-aspects-grid { grid-template-columns: 1fr; }
  .cg-weight-total-value { font-size: 32px; }
  .cg-poem-line { font-size: 15px; letter-spacing: 2px; }
}
