/* ============================================================
   dl_lottery · home.css
   彩票主题（幸运红 #dc2626 + 金色 #eab308 + 深红黑）
   Hero 区: 左侧文案 + 中央开奖球滚筒 + 右侧倒计时面板
   ============================================================ */

/* ===========================
 * 牌照资质墙（imgzz 9 张大图）
 * =========================== */
.lot-license-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-top: 10px;
}
.lot-license-grid .lot-license:nth-child(n+6) { grid-column: span 1; }
.lot-license {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 180px;
  padding: 10px;
  background: linear-gradient(180deg, rgba(234, 179, 8, .08), rgba(234, 179, 8, .03));
  border: 1px solid rgba(234, 179, 8, .3);
  border-radius: 14px;
  transition: all .25s;
  overflow: hidden;
}
.lot-license img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 6px 14px rgba(234, 179, 8, .35));
  transition: transform .35s;
}
.lot-license:hover {
  transform: translateY(-4px);
  border-color: #fbbf24;
  background: linear-gradient(180deg, rgba(234, 179, 8, .14), rgba(220, 38, 38, .08));
  box-shadow: 0 14px 30px rgba(234, 179, 8, .28);
}
.lot-license:hover img { transform: scale(1.06); }

@media (max-width: 991.98px) {
  .lot-license-grid { grid-template-columns: repeat(3, 1fr); }
  .lot-license { height: 150px; }
}
@media (max-width: 575.98px) {
  .lot-license-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .lot-license { height: 130px; padding: 8px; }
}

/* ===========================
 * Hero · 三栏开奖大幕
 * =========================== */
.hero-lot {
  position: relative;
  padding: 80px 0 70px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(234, 179, 8, .14), transparent 60%),
    radial-gradient(ellipse 50% 40% at 50% 100%, rgba(220, 38, 38, .25), transparent 60%),
    linear-gradient(135deg, #1a0505 0%, #2c0a0a 50%, #1a0505 100%);
}
/* 红丝绒帷幕装饰 */
.hero-lot::before,
.hero-lot::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 80px;
  background:
    repeating-linear-gradient(180deg, #7f1d1d 0 12px, #991b1b 12px 24px);
  z-index: 1;
  opacity: .4;
}
.hero-lot::before { left: 0; clip-path: polygon(0 0, 100% 0, 60% 100%, 0 100%); }
.hero-lot::after { right: 0; clip-path: polygon(0 0, 100% 0, 100% 100%, 40% 100%); }

.hero-lot .container { position: relative; z-index: 5; }

.lot-hero-grid {
  display: grid;
  grid-template-columns: 1fr 540px 1fr;
  gap: 30px;
  align-items: center;
}

