* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent
}

:root {
  --bg-deep: #fff;
  --bg-purple: #f8f9fa;
  --bg-card: #fff;
  --bg-card-hover: #f5f5f5;
  --border-purple: #e5e7eb;
  --border-gold: #f5c842;
  --gold: #f5c842;
  --gold2: gold;
  --gold3: #e6b800;
  --purple: #8b5cf6;
  --purple2: #6d28d9;
  --purple3: #a78bfa;
  --blue: #3b82f6;
  --red: #ef4444;
  --green: #10b981;
  --text: #1f2937;
  --text2: #4b5563;
  --text3: #6b7280;
  --text4: #9ca3af
}

body,
html {
  font-family: -apple-system, BlinkMacSystemFont, Segoe UI, PingFang SC, Microsoft YaHei, sans-serif;
  background: var(--bg-deep);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden
}

body {
  background-image: url(../images/bg.jpg?v=20260906);
  background-size: cover;
  background-position: top;
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-color: #fff;
  padding-bottom: 100px
}

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

img {
  max-width: 100%;
  display: block
}

.page {
  display: none
}

.page.active {
  display: block;
  animation: fadeIn .3s ease
}

@keyframes fadeIn {
  0% {
    opacity: 0;
    transform: translateY(10px)
  }

  to {
    opacity: 1;
    transform: translateY(0)
  }
}

.top-header {
  position: relative;
  z-index: 10;
  margin: 12px 16px 0;
  border-radius: 50px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, .08);
  min-height: 56px
}

.header-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1
}

.header-content {
  position: relative;
  z-index: 2;
  justify-content: space-between;
  padding: 10px 16px
}

.header-content,
.header-left {
  display: flex;
  align-items: center
}

.header-logo {
  height: 36px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  display: block
}

.header-right,
.share-btn {
  display: flex;
  align-items: center
}

.share-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple), var(--purple2));
  border: none;
  cursor: pointer;
  justify-content: center;
  color: #fff;
  box-shadow: 0 2px 12px rgba(139, 92, 246, .5);
  transition: transform .2s
}

.share-btn:active {
  transform: scale(.95)
}

.share-btn svg {
  width: 20px;
  height: 20px
}

/* ========== 登录/注册按钮（图二样式） ========== */
button.login-register-btn {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 4px 12px !important;
  background: rgba(20, 10, 40, 0.7) !important;
  border: 2px solid #8b5cf6 !important;
  border-radius: 50px !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  backdrop-filter: blur(10px) !important;
  outline: none !important;
  margin: 0 !important;
}

button.login-register-btn:hover {
  border-color: #a78bfa !important;
  box-shadow: 0 0 10px rgba(139, 92, 246, 0.5) !important;
}

button.login-register-btn:active {
  transform: scale(0.96) !important;
}

.login-register-btn .login-icon {
  width: 22px !important;
  height: 22px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
  flex-shrink: 0 !important;
}

.login-register-btn .login-icon img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  filter: drop-shadow(0 0 4px rgba(96, 165, 250, 0.7)) !important;
}

.login-register-btn .login-text {
  color: #ffffff !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  letter-spacing: 0.5px !important;
  white-space: nowrap !important;
  line-height: 1 !important;
}

/* ========== 登录弹窗输入框 ========== */
.login-input-group {
  margin-bottom: 14px;
}

.login-input {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 12px;
  color: #fff;
  font-size: 14px;
  outline: none;
  box-sizing: border-box;
}

.login-input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.login-input:focus {
  border-color: #8b5cf6;
  background: rgba(255, 255, 255, 0.15);
}

.login-switch-tip {
  text-align: center;
  margin-top: 14px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
}

.main-content {
  position: relative;
  z-index: 5;
  padding: 0 16px
}

.hero-banner {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  margin-top: 8px;
  border: 2px solid var(--gold);
  box-shadow: 0 8px 40px rgba(59, 130, 246, .3), 0 0 20px rgba(245, 200, 66, .2)
}

.banner-img {
  width: 100%;
  height: auto;
  display: block
}

.notice-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f8f9fa;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 12px 16px;
  margin: 14px 0;
  overflow: hidden
}

.notice-icon {
  font-size: 16px;
  flex-shrink: 0
}

.notice-marquee {
  flex: 1;
  overflow: hidden;
  position: relative;
  height: 20px
}

.notice-text {
  display: inline-block;
  white-space: nowrap;
  font-size: 13px;
  color: var(--text2);
  padding-left: 100%;
  animation: marquee 10s linear infinite
}

