* {
  box-sizing: border-box;
}
/* 1. 加载遮罩层样式 */
        #loading-screen {
            position: fixed;
            top: 0;
            left: 0;
            width: 100vw;
            height: 100vh;
            background-color: #ffffff;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            z-index: 9999; /* 保证在最外层 */
            transition: opacity 0.5s ease; /* 消失时的平滑过渡 */
        }

        /* 转圈 Loading 动画 */
        .spinner {
            width: 40px;
            height: 40px;
            border: 4px solid #f3f3f3;
            border-top: 4px solid #3498db;
            border-radius: 50%;
            animation: spin 1s linear infinite;
        }

        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }

        /* 2. 网页主体默认隐藏 */
        #main-content {
            display: none;
        }
:root {
  --text: #242a33;
  --subtext: #7b8490;
  --line: #edf0f3;
  --card: #ffffff;
  --bg: #f4f6f9;
  --wine: #9e2c32;
  --wine-dark: #84242a;
  --nav-bg: #faf4e7;
  --nav-text: #8e5c31;
  --shadow: 0 8px 24px rgba(34, 42, 56, 0.06);
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family:
    "Microsoft YaHei UI", "Microsoft YaHei", "微软雅黑", "Arial",
    "Helvetica Neue", "sans-serif", "宋体", "simsun" !important;
}

body {
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

.page {
  width: min(100%, 760px);
  margin: 0 auto;
  padding-bottom: 18px;
}

/* 顶部 */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 18px 14px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.brand {
  font-size: 23px;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.subtitle {
  margin-top: 4px;
  color: var(--subtext);
  font-size: 12px;
}

.more-link {
  flex: 0 0 auto;
  padding: 8px 13px;
  border: 1px solid #eceef1;
  border-radius: 999px;
  background: #fff;
  color: #656e79;
  font-size: 13px;
}

/* 提醒 */
.notice {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 10px 10px 8px;
  padding: 10px 12px;
  border-radius: 12px;
  background: linear-gradient(90deg, #fff8eb, #fffdf7);
  color: #956e3f;
  font-size: 12px;
}

.notice-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #c89142;
  box-shadow: 0 0 0 4px rgba(200, 145, 66, 0.12);
}

/* 彩票卡片 */
.lottery-list {
  display: grid;
  gap: 10px;
  padding: 0 10px;
}

.lottery-card {
  position: relative;
  overflow: hidden;
  background: var(--card);
  border-radius: 15px;
  box-shadow: var(--shadow);
}

.lottery-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  /*background: var(--accent, #2e91dd);*/
}

.card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 15px 8px;
}

.lottery-logo {
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
  object-fit: contain;
  border-radius: 12px;
  background: #fff;
}

.game-info {
  min-width: 0;
  flex: 1;
}

.title-line {
  display: flex;
  align-items: center;
  gap: 10px;
}

.title-line h2 {
  margin: 0;
  font-size: 20px;
  line-height: 1.2;
  font-weight: 800;
}

.draw-timeold {
  margin-left: auto;
  flex: 0 0 auto;
  padding: 6px 9px;
  border-radius: 8px;
  background: var(--wine);
  color: #fff;
  font-size: 12px;
  white-space: nowrap;
}
.draw-time {
    margin-left: auto;
    flex: 0 0 auto;
    padding: 4px 9px;
    border-radius: 5px;
    background: #f5f5f7;
    color: #888;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.3;
    white-space: nowrap;
}
.issue {
  margin-top: 7px;
  color: #69737e;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.2px;
}

.issue b {
  color: #3e4853;
  font-size: 16px;
  font-weight: 700;
}

.result-wrap {
  padding: 2px 15px 13px;
}

.result-note {
  margin-bottom: 8px;
  color: #a1a8b0;
  font-size: 11px;
  text-align: center;
}

.balls {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 9px;
}

