/* ==========================================================================
   测算结果完整报告页样式（与原站深棕 + 羊皮金卡片 + 4大Tab一致）
   ========================================================================== */

.result-page {
  background: var(--bg-result);
  padding-bottom: 1.4rem;
}

/* 顶部基础信息卡片 */
.res-box {
  width: 10rem;
  padding-top: 0.72rem;
  position: relative;
  margin-top: 0.36rem;
}

.res-title-banner {
  position: relative;
  z-index: 5;
  display: block;
  width: 8.66667rem;
  height: 1.56rem;
  margin: 0 auto -0.68rem;
  object-fit: contain;
}

.res-card {
  position: relative;
  width: 9.6rem;
  margin: 0 auto;
  padding: 1.04rem 0.42rem 0.52rem;
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: 0.26667rem;
}

.info-grid {
  display: flex;
  flex-direction: column;
  gap: 0.24rem;
  font-size: 0.36rem;
  color: #36271b;
}

.info-line {
  display: flex;
  align-items: baseline;
  line-height: 1.55;
}

.info-line__label {
  color: #82753a;
  flex-shrink: 0;
  min-width: 1.85rem;
}

.info-line__val {
  color: #36271b;
  font-weight: 500;
}

.info-line__val--strong {
  color: #c82b12;
  font-weight: 700;
}

/* 五行条形分布 */
.wuxing-bars {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.16rem;
  margin: 0.28rem 0;
}

.wuxing-item {
  background: #fff8e7;
  border: 1px solid #ecc673;
  border-radius: 0.14rem;
  padding: 0.16rem 0.08rem;
  text-align: center;
}

.wuxing-item__elem {
  font-size: 0.34rem;
  font-weight: 700;
  color: #5a2908;
}

.wuxing-item__cnt {
  font-size: 0.44rem;
  font-weight: 800;
  color: #ef5011;
}

/* 吸顶 4 大 Tab 导航 */
.result-tabs {
  position: sticky;
  top: 1.06667rem;
  z-index: 90;
  width: 10rem;
  background: #622600;
  border-bottom: 1px solid rgba(255, 193, 43, 0.25);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 0.4rem;
}

.result-tab-btn {
  height: 1.14rem;
  background: none;
  border: none;
  color: #c88151;
  font-size: 0.38rem;
  font-weight: 600;
  cursor: pointer;
  position: relative;
  transition: color 0.2s;
}

.result-tab-btn.active {
  color: #ff9d2c;
  font-size: 0.42667rem;
  font-weight: 700;
}

.result-tab-btn.active::after {
  content: "";
  position: absolute;
  bottom: 0.12rem;
  left: 50%;
  transform: translateX(-50%);
  width: 0.92rem;
  height: 0.1rem;
  border-radius: 0.06rem;
  background: #ff9d2c;
}

.guigu-reminder-img {
  display: block;
  width: 9.46667rem;
  margin: 0.48rem auto 0.2rem;
}

/* 章节副标题彩带 */
.para-title {
  width: 7.30667rem;
  height: 0.94667rem;
  line-height: 0.94667rem;
  text-align: center;
  margin: 0.42rem auto 0.38rem;
  background: url("/assets/img/para_title.png") no-repeat center / 100% 100%;
  font-family: "FZYanSongS-B-GB", "PingFang SC", serif;
  font-size: 0.44rem;
  font-weight: 700;
  color: #5a2908;
}

.para-title:first-child {
  margin-top: 0;
}

/* 鬼谷子百数卦象卡片 */
.guaxian-box {
  width: 8.66rem;
  margin: 0 auto 0.46rem;
  padding: 0.48rem 0.3rem;
  background: var(--bg-card-inner);
  border: 1px solid var(--border-gold);
  border-radius: 0.16rem;
  font-family: "ALMM", "FZYanSongS-B-GB", serif;
  color: var(--text-body);
}

.guaxian-top {
  display: flex;
  align-items: center;
  justify-content: space-around;
  margin-bottom: 0.56rem;
}

.guaxian-shu {
  text-align: center;
}

.shu-title {
  font-size: 0.44rem;
  margin-bottom: 0.24rem;
}

.shu-title span {
  color: var(--accent-red);
  font-size: 0.6rem;
  font-weight: 700;
}

.shu-name {
  font-size: 0.62rem;
  color: #111;
  font-weight: 700;
  margin-bottom: 0.26rem;
}