@keyframes marquee {
  0% {
    transform: translateX(0)
  }

  to {
    transform: translateX(-100%)
  }
}

.page-title {
  text-align: center;
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin: 16px 0 6px;
  position: relative;
  padding-bottom: 8px;
  letter-spacing: 1px
}

.title-underline {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--purple), #f59e0b);
  border-radius: 2px
}

.cat-tabs {
  display: flex;
  gap: 10px;
  padding: 16px 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch
}

.cat-tabs::-webkit-scrollbar {
  display: none
}

.cat-tab {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 18px;
  background: #f8f9fa;
  border: 1px solid var(--border-purple);
  color: var(--text2);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all .2s
}

.cat-tab.active {
  background: linear-gradient(135deg, var(--purple), var(--purple2));
  color: #fff;
  border-color: var(--purple);
  box-shadow: 0 4px 16px rgba(139, 92, 246, .4)
}

.cat-tab img {
  width: 24px;
  height: 24px;
  object-fit: contain
}

.recommend-section {
  margin-bottom: 20px
}

.platform-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px
}

.platform-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-purple);
  border-radius: 18px;
  padding: 18px 10px 14px;
  text-align: center;
  cursor: pointer;
  transition: all .25s;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, .06)
}

.platform-card:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--purple), #f59e0b, var(--purple))
}

.platform-card:active {
  transform: scale(.96);
  box-shadow: 0 1px 6px rgba(0, 0, 0, .1)
}

.platform-card.full-width {
  grid-column: 1/-1;
  max-width: calc(33.33% - 8px);
  margin: 0 auto
}

.platform-tag {
  position: absolute;
  top: 10px;
  right: 8px;
  padding: 3px 8px;
  border-radius: 8px;
  font-size: 9px;
  font-weight: 700;
  z-index: 2
}

.platform-tag.hot {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #fff
}

.platform-tag.recommend {
  background: linear-gradient(135deg, #8b5cf6, #6d28d9);
  color: #fff
}

.platform-tag.official {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: #fff
}

.platform-logo {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  margin: 4px auto 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--purple), var(--purple2));
  box-shadow: 0 4px 12px rgba(139, 92, 246, .35);
  overflow: hidden
}

.platform-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover
}

.platform-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis
}

.platform-desc {
  font-size: 10px;
  color: var(--text3);
  margin-bottom: 10px;
  line-height: 1.3;
  height: 26px;
  overflow: hidden
}

.platform-btn {
  display: block;
  width: 100%;
  padding: 7px 0;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--purple), var(--purple2));
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(139, 92, 246, .3)
}

.big-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 12px;
  min-height: 120px;
  border: 1px solid var(--border-purple)
}

.big-card-bg {
  object-fit: cover
}

.big-card-bg,
.big-card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%
}

.big-card-overlay {
  background: linear-gradient(90deg, rgba(13, 5, 24, .9), rgba(13, 5, 24, .5) 60%, transparent)
}

.big-card-content {
  position: relative;
  z-index: 2;
  padding: 20px 16px
}

.big-card-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px
}

.big-card-sub {
  font-size: 12px;
  color: var(--text3);
  margin-bottom: 12px
}

.big-card-btn {
  display: inline-block;
  padding: 8px 24px;
  border-radius: 14px;
  background: linear-gradient(135deg, #ec4899, #8b5cf6);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(236, 72, 153, .4)
}

.list-card {
  background: var(--bg-card);
  border: 1px solid var(--border-purple);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 12px;
  gap: 12px;
  position: relative;
  overflow: hidden
}

.list-card,
.list-card-icon {
  display: flex;
  align-items: center
}

.list-card-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  justify-content: center
}

.list-card-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain
}

.list-card-body {
  flex: 1;
  min-width: 0
}

.list-card-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px
}

.list-card-desc {
  font-size: 12px;
  color: var(--text2);
  margin-bottom: 6px;
  line-height: 1.4
}

.list-card-link {
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px
}

.list-card-link.purple {
  color: var(--purple3)
}

.list-card-link.red {
  color: #f87171
}

.list-card-link.cyan {
  color: #22d3ee
}

.list-card-arrow {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  color: var(--text4)
}

.list-card-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 3px 10px;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 700;
  background: rgba(239, 68, 68, .2);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, .3)
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-purple);
  border-radius: 20px;
  padding: 20px;
  margin-bottom: 16px
}

.service-top {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 16px
}

.service-icon {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px
}

.service-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain
}

.service-info {
  flex: 1;
  min-width: 0;
  text-align: left
}

