/**
 * 择日功能页面样式
 * 依赖: variables.css, common.css
 */

/* ========== 主容器 ========== */
.zeji-container {
  padding: var(--content-padding);
  padding-top: calc(var(--navbar-height) + 16px);
  padding-bottom: 40px;
  max-width: 600px;
  margin: 0 auto;
}

.zeji-container section {
  margin-bottom: 20px;
}

.zeji-container h3 {
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-semibold);
  color: var(--text-primary);
  margin: 0 0 12px;
}

.zeji-container .optional {
  font-size: var(--font-size-xs);
  color: var(--text-muted);
  font-weight: var(--font-weight-normal);
}

/* ========== 用事选择网格 ========== */
.purpose-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.purpose-item {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 14px 8px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
  border: 2px solid transparent;
}

.purpose-item:active {
  transform: scale(0.95);
}

.purpose-item.active {
  border-color: var(--primary);
  background: rgba(var(--primary-rgb), 0.08);
}

.purpose-item .purpose-icon {
  font-size: 24px;
  display: block;
  margin-bottom: 4px;
}

.purpose-item .purpose-name {
  font-size: var(--font-size-xs);
  color: var(--text-primary);
  font-weight: var(--font-weight-medium);
}

/* 更多分类 */
.purpose-more {
  margin-top: 10px;
}

.more-toggle {
  width: 100%;
  padding: 8px;
  background: none;
  border: 1px dashed var(--border);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: var(--font-size-sm);
  cursor: pointer;
  transition: color var(--transition-fast);
}

.more-toggle:active {
  color: var(--primary);
}

.more-grid {
  display: none;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 10px;
}

.more-grid.show {
  display: grid;
}

/* ========== 日期范围 ========== */
.date-range {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 12px 14px;
  box-shadow: var(--shadow-sm);
}

.date-range input[type="date"] {
  flex: 1;
  padding: 8px 10px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-size: var(--font-size-sm);
  color: var(--text-primary);
  background: var(--bg-page);
}

.date-range span {
  font-size: var(--font-size-sm);
  color: var(--text-muted);
}

/* ========== 坐山选择 ========== */
.mountain-section select {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  font-size: var(--font-size-sm);
  color: var(--text-primary);
  background: var(--bg-card);
  box-shadow: var(--shadow-sm);
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%238B7355' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}

/* ========== 八字输入 ========== */
.bazi-inputs {
  display: flex;
  gap: 10px;
}

.bazi-inputs input,
.bazi-inputs select {
  flex: 1;
  padding: 10px 12px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  font-size: var(--font-size-sm);
  color: var(--text-primary);
  background: var(--bg-card);
  box-shadow: var(--shadow-sm);
}

/* ========== 搜索按钮 ========== */
.search-btn {
  width: 100%;
  padding: 14px;
  background: var(--gradient-primary-solid);
  color: #fff;
  border: none;
  border-radius: var(--radius-lg);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-semibold);
  cursor: pointer;
  transition: transform var(--transition-fast), opacity var(--transition-fast);
  margin-top: 10px;
}

.search-btn:active {
  transform: scale(0.98);
  opacity: 0.9;
}

.search-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ========== 进度条 ========== */
.progress-bar {
  position: relative;
  width: 100%;
  height: 24px;
  background: var(--bg-page);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-top: 12px;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
}

.progress-fill {
  height: 100%;
  background: var(--gradient-primary);
  border-radius: var(--radius-full);
  transition: width 0.3s ease;
  width: 0;
}

.progress-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 11px;
  font-weight: var(--font-weight-semibold);
  color: var(--text-primary);
}

/* ========== 历史记录 ========== */
.history-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.history-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform var(--transition-fast);
}

.history-item:active {
  transform: scale(0.98);
}

.history-item .history-purpose {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  color: var(--text-primary);
}

.history-item .history-date {
  font-size: var(--font-size-xs);
  color: var(--text-muted);
}

/* ========== 结果卡片 ========== */
.result-card {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  padding: 14px 16px;
  margin-bottom: 10px;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  transition: transform var(--transition-fast);
}

.result-card:active {
  transform: scale(0.98);
}

.result-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.result-card-date {
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-semibold);
  color: var(--text-primary);
}

.result-card-lunar {
  font-size: var(--font-size-xs);
  color: var(--text-secondary);
  margin-top: 2px;
}

.result-card-ganzhi {
  font-size: var(--font-size-xs);
  color: var(--text-muted);
}

