@charset "UTF-8";
blockquote,
body,
dd,
div,
dl,
dt,
fieldset,
form,
h1,
h2,
h3,
h4,
h5,
h6,
img,
input,
li,
ol,
p,
pre,
td,
textarea,
th,
ul {
  padding: 0;
  margin: 0;
}

li,
ol,
ul {
  list-style: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: normal;
  font-size: 100%;
}

a {
  text-decoration: none;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  outline: none;
}

input {
  outline: none;
}

i {
  font-style: normal;
}

* {
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

.modern-layout {
  min-height: 100vh;
  background: linear-gradient(180deg, #ecfdf5 0%, #ffffff 50%, #f0fdf4 100%);
  position: relative;
  overflow: hidden;
}
.modern-layout::before {
  content: "";
  position: fixed;
  top: 50%;
  left: 50%;
  width: 100vw;
  height: 100vw;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.05) 0%, transparent 60%);
  transform: translate(-50%, -50%);
  animation: rotate 60s linear infinite;
  pointer-events: none;
  z-index: -1;
}

.modern-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 1rem 0;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}
.modern-header.scrolled {
  padding: 0.5rem 0;
  background: rgba(255, 255, 255, 0.95);
}
.modern-header .header-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.modern-header .logo-section {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 0 0 auto;
}
.modern-header .logo-section .logo {
  height: 40px;
  transition: transform 0.3s ease;
}
.modern-header .logo-section .logo:hover {
  transform: scale(1.05);
}
.modern-header .logo-section .site-title {
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.modern-header .nav-menu {
  display: flex;
  gap: 2rem;
  align-items: center;
  flex: 1 1 auto;
  justify-content: center;
}
@media (max-width: 1024px) {
  .modern-header .nav-menu {
    display: none;
  }
}
.modern-header .nav-menu .nav-item {
  position: relative;
  padding: 0.5rem 1rem;
  color: #4b5563;
  font-weight: 500;
  transition: all 0.3s ease;
  cursor: pointer;
}
.modern-header .nav-menu .nav-item::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}
.modern-header .nav-menu .nav-item:hover {
  color: #10b981;
}
.modern-header .nav-menu .nav-item:hover::after {
  width: 100%;
}
.modern-header .nav-menu .nav-item.active {
  color: #10b981;
}
.modern-header .nav-menu .nav-item.active::after {
  width: 100%;
}
.modern-header .header-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex: 0 0 auto;
}
.modern-header .header-actions .theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: white;
  border: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.modern-header .header-actions .theme-toggle i {
  font-size: 1.2rem;
  color: #10b981;
  transition: all 0.3s ease;
}
.modern-header .header-actions .theme-toggle:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}
.modern-header .header-actions .theme-toggle:hover i {
  color: white;
}
.modern-header .header-actions .theme-toggle.dark-mode {
  background: #1f2937;
}
.modern-header .header-actions .theme-toggle.dark-mode i {
  color: #fbbf24;
}
.modern-header .header-actions .theme-toggle.dark-mode:hover {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
}
.modern-header .header-actions .theme-toggle.dark-mode:hover i {
  color: white;
}
.modern-header .header-actions .menu {
  display: none;
}
.modern-header .header-actions .mobile-menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  background: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  padding: 0;
  margin-left: auto;
}
@media (max-width: 1024px) {
  .modern-header .header-actions .mobile-menu-toggle {
    display: flex;
  }
}
.modern-header .header-actions .mobile-menu-toggle span {
  width: 24px;
  height: 2px;
  background: #10b981;
  margin: 3px 0;
  transition: all 0.3s ease;
  display: block;
}
.modern-header .header-actions .mobile-menu-toggle:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.modern-header .header-actions .menu:checked ~ .mobile-menu-toggle span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.modern-header .header-actions .menu:checked ~ .mobile-menu-toggle span:nth-child(2) {
  opacity: 0;
}
.modern-header .header-actions .menu:checked ~ .mobile-menu-toggle span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

.lottery-grid {
  max-width: 1400px;
  margin: 2rem auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 2rem;
}
@media (min-width: 1536px) {
  .lottery-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
  }
}
@media (max-width: 1280px) {
  .lottery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}
@media (max-width: 768px) {
  .lottery-grid {
    grid-template-columns: 1fr;
    padding: 0 1rem;
    gap: 1rem;
  }
}
@media (max-width: 480px) {
  .lottery-grid {
    padding: 0 0.5rem;
    margin: 1rem auto;
  }
}

.lottery-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  position: relative;
}
.lottery-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}
.lottery-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}
.lottery-card .card-header {
  padding: 1.5rem;
  background: linear-gradient(135deg, #f8faff 0%, #ffffff 100%);
  border-bottom: 1px solid #e5e7eb;
}
.lottery-card .card-header .lottery-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}
.lottery-card .card-header .lottery-info .lottery-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1f2937;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.lottery-card .card-header .lottery-info .lottery-name .lottery-badge {
  padding: 0.25rem 0.75rem;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
}
.lottery-card .card-header .lottery-info .lottery-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.lottery-card .card-header .lottery-info .lottery-status .status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  animation: pulse 2s infinite;
}
.lottery-card .card-header .lottery-info .lottery-status .status-text {
  font-size: 0.875rem;
  color: #6b7280;
}
.lottery-card .card-header .period-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
  color: #6b7280;
}
.lottery-card .card-header .period-info .period-number {
  font-weight: 600;
  color: #10b981;
}
.lottery-card .card-header .period-info .countdown {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.75rem;
  background: #f3f4f6;
  border-radius: 8px;
}
.lottery-card .card-header .period-info .countdown .countdown-label {
  font-size: 0.75rem;
}
.lottery-card .card-header .period-info .countdown .countdown-time {
  font-weight: 700;
  color: #ef4444;
  font-family: "Roboto Mono", monospace;
}
.lottery-card .card-body {
  padding: 1.5rem;
}
.lottery-card .card-body .lottery-numbers {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 1.5rem;
  min-height: 60px;
}
.lottery-card .card-body .lottery-numbers .lottery-ball {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.125rem;
  color: white;
  position: relative;
  animation: ballDrop 0.5s ease forwards;
  opacity: 0;
  transform: translateY(-20px);
}
.lottery-card .card-body .lottery-numbers .lottery-ball:nth-child(1) {
  animation-delay: 0.05s;
}
.lottery-card .card-body .lottery-numbers .lottery-ball:nth-child(2) {
  animation-delay: 0.1s;
}
.lottery-card .card-body .lottery-numbers .lottery-ball:nth-child(3) {
  animation-delay: 0.15s;
}
.lottery-card .card-body .lottery-numbers .lottery-ball:nth-child(4) {
  animation-delay: 0.2s;
}
.lottery-card .card-body .lottery-numbers .lottery-ball:nth-child(5) {
  animation-delay: 0.25s;
}
.lottery-card .card-body .lottery-numbers .lottery-ball:nth-child(6) {
  animation-delay: 0.3s;
}
.lottery-card .card-body .lottery-numbers .lottery-ball:nth-child(7) {
  animation-delay: 0.35s;
}
.lottery-card .card-body .lottery-numbers .lottery-ball:nth-child(8) {
  animation-delay: 0.4s;
}
.lottery-card .card-body .lottery-numbers .lottery-ball:nth-child(9) {
  animation-delay: 0.45s;
}
.lottery-card .card-body .lottery-numbers .lottery-ball:nth-child(10) {
  animation-delay: 0.5s;
}
.lottery-card .card-body .lottery-numbers .lottery-ball:nth-child(11) {
  animation-delay: 0.55s;
}
.lottery-card .card-body .lottery-numbers .lottery-ball:nth-child(12) {
  animation-delay: 0.6s;
}
.lottery-card .card-body .lottery-numbers .lottery-ball:nth-child(13) {
  animation-delay: 0.65s;
}
.lottery-card .card-body .lottery-numbers .lottery-ball:nth-child(14) {
  animation-delay: 0.7s;
}
.lottery-card .card-body .lottery-numbers .lottery-ball:nth-child(15) {
  animation-delay: 0.75s;
}
.lottery-card .card-body .lottery-numbers .lottery-ball:nth-child(16) {
  animation-delay: 0.8s;
}
.lottery-card .card-body .lottery-numbers .lottery-ball:nth-child(17) {
  animation-delay: 0.85s;
}
.lottery-card .card-body .lottery-numbers .lottery-ball:nth-child(18) {
  animation-delay: 0.9s;
}
.lottery-card .card-body .lottery-numbers .lottery-ball:nth-child(19) {
  animation-delay: 0.95s;
}
.lottery-card .card-body .lottery-numbers .lottery-ball:nth-child(20) {
  animation-delay: 1s;
}
.lottery-card .card-body .lottery-numbers .lottery-ball.ball-primary {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}
.lottery-card .card-body .lottery-numbers .lottery-ball.ball-secondary {
  background: linear-gradient(135deg, #34d399 0%, #6ee7b7 100%);
  box-shadow: 0 4px 12px rgba(52, 211, 153, 0.3);
}
.lottery-card .card-body .lottery-numbers .lottery-ball.ball-special {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  box-shadow: 0 4px 12px rgba(251, 191, 36, 0.3);
}
.lottery-card .card-body .lottery-numbers .lottery-ball.ball-special::after {
  content: "特";
  position: absolute;
  top: -8px;
  right: -8px;
  background: #ef4444;
  color: white;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lottery-card .card-body .lottery-numbers .lottery-ball.ball-loading {
  background: #f3f4f6;
  animation: shimmer 1.5s infinite;
}
.lottery-card .card-body .lottery-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 1rem;
}
.lottery-card .card-body .lottery-stats .stat-item {
  text-align: center;
  padding: 0.75rem;
  background: #f9fafb;
  border-radius: 8px;
  transition: all 0.3s ease;
}
.lottery-card .card-body .lottery-stats .stat-item:hover {
  background: #f3f4f6;
  transform: scale(1.05);
}
.lottery-card .card-body .lottery-stats .stat-item .stat-label {
  font-size: 0.75rem;
  color: #9ca3af;
  margin-bottom: 0.25rem;
}
.lottery-card .card-body .lottery-stats .stat-item .stat-value {
  font-size: 1.125rem;
  font-weight: 700;
  color: #1f2937;
}
.lottery-card .card-body .lottery-stats .stat-item.stat-hot .stat-value {
  color: #ef4444;
}
.lottery-card .card-body .lottery-stats .stat-item.stat-cold .stat-value {
  color: #3b82f6;
}
.lottery-card .card-footer {
  padding: 1rem 1.5rem;
  background: #f9fafb;
  border-top: 1px solid #e5e7eb;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.lottery-card .card-footer .action-buttons {
  display: flex;
  gap: 0.5rem;
}
.lottery-card .card-footer .action-buttons .btn {
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}
.lottery-card .card-footer .action-buttons .btn.btn-primary {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
}
.lottery-card .card-footer .action-buttons .btn.btn-primary:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}
.lottery-card .card-footer .action-buttons .btn.btn-secondary {
  background: white;
  color: #6b7280;
  border: 1px solid #e5e7eb;
}
.lottery-card .card-footer .action-buttons .btn.btn-secondary:hover {
  background: #f3f4f6;
}
.lottery-card .card-footer .update-time {
  font-size: 0.75rem;
  color: #9ca3af;
}

