/* ========================================
   六合彩历史数据分析平台 - 全站样式
   ======================================== */

/* CSS变量定义 */
:root {
  --primary-color: #1a237e;
  --primary-light: #3949ab;
  --primary-dark: #0d1642;
  --accent-color: #ff6f00;
  --accent-light: #ffa040;
  --accent-dark: #c43e00;
  --gold-color: #ffd700;
  --gold-dark: #b8960f;
  --success-color: #2e7d32;
  --danger-color: #c62828;
  --info-color: #0277bd;
  --bg-primary: #f5f7fa;
  --bg-secondary: #eef1f6;
  --bg-card: #ffffff;
  --text-primary: #212121;
  --text-secondary: #616161;
  --text-light: #9e9e9e;
  --border-color: #e0e0e0;
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.12);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.16);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --font-main: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-heading: 'Noto Serif SC', 'STSong', serif;
  --transition: all 0.3s ease;
}

/* 重置样式 */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-main);
  color: var(--text-primary);
  background-color: var(--bg-primary);
  line-height: 1.8;
  overflow-x: hidden;
}

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

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

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

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.4;
  color: var(--primary-dark);
}

h1 { font-size: 2.2rem; }
h2 { font-size: 1.8rem; }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.2rem; }

p {
  margin-bottom: 1rem;
  line-height: 1.8;
}

/* 干扰标签隐藏 */
.jammer-block {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  opacity: 0;
  pointer-events: none;
  z-index: -9999;
}

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

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

/* ========== 头部导航 ========== */
.site-header {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 50%, #283593 100%);
  color: #fff;
  padding: 0;
  position: relative;
  z-index: 100;
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.site-logo .logo-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--gold-color), var(--accent-color));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--primary-dark);
}

.site-logo h1 {
  font-size: 1.5rem;
  color: #fff;
  font-family: var(--font-heading);
}

.site-logo h1 span {
  color: var(--gold-color);
}

.header-contact {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.8);
}

/* 主导航 */
.main-nav {
  padding: 0;
}

.nav-list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}

.nav-list li {
  position: relative;
}

.nav-list li a {
  display: block;
  padding: 14px 22px;
  color: rgba(255,255,255,0.9);
  font-size: 0.95rem;
  font-weight: 500;
  transition: var(--transition);
  border-bottom: 3px solid transparent;
}

.nav-list li a:hover,
.nav-list li a.active {
  color: var(--gold-color);
  background: rgba(255,255,255,0.08);
  border-bottom-color: var(--gold-color);
}

/* 移动端菜单按钮 */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 8px;
}

.mobile-menu-btn span {
  display: block;
  width: 28px;
  height: 3px;
  background: #fff;
  margin: 5px 0;
  border-radius: 2px;
  transition: var(--transition);
}

/* ========== 面包屑导航 ========== */
.breadcrumb-wrap {
  background: var(--bg-secondary);
  padding: 12px 0;
  border-bottom: 1px solid var(--border-color);
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

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

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

.breadcrumb .separator {
  color: var(--text-light);
}

.breadcrumb .current {
  color: var(--primary-light);
  font-weight: 500;
}

/* ========== 英雄区域 ========== */
.hero-section {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 40%, #1565c0 100%);
  color: #fff;
  padding: 60px 0 50px;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255,215,0,0.15) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-section::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255,111,0,0.1) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 40px;
}

.hero-text {
  flex: 1;
}

.hero-text h2 {
  font-size: 2.4rem;
  color: #fff;
  margin-bottom: 16px;
  line-height: 1.3;
}

.hero-text h2 span {
  color: var(--gold-color);
}

.hero-text p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 24px;
  line-height: 1.8;
}

.hero-image {
  flex: 0 0 400px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

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

.hero-stats {
  display: flex;
  gap: 30px;
  margin-top: 30px;
}

.hero-stat-item {
  text-align: center;
}

.hero-stat-item .stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--gold-color);
  display: block;
}

.hero-stat-item .stat-label {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--accent-color), var(--accent-light));
  color: #fff;
  box-shadow: 0 4px 12px rgba(255,111,0,0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255,111,0,0.4);
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.5);
}

.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--gold-color);
  color: var(--gold-color);
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold-color), var(--gold-dark));
  color: var(--primary-dark);
  font-weight: 700;
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255,215,0,0.4);
  color: var(--primary-dark);
}

.btn-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ========== 区块通用 ========== */
.section {
  padding: 60px 0;
}

.section-alt {
  background: var(--bg-secondary);
}