.result-card-summary {
  font-size: var(--font-size-xs);
  color: var(--text-secondary);
  margin-top: 6px;
  line-height: 1.5;
}

/* ========== 评分徽章 ========== */
.score-badge {
  display: inline-block;
  font-size: 12px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  color: #fff;
  font-weight: var(--font-weight-semibold);
}

.score-badge--daji { background: linear-gradient(135deg, #d4af37, #f0c14b); }
.score-badge--ji { background: linear-gradient(135deg, #52c41a, #389e0d); }
.score-badge--ping { background: linear-gradient(135deg, #8c8c8c, #595959); }
.score-badge--xiong { background: linear-gradient(135deg, #ff4d4f, #cf1322); }
.score-badge--daxiong { background: linear-gradient(135deg, #820014, #5c0011); }
.score-badge--blocked { background: #434343; }

/* ========== 评分进度条 ========== */
.score-bar {
  height: 6px;
  background: var(--bg-page);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin: 4px 0;
}

.score-fill {
  height: 100%;
  border-radius: var(--radius-full);
  transition: width 0.4s ease;
}

.score-fill--l2 { background: #1890ff; }
.score-fill--l3 { background: #722ed1; }
.score-fill--l4 { background: #fa8c16; }
.score-fill--l5 { background: #13c2c2; }

/* ========== 时辰网格 ========== */
.hour-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 12px;
}

.hour-cell {
  background: var(--bg-page);
  border-radius: var(--radius-md);
  padding: 10px 6px;
  text-align: center;
  transition: background var(--transition-fast);
}

.hour-cell .hour-name {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  color: var(--text-primary);
  display: block;
}

.hour-cell .hour-star {
  font-size: 10px;
  color: var(--text-muted);
  display: block;
  margin-top: 2px;
}

.hour-cell .hour-score {
  font-size: 11px;
  font-weight: var(--font-weight-semibold);
  display: block;
  margin-top: 2px;
}

.hour-cell--ji {
  background: #e6f7e6;
  border: 1px solid #b7eb8f;
}
.hour-cell--ji .hour-score { color: #389e0d; }

.hour-cell--xiong {
  background: #fff1f0;
  border: 1px solid #ffa39e;
}
.hour-cell--xiong .hour-score { color: #cf1322; }

.hour-cell--ping {
  background: #f5f5f5;
  border: 1px solid #d9d9d9;
}
.hour-cell--ping .hour-score { color: #595959; }

/* ========== 详情面板 ========== */
.detail-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  background: var(--bg-page);
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
  margin-top: -10px;
  padding: 0 14px;
}

.detail-panel.open {
  max-height: 800px;
  padding: 14px;
}

.detail-panel .layer-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.detail-panel .layer-label {
  font-size: 12px;
  color: var(--text-secondary);
  width: 50px;
  flex-shrink: 0;
}

.detail-panel .layer-bar-wrap {
  flex: 1;
}

.detail-panel .layer-score-val {
  font-size: 11px;
  color: var(--text-muted);
  width: 32px;
  text-align: right;
  flex-shrink: 0;
}

/* ========== 被否决折叠区 ========== */
.blocked-section {
  margin-top: 20px;
}

.blocked-toggle {
  width: 100%;
  padding: 10px;
  background: #f0f0f0;
  border: none;
  border-radius: var(--radius-md);
  color: var(--text-muted);
  font-size: var(--font-size-sm);
  cursor: pointer;
  text-align: center;
}

.blocked-list {
  display: none;
  margin-top: 8px;
}

.blocked-list.show {
  display: block;
}

.blocked-list .result-card {
  opacity: 0.6;
  border-left: 3px solid #8c8c8c;
}

/* ========== 导出报告按钮 ========== */
.zjr-export-area {
  margin-top: 14px;
  text-align: center;
}

.zjr-export-btn {
  display: inline-block;
  padding: 10px 28px;
  border: 1px solid var(--primary);
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius-lg);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.zjr-export-btn:active {
  transform: scale(0.96);
  opacity: 0.9;
}

/* 复制提示 toast */
.zjr-copy-toast {
  position: fixed;
  bottom: 30%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: rgba(0, 0, 0, 0.78);
  color: #fff;
  padding: 10px 24px;
  border-radius: var(--radius-md);
  font-size: var(--font-size-sm);
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
  white-space: nowrap;
}

.zjr-copy-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ========== 响应式 ========== */
@media screen and (min-width: 768px) {
  .zeji-container {
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* ========== 月历视图 (calendar-haoyun 风格) ========== */
.zeji-cal-section {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  padding: 12px 8px 10px;
  box-shadow: var(--shadow-md);
}

.zeji-cal-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 6px;
}

.zeji-cal-nav-btn {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  border: none;
  background: transparent;
  font-size: 26px;
  line-height: 1;
  color: #8b6914;
  cursor: pointer;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.zeji-cal-nav-btn:active {
  background: rgba(212, 175, 55, 0.2);
  transform: scale(0.92);
}

.zeji-cal-month {
  min-width: 140px;
  text-align: center;
  font-size: 18px;
  font-weight: var(--font-weight-semibold);
  color: var(--text-primary);
}

.zeji-cal-ganzhi-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 6px;
  margin-bottom: 4px;
}

.zeji-cal-year-ganzhi {
  font-size: 15px;
  font-weight: bold;
  color: #8b6914;
}

.zeji-cal-tip {
  font-size: var(--font-size-xs);
  color: var(--text-muted);
}

.zeji-cal-loading {
  padding: 40px 0;
  text-align: center;
  font-size: var(--font-size-sm);
  color: var(--text-muted);
}

/* 月历表格: 参照 calendar-haoyun.html 的表格布局 */
.zeji-calendar {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  -webkit-user-select: none;
  user-select: none;
}

.zeji-calendar th {
  padding: 6px 0;
  color: #ffffff;
  font-size: 13px;
  font-weight: normal;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
  background: linear-gradient(180deg, #d4a000 0%, #cc9900 100%);
  border: 0.5px solid #b38600;
}

.zeji-calendar th:nth-child(6),
.zeji-calendar th:nth-child(7) {
  background: linear-gradient(180deg, #e60000 0%, #cc0000 100%);
  border: 0.5px solid #b30000;
}

.zeji-calendar td {
  border: 0.5px solid #e2e8f0;
  padding: 0;
  height: 78px;
  position: relative;
  background-color: #FFFDF6;
  vertical-align: top;
  cursor: pointer;
}

.zeji-calendar td.other-month {
  background-color: #FBF7EC;
  cursor: default;
}

.zeji-calendar td.today {
  background-color: #33e7ff49;
}

.zeji-calendar td:active:not(.other-month) {
  background-color: #ffe6f0;
}

.zeji-calendar .cell-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  padding: 3px 1px 2px;
}

.zeji-calendar .date-number {
  font-size: 14px;
  font-weight: bold;
  line-height: 1.2;
  color: var(--text-primary);
}

.zeji-calendar .lunar-text {
  font-size: 10px;
  color: #666;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  max-width: 100%;
}

.zeji-calendar .solar-term {
  color: #0066cc;
}

.zeji-calendar .ganzhi-text {
  font-size: 10px;
  color: #999;
  line-height: 1.2;
  white-space: nowrap;
}

/* 每日吉凶评分徽标 */
.zeji-calendar .cell-score {
  margin-top: 1px;
  font-size: 10px;
  font-weight: bold;
  line-height: 1.4;
  padding: 0 4px;
  border-radius: 8px;
  color: #fff;
  white-space: nowrap;
}

.zeji-calendar .cell-score.lv-daji { background: linear-gradient(135deg, #d4af37, #f0c14b); }
.zeji-calendar .cell-score.lv-ji { background: linear-gradient(135deg, #52c41a, #389e0d); }
.zeji-calendar .cell-score.lv-ping { background: linear-gradient(135deg, #8c8c8c, #595959); }
.zeji-calendar .cell-score.lv-xiong { background: linear-gradient(135deg, #ff4d4f, #cf1322); }
.zeji-calendar .cell-score.lv-daxiong { background: linear-gradient(135deg, #820014, #5c0011); }
.zeji-calendar .cell-score.lv-blocked { background: #434343; }

/* 图例 */
.zeji-cal-legend {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px 8px;
  margin-top: 8px;
  font-size: var(--font-size-xs);
  color: var(--text-secondary);
}

.zeji-cal-legend .lv-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 2px;
  vertical-align: -1px;
}

.zeji-cal-legend .lv-dot.lv-daji { background: #d4af37; }
.zeji-cal-legend .lv-dot.lv-ji { background: #52c41a; }
.zeji-cal-legend .lv-dot.lv-ping { background: #8c8c8c; }
.zeji-cal-legend .lv-dot.lv-xiong { background: #ff4d4f; }
.zeji-cal-legend .lv-dot.lv-daxiong { background: #820014; }
.zeji-cal-legend .lv-dot.lv-blocked { background: #434343; }

/* ========== 四柱预览 ========== */
.bazi-pillars {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.bazi-pillars:empty {
  display: none;
}

.bazi-pillars .pillar {
  flex: 1;
  text-align: center;
  background: var(--bg-page);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 6px 0;
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-semibold);
  color: #8b6914;
}

.bazi-pillars .pillar i {
  display: block;
  font-style: normal;
  font-size: 10px;
  font-weight: var(--font-weight-normal);
  color: var(--text-muted);
  margin-bottom: 2px;
}

.bazi-pillars .pillar--empty {
  color: var(--text-muted);
}

/* ========== Task #44: 详情页分步分析报告 (仅追加, 勿改上方规则) ========== */

/* 报告内容较长, 解除面板高度上限 (覆盖上方 800px 限制) */
.detail-panel.open {
  max-height: none;
}

.zjr-report {
  margin-bottom: 14px;
}

.zjr-fail {
  padding: 12px;
  border-radius: var(--radius-md);
  background: #fff7f7;
  border: 1px dashed #e8b4b4;
  color: #c62828;
  font-size: 13px;
  text-align: center;
  margin-bottom: 12px;
}

.zjr-sub-heading {
  font-size: 13px;
  margin: 12px 0 8px;
  color: var(--text-secondary);
}

/* ---- 诊断概览 ---- */
.zjr-overview {
  background: linear-gradient(135deg, #fffdf6 0%, #fdf6e3 100%);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: var(--radius-lg);
  padding: 12px 14px;
  margin-bottom: 14px;
}

.zjr-ov-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.zjr-ov-title {
  font-size: 14px;
  font-weight: bold;
  color: #8b6914;
}

.zjr-ov-score {
  font-size: 34px;
  font-weight: bold;
  line-height: 1.2;
  color: #8b6914;
  margin-bottom: 8px;
}

.zjr-ov-score i {
  font-style: normal;
  font-size: 13px;
  font-weight: normal;
  color: var(--text-muted);
  margin-left: 2px;
}

.zjr-ov-rows {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 12px;
}

.zjr-ov-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-size: 12px;
  min-width: 0;
}

.zjr-ov-row span {
  color: var(--text-muted);
  flex-shrink: 0;
}

.zjr-ov-row b {
  color: var(--text-primary);
  font-weight: var(--font-weight-medium);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ---- 分步标题 (金色主题) ---- */
.zjr-step {
  margin-bottom: 14px;
}

.zjr-step-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: bold;
  color: #8b6914;
  padding: 6px 0 6px 10px;
  border-left: 4px solid #d4af37;
  background: linear-gradient(90deg, rgba(212, 175, 55, 0.12), transparent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-bottom: 10px;
}

.zjr-step-note {
  font-size: 11px;
  font-weight: normal;
  color: var(--text-muted);
}

.zjr-empty {
  font-size: 12px;
  color: var(--text-muted);
  padding: 10px;
  text-align: center;
}

/* ---- 硬检验证 ---- */
.zjr-hardcheck {
  padding: 10px 12px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: var(--font-weight-medium);
}

.zjr-hardcheck--pass {
  background: #e8f5e9;
  color: #2e7d32;
}

.zjr-hardcheck--fail {
  background: #ffebee;
  color: #c62828;
}

.zjr-hardcheck-warn {
  margin-top: 6px;
  padding: 8px 12px;
  border-radius: var(--radius-md);
  background: #fff8e1;
  color: #8a6d1a;
  font-size: 12px;
}

/* ---- 系统卡片 (可折叠) ---- */
.zjr-sys {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  margin-bottom: 8px;
  border-left: 4px solid #52c41a;
  overflow: hidden;
}

.zjr-sys--required { border-left-color: #d4af37; }
.zjr-sys--common { border-left-color: #52c41a; }
.zjr-sys--advanced { border-left-color: #9254de; }

.zjr-sys-head {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  min-height: 44px;
  padding: 8px 10px;
  border: none;
  background: none;
  text-align: left;
  cursor: pointer;
  font: inherit;
}

.zjr-sys-name {
  flex: 1;
  font-size: 13px;
  font-weight: var(--font-weight-semibold);
  color: var(--text-primary);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.zjr-pr-tag {
  flex-shrink: 0;
  font-size: 10px;
  line-height: 1;
  padding: 3px 6px;
  border-radius: 8px;
}

.zjr-pr-tag--required { background: rgba(212, 175, 55, 0.18); color: #8b6914; }
.zjr-pr-tag--common { background: rgba(82, 196, 26, 0.15); color: #389e0d; }
.zjr-pr-tag--advanced { background: rgba(146, 84, 222, 0.15); color: #722ed1; }

.zjr-verdict {
  flex-shrink: 0;
  font-size: 11px;
  line-height: 1;
  font-weight: bold;
  padding: 4px 8px;
  border-radius: 10px;
}

.zjr-v--ji { background: #e8f5e9; color: #2e7d32; }
.zjr-v--xiong { background: #ffebee; color: #c62828; }
.zjr-v--ping { background: #f5f5f5; color: #666; }

.zjr-sys-score {
  flex-shrink: 0;
  font-size: 13px;
  font-weight: bold;
  color: #8b6914;
  min-width: 24px;
  text-align: right;
}

.zjr-sys-arrow {
  flex-shrink: 0;
  font-size: 12px;
  color: var(--text-muted);
  transition: transform 0.25s ease;
}

.zjr-sys.open .zjr-sys-arrow {
  transform: rotate(180deg);
}

.zjr-sys-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.zjr-sys.open .zjr-sys-body {
  max-height: 1600px;
}

.zjr-sys-body-inner {
  position: relative;
  padding: 2px 12px 12px;
  border-top: 1px dashed var(--border-light);
}

/* "简化排盘"角标 */
.zjr-precision {
  position: absolute;
  top: 6px;
  right: 0;
  font-size: 10px;
  line-height: 1;
  padding: 3px 8px 3px 10px;
  background: rgba(212, 175, 55, 0.18);
  color: #8b6914;
  border-radius: 8px 0 0 8px;
}

.zjr-field {
  margin-top: 10px;
}

.zjr-field-label {
  display: inline-block;
  font-size: 11px;
  color: #8b6914;
  background: rgba(212, 175, 55, 0.12);
  border-radius: 6px;
  padding: 2px 8px;
  margin-bottom: 4px;
}

.zjr-field-text {
  font-size: 12px;
  line-height: 1.7;
  color: var(--text-secondary);
  word-break: break-word;
}

/* items 三列表格 */
.zjr-items {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
  font-size: 12px;
}

.zjr-items th,
.zjr-items td {
  border: 0.5px solid var(--border-light);
  padding: 6px 8px;
  text-align: left;
  word-break: break-word;
}

.zjr-items th {
  background: rgba(212, 175, 55, 0.1);
  color: #8b6914;
  font-weight: var(--font-weight-medium);
  white-space: nowrap;
}

.zjr-items td:last-child {
  width: 40px;
  text-align: center;
  font-weight: bold;
  white-space: nowrap;
}

.zjr-luck--ji { color: #2e7d32; }
.zjr-luck--xiong { color: #c62828; }
.zjr-luck--ping { color: #666; }

/* ---- 第三步: 综合评分与建议 ---- */
.zjr-final-score {
  font-size: 13px;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.zjr-final-score b {
  font-size: 24px;
  color: #8b6914;
  margin: 0 2px;
}

.zjr-stat-text {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.zjr-statbar {
  display: flex;
  height: 10px;
  border-radius: 5px;
  overflow: hidden;
  background: #f0f0f0;
  margin-bottom: 10px;
}

.zjr-statbar-ji { background: #52c41a; }
.zjr-statbar-ping { background: #bfbfbf; }
.zjr-statbar-xiong { background: #ff4d4f; }

.zjr-risk-list {
  margin-bottom: 10px;
}

.zjr-risk {
  background: #fff8e1;
  border-left: 3px solid #d4af37;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 8px 10px;
  font-size: 12px;
  line-height: 1.6;
  color: #6d5410;
  margin-bottom: 6px;
  word-break: break-word;
}

.zjr-best-hours {
  background: #e8f5e9;
  border-radius: var(--radius-md);
  padding: 10px 12px;
  font-size: 13px;
  color: #2e7d32;
  font-weight: var(--font-weight-medium);
}


/* ========== Task #48: 推荐角标 ========== */
.result-card-badges {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  flex-shrink: 0;
}

.zjr-recommend {
  display: inline-block;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, #d4af37, #f0c14b);
  color: #fff;
  font-weight: var(--font-weight-semibold);
  white-space: nowrap;
  box-shadow: 0 1px 3px rgba(212, 175, 55, 0.4);
  line-height: 1.4;
}