.shu-tier {
  font-size: 0.4rem;
}

.shu-tier span {
  color: var(--accent-red);
}

.guaxian-symbol-box {
  text-align: center;
}

.gua-symbol {
  font-size: 2.5rem;
  line-height: 1;
  color: #241608;
}

.gua-name {
  font-size: 0.42rem;
  margin-top: 0.1rem;
  color: #5a2908;
}

.guaxian-bottom {
  display: flex;
  gap: 0.22rem;
}

.gua-star {
  width: 2.26rem;
  min-height: 1.32rem;
  background: #cc9829;
  color: #fff;
  border-radius: 0.08rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.48rem;
  flex-shrink: 0;
}

.gua-hour {
  flex: 1;
  min-height: 1.32rem;
  background: #cc9829;
  color: #fff;
  border-radius: 0.08rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.14rem 0.2rem;
  text-align: center;
}

.gua-hour__word {
  font-size: 0.42rem;
  font-weight: 700;
}

.gua-hour__note {
  font-family: "PingFang SC", sans-serif;
  font-size: 0.3rem;
  opacity: 0.94;
  margin-top: 0.06rem;
}

.keywords-box {
  text-align: center;
  font-size: 0.42rem;
  line-height: 1.85;
}

.keywords-box div:first-child {
  font-size: 0.48rem;
  color: #000;
  font-weight: 700;
}

.verse-box {
  padding: 0.48rem 0.56rem;
  text-align: center;
  font-family: "kaiti", "FZYanSongS-B-GB", serif;
  font-size: 0.44rem;
  line-height: 1.9;
  color: #4a280a;
}

.para-subhead {
  font-size: 0.4rem;
  color: var(--accent-red);
  font-weight: 700;
  margin: 0.34rem 0 0.16rem 0.16rem;
}

.para-item {
  font-size: 0.38rem;
  color: var(--text-body);
  line-height: 1.85;
  padding: 0 0.16rem;
  margin-bottom: 0.38rem;
  text-align: justify;
}

.para-item strong {
  color: var(--accent-red);
  font-weight: 700;
}

/* 温馨提示小节 */
.tip-heading {
  position: relative;
  font-family: "ALMM", serif;
  font-size: 0.44rem;
  color: #6d5a04;
  text-align: center;
  margin: 0.1rem 0 0.36rem;
}

.tip-heading::before,
.tip-heading::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 1.3rem;
  height: 1px;
  background: #8a7316;
}

.tip-heading::before { left: 1.6rem; }
.tip-heading::after { right: 1.6rem; }

.tip-row {
  position: relative;
  font-size: 0.34667rem;
  color: #82753a;
  padding-left: 0.52rem;
  line-height: 1.75;
  margin-bottom: 0.24rem;
}

