@charset "UTF-8";
:root {
  color-scheme: light dark;
  --c-page-from-light: #ecfdf5;
  --c-page-from-dark: #111827;
  --c-page-from: var(--c-page-from-light);
  --c-page-to-light: #f0fdf4;
  --c-page-to-dark: #111827;
  --c-page-to: var(--c-page-to-light);
  --c-paper-light: #f7f7f3;
  --c-paper-dark: #111827;
  --c-paper: var(--c-paper-light);
  --c-surface-light: #ffffff;
  --c-surface-dark: #1f2937;
  --c-surface: var(--c-surface-light);
  --c-surface-2-light: #f9fafb;
  --c-surface-2-dark: #172030;
  --c-surface-2: var(--c-surface-2-light);
  --c-surface-3-light: #f3f4f6;
  --c-surface-3-dark: #111827;
  --c-surface-3: var(--c-surface-3-light);
  --c-surface-4-light: #e5e7eb;
  --c-surface-4-dark: #374151;
  --c-surface-4: var(--c-surface-4-light);
  --c-surface-slate-light: #f8fafc;
  --c-surface-slate-dark: #172030;
  --c-surface-slate: var(--c-surface-slate-light);
  --c-surface-blue-light: #f8faff;
  --c-surface-blue-dark: #1a2433;
  --c-surface-blue: var(--c-surface-blue-light);
  --c-surface-warm-light: #fafaf6;
  --c-surface-warm-dark: #1a2230;
  --c-surface-warm: var(--c-surface-warm-light);
  --c-surface-tint-light: #f0fdf9;
  --c-surface-tint-dark: #12302a;
  --c-surface-tint: var(--c-surface-tint-light);
  --c-surface-glass-light: rgba(255, 255, 255, 0.95);
  --c-surface-glass-dark: rgba(17, 24, 39, 0.95);
  --c-surface-glass: var(--c-surface-glass-light);
  --c-glass-light: rgba(255, 255, 255, 0.1);
  --c-glass-dark: rgba(0, 0, 0, 0.3);
  --c-glass: var(--c-glass-light);
  --c-glass-border-light: rgba(255, 255, 255, 0.2);
  --c-glass-border-dark: rgba(255, 255, 255, 0.1);
  --c-glass-border: var(--c-glass-border-light);
  --c-text-light: #1f2937;
  --c-text-dark: #f3f4f6;
  --c-text: var(--c-text-light);
  --c-heading-light: #1e2329;
  --c-heading-dark: #f3f4f6;
  --c-heading: var(--c-heading-light);
  --c-text-2-light: #374151;
  --c-text-2-dark: #e5e7eb;
  --c-text-2: var(--c-text-2-light);
  --c-text-333-light: #333333;
  --c-text-333-dark: #e5e7eb;
  --c-text-333: var(--c-text-333-light);
  --c-text-444-light: #444444;
  --c-text-444-dark: #d1d5db;
  --c-text-444: var(--c-text-444-light);
  --c-text-3-light: #4b5563;
  --c-text-3-dark: #d1d5db;
  --c-text-3: var(--c-text-3-light);
  --c-text-555-light: #555555;
  --c-text-555-dark: #cbd5e1;
  --c-text-555: var(--c-text-555-light);
  --c-text-666-light: #666666;
  --c-text-666-dark: #a3aab5;
  --c-text-666: var(--c-text-666-light);
  --c-text-muted-light: #6b7280;
  --c-text-muted-dark: #9ca3af;
  --c-text-muted: var(--c-text-muted-light);
  --c-text-888-light: #888888;
  --c-text-888-dark: #9ca3af;
  --c-text-888: var(--c-text-888-light);
  --c-text-disabled-light: #cccccc;
  --c-text-disabled-dark: #4b5563;
  --c-text-disabled: var(--c-text-disabled-light);
  --c-gold-text-light: #6e5400;
  --c-gold-text-dark: #e3c06b;
  --c-gold-text: var(--c-gold-text-light);
  --c-border-light: #e5e7eb;
  --c-border-dark: #374151;
  --c-border: var(--c-border-light);
  --c-border-warm-light: #e6e6e0;
  --c-border-warm-dark: #374151;
  --c-border-warm: var(--c-border-warm-light);
  --c-border-eee-light: #eeeeee;
  --c-border-eee-dark: #374151;
  --c-border-eee: var(--c-border-eee-light);
  --c-border-beige-light: #f0ede4;
  --c-border-beige-dark: #2d3748;
  --c-border-beige: var(--c-border-beige-light);
  --c-tag-outline-light: transparent;
  --c-tag-outline-dark: #4b5563;
  --c-tag-outline: var(--c-tag-outline-light);
  --c-warn-bg-light: #fff8e6;
  --c-warn-bg-dark: #3a2e10;
  --c-warn-bg: var(--c-warn-bg-light);
  --c-warn-text-light: #7c5a0d;
  --c-warn-text-dark: #fcd34d;
  --c-warn-text: var(--c-warn-text-light);
  --c-footer-from-light: #064e3b;
  --c-footer-from-dark: #111827;
  --c-footer-from: var(--c-footer-from-light);
  --c-footer-to-light: #022c22;
  --c-footer-to-dark: #000000;
  --c-footer-to: var(--c-footer-to-light);
  --c-footer-wave-light: #ffffff;
  --c-footer-wave-dark: #111827;
  --c-footer-wave: var(--c-footer-wave-light);
  --c-footer-link-light: #a7f3d0;
  --c-footer-link-dark: #9ca3af;
  --c-footer-link: var(--c-footer-link-light);
  --c-backtop-from-light: #10b981;
  --c-backtop-from-dark: #1f2937;
  --c-backtop-from: var(--c-backtop-from-light);
  --c-backtop-to-light: #059669;
  --c-backtop-to-dark: #111827;
  --c-backtop-to: var(--c-backtop-to-light);
  --c-backtop-border-light: transparent;
  --c-backtop-border-dark: rgba(16, 185, 129, 0.3);
  --c-backtop-border: var(--c-backtop-border-light);
  --c-ball-shadow-light: rgba(0, 0, 0, 0.1);
  --c-ball-shadow-dark: rgba(0, 0, 0, 0.3);
  --c-ball-shadow: var(--c-ball-shadow-light);
  --c-ball-shadow-hover-light: rgba(0, 0, 0, 0.15);
  --c-ball-shadow-hover-dark: rgba(0, 0, 0, 0.4);
  --c-ball-shadow-hover: var(--c-ball-shadow-hover-light);
  --c-ball-white-from-light: #f5f5f5;
  --c-ball-white-from-dark: #374151;
  --c-ball-white-from: var(--c-ball-white-from-light);
  --c-ball-white-to-light: #e0e0e0;
  --c-ball-white-to-dark: #1f2937;
  --c-ball-white-to: var(--c-ball-white-to-light);
  --c-ball-white-text-light: #111;
  --c-ball-white-text-dark: #f3f4f6;
  --c-ball-white-text: var(--c-ball-white-text-light);
  --c-ball-white-text-shadow-light: rgba(0, 0, 0, 0.1);
  --c-ball-white-text-shadow-dark: rgba(0, 0, 0, 0.5);
  --c-ball-white-text-shadow: var(--c-ball-white-text-shadow-light);
  --c-ball-white-highlight-light: rgba(255, 255, 255, 0.9);
  --c-ball-white-highlight-dark: rgba(255, 255, 255, 0.08);
  --c-ball-white-highlight: var(--c-ball-white-highlight-light);
}
@media (prefers-color-scheme: dark) {
  :root {
    --c-page-from: var(--c-page-from-dark);
    --c-page-to: var(--c-page-to-dark);
    --c-paper: var(--c-paper-dark);
    --c-surface: var(--c-surface-dark);
    --c-surface-2: var(--c-surface-2-dark);
    --c-surface-3: var(--c-surface-3-dark);
    --c-surface-4: var(--c-surface-4-dark);
    --c-surface-slate: var(--c-surface-slate-dark);
    --c-surface-blue: var(--c-surface-blue-dark);
    --c-surface-warm: var(--c-surface-warm-dark);
    --c-surface-tint: var(--c-surface-tint-dark);
    --c-surface-glass: var(--c-surface-glass-dark);
    --c-glass: var(--c-glass-dark);
    --c-glass-border: var(--c-glass-border-dark);
    --c-text: var(--c-text-dark);
    --c-heading: var(--c-heading-dark);
    --c-text-2: var(--c-text-2-dark);
    --c-text-333: var(--c-text-333-dark);
    --c-text-444: var(--c-text-444-dark);
    --c-text-3: var(--c-text-3-dark);
    --c-text-555: var(--c-text-555-dark);
    --c-text-666: var(--c-text-666-dark);
    --c-text-muted: var(--c-text-muted-dark);
    --c-text-888: var(--c-text-888-dark);
    --c-text-disabled: var(--c-text-disabled-dark);
    --c-gold-text: var(--c-gold-text-dark);
    --c-border: var(--c-border-dark);
    --c-border-warm: var(--c-border-warm-dark);
    --c-border-eee: var(--c-border-eee-dark);
    --c-border-beige: var(--c-border-beige-dark);
    --c-tag-outline: var(--c-tag-outline-dark);
    --c-warn-bg: var(--c-warn-bg-dark);
    --c-warn-text: var(--c-warn-text-dark);
    --c-footer-from: var(--c-footer-from-dark);
    --c-footer-to: var(--c-footer-to-dark);
    --c-footer-wave: var(--c-footer-wave-dark);
    --c-footer-link: var(--c-footer-link-dark);
    --c-backtop-from: var(--c-backtop-from-dark);
    --c-backtop-to: var(--c-backtop-to-dark);
    --c-backtop-border: var(--c-backtop-border-dark);
    --c-ball-shadow: var(--c-ball-shadow-dark);
    --c-ball-shadow-hover: var(--c-ball-shadow-hover-dark);
    --c-ball-white-from: var(--c-ball-white-from-dark);
    --c-ball-white-to: var(--c-ball-white-to-dark);
    --c-ball-white-text: var(--c-ball-white-text-dark);
    --c-ball-white-text-shadow: var(--c-ball-white-text-shadow-dark);
    --c-ball-white-highlight: var(--c-ball-white-highlight-dark);
  }
}
@supports (color: light-dark(white, black)) {
  :root {
    --c-page-from: light-dark(var(--c-page-from-light), var(--c-page-from-dark));
    --c-page-to: light-dark(var(--c-page-to-light), var(--c-page-to-dark));
    --c-paper: light-dark(var(--c-paper-light), var(--c-paper-dark));
    --c-surface: light-dark(var(--c-surface-light), var(--c-surface-dark));
    --c-surface-2: light-dark(var(--c-surface-2-light), var(--c-surface-2-dark));
    --c-surface-3: light-dark(var(--c-surface-3-light), var(--c-surface-3-dark));
    --c-surface-4: light-dark(var(--c-surface-4-light), var(--c-surface-4-dark));
    --c-surface-slate: light-dark(var(--c-surface-slate-light), var(--c-surface-slate-dark));
    --c-surface-blue: light-dark(var(--c-surface-blue-light), var(--c-surface-blue-dark));
    --c-surface-warm: light-dark(var(--c-surface-warm-light), var(--c-surface-warm-dark));
    --c-surface-tint: light-dark(var(--c-surface-tint-light), var(--c-surface-tint-dark));
    --c-surface-glass: light-dark(var(--c-surface-glass-light), var(--c-surface-glass-dark));
    --c-glass: light-dark(var(--c-glass-light), var(--c-glass-dark));
    --c-glass-border: light-dark(var(--c-glass-border-light), var(--c-glass-border-dark));
    --c-text: light-dark(var(--c-text-light), var(--c-text-dark));
    --c-heading: light-dark(var(--c-heading-light), var(--c-heading-dark));
    --c-text-2: light-dark(var(--c-text-2-light), var(--c-text-2-dark));
    --c-text-333: light-dark(var(--c-text-333-light), var(--c-text-333-dark));
    --c-text-444: light-dark(var(--c-text-444-light), var(--c-text-444-dark));
    --c-text-3: light-dark(var(--c-text-3-light), var(--c-text-3-dark));
    --c-text-555: light-dark(var(--c-text-555-light), var(--c-text-555-dark));
    --c-text-666: light-dark(var(--c-text-666-light), var(--c-text-666-dark));
    --c-text-muted: light-dark(var(--c-text-muted-light), var(--c-text-muted-dark));
    --c-text-888: light-dark(var(--c-text-888-light), var(--c-text-888-dark));
    --c-text-disabled: light-dark(var(--c-text-disabled-light), var(--c-text-disabled-dark));
    --c-gold-text: light-dark(var(--c-gold-text-light), var(--c-gold-text-dark));
    --c-border: light-dark(var(--c-border-light), var(--c-border-dark));
    --c-border-warm: light-dark(var(--c-border-warm-light), var(--c-border-warm-dark));
    --c-border-eee: light-dark(var(--c-border-eee-light), var(--c-border-eee-dark));
    --c-border-beige: light-dark(var(--c-border-beige-light), var(--c-border-beige-dark));
    --c-tag-outline: light-dark(var(--c-tag-outline-light), var(--c-tag-outline-dark));
    --c-warn-bg: light-dark(var(--c-warn-bg-light), var(--c-warn-bg-dark));
    --c-warn-text: light-dark(var(--c-warn-text-light), var(--c-warn-text-dark));
    --c-footer-from: light-dark(var(--c-footer-from-light), var(--c-footer-from-dark));
    --c-footer-to: light-dark(var(--c-footer-to-light), var(--c-footer-to-dark));
    --c-footer-wave: light-dark(var(--c-footer-wave-light), var(--c-footer-wave-dark));
    --c-footer-link: light-dark(var(--c-footer-link-light), var(--c-footer-link-dark));
    --c-backtop-from: light-dark(var(--c-backtop-from-light), var(--c-backtop-from-dark));
    --c-backtop-to: light-dark(var(--c-backtop-to-light), var(--c-backtop-to-dark));
    --c-backtop-border: light-dark(var(--c-backtop-border-light), var(--c-backtop-border-dark));
    --c-ball-shadow: light-dark(var(--c-ball-shadow-light), var(--c-ball-shadow-dark));
    --c-ball-shadow-hover: light-dark(var(--c-ball-shadow-hover-light), var(--c-ball-shadow-hover-dark));
    --c-ball-white-from: light-dark(var(--c-ball-white-from-light), var(--c-ball-white-from-dark));
    --c-ball-white-to: light-dark(var(--c-ball-white-to-light), var(--c-ball-white-to-dark));
    --c-ball-white-text: light-dark(var(--c-ball-white-text-light), var(--c-ball-white-text-dark));
    --c-ball-white-text-shadow: light-dark(var(--c-ball-white-text-shadow-light), var(--c-ball-white-text-shadow-dark));
    --c-ball-white-highlight: light-dark(var(--c-ball-white-highlight-light), var(--c-ball-white-highlight-dark));
  }
}

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, var(--c-page-from) 0%, var(--c-surface) 50%, var(--c-page-to) 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: var(--c-glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--c-glass-border);
  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: var(--c-surface-glass);
}
.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: var(--c-text-3);
  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 .menu {
  display: none;
}
.modern-header .header-actions .mobile-menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  background: var(--c-surface);
  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: var(--c-surface);
  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, var(--c-surface-blue) 0%, var(--c-surface) 100%);
  border-bottom: 1px solid var(--c-border);
}
.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: var(--c-text);
  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: var(--c-text-muted);
}
.lottery-card .card-header .period-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
  color: var(--c-text-muted);
}
.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: var(--c-surface-3);
  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: var(--c-surface-3);
  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: var(--c-surface-2);
  border-radius: 8px;
  transition: all 0.3s ease;
}
.lottery-card .card-body .lottery-stats .stat-item:hover {
  background: var(--c-surface-3);
  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: var(--c-text);
}
.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: var(--c-surface-2);
  border-top: 1px solid var(--c-border);
  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: var(--c-surface);
  color: var(--c-text-muted);
  border: 1px solid var(--c-border);
}
.lottery-card .card-footer .action-buttons .btn.btn-secondary:hover {
  background: var(--c-surface-3);
}
.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: var(--c-surface);
    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;
  }
}
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: var(--c-surface);
    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: var(--c-surface);
  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: var(--c-surface-3);
    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: var(--c-surface-2);
  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: var(--c-text);
}
@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: var(--c-surface-2);
  border-top: 1px solid var(--c-border);
  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: var(--c-surface);
  color: var(--c-text-muted);
  border: 1px solid var(--c-border);
}
.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 (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: var(--c-surface);
  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: var(--c-page-to);
  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: white;
}
.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;
  visibility: hidden;
  transition: right 0.3s ease, visibility 0s linear 0.3s;
  overflow-y: auto;
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.3);
}
.mobile-menu-system .mobile-menu-content.active {
  right: 0;
  visibility: visible;
  transition: right 0.3s ease, visibility 0s;
}
.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 var(--c-ball-shadow);
}
.lottery-ball:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 6px 12px var(--c-ball-shadow-hover);
}
.lottery-ball.animated {
  animation: ballBounce 0.5s ease-out;
}
.lottery-ball.ball-loading {
  background: linear-gradient(90deg, var(--c-surface-4) 0%, var(--c-surface-3) 50%, var(--c-surface-4) 100%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}
.lottery-ball.ball-loading::after {
  content: "";
  position: absolute;
  inset: 2px;
  background: var(--c-surface);
  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: var(--c-text-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, var(--c-ball-white-from), var(--c-ball-white-to));
  color: var(--c-ball-white-text);
  text-shadow: 1px 1px 2px var(--c-ball-white-text-shadow);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1), inset 0 1px 2px var(--c-ball-white-highlight);
}