.section-dark {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
  color: #fff;
}

.section-title {
  text-align: center;
  margin-bottom: 40px;
}

.section-title h2 {
  font-size: 1.8rem;
  margin-bottom: 12px;
  position: relative;
  display: inline-block;
}

.section-title h2 span {
  color: var(--accent-color);
}

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-color), var(--gold-color));
  border-radius: 2px;
}

.section-title p {
  color: var(--text-secondary);
  font-size: 1rem;
  margin-top: 16px;
}

/* ========== 最新开奖结果 ========== */
.latest-results {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-md);
  margin-bottom: 30px;
}

.result-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 2px solid var(--bg-secondary);
}

.result-header h3 {
  font-size: 1.3rem;
}

.result-header .result-period {
  background: var(--accent-color);
  color: #fff;
  padding: 4px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
}

.result-table {
  width: 100%;
  border-collapse: collapse;
}

.result-table thead th {
  background: var(--primary-dark);
  color: #fff;
  padding: 12px 16px;
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
}

.result-table thead th:first-child {
  border-radius: var(--radius-sm) 0 0 0;
}

.result-table thead th:last-child {
  border-radius: 0 var(--radius-sm) 0 0;
}

.result-table tbody td {
  padding: 12px 16px;
  text-align: center;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.9rem;
}

.result-table tbody tr:hover {
  background: rgba(26,35,126,0.04);
}

.result-table tbody tr:last-child td {
  border-bottom: none;
}

/* 号码球样式 */
.ball-container {
  display: flex;
  gap: 6px;
  justify-content: center;
  align-items: center;
}

.ball {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  box-shadow: inset 0 -3px 6px rgba(0,0,0,0.2), 0 2px 4px rgba(0,0,0,0.15);
}

.ball-red { background: linear-gradient(135deg, #e53935, #c62828); }
.ball-blue { background: linear-gradient(135deg, #1e88e5, #1565c0); }
.ball-green { background: linear-gradient(135deg, #43a047, #2e7d32); }
.ball-special {
  background: linear-gradient(135deg, var(--gold-color), var(--gold-dark));
  color: var(--primary-dark);
}

.ball-plus {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-light);
  margin: 0 4px;
}

/* ========== 走势图面板 ========== */
.trend-panel {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-md);
}

.trend-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 24px;
  border-bottom: 2px solid var(--border-color);
}

.trend-tab {
  padding: 10px 24px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: var(--transition);
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
}

.trend-tab:hover,
.trend-tab.active {
  color: var(--primary-color);
  border-bottom-color: var(--accent-color);
}

.trend-chart-area {
  width: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-secondary);
  min-height: 300px;
}

.trend-chart-area img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* ========== 卡片网格 ========== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.card-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.card-grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

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

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

.card-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.card:hover .card-image img {
  transform: scale(1.05);
}

.card-body {
  padding: 20px;
}

.card-body h4 {
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.card-body p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  border-top: 1px solid var(--border-color);
  font-size: 0.8rem;
  color: var(--text-light);
}

/* ========== 冷热号码统计 ========== */
.hot-cold-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.hot-cold-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.hot-cold-card h4 {
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.hot-cold-card h4 .icon-hot {
  color: var(--danger-color);
}

.hot-cold-card h4 .icon-cold {
  color: var(--info-color);
}

.number-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.number-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 0.9rem;
  font-weight: 700;
  transition: var(--transition);
}

.number-tag-hot {
  background: linear-gradient(135deg, #ffebee, #ffcdd2);
  color: var(--danger-color);
  border: 2px solid #ef9a9a;
}

.number-tag-cold {
  background: linear-gradient(135deg, #e3f2fd, #bbdefb);
  color: var(--info-color);
  border: 2px solid #90caf9;
}

.number-tag:hover {
  transform: scale(1.15);
}

/* 频率条 */
.freq-bar-wrap {
  margin-top: 16px;
}

.freq-bar-item {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.freq-bar-item .num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: #fff;
}

.freq-bar-item .bar-track {
  flex: 1;
  height: 20px;
  background: var(--bg-secondary);
  border-radius: 10px;
  overflow: hidden;
}

.freq-bar-item .bar-fill {
  height: 100%;
  border-radius: 10px;
  transition: width 1s ease;
}

.freq-bar-item .bar-fill-hot {
  background: linear-gradient(90deg, #ef5350, #e53935);
}

.freq-bar-item .bar-fill-cold {
  background: linear-gradient(90deg, #42a5f5, #1e88e5);
}

.freq-bar-item .freq-val {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  min-width: 40px;
  text-align: right;
}

/* ========== 文章列表 ========== */
.article-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.article-item {
  display: flex;
  gap: 20px;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

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

.article-thumb {
  flex: 0 0 220px;
  overflow: hidden;
}

.article-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 160px;
}

.article-content {
  flex: 1;
  padding: 20px;
}

.article-content h4 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.article-content p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-content .article-meta {
  margin-top: 12px;
  font-size: 0.8rem;
  color: var(--text-light);
  display: flex;
  gap: 16px;
}

/* ========== 社区评论 ========== */
.comment-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.comment-item {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--primary-light);
}

.comment-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.comment-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-light), var(--accent-color));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
}

.comment-info .comment-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-primary);
}

