/* =============================================
   开奖彩票 - www.kaijiangcp.com
   Design: Magazine Split (杂志分栏)
   Prototype: 大图英雄 + 时间线 + 双列栏目
   Palette: Deep Blue (#0f1b3d) + Gold/Orange (#e8962e)
   Font: System sans-serif stack
============================================= */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: #1a1a2e;
  background: #f8f9fc;
}

a { color: #0f1b3d; text-decoration: none; transition: color 0.2s; }
a:hover { color: #e8962e; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

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

/* --- Header --- */
.site-header {
  background: #0f1b3d;
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(15,27,61,0.15);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  padding: 0 20px;
  max-width: 1200px;
  margin: 0 auto;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo img { height: 36px; width: auto; }
.logo-text {
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 1px;
}
.nav-menu { display: flex; align-items: center; gap: 4px; }
.nav-menu a {
  color: rgba(255,255,255,0.85);
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 0.9rem;
  transition: all 0.2s;
}
.nav-menu a:hover,
.nav-menu a.active { background: rgba(232,150,46,0.2); color: #e8962e; }

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: #fff;
}
.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  margin: 5px 0;
  transition: 0.3s;
}
.menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* --- Hero Section --- */
.hero {
  background: linear-gradient(135deg, #0f1b3d 0%, #1a2d5e 50%, #0f1b3d 100%);
  color: #fff;
  padding: 60px 0;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('/images/hero.png') center/cover no-repeat;
  opacity: 0.25;
  z-index: 0;
}
.hero .container { position: relative; z-index: 1; }
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.hero h1 {
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
}
.hero h1 span { color: #e8962e; }
.hero p {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: 24px;
  max-width: 480px;
}
.hero-btn {
  display: inline-block;
  background: #e8962e;
  color: #0f1b3d;
  padding: 12px 32px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1rem;
  transition: all 0.2s;
}
.hero-btn:hover { background: #f0a842; color: #0f1b3d; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  text-align: center;
}
.stat-card {
  background: rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 24px 16px;
  backdrop-filter: blur(8px);
}
.stat-card .num {
  font-size: 2rem;
  font-weight: 800;
  color: #e8962e;
}
.stat-card .label {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  margin-top: 4px;
}

/* --- Section common --- */
.section { padding: 60px 0; }
.section-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: #0f1b3d;
  margin-bottom: 8px;
  position: relative;
  padding-bottom: 12px;
}
.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 48px;
  height: 3px;
  background: #e8962e;
  border-radius: 2px;
}
.section-sub {
  color: #666;
  font-size: 0.95rem;
  margin-bottom: 32px;
}

/* --- Quick Links (栏目入口) --- */
.quick-links {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.quick-link-card {
  background: #fff;
  border-radius: 12px;
  padding: 24px 16px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(15,27,61,0.06);
  transition: all 0.25s;
  border: 1px solid #e8ecf2;
}
.quick-link-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(15,27,61,0.1);
  border-color: #e8962e;
}
.quick-link-card .icon {
  font-size: 2rem;
  margin-bottom: 8px;
}
.quick-link-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #0f1b3d;
  margin-bottom: 4px;
}
.quick-link-card p {
  font-size: 0.82rem;
  color: #888;
}

/* --- Latest Results (最新开奖) --- */
.latest-results {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.result-card {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(15,27,61,0.06);
  border: 1px solid #e8ecf2;
}
.result-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: #0f1b3d;
}
.result-card .date {
  font-size: 0.82rem;
  color: #999;
  margin-bottom: 12px;
}
.balls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}
.ball {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
}
.ball-red { background: #dc3545; color: #fff; }
.ball-blue { background: #0d6efd; color: #fff; }

/* --- Article Grid (双列文章) --- */
.article-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.article-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(15,27,61,0.06);
  border: 1px solid #e8ecf2;
  transition: all 0.25s;
}
.article-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(15,27,61,0.1);
}
.article-card .card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.article-card .card-body { padding: 20px; }
.article-card .card-cat {
  display: inline-block;
  font-size: 0.78rem;
  color: #e8962e;
  font-weight: 600;
  margin-bottom: 6px;
}
.article-card h3 { margin-bottom: 8px; }
.article-card h3 a {
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f1b3d;
  line-height: 1.4;
}
.article-card h3 a:hover { color: #e8962e; }
.article-card .card-excerpt {
  font-size: 0.88rem;
  color: #666;
  line-height: 1.6;
}
.article-card .card-date {
  font-size: 0.8rem;
  color: #aaa;
  margin-top: 10px;
}

/* --- Features / 特色服务 --- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature-item {
  text-align: center;
  padding: 32px 20px;
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e8ecf2;
  transition: all 0.25s;
}
.feature-item:hover { border-color: #e8962e; }
.feature-item img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 50%;
  margin: 0 auto 16px;
}
.feature-item h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: #0f1b3d;
}
.feature-item p {
  font-size: 0.88rem;
  color: #666;
}

/* --- FAQ --- */
.faq-list { max-width: 800px; }
.faq-item {
  background: #fff;
  border-radius: 10px;
  padding: 20px 24px;
  margin-bottom: 12px;
  border: 1px solid #e8ecf2;
}
.faq-item h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #0f1b3d;
  margin-bottom: 8px;
}
.faq-item p {
  font-size: 0.9rem;
  color: #555;
  line-height: 1.7;
}