.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;
  }
}
#footerDiv,
footer#footerDiv {
  margin-top: 4rem;
  background: linear-gradient(135deg, var(--c-footer-from) 0%, var(--c-footer-to) 100%);
  color: white;
  position: relative;
  overflow: hidden;
}
#footerDiv::before,
footer#footerDiv::before {
  content: "";
  position: absolute;
  top: -50px;
  left: 0;
  right: 0;
  height: 100px;
  background: var(--c-footer-wave);
  -webkit-mask: 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 0 0/cover;
  mask: 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 0 0/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, .footer .footer_middle .middle_line div a {
  display: inline-block;
  margin: 0;
  color: var(--c-footer-link);
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  padding: 0.5rem 1rem;
}
.footer .footer_middle .middle_line div p::after, .footer .footer_middle .middle_line div a::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, .footer .footer_middle .middle_line div a:hover {
  color: #10b981;
  transform: translateY(-2px);
}
.footer .footer_middle .middle_line div p:hover::after, .footer .footer_middle .middle_line div a: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: var(--c-footer-link);
  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, var(--c-backtop-from) 0%, var(--c-backtop-to) 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), inset 0 0 0 1px var(--c-backtop-border);
}
.backtop i,
button.backtop i {
  color: white;
  font-size: 1.25rem;
}
.backtop:hover,
button.backtop:hover {
  transform: translateY(-5px) scale(1.1);
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  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;
  }
}