.service-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px
}

.service-channel {
  font-size: 14px;
  color: var(--purple);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px
}

.service-desc {
  font-size: 13px;
  color: var(--text2);
  margin-bottom: 8px
}

.service-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--green)
}

.service-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 6px var(--green)
}

.service-actions {
  display: flex;
  gap: 12px;
  align-items: stretch
}

.service-btn {
  flex: 1;
  padding: 14px;
  background: linear-gradient(135deg, var(--purple), var(--purple2));
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  border: none;
  box-shadow: 0 4px 16px rgba(139, 92, 246, .4)
}

.service-btn,
.service-copy-btn {
  border-radius: 16px;
  cursor: pointer
}

.service-copy-btn {
  width: 56px;
  background: #f8f9fa;
  color: var(--text2);
  font-size: 20px;
  align-items: center;
  justify-content: center
}

.anti-fake-card,
.service-copy-btn {
  border: 1px solid var(--border-purple);
  display: flex
}

.anti-fake-card {
  background: var(--bg-card);
  border-radius: 20px;
  padding: 20px;
  margin-bottom: 16px;
  align-items: flex-start;
  gap: 12px
}

.anti-fake-icon {
  font-size: 24px;
  flex-shrink: 0
}

.anti-fake-content {
  flex: 1;
  text-align: left
}

.anti-fake-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px
}

.anti-fake-text {
  font-size: 13px;
  color: var(--text2);
  line-height: 1.6
}

.lottery-card {
  background: var(--bg-card);
  border: 1px solid var(--border-purple);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 12px
}

.lottery-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px
}

.lottery-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text)
}

.lottery-btns {
  display: flex;
  gap: 10px
}

.lottery-mini-btn {
  padding: 10px 20px;
  border-radius: 14px;
  background: #f3f4f6;
  border: 1px solid var(--border-purple);
  color: var(--text2);
  font-size: 14px;
  cursor: pointer
}

.lottery-issue {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px
}

.lottery-status {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 8px;
  background: rgba(16, 185, 129, .15);
  color: var(--green);
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 16px
}

.lottery-numbers {
  gap: 6px;
  margin-bottom: 14px;
  flex-wrap: wrap
}

.lottery-ball,
.lottery-numbers {
  display: flex;
  align-items: center;
  justify-content: center
}

.lottery-ball {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .2)
}

.lottery-ball.blue {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8)
}

.lottery-ball.green {
  background: linear-gradient(135deg, #10b981, #059669)
}

.lottery-ball.orange {
  background: linear-gradient(135deg, #f59e0b, #d97706)
}

.lottery-ball.red {
  background: linear-gradient(135deg, #ef4444, #dc2626)
}

.lottery-plus {
  font-size: 16px;
  color: var(--text3);
  font-weight: 700
}

.lottery-result {
  display: inline-block;
  padding: 6px 20px;
  border-radius: 10px;
  background: rgba(16, 185, 129, .15);
  color: var(--green);
  font-size: 15px;
  font-weight: 700;
  margin: 0 auto 12px;
  display: block;
  width: fit-content
}

.lottery-countdown {
  text-align: center;
  font-size: 12px;
  color: var(--text2);
  margin-top: 10px
}

.lottery-countdown b {
  color: var(--gold);
  font-size: 14px
}

.embed-frame {
  width: 100%;
  height: 500px;
  border: 1px solid var(--border-purple);
  border-radius: 16px;
  margin-bottom: 12px;
  background: #fff
}

.status-bar {
  justify-content: space-between;
  padding: 8px 0;
  font-size: 13px;
  color: var(--text3)
}

.status-bar,
.status-left {
  display: flex;
  align-items: center
}

.status-left {
  gap: 6px;
  color: var(--green)
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green)
}

.refresh-btn {
  padding: 12px 24px;
  border-radius: 16px;
  background: rgba(139, 92, 246, .2);
  border: 1px solid var(--border-purple);
  color: var(--text);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer
}

.site-footer {
  text-align: center;
  padding: 24px 0 8px
}

.footer-title {
  font-size: 14px;
  color: var(--text2);
  margin-bottom: 6px
}

.footer-copyright {
  font-size: 12px;
  color: var(--text4)
}

.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  justify-content: space-around;
  align-items: flex-end;
  background: linear-gradient(180deg, rgba(248, 245, 255, 0.95) 0%, rgba(255, 255, 255, 0.98) 100%);
  border: none;
  padding: 12px 16px 24px;
  z-index: 100;
  box-shadow: 0 -4px 20px rgba(106, 17, 203, 0.1);
  border-top-left-radius: 24px;
  border-top-right-radius: 24px;
}

.bottom-nav,
.nav-item {
  display: flex;
  border-radius: 0
}

.nav-item {
  flex-direction: column;
  align-items: center;
  gap: 0;
  cursor: pointer;
  padding: 0;
  transition: all .2s;
  flex: 1;
  position: relative
}

.nav-item img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  margin-bottom: 0;
  transition: transform .2s;
  position: relative;
  z-index: 2;
}