/* --- CTA --- */
.cta-section {
  background: linear-gradient(135deg, #0f1b3d, #1a2d5e);
  color: #fff;
  text-align: center;
  padding: 60px 20px;
}
.cta-section h2 {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 16px;
}
.cta-section p {
  font-size: 1rem;
  color: rgba(255,255,255,0.75);
  margin-bottom: 24px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* --- Footer --- */
.site-footer {
  background: #0a1229;
  color: rgba(255,255,255,0.7);
  padding: 40px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}
.footer-col h4 {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}
.footer-col p,
.footer-col a {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.6);
  line-height: 2;
  display: block;
}
.footer-col a:hover { color: #e8962e; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 16px;
  text-align: center;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
}

/* --- Article Page Specific --- */
.article-main {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 32px;
  padding: 40px 0;
}
.article-content { min-width: 0; }
.article-content .breadcrumb {
  font-size: 0.85rem;
  color: #888;
  margin-bottom: 16px;
}
.article-content .breadcrumb a { color: #0f1b3d; }
.article-content .breadcrumb a:hover { color: #e8962e; }
.article-content h1 {
  font-size: 1.8rem;
  font-weight: 800;
  color: #0f1b3d;
  margin-bottom: 12px;
  line-height: 1.3;
}
.article-meta {
  font-size: 0.85rem;
  color: #999;
  margin-bottom: 24px;
}
.article-body h2 {
  font-size: 1.3rem;
  font-weight: 700;
  color: #0f1b3d;
  margin: 28px 0 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid #e8962e;
}
.article-body h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #0f1b3d;
  margin: 20px 0 8px;
}
.article-body p {
  margin-bottom: 14px;
  color: #444;
  line-height: 1.8;
}
.article-body ul,
.article-body ol {
  margin: 0 0 14px 20px;
  color: #444;
  line-height: 1.8;
}
.article-body ul { list-style: disc; }
.article-body ol { list-style: decimal; }
.article-body li { margin-bottom: 6px; }
.article-body img {
  border-radius: 10px;
  margin: 20px auto;
}

/* --- Article Sidebar --- */
.article-aside {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  border: 1px solid #e8ecf2;
  position: sticky;
  top: 80px;
}
.article-aside h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #0f1b3d;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid #e8962e;
}
.article-aside ul li { margin-bottom: 12px; }
.article-aside ul li a {
  font-size: 0.88rem;
  color: #333;
  line-height: 1.5;
  display: block;
}
.article-aside ul li a:hover { color: #e8962e; }

/* --- Category Page --- */
.category-header {
  padding: 32px 0;
  border-bottom: 1px solid #e8ecf2;
  margin-bottom: 32px;
}
.category-header h1 {
  font-size: 1.6rem;
  font-weight: 800;
  color: #0f1b3d;
  margin-bottom: 6px;
}
.category-header p { color: #666; font-size: 0.95rem; }

/* --- Timeline (时间线首页用) --- */
.timeline { position: relative; padding-left: 24px; }
.timeline::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #e8962e;
}
.timeline-item {
  position: relative;
  padding: 12px 0 12px 20px;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: -22px;
  top: 18px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #e8962e;
  border: 2px solid #fff;
}
.timeline-item .label {
  font-size: 0.78rem;
  color: #e8962e;
  font-weight: 600;
}

/* --- Trust bar --- */
.trust-bar {
  background: #fff;
  padding: 20px 0;
  border-bottom: 1px solid #e8ecf2;
}
.trust-items {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: #555;
}

/* --- Pagination --- */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 32px 0;
}
.pagination a {
  background: #fff;
  border: 1px solid #e8ecf2;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.9rem;
  color: #0f1b3d;
}
.pagination a:hover,
.pagination a.active { background: #e8962e; color: #fff; border-color: #e8962e; }

/* --- Responsive --- */
@media (max-width: 768px) {
  .menu-toggle { display: block; }
  .nav-menu {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: #0f1b3d;
    flex-direction: column;
    padding: 16px;
    gap: 4px;
  }
  .nav-menu.active { display: flex; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 1.6rem; }
  .quick-links { grid-template-columns: repeat(2, 1fr); }
  .latest-results { grid-template-columns: 1fr; }
  .article-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .article-main { grid-template-columns: 1fr; }
  .article-aside { position: static; margin-top: 24px; }
  .hero-stats { grid-template-columns: repeat(3, 1fr); }
  .stat-card { padding: 16px 8px; }
  .stat-card .num { font-size: 1.5rem; }
  .section-title { font-size: 1.3rem; }
}

@media (max-width: 480px) {
  .trust-items { gap: 16px; flex-direction: column; align-items: flex-start; }
  .quick-links { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero { padding: 40px 0; }
  .hero h1 { font-size: 1.4rem; }
  .stat-card .num { font-size: 1.2rem; }
}