@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, var(--c-page-from) 0%, var(--c-surface) 50%, var(--c-page-to) 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: var(--c-surface-glass);
  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: var(--c-surface);
  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, var(--c-surface-blue) 0%, var(--c-surface) 100%);
  border-bottom: 1px solid var(--c-border);
}
@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: var(--c-text-muted);
  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: var(--c-text-muted);
  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: var(--c-surface-2);
  border-radius: 8px;
  transition: all 0.3s ease;
}
.history-card .card-body .draw-stats .stat-item:hover {
  background: var(--c-surface-3);
  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: var(--c-text);
}
@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: var(--c-surface-2);
  border-top: 1px solid var(--c-border);
  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: var(--c-surface);
  color: var(--c-text-muted);
  border: 1px solid var(--c-border);
}
.history-card .card-footer .action-buttons .btn.btn-secondary:hover {
  background: var(--c-surface-3);
}
.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 var(--c-border);
}
.history-card.type-pk10 .dragon-tiger .battle-item {
  padding: 0.5rem 1rem;
  background: var(--c-surface-3);
  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: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: 8px;
  color: var(--c-text-muted);
  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: var(--c-surface-3);
  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: var(--c-surface);
  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: var(--c-text);
  margin-bottom: 0.5rem;
}
.history-empty .empty-desc {
  color: var(--c-text-muted);
  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);
}