.ball {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 39px;
  height: 39px;
  flex: 0 0 39px;
  border: 2px solid var(--accent, #2e91dd);
  border-radius: 50%;
  aspect-ratio: 1 / 1;
  background: #fff;
  color: var(--accent-deep, #226ca3);
  font-size: 16px;
  font-variant-numeric: tabular-nums;
}
.redball {
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 128 128"><circle opacity=".1" enable-background="new" cx="67.2" cy="67.2" r="60.5"/><circle opacity=".1" enable-background="new" cx="66.7" cy="66.7" r="60"/><circle opacity=".1" enable-background="new" cx="66.2" cy="66.2" r="59.6"/><circle opacity=".1" enable-background="new" cx="65.7" cy="65.7" r="59.1"/><circle opacity=".1" enable-background="new" cx="65.2" cy="65.2" r="58.6"/><linearGradient id="S1" gradientUnits="userSpaceOnUse" x1="64" y1="-709.11" x2="64" y2="-591.11" gradientTransform="matrix(1 0 0 -1 0 -586.11)"><stop offset="0" stop-color="%23d90b0b"/><stop offset="1" stop-color="red"/></linearGradient><circle cx="64" cy="64" r="59" fill="url(%23S1)"/><linearGradient id="S2" gradientUnits="userSpaceOnUse" x1="7.8" y1="-650.11" x2="120.2" y2="-650.11" gradientTransform="scale(1 -1) rotate(-45 771.505 -357.058)"><stop offset="0" stop-color="%23fff"/><stop offset="1" stop-color="%23fff" stop-opacity="0"/></linearGradient><circle cx="64" cy="64" r="56.2" opacity=".3" fill="url(%23S2)"/><radialGradient id="S3" cx="248.891" cy="417.848" r="41.104" fx="232.365" fy="417.848" gradientTransform="rotate(55.813 496.18 51.995)" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="%23fff"/><stop offset="1" stop-color="%23fff" stop-opacity="0"/></radialGradient><circle cx="54.6" cy="53" r="41.1" opacity=".5" fill="url(%23S3)"/></svg>');
  color: #fff;
  min-width: 2.2rem;
  height: 2.2rem;
  /*font-size: 1.4rem;*/
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  display: flex;
}
.blueball {

    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 128 128"><circle opacity=".1" enable-background="new" cx="67.2" cy="67.2" r="60.5"/><circle opacity=".1" enable-background="new" cx="66.7" cy="66.7" r="60"/><circle opacity=".1" enable-background="new" cx="66.2" cy="66.2" r="59.6"/><circle opacity=".1" enable-background="new" cx="65.7" cy="65.7" r="59.1"/><circle opacity=".1" enable-background="new" cx="65.2" cy="65.2" r="58.6"/><linearGradient id="S1" gradientUnits="userSpaceOnUse" x1="64" y1="1551" x2="64" y2="1433" gradientTransform="translate(0 -1428)"><stop offset="0" stop-color="%230065e1"/><stop offset="1" stop-color="%232684f6"/></linearGradient><circle cx="64" cy="64" r="59" fill="url(%23S1)"/><linearGradient id="S2" gradientUnits="userSpaceOnUse" x1="191.993" y1="1222.688" x2="304.393" y2="1222.688" gradientTransform="rotate(45.001 1554.768 420.987)"><stop offset="0" stop-color="%23fff"/><stop offset="1" stop-color="%23fff" stop-opacity="0"/></linearGradient><circle cx="64" cy="64" r="56.2" opacity=".2" fill="url(%23S2)"/><radialGradient id="S3" cx="442.124" cy="59.194" r="41.104" fx="425.598" fy="59.194" gradientTransform="scale(1 -1) rotate(-55.813 142.445 368.954)" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="%23fff"/><stop offset="1" stop-color="%23fff" stop-opacity="0"/></radialGradient><circle cx="54.6" cy="53" r="41.1" opacity=".4" fill="url(%23S3)"/></svg>');

  color: #fff;
  min-width: 2.2rem;
  height: 2.2rem;
  /*font-size: 1.4rem;*/
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  display: flex;
}
.ziball {
background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 128 128"><circle opacity=".1" enable-background="new" cx="67.2" cy="67.2" r="60.5"/><circle opacity=".1" enable-background="new" cx="66.7" cy="66.7" r="60"/><circle opacity=".1" enable-background="new" cx="66.2" cy="66.2" r="59.6"/><circle opacity=".1" enable-background="new" cx="65.7" cy="65.7" r="59.1"/><circle opacity=".1" enable-background="new" cx="65.2" cy="65.2" r="58.6"/><linearGradient id="S1" gradientUnits="userSpaceOnUse" x1="64" y1="1551" x2="64" y2="1433" gradientTransform="translate(0 -1428)"><stop offset="0" stop-color="%235B21B6"/><stop offset="1" stop-color="%23A855F7"/></linearGradient><circle cx="64" cy="64" r="59" fill="url(%23S1)"/><linearGradient id="S2" gradientUnits="userSpaceOnUse" x1="191.993" y1="1222.688" x2="304.393" y2="1222.688" gradientTransform="rotate(45.001 1554.768 420.987)"><stop offset="0" stop-color="%23fff"/><stop offset="1" stop-color="%23fff" stop-opacity="0"/></linearGradient><circle cx="64" cy="64" r="56.2" opacity=".2" fill="url(%23S2)"/><radialGradient id="S3" cx="442.124" cy="59.194" r="41.104" fx="425.598" fy="59.194" gradientTransform="scale(1 -1) rotate(-55.813 142.445 368.954)" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="%23fff"/><stop offset="1" stop-color="%23fff" stop-opacity="0"/></radialGradient><circle cx="54.6" cy="53" r="41.1" opacity=".4" fill="url(%23S3)"/></svg>');

  color: #fff;
  min-width: 2.2rem;
  height: 2.2rem;
  /*font-size: 1.4rem;*/
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  display: flex;
}
.balls-20 {
  display: grid;
  grid-template-columns: repeat(10, 36px);
  justify-content: center;
  gap: 8px;
}

.balls-20 .ball {
  width: 39px;
  height: 39px;
  flex: 0 0 39px;
  font-size: 16px;
}

/* 卡片底部快捷入口：分隔按钮 */
.quick-nav {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 0 12px 12px;
  padding: 0;
  background: transparent;
  border: 0;
}

.quick-navold a {
  min-width: 0;
  padding: 9px 5px;
  border: 1px solid #eee3d2;
  border-radius: 9px;
  background: #fffaf1;
  color: #8e5c31;
  font-size: 14px;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
  transition: 0.15s ease;
}



.quick-navold a:hover {
  transform: translateY(-1px);
  border-color: #ddcaa9;
  background: #fff5df;
}

.quick-nav a {
    min-width: 0;
    padding: 9px 16px;
    border: 1px solid #e9e5f2;
    border-radius: 8px;
    background: linear-gradient(180deg, #ffffff 0%, #faf9fd 100%);
    color: #55505f;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.2;
    text-align: center;
    white-space: nowrap;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(60, 40, 100, 0.04);
}
.quick-nav- a:hover {

    border-color: #d8c9f2;
    background: #fbf9ff;
    box-shadow: 0 5px 14px rgba(109, 63, 192, 0.1);
    transform: translateY(-1px);
}

.quick-nav a:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(109, 63, 192, 0.06);
}
.quick-nav i {
  display: inline-block;
  margin-left: 2px;
  font-style: normal;
  opacity: 0.65;
}

.quick-nav-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* 不同彩种主题 */
.theme-pink {
  --accent: #2e91dd;
  --accent-deep: #2573ac;
}

.theme-blue {
  --accent: #2e91dd;
  --accent-deep: #2573ac;
}

.theme-orange {
  --accent: #f29b24;
  --accent-deep: #cb7612;
}

.theme-gold {
  --accent: #ef9a21;
  --accent-deep: #c77710;
}

.theme-cyan {
  --accent: #2e91dd;
  --accent-deep: #2573ac;
}

/* 页脚 */
.site-footer {
  /*margin: 12px 10px 0;*/
  padding: 14px 10px 4px;
  color: #9ba2ab;
  text-align: center;
  font-size: 14px;
  line-height: 1.4;
}

.site-footer p {
  margin: 0;
}

.site-footer .hot {
  color: #b24948;
}

/* 手机端 */
@media (max-width: 560px) {
  .site-header {
    /*padding: 15px 14px 12px;*/
    padding: 10px;
  }

  .brand {
    font-size: 21px;
  }

  .lottery-list {
    padding: 0 5px;
    gap: 5px;
  }

  .lottery-card {
    border-radius: 13px;
  }

  .card-head {
    padding: 13px 13px 7px;
    gap: 10px;
  }

  .lottery-logo {
    width: 50px;
    height: 50px;
    flex-basis: 50px;
  }

  .title-line {
    gap: 7px;
  }

  .title-line h2 {
    font-size: 18px;
  }

  .draw-time {
    padding: 6px 6px;
    font-size: 11px;
  }

  .issue {
    margin-top: 6px;
    font-size: 14px;
  }

  .issue b {
    font-size: 15px;
  }

  .result-wrap {
    padding-left: 12px;
    padding-right: 12px;
  }

  .ball {
    width: 37px;
    height: 37px;
  }

  .balls {
    gap: 7px;
  }

  .balls-20 {
    grid-template-columns: repeat(10, 36px);
    gap: 5px 5px;
  }

  .balls-20 .ball {
    width: 37px;
    height: 37px;
    flex-basis: 37px;
    font-size: 16px;
  }

  .quick-nav {
    gap: 6px;
    margin: 0 10px 10px;
  }

  .quick-nav a {
    padding: 8px 2px;
    font-size: 14px;
  }
}

@media (max-width: 380px) {
  .draw-time {
    max-width: 92px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .balls-20 {
    grid-template-columns: repeat(10, 26px);
    gap: 3px 8px;
  }

  .balls-20 .ball {
    width: 32px;
    height: 32px;
    flex-basis: 32px;
    font-size: 16px;
  }
}
