/* ===== 梦歌快乐8 - 主样式 ===== */
:root {
  --red: #e63c3c;
  --red-dark: #c42d2d;
  --red-light: #ff6b6b;
  --gold: #f5a623;
  --gold-light: #ffd166;
  --bg-dark: #1a0a0a;
  --bg-card: #2a1010;
  --bg-card2: #231515;
  --text-main: #f5e6e6;
  --text-muted: #b89090;
  --border: #3d1a1a;
  --green: #2ecc71;
  --radius: 12px;
  --shadow: 0 4px 20px rgba(230,60,60,0.15);
}

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

body {
  font-family: 'PingFang SC', 'Microsoft YaHei', 'Noto Sans SC', sans-serif;
  background: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.7;
  min-height: 100vh;
}

a { color: var(--gold); text-decoration: none; transition: color .2s; }
a:hover { color: var(--gold-light); }

/* ===== 顶部导航 ===== */
.site-header {
  background: linear-gradient(135deg, #2a0808 0%, #1a0404 100%);
  border-bottom: 2px solid var(--red);
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 2px 20px rgba(230,60,60,0.3);
}
.header-inner {
  max-width: 1100px; margin: 0 auto;
  padding: 0 20px;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  font-size: 1.4rem; font-weight: 700;
  color: var(--gold);
  text-shadow: 0 0 10px rgba(245,166,35,0.5);
}
.logo .icon { font-size: 1.8rem; }

nav { display: flex; gap: 4px; }
nav a {
  color: var(--text-main); padding: 8px 14px;
  border-radius: 8px; font-size: 0.9rem;
  transition: all .2s;
}
nav a:hover, nav a.active {
  background: var(--red); color: #fff;
}

.nav-cta {
  background: linear-gradient(135deg, var(--gold), #e8930a) !important;
  color: #1a0a0a !important; font-weight: 700;
  padding: 8px 18px !important;
}
.nav-cta:hover { opacity: 0.9; transform: translateY(-1px); }

.hamburger { display: none; background: none; border: none; color: var(--text-main); font-size: 1.5rem; cursor: pointer; }

/* ===== Hero 区 ===== */
.hero {
  background: linear-gradient(135deg, #2a0808 0%, #1a0404 50%, #0d0404 100%);
  padding: 60px 20px 50px;
  text-align: center;
  position: relative; overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(230,60,60,0.15) 0%, transparent 70%);
}
.hero-content { position: relative; z-index: 1; max-width: 700px; margin: 0 auto; }
.hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 900;
  color: #fff;
  text-shadow: 0 0 20px rgba(230,60,60,0.5);
  margin-bottom: 16px;
  line-height: 1.3;
}
.hero h1 span { color: var(--gold); }
.hero p {
  font-size: 1.1rem; color: var(--text-muted);
  margin-bottom: 32px;
}
.hero-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: 10px;
  font-size: 1rem; font-weight: 700;
  transition: all .2s; cursor: pointer; border: none;
  text-decoration: none;
}
.btn-primary {
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  color: #fff;
  box-shadow: 0 4px 15px rgba(230,60,60,0.4);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(230,60,60,0.5); color: #fff; }
.btn-gold {
  background: linear-gradient(135deg, var(--gold), #e8930a);
  color: #1a0a0a;
  box-shadow: 0 4px 15px rgba(245,166,35,0.4);
}
.btn-gold:hover { transform: translateY(-2px); color: #1a0a0a; }
.btn-outline {
  border: 2px solid var(--red); color: var(--red);
  background: transparent;
}
.btn-outline:hover { background: var(--red); color: #fff; }

/* ===== 主内容 ===== */
.main-content {
  max-width: 1100px; margin: 0 auto;
  padding: 40px 20px;
  display: grid; grid-template-columns: 1fr 320px; gap: 30px;
}
@media (max-width: 900px) {
  .main-content { grid-template-columns: 1fr; }
}

/* ===== 卡片 ===== */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}
.card-title {
  font-size: 1.1rem; font-weight: 700;
  color: var(--gold);
  border-bottom: 1px solid var(--border);
  padding-bottom: 12px; margin-bottom: 20px;
  display: flex; align-items: center; gap: 8px;
}

/* ===== 开奖号码展示 ===== */
.lottery-numbers {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin: 10px 0;
}
.ball {
  width: 44px; height: 44px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 1rem;
  box-shadow: inset 0 -3px 6px rgba(0,0,0,0.3), 0 2px 8px rgba(0,0,0,0.3);
}
.ball-red { background: radial-gradient(circle at 35% 35%, #ff6b6b, #c42d2d); color: #fff; }
.ball-gold { background: radial-gradient(circle at 35% 35%, #ffd166, #d4880a); color: #1a0a0a; }
.ball-bonus { background: radial-gradient(circle at 35% 35%, #a8e6cf, #1a7a4a); color: #fff; }

.draw-date { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 10px; }
.draw-prize { font-size: 0.9rem; color: var(--text-muted); margin-top: 10px; }
.prize-amount { color: var(--red); font-weight: 700; }

/* ===== 走势表格 ===== */
.trend-table {
  width: 100%; border-collapse: collapse;
  font-size: 0.8rem;
}
.trend-table th {
  background: #3d1a1a; color: var(--gold);
  padding: 8px 6px; text-align: center;
  border: 1px solid var(--border);
  font-weight: 600;
}
.trend-table td {
  padding: 6px 4px; text-align: center;
  border: 1px solid var(--border);
  color: var(--text-muted);
}
.trend-table tr:hover td { background: #2a1010; }
.trend-dot { color: var(--red); font-weight: 900; }
.trend-table .date-col { color: var(--text-muted); font-size: 0.75rem; }

/* ===== 技巧/文章卡片 ===== */
.tip-list { display: flex; flex-direction: column; gap: 12px; }
.tip-item {
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: 10px; padding: 16px;
  transition: border-color .2s;
}
.tip-item:hover { border-color: var(--red); }
.tip-item h3 { font-size: 0.95rem; color: var(--text-main); margin-bottom: 6px; }
.tip-item p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.6; }
.tip-tag {
  display: inline-block; padding: 2px 8px;
  background: rgba(230,60,60,0.15); color: var(--red);
  border-radius: 4px; font-size: 0.75rem; margin-bottom: 8px;
}

/* ===== 侧边栏 ===== */
.sidebar { display: flex; flex-direction: column; gap: 20px; }

/* ===== 微信引导卡片 ===== */
.wechat-card {
  background: linear-gradient(135deg, #1a2a1a, #0a1a0a);
  border: 2px solid #2ecc71;
  border-radius: var(--radius); padding: 24px;
  text-align: center;
}
.wechat-card .wc-title { color: var(--green); font-weight: 700; font-size: 1rem; margin-bottom: 12px; }
.wechat-number {
  font-size: 1.5rem; font-weight: 900;
  color: #fff; letter-spacing: 2px;
  background: rgba(46,204,113,0.1);
  border-radius: 8px; padding: 10px;
  margin: 12px 0;
}
.wechat-card p { font-size: 0.85rem; color: #90b890; margin-bottom: 16px; }
.wechat-benefits { text-align: left; margin: 12px 0; }
.wechat-benefits li {
  font-size: 0.85rem; color: #a0c8a0;
  padding: 4px 0; list-style: none;
  display: flex; align-items: center; gap: 8px;
}
.wechat-benefits li::before { content: '✅'; font-size: 0.8rem; }

/* ===== 快速统计 ===== */
.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.stat-item {
  background: var(--bg-card2); border-radius: 8px;
  padding: 12px; text-align: center;
  border: 1px solid var(--border);
}
.stat-num { font-size: 1.4rem; font-weight: 900; color: var(--red); }
.stat-label { font-size: 0.75rem; color: var(--text-muted); margin-top: 4px; }

/* ===== FAQ ===== */
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-item {
  border: 1px solid var(--border); border-radius: 10px;
  overflow: hidden;
}
.faq-q {
  padding: 14px 16px;
  background: var(--bg-card2);
  font-weight: 600; font-size: 0.95rem;
  cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  user-select: none;
}
.faq-q::after { content: '＋'; color: var(--red); font-size: 1.2rem; transition: transform .2s; }
.faq-q.open::after { transform: rotate(45deg); }
.faq-a {
  padding: 0 16px; max-height: 0;
  overflow: hidden; transition: all .3s;
  font-size: 0.9rem; color: var(--text-muted); line-height: 1.7;
}
.faq-a.open { padding: 12px 16px; max-height: 300px; }

/* ===== 文章列表 ===== */
.article-grid { display: flex; flex-direction: column; gap: 14px; }
.article-card {
  background: var(--bg-card2); border: 1px solid var(--border);
  border-radius: 10px; padding: 18px;
  transition: all .2s;
}
.article-card:hover { border-color: var(--red); transform: translateY(-2px); }
.article-card h3 { font-size: 1rem; color: var(--text-main); margin-bottom: 8px; }
.article-card h3 a { color: var(--text-main); }
.article-card h3 a:hover { color: var(--gold); }
.article-meta { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 8px; }
.article-card p { font-size: 0.88rem; color: var(--text-muted); line-height: 1.6; }

/* ===== 面包屑 ===== */
.breadcrumb {
  max-width: 1100px; margin: 0 auto;
  padding: 12px 20px 0;
  font-size: 0.85rem; color: var(--text-muted);
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb span { margin: 0 8px; }

/* ===== 文章详情页 ===== */
.article-body {
  max-width: 820px;
}
.article-header { margin-bottom: 30px; }
.article-header h1 { font-size: clamp(1.4rem, 3vw, 2rem); margin-bottom: 12px; }
.article-header .meta { font-size: 0.85rem; color: var(--text-muted); display: flex; gap: 16px; flex-wrap: wrap; }
.article-content { line-height: 1.9; color: #d5c0c0; }
.article-content h2 { color: var(--gold); margin: 28px 0 12px; font-size: 1.2rem; }
.article-content h3 { color: var(--red-light); margin: 20px 0 10px; font-size: 1rem; }
.article-content p { margin-bottom: 14px; }
.article-content ul, .article-content ol { padding-left: 24px; margin-bottom: 14px; }
.article-content li { margin-bottom: 6px; }
.article-content strong { color: var(--text-main); }
.article-content .highlight-box {
  background: rgba(230,60,60,0.08); border-left: 3px solid var(--red);
  padding: 14px 18px; border-radius: 0 8px 8px 0; margin: 20px 0;
}

/* ===== 页脚 ===== */
footer {
  background: #0d0404; border-top: 1px solid var(--border);
  padding: 40px 20px 20px; margin-top: 60px;
}
.footer-inner {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 30px;
  margin-bottom: 30px;
}
.footer-brand .logo { font-size: 1.2rem; margin-bottom: 12px; }
.footer-brand p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.7; }
.footer-links h4 { color: var(--gold); margin-bottom: 14px; font-size: 0.95rem; }
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: var(--text-muted); font-size: 0.85rem; }
.footer-links a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid var(--border); padding-top: 20px;
  text-align: center; font-size: 0.8rem; color: var(--text-muted);
}
.disclaimer {
  font-size: 0.78rem; color: #7a5555;
  max-width: 700px; margin: 10px auto 0;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .footer-inner { grid-template-columns: 1fr; }
  nav { display: none; }
  .hamburger { display: block; }
  nav.open {
    display: flex; flex-direction: column;
    position: absolute; top: 64px; left: 0; right: 0;
    background: #1a0404; border-bottom: 1px solid var(--border);
    padding: 10px;
  }
}

/* ===== 走势图页 ===== */
.trend-wrapper { overflow-x: auto; }
.number-filter { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.num-btn {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--bg-card2); border: 1px solid var(--border);
  color: var(--text-muted); font-size: 0.85rem;
  cursor: pointer; transition: all .2s;
}
.num-btn.active, .num-btn:hover {
  background: var(--red); border-color: var(--red); color: #fff;
}

/* ===== 加载提示 ===== */
.loading-tip {
  text-align: center; padding: 30px;
  color: var(--text-muted); font-size: 0.9rem;
}

/* ===== 徽章 ===== */
.badge {
  display: inline-flex; align-items: center;
  padding: 3px 10px; border-radius: 20px;
  font-size: 0.75rem; font-weight: 600;
}
.badge-red { background: rgba(230,60,60,0.15); color: var(--red); border: 1px solid rgba(230,60,60,0.3); }
.badge-gold { background: rgba(245,166,35,0.15); color: var(--gold); border: 1px solid rgba(245,166,35,0.3); }
.badge-green { background: rgba(46,204,113,0.15); color: var(--green); border: 1px solid rgba(46,204,113,0.3); }

/* ===== 公告条 ===== */
.notice-bar {
  background: linear-gradient(90deg, #2a1000, #1a0a00, #2a1000);
  border-bottom: 1px solid var(--gold);
  padding: 8px 20px; overflow: hidden;
}
.notice-bar-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; align-items: center; gap: 12px;
}
.notice-label {
  background: var(--gold); color: #1a0a0a;
  padding: 2px 10px; border-radius: 4px;
  font-size: 0.8rem; font-weight: 700; white-space: nowrap;
}
.notice-text { font-size: 0.85rem; color: var(--gold-light); white-space: nowrap; animation: marquee 25s linear infinite; }
@keyframes marquee { 0%{transform:translateX(100vw)} 100%{transform:translateX(-100%)} }

/* ===== 分页 ===== */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 30px; flex-wrap: wrap; }
.page-btn {
  width: 38px; height: 38px; border-radius: 8px;
  background: var(--bg-card2); border: 1px solid var(--border);
  color: var(--text-muted); font-size: 0.9rem;
  cursor: pointer; transition: all .2s;
  display: flex; align-items: center; justify-content: center;
}
.page-btn.active, .page-btn:hover { background: var(--red); border-color: var(--red); color: #fff; }
