body {
  font-family: 'Inter', 'PingFang SC', 'Microsoft YaHei', Arial, sans-serif;
  background-color: #f3f4f6;
  color: #333;
  margin: 0;
  padding: 0;
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #e0e0e0;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: #555;
}

.gradient-bg {
  background: linear-gradient(to right, #6a11cb 0%, #2575fc 100%);
}

.card-shadow {
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.08);
}

.glow-effect {
  text-shadow: 0 0 5px rgba(255, 255, 255, 0.8), 0 0 10px rgba(255, 255, 255, 0.6);
}

/* ================== 主页主内容区样式优化 ================== */
:root {
  --main-color: #1976d2;
  --main-radius: 12px;
  --main-shadow: 0 2px 8px rgba(25, 118, 210, 0.08);
  --main-bg: #fff;
  --card-bg: #f5faff;
  --card-radius: 8px;
  --card-shadow: 0 1px 4px rgba(25, 118, 210, 0.10);
}

/* ================== 主体布局 ================== */
.max-container,
.banner,
.main-content,
.core-data,
.site-nav-section,
.news-section,
.footer-demo>.footer-container {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.main-content {
  padding: 14px 14px;
  background: var(--main-bg);
}

.main-layout {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

@media (max-width: 900px) {
  .main-layout {
    flex-direction: column;
    gap: 10px;
  }
}

.banner,
.core-card,
.core-data,
.usdt-rate-section,
.news-section,
.site-nav-section {
  /*
  background: var(--card-bg);
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
  padding: 12px 10px;*/
  padding: auto;
  margin-bottom: 10px;
}

.latest-lottery-section>#lottery-table {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* 弹窗显示控制 */
.news-modal {
  display: none;
}

.news-modal.show {
  display: flex !important;
}

body.modal-open {
  overflow: hidden;
}

/* header/footer 相关样式已移至 header.css/footer.css，避免冲突 */
/* .site-header { ... } 相关样式已删除 */
/* .logo-area, .logo-img, .logo-text, .main-nav,.nav-toggle, .fixed-notice, #notice-content 等全部删除 */
/* .site-footer, .footer-container, .footer-col, .footer-bottom 等全部删除 */
/* 只保留页面内容、表格、导航、banner、新闻等主内容区样式 */
#news-container {
  max-width: 800px;
  margin: 40px auto;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  padding: 24px;
}

/* 彩票开奖结果表格样式 */
#lottery-table {
  margin: 0 auto;
  width: 100%;
}

.lottery-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1rem;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.lottery-table th,
.lottery-table td {
  padding: 8px 10px;
  border-bottom: 1px solid #e0e0e0;
  text-align: center;
}

.lottery-table th {
  background: #e3f2fd;
  color: #1976d2;
  font-weight: bold;
}

.lottery-table tr:last-child td {
  border-bottom: none;
}

.lottery-ball {
  display: inline-block;
  background: #1976d2;
  color: #fff;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  line-height: 28px;
  margin: 0 2px;
  font-weight: bold;
  font-size: 1rem;
}

.lottery-ball.blue {
  background: #2196f3;
}

.lottery-ball.green {
  background: #43a047;
}

.lottery-ball.red {
  background: #e53935;
}

.lottery-ball.yellow {
  background: #fbc02d;
  color: #333;
}

.site-nav-categories {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 0px;
}

.site-nav-category {
  width: 100%;
  min-width: 0;
  margin-bottom: 10px;
}

.site-nav-category h3 {
  color: #1565c0;
  font-size: 1rem;
  margin: 6px 4px;
}

@media (max-width: 900px) {
  .nav-toggle {
    display: block;
  }

  .site-header {
    flex-wrap: wrap;
    padding-bottom: 8px;
  }
}

@media (max-width: 800px) {
  .main-content {
    padding: 16px 4px;
    margin: 4px;
  }

  .core-data {
    flex-direction: column;
    gap: 16px;
  }

  .news-list {
    flex-direction: column;
    gap: 12px;
  }
}

@media (max-width: 600px) {
  .logo-text {
    font-size: 1.4rem;
  }

  .logo-img {
    width: 32px;
    height: 32px;
  }
}