@keyframes ballDrop {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}
@keyframes shimmer {
  0% {
    background-position: -100% 0;
  }
  100% {
    background-position: 200% 0;
  }
}
@keyframes rotate {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}
@media (max-width: 768px) {
  .modern-header .header-container {
    padding: 0 1rem;
  }
  .modern-header .mobile-menu-toggle {
    display: block;
    width: 40px;
    height: 40px;
    background: white;
    border: none;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
  }
  .modern-header .mobile-menu-toggle span {
    width: 20px;
    height: 2px;
    background: #4b5563;
    transition: all 0.3s ease;
  }
  .modern-header .mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  .modern-header .mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  .modern-header .mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }
  .lottery-card .card-header {
    padding: 1rem;
  }
  .lottery-card .card-body {
    padding: 1rem;
  }
  .lottery-card .card-body .lottery-numbers .lottery-ball {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
}
@media (prefers-color-scheme: dark) {
  .modern-layout {
    background: linear-gradient(180deg, #111827 0%, #1f2937 50%, #111827 100%);
  }
  .modern-header {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
  }
  .modern-header .nav-item {
    color: #d1d5db;
  }
  .modern-header .nav-item:hover, .modern-header .nav-item.active {
    color: #818cf8;
  }
  .lottery-card {
    background: #1f2937;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  }
  .lottery-card .card-header {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    border-bottom-color: #374151;
  }
  .lottery-card .card-header .lottery-name {
    color: #f3f4f6;
  }
  .lottery-card .card-body .lottery-stats .stat-item {
    background: #111827;
  }
  .lottery-card .card-body .lottery-stats .stat-item:hover {
    background: #1f2937;
  }
  .lottery-card .card-body .lottery-stats .stat-item .stat-value {
    color: #f3f4f6;
  }
  .lottery-card .card-footer {
    background: #111827;
    border-top-color: #374151;
  }
}
html {
  overflow-x: hidden;
  max-width: 100vw;
}

body {
  overflow-x: hidden;
  max-width: 100vw;
  position: relative;
}

* {
  max-width: 100vw;
}

@media (max-width: 768px) {
  .modern-header .header-container {
    padding: 0 1rem;
  }
}
@media (max-width: 480px) {
  .modern-header .header-container {
    padding: 0 0.5rem;
  }
}
@media (max-width: 1024px) {
  .modern-header .nav-menu {
    display: none !important;
  }
}
.modern-header .mobile-menu-toggle {
  display: none;
}
@media (max-width: 1024px) {
  .modern-header .mobile-menu-toggle {
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
  }
  .modern-header .mobile-menu-toggle span {
    width: 24px;
    height: 2px;
    background: #10b981;
    margin: 3px 0;
    transition: all 0.3s ease;
  }
}
@media (max-width: 480px) {
  .modern-header .site-title {
    display: none;
  }
}

.lottery-grid {
  display: grid;
  gap: 2rem;
  padding: 2rem;
  max-width: 1400px;
  margin: 0 auto;
}
@media (min-width: 1280px) {
  .lottery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (min-width: 768px) and (max-width: 1279px) {
  .lottery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}
@media (max-width: 767px) {
  .lottery-grid {
    grid-template-columns: 1fr;
    padding: 1rem;
    gap: 1rem;
  }
}
@media (max-width: 480px) {
  .lottery-grid {
    padding: 0.5rem;
    gap: 0.75rem;
  }
}

.lottery-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}
.lottery-card .card-header {
  padding: 1.5rem;
}
@media (max-width: 768px) {
  .lottery-card .card-header {
    padding: 1rem;
  }
}
@media (max-width: 480px) {
  .lottery-card .card-header {
    padding: 0.75rem;
  }
}
.lottery-card .card-header .lottery-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
@media (max-width: 480px) {
  .lottery-card .card-header .lottery-info {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}
.lottery-card .card-header .lottery-info .lottery-name h2 {
  font-size: 1.25rem;
  margin: 0;
}
@media (max-width: 768px) {
  .lottery-card .card-header .lottery-info .lottery-name h2 {
    font-size: 1.125rem;
  }
}
@media (max-width: 480px) {
  .lottery-card .card-header .lottery-info .lottery-name h2 {
    font-size: 1rem;
  }
}
@media (max-width: 480px) {
  .lottery-card .card-header .lottery-info .lottery-name .lottery-badge {
    font-size: 0.625rem;
    padding: 0.125rem 0.5rem;
  }
}
.lottery-card .card-header .period-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.5rem;
}
@media (max-width: 480px) {
  .lottery-card .card-header .period-info {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}
@media (max-width: 480px) {
  .lottery-card .card-header .period-info .countdown {
    background: #f3f4f6;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    width: 100%;
    text-align: center;
  }
}
.lottery-card .card-header .period-info .countdown .countdown-time {
  font-weight: 700;
  color: #ef4444;
}
@media (max-width: 480px) {
  .lottery-card .card-header .period-info .countdown .countdown-time {
    font-size: 0.875rem;
  }
}
.lottery-card .card-body {
  padding: 1.5rem;
}
@media (max-width: 768px) {
  .lottery-card .card-body {
    padding: 1rem;
  }
}
@media (max-width: 480px) {
  .lottery-card .card-body {
    padding: 0.75rem;
  }
}
.lottery-card .card-body .lottery-numbers {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}
@media (max-width: 768px) {
  .lottery-card .card-body .lottery-numbers {
    gap: 0.5rem;
    margin-bottom: 1rem;
  }
}
@media (max-width: 480px) {
  .lottery-card .card-body .lottery-numbers {
    gap: 0.375rem;
  }
}
.lottery-card .card-body .lottery-ball {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.125rem;
  color: white;
}
@media (max-width: 768px) {
  .lottery-card .card-body .lottery-ball {
    width: 42px;
    height: 42px;
    font-size: 1rem;
  }
}
@media (max-width: 480px) {
  .lottery-card .card-body .lottery-ball {
    width: 36px;
    height: 36px;
    font-size: 0.875rem;
  }
}
@media (max-width: 360px) {
  .lottery-card .card-body .lottery-ball {
    width: 32px;
    height: 32px;
    font-size: 0.75rem;
  }
}
.lottery-card .card-body .lottery-ball.ball-primary {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}
.lottery-card .card-body .lottery-ball.ball-secondary {
  background: linear-gradient(135deg, #34d399 0%, #6ee7b7 100%);
}
.lottery-card .card-body .lottery-ball.ball-special {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
}
@media (max-width: 480px) {
  .lottery-card .card-body .lottery-ball.ball-special::after {
    width: 16px;
    height: 16px;
    font-size: 8px;
    top: -4px;
    right: -4px;
  }
}
.lottery-card .card-body .lottery-stats {
  display: grid;
  gap: 1rem;
}
@media (min-width: 480px) {
  .lottery-card .card-body .lottery-stats {
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  }
}
@media (max-width: 479px) {
  .lottery-card .card-body .lottery-stats {
    grid-template-columns: 1fr;
  }
}
.lottery-card .card-body .lottery-stats .stat-item {
  padding: 0.75rem;
  background: #f9fafb;
  border-radius: 8px;
  text-align: center;
}
@media (max-width: 479px) {
  .lottery-card .card-body .lottery-stats .stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0.75rem;
  }
}
.lottery-card .card-body .lottery-stats .stat-item .stat-label {
  font-size: 0.75rem;
  color: #9ca3af;
  margin-bottom: 0.25rem;
}
@media (max-width: 479px) {
  .lottery-card .card-body .lottery-stats .stat-item .stat-label {
    margin-bottom: 0;
  }
}
.lottery-card .card-body .lottery-stats .stat-item .stat-value {
  font-size: 1.125rem;
  font-weight: 700;
  color: #1f2937;
}
@media (max-width: 768px) {
  .lottery-card .card-body .lottery-stats .stat-item .stat-value {
    font-size: 1rem;
  }
}
@media (max-width: 480px) {
  .lottery-card .card-body .lottery-stats .stat-item .stat-value {
    font-size: 0.875rem;
  }
}
.lottery-card .card-footer {
  padding: 1rem 1.5rem;
  background: #f9fafb;
  border-top: 1px solid #e5e7eb;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
@media (max-width: 768px) {
  .lottery-card .card-footer {
    padding: 0.75rem 1rem;
  }
}
@media (max-width: 480px) {
  .lottery-card .card-footer {
    padding: 0.75rem;
    flex-direction: column;
    gap: 0.75rem;
  }
}
.lottery-card .card-footer .action-buttons {
  display: flex;
  gap: 0.5rem;
}
@media (max-width: 480px) {
  .lottery-card .card-footer .action-buttons {
    width: 100%;
  }
  .lottery-card .card-footer .action-buttons .btn {
    flex: 1;
  }
}
.lottery-card .card-footer .action-buttons .btn {
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.875rem;
  border: none;
  cursor: pointer;
}
@media (max-width: 480px) {
  .lottery-card .card-footer .action-buttons .btn {
    padding: 0.5rem;
    font-size: 0.75rem;
  }
}
.lottery-card .card-footer .action-buttons .btn.btn-primary {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
}
.lottery-card .card-footer .action-buttons .btn.btn-secondary {
  background: white;
  color: #6b7280;
  border: 1px solid #e5e7eb;
}
.lottery-card .card-footer .update-time {
  font-size: 0.75rem;
  color: #9ca3af;
}
@media (max-width: 480px) {
  .lottery-card .card-footer .update-time {
    font-size: 0.625rem;
  }
}

@media (max-width: 1024px) {
  .menu:checked ~ .header_block {
    display: block !important;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    z-index: 999;
    overflow-y: auto;
  }
  .menu:checked ~ .header_block h1 {
    color: white;
    text-align: center;
    padding: 1rem;
    margin: 0;
    font-size: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  }
  .menu:checked ~ .header_block ul {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    padding: 1rem;
    margin: 0;
    list-style: none;
  }
}
@media (max-width: 1024px) and (max-width: 480px) {
  .menu:checked ~ .header_block ul {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 1024px) {
  .menu:checked ~ .header_block ul li {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    backdrop-filter: blur(10px);
  }
  .menu:checked ~ .header_block ul li a {
    display: block;
    padding: 1rem;
    color: white;
    text-align: center;
    text-decoration: none;
    font-weight: 500;
  }
  .menu:checked ~ .header_block ul li a:hover {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
  }
}
@media (max-width: 768px) {
  .footer .footer_middle .middle_line {
    flex-direction: column;
  }
  .footer .footer_middle .middle_line div {
    padding: 0.5rem 0;
    line-height: 2rem;
  }
}
@media (max-width: 480px) {
  .footer .footer_down div {
    font-size: 0.75rem;
    line-height: 2rem;
  }
}

@media (max-width: 768px) {
  .backtop {
    width: 40px;
    height: 40px;
    right: 1rem;
    bottom: 1rem;
  }
  .backtop i {
    font-size: large;
  }
}

@media (prefers-color-scheme: dark) and (max-width: 768px) {
  .lottery-card {
    background: #064e3b;
  }
  .lottery-card .card-header {
    background: linear-gradient(135deg, #064e3b 0%, #022c22 100%);
  }
  .lottery-card .card-body .lottery-stats .stat-item {
    background: #022c22;
  }
  .lottery-card .card-body .lottery-stats .stat-item .stat-value {
    color: #a7f3d0;
  }
  .lottery-card .card-footer {
    background: #022c22;
  }
}
@media (orientation: landscape) and (max-width: 767px) {
  .lottery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
  .lottery-card .card-header {
    padding: 0.5rem;
  }
  .lottery-card .card-body {
    padding: 0.5rem;
  }
  .lottery-card .card-body .lottery-numbers {
    margin-bottom: 0.5rem;
  }
  .lottery-card .card-body .lottery-numbers .lottery-ball {
    width: 32px;
    height: 32px;
    font-size: 0.75rem;
  }
}
@media (max-width: 768px) {
  .hide-on-mobile {
    display: none !important;
  }
}

.show-on-mobile {
  display: none !important;
}
@media (max-width: 768px) {
  .show-on-mobile {
    display: block !important;
  }
}

.mobile-menu-system .mobile-menu-btn {
  display: none;
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 9999;
  width: 48px;
  height: 48px;
  background: #fff;
  border: 2px solid #10b981;
  border-radius: 12px;
  cursor: pointer;
  padding: 0;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}
.mobile-menu-system .mobile-menu-btn:hover {
  background: #f0fdf4;
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}
.mobile-menu-system .mobile-menu-btn:active {
  transform: scale(0.95);
}
.mobile-menu-system .mobile-menu-btn .hamburger-line {
  display: block;
  width: 24px;
  height: 3px;
  background: #10b981;
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center;
}
.mobile-menu-system .mobile-menu-btn.active {
  background: #10b981;
  border-color: #10b981;
}
.mobile-menu-system .mobile-menu-btn.active .hamburger-line {
  background: #fff;
}
.mobile-menu-system .mobile-menu-btn.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.mobile-menu-system .mobile-menu-btn.active .hamburger-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.mobile-menu-system .mobile-menu-btn.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}
@media (max-width: 1024px) {
  .mobile-menu-system .mobile-menu-btn {
    display: flex;
  }
}
.mobile-menu-system .mobile-menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 9998;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.mobile-menu-system .mobile-menu-overlay.active {
  display: block;
  opacity: 1;
}
.mobile-menu-system .mobile-menu-content {
  position: fixed;
  top: 0;
  right: -100%;
  width: 320px;
  max-width: 85vw;
  height: 100vh;
  background: linear-gradient(180deg, #10b981 0%, #059669 100%);
  z-index: 9999;
  transition: right 0.3s ease;
  overflow-y: auto;
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.3);
}
.mobile-menu-system .mobile-menu-content.active {
  right: 0;
}
.mobile-menu-system .mobile-menu-content .mobile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  background: rgba(0, 0, 0, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}
.mobile-menu-system .mobile-menu-content .mobile-menu-header h2 {
  color: #fff;
  font-size: 1.5rem;
  font-weight: bold;
  margin: 0;
}
.mobile-menu-system .mobile-menu-content .mobile-menu-header .mobile-menu-close {
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}
.mobile-menu-system .mobile-menu-content .mobile-menu-header .mobile-menu-close:hover {
  background: rgba(255, 255, 255, 0.3);
}
.mobile-menu-system .mobile-menu-content .mobile-menu-header .mobile-menu-close i {
  font-size: 16px;
}
.mobile-menu-system .mobile-menu-content .mobile-menu-body {
  padding: 1rem;
}
.mobile-menu-system .mobile-menu-content .mobile-menu-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.mobile-menu-system .mobile-menu-content .mobile-menu-list li {
  margin-bottom: 0.5rem;
}
.mobile-menu-system .mobile-menu-content .mobile-menu-list li a {
  display: block;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.2s ease;
  font-weight: 500;
  backdrop-filter: blur(10px);
}
.mobile-menu-system .mobile-menu-content .mobile-menu-list li a:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateX(4px);
}
.mobile-menu-system .mobile-menu-content .mobile-menu-list li a.active {
  background: rgba(255, 255, 255, 0.25);
  border-left: 4px solid #fff;
  padding-left: 1.5rem;
}
@media (min-width: 1025px) {
  .mobile-menu-system {
    display: none;
  }
}

body.mobile-menu-open {
  overflow: hidden;
  position: fixed;
  width: 100%;
}

@keyframes slideInFromRight {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(0);
  }
}
@keyframes slideOutToRight {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(100%);
  }
}
@media (max-width: 480px) {
  .mobile-menu-system .mobile-menu-content {
    width: 100vw;
    max-width: 100vw;
    right: -100vw;
  }
  .mobile-menu-system .mobile-menu-content.active {
    right: 0;
  }
}
.lottery-ball {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  font-weight: 600;
  font-size: 1.125rem;
  color: white;
  margin: 0 4px;
  position: relative;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.lottery-ball:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}
.lottery-ball.animated {
  animation: ballBounce 0.5s ease-out;
}
.lottery-ball.ball-loading {
  background: linear-gradient(90deg, #e5e7eb 0%, #f3f4f6 50%, #e5e7eb 100%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}
.lottery-ball.ball-loading::after {
  content: "";
  position: absolute;
  inset: 2px;
  background: white;
  border-radius: 50%;
}
.lottery-ball.special {
  position: relative;
}
.lottery-ball.special::before {
  content: "特";
  position: absolute;
  top: -8px;
  right: -8px;
  background: #ef4444;
  color: white;
  font-size: 0.75rem;
  padding: 2px 4px;
  border-radius: 4px;
  font-weight: bold;
}

.lottery-numbers {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  padding: 1rem;
  min-height: 60px;
}
.lottery-numbers.loading .lottery-ball {
  opacity: 0.6;
}

.XYFT .lottery-ball,
.XYFT2 .lottery-ball,
.KPPK10 .lottery-ball,
.JSPK10 .lottery-ball,
.JSXYFT .lottery-ball,
.KPXYFT .lottery-ball {
  border-radius: 8px;
  width: 40px;
  height: 40px;
  font-size: 1rem;
}
.XYFT .lottery-ball.n01,
.XYFT2 .lottery-ball.n01,
.KPPK10 .lottery-ball.n01,
.JSPK10 .lottery-ball.n01,
.JSXYFT .lottery-ball.n01,
.KPXYFT .lottery-ball.n01 {
  background: linear-gradient(135deg, #FFB10A, #FF9500);
}
.XYFT .lottery-ball.n02,
.XYFT2 .lottery-ball.n02,
.KPPK10 .lottery-ball.n02,
.JSPK10 .lottery-ball.n02,
.JSXYFT .lottery-ball.n02,
.KPXYFT .lottery-ball.n02 {
  background: linear-gradient(135deg, #0686EE, #0066CC);
}
.XYFT .lottery-ball.n03,
.XYFT2 .lottery-ball.n03,
.KPPK10 .lottery-ball.n03,
.JSPK10 .lottery-ball.n03,
.JSXYFT .lottery-ball.n03,
.KPXYFT .lottery-ball.n03 {
  background: linear-gradient(135deg, #666666, #444444);
}
.XYFT .lottery-ball.n04,
.XYFT2 .lottery-ball.n04,
.KPPK10 .lottery-ball.n04,
.JSPK10 .lottery-ball.n04,
.JSXYFT .lottery-ball.n04,
.KPXYFT .lottery-ball.n04 {
  background: linear-gradient(135deg, #FF5D11, #FF3300);
}
.XYFT .lottery-ball.n05,
.XYFT2 .lottery-ball.n05,
.KPPK10 .lottery-ball.n05,
.JSPK10 .lottery-ball.n05,
.JSXYFT .lottery-ball.n05,
.KPXYFT .lottery-ball.n05 {
  background: linear-gradient(135deg, #42D2E9, #00B8D4);
}
.XYFT .lottery-ball.n06,
.XYFT2 .lottery-ball.n06,
.KPPK10 .lottery-ball.n06,
.JSPK10 .lottery-ball.n06,
.JSXYFT .lottery-ball.n06,
.KPXYFT .lottery-ball.n06 {
  background: linear-gradient(135deg, #9775FF, #7C4DFF);
}
.XYFT .lottery-ball.n07,
.XYFT2 .lottery-ball.n07,
.KPPK10 .lottery-ball.n07,
.JSPK10 .lottery-ball.n07,
.JSXYFT .lottery-ball.n07,
.KPXYFT .lottery-ball.n07 {
  background: linear-gradient(135deg, #B4B4B4, #9E9E9E);
}
.XYFT .lottery-ball.n08,
.XYFT2 .lottery-ball.n08,
.KPPK10 .lottery-ball.n08,
.JSPK10 .lottery-ball.n08,
.JSXYFT .lottery-ball.n08,
.KPXYFT .lottery-ball.n08 {
  background: linear-gradient(135deg, #7A0000, #5D0000);
}
.XYFT .lottery-ball.n09,
.XYFT2 .lottery-ball.n09,
.KPPK10 .lottery-ball.n09,
.JSPK10 .lottery-ball.n09,
.JSXYFT .lottery-ball.n09,
.KPXYFT .lottery-ball.n09 {
  background: linear-gradient(135deg, #E02120, #C62828);
}
.XYFT .lottery-ball.n10,
.XYFT2 .lottery-ball.n10,
.KPPK10 .lottery-ball.n10,
.JSPK10 .lottery-ball.n10,
.JSXYFT .lottery-ball.n10,
.KPXYFT .lottery-ball.n10 {
  background: linear-gradient(135deg, #19C003, #00A000);
}

.BingoBingo .lottery-ball {
  background: linear-gradient(135deg, #18B3E7, #0097A7);
}
.BingoBingo .lottery-ball.special {
  background: linear-gradient(135deg, #E02120, #C62828);
}

.DWIN .lottery-ball {
  background: linear-gradient(135deg, #18B3E7, #0097A7);
  width: 50px;
  height: 50px;
}

.SuperLotto .lottery-ball,
.M638 .lottery-ball {
  background: linear-gradient(135deg, #19C003, #00A000);
}
.SuperLotto .lottery-ball.special,
.M638 .lottery-ball.special {
  background: linear-gradient(135deg, #E02120, #C62828);
}
.SuperLotto .lottery-ball.special::before,
.M638 .lottery-ball.special::before {
  content: "第二區";
  width: auto;
  padding: 2px 6px;
}

.BigLotto .lottery-ball,
.M649 .lottery-ball {
  background: linear-gradient(135deg, #FFB10A, #FF9500);
}
.BigLotto .lottery-ball.special,
.M649 .lottery-ball.special {
  background: linear-gradient(135deg, #E02120, #C62828);
}

.MARKSIX .lottery-ball.ball-red {
  background: linear-gradient(135deg, #D32F2C, #B71C1C);
}
.MARKSIX .lottery-ball.ball-green {
  background: linear-gradient(135deg, #428C24, #2E7D32);
}
.MARKSIX .lottery-ball.ball-blue {
  background: linear-gradient(135deg, #3B8ABE, #1976D2);
}
.MARKSIX .lottery-ball:last-child {
  position: relative;
  margin-left: 20px;
}
.MARKSIX .lottery-ball:last-child::before {
  content: "+";
  position: absolute;
  left: -20px;
  top: 50%;
  transform: translateY(-50%);
  color: #666;
  font-size: 1.5rem;
  font-weight: bold;
}

.DayLotto .lottery-ball,
.M539 .lottery-ball {
  background: linear-gradient(135deg, #0686EE, #0066CC);
}

.Fantasy5 .lottery-ball,
.DaywaLotto .lottery-ball {
  background: linear-gradient(135deg, #F5F5F5, #E0E0E0);
  color: #111;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1), inset 0 1px 2px rgba(255, 255, 255, 0.9);
}

.ThreeStar .lottery-ball,
.FourStar .lottery-ball {
  background: linear-gradient(135deg, #9C27B0, #7B1FA2);
  font-size: 1.25rem;
}

@keyframes ballBounce {
  0% {
    transform: scale(0) rotate(180deg);
    opacity: 0;
  }
  50% {
    transform: scale(1.1) rotate(90deg);
  }
  100% {
    transform: scale(1) rotate(0deg);
    opacity: 1;
  }
}
@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}
@media (max-width: 768px) {
  .lottery-ball {
    width: 38px;
    height: 38px;
    font-size: 1rem;
    margin: 0 3px;
  }
  .DWIN .lottery-ball {
    width: 42px;
    height: 42px;
  }
  .lottery-numbers {
    gap: 6px;
    padding: 0.75rem;
  }
}
@media (max-width: 480px) {
  .lottery-ball {
    width: 32px;
    height: 32px;
    font-size: 0.875rem;
    margin: 0 2px;
  }
  .DWIN .lottery-ball {
    width: 36px;
    height: 36px;
  }
  .lottery-numbers {
    gap: 4px;
    padding: 0.5rem;
  }
}
.dark-theme .lottery-ball {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}
.dark-theme .lottery-ball:hover {
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}
.dark-theme .lottery-ball.ball-loading {
  background: linear-gradient(90deg, #374151 0%, #4B5563 50%, #374151 100%);
}
.dark-theme .lottery-ball.ball-loading::after {
  background: #1F2937;
}
.dark-theme .Fantasy5 .lottery-ball,
.dark-theme .DaywaLotto .lottery-ball {
  background: linear-gradient(135deg, #374151, #1F2937);
  color: #F3F4F6;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

#footerDiv,
footer#footerDiv {
  margin-top: 4rem;
  background: linear-gradient(135deg, #064e3b 0%, #022c22 100%);
  color: white;
  position: relative;
  overflow: hidden;
}
#footerDiv::before,
footer#footerDiv::before {
  content: "";
  position: absolute;
  top: -50px;
  left: 0;
  right: 0;
  height: 100px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 100'%3E%3Cpath fill='%23ffffff' fill-opacity='1' d='M0,32L60,37.3C120,43,240,53,360,58.7C480,64,600,64,720,58.7C840,53,960,43,1080,42.7C1200,43,1320,53,1380,58.7L1440,64L1440,0L1380,0C1320,0,1200,0,1080,0C960,0,840,0,720,0C600,0,480,0,360,0C240,0,120,0,60,0L0,0Z'%3E%3C/path%3E%3C/svg%3E") no-repeat;
  background-size: cover;
}

.footer {
  padding: 2rem 0 0;
  position: relative;
  z-index: 1;
}
.footer .footer_middle {
  padding: 2rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.footer .footer_middle .middle_line {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-around;
  align-items: center;
  gap: 2rem;
}
@media (max-width: 768px) {
  .footer .footer_middle .middle_line {
    flex-direction: column;
    gap: 1rem;
  }
}
.footer .footer_middle .middle_line div {
  text-align: center;
}
.footer .footer_middle .middle_line div p {
  margin: 0;
  color: #a7f3d0;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  padding: 0.5rem 1rem;
}
.footer .footer_middle .middle_line div p::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}
.footer .footer_middle .middle_line div p:hover {
  color: #10b981;
  transform: translateY(-2px);
}
.footer .footer_middle .middle_line div p:hover::after {
  width: 100%;
}
.footer .footer_down {
  padding: 2rem;
  text-align: center;
}
.footer .footer_down div {
  max-width: 1400px;
  margin: 0 auto;
}
.footer .footer_down div p {
  margin: 0;
  color: #a7f3d0;
  font-size: 0.875rem;
  line-height: 1.5;
}
.footer .footer_down div p a {
  color: #10b981;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-block;
}
.footer .footer_down div p a:hover {
  color: #34d399;
  transform: scale(1.05);
}

.backtop,
button.backtop {
  border: none;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 999;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}
.backtop i,
button.backtop i {
  color: white;
  font-size: 1.25rem;
}
.backtop:hover,
button.backtop:hover {
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}
.backtop:active,
button.backtop:active {
  transform: translateY(-2px) scale(1.05);
}
@media (max-width: 768px) {
  .backtop,
  button.backtop {
    width: 40px;
    height: 40px;
    bottom: 1.5rem;
    right: 1.5rem;
  }
  .backtop i,
  button.backtop i {
    font-size: 1rem;
  }
}

.dark-theme #footerDiv {
  background: linear-gradient(135deg, #111827 0%, #000000 100%);
}
.dark-theme #footerDiv::before {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 100'%3E%3Cpath fill='%231f2937' fill-opacity='1' d='M0,32L60,37.3C120,43,240,53,360,58.7C480,64,600,64,720,58.7C840,53,960,43,1080,42.7C1200,43,1320,53,1380,58.7L1440,64L1440,0L1380,0C1320,0,1200,0,1080,0C960,0,840,0,720,0C600,0,480,0,360,0C240,0,120,0,60,0L0,0Z'%3E%3C/path%3E%3C/svg%3E") no-repeat;
}
.dark-theme .footer .footer_middle {
  border-bottom-color: rgba(255, 255, 255, 0.05);
}
.dark-theme .footer .footer_middle .middle_line div p {
  color: #9ca3af;
}
.dark-theme .footer .footer_middle .middle_line div p:hover {
  color: #10b981;
}
.dark-theme .footer .footer_down div p {
  color: #6b7280;
}
.dark-theme .footer .footer_down div p a {
  color: #10b981;
}
.dark-theme .footer .footer_down div p a:hover {
  color: #34d399;
}
.dark-theme .backtop {
  background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
  border: 1px solid rgba(16, 185, 129, 0.3);
}
.dark-theme .backtop:hover {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border-color: transparent;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
#footerDiv {
  animation: fadeInUp 0.8s ease-out;
}

.history-modern-layout {
  min-height: 100vh;
  background: linear-gradient(180deg, #ecfdf5 0%, #ffffff 50%, #f0fdf4 100%);
  position: relative;
  overflow: hidden;
}
.history-modern-layout::before {
  content: "";
  position: fixed;
  top: 50%;
  left: 50%;
  width: 100vw;
  height: 100vw;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.05) 0%, transparent 60%);
  transform: translate(-50%, -50%);
  animation: rotate 60s linear infinite;
  pointer-events: none;
  z-index: -1;
}

.history-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(229, 231, 235, 0.3);
  padding: 1.5rem 0;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}
.history-header .header-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}
@media (max-width: 768px) {
  .history-header .header-container {
    padding: 0 1rem;
  }
}
.history-header .lottery-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.history-header .lottery-title h1 {
  font-size: 2rem;
  font-weight: 700;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0;
}
@media (max-width: 768px) {
  .history-header .lottery-title h1 {
    font-size: 1.5rem;
  }
}
.history-header .lottery-title .period-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.history-header .lottery-title .period-info .period-badge {
  padding: 0.5rem 1.25rem;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.875rem;
  box-shadow: 0 2px 10px rgba(16, 185, 129, 0.3);
}
@media (max-width: 480px) {
  .history-header .lottery-title .period-info .period-badge {
    padding: 0.375rem 1rem;
    font-size: 0.75rem;
  }
}

.history-grid {
  max-width: 1400px;
  margin: 2rem auto;
  padding: 0 2rem;
}
@media (max-width: 768px) {
  .history-grid {
    padding: 0 1rem;
    margin: 1rem auto;
  }
}

.history-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  position: relative;
  margin-bottom: 1.5rem;
}
.history-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}
.history-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}
.history-card .card-header {
  padding: 1.25rem 1.5rem;
  background: linear-gradient(135deg, #f8faff 0%, #ffffff 100%);
  border-bottom: 1px solid #e5e7eb;
}
@media (max-width: 768px) {
  .history-card .card-header {
    padding: 1rem;
  }
}
.history-card .card-header .issue-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.history-card .card-header .issue-info .issue-number {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.history-card .card-header .issue-info .issue-number .issue-label {
  font-size: 0.875rem;
  color: #6b7280;
  font-weight: 500;
}
.history-card .card-header .issue-info .issue-number .issue-value {
  font-size: 1.125rem;
  font-weight: 700;
  color: #10b981;
}
@media (max-width: 768px) {
  .history-card .card-header .issue-info .issue-number .issue-value {
    font-size: 1rem;
  }
}
.history-card .card-header .issue-info .draw-time {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #6b7280;
  font-size: 0.875rem;
}
.history-card .card-header .issue-info .draw-time i {
  color: #10b981;
}
@media (max-width: 480px) {
  .history-card .card-header .issue-info .draw-time {
    font-size: 0.75rem;
  }
}
.history-card .card-body {
  padding: 1.5rem;
}
@media (max-width: 768px) {
  .history-card .card-body {
    padding: 1rem;
  }
}
.history-card .card-body .draw-numbers {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}
@media (max-width: 768px) {
  .history-card .card-body .draw-numbers {
    gap: 0.5rem;
    margin-bottom: 1rem;
  }
}
.history-card .card-body .draw-numbers .number-ball {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.125rem;
  color: white;
  position: relative;
  animation: ballDrop 0.5s ease forwards;
  opacity: 0;
  transform: translateY(-20px);
}
@media (max-width: 768px) {
  .history-card .card-body .draw-numbers .number-ball {
    width: 42px;
    height: 42px;
    font-size: 1rem;
  }
}
@media (max-width: 480px) {
  .history-card .card-body .draw-numbers .number-ball {
    width: 36px;
    height: 36px;
    font-size: 0.875rem;
  }
}
.history-card .card-body .draw-numbers .number-ball:nth-child(1) {
  animation-delay: 0.05s;
}
.history-card .card-body .draw-numbers .number-ball:nth-child(2) {
  animation-delay: 0.1s;
}
.history-card .card-body .draw-numbers .number-ball:nth-child(3) {
  animation-delay: 0.15s;
}
.history-card .card-body .draw-numbers .number-ball:nth-child(4) {
  animation-delay: 0.2s;
}
.history-card .card-body .draw-numbers .number-ball:nth-child(5) {
  animation-delay: 0.25s;
}
.history-card .card-body .draw-numbers .number-ball:nth-child(6) {
  animation-delay: 0.3s;
}
.history-card .card-body .draw-numbers .number-ball:nth-child(7) {
  animation-delay: 0.35s;
}
.history-card .card-body .draw-numbers .number-ball:nth-child(8) {
  animation-delay: 0.4s;
}
.history-card .card-body .draw-numbers .number-ball:nth-child(9) {
  animation-delay: 0.45s;
}
.history-card .card-body .draw-numbers .number-ball:nth-child(10) {
  animation-delay: 0.5s;
}
.history-card .card-body .draw-numbers .number-ball:nth-child(11) {
  animation-delay: 0.55s;
}
.history-card .card-body .draw-numbers .number-ball:nth-child(12) {
  animation-delay: 0.6s;
}
.history-card .card-body .draw-numbers .number-ball:nth-child(13) {
  animation-delay: 0.65s;
}
.history-card .card-body .draw-numbers .number-ball:nth-child(14) {
  animation-delay: 0.7s;
}
.history-card .card-body .draw-numbers .number-ball:nth-child(15) {
  animation-delay: 0.75s;
}
.history-card .card-body .draw-numbers .number-ball:nth-child(16) {
  animation-delay: 0.8s;
}
.history-card .card-body .draw-numbers .number-ball:nth-child(17) {
  animation-delay: 0.85s;
}
.history-card .card-body .draw-numbers .number-ball:nth-child(18) {
  animation-delay: 0.9s;
}
.history-card .card-body .draw-numbers .number-ball:nth-child(19) {
  animation-delay: 0.95s;
}
.history-card .card-body .draw-numbers .number-ball:nth-child(20) {
  animation-delay: 1s;
}
.history-card .card-body .draw-numbers .number-ball.ball-default {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}
.history-card .card-body .draw-numbers .number-ball.ball-special {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  box-shadow: 0 4px 12px rgba(251, 191, 36, 0.3);
}
.history-card .card-body .draw-numbers .number-ball.ball-special::after {
  content: "特";
  position: absolute;
  top: -8px;
  right: -8px;
  background: #ef4444;
  color: white;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}
.history-card .card-body .draw-numbers .number-ball.ball-red {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}
.history-card .card-body .draw-numbers .number-ball.ball-blue {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}
.history-card .card-body .draw-numbers .number-ball.ball-green {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}
.history-card .card-body .draw-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1rem;
}
@media (max-width: 480px) {
  .history-card .card-body .draw-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
}
.history-card .card-body .draw-stats .stat-item {
  text-align: center;
  padding: 0.75rem;
  background: #f9fafb;
  border-radius: 8px;
  transition: all 0.3s ease;
}
.history-card .card-body .draw-stats .stat-item:hover {
  background: #f3f4f6;
  transform: scale(1.05);
}
.history-card .card-body .draw-stats .stat-item .stat-label {
  font-size: 0.75rem;
  color: #9ca3af;
  margin-bottom: 0.25rem;
}
.history-card .card-body .draw-stats .stat-item .stat-value {
  font-size: 1.125rem;
  font-weight: 700;
  color: #1f2937;
}
@media (max-width: 768px) {
  .history-card .card-body .draw-stats .stat-item .stat-value {
    font-size: 1rem;
  }
}
.history-card .card-body .draw-stats .stat-item .stat-value.text-hot {
  color: #ef4444;
}
.history-card .card-body .draw-stats .stat-item .stat-value.text-cold {
  color: #3b82f6;
}
.history-card .card-footer {
  padding: 1rem 1.5rem;
  background: #f9fafb;
  border-top: 1px solid #e5e7eb;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
@media (max-width: 768px) {
  .history-card .card-footer {
    padding: 0.75rem 1rem;
  }
}
.history-card .card-footer .action-buttons {
  display: flex;
  gap: 0.5rem;
}
.history-card .card-footer .action-buttons .btn {
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
@media (max-width: 480px) {
  .history-card .card-footer .action-buttons .btn {
    padding: 0.5rem 0.75rem;
    font-size: 0.75rem;
  }
}
.history-card .card-footer .action-buttons .btn.btn-primary {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
}
.history-card .card-footer .action-buttons .btn.btn-primary:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}
.history-card .card-footer .action-buttons .btn.btn-secondary {
  background: white;
  color: #6b7280;
  border: 1px solid #e5e7eb;
}
.history-card .card-footer .action-buttons .btn.btn-secondary:hover {
  background: #f3f4f6;
}
.history-card .card-footer .update-info {
  font-size: 0.75rem;
  color: #9ca3af;
}
@media (max-width: 480px) {
  .history-card .card-footer .update-info {
    font-size: 0.625rem;
  }
}

.history-card.type-pk10 .draw-numbers .number-ball {
  border-radius: 8px;
  width: 45px;
  height: 45px;
}
@media (max-width: 768px) {
  .history-card.type-pk10 .draw-numbers .number-ball {
    width: 40px;
    height: 40px;
  }
}
.history-card.type-pk10 .draw-numbers .number-ball.n01 {
  background: linear-gradient(135deg, #FFB10A, #FF9500);
}
.history-card.type-pk10 .draw-numbers .number-ball.n02 {
  background: linear-gradient(135deg, #0686EE, #0066CC);
}
.history-card.type-pk10 .draw-numbers .number-ball.n03 {
  background: linear-gradient(135deg, #666666, #444444);
}
.history-card.type-pk10 .draw-numbers .number-ball.n04 {
  background: linear-gradient(135deg, #FF5D11, #FF3300);
}
.history-card.type-pk10 .draw-numbers .number-ball.n05 {
  background: linear-gradient(135deg, #42D2E9, #00B8D4);
}
.history-card.type-pk10 .draw-numbers .number-ball.n06 {
  background: linear-gradient(135deg, #9775FF, #7C4DFF);
}
.history-card.type-pk10 .draw-numbers .number-ball.n07 {
  background: linear-gradient(135deg, #B4B4B4, #9E9E9E);
}
.history-card.type-pk10 .draw-numbers .number-ball.n08 {
  background: linear-gradient(135deg, #7A0000, #5D0000);
}
.history-card.type-pk10 .draw-numbers .number-ball.n09 {
  background: linear-gradient(135deg, #E02120, #C62828);
}
.history-card.type-pk10 .draw-numbers .number-ball.n10 {
  background: linear-gradient(135deg, #19C003, #00A000);
}
.history-card.type-pk10 .dragon-tiger {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #e5e7eb;
}
.history-card.type-pk10 .dragon-tiger .battle-item {
  padding: 0.5rem 1rem;
  background: #f3f4f6;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.875rem;
}
@media (max-width: 480px) {
  .history-card.type-pk10 .dragon-tiger .battle-item {
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
  }
}
.history-card.type-pk10 .dragon-tiger .battle-item.dragon {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: white;
}
.history-card.type-pk10 .dragon-tiger .battle-item.tiger {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: white;
}

@keyframes ballDrop {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes rotate {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}
.history-pagination {
  max-width: 1400px;
  margin: 2rem auto;
  padding: 0 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
}
@media (max-width: 768px) {
  .history-pagination {
    padding: 0 1rem;
  }
}
.history-pagination .pagination-item {
  padding: 0.5rem 1rem;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  color: #6b7280;
  text-decoration: none;
  transition: all 0.3s ease;
  font-weight: 500;
}
@media (max-width: 480px) {
  .history-pagination .pagination-item {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
  }
}
.history-pagination .pagination-item:hover {
  background: #f3f4f6;
  border-color: #10b981;
  color: #10b981;
}
.history-pagination .pagination-item.active {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  border-color: transparent;
}
.history-pagination .pagination-item.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.history-empty {
  max-width: 600px;
  margin: 4rem auto;
  text-align: center;
  padding: 3rem 2rem;
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}
.history-empty .empty-icon {
  font-size: 3rem;
  color: #10b981;
  margin-bottom: 1rem;
}
.history-empty .empty-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 0.5rem;
}
.history-empty .empty-desc {
  color: #6b7280;
  margin-bottom: 1.5rem;
}
.history-empty .empty-action .btn-primary {
  padding: 0.75rem 2rem;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  border-radius: 8px;
  text-decoration: none;
  display: inline-block;
  font-weight: 600;
  transition: all 0.3s ease;
}
.history-empty .empty-action .btn-primary:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

@media (prefers-color-scheme: dark) {
  .history-modern-layout {
    background: linear-gradient(180deg, #111827 0%, #1f2937 50%, #111827 100%);
  }
  .history-header {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom-color: rgba(255, 255, 255, 0.1);
  }
  .history-card {
    background: #1f2937;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  }
  .history-card .card-header {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    border-bottom-color: #374151;
  }
  .history-card .card-header .issue-value {
    color: #34d399;
  }
  .history-card .card-header .draw-time {
    color: #d1d5db;
  }
  .history-card .card-body .draw-stats .stat-item {
    background: #111827;
  }
  .history-card .card-body .draw-stats .stat-item:hover {
    background: #1f2937;
  }
  .history-card .card-body .draw-stats .stat-item .stat-value {
    color: #f3f4f6;
  }
  .history-card .card-footer {
    background: #111827;
    border-top-color: #374151;
  }
  .history-card .card-footer .update-info {
    color: #9ca3af;
  }
  .history-empty {
    background: #1f2937;
  }
  .history-empty .empty-title {
    color: #f3f4f6;
  }
  .history-empty .empty-desc {
    color: #d1d5db;
  }
}
.bodybox {
  min-height: 100vh;
  background: linear-gradient(180deg, #ecfdf5 0%, #ffffff 50%, #f0fdf4 100%);
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.pagediv {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1rem;
}

.headbox.modern-header {
  position: sticky !important;
  top: 0 !important;
  z-index: 1000 !important;
  background: rgba(255, 255, 255, 0.1) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  padding: 1rem 0 !important;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05) !important;
  transition: all 0.3s ease !important;
}
.headbox.modern-header .header-container {
  max-width: 1400px !important;
  margin: 0 auto !important;
  padding: 0 2rem !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
}
@media (max-width: 768px) {
  .headbox.modern-header .header-container {
    padding: 0 1rem !important;
  }
}
.headbox.modern-header .logo-section {
  display: flex !important;
  align-items: center !important;
  gap: 1rem !important;
  flex: 0 0 auto !important;
}
.headbox.modern-header .logo-section .logo {
  height: 40px !important;
  transition: transform 0.3s ease !important;
}
.headbox.modern-header .logo-section .logo:hover {
  transform: scale(1.05) !important;
}
.headbox.modern-header .nav-menu {
  display: flex !important;
  gap: 2rem !important;
  align-items: center !important;
  flex: 1 1 auto !important;
  justify-content: center !important;
}
@media (max-width: 1024px) {
  .headbox.modern-header .nav-menu {
    display: none !important;
  }
}
.headbox.modern-header .nav-menu .nav-item {
  position: relative !important;
  padding: 0.5rem 1rem !important;
  color: #4b5563 !important;
  font-weight: 500 !important;
  transition: all 0.3s ease !important;
  cursor: pointer !important;
  text-decoration: none !important;
  white-space: nowrap !important;
}
.headbox.modern-header .nav-menu .nav-item::after {
  content: "" !important;
  position: absolute !important;
  bottom: 0 !important;
  left: 50% !important;
  width: 0 !important;
  height: 2px !important;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
  transition: all 0.3s ease !important;
  transform: translateX(-50%) !important;
}
.headbox.modern-header .nav-menu .nav-item:hover {
  color: #10b981 !important;
}
.headbox.modern-header .nav-menu .nav-item:hover::after {
  width: 100% !important;
}
.headbox.modern-header .header-actions {
  display: flex !important;
  gap: 1rem !important;
  align-items: center !important;
  flex: 0 0 auto !important;
}

.hamburger.mobile-menu-toggle {
  display: none !important;
  position: fixed !important;
  top: 1rem !important;
  right: 1rem !important;
  z-index: 1002 !important;
  width: 40px !important;
  height: 40px !important;
  background: #fff !important;
  border: none !important;
  border-radius: 8px !important;
  cursor: pointer !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
  padding: 0 !important;
  margin-left: auto !important;
}
@media (max-width: 1024px) {
  .hamburger.mobile-menu-toggle {
    display: flex !important;
  }
}
.hamburger.mobile-menu-toggle span {
  width: 24px !important;
  height: 2px !important;
  background: #10b981 !important;
  margin: 3px 0 !important;
  transition: all 0.3s ease !important;
  display: block !important;
}
.hamburger.mobile-menu-toggle:hover {
  transform: scale(1.05) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

#menu:checked ~ .hamburger.mobile-menu-toggle span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px) !important;
}
#menu:checked ~ .hamburger.mobile-menu-toggle span:nth-child(2) {
  opacity: 0 !important;
}
#menu:checked ~ .hamburger.mobile-menu-toggle span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px) !important;
}

.header_block {
  display: none !important;
}
@media (min-width: 1025px) {
  .header_block {
    display: none !important;
  }
}
@media (max-width: 1024px) {
  .header_block {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    z-index: 1000 !important;
    overflow-y: auto !important;
    animation: slideIn 0.3s ease !important;
    padding: 2rem !important;
  }
  .header_block h1 {
    color: #fff !important;
    text-align: center !important;
    padding: 1.5rem !important;
    margin: 0 0 2rem 0 !important;
    font-size: 1.75rem !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2) !important;
  }
  .header_block ul {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1rem !important;
    padding: 0 !important;
    margin: 0 !important;
    list-style: none !important;
  }
}
@media (max-width: 1024px) and (max-width: 480px) {
  .header_block ul {
    grid-template-columns: 1fr !important;
  }
}
@media (max-width: 1024px) {
  .header_block ul li {
    background: rgba(255, 255, 255, 0.1) !important;
    border-radius: 8px !important;
    backdrop-filter: blur(10px) !important;
  }
  .header_block ul li a {
    display: block !important;
    padding: 1rem !important;
    color: #fff !important;
    text-align: center !important;
    text-decoration: none !important;
    font-weight: 500 !important;
    white-space: nowrap !important;
    overflow: visible !important;
    transition: all 0.3s ease !important;
  }
  .header_block ul li a:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    border-radius: 8px !important;
  }
}

@media (max-width: 1024px) {
  #menu:checked ~ .header_block {
    display: block !important;
  }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(100%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
.headNum {
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  margin: 2rem 0;
  overflow: hidden;
  position: relative;
}
.headNum::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}
.headNum .divline {
  padding: 1.5rem;
  border-bottom: 1px solid #e5e7eb;
}
.headNum .divline:last-child {
  border-bottom: none;
}
.headNum .divline.issuel {
  background: linear-gradient(135deg, #f8faff 0%, #ffffff 100%);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.headNum .divline.issuel .lotName {
  font-size: 1.75rem;
  font-weight: 700;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0;
}
.headNum .divline.issuel .issue {
  font-size: 1.125rem;
  font-weight: 600;
  color: #1f2937;
}
.headNum .divline.issuel .issue .preDrawIssue {
  color: #10b981;
  font-weight: 700;
}
.headNum .divline.drawCodel .pk10li, .headNum .divline.drawCodel.numberbox {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 0.75rem !important;
  justify-content: center !important;
  padding: 1rem 0 !important;
  list-style: none !important;
  margin: 0 !important;
}
.headNum .divline.drawCodel .pk10li li, .headNum .divline.drawCodel.numberbox li {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}
.headNum .divline.drawCodel .pk10li li span, .headNum .divline.drawCodel.numberbox li span {
  width: 48px !important;
  height: 48px !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-weight: 700 !important;
  font-size: 1.125rem !important;
  color: white !important;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3) !important;
  transition: all 0.3s ease !important;
  animation: ballDrop 0.5s ease forwards;
}
.headNum .divline.drawCodel .pk10li li span:hover, .headNum .divline.drawCodel.numberbox li span:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(16, 185, 129, 0.4) !important;
}
.headNum .divline.tiger .pk10li2, .headNum .divline.tiger .longhu, .headNum .divline.tiger .customplay {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 0.5rem !important;
  padding: 0.5rem 0 !important;
  list-style: none !important;
  margin: 0 !important;
}
.headNum .divline.tiger .pk10li2 li, .headNum .divline.tiger .longhu li, .headNum .divline.tiger .customplay li {
  padding: 0.5rem 1rem !important;
  background: #f3f4f6 !important;
  border-radius: 8px !important;
  font-weight: 500 !important;
  font-size: 0.875rem !important;
  transition: all 0.3s ease !important;
}
.headNum .divline.tiger .pk10li2 li:hover, .headNum .divline.tiger .longhu li:hover, .headNum .divline.tiger .customplay li:hover {
  background: #e5e7eb !important;
  transform: scale(1.05);
}
.headNum .divline.tiger .pk10li2 li.styleL, .headNum .divline.tiger .pk10li2 li.dragon, .headNum .divline.tiger .longhu li.styleL, .headNum .divline.tiger .longhu li.dragon, .headNum .divline.tiger .customplay li.styleL, .headNum .divline.tiger .customplay li.dragon {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
  color: white !important;
}
.headNum .divline.tiger .pk10li2 li.styleH, .headNum .divline.tiger .pk10li2 li.tiger, .headNum .divline.tiger .longhu li.styleH, .headNum .divline.tiger .longhu li.tiger, .headNum .divline.tiger .customplay li.styleH, .headNum .divline.tiger .customplay li.tiger {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%) !important;
  color: white !important;
}
.headNum .divline.drawTimebox {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f9fafb;
}
.headNum .divline.drawTimebox .flexl {
  font-size: 1rem;
  color: #6b7280;
  font-weight: 500;
}
.headNum .divline.drawTimebox .timer {
  font-size: 1.25rem;
  font-weight: 700;
  color: #ef4444;
  font-family: "Roboto Mono", monospace;
}

.ListHead {
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  margin: 2rem 0;
  overflow: hidden;
}
.ListHead .headTitle {
  display: flex;
  gap: 0;
  background: #f9fafb;
  border-bottom: 2px solid #e5e7eb;
}
.ListHead .headTitle > div {
  position: relative;
  padding: 1rem 1.5rem;
  cursor: pointer;
  color: #6b7280;
  font-weight: 500;
  transition: all 0.3s ease;
  flex: 1;
  text-align: center;
}
.ListHead .headTitle > div:hover {
  color: #10b981;
  background: white;
}
.ListHead .headTitle > div.checkedbl {
  color: #10b981;
  background: white;
}
.ListHead .headTitle > div.checkedbl::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}
.ListHead .headTitle > div span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
.ListHead .contentlist {
  padding: 2rem;
  min-height: 300px;
}
.ListHead .contentlist .noAction {
  text-align: center;
  padding: 3rem 2rem;
  color: #9ca3af;
  font-size: 1rem;
}

.MARKSIX .pk10li li.ball-red span {
  background: linear-gradient(135deg, #ef4444, #dc2626) !important;
}
.MARKSIX .pk10li li.ball-blue span {
  background: linear-gradient(135deg, #3b82f6, #2563eb) !important;
}
.MARKSIX .pk10li li.ball-green span {
  background: linear-gradient(135deg, #10b981, #059669) !important;
}
.MARKSIX .pk10li li.spec span {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%) !important;
  position: relative;
}
.MARKSIX .pk10li li.spec span::after {
  content: "特";
  position: absolute;
  top: -8px;
  right: -8px;
  background: #ef4444;
  color: white;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

.XYFT .pk10li li span, .XYFT2 .pk10li li span, .KPPK10 .pk10li li span, .JSPK10 .pk10li li span, .JSXYFT .pk10li li span, .KPXYFT .pk10li li span {
  border-radius: 8px !important;
}

@keyframes ballDrop {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (max-width: 768px) {
  .pagediv {
    padding: 0 0.5rem;
  }
  .headbox {
    padding: 1rem;
  }
  .headNum .divline {
    padding: 1rem;
  }
  .headNum .divline.issuel {
    flex-direction: column;
    align-items: flex-start;
  }
  .headNum .divline.issuel .lotName {
    font-size: 1.5rem;
  }
  .headNum .divline.drawCodel .pk10li li span, .headNum .divline.drawCodel.numberbox li span {
    width: 40px !important;
    height: 40px !important;
    font-size: 1rem !important;
  }
}
@media (max-width: 480px) {
  .headNum .divline.drawCodel .pk10li li span, .headNum .divline.drawCodel.numberbox li span {
    width: 36px !important;
    height: 36px !important;
    font-size: 0.875rem !important;
  }
}
.drawCodebox.kaijianghm {
  display: block !important;
}
.drawCodebox.shuangmiantj {
  display: none !important;
}
.drawCodebox.shuangmiantj:not(.displaynone) {
  display: block !important;
}
.drawCodebox.shuangmiantj .description {
  background: #f8fafc !important;
  padding: 1rem !important;
  margin-bottom: 1rem !important;
  border-radius: 8px !important;
  border-left: 4px solid #10b981 !important;
}
.drawCodebox.shuangmiantj .description p {
  margin: 0.25rem 0 !important;
  color: #6b7280 !important;
  font-size: 0.875rem !important;
}
.drawCodebox.shuangmiantj .description p span {
  color: #10b981 !important;
  font-weight: 600 !important;
}
.drawCodebox.shuangmiantj .typeswitch {
  display: flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
  margin-bottom: 1rem !important;
  flex-wrap: wrap !important;
}
.drawCodebox.shuangmiantj .typeswitch p {
  font-weight: 600 !important;
  color: #1f2937 !important;
  margin: 0 !important;
  min-width: 80px !important;
}
.drawCodebox.shuangmiantj .typeswitch span {
  cursor: pointer !important;
}
.drawCodebox.shuangmiantj .typeswitch span i {
  display: inline-block !important;
  padding: 0.5rem 1rem !important;
  background: #f3f4f6 !important;
  color: #6b7280 !important;
  border-radius: 6px !important;
  font-style: normal !important;
  font-size: 0.875rem !important;
  font-weight: 500 !important;
  transition: all 0.3s ease !important;
}
.drawCodebox.shuangmiantj .typeswitch span i.active {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
  color: white !important;
}
.drawCodebox.shuangmiantj .typeswitch span i:hover {
  background: #e5e7eb !important;
}
.drawCodebox.shuangmiantj .typeswitch span i:hover.active {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
}
.drawCodebox.shuangmiantj .ctemplate.displaynone {
  display: none !important;
}
.drawCodebox.shuangmiantj .ctemplate .tResult {
  display: grid !important;
  gap: 0.5rem !important;
}
.drawCodebox.shuangmiantj .ctemplate .tResult.multi {
  display: block !important;
}
.drawCodebox.shuangmiantj .ctemplate .tResult.multi > div {
  margin-bottom: 1.5rem !important;
  padding: 1rem !important;
  background: #f9fafb !important;
  border-radius: 8px !important;
  border-left: 3px solid #10b981 !important;
}
.drawCodebox.shuangmiantj .ctemplate .tResult.multi > div p {
  margin: 0 0 0.75rem 0 !important;
  font-weight: 600 !important;
  color: #1f2937 !important;
}
.drawCodebox.shuangmiantj .ctemplate .tResult.multi > div p span.multiResult {
  color: #10b981 !important;
}
.drawCodebox.shuangmiantj .ctemplate .tResult.multi > div > div {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)) !important;
  gap: 0.5rem !important;
}
.drawCodebox.shuangmiantj .ctemplate .tResult ul {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  padding: 0.75rem !important;
  background: #f9fafb !important;
  border-radius: 6px !important;
  margin: 0 !important;
  list-style: none !important;
  transition: all 0.3s ease !important;
}
.drawCodebox.shuangmiantj .ctemplate .tResult ul:hover {
  background: #f3f4f6 !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}
.drawCodebox.shuangmiantj .ctemplate .tResult ul li:first-child {
  font-weight: 600 !important;
  color: #1f2937 !important;
}
.drawCodebox.shuangmiantj .ctemplate .tResult ul li:first-child span {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 32px !important;
  height: 32px !important;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
  color: white !important;
  border-radius: 50% !important;
  font-size: 0.875rem !important;
  font-weight: 700 !important;
}
.drawCodebox.shuangmiantj .ctemplate .tResult ul li:first-child span.append {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%) !important;
}
.drawCodebox.shuangmiantj .ctemplate .tResult ul li:last-child {
  color: #6b7280 !important;
  font-size: 0.875rem !important;
  font-weight: 500 !important;
}
.drawCodebox.changlongtj, .drawCodebox.haomafb {
  display: none !important;
}
.drawCodebox.changlongtj:not(.displaynone), .drawCodebox.haomafb:not(.displaynone) {
  display: block !important;
}

.displaynone {
  display: none !important;
}

.displaynone1 {
  display: block !important;
}

.bodybox {
  min-height: 100vh;
  background: linear-gradient(180deg, #ecfdf5 0%, #ffffff 50%, #f0fdf4 100%);
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.pagediv {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1rem;
}

.headbox {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}
.headbox .lotName {
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0;
  padding: 0.5rem 0;
}

.hamburger {
  display: none;
}
@media (max-width: 768px) {
  .hamburger {
    display: block;
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 1001;
    width: 40px;
    height: 40px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    padding: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  }
  .hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: #10b981;
    margin: 4px 0;
    transition: all 0.3s ease;
  }
}

.history {
  padding: 2rem 0;
}
.history .divline {
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  margin-bottom: 1rem;
  padding: 1rem;
  transition: all 0.3s ease;
}
.history .divline:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}
.history .issuel {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-left: 4px solid #10b981;
}
.history .issuel .issue {
  font-size: 1.125rem;
  font-weight: 600;
  color: #1f2937;
}
.history .issuel .drawCount {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.history .issuel .drawCount .drawCountnum {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
}
.history .drawCodel .pk10li {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  padding: 1rem 0;
}
.history .drawCodel .pk10li li {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.history .drawCodel .pk10li li span {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 1.125rem;
  color: white;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
  transition: all 0.3s ease;
}
.history .drawCodel .pk10li li span:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}
.history .drawCodel.numberbox {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  padding: 1rem 0;
  list-style: none;
  margin: 0;
}
.history .drawCodel.numberbox li {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.history .drawCodel.numberbox li span {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 1.125rem;
  color: white;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
  transition: all 0.3s ease;
}
.history .drawCodel.numberbox li span:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}
.history .numberbox {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  padding: 1rem 0;
  list-style: none;
  margin: 0;
}
.history .numberbox li {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.history .numberbox li span {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 1.125rem;
  color: white;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
  transition: all 0.3s ease;
  animation: ballDrop 0.5s ease forwards;
}
.history .numberbox li span:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}
.history .tiger .pk10li2 {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.history .tiger .pk10li2 li {
  padding: 0.5rem 1rem;
  background: #f3f4f6;
  border-radius: 8px;
  font-weight: 500;
}
.history .tiger .pk10li2 li.styleL {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: white;
}
.history .tiger .pk10li2 li.styleH {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: white;
}

.MARKSIX .pk10li li.ball-red span {
  background: linear-gradient(135deg, #ef4444, #dc2626) !important;
}
.MARKSIX .pk10li li.ball-blue span {
  background: linear-gradient(135deg, #3b82f6, #2563eb) !important;
}
.MARKSIX .pk10li li.ball-green span {
  background: linear-gradient(135deg, #10b981, #059669) !important;
}
.MARKSIX .pk10li li.spec span {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%) !important;
  position: relative;
}
.MARKSIX .pk10li li.spec span::after {
  content: "特";
  position: absolute;
  top: -8px;
  right: -8px;
  background: #ef4444;
  color: white;
  font-size: 0.625rem;
  padding: 2px 4px;
  border-radius: 4px;
  font-weight: bold;
}

#footerDiv {
  margin-top: 4rem;
  background: linear-gradient(135deg, #064e3b 0%, #022c22 100%);
  color: white;
  padding: 2rem 0;
}
#footerDiv .footer {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1rem;
  text-align: center;
}
#footerDiv .footer p {
  margin: 0.5rem 0;
  color: #a7f3d0;
}
#footerDiv .footer p a {
  color: #10b981;
  text-decoration: none;
}
#footerDiv .footer p a:hover {
  color: #34d399;
}

.contentlist {
  padding: 1rem;
  background: white;
}
.contentlist .historylist .historyitem {
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  margin-bottom: 1rem;
  padding: 1rem;
  transition: all 0.3s ease;
}
.contentlist .historylist .historyitem:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}
.contentlist .historylist .historyitem .itemissue {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #e5e7eb;
  margin-bottom: 0.75rem;
}
.contentlist .historylist .historyitem .itemissue .issue {
  font-size: 1rem;
  font-weight: 600;
  color: #1f2937;
}
.contentlist .historylist .historyitem .itemissue .drawtime {
  font-size: 0.875rem;
  color: #6b7280;
}
.contentlist .historylist .historyitem .itemdrawcode {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}
.contentlist .historylist .historyitem .itemdrawcode .ballnumber {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 1rem;
  color: white;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
  transition: all 0.3s ease;
}
.contentlist .historylist .historyitem .itemdrawcode .ballnumber:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}
.contentlist .noAction {
  text-align: center;
  padding: 3rem 2rem;
  color: #6b7280;
  font-size: 1rem;
}

.customplay {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.5rem 0;
  list-style: none;
  margin: 0;
}
.customplay li {
  padding: 0.5rem 1rem;
  background: #f3f4f6;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.875rem;
  transition: all 0.3s ease;
}
.customplay li:hover {
  background: #e5e7eb;
  transform: scale(1.05);
}
.customplay li.dragon {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: white;
}
.customplay li.tiger {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: white;
}

.headTitle {
  display: flex;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 2px solid #e5e7eb;
}
.headTitle > div {
  position: relative;
  padding: 0.75rem 1.5rem;
  cursor: pointer;
  color: #6b7280;
  font-weight: 500;
  transition: all 0.3s ease;
}
.headTitle > div:hover {
  color: #10b981;
}
.headTitle > div.checkedbl {
  color: #10b981;
}
.headTitle > div.checkedbl::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}
.headTitle > div span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.headTitle > div span i {
  display: inline-block;
  width: 4px;
  height: 4px;
  background: #10b981;
  border-radius: 50%;
}

@keyframes ballDrop {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (max-width: 768px) {
  .pagediv {
    padding: 0 0.5rem;
  }
  .history .divline {
    padding: 0.75rem;
  }
  .history .drawCodel .pk10li li span {
    width: 38px;
    height: 38px;
    font-size: 1rem;
  }
}
.displaynone {
  display: none !important;
}

.XYFT .pk10li li span, .XYFT2 .pk10li li span, .KPPK10 .pk10li li span, .JSPK10 .pk10li li span, .JSXYFT .pk10li li span, .KPXYFT .pk10li li span {
  border-radius: 8px !important;
}