/* ============================================
   全球彩票信息网 - 主样式表
   配色：晴空蓝 #03A9F4 / 深蓝 #0288D1 / 金色 #FFD700
   字体：思源黑体 (Noto Sans SC)
   ============================================ */

/* 基础重置 */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --primary: #03A9F4;
  --primary-dark: #0288D1;
  --accent-gold: #FFD700;
  --bg-dark: #0a1628;
  --bg-card: #112240;
  --bg-light: #f0f6ff;
  --text-white: #ffffff;
  --text-light: #ccd6f6;
  --text-dark: #1a1a2e;
  --text-muted: #8892b0;
  --border-color: #1d3461;
  --gradient-primary: linear-gradient(135deg, #0288D1, #03A9F4);
  --gradient-gold: linear-gradient(135deg, #FFD700, #FFA000);
  --gradient-dark: linear-gradient(180deg, #0a1628, #112240);
  --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.3);
  --shadow-hover: 0 20px 40px rgba(3, 169, 244, 0.2);
  --radius: 12px;
  --radius-sm: 8px;
  --transition: all 0.3s ease;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-light);
  line-height: 1.8;
  overflow-x: hidden;
}

/* 链接 */
a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}
a:hover {
  color: var(--accent-gold);
}

/* 图片 */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* 容器 */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ============ 导航栏 ============ */
.navbar {
  background: rgba(10, 22, 40, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  padding: 15px 0;
  z-index: 1000;
}
.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}
.navbar-brand {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--text-white);
  display: flex;
  align-items: center;
  gap: 10px;
}
.navbar-brand .logo-icon {
  width: 36px;
  height: 36px;
  background: var(--gradient-gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}
.nav-toggle {
  display: none;
  background: none;
  border: 2px solid var(--primary);
  color: var(--primary);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 1.2rem;
}
.nav-menu {
  display: flex;
  list-style: none;
  gap: 5px;
  align-items: center;
}
.nav-menu li a {
  color: var(--text-light);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 500;
  transition: var(--transition);
}
.nav-menu li a:hover,
.nav-menu li a.active {
  background: var(--gradient-primary);
  color: var(--text-white);
}

/* 移动端导航 */
@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }
  .nav-menu {
    display: none;
    width: 100%;
    flex-direction: column;
    padding-top: 15px;
  }
  .nav-menu.active {
    display: flex;
  }
  .nav-menu li {
    width: 100%;
  }
  .nav-menu li a {
    display: block;
    padding: 12px 16px;
  }
}

/* ============ 面包屑导航 ============ */
.breadcrumb {
  padding: 15px 0;
  font-size: 0.9rem;
}
.breadcrumb ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.breadcrumb ol li::after {
  content: '>';
  margin-left: 8px;
  color: var(--text-muted);
}
.breadcrumb ol li:last-child::after {
  content: '';
}
.breadcrumb ol li a {
  color: var(--primary);
}
.breadcrumb ol li:last-child a,
.breadcrumb ol li:last-child span {
  color: var(--text-muted);
}

/* ============ Hero区域 ============ */
.hero {
  background: var(--gradient-dark);
  padding: 60px 0 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(3, 169, 244, 0.1) 0%, transparent 50%);
  animation: pulse 4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.1); opacity: 1; }
}
.hero h1 {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--text-white);
  margin-bottom: 15px;
  position: relative;
  z-index: 1;
}
.hero p {
  font-size: 1.1rem;
  color: var(--text-light);
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* ============ 模块标题 ============ */
.section-title {
  text-align: center;
  margin-bottom: 40px;
}
.section-title h2 {
  font-size: 2rem;
  font-weight: 900;
  color: var(--text-white);
  margin-bottom: 10px;
  position: relative;
  display: inline-block;
}
.section-title h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--gradient-gold);
  margin: 10px auto 0;
  border-radius: 2px;
}
.section-title p {
  color: var(--text-muted);
  font-size: 1rem;
}

/* ============ 模块通用 ============ */
.section {
  padding: 60px 0;
}
.section-alt {
  background: var(--bg-card);
}

/* ============ 全球奖池TOP5 ============ */
.jackpot-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}
.jackpot-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 25px;
  text-align: center;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.jackpot-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-color: var(--primary);
}
.jackpot-card .rank {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--gradient-gold);
  color: var(--text-dark);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 0.9rem;
}
.jackpot-card .lottery-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 5px;
}
.jackpot-card .lottery-country {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 15px;
}
.jackpot-card .jackpot-amount {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--accent-gold);
  text-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}
.jackpot-card .jackpot-amount .currency {
  font-size: 1rem;
  color: var(--text-muted);
}
.jackpot-card .next-draw {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 10px;
}