.site-header,
.notice-bar.fixed-notice {
  width: 100vw;
}

.site-header .header-inner,
.notice-bar .notice-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  height: 100%;
  width: 100%;
  box-sizing: border-box;
  justify-content: space-between;
}

.notice-bar.fixed-notice {
  padding: 0;
  background: #ffeb3b;
  color: #333;
  text-align: left;
  font-size: 1rem;
  overflow: hidden;
  white-space: nowrap;
}

.notice-bar .notice-inner {
  width: 100%;
  padding: 2px 12px;
}

.usdt-rate-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 0px;
}

.usdt-rate-item {
  background: #f5faff;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
  padding: 16px 18px;
  min-width: 220px;
  max-width: 320px;
  display: flex;
  align-items: center;
  gap: 16px;
  border-left: 4px solid #1976d2;
  transition: box-shadow 0.2s;
}

.usdt-rate-item:hover {
  box-shadow: 0 4px 12px rgba(25, 118, 210, 0.12);
}

@media (max-width: 900px) {
  .usdt-rate-list {
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    overflow-x: auto;
    gap: 12px;
    white-space: nowrap;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
  }

  .usdt-rate-item {
    min-width: 220px;
    max-width: 80vw;
    flex: 0 0 auto;
  }
}

/* ================== 主体布局 ================== */
.max-container,
.banner,
.main-content,
.core-data,
.site-nav-section,
.news-section,
.footer-demo>.footer-container {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.main-content {
  padding: 14px 14px;
  background: var(--main-bg);
}

.main-layout {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

@media (max-width: 900px) {
  .main-layout {
    flex-direction: column;
    gap: 10px;
  }
}

/* ================== USDT 汇率卡片 ================== */
.usdt-settle-title {
  font-size: 0.9rem;
  color: var(--main-color);
  font-weight: bold;
  letter-spacing: 1px;
}

.usdt-settle-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 0px;
}

.usdt-settle-item {
  background: var(--card-bg);
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
  padding: 4px 6px;
  min-width: 120px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  border-left: 1px solid var(--main-color);
  transition: box-shadow 0.2s;
  /* width: 100%; */
  gap: 4px;
  justify-content: space-between;
}

.usdt-settle-item:hover {
  color: var(--main-color);
  font-weight: bold;
  border-left: 4px solid var(--main-color);
}

.usdt-settle-label {
  font-size: 0.9rem;
  color: var(--main-color);
}

.usdt-settle-rate {
  font-size: 1rem;
  color: #e53935;
  font-weight: bold;
}

.usdt-settle-panel {
  display: flex;
  flex-direction: row;
  gap: 4px;
}

.usdt-settle-type {
  font-size: 0.95rem;
  color: var(--main-color);
  font-weight: 500;
  background: rgba(25, 118, 210, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
}

.usdt-settle-source {
  font-size: 0.8rem;
  color: #1976d2;
  background: rgba(25, 118, 210, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: auto;
  text-align: center;
  min-width: 40px;
}

.usdt-settle-tip {
  font-size: 0.8rem;
  color: #b71c1c;
  margin-top: 0px;
  word-break: break-all;
  white-space: normal;
}

@media (max-width: 900px) {
  .usdt-settle-list {
    flex-direction: row !important;
    flex-wrap: wrap;
    gap: 2px;
  }

  .usdt-settle-item {
    min-width: 120px;
    max-width: 48%;
    align-items: center;
    width: auto;
  }
}

/* ================== 统一main-content内h2标题样式 ================== */
.main-content h2 {
  font-size: 1rem;
  color: var(--main-color);
  font-weight: bold;
  margin: 0 0 8px 0;
  letter-spacing: 1px;
  line-height: 1;
  border-left: 4px solid var(--main-color);
  padding: 10px 12px;
  background: linear-gradient(90deg, #e3f2fd 60%, #fff 100%);
  border-radius: 6px;
  box-sizing: border-box;
}

/* ================== 清理空规则 ================== */
/* .site-stars-wrap {} */
/* .lottery-card-row2 {} */

.lottery-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(25, 118, 210, 0.08);
  margin-bottom: 18px;
  padding: 18px 18px 12px 18px;
  display: flex;
  flex-direction: column;
  min-width: 320px;
  max-width: calc(50% - 12px);
  width: calc(50% - 12px);
  height: 200px;
  box-sizing: border-box;
}

.lottery-card:hover {
  border-bottom: 6px solid #1976d2;
}

.lottery-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lottery-card-logo {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: #f8fafc;
  border: 1px solid #e0e0e0;
}

.lottery-card-title {
  font-size: 1.12rem;
  font-weight: bold;
  color: #1976d2;
  text-align: center;
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
  word-break: break-all;
  max-width: none;
  margin-top: 4px;
}

.lottery-card-body {
  margin-bottom: 8px;
}

.lottery-card-numbers {
  display: flex;
  gap: 8px;
  margin: 0 0 8px 0;
  padding: 0;
  list-style: none;
}

.lottery-card-numbers li {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #e3f2fd;
  color: #1976d2;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.08rem;
}

.lottery-card-numbers .red {
  background: #e53935;
}

.lottery-card-numbers .blue {
  background: #2196f3;
}

.lottery-card-numbers .green {
  background: #43a047;
}

.lottery-card-numbers .yellow {
  background: #fbc02d;
  color: #333;
}

.lottery-card-numbers .addpic {
  width: 18px;
  height: 32px;
  background: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lottery-card-info {
  font-size: 0.97rem;
  color: #888;
}

.lottery-card-footer {
  display: flex;
  gap: 18px;
  justify-content: flex-end;
  margin-top: 6px;
}

.lottery-card-footer a {
  color: #1976d2;
  text-decoration: none;
  font-size: 0.97rem;
  transition: color 0.2s;
}

.lottery-card-footer a:hover {
  color: #e53935;
}

@media (min-width: 700px) {
  #lottery-table {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: flex-start;
  }

  .lottery-card {
    margin-bottom: 0;
  }
}

/* 开奖结果卡牌采用与网址导航一致的卡牌布局 */
#lottery-table {
  display: flex;
  flex-direction: column;
  gap: 8px;
  justify-content: flex-start;
}

.lottery-card {
  flex: 1 1 calc(50% - 12px);
  min-width: 320px;
  max-width: calc(50% - 12px);
  width: calc(50% - 12px);
  height: auto;
  margin: 0;
  padding: 0;
  background: #f5faff;
  border-radius: 8px;
  border-bottom: 2px solid #1976d2;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
  box-sizing: border-box;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  overflow: hidden;
}

.lottery-card-header {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 100px;
  width: 130px;
  height: auto;
  background: #e3f2fd;
  border-radius: 8px 0 0 8px;
  display: flex;
  gap: 6px;
  padding: 0;
  position: relative;
  border-right: 1px solid #e0e0e0;
}

.lottery-card-logo-wrap {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 48px;
  height: 48px;
  position: relative;
}


.lottery-card-logo,
.lottery-card-logo-fallback {
  width: 40px;
  height: 40px;
  background: #2196f3;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}


.lottery-card-logo-fallback.show-fallback {
  display: flex;
}

.lottery-card-title {
  font-size: 1rem;
  font-weight: bold;
  color: #1976d2;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 0 6px;
  width: calc(100% - 8px);
}

.lottery-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4px 10px;
  background: #f5faff;
  border-radius: 0 8px 8px 0;
  margin-bottom: 0;
}

.lottery-card-row1 {
  font-size: 1rem;
  color: #1976d2;
  font-weight: bold;
}

.lottery-card-table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.98rem;
}

.lottery-card-table td {
  text-align: center;
  border: none;
}

.lottery-card-table .lottery-ball {
  margin: 0 auto;
  width: 34px;
  height: 34px;
  font-size: 1.2rem;
  line-height: 34px;
}

.lottery-card-total {
  font-weight: bold;
  color: #e53935;
  font-size: 1.01rem;
  padding-left: 8px;
  line-height: 1.1;
  text-align: center;
}

.lottery-card-total .total-label {
  display: block;
  font-size: 0.97rem;
  color: #888;
  font-weight: normal;
}

.lottery-card-total .total-value {
  display: block;
  font-size: 1.08rem;
  color: #e53935;
  font-weight: bold;
}

.lottery-card-row3 {
  font-size: 0.97rem;
  color: #888;
  margin-bottom: 4px;
}

.lottery-card-countdown {
  color: #e53935;
  font-weight: bold;
  margin-left: 6px;
}

.lottery-card-row4 {
  display: flex;
  gap: 16px;
  justify-content: flex-end;
  align-items: center;
}

.lottery-card-row4 a {
  color: #1976d2;
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.lottery-card-row4 a:hover {
  color: #e53935;
}

.lottery-card-row3-row4-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

@media (min-width: 700px) {
  #lottery-table {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: flex-start;
  }

  .lottery-card {
    margin-bottom: 0;
  }
}

@media (max-width: 900px) {
  #lottery-table {
    flex-direction: column;
    gap: 12px;
  }

  .lottery-card {
    max-width: 100%;
    width: 100%;
    min-width: 0;
    flex: 1 1 100%;
    height: auto;
    flex-direction: column;
    align-items: stretch;
  }

  .lottery-card-header {
    flex-direction: row;
    width: 100%;
    border-radius: 8px 8px 0 0;
    min-width: 0;
    background: #e3f2fd;
    justify-content: flex-start;
    align-items: center;
    padding: 6px 0px 0px 6px;
    height: auto;
    border-right: none;
    border-bottom: 1px solid #e0e0e0;
  }

  .lottery-card-logo-wrap {
    margin-right: 10px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
  }

  .lottery-card-logo,
  .lottery-card-logo-fallback {
    margin: 0;
    display: block;
  }

  .lottery-card-title {
    text-align: left;
    margin-left: 0;
    margin-top: 0;
  }
}

