/* ==================== 深色主题基础 ==================== */
:root {
  --primary-color: #8B5CF6;
  --secondary-color: #EC4899;
  --accent-color: #10B981;
  --bg-dark: #0F172A;
  --bg-darker: #020617;
  --bg-card: #1E293B;
  --text-primary: #F1F5F9;
  --text-secondary: #94A3B8;
  --border-color: #334155;
  --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --gradient-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
}

.dark-theme {
  background: var(--bg-dark);
}

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 24px;
}

/* ==================== 侧边栏导航 ==================== */
.sidebar {
  position: fixed;
  left: 0;
  top: 0;
  width: 280px;
  height: 100vh;
  background: var(--bg-darker);
  border-right: 1px solid var(--border-color);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
}

.sidebar.active {
  transform: translateX(0);
}

.sidebar-header {
  padding: 24px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.sidebar-close {
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 32px;
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.sidebar-close:hover {
  background: var(--bg-card);
}

.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: 16px 0;
}

.nav-list {
  padding: 0 16px;
}

.nav-item {
  margin-bottom: 4px;
}

.nav-link {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  border-radius: 8px;
  color: var(--text-secondary);
  transition: all 0.3s ease;
}

.nav-link:hover {
  background: var(--bg-card);
  color: var(--text-primary);
}

.nav-icon {
  margin-right: 12px;
  color: var(--primary-color);
}

.sidebar-footer {
  padding: 24px;
  border-top: 1px solid var(--border-color);
}

.contact-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--gradient-1);
  color: white;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.contact-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(139, 92, 246, 0.3);
}

/* ==================== 主内容区 ==================== */
.main-content {
  margin-left: 0;
  min-height: 100vh;
  background: var(--bg-dark);
}

/* ==================== 顶部栏 ==================== */
.top-bar {
  height: 70px;
  background: var(--bg-darker);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 999;
  backdrop-filter: blur(10px);
}

.menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.top-bar-title {
  font-size: 18px;
  font-weight: 700;
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.action-btn {
  padding: 10px 24px;
  background: var(--primary-color);
  color: white;
  border-radius: 50px;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s ease;
}

.action-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(139, 92, 246, 0.4);
}

/* ==================== 英雄区 ==================== */
.hero-section {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-1);
  opacity: 0.1;
}

.hero-bg::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.3) 0%, transparent 70%);
  animation: float 20s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(30px, 30px) rotate(180deg); }
}

.hero-container {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 40px 24px;
}

.hero-badge {
  display: inline-block;
  padding: 8px 20px;
  background: rgba(139, 92, 246, 0.2);
  border: 1px solid var(--primary-color);
  border-radius: 50px;
  font-size: 14px;
  margin-bottom: 24px;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.hero-heading {
  font-size: 64px;
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 24px;
}

.gradient-text {
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-lead {
  font-size: 20px;
  color: var(--text-secondary);
  margin-bottom: 40px;
}

.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-bottom: 60px;
  flex-wrap: wrap;
}

.cta-primary {
  padding: 16px 40px;
  background: var(--gradient-1);
  color: white;
  border-radius: 50px;
  font-weight: 700;
  font-size: 16px;
  transition: all 0.3s ease;
}

.cta-primary:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(139, 92, 246, 0.4);
}

.cta-secondary {
  padding: 16px 40px;
  background: transparent;
  color: var(--text-primary);
  border: 2px solid var(--border-color);
  border-radius: 50px;
  font-weight: 700;
  font-size: 16px;
  transition: all 0.3s ease;
}

.cta-secondary:hover {
  border-color: var(--primary-color);
  background: rgba(139, 92, 246, 0.1);
}

.hero-stats {
  display: flex;
  gap: 60px;
  justify-content: center;
  flex-wrap: wrap;
}

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

.stat-value {
  font-size: 36px;
  font-weight: 900;
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 14px;
  color: var(--text-secondary);
}

/* ==================== 服务时间轴 ==================== */
.services-section {
  padding: 100px 0;
  background: var(--bg-dark);
}

.section-intro {
  text-align: center;
  margin-bottom: 60px;
}

.section-tag {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(139, 92, 246, 0.2);
  color: var(--primary-color);
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 16px;
}

.section-heading {
  font-size: 42px;
  font-weight: 900;
  margin-bottom: 16px;
}

.services-timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.service-item {
  display: flex;
  gap: 24px;
  margin-bottom: 40px;
  align-items: flex-start;
}