/* ============ 世界地图 ============ */
.world-map-section {
  text-align: center;
}
.world-map-container {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 30px;
  border: 1px solid var(--border-color);
}
.world-map-container img {
  width: 100%;
  border-radius: var(--radius-sm);
}
.map-legend {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
  flex-wrap: wrap;
}
.map-legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--text-light);
}
.map-legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.map-legend-dot.active { background: var(--accent-gold); }
.map-legend-dot.available { background: var(--primary); }

/* 地图热点区域链接 */
.map-region-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin-top: 20px;
}
.map-region-link {
  background: rgba(3, 169, 244, 0.1);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 10px 15px;
  color: var(--text-light);
  text-align: center;
  transition: var(--transition);
  font-size: 0.9rem;
}
.map-region-link:hover {
  background: var(--gradient-primary);
  color: var(--text-white);
  border-color: var(--primary);
}

/* ============ 倒计时 ============ */
.countdown-wall {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.countdown-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 25px;
  text-align: center;
  transition: var(--transition);
}
.countdown-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-hover);
}
.countdown-card .cd-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 15px;
}
.countdown-timer {
  display: flex;
  justify-content: center;
  gap: 10px;
}
.countdown-unit {
  background: rgba(3, 169, 244, 0.15);
  border-radius: var(--radius-sm);
  padding: 10px 15px;
  min-width: 60px;
}
.countdown-unit .number {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--accent-gold);
  display: block;
}
.countdown-unit .label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* ============ 本周幸运儿 ============ */
.winner-spotlight {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.winner-image {
  border-radius: var(--radius);
  overflow: hidden;
  border: 3px solid var(--accent-gold);
}
.winner-image img {
  width: 100%;
  height: 350px;
  object-fit: cover;
}
.winner-info h3 {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--accent-gold);
  margin-bottom: 10px;
}
.winner-info .win-amount {
  font-size: 2rem;
  font-weight: 900;
  color: var(--text-white);
  margin-bottom: 15px;
}
.winner-info p {
  color: var(--text-light);
  margin-bottom: 15px;
  line-height: 1.8;
}
.winner-info .read-more {
  display: inline-block;
  background: var(--gradient-gold);
  color: var(--text-dark);
  padding: 10px 25px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  transition: var(--transition);
}
.winner-info .read-more:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
}

@media (max-width: 768px) {
  .winner-spotlight {
    grid-template-columns: 1fr;
  }
}

/* ============ 知识课堂 ============ */
.knowledge-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}
.knowledge-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 25px;
  transition: var(--transition);
}
.knowledge-card:hover {
  border-color: var(--primary);
  transform: translateY(-3px);
}
.knowledge-card .kc-icon {
  font-size: 2rem;
  margin-bottom: 15px;
}
.knowledge-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 10px;
}
.knowledge-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 15px;
}
.knowledge-card a {
  font-size: 0.9rem;
  font-weight: 600;
}

/* ============ 按地区浏览 ============ */
.region-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
}
.region-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 30px 20px;
  text-align: center;
  transition: var(--transition);
  cursor: pointer;
}
.region-card:hover {
  border-color: var(--accent-gold);
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}
.region-card .region-emoji {
  font-size: 3rem;
  margin-bottom: 10px;
}
.region-card .region-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 5px;
}
.region-card .region-count {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ============ 内页通用 ============ */
.page-header {
  background: var(--gradient-dark);
  padding: 40px 0;
  border-bottom: 1px solid var(--border-color);
}
.page-header h1 {
  font-size: 2rem;
  font-weight: 900;
  color: var(--text-white);
  margin-bottom: 10px;
}
.page-header .page-meta {
  color: var(--text-muted);
  font-size: 0.9rem;
}
.page-header .page-meta span {
  margin-right: 20px;
}

.content-body {
  padding: 40px 0;
}
.content-body .article-content {
  max-width: 900px;
  margin: 0 auto;
}
.content-body h2 {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--text-white);
  margin: 30px 0 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border-color);
}
.content-body h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary);
  margin: 25px 0 10px;
}
.content-body h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-light);
  margin: 20px 0 10px;
}
.content-body p {
  margin-bottom: 15px;
  line-height: 1.9;
  color: var(--text-light);
}
.content-body ul, .content-body ol {
  margin: 15px 0;
  padding-left: 25px;
}
.content-body li {
  margin-bottom: 8px;
  color: var(--text-light);
}

/* 信息卡片 */
.info-box {
  background: rgba(3, 169, 244, 0.1);
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 20px;
  margin: 20px 0;
}
.info-box.gold {
  background: rgba(255, 215, 0, 0.1);
  border-left-color: var(--accent-gold);
}

/* 数据表格 */
.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
}
.data-table thead {
  background: var(--gradient-primary);
}
.data-table th {
  padding: 12px 15px;
  text-align: left;
  color: var(--text-white);
  font-weight: 700;
  font-size: 0.9rem;
}
.data-table td {
  padding: 12px 15px;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.9rem;
}
.data-table tbody tr:hover {
  background: rgba(3, 169, 244, 0.05);
}
.data-table .highlight {
  color: var(--accent-gold);
  font-weight: 700;
}