.news-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  align-items: stretch;
}

@media (max-width: 700px) {
  .news-list {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

.news-item {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(25, 118, 210, 0.05);
  padding: 8px 10px;
  display: flex;
  align-items: center;
  min-height: 38px;
  font-size: 1rem;
  font-weight: 500;
  transition: box-shadow 0.2s;
  margin: 0;
}

.news-title {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
  display: block;
}

.news-item:hover {
  box-shadow: 0 2px 8px rgba(25, 118, 210, 0.10);
}

.redRuffles {
  background: #e53935 !important;
  color: #fff !important;
  border: 1.5px solid #e53935;
}

.blueRuffles {
  background: #2196f3 !important;
  color: #fff !important;
  border: 1.5px solid #2196f3;
}

.greenRuffles {
  background: #43a047 !important;
  color: #fff !important;
  border: 1.5px solid #43a047;
}

.banner {
  background: none;
  box-shadow: none;
  border-radius: 0;
  padding: 0;
}

.banner-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 2px;
  justify-items: center;
  align-items: center;
  width: 100%;
  margin: 0 auto;
}

.banner-grid img {
  width: 100%;
  max-width: 180px;
  height: 80px;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: 0 1px 4px rgba(25, 118, 210, 0.06);
  background: #eee;
}

@media (max-width: 1100px) {
  .banner-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

@media (max-width: 700px) {
  .banner-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .banner-grid img {
    max-width: 100%;
    height: 64px;
  }
}

.banner-jump {
  width: 100%;
  margin: 0 auto 14px auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

.banner-jump img {
  width: 100%;
  max-width: 1200px;
  height: 100px;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: 0 1px 4px rgba(25, 118, 210, 0.06);
  background: #eee;
}

.news-section .banner-jump:last-of-type {
  margin: 14px auto 0 auto;
}

@media (max-width: 700px) {
  .banner-jump img {
    height: 40px;
  }

  .lottery-card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 8px;
    background: #f5faff;
    border-radius: 0 8px 8px 0;
    margin-bottom: 0;
  }
}

.site-nav-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: stretch;
}

@media(max-width: 900px) {
  .site-nav-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    justify-content: stretch;
  }

  .site-link-agent,
  .site-link-more {
    display: inline-block;
    padding: 8px 2px !important;
  }
}