.comment-info .comment-time {
  font-size: 0.8rem;
  color: var(--text-light);
}

.comment-body {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.comment-actions {
  margin-top: 12px;
  display: flex;
  gap: 16px;
  font-size: 0.8rem;
  color: var(--text-light);
}

.comment-actions span {
  cursor: pointer;
  transition: var(--transition);
}

.comment-actions span:hover {
  color: var(--primary-light);
}

/* ========== FAQ ========== */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
}

.faq-question {
  padding: 18px 24px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: var(--transition);
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  color: var(--text-primary);
}

.faq-question:hover {
  background: rgba(26,35,126,0.03);
}

.faq-question .faq-icon {
  font-size: 1.2rem;
  transition: transform 0.3s ease;
  color: var(--accent-color);
}

.faq-item.active .faq-question .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 24px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-item.active .faq-answer {
  padding: 0 24px 20px;
  max-height: 500px;
}

.faq-answer p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

/* ========== 数据筛选 ========== */
.filter-bar {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 24px;
  padding: 20px;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.filter-bar label {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.filter-bar select,
.filter-bar input {
  padding: 8px 16px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  color: var(--text-primary);
  background: #fff;
  transition: var(--transition);
}

.filter-bar select:focus,
.filter-bar input:focus {
  border-color: var(--primary-light);
  outline: none;
  box-shadow: 0 0 0 3px rgba(57,73,171,0.15);
}

/* ========== 分页 ========== */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 30px;
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition);
}

.pagination a {
  background: var(--bg-card);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
}

.pagination a:hover {
  background: var(--primary-light);
  color: #fff;
  border-color: var(--primary-light);
}

.pagination .active {
  background: var(--primary-color);
  color: #fff;
  border: 1px solid var(--primary-color);
}

.pagination .disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ========== 页脚 ========== */
.site-footer {
  background: linear-gradient(135deg, var(--primary-dark) 0%, #0a0f30 100%);
  color: rgba(255,255,255,0.8);
  padding: 50px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-about h3 {
  color: var(--gold-color);
  font-size: 1.3rem;
  margin-bottom: 16px;
}

.footer-about p {
  font-size: 0.9rem;
  line-height: 1.8;
  color: rgba(255,255,255,0.65);
}

.footer-links h4 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--accent-color);
  display: inline-block;
}

.footer-links ul li {
  margin-bottom: 8px;
}

.footer-links ul li a {
  color: rgba(255,255,255,0.65);
  font-size: 0.85rem;
  transition: var(--transition);
}

.footer-links ul li a:hover {
  color: var(--gold-color);
  padding-left: 4px;
}

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer-social a:hover {
  background: var(--accent-color);
  transform: translateY(-3px);
}

.footer-bottom {
  padding: 20px 0;
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
}

.footer-bottom .age-badge {
  display: inline-block;
  padding: 4px 12px;
  border: 2px solid var(--danger-color);
  border-radius: 4px;
  color: var(--danger-color);
  font-weight: 700;
  font-size: 0.85rem;
  margin-left: 12px;
}

/* ========== 内页通用 ========== */
.page-header {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
  color: #fff;
  padding: 40px 0;
  text-align: center;
}

.page-header h2 {
  color: #fff;
  font-size: 2rem;
  margin-bottom: 10px;
}

.page-header p {
  color: rgba(255,255,255,0.8);
  font-size: 1rem;
}

.page-content {
  padding: 40px 0;
}

.content-wrap {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 30px;
}