/* 步骤列表 */
.steps-list {
  counter-reset: step;
  list-style: none;
  padding: 0;
}
.steps-list li {
  counter-increment: step;
  position: relative;
  padding: 20px 20px 20px 60px;
  margin-bottom: 15px;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
}
.steps-list li::before {
  content: counter(step);
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-white);
  font-weight: 900;
  font-size: 0.9rem;
}

/* 号码球 */
.lottery-balls {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 15px 0;
}
.ball {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1.2rem;
  color: var(--text-white);
}
.ball.red { background: linear-gradient(135deg, #e74c3c, #c0392b); }
.ball.blue { background: linear-gradient(135deg, #03A9F4, #0288D1); }
.ball.green { background: linear-gradient(135deg, #27ae60, #2ecc71); }
.ball.gold { background: var(--gradient-gold); color: var(--text-dark); }
.ball.purple { background: linear-gradient(135deg, #8e44ad, #9b59b6); }

/* 图表容器 */
.chart-container {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 25px;
  margin: 20px 0;
}
.chart-container canvas {
  max-width: 100%;
}

/* 内页图片 */
.article-image {
  margin: 25px 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border-color);
}
.article-image img {
  width: 100%;
  height: auto;
}
.article-image figcaption {
  padding: 10px 15px;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
  background: var(--bg-card);
}

/* ============ 页脚 ============ */
.site-footer {
  background: #060e1a;
  border-top: 1px solid var(--border-color);
  padding: 50px 0 20px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  margin-bottom: 30px;
}
.footer-col h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary);
  display: inline-block;
}
.footer-col ul {
  list-style: none;
}
.footer-col ul li {
  margin-bottom: 8px;
}
.footer-col ul li a {
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: var(--transition);
}
.footer-col ul li a:hover {
  color: var(--primary);
  padding-left: 5px;
}
.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 10px;
}
.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(3, 169, 244, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  transition: var(--transition);
  font-size: 0.9rem;
}
.footer-social a:hover {
  background: var(--gradient-primary);
  color: var(--text-white);
}
.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 20px;
  text-align: center;
}
.footer-bottom p {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 8px;
}
.risk-warning {
  background: rgba(255, 215, 0, 0.1);
  border: 1px solid rgba(255, 215, 0, 0.3);
  border-radius: var(--radius-sm);
  padding: 15px;
  margin-top: 15px;
  text-align: center;
}
.risk-warning p {
  color: var(--accent-gold);
  font-size: 0.85rem;
  font-weight: 600;
}

/* ============ 动画 ============ */
@keyframes countUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes growIn {
  from { transform: scaleY(0); transform-origin: bottom; }
  to { transform: scaleY(1); transform-origin: bottom; }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============ APP下载页 ============ */
.app-download-section {
  text-align: center;
  padding: 80px 0;
}
.app-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  margin: 40px 0;
}
.app-feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 30px;
  transition: var(--transition);
}
.app-feature-card:hover {
  border-color: var(--primary);
  transform: translateY(-3px);
}
.app-feature-card .feature-icon {
  font-size: 2.5rem;
  margin-bottom: 15px;
}
.app-feature-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 10px;
}
.download-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap;
}
.download-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 1rem;
  transition: var(--transition);
}
.download-btn.ios {
  background: var(--text-white);
  color: var(--text-dark);
}
.download-btn.android {
  background: var(--gradient-primary);
  color: var(--text-white);
}
.download-btn:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

/* ============ 隐私政策 ============ */
.policy-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 0;
}
.policy-content h2 {
  font-size: 1.4rem;
  color: var(--text-white);
  margin: 30px 0 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-color);
}
.policy-content p {
  margin-bottom: 15px;
  line-height: 1.8;
}

/* ============ 响应式 ============ */
@media (max-width: 992px) {
  .hero h1 { font-size: 2rem; }
  .section-title h2 { font-size: 1.6rem; }
  .jackpot-card .jackpot-amount { font-size: 1.4rem; }
}

@media (max-width: 768px) {
  .hero { padding: 40px 0 30px; }
  .hero h1 { font-size: 1.6rem; }
  .section { padding: 40px 0; }
  .section-title h2 { font-size: 1.4rem; }
  .countdown-timer { gap: 5px; }
  .countdown-unit { padding: 8px 10px; min-width: 50px; }
  .countdown-unit .number { font-size: 1.4rem; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .page-header h1 { font-size: 1.5rem; }
  .content-body h2 { font-size: 1.3rem; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.3rem; }
  .jackpot-list { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .region-grid { grid-template-columns: repeat(2, 1fr); }
}

/* 打印样式 */
@media print {
  .navbar, .site-footer, .nav-toggle { display: none; }
  body { background: white; color: black; }
}