.site-nav-item {
  background: #f5faff;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
  padding: 8px;
  min-width: 20px;
  max-width: 280px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1 1 20px;
  box-sizing: border-box;
  box-shadow: 0 1px 4px rgba(25, 118, 210, 0.16);
  transition: box-shadow 0.18s;
  border-left: 1px solid #1976d2;
}


.site-nav-item:hover {
  border-left: 4px solid #1976d2;
  color: #1976d2;
  font-weight: bold;
  font-style: italic;
  cursor: pointer;
}

.site-nav-item:active {
  color: #1976d2;
}

.site-logo-wrap {
  display: none;
}

.site-info {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  width: 100%;
}

.site-info>.site-stars-wrap,
.site-info>.site-title {
  flex-shrink: 0;
}


.site-title {
  font-size: 1rem;
  word-break: break-all;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  transition: color 0.18s, font-weight 0.18s;
}

.site-links {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  margin-left: 18px;
  min-width: 70px;
}

.site-link-agent,
.site-link-more {
  width: 64px;
  text-align: center;
  padding: 3px 4px !important;
}

/* 弹窗内容居中 */
/* .news-modal { */
/*   position: fixed; */
/*   z-index: 9999; */
/*   left: 0; */
/*   top: 0; */
/*   right: 0; */
/*   bottom: 0; */
/*   display: flex; */
/*
/*   justify-content: center; */
/* } */

