/* 博彩行业研究与监管政策分析平台 - 左右分栏文档型 */

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

:root {
  --bg-primary: #f8f9fa;
  --bg-secondary: #ffffff;
  --text-primary: #1a1d29;
  --text-secondary: #4a5568;
  --accent: #1e40af;
  --border: #e2e8f0;
  --spacing-unit: 1.5rem;
}

body {
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text-primary);
  background: var(--bg-primary);
  line-height: 1.65;
  font-size: 16px;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: opacity 0.2s;
}

a:hover {
  opacity: 0.75;
}

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

/* Header */
header {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-unit);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-link img {
  width: 40px;
  height: 40px;
}

.site-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
}

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

nav a {
  color: var(--text-secondary);
  font-size: 0.95rem;
  position: relative;
}

nav a.is-active,
nav a:hover {
  color: var(--accent);
}

nav a.is-active::after {
  content: "";
  position: absolute;
  bottom: -1.5rem;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-primary);
}

/* Main container */
main {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--spacing-unit);
}

/* Hero section */
.hero {
  position: relative;
  margin-bottom: calc(var(--spacing-unit) * 2);
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-secondary);
}

.hero-image {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.hero-content {
  position: absolute;
  top: 50%;
  left: var(--spacing-unit);
  transform: translateY(-50%);
  max-width: 500px;
  color: #ffffff;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.hero-title {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.hero-desc {
  font-size: 1.1rem;
  line-height: 1.6;
}

/* Sections */
section {
  margin-bottom: calc(var(--spacing-unit) * 2.5);
}

.section-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.section-header::before {
  content: "—";
  color: var(--accent);
  font-weight: 700;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
}

/* Two-column layout for homepage */
.two-col {
  display: grid;
  grid-template-columns: 60% 1fr;
  gap: calc(var(--spacing-unit) * 2);
  align-items: start;
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--spacing-unit);
}

.card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.5rem;
  transition: box-shadow 0.2s;
}

.card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.card-title {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.card-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.card-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 1rem;
}

/* Article list */
.article-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.article-item {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: box-shadow 0.2s;
}

.article-item:hover {
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.article-title-link {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text-primary);
}

.article-meta {
  font-size: 0.85rem;
  color: var(--text-secondary);
  white-space: nowrap;
}

/* Breadcrumb */
.breadcrumb {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

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

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

/* Article page layout */
.article-layout {
  display: grid;
  grid-template-columns: 65% 1fr;
  gap: calc(var(--spacing-unit) * 2);
}

.article-main {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: calc(var(--spacing-unit) * 2);
}

.article-header {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.article-title {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.article-author {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.article-body {
  font-family: Georgia, "PingFang SC", serif;
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-primary);
}

.article-body h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 2rem 0 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.article-body h2::before {
  content: "—";
  color: var(--accent);
}

.article-body p {
  margin-bottom: 1.2rem;
}

.article-body img {
  margin: 2rem 0;
  border-radius: 4px;
}

.article-body ul,
.article-body ol {
  margin: 1rem 0 1rem 2rem;
}

.article-body li {
  margin-bottom: 0.5rem;
}

/* Sidebar */
aside {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.5rem;
  position: sticky;
  top: 90px;
}

.aside-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.related-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.related-item {
  font-size: 0.95rem;
  padding: 0.75rem;
  border-left: 3px solid var(--accent);
  background: var(--bg-primary);
  color: var(--text-primary);
  transition: background 0.2s;
}

.related-item:hover {
  background: var(--border);
}

/* Footer */
footer {
  background: var(--text-primary);
  color: #cbd5e0;
  margin-top: calc(var(--spacing-unit) * 3);
  padding: calc(var(--spacing-unit) * 2) var(--spacing-unit);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: calc(var(--spacing-unit) * 2);
  margin-bottom: 2rem;
}

.footer-section h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #ffffff;
}

.footer-section p,
.footer-section a {
  font-size: 0.9rem;
  line-height: 1.8;
  color: #cbd5e0;
}

.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid #2d3748;
  text-align: center;
  font-size: 0.85rem;
  line-height: 1.8;
}

.footer-bottom a {
  color: #cbd5e0;
  pointer-events: none;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .header-inner {
    height: 60px;
  }
  
  .menu-toggle {
    display: block;
  }
  
  nav {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    padding: 1rem;
  }
  
  nav.is-open {
    display: block;
  }
  
  nav ul {
    flex-direction: column;
    gap: 1rem;
  }
  
  nav a.is-active::after {
    display: none;
  }
  
  .hero-content {
    position: static;
    transform: none;
    padding: var(--spacing-unit);
    color: var(--text-primary);
    text-shadow: none;
  }
  
  .hero-image {
    height: 250px;
  }
  
  .hero-title {
    font-size: 1.75rem;
  }
  
  .two-col,
  .article-layout {
    grid-template-columns: 1fr;
  }
  
  aside {
    position: static;
  }
  
  .card-grid {
    grid-template-columns: 1fr;
  }
}