.nav-item.active img {
  transform: scale(1.08)
}

.nav-item.center {
  margin-top: -22px
}

.nav-item.center img {
  width: 60px;
  height: 60px;
  filter: drop-shadow(0 4px 12px rgba(139, 92, 246, .4));
}

/* 文字按钮 */
.nav-label {
  font-size: 11px;
  color: #fff;
  font-weight: 600;
  background: linear-gradient(135deg, #4c1d95, #6d28d9);
  padding: 3px 18px;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(76, 29, 149, 0.3);
  margin-top: 6px;
  position: relative;
  z-index: 3;
  line-height: 1.4;
}

.nav-item.active .nav-label {
  background: linear-gradient(135deg, #6d28d9, #8b5cf6);
  box-shadow: 0 2px 10px rgba(139, 92, 246, 0.4);
}

.nav-item.active::before {
  background: linear-gradient(180deg, rgba(160, 140, 230, 0.7) 0%, rgba(160, 140, 230, 0.25) 100%);
}

.nav-item.active:after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 3px;
  background: linear-gradient(90deg, #8b5cf6, #6d28d9);
  border-radius: 2px
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, .5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px
}

.modal-overlay.show {
  display: flex
}

.modal-box {
  background: linear-gradient(135deg, #1e1438, #150a28);
  border: 1px solid var(--border-purple);
  border-radius: 24px;
  padding: 28px 24px;
  width: 100%;
  max-width: 360px;
  position: relative
}

.modal-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--gold);
  text-align: center;
  margin-bottom: 20px
}

.modal-content {
  font-size: 14px;
  color: var(--text2);
  line-height: 1.7
}

.modal-close {
  width: 100%;
  padding: 12px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--purple), var(--purple2));
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  margin-top: 20px
}

.copy-box {
  display: flex;
  gap: 8px;
  margin-top: 12px
}

.copy-box input {
  flex: 1;
  padding: 10px 14px;
  background: #f3f4f6;
  border: 1px solid var(--border-purple);
  color: #fff
}

.copy-box input,
.copy-btn {
  border-radius: 12px;
  font-size: 13px
}

.copy-btn {
  padding: 10px 18px;
  background: linear-gradient(135deg, var(--gold), var(--gold3));
  color: #1a1a2e;
  font-weight: 700;
  border: none;
  cursor: pointer
}

.contact-list {
  margin-top: 12px
}

.contact-item {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid rgba(139, 92, 246, .15)
}

.contact-label {
  color: var(--text3)
}

.contact-value {
  color: var(--gold);
  font-weight: 700
}

@media(max-width:380px) {
  .platform-grid {
    gap: 8px
  }

  .platform-card {
    padding: 12px 8px
  }

  .platform-logo {
    width: 44px;
    height: 44px
  }

  .platform-name {
    font-size: 12px
  }

  .platform-desc {
    font-size: 10px
  }

  .nav-item img {
    width: 34px;
    height: 34px
  }

  .nav-item.center img {
    width: 48px;
    height: 48px
  }
}

/* ========== 开奖页面 ========== */
.lottery-container {
  padding: 0 0 20px;
}

.lottery-current-card {
  background: #fff;
  border-radius: 20px;
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
  border: 1px solid #e5e7eb;
  text-align: center;
}

.lottery-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.lottery-title {
  font-size: 18px;
  font-weight: 700;
  color: #1f2937;
}

.lottery-period {
  font-size: 13px;
  color: #6b7280;
  background: #f3f4f6;
  padding: 4px 12px;
  border-radius: 10px;
}

.lottery-period span {
  color: #8b5cf6;
  font-weight: 700;
}

.lottery-countdown {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 16px;
}

.countdown-label {
  font-size: 13px;
  color: #6b7280;
}

.countdown-time {
  font-size: 24px;
  font-weight: 700;
  color: #ef4444;
  font-family: 'Courier New', monospace;
  background: #fef2f2;
  padding: 4px 16px;
  border-radius: 10px;
  min-width: 100px;
}

