/* ===== 彩种详情页（对齐上游 xinpinble /lottery/:code） ===== */
.detail-page {
  background: #fafbff;
  padding: 16px 10px 48px;
  min-height: 40vh;
}
.detail-page > * {
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0 4px;
  height: 40px;
  padding: 0 15px;
  margin-bottom: 16px;
  border-radius: 10px;
  background: #fff2f1;
  font-size: 14px;
  color: #333;
}
.breadcrumb a {
  color: #333;
  text-decoration: none;
}
.breadcrumb a:hover { color: #b70000; }
.bc-sep { padding: 0 6px; color: #999; }
.bc-cur { color: #b70000; font-weight: 600; }

/* 号码方块（上游色） */
.kj-chips {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
}
.kj-chips.is-center { justify-content: center; width: 100%; }
.kj-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 25px;
  height: 25px;
  padding: 0 4px;
  border-radius: 4px;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  line-height: 25px;
  flex-shrink: 0;
}
.kj-orange { background: #f59b21; }
.kj-cyan { background: #39bfc5; }
.kj-purple { background: #8f55d9; }
.kj-red { background: #d71920; }
.kj-blue { background: #1b71d9; }

/* 最新一期卡片 */
.detail-latest {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  margin-bottom: 20px;
  overflow: hidden;
}
.detail-latest-body {
  display: flex;
  gap: 12px;
  padding: 15px;
  align-items: flex-start;
}
.detail-icon {
  width: 55px;
  height: 55px;
  object-fit: contain;
  flex-shrink: 0;
}
.detail-latest-main { flex: 1; min-width: 0; }
.detail-latest-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  margin-bottom: 8px;
  font-size: 14px;
  color: #333;
}
.detail-name {
  font-size: 18px;
  color: #000;
  margin-right: 4px;
}
.detail-schedule {
  margin-left: auto;
  color: #999;
  font-size: 13px;
}
.detail-open { margin-bottom: 8px; }
.detail-aux {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-size: 14px;
}
.detail-aux-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
.detail-aux-label { color: #333; white-space: nowrap; }
.detail-links {
  display: flex;
  flex-wrap: wrap;
  border-top: 1px solid #e6e6e6;
  padding: 8px 15px;
}
.detail-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 120px;
  padding: 8px 0;
  font-size: 14px;
  color: #000;
  text-decoration: none;
}
.detail-link:hover { color: #b70000; }
.detail-link-ico {
  width: 25px;
  height: 25px;
  border-radius: 4px;
  background: #f5f5f5;
  color: #b70000;
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* 开奖列表 */
.detail-hist {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  padding: 10px 0 12px;
}
.detail-hist-head {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 15px 8px;
}
.detail-hist-bar {
  position: absolute;
  left: 0;
  top: 50%;
  width: 4px;
  height: 15px;
  margin-top: -7px;
  background: #b70000;
}
.detail-hist-head h1 {
  font-size: 20px;
  font-weight: 700;
  line-height: 28px;
  color: #000;
  margin: 0;
  padding-left: 8px;
}
.detail-hist-sch {
  font-size: 14px;
  color: #999;
}
.detail-hist-table-wrap {
  padding: 0 15px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.detail-hist-table {
  width: 100%;
  min-width: 480px;
  border-collapse: collapse;
  border-right: 1px solid #dbdbdb;
  font-size: 12px;
}
.detail-hist-table-simple {
  min-width: 360px;
}
.detail-hist-table th {
  border: 1px solid #c2c2c2;
  border-right: none;
  background: linear-gradient(to bottom, #f6f6f6, #e1e1e1);
  padding: 5px;
  text-align: center;
  font-weight: 700;
  color: #333;
  box-shadow: 0 2px 2px rgba(0, 0, 0, 0.08);
}
.detail-hist-table td {
  border: 1px solid #dbdbdb;
  border-right: none;
  background: #fff;
  padding: 8px 5px;
  text-align: center;
  color: #333;
  vertical-align: middle;
}

.trial-nav-label.is-active .trial-nav-title {
  color: #b70000;
}
.trial-empty {
  font-size: 13px;
  color: #999;
  font-weight: 400;
}
.trial-only-latest .detail-open {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.nav-row a.active-link {
  color: #b70000;
  font-weight: 700;
}

@media (max-width: 767px) {
  .detail-latest-body { flex-direction: column; }
  .detail-schedule { margin-left: 0; }
  .detail-hist-head h1 { font-size: 17px; }
  .detail-link { width: 25%; min-width: 72px; }
}
