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

:root {
  --primary-color: #FF6B35;
  --secondary-color: #004E89;
  --accent-color: #FFD23F;
  --text-dark: #1A1A2E;
  --text-light: #F5F5F5;
  --bg-light: #FFFFFF;
  --bg-dark: #0F1419;
  --border-color: #E0E0E0;
  --success-color: #2ECC71;
  --warning-color: #F39C12;
}

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

body {
  font-family: 'Microsoft YaHei', 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.8;
  color: var(--text-dark);
  background-color: var(--bg-light);
  font-size: 16px;
}

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(--secondary-color);
}

/* 头部导航 */
header {
  background: linear-gradient(135deg, var(--secondary-color) 0%, #003366 100%);
  padding: 1.2rem 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.logo-section {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo-section img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
}

.logo-section h1 {
  color: var(--text-light);
  font-size: 1.5rem;
  font-weight: 700;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

nav a {
  color: var(--text-light);
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  transition: all 0.3s ease;
}

nav a:hover {
  background-color: rgba(255, 255, 255, 0.15);
  color: var(--accent-color);
}

.cta-button {
  background: linear-gradient(135deg, var(--primary-color) 0%, #E85D3B 100%);
  color: var(--text-light) !important;
  padding: 0.8rem 1.8rem;
  border-radius: 25px;
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 107, 53, 0.6);
  background: linear-gradient(135deg, #E85D3B 0%, var(--primary-color) 100%);
}

/* 主内容区域 */
main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

section {
  margin-bottom: 4rem;
}

h2 {
  font-size: 2rem;
  color: var(--secondary-color);
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.8rem;
}

h2::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  border-radius: 2px;
}

h3 {
  font-size: 1.5rem;
  color: var(--secondary-color);
  margin: 1.5rem 0 1rem;
}

p {
  margin-bottom: 1.2rem;
  text-align: justify;
}

/* Hero横幅 */
.hero-banner {
  position: relative;
  width: 100%;
  margin-bottom: 3rem;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

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

/* 彩种卡片网格 */
.lottery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.lottery-card {
  background: var(--bg-light);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.lottery-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

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

.lottery-card-content {
  padding: 1.5rem;
}

.lottery-card h3 {
  margin: 0 0 1rem;
  color: var(--secondary-color);
}

.lottery-card p {
  color: #555;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.lottery-card a {
  display: inline-block;
  background: var(--primary-color);
  color: var(--text-light);
  padding: 0.7rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  transition: background 0.3s ease;
}

.lottery-card a:hover {
  background: var(--secondary-color);
}

/* 特色功能网格 */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.feature-item {
  text-align: center;
  padding: 2rem 1.5rem;
  background: linear-gradient(135deg, #F8F9FA 0%, #E9ECEF 100%);
  border-radius: 16px;
  transition: transform 0.3s ease;
}

.feature-item:hover {
  transform: scale(1.05);
}

.feature-item img {
  width: 80px;
  height: 80px;
  margin: 0 auto 1rem;
  border-radius: 50%;
}

.feature-item h3 {
  font-size: 1.3rem;
  margin: 1rem 0;
}

/* FAQ部分 */
.faq-item {
  background: var(--bg-light);
  border: 2px solid var(--border-color);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  transition: border-color 0.3s ease;
}

.faq-item:hover {
  border-color: var(--primary-color);
}

.faq-item h3 {
  color: var(--secondary-color);
  margin-bottom: 0.8rem;
  font-size: 1.2rem;
}

/* 用户评论 */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.review-card {
  background: linear-gradient(135deg, #FFFFFF 0%, #F8F9FA 100%);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

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

.reviewer-info h4 {
  color: var(--secondary-color);
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
}

.reviewer-info p {
  color: #777;
  font-size: 0.9rem;
  margin: 0;
}

.rating {
  color: var(--accent-color);
  font-size: 1.3rem;
}

.review-content {
  color: #555;
  line-height: 1.6;
}

.review-date {
  color: #999;
  font-size: 0.85rem;
  margin-top: 1rem;
  text-align: right;
}

/* 页脚 */
footer {
  background: linear-gradient(135deg, var(--bg-dark) 0%, #1A1A2E 100%);
  color: var(--text-light);
  padding: 3rem 0 1.5rem;
  margin-top: 4rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 2rem;
}

.footer-section h3 {
  color: var(--accent-color);
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.8rem;
}

.footer-section a {
  color: var(--text-light);
  transition: color 0.3s ease;
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  text-align: center;
  color: #AAA;
  font-size: 0.9rem;
}

.age-restriction {
  display: inline-block;
  background: var(--warning-color);
  color: var(--text-light);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-weight: 700;
  margin-top: 1rem;
}

/* 面包屑导航 */
.breadcrumb {
  background: #F8F9FA;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  margin-bottom: 2rem;
}

.breadcrumb ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.breadcrumb li::after {
  content: '›';
  margin-left: 0.5rem;
  color: #999;
}

.breadcrumb li:last-child::after {
  content: '';
}

/* 响应式设计 */
@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    gap: 1rem;
  }

  nav ul {
    justify-content: center;
  }

  h2 {
    font-size: 1.6rem;
  }

  .lottery-grid,
  .features-grid,
  .reviews-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 14px;
  }

  .logo-section h1 {
    font-size: 1.2rem;
  }

  h2 {
    font-size: 1.4rem;
  }

  nav a {
    padding: 0.4rem 0.8rem;
    font-size: 0.9rem;
  }
}