.lottery-balls {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 16px;
}

.lottery-ball {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,.2);
}

.ball-blue {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}

.ball-green {
  background: linear-gradient(135deg, #10b981, #059669);
}

.ball-orange {
  background: linear-gradient(135deg, #f59e0b, #d97706);
}

.lottery-result {
  display: flex;
  justify-content: center;
  gap: 20px;
  padding-top: 12px;
  border-top: 1px solid #f3f4f6;
}

.result-item {
  font-size: 13px;
  color: #6b7280;
}

.result-item b {
  color: #8b5cf6;
  font-size: 15px;
  margin-left: 4px;
}

.lottery-history-card {
  background: #fff;
  border-radius: 20px;
  padding: 16px;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
  border: 1px solid #e5e7eb;
}

.history-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.history-title {
  font-size: 16px;
  font-weight: 700;
  color: #1f2937;
}

.history-refresh {
  padding: 6px 14px;
  border-radius: 10px;
  background: linear-gradient(135deg, #8b5cf6, #6d28d9);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  border: none;
  cursor: pointer;
}

.history-refresh:active {
  transform: scale(.95);
}

.history-list {
  max-height: 500px;
  overflow-y: auto;
}

.history-list::-webkit-scrollbar {
  width: 4px;
}

.history-list::-webkit-scrollbar-thumb {
  background: #d1d5db;
  border-radius: 2px;
}

.history-item {
  display: flex;
  align-items: center;
  padding: 12px 8px;
  border-bottom: 1px solid #f3f4f6;
  gap: 12px;
}

.history-item:last-child {
  border-bottom: none;
}

.history-period {
  font-size: 12px;
  color: #9ca3af;
  min-width: 70px;
}

.history-balls {
  display: flex;
  gap: 6px;
  flex: 1;
}

.history-ball {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
}

.history-sum {
  font-size: 14px;
  font-weight: 700;
  color: #8b5cf6;
  min-width: 30px;
  text-align: center;
}

.history-tag {
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 6px;
  font-weight: 600;
  min-width: 36px;
  text-align: center;
}

.tag-big {
  background: #fef3c7;
  color: #d97706;
}

.tag-small {
  background: #dbeafe;
  color: #2563eb;
}

.tag-odd {
  background: #fee2e2;
  color: #dc2626;
}

.tag-even {
  background: #d1fae5;
  color: #059669;
}

.history-loading {
  text-align: center;
  padding: 40px 0;
  color: #9ca3af;
  font-size: 14px;
}

@media (max-width: 380px) {
  .lottery-ball {
    width: 48px;
    height: 48px;
    font-size: 18px;
  }
  .lottery-balls {
    gap: 12px;
  }
  .lottery-result {
    gap: 12px;
  }
}

/* NG集团徽章 */
.ng-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 14px;
  border-radius: 12px;
  background: linear-gradient(135deg, #8b5cf6, #6d28d9);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  box-shadow: 0 2px 8px rgba(139, 92, 246, .4);
  white-space: nowrap;
}

/* ========== 刮刮乐 ========== */
.scratch-container {
  position: relative;
  width: 100%;
  height: 130px;
  border-radius: 16px;
  overflow: hidden;
  margin: 16px 0 14px;
  background: #f9fafb;
}

.scratch-result {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #fff;
}

.scratch-balls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.scratch-ball {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,.2);
}

.scratch-ball.ball-blue {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}

.scratch-ball.ball-green {
  background: linear-gradient(135deg, #10b981, #059669);
}

.scratch-ball.ball-orange {
  background: linear-gradient(135deg, #f59e0b, #d97706);
}

.scratch-ball.ball-red {
  background: linear-gradient(135deg, #ef4444, #dc2626);
}

.scratch-op {
  font-size: 18px;
  font-weight: 700;
  color: #9ca3af;
}

.scratch-tag {
  display: inline-block;
  padding: 6px 28px;
  border-radius: 12px;
  background: #d1fae5;
  color: #059669;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 4px;
}

#scratchCanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  cursor: pointer;
  touch-action: none;
}

.scratch-buttons {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.scratch-btn {
  padding: 10px 24px;
  border-radius: 12px;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  color: #4b5563;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
}

.scratch-btn:active {
  transform: scale(.95);
  background: #e5e7eb;
}

@media (max-width: 380px) {
  .scratch-container {
    height: 115px;
  }
  .scratch-ball {
    width: 34px;
    height: 34px;
    font-size: 14px;
  }
  .scratch-tag {
    font-size: 17px;
    padding: 5px 22px;
  }
}