.news-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  align-items: center;
  justify-content: center;
  width: 100vw;
  height: 100vh;
  background: none;
}

.news-modal.show {
  display: flex !important;
}

body.modal-open {
  overflow: hidden;
}

.news-modal-mask {
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.32);
}

.news-modal-title {
  font-size: 1.4rem;
  font-weight: bold;
  text-align: left;
  margin-top: 12px;
  color: var(--main-color);
}

.news-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.news-modal-date {
  color: #888;
  font-size: 0.9rem;
  text-align: left;
  margin: 12px 0;
}

.news-tag {
  display: inline-block;
  background: #1976d2;
  color: #fff;
  font-size: 0.85rem;
  border-radius: 12px;
  padding: 2px 10px;
  margin-right: 8px;
  font-weight: 500;
  vertical-align: middle;
  letter-spacing: 1px;
  line-height: 1.2;
}

.news-modal-content {
  position: relative;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(25, 118, 210, 0.18);
  padding: 32px 28px 18px 28px;
  min-width: 320px;
  max-width: 96vw;
  max-height: 80vh;
  overflow-y: auto;
  z-index: 1;
  animation: modalIn 0.18s;
  margin: 0 auto;
}

@media (max-width: 700px) {
  .news-modal-content {
    min-width: 0;
    width: 98vw;
    padding: 16px 4vw 12px 4vw;
  }
}

@media (max-width: 600px) {
  .news-modal-content {
    padding: 18px 6vw 12px 6vw;
    min-width: 0;
    max-width: 98vw;
    min-height: 60px;
  }
}

@keyframes modalIn {
  from {
    transform: translateY(40px) scale(0.98);
    opacity: 0;
  }

  to {
    transform: none;
    opacity: 1;
  }
}

.news-modal-close {
  position: absolute;
  right: 12px;
  top: 10px;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: #1976d2;
  cursor: pointer;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  line-height: 32px;
  text-align: center;
  transition: background 0.18s;
}

.news-modal-close:hover {
  background: #e3f2fd;
}

.news-modal-content h2 {
  font-size: 1rem;
  color: #1565c0;
  margin: 0 0 12px 0;
}

.news-modal-date {
  color: #888;
  font-size: 0.97rem;
  margin-top: 18px;
  text-align: right;
}

.news-section {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 4px;
  padding: 0;
  width: 100%;
}

