/* ========== 全局重置与基础样式 ========== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  background: #f5f5f5;
  color: #333;
  line-height: 1.6;
  min-width: 1200px;
}
a { text-decoration: none; color: inherit; transition: color .2s; }
a:hover { color: #4CAF50; }
ul, ol { list-style: none; }
img { max-width: 100%; display: block; }
.clearfix::after { content: ""; display: table; clear: both; }

/* ========== 布局容器 ========== */
.container { width: 1200px; margin: 0 auto; }

/* ========== 顶部导航 ========== */
.header {
  background: #1a1a2e;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,.3);
}
.header .container {
  display: flex;
  align-items: center;
  height: 60px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: 40px;
}
.logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #4CAF50, #2E7D32);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #fff;
  font-weight: bold;
}
.logo-text {
  color: #4CAF50;
  font-size: 22px;
  font-weight: bold;
  white-space: nowrap;
}
.logo-sub {
  color: #aaa;
  font-size: 12px;
  margin-left: -30px;
  margin-top: 2px;
}
.nav { display: flex; gap: 0; flex: 1; }
.nav a {
  color: #ddd;
  padding: 0 18px;
  height: 60px;
  display: flex;
  align-items: center;
  font-size: 15px;
  transition: all .2s;
  position: relative;
}
.nav a:hover, .nav a.active {
  color: #4CAF50;
  background: rgba(76,175,80,.1);
}
.nav a.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 3px;
  background: #4CAF50;
  border-radius: 2px;
}
.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}
.btn-login, .btn-register {
  padding: 6px 16px;
  border-radius: 4px;
  font-size: 13px;
  cursor: pointer;
  border: none;
}
.btn-login {
  color: #ddd;
  background: transparent;
  border: 1px solid #555;
}
.btn-login:hover { border-color: #4CAF50; color: #4CAF50; }
.btn-register {
  background: #4CAF50;
  color: #fff;
}
.btn-register:hover { background: #43A047; }

/* ========== 热门游戏横幅 ========== */
.hot-games {
  background: #1a1a2e;
  padding: 15px 0 20px;
}
.hot-games-list {
  display: flex;
  gap: 15px;
}
.hot-game-card {
  flex: 1;
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: transform .3s;
}
.hot-game-card:hover { transform: translateY(-5px); }
.hot-game-card img {
  width: 100%;
  height: 140px;
  object-fit: cover;
}
.hot-game-card .title {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 8px 10px;
  background: linear-gradient(transparent, rgba(0,0,0,.8));
  color: #fff;
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ========== 分类标签栏 ========== */
.tab-bar {
  display: flex;
  gap: 0;
  margin-bottom: 15px;
  border-bottom: 2px solid #eee;
}
.tab-bar .tab {
  padding: 8px 18px;
  font-size: 14px;
  cursor: pointer;
  color: #666;
  border: none;
  background: none;
  transition: all .2s;
  position: relative;
}
.tab-bar .tab:hover { color: #4CAF50; }
.tab-bar .tab.active {
  color: #4CAF50;
  font-weight: bold;
}
.tab-bar .tab.active::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 2px;
  background: #4CAF50;
}

/* ========== 区块标题 ========== */
.section-title {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #4CAF50;
}
.section-title h2 {
  font-size: 20px;
  color: #1a1a2e;
  position: relative;
  padding-left: 15px;
}
.section-title h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 20px;
  background: #4CAF50;
  border-radius: 2px;
}
.section-title .more {
  margin-left: auto;
  color: #999;
  font-size: 13px;
}
.section-title .more:hover { color: #4CAF50; }

/* ========== 主内容区 ========== */
.main-content {
  padding: 25px 0;
}
.content-wrapper {
  display: flex;
  gap: 25px;
}
.content-left { flex: 1; }
.content-right { width: 300px; flex-shrink: 0; }

/* ========== 最新消息 ========== */
.news-section { margin-bottom: 30px; }
.news-featured {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}
.news-featured-img {
  width: 380px;
  flex-shrink: 0;
}
.news-featured-img a {
  display: block;
  border-radius: 8px;
  overflow: hidden;
}
.news-featured-img img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform .3s;
}
.news-featured-img a:hover img { transform: scale(1.05); }
.news-list { flex: 1; }
.news-list-item {
  padding: 10px 0;
  border-bottom: 1px dashed #eee;
  display: flex;
  align-items: center;
  gap: 10px;
}
.news-list-item:last-child { border-bottom: none; }
.news-list-item .tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 12px;
  color: #fff;
  flex-shrink: 0;
}
.tag-news { background: #4CAF50; }
.tag-review { background: #FF9800; }
.tag-guide { background: #2196F3; }
.tag-video { background: #9C27B0; }
.tag-hot { background: #F44336; }
.news-list-item a {
  font-size: 14px;
  color: #333;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
}
.news-list-item a:hover { color: #4CAF50; }

/* ========== 评测中心 ========== */
.review-section { margin-bottom: 30px; }
.review-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.review-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
  transition: transform .3s, box-shadow .3s;
}
.review-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 20px rgba(0,0,0,.15);
}
.review-card-img {
  position: relative;
  overflow: hidden;
}
.review-card-img img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform .3s;
}
.review-card:hover .review-card-img img { transform: scale(1.05); }
.review-score {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(76,175,80,.9);
  color: #fff;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 16px;
  font-weight: bold;
}
.review-card-info {
  padding: 15px;
}
.review-card-info h3 {
  font-size: 16px;
  margin-bottom: 8px;
  line-height: 1.4;
}
.review-card-info p {
  font-size: 13px;
  color: #888;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ========== 发售表 ========== */
.schedule-section { margin-bottom: 30px; }
.schedule-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
}
.schedule-table th {
  background: #1a1a2e;
  color: #fff;
  padding: 12px 15px;
  text-align: left;
  font-size: 14px;
}
.schedule-table td {
  padding: 10px 15px;
  border-bottom: 1px solid #f0f0f0;
  font-size: 14px;
}
.schedule-table tr:hover { background: #f9f9f9; }
.schedule-table .platform-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 11px;
  color: #fff;
  margin-right: 4px;
}
.platform-pc { background: #607D8B; }
.platform-mobile { background: #FF5722; }
.platform-web { background: #00BCD4; }

/* ========== 视频区 ========== */
.video-section { margin-bottom: 30px; }
.video-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
}
.video-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
  transition: transform .3s;
}
.video-card:hover { transform: translateY(-3px); }
.video-card-thumb {
  position: relative;
  padding-top: 56.25%;
  background: #000;
}
.video-card-thumb img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.video-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50px;
  height: 50px;
  background: rgba(76,175,80,.85);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.video-play-btn::after {
  content: "";
  border-left: 18px solid #fff;
  border-top: 11px solid transparent;
  border-bottom: 11px solid transparent;
  margin-left: 4px;
}
.video-card-title {
  padding: 10px 12px;
  font-size: 13px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ========== 侧边栏 ========== */
.sidebar-block {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
  margin-bottom: 20px;
}
.sidebar-block-title {
  background: #1a1a2e;
  color: #fff;
  padding: 10px 15px;
  font-size: 15px;
  font-weight: bold;
}
.sidebar-block-content { padding: 15px; }
.sidebar-game-item {
  display: flex;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px dashed #eee;
}
.sidebar-game-item:last-child { border-bottom: none; }
.sidebar-game-item img {
  width: 80px;
  height: 60px;
  object-fit: cover;
  border-radius: 4px;
}
.sidebar-game-item .info { flex: 1; }
.sidebar-game-item .info h4 {
  font-size: 13px;
  margin-bottom: 4px;
  line-height: 1.3;
}
.sidebar-game-item .info p {
  font-size: 12px;
  color: #999;
}
.sidebar-ad {
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 20px;
}
.sidebar-ad img {
  width: 100%;
  display: block;
}

/* ========== 文章详情页 ========== */
.article-page { padding: 25px 0; }
.article-header {
  margin-bottom: 25px;
}
.article-header h1 {
  font-size: 26px;
  line-height: 1.4;
  margin-bottom: 12px;
  color: #1a1a2e;
}
.article-meta {
  display: flex;
  gap: 20px;
  color: #999;
  font-size: 13px;
  padding-bottom: 15px;
  border-bottom: 1px solid #eee;
}
.article-content {
  font-size: 15px;
  line-height: 1.8;
  color: #444;
}
.article-content p { margin-bottom: 18px; }
.article-content img {
  border-radius: 8px;
  margin: 20px 0;
}
.article-content h2 {
  font-size: 20px;
  color: #1a1a2e;
  margin: 30px 0 15px;
  padding-left: 12px;
  border-left: 4px solid #4CAF50;
}
.article-content h3 {
  font-size: 17px;
  color: #333;
  margin: 20px 0 10px;
}
.article-content blockquote {
  background: #f8f9fa;
  border-left: 4px solid #4CAF50;
  padding: 15px 20px;
  margin: 20px 0;
  color: #666;
  border-radius: 0 8px 8px 0;
}

/* ========== 论坛/社区 ========== */
.forum-list { }
.forum-item {
  display: flex;
  align-items: center;
  padding: 12px 15px;
  border-bottom: 1px solid #f0f0f0;
  transition: background .2s;
}
.forum-item:hover { background: #f9f9f9; }
.forum-item .icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #4CAF50, #2E7D32);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 16px;
  margin-right: 12px;
  flex-shrink: 0;
}
.forum-item .info { flex: 1; }
.forum-item .info h4 { font-size: 14px; margin-bottom: 3px; }
.forum-item .info p { font-size: 12px; color: #999; }

/* ========== 页脚 ========== */
.footer {
  background: #1a1a2e;
  color: #aaa;
  padding: 40px 0 20px;
  margin-top: 40px;
}
.footer-content {
  display: flex;
  gap: 40px;
  margin-bottom: 30px;
}
.footer-col { flex: 1; }
.footer-col h3 {
  color: #4CAF50;
  font-size: 16px;
  margin-bottom: 15px;
  padding-bottom: 8px;
  border-bottom: 1px solid #333;
}
.footer-col a {
  display: block;
  color: #888;
  font-size: 13px;
  padding: 4px 0;
}
.footer-col a:hover { color: #4CAF50; }
.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid #333;
  font-size: 12px;
  color: #666;
}
.footer-qr {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-bottom: 20px;
}
.footer-qr-item { text-align: center; }
.footer-qr-item .qr-placeholder {
  width: 100px;
  height: 100px;
  background: #333;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
  font-size: 12px;
  margin-bottom: 8px;
}
.footer-qr-item p { font-size: 12px; color: #888; }

/* ========== 面包屑 ========== */
.breadcrumb {
  padding: 15px 0;
  font-size: 13px;
  color: #999;
}
.breadcrumb a { color: #666; }
.breadcrumb a:hover { color: #4CAF50; }
.breadcrumb span { margin: 0 8px; color: #ccc; }

/* ========== 分页 ========== */
.pagination {
  display: flex;
  justify-content: center;
  gap: 5px;
  margin-top: 30px;
}
.pagination a, .pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 4px;
  font-size: 14px;
  border: 1px solid #ddd;
  color: #666;
  transition: all .2s;
}
.pagination a:hover { border-color: #4CAF50; color: #4CAF50; }
.pagination .active {
  background: #4CAF50;
  color: #fff;
  border-color: #4CAF50;
}

/* ========== 新闻列表页 ========== */
.news-page-list { }
.news-page-item {
  display: flex;
  gap: 20px;
  padding: 20px;
  background: #fff;
  border-radius: 8px;
  margin-bottom: 15px;
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
  transition: transform .2s;
}
.news-page-item:hover { transform: translateX(5px); }
.news-page-item img {
  width: 240px;
  height: 160px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}
.news-page-item .info { flex: 1; }
.news-page-item .info h3 {
  font-size: 18px;
  margin-bottom: 10px;
  line-height: 1.4;
}
.news-page-item .info h3:hover { color: #4CAF50; }
.news-page-item .info p {
  font-size: 14px;
  color: #888;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 12px;
}
.news-page-item .meta {
  font-size: 12px;
  color: #bbb;
  display: flex;
  gap: 15px;
}

/* ========== APP下载页 ========== */
.download-hero {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  padding: 80px 0;
  text-align: center;
  color: #fff;
}
.download-hero h1 {
  font-size: 42px;
  margin-bottom: 15px;
}
.download-hero h1 span { color: #4CAF50; }
.download-hero p {
  font-size: 18px;
  color: #aaa;
  margin-bottom: 40px;
}
.download-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
}
.download-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 15px 35px;
  border-radius: 50px;
  font-size: 16px;
  font-weight: bold;
  transition: all .3s;
  cursor: pointer;
}
.download-btn-ios {
  background: #fff;
  color: #1a1a2e;
}
.download-btn-android {
  background: #4CAF50;
  color: #fff;
}
.download-btn:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(0,0,0,.3); }
.download-features {
  padding: 60px 0;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.feature-card {
  text-align: center;
  padding: 30px 20px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 15px rgba(0,0,0,.08);
  transition: transform .3s;
}
.feature-card:hover { transform: translateY(-5px); }
.feature-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, #4CAF50, #2E7D32);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 30px;
  color: #fff;
}
.feature-card h3 {
  font-size: 18px;
  margin-bottom: 10px;
  color: #1a1a2e;
}
.feature-card p {
  font-size: 14px;
  color: #888;
  line-height: 1.6;
}

/* ========== 客服弹窗 ========== */
.cs-widget {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 9999;
}
.cs-btn {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #4CAF50, #2E7D32);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(76,175,80,.4);
  transition: transform .3s;
  border: none;
  color: #fff;
  font-size: 24px;
}
.cs-btn:hover { transform: scale(1.1); }
.cs-panel {
  position: absolute;
  bottom: 70px;
  right: 0;
  width: 320px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0,0,0,.2);
  display: none;
  overflow: hidden;
}
.cs-panel.active { display: block; }
.cs-panel-header {
  background: linear-gradient(135deg, #4CAF50, #2E7D32);
  color: #fff;
  padding: 20px;
}
.cs-panel-header h3 { font-size: 16px; margin-bottom: 5px; }
.cs-panel-header p { font-size: 12px; opacity: .8; }
.cs-panel-body { padding: 20px; }
.cs-panel-body .msg {
  background: #f0f0f0;
  padding: 12px 15px;
  border-radius: 12px 12px 12px 0;
  font-size: 14px;
  margin-bottom: 15px;
  line-height: 1.5;
}
.cs-input-wrap {
  display: flex;
  gap: 8px;
}
.cs-input {
  flex: 1;
  padding: 10px 15px;
  border: 1px solid #ddd;
  border-radius: 20px;
  font-size: 14px;
  outline: none;
}
.cs-input:focus { border-color: #4CAF50; }
.cs-send {
  padding: 10px 20px;
  background: #4CAF50;
  color: #fff;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  font-size: 14px;
}
.cs-send:hover { background: #43A047; }
.cs-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
}

/* ========== 视频播放页 ========== */
.video-player-wrap {
  position: relative;
  padding-top: 56.25%;
  background: #000;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 20px;
}
.video-player-wrap iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* ========== 攻略页 ========== */
.guide-card {
  display: flex;
  gap: 20px;
  padding: 20px;
  background: #fff;
  border-radius: 8px;
  margin-bottom: 15px;
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
  transition: transform .2s;
}
.guide-card:hover { transform: translateX(5px); }
.guide-card img {
  width: 200px;
  height: 130px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}
.guide-card .info { flex: 1; }
.guide-card .info h3 { font-size: 17px; margin-bottom: 8px; }
.guide-card .info p {
  font-size: 13px;
  color: #888;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ========== 关于我们 ========== */
.about-section {
  background: #fff;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 2px 15px rgba(0,0,0,.08);
  margin-bottom: 30px;
}
.about-section h2 {
  font-size: 24px;
  color: #1a1a2e;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #4CAF50;
}
.about-section p {
  font-size: 15px;
  line-height: 1.8;
  color: #555;
  margin-bottom: 15px;
}

/* ========== 搜索框 ========== */
.search-box {
  display: flex;
  margin-bottom: 20px;
}
.search-box input {
  flex: 1;
  padding: 10px 15px;
  border: 2px solid #ddd;
  border-radius: 6px 0 0 6px;
  font-size: 14px;
  outline: none;
}
.search-box input:focus { border-color: #4CAF50; }
.search-box button {
  padding: 10px 25px;
  background: #4CAF50;
  color: #fff;
  border: none;
  border-radius: 0 6px 6px 0;
  cursor: pointer;
  font-size: 14px;
}

/* ========== 回到顶部 ========== */
.back-to-top {
  position: fixed;
  bottom: 100px;
  right: 35px;
  width: 40px;
  height: 40px;
  background: #4CAF50;
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  z-index: 999;
  box-shadow: 0 2px 10px rgba(0,0,0,.2);
}
.back-to-top.show { display: flex; }

/* ========== 响应式提示 ========== */
@media (max-width: 1200px) {
  .container { width: 95%; }
  body { min-width: auto; }
}