.main-content {
  min-width: 0;
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.sidebar-widget {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.sidebar-widget h4 {
  font-size: 1rem;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--accent-color);
}

.sidebar-widget ul li {
  padding: 8px 0;
  border-bottom: 1px solid var(--bg-secondary);
}

.sidebar-widget ul li:last-child {
  border-bottom: none;
}

.sidebar-widget ul li a {
  font-size: 0.85rem;
  color: var(--text-secondary);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sidebar-widget ul li a:hover {
  color: var(--primary-light);
}

/* ========== 文章详情 ========== */
.article-detail {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-sm);
}

.article-detail h2 {
  font-size: 1.6rem;
  margin-bottom: 16px;
}

.article-detail .article-meta-detail {
  display: flex;
  gap: 20px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.85rem;
  color: var(--text-light);
}

.article-detail .article-body {
  font-size: 1rem;
  line-height: 2;
}

.article-detail .article-body h3 {
  margin: 24px 0 12px;
  font-size: 1.3rem;
}

.article-detail .article-body h4 {
  margin: 20px 0 10px;
  font-size: 1.1rem;
}

.article-detail .article-body p {
  margin-bottom: 16px;
}

.article-detail .article-body img {
  border-radius: var(--radius-md);
  margin: 20px 0;
}

/* 相关推荐 */
.related-posts {
  margin-top: 40px;
  padding-top: 30px;
  border-top: 2px solid var(--bg-secondary);
}

.related-posts h3 {
  margin-bottom: 20px;
}

/* ========== 讨论区 ========== */
.discussion-form {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 30px;
}

.discussion-form h3 {
  margin-bottom: 16px;
}

.discussion-form textarea {
  width: 100%;
  min-height: 120px;
  padding: 16px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-family: var(--font-main);
  resize: vertical;
  transition: var(--transition);
}

.discussion-form textarea:focus {
  border-color: var(--primary-light);
  outline: none;
  box-shadow: 0 0 0 3px rgba(57,73,171,0.15);
}

.discussion-form .form-actions {
  margin-top: 12px;
  display: flex;
  justify-content: flex-end;
}

/* 回复嵌套 */
.comment-replies {
  margin-left: 54px;
  margin-top: 12px;
  padding-left: 16px;
  border-left: 2px solid var(--bg-secondary);
}

.comment-replies .comment-item {
  border-left-color: var(--accent-light);
}

/* ========== 动画 ========== */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.slide-in-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.slide-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.slide-in-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.slide-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* ========== 响应式设计 ========== */
@media (max-width: 1024px) {
  .content-wrap {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }

  .hero-content {
    flex-direction: column;
    text-align: center;
  }

  .hero-image {
    flex: none;
    width: 100%;
    max-width: 500px;
  }

  .hero-stats {
    justify-content: center;
  }

  .card-grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .hot-cold-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 15px;
  }

  .header-top {
    flex-direction: column;
    gap: 10px;
  }

  .header-contact {
    display: none;
  }

  .mobile-menu-btn {
    display: block;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    width: 100%;
    background: var(--primary-dark);
  }

  .nav-list.active {
    display: flex;
  }

  .nav-list li a {
    padding: 12px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
  }

  .hero-section {
    padding: 40px 0 30px;
  }

  .hero-text h2 {
    font-size: 1.6rem;
  }

  .hero-image {
    max-width: 100%;
  }

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

  .section {
    padding: 40px 0;
  }

  .section-title h2 {
    font-size: 1.4rem;
  }

  .card-grid,
  .card-grid-3,
  .card-grid-2 {
    grid-template-columns: 1fr;
  }

  .article-item {
    flex-direction: column;
  }

  .article-thumb {
    flex: none;
    height: 180px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .btn-group {
    flex-direction: column;
    align-items: stretch;
  }

  .result-table {
    font-size: 0.8rem;
  }

  .ball {
    width: 30px;
    height: 30px;
    font-size: 0.75rem;
  }

  .filter-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .article-detail {
    padding: 20px;
  }

  .pagination a,
  .pagination span {
    min-width: 34px;
    height: 34px;
    font-size: 0.8rem;
  }

  .latest-results {
    padding: 16px;
    overflow-x: auto;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 12px;
  }

  h1 { font-size: 1.6rem; }
  h2 { font-size: 1.3rem; }

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

  .hero-stat-item .stat-number {
    font-size: 1.5rem;
  }

  .ball {
    width: 26px;
    height: 26px;
    font-size: 0.7rem;
  }

  .ball-container {
    gap: 4px;
  }
}

/* ========== 打印样式 ========== */
@media print {
  .site-header,
  .site-footer,
  .mobile-menu-btn,
  .jammer-block {
    display: none;
  }

  body {
    color: #000;
    background: #fff;
  }
}
