/* ========================================
   福建体育彩票31选7 - 全站样式表
   ======================================== */

/* ---------- 变量与重置 ---------- */
:root {
  --primary: #C8102E;      /* 体彩红 */
  --primary-dark: #9B0D24;
  --secondary: #1A3A8F;   /* 体彩蓝 */
  --accent: #FFD100;      /* 金色点缀 */
  --bg-light: #F8F9FA;
  --bg-card: #FFFFFF;
  --text-dark: #1A1A1A;
  --text-body: #4A4A4A;
  --text-muted: #888;
  --border: #E5E7EB;
  --shadow: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-hover: 0 6px 24px rgba(0,0,0,0.12);
  --radius: 10px;
  --radius-sm: 6px;
  --font-main: 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', sans-serif;
  --transition: all 0.25s ease;
}

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

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

body {
  font-family: var(--font-main);
  color: var(--text-body);
  background: var(--bg-light);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-dark); }

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

/* ---------- 通用布局 ---------- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section { padding: 60px 0; }

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

.section-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-dark);
}

.more-link {
  font-size: 0.9rem;
  color: var(--primary);
  font-weight: 500;
}
.more-link:hover { text-decoration: underline; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition);
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}
.btn-primary:hover {
  background: var(--primary-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(200,16,46,0.3);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  color: #fff;
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.85rem;
}

/* ---------- 头部导航 ---------- */
.site-header {
  background: #fff;
  border-bottom: 2px solid var(--primary);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--primary);
  font-weight: 800;
  font-size: 1.15rem;
}

.logo-img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 50%;
}

.main-nav {
  display: flex;
  gap: 28px;
}

.main-nav a {
  color: var(--text-dark);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 6px 0;
  position: relative;
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--primary);
  transition: var(--transition);
}

.main-nav a:hover { color: var(--primary); }
.main-nav a:hover::after { width: 100%; }