@media (max-width: 800px) {
  .news-section .news-list {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

.news-section .news-item {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f5fafe;
  border-radius: 12px;
  box-shadow: 0 1px 4px rgba(25, 118, 210, 0.16);
  padding: 8px;
  transition: box-shadow 0.18s;
  align-content: space-between;
  flex-wrap: wrap;
  flex-direction: row;
}

.news-section .news-item h2 {
  color: inherit;
  font-size: 0.88rem;
  font-weight: bold;
  margin: 0;
  padding: 0;
  background: none;
  border: none;
  flex: 1 1 auto;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-all;
  width: calc(100% - 180px);
}

.news-section .news-date {
  color: #666666;
  font-size: 0.84rem;
  display: block;
  flex-shrink: 0;
  text-align: right;
}

@media (max-width: 600px) {

  .news-section .news-item h2 {
    margin-bottom: 6px;
    text-align: left;
  }

  .news-section .news-date {
    margin-left: 0;
    text-align: left;
  }
}

.main-layout {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.main-left {
  flex: 1 1 0;
  min-width: 0;

  width: 100%;
}

.main-right {
  width: 360px;
  display: flex;
  flex-direction: column;
}

.latest-lottery-section>#lottery-table {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

@media (max-width: 1100px) {
  .main-right {
    width: 320px;
  }
}

@media (max-width: 900px) {
  .main-layout {
    flex-direction: column;
    gap: 0px;
  }

  .main-right {
    width: 100%;
    flex-direction: column;
    gap: 10px;
    display: flex;
  }

  .news-section {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 4px;
    width: 100%;
  }

  .latest-lottery-section>#lottery-table {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 4px;
  }
}

@media (max-width: 600px) {

  .main-right {
    width: 100%;
    flex-direction: column;
    gap: 0px;
  }

  .latest-lottery-section>#lottery-table {
    flex-direction: column;
    gap: 10
  }
}

/* 让开奖结果卡片占满宽度 */
#lottery-table {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.lottery-card {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  margin-bottom: 0;
  box-sizing: border-box;
}

/* 动态新闻一行一条 */
.news-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.more-link {
  padding: 4px;
  text-align: right;
}

.news-item {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  padding: 8px 10px;
  margin: 0;
  border-left: 1px solid #1976d2;
}

.news-item:hover {
  color: #1976d2;
  font-weight: bold;
  border-left: 4px solid #1976d2;
  cursor: pointer;
}

.news-item:active {
  background-color: #2196f3;
  color: white;
}

/* 汇率一行一个且紧凑 */
.usdt-rate-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: 100%;
}

.usdt-rate-item {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  gap: 10px;
}

.site-stars {
  color: #ffb400;
  font-size: 0.9rem;
  letter-spacing: 1px;
  margin-right: 2px;
  vertical-align: middle;
}

.site-stars-empty {
  color: #e0e0e0;
}

@media (min-width: 900px) {
  .site-nav-list {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 6px;
    justify-items: stretch;
    align-items: stretch;
  }

  .site-nav-item {
    min-width: 0;
    max-width: 100%;
    width: 100%;
    flex: none;
  }
}

@media (max-width: 600px) {
  .site-nav-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
    justify-content: stretch;
  }

  .site-link-agent,
  .site-link-more {
    display: inline-block;
    padding: 8px 2px !important;
  }
}

.site-links {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 4px;
}

.site-link-agent,
.site-link-more {
  display: inline-block;
  padding: 2px;
  border-radius: 6px;
  background: #e3f2fd;
  color: #1976d2;
  font-size: 0.8rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.18s, color 0.18s;
  border: none;
  cursor: pointer;
  width: 100%;
  text-align: center;
}

.site-link-agent:hover,
.site-link-more:hover {
  background: #1976d2;
  color: #fff;
}

.site-link-more {
  background: #ffb400;
  color: #fff;
}

.site-more-group {
  margin-bottom: 18px;
}

.site-more-group-title {
  font-size: 1.08rem;
  font-weight: bold;
  margin-bottom: 8px;
}

.site-more-group-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: row;
  gap: 8px;
  align-items: center;
  justify-content: flex-start;
  align-content: center;
  flex-wrap: wrap;
}

.site-more-group-list li {
  margin-bottom: 6px;
}

.site-more-group-list a {
  text-decoration: underline;
  font-size: 1rem;
  transition: color 0.18s;
}

