﻿/* ==================== 重置与基础 ==================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  line-height: 1.6;
  color: #333;
  background: #f8f9fa;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

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

ul {
  list-style: none;
}

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

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

/* ==================== 顶部导航 ==================== */
.top-nav {
  background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.top-nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.nav-brand .brand-logo img {
  height: 45px;
  width: auto;
}

.nav-menu {
  display: flex;
  gap: 35px;
}

.nav-link {
  color: #555;
  font-weight: 500;
  font-size: 15px;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 0;
  height: 2px;
  background: #667eea;
  transition: width 0.3s ease;
}

.nav-link:hover {
  color: #667eea;
}

.nav-link:hover::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.nav-toggle span {
  width: 25px;
  height: 3px;
  background: #333;
  border-radius: 2px;
  transition: all 0.3s;
}

/* ==================== 主横幅 ==================== */
.hero-banner {
  position: relative;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 100px 0;
  text-align: center;
  color: #fff;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.1" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,138.7C960,139,1056,117,1152,117.3C1248,117,1344,139,1392,149.3L1440,160L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
  opacity: 0.3;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-title {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 15px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.hero-subtitle {
  font-size: 24px;
  margin-bottom: 10px;
  opacity: 0.95;
}

.hero-description {
  font-size: 16px;
  margin-bottom: 35px;
  opacity: 0.9;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.btn-primary {
  background: #fff;
  color: #667eea;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255,255,255,0.3);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border-color: #fff;
}

.btn-outline:hover {
  background: #fff;
  color: #667eea;
}

.btn-large {
  padding: 16px 40px;
  font-size: 16px;
  background: #fff;
  color: #667eea;
}

.btn-large:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

/* ==================== 区块标题 ==================== */
.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-title {
  font-size: 36px;
  font-weight: 700;
  color: #2d3748;
  margin-bottom: 10px;
}

.section-subtitle {
  font-size: 16px;
  color: #718096;
}

/* ==================== 核心特性 ==================== */
.features-section {
  padding: 80px 0;
  background: #fff;
}

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

.feature-card {
  text-align: center;
  padding: 40px 30px;
  background: #f8f9fa;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(102,126,234,0.15);
}

.feature-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
}

.feature-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.feature-title {
  font-size: 20px;
  font-weight: 600;
  color: #2d3748;
  margin-bottom: 12px;
}

.feature-desc {
  font-size: 14px;
  color: #718096;
  line-height: 1.7;
}

/* ==================== 最新资讯 ==================== */
.news-section {
  padding: 80px 0;
  background: #f8f9fa;
}

.news-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.news-article {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
}

.news-article:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}

.news-thumb {
  position: relative;
  height: 200px;
  overflow: hidden;
}

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

.news-article:hover .news-thumb img {
  transform: scale(1.1);
}

.news-category {
  position: absolute;
  top: 15px;
  left: 15px;
  background: #667eea;
  color: #fff;
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.news-body {
  padding: 25px;
}

.news-title {
  font-size: 18px;
  font-weight: 600;
  color: #2d3748;
  margin-bottom: 12px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-title a:hover {
  color: #667eea;
}

.news-excerpt {
  font-size: 14px;
  color: #718096;
  line-height: 1.6;
  margin-bottom: 15px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 15px;
  border-top: 1px solid #e2e8f0;
}

.meta-date {
  font-size: 13px;
  color: #a0aec0;
  display: flex;
  align-items: center;
  gap: 5px;
}

.meta-link {
  font-size: 14px;
  color: #667eea;
  font-weight: 600;
}

.meta-link:hover {
  color: #764ba2;
}

/* ==================== 合作伙伴 ==================== */
.partners-section {
  padding: 60px 0;
  background: #fff;
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 30px;
  align-items: center;
}

.partner-item {
  padding: 20px;
  text-align: center;
  transition: all 0.3s;
}

.partner-item img {
  filter: grayscale(100%) opacity(0.6);
  transition: all 0.3s;
  margin: 0 auto;
}

.partner-item:hover img {
  filter: grayscale(0%) opacity(1);
  transform: scale(1.1);
}

/* ==================== CTA区域 ==================== */
.cta-section {
  padding: 80px 0;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  text-align: center;
  color: #fff;
}

.cta-title {
  font-size: 38px;
  font-weight: 700;
  margin-bottom: 15px;
}

.cta-text {
  font-size: 18px;
  margin-bottom: 30px;
  opacity: 0.95;
}

/* ==================== 页脚 ==================== */
.site-footer {
  background: #2d3748;
  color: #cbd5e0;
  padding: 50px 0 20px;
}

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

.footer-title {
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 20px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  color: #a0aec0;
  font-size: 14px;
}

.footer-links a:hover {
  color: #fff;
}

.social-links {
  display: flex;
  gap: 15px;
}

.social-link {
  width: 40px;
  height: 40px;
  background: #4a5568;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.social-link:hover {
  background: #667eea;
  transform: translateY(-3px);
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid #4a5568;
}

.copyright {
  font-size: 14px;
  color: #a0aec0;
}

/* ==================== 面包屑 ==================== */
.breadcrumb-wrapper {
  background: #fff;
  padding: 15px 0;
  border-bottom: 1px solid #e2e8f0;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}

.breadcrumb-link {
  color: #667eea;
}

.breadcrumb-link:hover {
  text-decoration: underline;
}

.breadcrumb-sep {
  color: #cbd5e0;
}

.breadcrumb-current {
  color: #718096;
}

/* ==================== 页面头部 ==================== */
.page-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 60px 0;
  text-align: center;
  color: #fff;
}

.page-title {
  font-size: 40px;
  font-weight: 700;
  margin-bottom: 15px;
}

.page-desc {
  font-size: 16px;
  opacity: 0.9;
  max-width: 700px;
  margin: 0 auto;
}

/* ==================== 文章列表 ==================== */
.articles-section {
  padding: 60px 0;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 50px;
}

.article-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
}

.article-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.card-link {
  display: block;
}

.card-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

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

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

.card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(102,126,234,0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.article-card:hover .card-overlay {
  opacity: 1;
}

.read-btn {
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  padding: 10px 25px;
  border: 2px solid #fff;
  border-radius: 25px;
}

.card-content {
  padding: 25px;
}

.card-title {
  font-size: 18px;
  font-weight: 600;
  color: #2d3748;
  margin-bottom: 12px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-excerpt {
  font-size: 14px;
  color: #718096;
  line-height: 1.6;
  margin-bottom: 15px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 15px;
  border-top: 1px solid #e2e8f0;
}

.card-date {
  font-size: 13px;
  color: #a0aec0;
}

.card-arrow {
  color: #667eea;
  font-size: 18px;
  font-weight: 600;
}

/* ==================== 分页 ==================== */
.pagination {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.page-num {
  display: inline-block;
  min-width: 40px;
  height: 40px;
  line-height: 40px;
  text-align: center;
  background: #fff;
  color: #4a5568;
  border-radius: 8px;
  font-weight: 500;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.page-num:hover {
  background: #667eea;
  color: #fff;
  transform: translateY(-2px);
}

/* ==================== 文章页 ==================== */
.post-article {
  padding: 60px 0;
  background: #fff;
}

.post-header {
  margin-bottom: 30px;
  padding-bottom: 25px;
  border-bottom: 2px solid #e2e8f0;
}

.post-title {
  font-size: 36px;
  font-weight: 700;
  color: #2d3748;
  line-height: 1.4;
  margin-bottom: 20px;
}

.post-meta {
  display: flex;
  gap: 25px;
  flex-wrap: wrap;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: #718096;
}

.meta-item a {
  color: #667eea;
}

.meta-item a:hover {
  text-decoration: underline;
}

.post-summary {
  background: #f7fafc;
  border-left: 4px solid #667eea;
  padding: 20px 25px;
  margin-bottom: 40px;
  border-radius: 4px;
}

.post-summary p {
  font-size: 16px;
  line-height: 1.8;
  color: #4a5568;
  margin: 0;
}

.post-content {
  font-size: 16px;
  line-height: 1.9;
  color: #2d3748;
  margin-bottom: 40px;
  overflow: hidden;
  word-wrap: break-word;
}

.post-content img {
  max-width: 100% !important;
  height: auto !important;
  margin: 25px auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.post-content h2 {
  font-size: 28px;
  margin: 40px 0 20px;
  color: #2d3748;
}

.post-content h3 {
  font-size: 24px;
  margin: 30px 0 15px;
  color: #4a5568;
}

.post-content p {
  margin: 15px 0;
}

.post-content ul,
.post-content ol {
  margin: 15px 0;
  padding-left: 30px;
}

.post-content li {
  margin: 8px 0;
}

.post-content table {
  width: 100% !important;
  max-width: 100% !important;
  margin: 20px 0;
  border-collapse: collapse;
  overflow-x: auto;
  display: block;
}

.post-content table img {
  max-width: 100% !important;
  width: 100% !important;
}

.post-tags {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.tags-label {
  font-weight: 600;
  color: #4a5568;
}

.post-tag {
  background: #edf2f7;
  color: #667eea;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
}

.post-tag:hover {
  background: #667eea;
  color: #fff;
}

.post-share {
  padding: 25px;
  background: #f7fafc;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.share-label {
  font-weight: 600;
  color: #4a5568;
}

.share-buttons {
  display: flex;
  gap: 12px;
}

.share-btn {
  padding: 8px 20px;
  background: #fff;
  color: #667eea;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.share-btn:hover {
  background: #667eea;
  color: #fff;
}

/* ==================== 相关文章 ==================== */
.related-section {
  padding: 60px 0;
  background: #f8f9fa;
}

.related-title {
  font-size: 28px;
  font-weight: 700;
  color: #2d3748;
  margin-bottom: 30px;
  text-align: center;
}

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

.related-item {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
}

.related-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}

.related-thumb {
  height: 140px;
  overflow: hidden;
}

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

.related-item:hover .related-thumb img {
  transform: scale(1.1);
}

.related-info {
  padding: 18px;
}

.related-item-title {
  font-size: 15px;
  font-weight: 600;
  color: #2d3748;
  line-height: 1.4;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.related-item:hover .related-item-title {
  color: #667eea;
}

.related-date {
  font-size: 13px;
  color: #a0aec0;
}

/* ==================== 响应式设计 ==================== */
@media (max-width: 768px) {
  /* 全局 */
  body {
    overflow-x: hidden;
  }
  
  .container,
  .container-narrow {
    padding: 0 15px;
  }
  
  /* 导航 */
  .nav-menu {
    display: none;
  }
  
  .nav-toggle {
    display: flex;
  }
  
  /* 横幅 */
  .hero-banner {
    padding: 60px 0;
  }
  
  .hero-title {
    font-size: 32px;
  }
  
  .hero-subtitle {
    font-size: 18px;
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
  }
  
  .btn {
    text-align: center;
  }
  
  /* 特性 */
  .features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  /* 新闻 */
  .news-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  /* 合作伙伴 */
  .partners-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
  
  /* CTA */
  .cta-title {
    font-size: 28px;
  }
  
  .cta-text {
    font-size: 16px;
  }
  
  /* 页脚 */
  .footer-main {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  /* 页面头部 */
  .page-title {
    font-size: 28px;
  }
  
  .page-desc {
    font-size: 15px;
  }
  
  /* 文章列表 */
  .articles-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  /* 文章页 */
  .post-title {
    font-size: 26px;
  }
  
  .post-meta {
    gap: 15px;
  }
  
  .post-content {
    font-size: 15px;
  }
  
  .post-content h2 {
    font-size: 24px;
  }
  
  .post-content h3 {
    font-size: 20px;
  }
  
  .post-share {
    flex-direction: column;
    align-items: flex-start;
  }
  
  /* 相关文章 */
  .related-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}
/* ==================== 热门游戏 ==================== */
.games-section {
  padding: 80px 0;
  background: #fff;
}

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

.game-card {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  background: #fff;
}

.game-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(102,126,234,0.2);
}

.game-thumb {
  position: relative;
  height: 250px;
  overflow: hidden;
}

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

.game-card:hover .game-thumb img {
  transform: scale(1.1);
}

.game-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(102,126,234,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.game-card:hover .game-overlay {
  opacity: 1;
}

.play-btn {
  background: #fff;
  color: #667eea;
  padding: 12px 30px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.3s ease;
}

.play-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 5px 15px rgba(255,255,255,0.3);
}

.game-title {
  padding: 20px;
  font-size: 18px;
  font-weight: 600;
  color: #2d3748;
  text-align: center;
}

/* ==================== 响应式设计 ==================== */
@media (max-width: 992px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .games-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .partners-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 36px;
  }
  
  .hero-subtitle {
    font-size: 20px;
  }
  
  .nav-menu {
    display: none;
  }
  
  .nav-toggle {
    display: flex;
  }
  
  .features-grid,
  .games-grid,
  .news-list {
    grid-template-columns: 1fr;
  }
  
  .partners-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 480px) {
  .section-title {
    font-size: 28px;
  }
  
  .partners-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
