/*
Theme Name: dearlotteryresultchart.net Child Theme
Description: GeneratePress Child Theme for dearlotteryresultchart.net
Author: Auto Generated
Template: generatepress
Version: 1.0.0
*/
.menu li{display: inline-block;}
body {
  margin: 0;
  padding: 0;
  font-family: "Segoe UI", Roboto, sans-serif;
  background-color: #f4f7fb;
  color: #1e1e1e;
  font-size: 16px;
  line-height: 1.6;
}

.page {
  max-width: 1200px;
  margin: 40px auto;
  padding: 40px 20px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.04);
}

h1 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: #0b2545;
  border-bottom: 3px solid #007bff;
  padding-bottom: 12px;
}

h2 {
  font-size: 1.5rem;
  margin: 30px 0 15px;
  padding-left: 10px;
  border-left: 5px solid #007bff;
  color: #1a1a1a;
}

p {
  margin-bottom: 20px;
}

ul, ol {
  padding-left: 20px;
  margin-bottom: 20px;
}

li {
  margin-bottom: 10px;
}

img {
  max-width: 100%;
  border-radius: 10px;
  height: auto;
}

.navbar {
  background: linear-gradient(90deg, #004aad, #007bff);
  padding: 16px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #ffffff;
}

.navbar .logo {
  font-size: 24px;
  font-weight: bold;
}

.navbar .nav-items {
  display: flex;
  gap: 20px;
}

.navbar .nav-items a {
  color: #ffffff;
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 6px;
  transition: background 0.3s;
}

.navbar .nav-items a:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.footer {
  background: #0a0a0a;
  color: #cccccc;
  text-align: center;
  padding: 30px 20px;
  font-size: 14px;
}

.footer a {
  color: #00baff;
  text-decoration: none;
}

.btn {
  background: #007bff;
  color: #fff;
  padding: 12px 24px;
  font-size: 16px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s;
}

.btn:hover {
  background: #005ecb;
}

.btn-outline {
  background: transparent;
  border: 2px solid #007bff;
  color: #007bff;
}

.btn-outline:hover {
  background: #007bff;
  color: #fff;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 30px;
  font-size: 15px;
}

table thead {
  background-color: #007bff;
  color: #ffffff;
}

table th, table td {
  border: 1px solid #dee2e6;
  padding: 12px;
  text-align: left;
}

table tbody tr:nth-child(even) {
  background-color: #f2f8ff;
}

@media (max-width: 768px) {
  table, thead, tbody, th, td, tr {
    display: block;
  }

  table thead {
    display: none;
  }

  table tr {
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 10px;
    background: #fff;
  }

  table td {
    position: relative;
    padding-left: 50%;
    text-align: left;
  }

  table td::before {
    content: attr(data-label);
    position: absolute;
    left: 10px;
    font-weight: bold;
    color: #444;
  }
}

.alert {
  padding: 15px 20px;
  border-radius: 8px;
  margin: 20px 0;
  font-weight: bold;
}

.alert-success {
  background-color: #d6f8e3;
  color: #097c42;
  border-left: 6px solid #27ae60;
}

.alert-warning {
  background-color: #fff8d9;
  color: #b28800;
  border-left: 6px solid #f1c40f;
}

.alert-error {
  background-color: #ffe3e3;
  color: #a30000;
  border-left: 6px solid #e74c3c;
}

/* 加载动画 */
.loader {
  display: inline-block;
  width: 48px;
  height: 48px;
  border: 5px solid #e0e0e0;
  border-top-color: #007bff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 30px auto;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media screen and (max-width: 768px) {
  .navbar .nav-items {
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
  }

  .page {
    padding: 20px 15px;
  }
}