.site-more-group-list a:hover {
  color: #e53935;
}

.site-card-row {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  width: 100%;
}

.site-info {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.site-links {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  margin-left: 0px;
  min-width: 30px;
}

.site-link-agent,
.site-link-more {
  text-align: center;
}

/* logo隐藏与fallback显示 */
.lottery-card-logo.hide-logo {
  display: none !important;
}

.lottery-card-logo-fallback {
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 1.4em 22.4px;
  font-weight: bold;
  color: var(--primary-color, #d32f2f);
  background: #fff3f3;
  border-radius: 50%;
  width: 42px;
  height: 42px;
  margin-right: 8px;
}

.lottery-card-logo-fallback.show-fallback {
  display: flex;
}

.site-logo.hide-logo {
  display: none !important;
}

.site-logo-fallback {
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 1.2em;
  font-weight: bold;
  color: var(--primary-color, #1976d2);
  background: #e3f2fd;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  margin-right: 8px;
}

.site-logo-fallback.show-fallback {
  display: flex;
}

/* ================== 摇奖滚动动画样式 ================== */
.lottery-ball.rolling {
    position: relative;
    overflow: hidden;
    animation: ball-shake 0.6s infinite ease-in-out;
    background: linear-gradient(45deg, #ff6b6b, #ff8e8e, #ffa8a8) !important;
    color: white !important;
    box-shadow: 0 0 10px rgba(255, 107, 107, 0.5);
}

.lottery-ball.rolling::before {
    content: attr(data-rolling-numbers);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(45deg, #ff6b6b, #ff8e8e);
    color: white;
    font-weight: bold;
    font-size: 1.1em;
    animation: number-spin 0.3s infinite linear;
    z-index: 1;
    border-radius: inherit;
}

.lottery-ball.rolling .ball-content {
    opacity: 0;
}

@keyframes ball-shake {
    0%, 100% { 
        transform: translateX(0) scale(1); 
        box-shadow: 0 0 10px rgba(255, 107, 107, 0.5);
    }
    25% { 
        transform: translateX(-3px) scale(1.05); 
        box-shadow: 0 0 15px rgba(255, 107, 107, 0.7);
    }
    50% { 
        transform: translateX(0) scale(1.1); 
        box-shadow: 0 0 20px rgba(255, 107, 107, 0.8);
    }
    75% { 
        transform: translateX(3px) scale(1.05); 
        box-shadow: 0 0 15px rgba(255, 107, 107, 0.7);
    }
}

@keyframes number-spin {
    0% { 
        transform: translateY(0) rotateX(0deg); 
        opacity: 1;
    }
    25% { 
        transform: translateY(-15px) rotateX(90deg); 
        opacity: 0.7;
    }
    50% { 
        transform: translateY(-30px) rotateX(180deg); 
        opacity: 0.5;
    }
    75% { 
        transform: translateY(-15px) rotateX(270deg); 
        opacity: 0.7;
    }
    100% { 
        transform: translateY(0) rotateX(360deg); 
        opacity: 1;
    }
}

/* 摇奖中的号码球脉冲效果 */
.lottery-ball.rolling::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    border-radius: inherit;
    animation: pulse-ring 1s infinite ease-out;
    z-index: -1;
}

@keyframes pulse-ring {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.7;
    }
    100% {
        transform: scale(1.2);
        opacity: 0;
    }
}

/* 开奖中状态提示优化 */
.lottery-drawing-status {
    display: inline-block;
    background: linear-gradient(45deg, #ff6b6b, #ff4757);
    color: white;
    padding: 3px 6px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: bold;
    margin-left: 6px;
    animation: status-pulse 1.2s infinite ease-in-out;
    box-shadow: 0 2px 6px rgba(255, 71, 87, 0.3);
}

@keyframes status-pulse {
    0%, 100% { 
        opacity: 1; 
        transform: scale(1);
        box-shadow: 0 2px 6px rgba(255, 71, 87, 0.3);
    }
    50% { 
        opacity: 0.8; 
        transform: scale(1.05);
        box-shadow: 0 4px 12px rgba(255, 71, 87, 0.5);
    }
}