.service-number {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  background: var(--gradient-1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 900;
  color: white;
}

.service-card {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 32px;
  transition: all 0.3s ease;
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: var(--primary-color);
  box-shadow: 0 20px 40px rgba(139, 92, 246, 0.2);
}

.service-icon {
  width: 64px;
  height: 64px;
  margin-bottom: 20px;
}

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

.service-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 12px;
}

.service-desc {
  color: var(--text-secondary);
  line-height: 1.8;
}

/* ==================== 游戏展示 ==================== */
.games-showcase {
  padding: 100px 0;
  background: var(--bg-darker);
}

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

.game-showcase-card {
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.game-showcase-card:hover {
  transform: translateY(-8px);
}

.game-image {
  position: relative;
  height: 400px;
  overflow: hidden;
}

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

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

.game-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.95) 0%, transparent 100%);
  display: flex;
  align-items: flex-end;
  padding: 32px;
}

.game-info {
  width: 100%;
}

.game-name {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 8px;
}

.game-subtitle {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.game-play-btn {
  display: inline-block;
  padding: 12px 32px;
  background: var(--gradient-1);
  color: white;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.game-play-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(139, 92, 246, 0.4);
}

/* ==================== 新闻时间线 ==================== */
.news-timeline {
  padding: 100px 0;
  background: var(--bg-dark);
}

.timeline-wrapper {
  max-width: 900px;
  margin: 0 auto;
}

.timeline-card {
  display: grid;
  grid-template-columns: auto 1fr 200px;
  gap: 24px;
  padding: 32px 0;
  border-bottom: 1px solid var(--border-color);
  align-items: start;
  position: relative;
}

.timeline-card:last-child {
  border-bottom: none;
}

.timeline-dot {
  width: 16px;
  height: 16px;
  background: var(--primary-color);
  border-radius: 50%;
  margin-top: 4px;
  position: relative;
}

.timeline-dot::before {
  content: '';
  position: absolute;
  top: 16px;
  left: 7px;
  width: 2px;
  height: 100px;
  background: var(--border-color);
}

.timeline-card:last-child .timeline-dot::before {
  display: none;
}

.timeline-date {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.timeline-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
  line-height: 1.4;
}

.timeline-title a:hover {
  color: var(--primary-color);
}

.timeline-excerpt {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 12px;
}

.timeline-link {
  color: var(--primary-color);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.timeline-link:hover {
  gap: 8px;
}

.timeline-image {
  width: 200px;
  height: 120px;
  border-radius: 12px;
  overflow: hidden;
}

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

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

/* ==================== 底部CTA ==================== */
.bottom-cta {
  padding: 100px 0;
  background: var(--bg-darker);
  text-align: center;
}

.cta-content {
  max-width: 700px;
  margin: 0 auto;
}

.cta-heading {
  font-size: 48px;
  font-weight: 900;
  margin-bottom: 16px;
}

.cta-text {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 40px;
}

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-btn {
  padding: 16px 40px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.cta-btn-telegram {
  background: var(--gradient-1);
  color: white;
}

.cta-btn-start {
  background: transparent;
  border: 2px solid var(--border-color);
  color: var(--text-primary);
}

.cta-btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(139, 92, 246, 0.3);
}

/* ==================== 面包屑 ==================== */
.breadcrumb-section {
  padding: 20px 0;
  background: var(--bg-darker);
  border-bottom: 1px solid var(--border-color);
}

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

.breadcrumb-item {
  color: var(--text-secondary);
  transition: color 0.3s ease;
}

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

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

.breadcrumb-current {
  color: var(--text-primary);
}

/* ==================== 栏目标题 ==================== */
.category-header {
  padding: 60px 0;
  background: var(--bg-darker);
  text-align: center;
  border-bottom: 1px solid var(--border-color);
}

.category-title {
  font-size: 42px;
  font-weight: 900;
  margin-bottom: 16px;
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.category-desc {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* ==================== 瀑布流文章列表 ==================== */
.articles-masonry {
  padding: 80px 0;
  background: var(--bg-dark);
}

.masonry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 24px;
}

.masonry-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.masonry-item:hover {
  transform: translateY(-8px);
  border-color: var(--primary-color);
  box-shadow: 0 20px 40px rgba(139, 92, 246, 0.2);
}

.masonry-link {
  display: block;
}

.masonry-image {
  position: relative;
  height: 220px;
  overflow: hidden;
}

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

.masonry-item:hover .masonry-image img {
  transform: scale(1.1);
}

.masonry-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 6px 16px;
  background: var(--primary-color);
  color: white;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 600;
}

.masonry-content {
  padding: 24px;
}

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

.masonry-excerpt {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.masonry-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  border-top: 1px solid var(--border-color);
}

.meta-date {
  font-size: 13px;
  color: var(--text-secondary);
}

.meta-arrow {
  color: var(--primary-color);
  font-weight: 700;
  transition: transform 0.3s ease;
}

.masonry-item:hover .meta-arrow {
  transform: translateX(4px);
}

/* ==================== 分页 ==================== */
.pagination-wrapper {
  margin-top: 60px;
  display: flex;
  justify-content: center;
}

.pagination {
  display: flex;
  gap: 8px;
}

.page-link {
  min-width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.page-link:hover {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
}

/* ==================== 文章详情 ==================== */
.article-detail {
  padding: 60px 0;
  background: var(--bg-dark);
}

.article-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
}

.article-header {
  margin-bottom: 40px;
}

.article-title {
  font-size: 48px;
  font-weight: 900;
  line-height: 1.3;
  margin-bottom: 24px;
}

.article-meta-bar {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-secondary);
}

.meta-item a:hover {
  color: var(--primary-color);
}

.meta-icon {
  font-size: 16px;
}

.article-summary {
  background: rgba(139, 92, 246, 0.1);
  border-left: 4px solid var(--primary-color);
  padding: 24px;
  border-radius: 8px;
  margin-bottom: 40px;
  display: flex;
  gap: 16px;
}

.summary-icon {
  font-size: 24px;
  flex-shrink: 0;
}

.summary-text {
  color: var(--text-secondary);
  line-height: 1.8;
}

.article-body {
  font-size: 17px;
  line-height: 1.9;
  color: var(--text-primary);
  margin-bottom: 60px;
}

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

.article-body h2 {
  font-size: 32px;
  font-weight: 700;
  margin: 40px 0 20px;
}

.article-body h3 {
  font-size: 24px;
  font-weight: 600;
  margin: 32px 0 16px;
}

.article-footer {
  border-top: 1px solid var(--border-color);
  padding-top: 32px;
}

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

.tags-icon {
  font-size: 18px;
}

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

.tag {
  padding: 6px 16px;
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid var(--primary-color);
  border-radius: 50px;
  font-size: 13px;
  color: var(--primary-color);
  transition: all 0.3s ease;
}

.tag:hover {
  background: var(--primary-color);
  color: white;
}

.article-share {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}

.share-label {
  font-weight: 600;
}

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

.share-btn {
  padding: 8px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 50px;
  font-size: 14px;
  transition: all 0.3s ease;
}

.share-btn:hover {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
}

/* ==================== 相关文章 ==================== */
.related-articles {
  padding: 80px 0;
  background: var(--bg-darker);
}

.related-heading {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 40px;
  text-align: center;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 24px;
}

.related-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.related-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary-color);
  box-shadow: 0 12px 24px rgba(139, 92, 246, 0.2);
}