/* ---------- Hero 横幅 ---------- */
.hero-banner {
  background: linear-gradient(135deg, var(--primary) 0%, #7B0D1C 100%);
  color: #fff;
  padding: 60px 0;
  position: relative;
  overflow: hidden;
}

.hero-banner::before {
  content: '';
  position: absolute;
  top: -50%; right: -10%;
  width: 600px; height: 600px;
  background: rgba(255,255,255,0.04);
  border-radius: 50%;
}

.hero-content {
  display: flex;
  align-items: center;
  gap: 40px;
}

.hero-text { flex: 1; }

.hero-text h1 {
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 14px;
}

.hero-text .highlight {
  color: var(--accent);
  font-size: 2.8rem;
}

.hero-sub {
  font-size: 1.05rem;
  opacity: 0.9;
  margin-bottom: 28px;
}

.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-img-wrap { width: 380px; flex-shrink: 0; }
.hero-img-wrap img {
  border-radius: var(--radius);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}

/* ---------- 最新开奖卡片 ---------- */
.latest-results { background: #fff; }

.result-card {
  background: linear-gradient(135deg, #FFF5F5 0%, #FFF0F0 100%);
  border: 2px solid #FFD6D6;
  border-radius: var(--radius);
  padding: 32px;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 32px;
}

.result-period {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.result-date {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.result-balls {
  display: flex;
  gap: 10px;
  align-items: center;
}

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

.ball.red {
  background: linear-gradient(135deg, #E53935, #B71C1C);
  box-shadow: 0 2px 8px rgba(229,57,53,0.4);
}

.ball.blue {
  background: linear-gradient(135deg, #1E88E5, #0D47A1);
  box-shadow: 0 2px 8px rgba(30,136,229,0.4);
}

.prize-info {
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-left: 1px solid var(--border);
  padding-left: 28px;
}

.prize-item {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 0.9rem;
}

.prize-name { color: var(--text-muted); }
.prize-amount { font-weight: 700; color: var(--primary); }
.prize-item.highlight .prize-amount { font-size: 1.1rem; }

/* ---------- 走势分析 ---------- */
.trend-section { background: var(--bg-light); }

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

.trend-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.trend-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.trend-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.trend-card h3 {
  font-size: 1.05rem;
  color: var(--text-dark);
  padding: 16px 20px 8px;
}

.trend-card p {
  font-size: 0.88rem;
  color: var(--text-body);
  padding: 0 20px 16px;
  line-height: 1.5;
}

.read-more {
  display: block;
  padding: 12px 20px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--primary);
  border-top: 1px solid var(--border);
}

/* ---------- 投注指南 ---------- */
.guide-list { display: flex; flex-direction: column; gap: 20px; }

.guide-item {
  display: flex;
  gap: 24px;
  background: #fff;
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.guide-item:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-hover);
}

.guide-num {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--primary);
  opacity: 0.25;
  line-height: 1;
  flex-shrink: 0;
  width: 60px;
}

.guide-body h3 {
  font-size: 1.1rem;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.guide-body p {
  font-size: 0.9rem;
  color: var(--text-body);
  margin-bottom: 12px;
}

/* ---------- 统计数据 ---------- */
.stats-section {
  background: linear-gradient(135deg, var(--secondary) 0%, #0A2050 100%);
  color: #fff;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.stat-card {
  text-align: center;
  padding: 28px 16px;
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.12);
}

.stat-num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 8px;
}

.stat-label {
  font-size: 0.88rem;
  opacity: 0.8;
}

/* ---------- 底部 ---------- */
.site-footer {
  background: #1A1A2E;
  color: rgba(255,255,255,0.7);
  padding-top: 48px;
}

.footer-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  padding-bottom: 40px;
}

.footer-col h4 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 14px;
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { color: rgba(255,255,255,0.65); }
.footer-col ul li a:hover { color: var(--accent); }

.warning {
  font-size: 0.82rem;
  line-height: 1.5;
  color: rgba(255,255,255,0.5);
  border-left: 3px solid var(--primary);
  padding-left: 10px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
  padding: 18px;
  font-size: 0.82rem;
  opacity: 0.6;
}

/* ---------- 文章页通用 ---------- */
.article-page { background: #fff; padding: 40px 0; }
.article-wrap { max-width: 760px; margin: 0 auto; padding: 0 20px; }
.article-header { margin-bottom: 32px; }
.article-header h1 { font-size: 1.8rem; color: var(--text-dark); margin-bottom: 12px; }
.article-meta { font-size: 0.85rem; color: var(--text-muted); display: flex; gap: 16px; }
.article-body { font-size: 1rem; line-height: 1.8; color: var(--text-body); }
.article-body h2 { font-size: 1.3rem; color: var(--text-dark); margin: 28px 0 14px; }
.article-body p { margin-bottom: 16px; }
.article-body ul { padding-left: 24px; margin-bottom: 16px; }
.article-body li { margin-bottom: 8px; }

/* ---------- 栏目页通用 ---------- */
.category-page { background: var(--bg-light); padding: 40px 0; }
.category-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.article-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.article-card-img { width: 100%; height: 160px; object-fit: cover; }
.article-card-body { padding: 16px; }
.article-card-body h3 { font-size: 1rem; color: var(--text-dark); margin-bottom: 8px; }
.article-card-body p { font-size: 0.85rem; color: var(--text-muted); }

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .trend-grid, .category-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: repeat(2, 1fr); }
  .result-card { grid-template-columns: auto 1fr; gap: 20px; }
  .prize-info { border-left: none; padding-left: 0; border-top: 1px solid var(--border); padding-top: 16px; grid-column: span 2; flex-direction: row; flex-wrap: wrap; }
}

@media (max-width: 640px) {
  .hero-content { flex-direction: column; }
  .hero-img-wrap { width: 100%; }
  .trend-grid, .category-grid, .stats-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .main-nav { gap: 16px; }
  .main-nav a { font-size: 0.85rem; }
  .guide-item { flex-direction: column; }
}