.bodybox {
  min-height: 100vh;
  background: linear-gradient(180deg, var(--c-page-from) 0%, var(--c-surface) 50%, var(--c-page-to) 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: var(--c-text-3) !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: var(--c-surface) !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: var(--c-surface);
  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 var(--c-border);
}
.headNum .divline:last-child {
  border-bottom: none;
}
.headNum .divline.issuel {
  background: linear-gradient(135deg, var(--c-surface-blue) 0%, var(--c-surface) 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: var(--c-text);
}
.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: var(--c-surface-3) !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: var(--c-surface-4) !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: var(--c-surface-2);
}
.headNum .divline.drawTimebox .flexl {
  font-size: 1rem;
  color: var(--c-text-muted);
  font-weight: 500;
}
.headNum .divline.drawTimebox .timer {
  font-size: 1.25rem;
  font-weight: 700;
  color: #ef4444;
  font-family: "Roboto Mono", monospace;
}

.ListHead {
  background: var(--c-surface);
  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: var(--c-surface-2);
  border-bottom: 2px solid var(--c-border);
}
.ListHead .headTitle > div {
  position: relative;
  padding: 1rem 1.5rem;
  cursor: pointer;
  color: var(--c-text-muted);
  font-weight: 500;
  transition: all 0.3s ease;
  flex: 1;
  text-align: center;
}
.ListHead .headTitle > div:hover {
  color: #10b981;
  background: var(--c-surface);
}
.ListHead .headTitle > div.checkedbl {
  color: #10b981;
  background: var(--c-surface);
}
.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: var(--c-surface-slate) !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: var(--c-text-muted) !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: var(--c-text) !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: var(--c-surface-3) !important;
  color: var(--c-text-muted) !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: var(--c-surface-4) !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: var(--c-surface-2) !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: var(--c-text) !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: var(--c-surface-2) !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: var(--c-surface-3) !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: var(--c-text) !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: var(--c-text-muted) !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, var(--c-page-from) 0%, var(--c-surface) 50%, var(--c-page-to) 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: var(--c-surface-glass);
  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: var(--c-surface);
    border: 1px solid var(--c-border);
    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: var(--c-surface);
  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: var(--c-text);
}
.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: var(--c-surface-3);
  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, var(--c-footer-from) 0%, var(--c-footer-to) 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: var(--c-footer-link);
}
#footerDiv .footer p a {
  color: #10b981;
  text-decoration: none;
}
#footerDiv .footer p a:hover {
  color: #34d399;
}

.contentlist {
  padding: 1rem;
  background: var(--c-surface);
}
.contentlist .historylist .historyitem {
  background: var(--c-surface);
  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 var(--c-border);
  margin-bottom: 0.75rem;
}
.contentlist .historylist .historyitem .itemissue .issue {
  font-size: 1rem;
  font-weight: 600;
  color: var(--c-text);
}
.contentlist .historylist .historyitem .itemissue .drawtime {
  font-size: 0.875rem;
  color: var(--c-text-muted);
}
.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: var(--c-text-muted);
  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: var(--c-surface-3);
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.875rem;
  transition: all 0.3s ease;
}
.customplay li:hover {
  background: var(--c-surface-4);
  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 var(--c-border);
}
.headTitle > div {
  position: relative;
  padding: 0.75rem 1.5rem;
  cursor: pointer;
  color: var(--c-text-muted);
  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;
}