.related-image {
  height: 160px;
  overflow: hidden;
}

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

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

.related-content {
  padding: 20px;
}

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

.related-date {
  font-size: 13px;
  color: var(--text-secondary);
}

/* ==================== 页脚 ==================== */
.footer {
  background: var(--bg-darker);
  border-top: 1px solid var(--border-color);
  padding: 60px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-heading {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 20px;
}

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

.footer-links a {
  color: var(--text-secondary);
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--primary-color);
}

.social-icons {
  display: flex;
  gap: 12px;
}

.social-icon {
  width: 44px;
  height: 44px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: all 0.3s ease;
}

.social-icon:hover {
  background: var(--primary-color);
  border-color: var(--primary-color);
  transform: translateY(-2px);
}

.footer-bottom {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 14px;
}

/* ==================== 响应式设计 ==================== */
@media (min-width: 1024px) {
  .sidebar {
    transform: translateX(0);
  }
  
  .main-content {
    margin-left: 280px;
  }
  
  .menu-toggle {
    display: none;
  }
  
  .sidebar-close {
    display: none;
  }
}

@media (max-width: 1024px) {
  .hero-heading {
    font-size: 48px;
  }
  
  .games-carousel {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .timeline-card {
    grid-template-columns: auto 1fr;
  }
  
  .timeline-image {
    display: none;
  }
}

@media (max-width: 768px) {
  .hero-heading {
    font-size: 36px;
  }
  
  .section-heading {
    font-size: 32px;
  }
  
  .games-carousel {
    grid-template-columns: 1fr;
  }
  
  .service-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .masonry-grid {
    grid-template-columns: 1fr;
  }
  
  .article-title {
    font-size: 32px;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero-heading {
    font-size: 28px;
  }
  
  .hero-stats {
    gap: 30px;
  }
  
  .cta-heading {
    font-size: 32px;
  }
  
  .article-title {
    font-size: 24px;
  }
}