/* 左侧文案 */
.lot-hero-left h1 {
  font-size: 48px;
  font-weight: 900;
  margin: 0 0 14px;
  line-height: 1.15;
  color: #fff;
  text-shadow: 0 0 24px rgba(234, 179, 8, .35);
}
.lot-hero-left h1 em {
  display: block;
  font-style: normal;
  font-size: 32px;
  background: linear-gradient(135deg, #fde047, #eab308);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-top: 8px;
  letter-spacing: 4px;
}
.lot-hero-left p {
  font-size: 15px;
  line-height: 1.85;
  color: #fecaca;
  margin: 0 0 22px;
}
.lot-tag-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}
.lot-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  background: rgba(234, 179, 8, .12);
  border: 1px solid rgba(234, 179, 8, .3);
  color: #fde047;
  font-size: 12px;
  border-radius: 999px;
  letter-spacing: 1px;
}
.lot-tag i { font-size: 11px; }
.lot-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.lot-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  font-weight: 700;
  font-size: 14px;
  border-radius: 8px;
  border: 0;
  cursor: pointer;
  transition: all .25s;
  text-decoration: none;
}
.lot-btn-primary {
  background: linear-gradient(135deg, #dc2626, #991b1b);
  color: #fff;
  box-shadow: 0 8px 18px rgba(220, 38, 38, .4);
}
.lot-btn-gold {
  background: linear-gradient(135deg, #eab308, #ca8a04);
  color: #1a0505;
  box-shadow: 0 8px 18px rgba(234, 179, 8, .4);
}
.lot-btn:hover { transform: translateY(-2px); }

/* 中央开奖大屏 */
.lot-stage {
  position: relative;
  padding: 36px 28px 30px;
  background:
    radial-gradient(ellipse 80% 80% at 50% 50%, rgba(234, 179, 8, .15), transparent 70%),
    linear-gradient(180deg, #2c0a0a, #1a0505);
  border: 4px solid #eab308;
  border-radius: 20px;
  text-align: center;
  box-shadow:
    0 0 0 6px rgba(234, 179, 8, .25),
    0 0 50px rgba(234, 179, 8, .35),
    0 24px 50px rgba(0, 0, 0, .55);
}
.lot-stage::before {
  content: '★ TODAY DRAW ★';
  position: absolute;
  top: -16px; left: 50%;
  transform: translateX(-50%);
  padding: 4px 18px;
  background: #eab308;
  color: #1a0505;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 3px;
  border-radius: 4px;
}
.lot-issue {
  font-size: 13px;
  color: #fde047;
  letter-spacing: 4px;
  margin-bottom: 16px;
}
.lot-balls {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.lot-ball {
  position: relative;
  width: 56px; height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 900;
  color: #fff;
  font-family: "Courier New", monospace;
  background: radial-gradient(circle at 30% 30%, #f87171, #dc2626 60%, #7f1d1d);
  box-shadow:
    inset -4px -6px 8px rgba(0, 0, 0, .45),
    inset 3px 3px 6px rgba(255, 255, 255, .35),
    0 6px 14px rgba(220, 38, 38, .55);
  animation: ballSpin 3s ease-in-out infinite;
}
.lot-ball::after {
  content: '';
  position: absolute;
  top: 8px; left: 12px;
  width: 14px; height: 8px;
  background: rgba(255, 255, 255, .55);
  border-radius: 50%;
  filter: blur(1px);
}
.lot-ball.ball-blue {
  background: radial-gradient(circle at 30% 30%, #60a5fa, #2563eb 60%, #1e3a8a);
  box-shadow:
    inset -4px -6px 8px rgba(0, 0, 0, .45),
    inset 3px 3px 6px rgba(255, 255, 255, .35),
    0 6px 14px rgba(37, 99, 235, .55);
}
.lot-ball:nth-child(1) { animation-delay: 0s; }
.lot-ball:nth-child(2) { animation-delay: .15s; }
.lot-ball:nth-child(3) { animation-delay: .3s; }
.lot-ball:nth-child(4) { animation-delay: .45s; }
.lot-ball:nth-child(5) { animation-delay: .6s; }
.lot-ball:nth-child(6) { animation-delay: .75s; }
.lot-ball:nth-child(7) { animation-delay: .9s; }
@keyframes ballSpin {
  0%, 100% { transform: translateY(0) rotate(0); }
  50% { transform: translateY(-6px) rotate(180deg); }
}
.lot-stage-amount {
  margin-top: 14px;
  padding: 14px 18px;
  background: linear-gradient(90deg, rgba(234, 179, 8, .15), transparent, rgba(234, 179, 8, .15));
  border-top: 1px dashed rgba(234, 179, 8, .35);
  border-bottom: 1px dashed rgba(234, 179, 8, .35);
}
.lot-stage-amount span { font-size: 13px; color: #fecaca; letter-spacing: 1px; }
.lot-stage-amount strong {
  display: block;
  font-size: 32px;
  color: #fde047;
  font-family: "Courier New", monospace;
  margin-top: 4px;
  text-shadow: 0 0 18px rgba(234, 179, 8, .8);
}

/* 右侧倒计时 */
.lot-countdown-card {
  padding: 30px 22px;
  background: linear-gradient(180deg, #2c0a0a, #1a0505);
  border: 1.5px solid rgba(234, 179, 8, .35);
  border-radius: 14px;
  text-align: center;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .4);
}
.lot-countdown-card h6 {
  font-size: 13px;
  color: #fde047;
  letter-spacing: 3px;
  margin: 0 0 8px;
}
.lot-countdown-card .lot-cd-issue {
  font-size: 12px;
  color: #fecaca;
  margin-bottom: 22px;
}
.lot-cd-timer {
  display: flex;
  justify-content: center;
  gap: 8px;
}
.lot-cd-cell {
  width: 56px; height: 64px;
  background: linear-gradient(180deg, #dc2626, #991b1b);
  color: #fde047;
  font-family: "Courier New", monospace;
  font-size: 28px;
  font-weight: 900;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .35), 0 6px 14px rgba(220, 38, 38, .35);
  position: relative;
}
.lot-cd-cell::after {
  content: '';
  position: absolute;
  top: 50%; left: 0; right: 0;
  border-top: 1px solid rgba(0, 0, 0, .35);
}
.lot-cd-label {
  font-size: 11px;
  color: #fecaca;
  margin-top: 6px;
  letter-spacing: 1px;
}
.lot-cd-prize {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px dashed rgba(234, 179, 8, .25);
  font-size: 13px;
  color: #fde047;
}
.lot-cd-prize strong {
  display: block;
  font-size: 24px;
  color: #fff;
  font-family: "Courier New", monospace;
  margin-top: 4px;
}

/* 顶部搜索 */
.lot-search {
  margin-top: 32px;
  display: flex;
  justify-content: center;
}
.lot-search form {
  display: flex;
  width: 100%; max-width: 580px;
  background: rgba(0, 0, 0, .35);
  border: 1.5px solid rgba(234, 179, 8, .35);
  border-radius: 999px;
  overflow: hidden;
  backdrop-filter: blur(6px);
}
.lot-search input {
  flex: 1;
  border: 0;
  background: transparent;
  padding: 12px 22px;
  color: #fef3c7;
  font-size: 14px;
  outline: none;
}
.lot-search input::placeholder { color: rgba(254, 202, 202, .55); }
.lot-search button {
  border: 0;
  padding: 0 26px;
  background: linear-gradient(135deg, #eab308, #ca8a04);
  color: #1a0505;
  font-weight: 800;
  cursor: pointer;
}

/* 漂浮金币 */
.lot-coin {
  position: absolute;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #fde047, #eab308 70%, #a16207);
  border: 2px solid #ca8a04;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 900;
  color: #7c2d12;
  box-shadow: 0 6px 14px rgba(234, 179, 8, .55);
  animation: coinFloat 7s ease-in-out infinite;
  z-index: 2;
}
.lot-coin::before { content: '¥'; }
.lot-coin.lc-1 { top: 14%; left: 5%; animation-delay: 0s; }
.lot-coin.lc-2 { top: 22%; right: 6%; width: 24px; height: 24px; font-size: 12px; animation-delay: 1.5s; }
.lot-coin.lc-3 { bottom: 18%; left: 8%; width: 28px; height: 28px; font-size: 14px; animation-delay: 3s; }
.lot-coin.lc-4 { bottom: 28%; right: 4%; animation-delay: 4.5s; }
@keyframes coinFloat {
  0%, 100% { transform: translateY(0) rotate(0); }
  50% { transform: translateY(-22px) rotate(360deg); }
}

/* ===========================
 * 历史开奖列表
 * =========================== */
.lot-history-table {
  margin-top: 30px;
  background: rgba(220, 38, 38, .06);
  border: 1px solid rgba(234, 179, 8, .25);
  border-radius: 14px;
  overflow: hidden;
}
.lot-history-row {
  display: grid;
  grid-template-columns: 120px 1fr 200px 120px;
  align-items: center;
  padding: 14px 22px;
  border-bottom: 1px dashed rgba(234, 179, 8, .15);
  transition: background .2s;
}
.lot-history-row.head {
  background: rgba(234, 179, 8, .08);
  font-size: 13px;
  color: #fde047;
  letter-spacing: 1px;
  font-weight: 700;
}
.lot-history-row:last-child { border-bottom: 0; }
.lot-history-row:hover:not(.head) { background: rgba(234, 179, 8, .06); }
.lot-history-issue { color: #fecaca; font-family: "Courier New", monospace; }
.lot-history-balls {
  display: flex;
  gap: 6px;
}
.lot-mini-ball {
  width: 26px; height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  color: #fff;
  background: radial-gradient(circle at 30% 30%, #f87171, #dc2626);
  box-shadow: inset -2px -2px 3px rgba(0, 0, 0, .35);
}
.lot-mini-ball.blue { background: radial-gradient(circle at 30% 30%, #60a5fa, #2563eb); }
.lot-history-jackpot {
  text-align: right;
  color: #fde047;
  font-family: "Courier New", monospace;
  font-weight: 800;
}
.lot-history-winner { text-align: right; color: #fff; font-size: 13px; }

/* ===========================
 * 玩法介绍（4 卡）
 * =========================== */
.lot-play-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 30px;
}
.lot-play-card {
  position: relative;
  padding: 26px 20px;
  background: linear-gradient(180deg, #3d1010, #2c0a0a);
  border: 2px solid rgba(234, 179, 8, .25);
  border-radius: 14px;
  text-align: center;
  transition: all .3s;
  cursor: pointer;
}
.lot-play-card:hover {
  border-color: #eab308;
  transform: translateY(-6px);
  box-shadow: 0 14px 30px rgba(234, 179, 8, .25);
}
.lot-play-icon {
  width: 64px; height: 64px;
  margin: 0 auto 12px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  color: #1a0505;
  background: linear-gradient(135deg, #eab308, #ca8a04);
  box-shadow: 0 0 0 4px rgba(234, 179, 8, .15);
}
.lot-play-card h4 {
  font-size: 16px;
  color: #fff;
  margin: 0 0 6px;
  font-weight: 800;
}
.lot-play-card p {
  font-size: 12px;
  color: #fecaca;
  margin: 0 0 10px;
}
.lot-play-odds {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(220, 38, 38, .2);
  border: 1px solid rgba(220, 38, 38, .4);
  color: #fbbf24;
  font-size: 12px;
  font-weight: 700;
  border-radius: 999px;
}

/* ===========================
 * 中奖喜报跑马灯
 * =========================== */
.lot-winners-marquee {
  margin-top: 30px;
  padding: 20px 24px;
  background: linear-gradient(135deg, rgba(234, 179, 8, .08), rgba(220, 38, 38, .12));
  border: 1.5px solid rgba(234, 179, 8, .3);
  border-radius: 14px;
  overflow: hidden;
  position: relative;
}
.lot-winners-marquee::before {
  content: '🎉 中奖喜报';
  display: inline-block;
  padding: 4px 14px;
  background: #dc2626;
  color: #fde047;
  font-size: 13px;
  font-weight: 800;
  border-radius: 6px;
  margin-right: 18px;
  letter-spacing: 2px;
}
.lot-winners-track {
  display: inline-flex;
  gap: 38px;
  white-space: nowrap;
  animation: marquee 30s linear infinite;
}
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.lot-winner-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #fef3c7;
}
.lot-winner-item strong { color: #fde047; font-family: "Courier New", monospace; }

/* ===========================
 * 资讯
 * =========================== */
.lot-news-card {
  display: block;
  height: 100%;
  padding: 22px;
  background: linear-gradient(180deg, #3d1010, #2c0a0a);
  border: 1px solid rgba(234, 179, 8, .25);
  border-radius: 12px;
  text-decoration: none;
  transition: all .3s;
}
.lot-news-card:hover {
  border-color: #eab308;
  transform: translateY(-5px);
  box-shadow: 0 14px 28px rgba(234, 179, 8, .25);
}
.lot-news-card h5 {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin: 10px 0 8px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.lot-news-tag {
  display: inline-block;
  padding: 3px 10px;
  background: rgba(220, 38, 38, .2);
  border: 1px solid rgba(220, 38, 38, .4);
  color: #fde047;
  font-size: 11px;
  letter-spacing: 1.5px;
  border-radius: 4px;
}
.lot-news-time {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed rgba(234, 179, 8, .25);
  font-size: 12px;
  color: #fecaca;
  display: flex;
  justify-content: space-between;
}

/* ===========================
 * 响应式
 * =========================== */
@media (max-width: 1199.98px) {
  .lot-hero-grid { grid-template-columns: 1fr 480px; }
  .lot-countdown-card { grid-column: 1 / -1; max-width: 480px; margin: 24px auto 0; }
}

@media (max-width: 991.98px) {
  .lot-hero-grid { grid-template-columns: 1fr; }
  .lot-stage { max-width: 540px; margin: 0 auto; }
  .lot-history-row { grid-template-columns: 100px 1fr 100px; padding: 12px 14px; }
  .lot-history-winner { display: none; }
  .lot-play-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 767.98px) {
  .hero-lot { padding: 50px 0 50px; }
  .lot-hero-left h1 { font-size: 32px; }
  .lot-hero-left h1 em { font-size: 22px; }
  .lot-ball { width: 44px; height: 44px; font-size: 18px; }
  .lot-stage-amount strong { font-size: 24px; }
  .lot-cd-cell { width: 44px; height: 54px; font-size: 22px; }
  .lot-history-row { grid-template-columns: 90px 1fr; }
  .lot-history-jackpot { display: none; }
  .lot-actions { flex-direction: column; align-items: stretch; }
  .lot-btn { justify-content: center; }
}

@media (max-width: 575.98px) {
  .lot-play-grid { grid-template-columns: 1fr; }
  .lot-balls { gap: 6px; }
  .lot-ball { width: 36px; height: 36px; font-size: 16px; }
  .lot-stage { padding: 26px 16px 22px; }
  .lot-cd-timer { gap: 5px; }
  .lot-cd-cell { width: 38px; height: 48px; font-size: 18px; }
}


/* =================================================== */
/* MOBILE ENHANCED · dl_* 特殊模板 H5 自适应规则       */
/* =================================================== */
.hero img, section img, .content img, .card img { max-width: 100%; height: auto; }

@media (max-width: 991.98px) {
  .hero { padding: 80px 20px 60px !important; }
  .hero h1 { font-size: 48px !important; line-height: 1.05 !important; }
  .hero p, .hero-lead { font-size: 16px !important; line-height: 1.7 !important; }
}

@media (max-width: 768px) {
  .hero { padding: 64px 20px 48px !important; }
  .hero h1 { font-size: 38px !important; line-height: 1.1 !important; }
  .hero h1 em { font-size: 38px !important; }
  .hero p, .hero-lead { font-size: 15px !important; line-height: 1.75 !important; }
  .hero-cta, .hero-actions { display: flex; flex-direction: column; gap: 10px; }
  .hero-cta a, .hero-actions a, .hero-cta .btn {
    width: 100%; box-sizing: border-box; padding: 14px 20px !important;
    font-size: 15px !important; text-align: center; min-height: 48px;
    border-radius: 10px !important;
  }
  .hero-stats, .stats-grid { grid-template-columns: 1fr 1fr !important; }
  .hero-stats strong, .stats-grid strong { font-size: 26px !important; }
  /* sections */
  section { padding: 48px 16px !important; }
  .container { padding-left: 16px !important; padding-right: 16px !important; }
  .row > [class*="col-"] { flex: 0 0 100%; max-width: 100%; margin-bottom: 14px; }
  .card { margin-bottom: 12px; border-radius: 12px; }
  .card-body { padding: 18px 16px; }
  h2 { font-size: 1.4rem !important; line-height: 1.3 !important; }
  h3 { font-size: 1.15rem !important; }
  .btn-lg { padding: 12px 20px !important; font-size: 15px !important; width: 100%; min-height: 48px; }
  table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .lot-hero, .ks-hero { padding: 60px 16px !important; }
  .lot-hero h1, .ks-hero h1 { font-size: 36px !important; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 30px !important; }
  .hero h1 em { font-size: 30px !important; }
  .lot-hero h1, .ks-hero h1 { font-size: 28px !important; }
}