.tip-row span {
  position: absolute;
  left: 0;
  top: 0.12rem;
  width: 0.38rem;
  height: 0.38rem;
  border-radius: 50%;
  background: #c2723c;
  color: #fff;
  font-size: 0.26rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 未来一年十二宫吉凶 4x4 环形盘 */
.shier-grid {
  width: 8.66rem;
  margin: 0 auto 0.48rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(4, 1.82rem);
  gap: 0.12rem;
}

.shier-cell {
  background: #fff8e7;
  border: 1px solid #d9a441;
  border-radius: 0.12rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.12rem;
  text-align: center;
}

.shier-cell__gong {
  font-size: 0.34rem;
  font-weight: 700;
  color: #5a2908;
  margin-bottom: 0.1rem;
}

.shier-cell__ji {
  font-size: 0.32rem;
  font-weight: 700;
  padding: 0.04rem 0.18rem;
  border-radius: 0.2rem;
  background: #fae4b0;
  color: #b82119;
}

.shier-cell__ji.lvl-good {
  background: #ee5e22;
  color: #fff;
}

.shier-cell__ji.lvl-mid {
  background: #d9971e;
  color: #fff;
}

.shier-cell__ji.lvl-warn {
  background: #8b7355;
  color: #fff;
}

.shier-center-tile {
  grid-column: 2 / span 2;
  grid-row: 2 / span 2;
  border-radius: 0.14rem;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff4d6;
  border: 1px solid #e6be6c;
}

.shier-center-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 12个月运势曲线图 + 月度详情 */
.chart-wrap {
  width: 8.66rem;
  margin: 0 auto 0.42rem;
  background: #fff8e7;
  border: 1px solid var(--border-gold);
  border-radius: 0.18rem;
  padding: 0.32rem 0.22rem 0.24rem;
}

.chart-canvas {
  width: 100%;
  height: 4.8rem;
  display: block;
}

.month-chips {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.12rem;
  margin: 0.28rem 0 0.32rem;
}

.month-chip {
  padding: 0.14rem 0.06rem;
  border-radius: 0.12rem;
  border: 1px solid #e2c07a;
  background: #fff;
  color: #5a2908;
  font-size: 0.29333rem;
  text-align: center;
  cursor: pointer;
}

.month-chip.active {
  background: #ef5011;
  border-color: #ef5011;
  color: #fff;
  font-weight: 700;
}

.month-detail-card {
  background: #fff8e7;
  border-left: 4px solid #ef5011;
  border-radius: 0.14rem;
  padding: 0.3rem 0.32rem;
  font-size: 0.36rem;
  line-height: 1.75;
  color: #3e3a38;
  margin-bottom: 0.32rem;
}

.month-list-toggle {
  display: block;
  margin: 0 auto 0.2rem;
  background: none;
  border: 1px solid #cc9829;
  color: #8c5a10;
  border-radius: 0.4rem;
  padding: 0.12rem 0.4rem;
  font-size: 0.32rem;
  cursor: pointer;
}

/* 助力方案幸运卡片 */
.lucky-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.2rem;
  margin-bottom: 0.42rem;
}

.lucky-item {
  background: #fff8e7;
  border: 1px solid #e5bd67;
  border-radius: 0.16rem;
  padding: 0.24rem 0.14rem;
  text-align: center;
}

.lucky-item__label {
  font-size: 0.28rem;
  color: #8c6a2b;
  margin-bottom: 0.08rem;
}

.lucky-item__val {
  font-size: 0.34667rem;
  font-weight: 700;
  color: #c82b12;
}

/* 永久保存结果表单 */
.save-form-box {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 0.16rem 0.24rem 0.2rem;
}

.save-input-row {
  display: flex;
  align-items: center;
  background: #fff;
  border: 1px solid #d9cda9;
  border-radius: 0.56rem;
  padding: 0.22rem 0.36rem;
}

.save-input-row label {
  font-weight: 700;
  color: #e95a48;
  font-size: 0.34667rem;
  margin-right: 0.16rem;
  flex-shrink: 0;
}

.save-input-row input {
  flex: 1;
  border: none;
  font-size: 0.34667rem;
  color: #34230b;
}

.save-submit-btn {
  height: 1.12rem;
  border-radius: 0.56rem;
  border: none;
  background: #e73d05;
  color: #fff0c5;
  font-size: 0.4rem;
  font-weight: 700;
  cursor: pointer;
}

.save-status-note {
  text-align: center;
  font-size: 0.30667rem;
  color: #7c5c26;
}

/* 订单查询页样式 */
.orders-page {
  background: var(--bg-brown);
  min-height: 100vh;
  padding-bottom: 1.2rem;
}

.orders-search-card {
  width: 9.2rem;
  margin: 0.48rem auto;
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: 0.28rem;
  padding: 0.48rem 0.4rem;
}

.orders-search-card h2 {
  font-size: 0.46rem;
  color: #5a2908;
  text-align: center;
  margin-bottom: 0.34rem;
  font-family: "FZYanSongS-B-GB", serif;
}

.order-item-card {
  width: 9.2rem;
  margin: 0 auto 0.3rem;
  background: #fffbf1;
  border: 1px solid #e2be76;
  border-radius: 0.24rem;
  padding: 0.34rem 0.38rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.24rem;
}

.order-item-meta {
  font-size: 0.32rem;
  color: #6b4e27;
  line-height: 1.65;
}

.order-item-meta strong {
  font-size: 0.4rem;
  color: #34230b;
}

.order-tag {
  display: inline-block;
  font-size: 0.26667rem;
  padding: 0.02rem 0.16rem;
  border-radius: 0.2rem;
  margin-left: 0.12rem;
}

.order-tag--paid {
  background: #e6f6ec;
  color: #16803d;
}

.order-tag--pending {
  background: #fff0e0;
  color: #d9570c;
}
