/* 彩票网站样式 - 移动端优先设计 */

/* 基础重置和变量 */
:root {
  --primary-color: #d32f2f;
  --secondary-color: #ffd700;
  --accent-color: #1976d2;
  --text-dark: #212121;
  --text-light: #757575;
  --bg-light: #fafafa;
  --bg-white: #ffffff;
  --border-color: #e0e0e0;
  --success-color: #4caf50;
  --gradient-primary: linear-gradient(135deg, #d32f2f 0%, #f44336 100%);
  --gradient-gold: linear-gradient(135deg, #ffd700 0%, #ffb300 100%);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.15);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.2);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.7;
  color: var(--text-dark);
  background-color: var(--bg-light);
  overflow-x: hidden;
}

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

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--accent-color);
}

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

/* 头部导航 */
.site-header {
  background: var(--gradient-primary);
  padding: 15px 0;
  box-shadow: var(--shadow-md);
  position: relative;
  z-index: 100;
}

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

.logo-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-img {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

.site-title {
  color: var(--bg-white);
  font-size: 1.5rem;
  font-weight: 700;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

/* 主导航 */
.main-nav {
  width: 100%;
  margin-top: 15px;
}

.nav-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.nav-list li a {
  display: block;
  padding: 10px 18px;
  background: rgba(255,255,255,0.2);
  color: var(--bg-white);
  border-radius: 25px;
  font-weight: 500;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.nav-list li a:hover,
.nav-list li a.active {
  background: var(--bg-white);
  color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

/* Hero横幅 */
.hero-section {
  position: relative;
  padding: 60px 0;
  background: var(--gradient-gold);
  overflow: hidden;
}

.hero-banner {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  border-radius: 15px;
  box-shadow: var(--shadow-lg);
}

/* 内容区块 */
.content-section {
  padding: 50px 0;
  background: var(--bg-white);
}

.content-section:nth-child(even) {
  background: var(--bg-light);
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 30px;
  text-align: center;
  position: relative;
  padding-bottom: 15px;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--gradient-primary);
  border-radius: 2px;
}

.section-content {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-dark);
  margin-bottom: 25px;
}

.section-content strong {
  color: var(--primary-color);
  font-weight: 600;
}

/* 游戏卡片网格 */
.games-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 25px;
  margin: 40px 0;
}

.game-card {
  background: var(--bg-white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  border: 1px solid var(--border-color);
}

.game-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.game-card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.game-card-content {
  padding: 20px;
}

.game-card-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 12px;
}

.game-card-description {
  font-size: 1rem;
  color: var(--text-light);
  line-height: 1.6;
}

.game-card-link {
  display: inline-block;
  margin-top: 15px;
  padding: 10px 25px;
  background: var(--gradient-primary);
  color: var(--bg-white);
  border-radius: 25px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.game-card-link:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-sm);
}

/* 特色图标网格 */
.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 25px;
  margin: 40px 0;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 30px 20px;
  background: var(--bg-white);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.feature-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.feature-icon {
  width: 80px;
  height: 80px;
  margin-bottom: 15px;
  object-fit: contain;
}

.feature-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 10px;
}

.feature-description {
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.6;
}

/* FAQ区块 */
.faq-list {
  margin: 40px 0;
}

.faq-item {
  background: var(--bg-white);
  border-radius: 10px;
  padding: 25px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--primary-color);
}

.faq-question {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 12px;
}

.faq-answer {
  font-size: 1rem;
  color: var(--text-light);
  line-height: 1.7;
}

/* 用户评论 */
.reviews-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 25px;
  margin: 40px 0;
}

.review-card {
  background: var(--bg-white);
  border-radius: 12px;
  padding: 25px;
  box-shadow: var(--shadow-sm);
  border-top: 3px solid var(--secondary-color);
}

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

.reviewer-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-dark);
}

.review-rating {
  color: var(--secondary-color);
  font-size: 1.2rem;
}

.reviewer-location {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 12px;
}

.review-content {
  font-size: 1rem;
  color: var(--text-dark);
  line-height: 1.7;
  margin-bottom: 10px;
}

.review-date {
  font-size: 0.85rem;
  color: var(--text-light);
  font-style: italic;
}

/* 面包屑导航 */
.breadcrumb {
  padding: 15px 0;
  background: var(--bg-light);
}

.breadcrumb-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.9rem;
}

.breadcrumb-list li {
  display: flex;
  align-items: center;
}

.breadcrumb-list li:not(:last-child)::after {
  content: '›';
  margin-left: 8px;
  color: var(--text-light);
}

.breadcrumb-list a {
  color: var(--text-light);
}

.breadcrumb-list a:hover {
  color: var(--primary-color);
}

/* 页脚 */
.site-footer {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  color: #e0e0e0;
  padding: 50px 0 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 35px;
  margin-bottom: 40px;
}

.footer-section-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--secondary-color);
  margin-bottom: 15px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: #e0e0e0;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--secondary-color);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 25px;
  text-align: center;
}

.footer-badges {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin: 25px 0;
}

.footer-badge-img {
  width: 80px;
  height: auto;
  opacity: 0.9;
  transition: opacity 0.3s ease;
}

.footer-badge-img:hover {
  opacity: 1;
}

.copyright {
  font-size: 0.9rem;
  color: #999;
  margin-top: 20px;
}

/* CTA按钮 */
.cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--gradient-gold);
  color: var(--text-dark);
  font-size: 1.1rem;
  font-weight: 700;
  border-radius: 30px;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.cta-button:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-lg);
  color: var(--text-dark);
}

/* 响应式设计 - 平板 */
@media (min-width: 768px) {
  .main-nav {
    width: auto;
    margin-top: 0;
  }
  
  .games-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .reviews-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-content {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* 响应式设计 - 桌面 */
@media (min-width: 1024px) {
  .games-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .reviews-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .footer-content {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .section-title {
    font-size: 2.5rem;
  }
}

/* 性能优化 - 预加载和DNS预取 */
.preload-hint {
  display: none;
}

/* 无障碍增强 */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border-width: 0;
}

/* 打印样式 */
@media print {
  .site-header,
  .site-footer,
  .cta-button {
    display: none;
  }
}
