/* =========================================================
   Results page (results.html) — 只在开奖结果独立页生效
   ========================================================= */

.section-result-hero {
  padding: 40px 0 22px;
  text-align: center;
  background:
    radial-gradient(120% 140% at 50% -30%, rgba(215, 181, 109, 0.08), transparent 60%),
    linear-gradient(180deg, var(--jade-950), #062017);
  color: var(--cream);
}

.section-result-hero h1 {
  font-family: var(--font-thai);
  font-size: clamp(24px, 3.2vw, 34px);
  line-height: 1.3;
  margin: 6px 0 12px;
  color: var(--white);
}

.result-date {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 18px;
  padding: 6px 14px;
  border: 1px solid rgba(215, 181, 109, 0.4);
  border-radius: 999px;
  background: rgba(215, 181, 109, 0.12);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: #faf5e8;
}

.result-first-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.result-first-num {
  font-family: var(--font-ui);
  font-size: clamp(44px, 6.4vw, 76px);
  letter-spacing: 0.08em;
  color: var(--gold-bright);
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 2px 20px rgba(215, 181, 109, 0.25);
}

.result-first-info {
  display: flex;
  gap: 16px;
  align-items: baseline;
  margin-bottom: 14px;
}

.result-first-label {
  margin: 0;
  font-size: 14px;
  color: rgba(250, 245, 232, 0.8);
}

.result-first-prize {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--gold-bright);
}

.result-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 16px;
}

.strip-cell {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 7px 12px;
  border-radius: 10px;
  background: rgba(250, 245, 232, 0.08);
  border: 1px solid rgba(215, 181, 109, 0.24);
  font-size: 11px;
}

.strip-cell em {
  font-style: normal;
  color: rgba(250, 245, 232, 0.76);
  font-size: 11px;
}

.strip-cell b {
  font-family: var(--font-ui);
  font-size: 17px;
  letter-spacing: 0.06em;
  color: var(--gold-bright);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.result-pdf {
  display: inline-block;
  border: 1px solid rgba(215, 181, 109, 0.4);
  background: rgba(4, 26, 18, 0.5);
  color: var(--cream);
  text-decoration: none;
}

/* ============ 奖项表 ============ */

.section-prizes {
  padding-top: 24px;
}

.prize-table-wrap {
  margin-top: 24px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.prize-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  margin-top: 0;
}

.prize-table th,
.prize-table td {
  border-bottom: 1px solid rgba(18, 33, 26, 0.12);
  padding: 10px 12px;
  text-align: left;
}

.prize-table th {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
  background: rgba(11, 51, 37, 0.04);
}

.prize-table td b {
  font-family: var(--font-ui);
  font-size: 14px;
  letter-spacing: 0.06em;
  color: var(--jade-800);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.result-note {
  margin-top: 16px;
  font-size: 12px;
  color: var(--ink-soft);
  line-height: 1.7;
}

/* ============ 往期 ============ */

.section-history {
  padding-top: 0;
}

.history-list {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.history-list a {
  display: block;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--paper);
  border: 1px solid rgba(18, 33, 26, 0.1);
  font-size: 13px;
  color: var(--ink-soft);
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}

.history-list a:hover {
  border-color: var(--gold);
  color: var(--gold-deep);
}

/* ============ 响应式 ============ */

@media (max-width: 720px) {
  .section-result-hero {
    padding: 28px 0 18px;
  }
  .section-result-hero h1 {
    font-size: 22px;
    margin: 4px 0 10px;
  }
  .result-date {
    margin-bottom: 14px;
    padding: 5px 12px;
    font-size: 12.5px;
  }
  .result-first-num {
    font-size: clamp(40px, 12vw, 60px);
  }
  .strip-cell {
    padding: 6px 10px;
  }
  .history-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .prize-table {
    font-size: 12.5px;
    min-width: 760px;
  }
  .prize-table th,
  .prize-table td {
    padding: 8px 8px;
  }
}

.history-more { margin-top: 20px; }

.prize-table td:nth-child(3) {
  line-height: 1.9;
  letter-spacing: 0.02em;
}

/* 奖项表列宽：奖项/条件/奖金/数量不换行，号码列自适应 */
.prize-table th:nth-child(1),
.prize-table td:nth-child(1),
.prize-table th:nth-child(2),
.prize-table td:nth-child(2),
.prize-table th:nth-child(4),
.prize-table td:nth-child(4),
.prize-table th:nth-child(5),
.prize-table td:nth-child(5) {
  width: 1%;
  white-space: nowrap;
}
.prize-table th:nth-child(4),
.prize-table td:nth-child(4),
.prize-table th:nth-child(5),
.prize-table td:nth-child(5) {
  text-align: right;
}
